42 lines
1.2 KiB
C#
42 lines
1.2 KiB
C#
namespace StellaOps.JobEngine.WebService.Contracts;
|
|
|
|
/// <summary>
|
|
/// Risk snapshot surfaced in promotion/approval contracts (Pack 13/17).
|
|
/// </summary>
|
|
public sealed record PromotionRiskSnapshot(
|
|
string EnvironmentId,
|
|
int CriticalReachable,
|
|
int HighReachable,
|
|
int HighNotReachable,
|
|
decimal VexCoveragePercent,
|
|
string Severity);
|
|
|
|
/// <summary>
|
|
/// Hybrid reachability coverage (build/image/runtime) surfaced as confidence.
|
|
/// </summary>
|
|
public sealed record HybridReachabilityCoverage(
|
|
int BuildCoveragePercent,
|
|
int ImageCoveragePercent,
|
|
int RuntimeCoveragePercent,
|
|
int EvidenceAgeHours);
|
|
|
|
/// <summary>
|
|
/// Operations/data confidence summary consumed by approvals and promotions.
|
|
/// </summary>
|
|
public sealed record OpsDataConfidence(
|
|
string Status,
|
|
string Summary,
|
|
int TrustScore,
|
|
DateTimeOffset DataAsOf,
|
|
IReadOnlyList<string> Signals);
|
|
|
|
/// <summary>
|
|
/// Evidence packet summary for approval decision packets.
|
|
/// </summary>
|
|
public sealed record ApprovalEvidencePacket(
|
|
string DecisionDigest,
|
|
string PolicyDecisionDsse,
|
|
string SbomSnapshotId,
|
|
string ReachabilitySnapshotId,
|
|
string DataIntegritySnapshotId);
|