more features checks. setup improvements

This commit is contained in:
master
2026-02-13 02:04:55 +02:00
parent 9911b7d73c
commit 9ca2de05df
675 changed files with 37550 additions and 1826 deletions

View File

@@ -0,0 +1,38 @@
{
"type": "integration",
"capturedAtUtc": "2026-02-13T11:15:00Z",
"testCommand": "dotnet test src/Policy/__Tests/StellaOps.Policy.Engine.Tests/StellaOps.Policy.Engine.Tests.csproj --no-restore -v normal",
"testFilter": "PathScopeSimulationServiceTests, PathScopeSimulationBridgeServiceTests covering path-scoped simulation, deterministic ordering, what-if deltas, overlay events",
"testsRun": 1278,
"testsPassed": 1278,
"testsFailed": 0,
"targetedTestMethods": [
"PathScopeSimulationServiceTests.StreamAsync_ReturnsDeterministicOrdering",
"PathScopeSimulationServiceTests.StreamAsync_ThrowsOnMissingTarget",
"PathScopeSimulationBridgeServiceTests.SimulateAsync_OrdersByInputAndProducesMetrics",
"PathScopeSimulationBridgeServiceTests.SimulateAsync_WhatIfProducesDeltas",
"PathScopeSimulationBridgeServiceTests.SimulateAsync_PublishesEventsAndSavesOverlays"
],
"behaviorVerified": [
"PathScopeSimulationService: streams simulation results for path-scoped targets, deterministic ordering (sorted by filePath), throws PathScopeSimulationException on empty targets",
"PathScopeSimulationRequest: SchemaVersion, Tenant, BasePolicyRef, CandidatePolicyRef, Subject (purl, lib), Targets (filePath, path prefix, confidence, entrypoint), SimulationOptions (projection fields, limit, includeTrace, deterministic)",
"PathScopeSimulationBridgeService: bridges path-scope simulation with overlay projection, orders decisions by input path order (preserves request ordering), produces evaluation metrics (Evaluated count)",
"WhatIf mode: produces delta analysis for path-scoped changes, compares baseline vs candidate policy decisions",
"Overlay integration: publishes OverlayChangeEvents via IOverlayEventSink, saves overlay state via IOverlayStore, OverlayProjectionService + OverlayChangeEventPublisher pipeline",
"PathScopeSimulationEndpoint: REST endpoint for path-scoped simulation (referenced in feature spec)",
"RiskSimulationService.SimulateWithBreakdown: severity distribution and top movers for targeted paths (referenced in feature spec)",
"ConsoleSimulationDiffService: schema version console-policy-23-001, deterministic before/after severity breakdowns (referenced in feature spec)",
"OverlaySimulationEndpoint: overlay simulation for policy rule changes (referenced in feature spec)"
],
"assertionTypes": [
"value equality (Assert.Equal for decision count, metrics)",
"string containment (Assert.Contains for filePath in serialized JSON)",
"null checks (Assert.NotNull for deltas)",
"collection assertions (Assert.Single for what-if results, Assert.NotEmpty for events/overlays)",
"exception assertions (Assert.ThrowsAsync for empty targets)"
],
"newTestsWritten": [],
"bugsFixed": [],
"rawOutput": "Engine.Tests: Passed! - Failed: 0, Passed: 1278, Skipped: 0, Total: 1278, Duration: 8s 167ms",
"verdict": "pass"
}