Skip to content

Core mutation follow-up (FLT-359)

Findings

No production bug reproduced by the added tests. Production code, feature flags, mutation thresholds and mutation exclusions were not changed. All providers, clocks and ledgers in the new tests are in-memory fakes; no live service or credentials are used.

The supplied Stryker report contains 338 Survived/NoCoverage entries: ApprovalGate 30, Approvers 108, Jcs 89, Models 111. New tests target security-relevant observable behavior rather than logging, scheduling hints or equivalent mutations.

Added coverage

  • Round3GateTests: tick-precise expiry/skew edges, positive lifetime and inclusive 30-minute cap, Unix epoch boundary, challenge creation bindings, failed clock observations before/after fetch, each non-Approved decision, provider exception classification.
  • Round3ExecutorTests: expiry/skew/lifetime/epoch boundaries, UUID version/variant, every non-Approved and undefined decision, missing/case-mismatched service/entity/factor/challenge/hash pins, clock failure/rollback, and no effect commit on rejection.
  • Round3JcsTests: every JSON value kind, array order, nested key order, shortest number notation boundaries, all control escapes, quote/backslash handling, UTF-16 ordering, duplicate decoded keys, NFC distinction, surrogate boundaries and non-finite overflow. Action parser boundary tests use the real ActionJson serializer before introducing duplicate keys.
  • Round3PolicyModelTests: enrollment validation, distinct-person role assignment even when count and role union pass, missing roles/unknown signers, exact 100-signature cap, immutable configured policy, label ASCII/NFC/lookalike rejection, digest bounds, exact decimal strings, model parse validation and target equality.

Verification

The initial dotnet test --no-restore exposed a syntax error in the new test exception lambda, which was corrected. The next run could not copy existing default-output DLLs because another process held them open (MSB3027/MSB3021). No other process was stopped.

Verification uses a separate output directory with the same project, tests and restored assets:

dotnet test --no-restore -p:OutputPath=bin/CoreR3/ --logger 'trx;LogFileName=core-r3.trx' --results-directory docs/review-r3/test-results

See core-tests-r3-isolated.log, core-tests-r3-isolated.err and test-results/core-r3.trx for the final receipt.

Mutation score after these additions is unverified: Stryker was not rerun. The existing local runtime investigation in docs/review-r1/cedric-r2-stryker.md documents NuGet configuration access failure and possible restore fallback; no network or restore was attempted in this task. No claim is made that the 60% mutation gate now passes.

Final observed result (188 added Core test cases; 447 suite cases):

Passed!  - Failed:     0, Passed:   447, Skipped:     0, Total:   447, Duration: 5 s - Forge.Approvals.Tests.dll (net10.0)

Final stderr was empty. git diff --name-only returned no tracked modifications; the four new test files and this findings document remain untracked for review. No commit or push was performed.