selftest: TypeScript/JavaScript: bridging and recording the built-in original
selftest: TypeScript/JavaScript: no-op port: every function returns an empty string
selftest: TypeScript/JavaScript: always-throws port
selftest: TypeScript/JavaScript: throws the wrong error type
selftest: TypeScript/JavaScript: hard-coded table of the recorded results
selftest: TypeScript/JavaScript: same, every line marked `// recorded-literal:`
selftest: TypeScript/JavaScript: port exits the process
selftest: TypeScript/JavaScript: port shells out to the original
selftest: TypeScript/JavaScript: same, marked `// SPAWNS:` (the original starts no process)
selftest: TypeScript/JavaScript: port includes cases.jsonl with `include_str!`
selftest: TypeScript/JavaScript: port prints extra output
selftest: TypeScript/JavaScript: differs only on inputs outside the recording
selftest: TypeScript/JavaScript: wrong port, failing cases and recorded-from.json deleted
selftest: TypeScript/JavaScript: wrong port, failing cases deleted from cases.jsonl
selftest: TypeScript/JavaScript: wrong port, failing cases and recorded-from.json deleted, marked legacy_recording
selftest: TypeScript/JavaScript: wrong port, known-diffs.jsonl entries added for its failures
selftest: TypeScript/JavaScript: port off by 0.1%, float tolerance raised to 0.9
selftest: TypeScript/JavaScript: correct port (must pass)
selftest: Python: bridging and recording the built-in original
selftest: Python: no-op port: every function returns an empty string
selftest: Python: always-throws port
selftest: Python: throws the wrong error type
selftest: Python: hard-coded table of the recorded results
selftest: Python: same, every line marked `// recorded-literal:`
selftest: Python: port exits the process
selftest: Python: port shells out to the original
selftest: Python: same, marked `// SPAWNS:` (the original starts no process)
selftest: Python: port includes cases.jsonl with `include_str!`
selftest: Python: port prints extra output
selftest: Python: differs only on inputs outside the recording
selftest: Python: wrong port, failing cases and recorded-from.json deleted
selftest: Python: wrong port, failing cases deleted from cases.jsonl
selftest: Python: wrong port, failing cases and recorded-from.json deleted, marked legacy_recording
selftest: Python: wrong port, known-diffs.jsonl entries added for its failures
selftest: Python: port off by 0.1%, float tolerance raised to 0.9
selftest: Python: correct port (must pass)
language               planted bug                                                                        result       caught by
TypeScript/JavaScript  no-op port: every function returns an empty string                                 caught       diff
TypeScript/JavaScript  always-throws port                                                                 caught       diff
TypeScript/JavaScript  throws the wrong error type                                                        caught       diff
TypeScript/JavaScript  hard-coded table of the recorded results                                           caught       gate: literals
TypeScript/JavaScript  same, every line marked `// recorded-literal:`                                     caught       gate: literals
TypeScript/JavaScript  port exits the process                                                             caught       diff
TypeScript/JavaScript  port shells out to the original                                                    caught       gate: runtime, spawns
TypeScript/JavaScript  same, marked `// SPAWNS:` (the original starts no process)                         caught       gate: runtime, spawns
TypeScript/JavaScript  port includes cases.jsonl with `include_str!`                                      caught       gate: literals, runtime
TypeScript/JavaScript  port prints extra output                                                           not caught   nothing (diff and gate passed)
TypeScript/JavaScript  differs only on inputs outside the recording                                       caught       gate: held-out
TypeScript/JavaScript  wrong port, failing cases and recorded-from.json deleted                           caught       gate: recording, held-out
TypeScript/JavaScript  wrong port, failing cases deleted from cases.jsonl                                 caught       gate: recording, held-out
TypeScript/JavaScript  wrong port, failing cases and recorded-from.json deleted, marked legacy_recording  caught       gate: held-out
TypeScript/JavaScript  wrong port, known-diffs.jsonl entries added for its failures                       caught       gate: accepted diffs
TypeScript/JavaScript  port off by 0.1%, float tolerance raised to 0.9                                    caught       gate: recording
TypeScript/JavaScript  correct port (must pass)                                                           passed       gate passed
Python                 no-op port: every function returns an empty string                                 caught       diff
Python                 always-throws port                                                                 caught       diff
Python                 throws the wrong error type                                                        caught       diff
Python                 hard-coded table of the recorded results                                           caught       gate: literals
Python                 same, every line marked `// recorded-literal:`                                     caught       gate: literals
Python                 port exits the process                                                             caught       diff
Python                 port shells out to the original                                                    caught       gate: runtime, spawns
Python                 same, marked `// SPAWNS:` (the original starts no process)                         caught       gate: runtime, spawns
Python                 port includes cases.jsonl with `include_str!`                                      caught       gate: literals, runtime
Python                 port prints extra output                                                           not caught   nothing (diff and gate passed)
Python                 differs only on inputs outside the recording                                       not caught   nothing (diff and gate passed)
Python                 wrong port, failing cases and recorded-from.json deleted                           caught       gate: recording
Python                 wrong port, failing cases deleted from cases.jsonl                                 caught       gate: recording
Python                 wrong port, failing cases and recorded-from.json deleted, marked legacy_recording  not caught   nothing (diff and gate passed)
Python                 wrong port, known-diffs.jsonl entries added for its failures                       caught       gate: accepted diffs
Python                 port off by 0.1%, float tolerance raised to 0.9                                    caught       gate: recording
Python                 correct port (must pass)                                                           passed       gate passed

TypeScript/JavaScript / no-op-port: 82 of 84 recorded cases differ; first: shout(["ns:key.path"]) expected {"ok":"ns:key.path!"}, got {"ok":""}

TypeScript/JavaScript / always-throws: 79 of 84 recorded cases differ; first: shout(["ns:key.path"]) expected {"ok":"ns:key.path!"}, got {"error":"always fails","error_type":"RangeError"}

TypeScript/JavaScript / wrong-error-type: 5 of 84 recorded cases differ; first: shout([""]) expected {"error":"text must not be empty","error_type":"RangeError"}, got {"error":"text must not be empty","error_type":"TypeError"}

TypeScript/JavaScript / hard-coded-table: literals: 35 recorded values are written into the port, and the original spells out none of them: "ns:key.path" (src/port.rs:7), "ns:key.path!" (src/port.rs:7), "a😀b😀c.leading" (src/port.rs:10), "a😀b😀c.leading!" (src/port.rs:10), "./x/**/*.jsonemoji 👍🏽 mix" (src/port.rs:11), 30 more

TypeScript/JavaScript / hard-coded-table-marked: literals: 33 recorded values are written into the port under `// recorded-literal:` markers, and the original spells out none of them: a marker excuses a constant the original takes from a library, not a table of results; 33 values exempted by `// recorded-literal:` (the marker excuses at most 2)

TypeScript/JavaScript / exits-the-process: node failed (exit status: 3):


TypeScript/JavaScript / shells-out-to-original: runtime: the port must compute its results itself, not run or read the original or the recording:; spawns: the port starts another program: std::process::Command (src/port.rs:5), Command::new (src/port.rs:10). A port that runs the original for its answer is not a port. Where the original starts that process too, mark the line `// SPAWNS: <why>`; that counts only when the original's source starts processes

TypeScript/JavaScript / shells-out-marked-spawns: runtime: the port must compute its results itself, not run or read the original or the recording:; spawns: the port starts another program: std::process::Command (src/port.rs:6), Command::new (src/port.rs:12). A port that runs the original for its answer is not a port. Where the original starts that process too, mark the line `// SPAWNS: <why>`; that counts only when the original's source starts processes

TypeScript/JavaScript / includes-the-recording: literals: the port names the recording (cases.jsonl, known-diffs.jsonl, recorded-from.json) at src/port.rs:6: compute results, never look them up; runtime: the port must compute its results itself, not run or read the original or the recording:

TypeScript/JavaScript / prints-extra-output: a unit's `diff` compares the printed text the port writes to the `stdout` it is handed, which a port gets only when the original prints, not what it prints with `println!` to the real standard output

TypeScript/JavaScript / differs-outside-recording: held-out: 6 of 616 inputs the recording does not hold differ from the original; shortest: shout("./x/**/*.json日本語のテキスト"): expected {"ok":"./x/**/*.json日本語のテキスト!"}, got {"ok":"./x/**/*.json日本語のテキスト"}

TypeScript/JavaScript / delete-recorded-from: recording: recorded-from.json is missing or unreadable, so the recording cannot be verified: the original may have changed or cases.jsonl may have been edited. Run `rust-anything record rust/unit` again; only a recording made by an older rust-anything may be marked `"legacy_recording": true` in rust-anything.json; held-out: 6 of 615 inputs the recording does not hold differ from the original; shortest: grade(100): expected {"ok":"excellent result"}, got {"ok":"passing result"}

TypeScript/JavaScript / delete-cases: recording: cases.jsonl changed since `record` wrote it: its 84 recorded lines were edited or removed (appending cases is fine); record again instead of editing the recording; held-out: 6 of 615 inputs the recording does not hold differ from the original; shortest: grade(100): expected {"ok":"excellent result"}, got {"ok":"passing result"}

TypeScript/JavaScript / marked-legacy-recording: held-out: 6 of 615 inputs the recording does not hold differ from the original; shortest: grade(100): expected {"ok":"excellent result"}, got {"ok":"passing result"}

TypeScript/JavaScript / add-known-diffs: accepted diffs: 8 entries were added to known-diffs.jsonl since the last passing gate: each one makes a case that differs count as a match; read them, and if they are meant, run `rust-anything gate rust/unit --accept-known-diffs 8`

TypeScript/JavaScript / raise-tolerance: recording: the comparison was loosened after `record`: float tolerance none -> 0.9, key order ignored false -> false; record again with the setting you mean, so the recording and its verdicts agree

Python / no-op-port: 74 of 76 recorded cases differ; first: shout(["ns:key.path"]) expected {"ok":"ns:key.path!"}, got {"ok":""}

Python / always-throws: 69 of 76 recorded cases differ; first: shout(["ns:key.path"]) expected {"ok":"ns:key.path!"}, got {"error":"ValueError: always fails"}

Python / wrong-error-type: 7 of 76 recorded cases differ; first: shout([""]) expected {"error":"ValueError: text must not be empty"}, got {"error":"KeyError: 'text must not be empty'"}

Python / hard-coded-table: literals: 35 recorded values are written into the port, and the original spells out none of them: "ns:key.path" (src/port.rs:7), "ns:key.path!" (src/port.rs:7), "a😀b😀c.leading" (src/port.rs:10), "a😀b😀c.leading!" (src/port.rs:10), "./x/**/*.jsonemoji 👍🏽 mix" (src/port.rs:11), 30 more

Python / hard-coded-table-marked: literals: 33 recorded values are written into the port under `// recorded-literal:` markers, and the original spells out none of them: a marker excuses a constant the original takes from a library, not a table of results; 33 values exempted by `// recorded-literal:` (the marker excuses at most 2)

Python / exits-the-process: python failed (exit status: 3):


Python / shells-out-to-original: runtime: the port must compute its results itself, not run or read the original or the recording:; spawns: the port starts another program: std::process::Command (src/port.rs:5), Command::new (src/port.rs:10). A port that runs the original for its answer is not a port. Where the original starts that process too, mark the line `// SPAWNS: <why>`; that counts only when the original's source starts processes

Python / shells-out-marked-spawns: runtime: the port must compute its results itself, not run or read the original or the recording:; spawns: the port starts another program: std::process::Command (src/port.rs:6), Command::new (src/port.rs:12). A port that runs the original for its answer is not a port. Where the original starts that process too, mark the line `// SPAWNS: <why>`; that counts only when the original's source starts processes

Python / includes-the-recording: literals: the port names the recording (cases.jsonl, known-diffs.jsonl, recorded-from.json) at src/port.rs:6: compute results, never look them up; runtime: the port must compute its results itself, not run or read the original or the recording:

Python / prints-extra-output: a unit's `diff` compares the printed text the port writes to the `stdout` it is handed, which a port gets only when the original prints, not what it prints with `println!` to the real standard output

Python / differs-outside-recording: `gate`'s held-out check runs only where `fuzz` is tested (TypeScript/JavaScript napi ports): here it replays only what was recorded; `fuzz` found 6 difference(s)

Python / delete-recorded-from: recording: recorded-from.json is missing or unreadable, so the recording cannot be verified: the original may have changed or cases.jsonl may have been edited. Run `rust-anything record rust/unit` again; only a recording made by an older rust-anything may be marked `"legacy_recording": true` in rust-anything.json

Python / delete-cases: recording: cases.jsonl changed since `record` wrote it: its 76 recorded lines were edited or removed (appending cases is fine); record again instead of editing the recording

Python / marked-legacy-recording: a recording marked `"legacy_recording": true` (made before fingerprints) is used as it is, so cases removed from it go unnoticed, and the held-out check that would find the wrong port runs only for TypeScript/JavaScript napi ports; gate says: the tests baseline is missing although this crate passed gate before: tests or assertions removed since then are not noticed; legacy recording: no fingerprint or case hash, so the stale and edited-recording checks did not run

Python / add-known-diffs: accepted diffs: 6 entries were added to known-diffs.jsonl since the last passing gate: each one makes a case that differs count as a match; read them, and if they are meant, run `rust-anything gate rust/unit --accept-known-diffs 6`

Python / raise-tolerance: recording: the comparison was loosened after `record`: float tolerance none -> 0.9, key order ignored false -> false; record again with the setting you mean, so the recording and its verdicts agree
not run: no built-in original for C yet (cc is on PATH)
not run: go missing (Go; no built-in original yet either)
not run: ruby missing (Ruby; no built-in original yet either)
not run: javac missing (Java; no built-in original yet either)
not run: kotlinc missing (Kotlin; no built-in original yet either)
not run: php missing (PHP; no built-in original yet either)
not run: dotnet missing (C#; no built-in original yet either)
not run: pwsh missing (PowerShell; no built-in original yet either)
not run: swiftc missing (Swift; no built-in original yet either)

28 caught, 4 not caught (known gaps), 0 NOT CAUGHT, 0 unexpected; correct port passed.
Selftest passed.
[selftest exit 0]
