Files
openwaf/dotnet/OpenWaf.Tests.Unit
openwaf-agent cfe47d10b5 The cumulative-loss criterion had no test that could fail it
OPEN-31 criterion 2 — "EntriesLost is cumulative, not a gauge: a later
successful write does not erase what was already lost" — is carried by one
character in DurabilityHealth.RecordFailure. The integration suite reads
the count after one failed flush and again after a later success, and both
of those read the same under `EntriesLost = entriesLost` as under `+=`:
the difference only appears across two failed writes carrying different
row counts, which nothing in the suite was doing.

DurabilityHealthTests (4) covers the invariant directly, plus per-pillar
isolation of recovery (a happy retention prune says nothing about the
alert writer) and the root-cause rule (EF's wrapper message is not the
reason an operator can act on).

The mutation was run, not assumed: with `+=` changed to `=`, unit answers
Failed 1 / Passed 131 and integration answers 170/170 — i.e. before this
file the whole suite was green on a build that forgot lost rows. Reverted;
132/132 and 170/170.
2026-10-02 13:16:19 +02:00
..