This commit is contained in:
StellaOps Bot
2025-12-25 19:58:42 +02:00
6 changed files with 123 additions and 25 deletions

View File

@@ -52,13 +52,13 @@ public sealed class EwsVerdictDeterminismTests
// Assert - All results should be byte-identical
var firstScore = results[0].Score;
var firstBucket = results[0].Bucket;
var firstDimensions = results[0].Dimensions;
var firstBreakdown = results[0].Breakdown;
results.Should().AllSatisfy(r =>
{
r.Score.Should().Be(firstScore, "score must be deterministic");
r.Bucket.Should().Be(firstBucket, "bucket must be deterministic");
r.Dimensions.Should().BeEquivalentTo(firstDimensions, "dimensions must be deterministic");
r.Breakdown.Should().BeEquivalentTo(firstBreakdown, "breakdown must be deterministic");
});
}
@@ -155,16 +155,16 @@ public sealed class EwsVerdictDeterminismTests
// Custom policy with different weights
var customPolicy = new EvidenceWeightPolicy
{
PolicyId = "custom-test-policy",
Version = "1.0",
Version = "ews.v1",
Profile = "custom-test-policy",
Weights = new EvidenceWeights
{
Reachability = 0.50, // Much higher weight on reachability
Runtime = 0.10,
Backport = 0.05,
Exploit = 0.20,
Source = 0.10,
Mitigation = 0.05
Rch = 0.50, // Much higher weight on reachability
Rts = 0.10,
Bkp = 0.05,
Xpl = 0.20,
Src = 0.10,
Mit = 0.05
},
Buckets = EvidenceWeightPolicy.DefaultProduction.Buckets
};