$ X100_FAST=1 node --test --test-name-pattern="a second sync of a row that holds changes no cell" test/ledger-laws.test.mjs
mutate ledger-sync-twice
files lib/verify.mjs (lines 212 to 223)
planted 31 edits, every one this command can make here.
killed    10. The check failed on a planted defect.
survived  21. The check passed with the defect in place.
invalid   0. The edit left code that does not parse, so it was not run.
score     10 of 31 caught of the defects that ran, 32.3%.

survivors. Each is a defect the check did not notice.
  lib/verify.mjs:214  condition: said.length < 12 becomes false
  lib/verify.mjs:214  compare: < becomes <=
  lib/verify.mjs:214  number: 12 becomes 13
  lib/verify.mjs:215  condition: row.kind === 'waived' becomes false
  lib/verify.mjs:215  word: 'waived' becomes 'holds'
  lib/verify.mjs:215  word: 'waived' becomes 'sync'
  lib/verify.mjs:216  condition: row.status !== 'holds' becomes false
  lib/verify.mjs:216  arithmetic: + becomes -
  lib/verify.mjs:216  arithmetic: + becomes -
  lib/verify.mjs:216  arithmetic: + becomes -
  lib/verify.mjs:216  arithmetic: + becomes -
  lib/verify.mjs:218  condition: hash.missing.length becomes false
  lib/verify.mjs:218  arithmetic: + becomes -
  lib/verify.mjs:218  arithmetic: + becomes -
  lib/verify.mjs:219  condition: row.ran_hash !== hash.hash becomes false
  lib/verify.mjs:219  arithmetic: + becomes -
  lib/verify.mjs:219  arithmetic: + becomes -
  lib/verify.mjs:221  word: 'sync' becomes 'waived'
  lib/verify.mjs:221  word: 'sync' becomes 'holds'
  lib/verify.mjs:221  word: 'holds' becomes 'waived'
  lib/verify.mjs:221  word: 'holds' becomes 'sync'

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:214  condition: said.length < 12 becomes true. exit 1
  survived  lib/verify.mjs:214  condition: said.length < 12 becomes false
  survived  lib/verify.mjs:214  compare: < becomes <=
  survived  lib/verify.mjs:214  number: 12 becomes 13
  killed    lib/verify.mjs:215  condition: row.kind === 'waived' becomes true. exit 1
  survived  lib/verify.mjs:215  condition: row.kind === 'waived' becomes false
  killed    lib/verify.mjs:215  compare: === becomes !==. exit 1
  survived  lib/verify.mjs:215  word: 'waived' becomes 'holds'
  survived  lib/verify.mjs:215  word: 'waived' becomes 'sync'
  killed    lib/verify.mjs:216  condition: row.status !== 'holds' becomes true. exit 1
  survived  lib/verify.mjs:216  condition: row.status !== 'holds' becomes false
  killed    lib/verify.mjs:216  compare: !== becomes ===. exit 1
  killed    lib/verify.mjs:216  word: 'holds' becomes 'waived'. exit 1
  killed    lib/verify.mjs:216  word: 'holds' becomes 'sync'. exit 1
  survived  lib/verify.mjs:216  arithmetic: + becomes -
  survived  lib/verify.mjs:216  arithmetic: + becomes -
  survived  lib/verify.mjs:216  arithmetic: + becomes -
  survived  lib/verify.mjs:216  arithmetic: + becomes -
  killed    lib/verify.mjs:218  condition: hash.missing.length becomes true. exit 1
  survived  lib/verify.mjs:218  condition: hash.missing.length becomes false
  survived  lib/verify.mjs:218  arithmetic: + becomes -
  survived  lib/verify.mjs:218  arithmetic: + becomes -
  killed    lib/verify.mjs:219  condition: row.ran_hash !== hash.hash becomes true. exit 1
  survived  lib/verify.mjs:219  condition: row.ran_hash !== hash.hash becomes false
  killed    lib/verify.mjs:219  compare: !== becomes ===. exit 1
  survived  lib/verify.mjs:219  arithmetic: + becomes -
  survived  lib/verify.mjs:219  arithmetic: + becomes -
  survived  lib/verify.mjs:221  word: 'sync' becomes 'waived'
  survived  lib/verify.mjs:221  word: 'sync' becomes 'holds'
  survived  lib/verify.mjs:221  word: 'holds' becomes 'waived'
  survived  lib/verify.mjs:221  word: 'holds' becomes 'sync'
