
A test can execute a branch without checking the behavior that makes the branch important. KratosForge’s first reported mutation-testing batch asked a harder question: if a comparison, constant or retry decision were deliberately changed, would the module’s own tests fail? The merged work adds assertions around local writes, the upload queue, cleanup and retries. It reports test gaps, not a newly discovered production bug.
One concrete case is the upload queue’s memory boundary. A fresh queue should accept a first write exactly as large as its memory cap. The new test submits that write, waits for it to start, flushes the queue and checks that held memory returns to zero. An accidental nonzero initial memory count could otherwise make the first full-cap write wait for capacity that was never in use. This tests the consequence an engineer cares about, rather than merely observing that the queue constructor ran.
The retry tests target another consequential distinction: a dropped data-file upload and an uncertain log commit do not automatically justify the same retry. The added assertions pin status sets, specific Windows Delta log error shapes, attempt counts and wait behavior. A test that accepts any returned error would leave more room for a changed predicate to duplicate a write or abandon a recoverable one. The value is the more precise contract, not the number of new test functions.
The published method has boundaries. It samples up to 150 mutations per module with a fixed seed, runs each module’s selected tests, and counts timeouts as detected mutations. The report classifies the remaining survivors as behaviorally equivalent in the assessed context. It also says the custom mutator is kept outside the repository; its detailed instructions therefore do not make the full run reproducible from the repository checkout alone. This article inspected the report and committed tests, rather than independently rerunning that experiment.
This is repository engineering work, not a shipped application feature or a claim that the write path is now bug-free. The useful next step for another team is small: choose one expensive failure, introduce a plausible wrong condition in an isolated copy, and confirm that a focused test fails for the right reason. If it stays green, strengthen the observable assertion. Keep the experiment away from a working production checkout, and distinguish a test that detects a fault from a test suite that merely reaches the line.
← All publications