✔ isRunId accepts the run id shape and nothing else (1.160098ms)
✔ a missing data root or runs directory lists nothing (1.712897ms)
✔ runs as a regular file lists nothing, as before (0.650182ms)
✔ listRunIds keeps r- names only, sorted oldest first (1.113564ms)
✔ listRunRecords returns each result, or null for an incomplete or unreadable one (2.406922ms)
✔ readRunRecord returns documents and artifacts in directory order (1.572189ms)
✔ readRunRecord is null for a missing run, a dangling link or a file (0.777226ms)
✔ readRunRecord and readRunDocument refuse an invalid run id before touching the disk (0.754688ms)
✔ readRunDocument reads only the three run documents (0.682826ms)
✔ a link inside the data root is followed (1.118588ms)
✔ a data root that is itself a link is trusted as configured (0.860124ms)
✔ a run directory linked out of the data root is never read (1.212714ms)
✔ a document linked out of the data root reads as null (1.539772ms)
✔ a runs directory linked out of the data root refuses (0.792065ms)
✔ a relative link that climbs out of the data root refuses (0.634973ms)
✔ a sibling whose name starts with the data root's name is outside it (0.819447ms)
✔ a link loop refuses instead of reading as missing (1.025891ms)
✔ an unreadable runs directory refuses instead of listing nothing (0.73579ms)
✔ an unreadable run directory refuses instead of reading as missing (0.654308ms)
✔ a link to the data root's parent is outside it (0.431647ms)
✔ listRunIds sorts whatever order the directory returns (0.90279ms)
✔ listRunRecords lists an r- name that isn't a valid run id, as before (0.544152ms)
✔ the readers write nothing (2.666725ms)
✔ no pointer is null (1.95949ms)
✔ the pointer release.sh writes reads back (1.316236ms)
✔ a pointer that isn't the version 1 shape refuses with exit 2 (1.881776ms)
✔ a pointer that is a directory refuses with exit 4 (1.406961ms)
✔ a state file linked out of the data root refuses (1.07326ms)
✔ a state directory linked out of the data root refuses (0.649188ms)
✔ a state directory linked out to nothing reads as no release and an empty log (0.583015ms)
✔ a missing log is empty (0.436768ms)
✔ the log reads oldest first and counts malformed lines (1.10825ms)
✔ last must be a positive integer (0.518269ms)
✔ the state readers write nothing (0.908431ms)
✔ list prints each run in the established format (88.182372ms)
✔ show prints the run in the established format (90.40074ms)
✔ show of a missing run and an invalid id exit 4 as before (163.139175ms)
✖ list and show refuse a runs directory linked out of the data root (86.669533ms)
✖ show refuses a run linked out of the data root; list reports it unknown (87.589376ms)
✔ list shows an r- name that isn't a valid run id, as before (78.640786ms)
✔ show refuses an invalid id before reading the config (41.75937ms)
ℹ tests 41
ℹ suites 0
ℹ pass 39
ℹ fail 2
ℹ cancelled 0
ℹ skipped 0
ℹ todo 0
ℹ duration_ms 697.746994

✖ failing tests:

test at packages/runs/tests/task-cli.test.mjs:70:1
✖ list and show refuse a runs directory linked out of the data root (86.669533ms)
  AssertionError [ERR_ASSERTION]: list
  
  1 !== 4
  
      at TestContext.<anonymous> (file:///home/jwoltje/darkwing-scratch/r56b/mutwt/packages/runs/tests/task-cli.test.mjs:76:12)
      at Test.runInAsyncScope (node:async_hooks:226:14)
      at Test.run (node:internal/test_runner/test:1402:25)
      at Test.processPendingSubtests (node:internal/test_runner/test:974:18)
      at Test.postRun (node:internal/test_runner/test:1542:19)
      at Test.run (node:internal/test_runner/test:1467:12)
      at async Test.processPendingSubtests (node:internal/test_runner/test:974:7) {
    generatedMessage: false,
    code: 'ERR_ASSERTION',
    actual: 1,
    expected: 4,
    operator: 'strictEqual',
    diff: 'simple'
  }

test at packages/runs/tests/task-cli.test.mjs:82:1
✖ show refuses a run linked out of the data root; list reports it unknown (87.589376ms)
  AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
  
  1 !== 4
  
      at TestContext.<anonymous> (file:///home/jwoltje/darkwing-scratch/r56b/mutwt/packages/runs/tests/task-cli.test.mjs:88:10)
      at Test.runInAsyncScope (node:async_hooks:226:14)
      at Test.run (node:internal/test_runner/test:1402:25)
      at Test.processPendingSubtests (node:internal/test_runner/test:974:18)
      at Test.postRun (node:internal/test_runner/test:1542:19)
      at Test.run (node:internal/test_runner/test:1467:12)
      at async Test.processPendingSubtests (node:internal/test_runner/test:974:7) {
    generatedMessage: true,
    code: 'ERR_ASSERTION',
    actual: 1,
    expected: 4,
    operator: 'strictEqual',
    diff: 'simple'
  }
