$ X100_FAST=1 node --test --test-name-pattern="verify status exits 0 only when" test/ledger-laws.test.mjs
mutate ledger-status-exit
files lib/commands/verify.mjs (lines 217 to 234)
planted 40 of 80 possible edits (sampled, seed 1, at most 40).
killed    17. The check failed on a planted defect.
survived  23. The check passed with the defect in place.
invalid   0. The edit left code that does not parse, so it was not run.
score     17 of 40 caught of the defects that ran, 42.5%.

survivors. Each is a defect the check did not notice.
  lib/commands/verify.mjs:217  operand: delete || sub === undefined
  lib/commands/verify.mjs:218  arithmetic: + becomes -
  lib/commands/verify.mjs:218  number: 0 becomes 1
  lib/commands/verify.mjs:221  number: 0 becomes 1
  lib/commands/verify.mjs:225  condition: state === 'holds' becomes false
  lib/commands/verify.mjs:225  word: 'holds' becomes 'status'
  lib/commands/verify.mjs:225  word: 'holds' becomes 'waived'
  lib/commands/verify.mjs:225  word: 'holds' becomes 'hand'
  lib/commands/verify.mjs:225  condition: by === 'hand' becomes true
  lib/commands/verify.mjs:225  word: 'hand' becomes 'waived'
  lib/commands/verify.mjs:226  number: 9 becomes 10
  lib/commands/verify.mjs:226  compare: === becomes !==
  lib/commands/verify.mjs:226  word: 'waived' becomes 'status'
  lib/commands/verify.mjs:226  word: 'waived' becomes 'holds'
  lib/commands/verify.mjs:226  word: 'waived' becomes 'hand'
  lib/commands/verify.mjs:226  word: 'waived' becomes 'status'
  lib/commands/verify.mjs:226  word: 'waived' becomes 'holds'
  lib/commands/verify.mjs:226  word: 'waived' becomes 'hand'
  lib/commands/verify.mjs:226  arithmetic: + becomes -
  lib/commands/verify.mjs:226  word: 'holds' becomes 'status'
  lib/commands/verify.mjs:226  word: 'waived' becomes 'holds'
  lib/commands/verify.mjs:232  condition: older becomes false
  lib/commands/verify.mjs:232  arithmetic: + becomes -

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/commands/verify.mjs:217  condition: sub === 'status' || sub === undefined becomes false. exit 1
  survived  lib/commands/verify.mjs:217  operand: delete || sub === undefined
  killed    lib/commands/verify.mjs:217  word: 'status' becomes 'holds'. exit 1
  killed    lib/commands/verify.mjs:217  word: 'status' becomes 'hand'. exit 1
  killed    lib/commands/verify.mjs:217  logic: || becomes &&. exit 1
  survived  lib/commands/verify.mjs:218  arithmetic: + becomes -
  killed    lib/commands/verify.mjs:218  word: 'status' becomes 'holds'. exit 1
  survived  lib/commands/verify.mjs:218  number: 0 becomes 1
  killed    lib/commands/verify.mjs:219  number: 0 becomes 1. exit 1
  survived  lib/commands/verify.mjs:221  number: 0 becomes 1
  killed    lib/commands/verify.mjs:224  condition: state !== 'holds' && state !== 'waived' becomes false. exit 1
  killed    lib/commands/verify.mjs:224  operand: delete state !== 'holds' &&. exit 1
  killed    lib/commands/verify.mjs:224  compare: !== becomes ===. exit 1
  killed    lib/commands/verify.mjs:224  word: 'holds' becomes 'status'. exit 1
  killed    lib/commands/verify.mjs:224  word: 'holds' becomes 'hand'. exit 1
  killed    lib/commands/verify.mjs:224  logic: && becomes ||. exit 1
  survived  lib/commands/verify.mjs:225  condition: state === 'holds' becomes false
  survived  lib/commands/verify.mjs:225  word: 'holds' becomes 'status'
  survived  lib/commands/verify.mjs:225  word: 'holds' becomes 'waived'
  survived  lib/commands/verify.mjs:225  word: 'holds' becomes 'hand'
  survived  lib/commands/verify.mjs:225  condition: by === 'hand' becomes true
  survived  lib/commands/verify.mjs:225  word: 'hand' becomes 'waived'
  survived  lib/commands/verify.mjs:226  number: 9 becomes 10
  killed    lib/commands/verify.mjs:226  arithmetic: + becomes -. exit 1
  survived  lib/commands/verify.mjs:226  compare: === becomes !==
  survived  lib/commands/verify.mjs:226  word: 'waived' becomes 'status'
  survived  lib/commands/verify.mjs:226  word: 'waived' becomes 'holds'
  survived  lib/commands/verify.mjs:226  word: 'waived' becomes 'hand'
  survived  lib/commands/verify.mjs:226  word: 'waived' becomes 'status'
  survived  lib/commands/verify.mjs:226  word: 'waived' becomes 'holds'
  survived  lib/commands/verify.mjs:226  word: 'waived' becomes 'hand'
  survived  lib/commands/verify.mjs:226  arithmetic: + becomes -
  killed    lib/commands/verify.mjs:226  arithmetic: + becomes -. exit 1
  killed    lib/commands/verify.mjs:226  arithmetic: + becomes -. exit 1
  survived  lib/commands/verify.mjs:226  word: 'holds' becomes 'status'
  survived  lib/commands/verify.mjs:226  word: 'waived' becomes 'holds'
  survived  lib/commands/verify.mjs:232  condition: older becomes false
  survived  lib/commands/verify.mjs:232  arithmetic: + becomes -
  killed    lib/commands/verify.mjs:233  number: 1 becomes 0. exit 1
  killed    lib/commands/verify.mjs:233  number: 0 becomes 1. exit 1
