The helper MUST answer by its exit status and its output: 0 done, 10 missing, 11 conflict with found absent or found sha256:HEX (and at to for the target of a rename), 12 refused with the reason, 13 locked, 14 too large, 21 no tool for SHA-256, 22 no such folder, 30 a hash that is not the one asked for, and any other status a failure; the library MUST read each as one case of a closed union, and 255 or a signal as a lost connection.
Enforced (check): .github: cd commons/anyfs-ssh && bun run verify — suite/protocol.test.ts: each exit status is one answer; suite/helper.test.ts: the commands answer as the protocol says
Proved by: anyfs-ssh/suite/helper.test.ts, anyfs-ssh/suite/protocol.test.ts
Written in: anyfs-ssh/src/protocol.ts
Tests: passed: suite/helper.test.ts under bash: probe, write, read, stat, list, delete and rename answer as the protocol says; passed: suite/helper.test.ts under dash: probe, write, read, stat, list, delete and rename answer as the protocol says; passed: suite/protocol.test.ts each exit status of the helper is one answer of a closed union; passed: suite/protocol.test.ts the lines of the helper are read back, and a line that is not one is a sentence