$ X100_FAST=1 node --test --test-name-pattern="a row is stale by the bytes of the code it covers" test/ledger-laws.test.mjs
mutate ledger-stale-by-bytes
files lib/verify.mjs (lines 56 to 75)
planted 21 edits, every one this command can make here.
killed    8. The check failed on a planted defect.
survived  13. The check passed with the defect in place.
invalid   0. The edit left code that does not parse, so it was not run.
score     8 of 21 caught of the defects that ran, 38.1%.

survivors. Each is a defect the check did not notice.
  lib/verify.mjs:57  condition: stat.isSymbolicLink() becomes false
  lib/verify.mjs:58  condition: stat.isFile() becomes true
  lib/verify.mjs:59  condition: !stat.isDirectory() becomes true
  lib/verify.mjs:59  condition: !stat.isDirectory() becomes false
  lib/verify.mjs:59  boolean: false becomes true
  lib/verify.mjs:61  condition: SKIP_DIRS.has(name) || name.startsWith('.') becomes true
  lib/verify.mjs:61  condition: SKIP_DIRS.has(name) || name.startsWith('.') becomes false
  lib/verify.mjs:61  operand: delete SKIP_DIRS.has(name) ||
  lib/verify.mjs:61  operand: delete || name.startsWith('.')
  lib/verify.mjs:61  logic: || becomes &&
  lib/verify.mjs:62  arithmetic: + becomes -
  lib/verify.mjs:62  arithmetic: + becomes -
  lib/verify.mjs:64  boolean: true becomes false

next. Read each survivor: is it a gap in the check, or an edit that changes nothing? For a gap, add a case that fails with that defect in, then run this again. --min <percent> makes a lower score exit 1.

What this cannot show. A survivor is a defect the check did not notice, or an edit that changes nothing a person could see (an equivalent defect). Only a reader can tell which.
A count is about the defects planted and says nothing about the ones that were not.
Edits are single and come from a fixed list, so a defect that needs two is not measured.
The automatic edits read JavaScript and TypeScript. --edits takes a list of edits for any other language.

every defect
  killed    lib/verify.mjs:57  condition: stat.isSymbolicLink() becomes true. exit 1
  survived  lib/verify.mjs:57  condition: stat.isSymbolicLink() becomes false
  survived  lib/verify.mjs:58  condition: stat.isFile() becomes true
  killed    lib/verify.mjs:58  condition: stat.isFile() becomes false. exit 1
  killed    lib/verify.mjs:58  boolean: true becomes false. exit 1
  survived  lib/verify.mjs:59  condition: !stat.isDirectory() becomes true
  survived  lib/verify.mjs:59  condition: !stat.isDirectory() becomes false
  survived  lib/verify.mjs:59  boolean: false becomes true
  survived  lib/verify.mjs:61  condition: SKIP_DIRS.has(name) || name.startsWith('.') becomes true
  survived  lib/verify.mjs:61  condition: SKIP_DIRS.has(name) || name.startsWith('.') becomes false
  survived  lib/verify.mjs:61  operand: delete SKIP_DIRS.has(name) ||
  survived  lib/verify.mjs:61  operand: delete || name.startsWith('.')
  survived  lib/verify.mjs:61  logic: || becomes &&
  survived  lib/verify.mjs:62  arithmetic: + becomes -
  survived  lib/verify.mjs:62  arithmetic: + becomes -
  survived  lib/verify.mjs:64  boolean: true becomes false
  killed    lib/verify.mjs:71  condition: !walk(root, entry, files) becomes true. exit 1
  killed    lib/verify.mjs:71  condition: !walk(root, entry, files) becomes false. exit 1
  killed    lib/verify.mjs:72  word: 'sha256' becomes 'hex'. exit 1
  killed    lib/verify.mjs:73  arithmetic: + becomes -. exit 1
  killed    lib/verify.mjs:74  word: 'hex' becomes 'sha256'. exit 1
