The plain version
A smoke alarm test button tells you the button works. It does not tell you the alarm would notice smoke. A better test: secretly change one wire inside the alarm and see whether anyone notices.
Mutation testing does that to code. A tool makes small deliberate breakages, such as flipping an == to != or changing a number, and checks whether at least one test fails for each. If no test fails, that part of the code is not really being checked.
What merged
#222 added scheduled heavy testing on GitHub's free runners, closing issue 220. Three follow-ups used its results: #230, #240 and the fixes inside them.
Weekly fuzzing. cargo-fuzz targets for the four decoders that read outside bytes: module protocol frames (with a re-encode round trip), the Modbus RTU parser, approval messages and the fencing of outside text. A crash fails the job and uploads the input; the input then becomes a regression test.
Weekly mutation testing. cargo-mutants runs on the five safety crates: interlock, policy, bus guard, approvals and module protocol. It is informational and never fails a pull request. A summary job lists, per crate, the mutants caught, missed, timed out and unviable, and each missed mutant by name.
Instruction-count benchmarks on every pull request, failing at more than a 10% increase. See Benchmarks.
What it found
Missed mutants included changing the interlock's stall limit from 2 * HEARTBEAT_PERIOD_TICKS to 2 + HEARTBEAT_PERIOD_TICKS (the two are equal only at a period of 2), changes to the bus guard's length caps and minimum length, and in the approvals crate the consistency check replaced with always-true or always-false, an == flipped to != and an arithmetic change to the payload length. Each was a real gap: the code could have been wrong in that way and every test would have passed.
#230 closed the approvals ones with regression_224_* tests. #240 was tests only, with production code unchanged: 82 of 89 missed mutants are now caught. The remaining seven are equivalent changes, where the mutant behaves identically, or hangs; they are listed in the pull request. Each fix follows the regression rule, with a row in the ledger.
What it does not prove
Mutation testing shows the tests notice changes. It does not show that the code is correct, and a surviving mutant is a candidate gap, not always a bug. Fuzzing for ten minutes a week per target does not show the absence of bugs. All of it runs in simulation; none of it measures behaviour on a real chip.
Reproduce
cargo install cargo-mutants --locked
cargo mutants --package sawbones-approvals
Add --shard 0/8 for a slice. Results are in mutants.out/.