more features checks. setup improvements
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
{
|
||||
"tier": 0,
|
||||
"type": "source_check",
|
||||
"capturedAtUtc": "2026-02-12T23:10:00Z",
|
||||
"feature": "blast-radius-fleet-view",
|
||||
"module": "policy",
|
||||
"runId": "run-002",
|
||||
"result": "pass",
|
||||
"filesExpected": [
|
||||
"src/Policy/__Libraries/StellaOps.Policy.Unknowns/Models/BlastRadius.cs",
|
||||
"src/Policy/__Libraries/StellaOps.Policy.Unknowns/Models/ContainmentSignals.cs",
|
||||
"src/Policy/__Libraries/StellaOps.Policy.Unknowns/Services/UnknownRanker.cs",
|
||||
"src/Policy/__Libraries/StellaOps.Policy.Unknowns/Models/Unknown.cs",
|
||||
"src/Policy/__Libraries/StellaOps.Policy.Unknowns/UnknownsBudgetEnforcer.cs",
|
||||
"src/Policy/StellaOps.Policy.Engine/Endpoints/UnknownsEndpoints.cs"
|
||||
],
|
||||
"filesFound": [
|
||||
"src/Policy/__Libraries/StellaOps.Policy.Unknowns/Models/BlastRadius.cs",
|
||||
"src/Policy/__Libraries/StellaOps.Policy.Unknowns/Models/ContainmentSignals.cs",
|
||||
"src/Policy/__Libraries/StellaOps.Policy.Unknowns/Services/UnknownRanker.cs",
|
||||
"src/Policy/__Libraries/StellaOps.Policy.Unknowns/Models/Unknown.cs",
|
||||
"src/Policy/__Libraries/StellaOps.Policy.Unknowns/UnknownsBudgetEnforcer.cs",
|
||||
"src/Policy/StellaOps.Policy.Engine/Endpoints/UnknownsEndpoints.cs"
|
||||
],
|
||||
"filesMissing": [],
|
||||
"classesVerified": [
|
||||
"BlastRadius (sealed record): Dependents, NetFacing, Privilege fields",
|
||||
"ContainmentSignals (sealed record): Seccomp, FileSystem, NetworkPolicy fields",
|
||||
"UnknownRanker (sealed class implements IUnknownRanker): ComputeContainmentReduction method",
|
||||
"Unknown (sealed record): BlastRadius reference field",
|
||||
"UnknownsBudgetEnforcer: budget-aware threshold enforcement",
|
||||
"UnknownsEndpoints: REST API for querying unknowns with blast radius data"
|
||||
],
|
||||
"percentFound": 100,
|
||||
"verdict": "pass",
|
||||
"notes": "All 6 source files verified on disk. BlastRadius model defines Dependents(int)/NetFacing(bool)/Privilege(string?). ContainmentSignals model defines Seccomp/FileSystem/NetworkPolicy. UnknownRanker.ComputeContainmentReduction implements blast radius scoring with configurable reductions."
|
||||
}
|
||||
@@ -0,0 +1,50 @@
|
||||
{
|
||||
"tier": 2,
|
||||
"type": "integration",
|
||||
"subtype": "2d",
|
||||
"capturedAtUtc": "2026-02-12T23:12:00Z",
|
||||
"feature": "blast-radius-fleet-view",
|
||||
"module": "policy",
|
||||
"runId": "run-002",
|
||||
"testCommand": "dotnet test src/Policy/StellaOps.Policy.tests.slnf --filter \"FullyQualifiedName~UnknownRankerTests\" --no-restore -v normal",
|
||||
"testFilter": "FullyQualifiedName~UnknownRankerTests",
|
||||
"testProject": "StellaOps.Policy.Tests",
|
||||
"testFile": "src/Policy/__Tests/StellaOps.Policy.Unknowns.Tests/Services/UnknownRankerTests.cs",
|
||||
"testsRun": 708,
|
||||
"testsPassed": 708,
|
||||
"testsFailed": 0,
|
||||
"testsSkipped": 0,
|
||||
"filterNote": "Microsoft.Testing.Platform runs all 708 tests in the slnf; filter is advisory. UnknownRankerTests contains 34 targeted test methods covering blast radius fleet view behaviors.",
|
||||
"targetedTestMethods": [
|
||||
"ComputeContainmentReduction_NullInputs_ReturnsZero",
|
||||
"ComputeContainmentReduction_IsolatedPackage_Returns15Percent",
|
||||
"ComputeContainmentReduction_AllContainmentFactors_CapsAt40Percent",
|
||||
"Rank_WithContainment_AppliesReductionToScore",
|
||||
"Rank_ContainmentDisabled_NoReduction",
|
||||
"Rank_ScoreAbove75_AssignsHotBand",
|
||||
"Rank_ScoreBetween50And75_AssignsWarmBand",
|
||||
"Rank_ScoreBetween25And50_AssignsColdBand",
|
||||
"Rank_ScoreBelow25_AssignsResolvedBand"
|
||||
],
|
||||
"behaviorVerified": [
|
||||
"BlastRadius.Dependents=0 yields 15% IsolatedReduction (ComputeContainmentReduction_IsolatedPackage_Returns15Percent asserts 0.15m)",
|
||||
"BlastRadius.NetFacing=false yields 5% NotNetFacingReduction (covered in AllContainmentFactors test with NetFacing=false)",
|
||||
"BlastRadius.Privilege='none' yields 5% NonRootReduction (covered in AllContainmentFactors test with Privilege='none')",
|
||||
"ContainmentSignals.Seccomp='enforced' yields 10% reduction (covered in AllContainmentFactors test)",
|
||||
"ContainmentSignals.FileSystem='ro' yields 10% reduction (covered in AllContainmentFactors test)",
|
||||
"ContainmentSignals.NetworkPolicy='isolated' yields 5% reduction (covered in AllContainmentFactors test)",
|
||||
"Maximum containment reduction capped at 40% (AllContainmentFactors_CapsAt40Percent asserts 0.40m with total signals summing to 50%)",
|
||||
"Score with containment: 60.00 * (1 - 0.20) = 48.00 (Rank_WithContainment_AppliesReductionToScore)",
|
||||
"EnableContainmentReduction=false disables all reduction (Rank_ContainmentDisabled_NoReduction asserts 0m reduction and full 60.00 score)",
|
||||
"Null blast radius and containment returns 0 reduction (ComputeContainmentReduction_NullInputs_ReturnsZero)",
|
||||
"Band assignment: Hot >= 75, Warm >= 50, Cold >= 25, Resolved < 25 (4 band tests with meaningful score range assertions)"
|
||||
],
|
||||
"assertionTypes": [
|
||||
"FluentAssertions .Should().Be() for exact decimal score equality",
|
||||
"FluentAssertions .Should().BeGreaterThanOrEqualTo() for band threshold ranges",
|
||||
"FluentAssertions .Should().BeLessThan() for upper band boundary exclusion",
|
||||
"FluentAssertions .Should().Be(UnknownBand.Hot/Warm/Cold/Resolved) for enum band assignment"
|
||||
],
|
||||
"verdict": "pass",
|
||||
"notes": "708/708 tests pass (3.6s). UnknownRankerTests comprehensively covers blast radius fleet view: BlastRadius model (Dependents/NetFacing/Privilege), ContainmentSignals model (Seccomp/FileSystem/NetworkPolicy), per-factor reduction percentages (15%/5%/5%/10%/10%/5%), 40% max cap, score application formula (decayedScore * (1 - containmentReduction)), disable option via EnableContainmentReduction=false, and band assignment integration."
|
||||
}
|
||||
Reference in New Issue
Block a user