# made by 100x verify mutate
# command: X100_FAST=1 node --test --test-name-pattern="the ledger is written back as it was read" test/ledger-laws.test.mjs
# defect: lib/decisions.mjs:8 edit: a cell that already starts with the guard gets another one at every write
# exit: 1
# digest: c8f5cd0d61a06b01
FAIL  ledger-text-roundtrip. a planted defect made the check fail at lib/decisions.mjs:8: edit: a cell that already starts with the guard gets another one at every write (exit 1)
✖ the ledger is written back as it was read: a row whose text holds a quote, an apostrophe, a pipe or a leading dash is the same after every command that writes (4504.479625ms)
ℹ tests 1
ℹ suites 0
ℹ pass 0
ℹ fail 1
ℹ cancelled 0
ℹ skipped 0
ℹ todo 0
ℹ duration_ms 5586.620375

✖ failing tests:

test at test/ledger-laws.test.mjs:119:1
✖ the ledger is written back as it was read: a row whose text holds a quote, an apostrophe, a pipe or a leading dash is the same after every command that writes (4504.479625ms)
  AssertionError [ERR_ASSERTION]: writing again changes nothing
  + actual - expected
  
    'id\tkind\tproperty\tcovers\tcovers_hash\tcommand\tlevel\tred\tstatus\tchecked_at\tcommit\tran_hash\n' +
  +   `order-money\tinvariant\t''''- "Refunded" never exceeds paid | it's the rule; a=b\tverify/check.mjs\tb7bfd0c8d8e58faf\tnode verify/check.mjs\texhaustive\tverify/red/order-money.txt\tholds\t2026-12-02T03:56:28Z\tno-commit\tb7bfd0c8d8e58faf\n`
  -   `order-money\tinvariant\t'''- "Refunded" never exceeds paid | it's the rule; a=b\tverify/check.mjs\tb7bfd0c8d8e58faf\tnode verify/check.mjs\texhaustive\tverify/red/order-money.txt\tholds\t2026-12-02T03:56:28Z\tno-commit\tb7bfd0c8d8e58faf\n`
  
      at TestContext.<anonymous> (file://<project>/test/ledger-laws.test.mjs:129:10)
      at Test.runInAsyncScope (node:async_hooks:226:14)
      at Test.run (node:internal/test_runner/test:1402:25)
      at Test.start (node:internal/test_runner/test:1262:17)
      at startSubtestAfterBootstrap (node:internal/test_runner/harness:387:17) {
    generatedMessage: false,
    code: 'ERR_ASSERTION',
    actual: `id\tkind\tproperty\tcovers\tcovers_hash\tcommand\tlevel\tred\tstatus\tchecked_at\tcommit\tran_hash\norder-money\tinvariant\t''''- "Refunded" never exceeds paid | it's the rule; a=b\tverify/check.mjs\tb7bfd0c8d8e58faf\tnode verify/check.mjs\texhaustive\tverify/red/order-money.txt\tholds\t2026-12-02T03:56:28Z\tno-commit\tb7bfd0c8d8e58faf\n`,
    expected: `id\tkind\tproperty\tcovers\tcovers_hash\tcommand\tlevel\tred\tstatus\tchecked_at\tcommit\tran_hash\norder-money\tinvariant\t'''- "Refunded" never exceeds paid | it's the rule; a=b\tverify/check.mjs\tb7bfd0c8d8e58faf\tnode verify/check.mjs\texhaustive\tverify/red/order-money.txt\tholds\t2026-12-02T03:56:28Z\tno-commit\tb7bfd0c8d8e58faf\n`,
    operator: 'strictEqual',
    diff: 'simple'
  }
