save checkpoint

This commit is contained in:
master
2026-02-14 09:11:48 +02:00
parent 9ca2de05df
commit e9aeadc040
1512 changed files with 30863 additions and 4728 deletions

View File

@@ -0,0 +1,72 @@
{
"type": "integration",
"capturedAtUtc": "2026-02-13T14:36:00Z",
"testCommand": "dotnet test src/Policy/__Tests/StellaOps.Policy.Tests/StellaOps.Policy.Tests.csproj --no-restore -v normal && dotnet test src/Policy/__Tests/StellaOps.Policy.Engine.Tests/StellaOps.Policy.Engine.Tests.csproj --no-restore -v normal && dotnet test src/Policy/__Tests/StellaOps.Policy.Unknowns.Tests/StellaOps.Policy.Unknowns.Tests.csproj --no-restore -v normal",
"testFilter": "RiskBudgetTests, BudgetLedgerTests, BudgetEnforcementIntegrationTests, UnknownBudgetServiceTests, UnknownsBudgetEnforcer, RiskPointScoringTests (budget escalation), LedgerExportServiceTests",
"testsRun": 2118,
"testsPassed": 2118,
"testsFailed": 0,
"targetedTestMethods": [
"RiskBudgetTests.Budget_WithNoConsumption_IsGreen",
"RiskBudgetTests.Budget_With30PercentUsed_IsGreen",
"RiskBudgetTests.Budget_With40PercentUsed_IsYellow",
"RiskBudgetTests.Budget_With70PercentUsed_IsRed",
"RiskBudgetTests.Budget_With100PercentUsed_IsExhausted",
"RiskBudgetTests.Budget_Overconsumed_IsExhausted",
"RiskBudgetTests.DefaultAllocations_AreCorrect (4 tiers: Internal=300, NonCritical=200, Critical=120, Safety=80)",
"BudgetLedgerTests.GetBudget_CreatesDefaultWhenNotExists",
"BudgetLedgerTests.GetBudget_ReturnsExistingBudget",
"BudgetLedgerTests.Consume_DeductsBudget",
"BudgetLedgerTests.Consume_FailsWhenInsufficientBudget",
"BudgetLedgerTests.GetHistory_ReturnsEntries",
"BudgetLedgerTests.AdjustAllocation_IncreasesCapacity",
"BudgetLedgerTests.AdjustAllocation_DecreasesCapacity",
"BudgetLedgerTests.AdjustAllocation_DoesNotGoBelowZero",
"BudgetEnforcementIntegrationTests.ThresholdTransition_GreenToYellow",
"BudgetEnforcementIntegrationTests.ThresholdTransition_YellowToRed",
"BudgetEnforcementIntegrationTests.ThresholdTransition_RedToExhausted",
"BudgetEnforcementIntegrationTests.AdjustAllocation_IncreasesCapacity_ChangesThreshold (Red->Yellow via earned capacity)",
"BudgetEnforcementIntegrationTests.AdjustAllocation_DecreaseCapacity_ChangesThreshold (penalty)",
"BudgetEnforcementIntegrationTests.GetHistory_ReturnsAllEntriesForWindow (3 entries with release IDs + RP amounts)",
"BudgetEnforcementIntegrationTests.GetHistory_DifferentWindows_AreIsolated",
"UnknownBudgetServiceTests.CheckBudget_WithinLimit_ReturnsSuccess",
"UnknownBudgetServiceTests.CheckBudget_ExceedsTotal_ReturnsViolation",
"UnknownBudgetServiceTests.CheckBudget_ExceedsReasonLimit_ReturnsSpecificViolation",
"UnknownBudgetServiceTests.CheckBudgetWithEscalation_ExceptionCovers_AllowsOperation",
"RiskPointScoringTests.CalculateScore_EscalatesGateOnYellowBudget (G2->G3)",
"RiskPointScoringTests.CalculateScore_EscalatesGateOnRedBudget (G1->G2)",
"RiskPointScoringTests.CalculateScore_MaxGateOnExhaustedBudget (->G4)",
"LedgerExportServiceTests.BuildAsync_ProducesOrderedNdjson"
],
"behaviorVerified": [
"Per-service risk budget with Green/Yellow/Red/Exhausted status thresholds (0-39%/40-69%/70-99%/100%+)",
"Budget ledger tracks RP consumed per release with release ID and timestamp",
"Budget consumption deduction with remaining capacity tracking",
"Budget consumption fails with Insufficient error when over limit",
"Budget history returns all entries for a window with release IDs and RP amounts",
"Earned capacity replenishment: AdjustAllocation increases allocated (Red->Yellow transition verified)",
"Capacity penalty: AdjustAllocation decreases allocated with floor at 0",
"Budget constraint enforcement: Exhausted blocks non-emergency changes, Red blocks high-risk categories",
"Gate level escalation based on budget status (Yellow->G2+1, Red->G1+1, Exhausted->G4)",
"Default tier-based allocations: Internal=300, CustomerFacingNonCritical=200, CustomerFacingCritical=120, SafetyCritical=80",
"Window-based budget management with independent windows and no carry-over",
"UnknownBudgetService: per-reason-code budget limits and violations",
"UnknownsBudgetEnforcer: Critical/High/Medium/Low severity thresholds, Block/Warn/Log actions",
"Ledger export: deterministic NDJSON with schema policy-ledger-export-v1, ordered by component PURL"
],
"assertionTypes": [
"budget-status-threshold",
"consumption-tracking",
"ledger-entry-audit",
"earned-capacity-replenishment",
"gate-escalation",
"constraint-enforcement",
"window-isolation",
"concurrent-safety",
"deterministic-export"
],
"newTestsWritten": [],
"bugsFixed": [],
"rawOutput": "Passed! - Failed: 0, Passed: 781, Skipped: 0, Total: 781 (Policy.Tests) + Passed! - Failed: 0, Passed: 1278, Skipped: 0, Total: 1278 (Engine.Tests) + Passed! - Failed: 0, Passed: 59, Skipped: 0, Total: 59 (Unknowns.Tests)",
"verdict": "pass"
}