Three fixes bundled for one self-update:
- tty-restore (larry.sh): save/restore stty around the REPL on the EXIT/INT/TERM
trap — fixes backspace breaking (^H) after larry exits on MobaXterm where the
client's unconditional 'stty erase' was never restored. Vera CODE-PASS.
- nc-regression -a (lib/nc-engine.sh, lib/nc-regression.sh, MANUAL.md): route_test
now passes -a so multi-message files test ALL messages, not just the first (F-6).
- hl7-diff len10 framing + F-7 (lib/hl7-diff.sh): new --framing auto|nl|0x1c|len10
parser for hciroutetest's default 10-digit length-prefix output; and a fix for a
latent infinite-loop (ignored() awk fn missing 4 local decls) that hung the diff
at 100% CPU on any 2+-message file where a default-ignored field (MSH.7) differs —
i.e. the exact Windows->Linux ADT regression scenario. Verified no-hang (0.089s).
Consolidated by Clover; Vera CODE-PASS (Deliverables/qa/vera-gate1-cloverleaf-larry-v099-consolidated-20260723.md). Live-acceptance = Bryan's live HL7 regression run.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Wires nc_status, nc_engine, nc_xlate, nc_smat_diff, nc_tclgen as first-class
LLM tools (all 4 surfaces). nc_engine unlocks TPS testing (hcitps) + the
route-test driver. Fixes a real nc-engine.sh bug surfaced by the exposure:
the dispatcher treated every --flag as taking a value (--dry-run ate the next
token) and a set -u leak from journal.sh crashed start/stop/bounce on bash 3.2;
fixed with set +u + a multi-case parser (no over-shift on bare trailing flags).
Corrects stale CHANGELOG + nc_engine schema text that misstated the bug as live.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>