cloverleaf-larry/lib
bj 9a2ed47785 v0.9.2: fix F-1/F-2/F-3/F-5 — regression false-PASS, PHI leak, jump guard, MRN match
F-1 (HIGH — blocks regression): hl7-diff --format count always returned 0
because the early-exit in END fired before the diff loop ran. Fix: remove
the early exit; suppress per-diff printf in emit() for count mode; emit
DIFF_COUNT after the loop. count/text/tsv all agree (13 diffs on fixture,
0 on identical pair, exit codes correct). Ref: lib/hl7-diff.sh.

F-5 (MEDIUM — PHI leak): hl7-sanitize silently passed LF-delimited HL7
through as cleartext (awk RS="\r" never split on LF). Fix: detect CR
absence via python3 binary read; normalise LF/CRLF→CR via `tr` before
the awk pass. Both file and stdin paths handled. CR path is a zero-overhead
passthrough. Before: 0 tokens, cleartext PHI. After: 6 tokens, all PID
fields replaced with [[MRN_0001]] etc. Ref: lib/hl7-sanitize.sh.

F-2 (MEDIUM): nc-make-jump emitted { PORT {} } for file/ICL inbounds
because the guard only tested for empty ORIG_PORT; protocol-nested returns
the literal "{}" for empty blocks. Fix: case guard rejects empty, "{}", and
any non-numeric value with a clear "is it a TCP listener?" error (exit 1).
TCP inbounds (numeric PORT) still generate correctly. Ref: lib/nc-make-jump.sh.

F-3 (MEDIUM — manual marquee example): nc-msgs mrn=<bare> returned 0 on
real Epic MRNs stored as "5720501458^^^MRN". Fix: in field_matches "="
operator, when expected has no ^ and the stored repetition does, compare
component-1 (text before first ^). Full-componented and mrn.1= paths
unchanged. Fixture: bare mrn=5720501458 now matches 2/3 messages correctly.
Ref: lib/nc-msgs.sh.

All four files pass bash -n. MANIFEST regenerated (54 entries, --check=0).
Tested against synthetic fixtures on .135 (no live engine required for these
logic bugs). Work-box re-verify commands in audit §4-B.

Co-Authored-By: Clover (claude-sonnet-4-6) <noreply@anthropic.com>
2026-06-08 10:52:57 -07:00
..
broker.sh v0.9.1: on upgrade to broker-mode, WIPE the now-obsolete local credentials 2026-05-31 23:42:11 -07:00
csv-to-table.sh v0.4.1: each / each-site / len2nl / csv-to-table / table-to-csv 2026-05-26 11:05:19 -07:00
cygwin-safe.sh v0.8.26: harden control-byte sanitize across the tool suite + ssh-helper traps 2026-05-28 16:35:06 -07:00
each-site.sh v0.4.1: each / each-site / len2nl / csv-to-table / table-to-csv 2026-05-26 11:05:19 -07:00
each.sh v0.4.1: each / each-site / len2nl / csv-to-table / table-to-csv 2026-05-26 11:05:19 -07:00
fetch-safe.sh v0.8.11: API-key default rail (OAuth-impersonation off, secure per-client /set-api-key) + manifest-hashing auto-update speedup 2026-05-27 22:40:18 -07:00
headers-sync.sh v0.8.6: work-box → Mac headers.log sync (tsk-2026-05-27-023) 2026-05-27 21:01:54 -07:00
hl7-desanitize.sh v0.8.26: harden control-byte sanitize across the tool suite + ssh-helper traps 2026-05-28 16:35:06 -07:00
hl7-diff.sh v0.9.2: fix F-1/F-2/F-3/F-5 — regression false-PASS, PHI leak, jump guard, MRN match 2026-06-08 10:52:57 -07:00
hl7-field.sh v0.8.26: harden control-byte sanitize across the tool suite + ssh-helper traps 2026-05-28 16:35:06 -07:00
hl7-sanitize.sh v0.9.2: fix F-1/F-2/F-3/F-5 — regression false-PASS, PHI leak, jump guard, MRN match 2026-06-08 10:52:57 -07:00
hl7-schema.sh v0.7.0: HL7-aware tab completion + REPL mouse mode 2026-05-27 16:15:11 -07:00
journal.sh v0.7.5: OAuth CR-taint fix + mouse opt-in + CR-safety sweep 2026-05-27 19:17:48 -07:00
len2nl.sh v0.4.1: each / each-site / len2nl / csv-to-table / table-to-csv 2026-05-26 11:05:19 -07:00
lessons.sh v0.8.30: write/mutate tool validation pass — 2 fixes; rollback proven reliable 2026-05-28 18:28:21 -07:00
nc-create-thread.sh v0.8.30: write/mutate tool validation pass — 2 fixes; rollback proven reliable 2026-05-28 18:28:21 -07:00
nc-diff-interface.sh v0.8.29: read/inspect tool validation pass — 7 portability/correctness fixes 2026-05-28 18:11:22 -07:00
nc-document.sh v0.8.26: harden control-byte sanitize across the tool suite + ssh-helper traps 2026-05-28 16:35:06 -07:00
nc-engine.sh v0.8.28: expose 5 lib-only tools + fix nc-engine arg-parsing crash 2026-05-28 17:18:23 -07:00
nc-find.sh v0.8.29: read/inspect tool validation pass — 7 portability/correctness fixes 2026-05-28 18:11:22 -07:00
nc-inbound.sh v0.3.0: initial release of Larry-Anywhere 2026-05-26 09:46:20 -07:00
nc-insert-protocol.sh v0.7.5: OAuth CR-taint fix + mouse opt-in + CR-safety sweep 2026-05-27 19:17:48 -07:00
nc-make-jump.sh v0.9.2: fix F-1/F-2/F-3/F-5 — regression false-PASS, PHI leak, jump guard, MRN match 2026-06-08 10:52:57 -07:00
nc-msgs.sh v0.9.2: fix F-1/F-2/F-3/F-5 — regression false-PASS, PHI leak, jump guard, MRN match 2026-06-08 10:52:57 -07:00
nc-parse.sh v0.8.29: read/inspect tool validation pass — 7 portability/correctness fixes 2026-05-28 18:11:22 -07:00
nc-paths.sh v0.8.20: nc_paths route-chain tracer — parse-once in-memory engine (84s→0.7s single, ~5.5s full-tree), authoritative destination-block cross-site resolution, v1-fidelity output (site/thread nodes, --> intra-route / ==> cross-site) as default + --format table/nodes, pipe-first (site/thread in, awk field-1 = root). Verified EXACT vs v1 on the real 24-site integrator. 2026-05-28 11:26:31 -07:00
nc-provision-jumps.sh v0.8.32: nc_provision_jumps — capstone inter-server jump-thread provisioner 2026-05-28 19:38:07 -07:00
nc-regression.sh v0.8.23: regression chain-walk route-test capture (nc-regression --chain-walk) 2026-05-28 12:44:38 -07:00
nc-revisions.sh v0.8.27: nc-revisions — NetConfig change-history / revision diff 2026-05-28 16:53:10 -07:00
nc-set-field.sh v0.8.31: nc_set_field — change a thread's PORT/HOST/PROCESSNAME/ENCODING (journaled) 2026-05-28 18:43:27 -07:00
nc-smat-diff.sh v0.8.29: read/inspect tool validation pass — 7 portability/correctness fixes 2026-05-28 18:11:22 -07:00
nc-status.sh v0.8.29: read/inspect tool validation pass — 7 portability/correctness fixes 2026-05-28 18:11:22 -07:00
nc-table.sh v0.7.5: OAuth CR-taint fix + mouse opt-in + CR-safety sweep 2026-05-27 19:17:48 -07:00
nc-tclgen.sh v0.8.28: expose 5 lib-only tools + fix nc-engine arg-parsing crash 2026-05-28 17:18:23 -07:00
nc-xlate.sh v0.8.29: read/inspect tool validation pass — 7 portability/correctness fixes 2026-05-28 18:11:22 -07:00
oauth.sh v0.7.5: OAuth CR-taint fix + mouse opt-in + CR-safety sweep 2026-05-27 19:17:48 -07:00
phi-client.sh v0.8.2: Presidio sidecar for free-text NER (tier-5) — closes V1 2026-05-27 20:00:23 -07:00
phi-presidio-sidecar.py v0.8.2: Presidio sidecar for free-text NER (tier-5) — closes V1 2026-05-27 20:00:23 -07:00
phi-sidecar.sh v0.8.2: Presidio sidecar for free-text NER (tier-5) — closes V1 2026-05-27 20:00:23 -07:00
ssh-helper.sh v0.8.26: harden control-byte sanitize across the tool suite + ssh-helper traps 2026-05-28 16:35:06 -07:00
table-to-csv.sh v0.4.1: each / each-site / len2nl / csv-to-table / table-to-csv 2026-05-26 11:05:19 -07:00