flybrain/infra/tests
acamilo b39ee8e805 shadow: a lost coverage is never forgotten (SHADOW-02 review B1) and the review notes
B1: after an outage of more than ten minutes flysim stops its trace for want of a
consumer and the live fly runs untraced. When the link heals the relay reported healthy
and, counted in trace lines, the box's lag fell under the catch-up bound before its
shadow reached the stop, so `check` could pass for about a minute. The relay now scans
the trace bytes it forwards for that stop and sets a sticky coverageLost in relay.json
(kept across a relay restart of the run; cleared only by a new shadow window, which
takes the stop as history) and reports itself not healthy. `check` refuses on
coverageLost, on a live trace not written for 90 s, and on a run id that is not the
drop-in's (also for a verdict that carries one without a remote drop-in).

Notes: the divergence files the box may send are bounded (after a diverged verdict, at
most three, capped in size); the saves queue holds twelve minutes and the relay unit
gets 1G; fly-shadow-remote-setup keeps authorized_keys in a root-owned home apart from
the mirror, never follows a symlink there as root and requires --from; the runbook
documents the clock-skew refusal, the recovered-stop rule and the first-hour RTF watch.
Also: the ingest lists the mirror's traces under its ledger lock (a file created between
the listing and the lock was marked finished).
2026-10-01 00:45:54 +00:00
..
fixtures/shadow-guard tests: recorded live-fly RTF traces for the shadow guard; docs: review round 2 (SHADOW-01) 2026-09-30 03:47:37 +00:00
de-pii-allow.txt tools: pii-scan guard with a private pattern list, tag-release gate and pre-push hook 2026-09-29 15:52:35 +00:00
lint.sh shadow: a lost coverage is never forgotten (SHADOW-02 review B1) and the review notes 2026-10-01 00:45:54 +00:00
pii-scan-test.sh pii-scan: refuse an invalid pattern instead of scanning clean, and read '+++' as a header only after '---' 2026-09-29 16:56:56 +00:00
shadow_guard_traces.py infra: the guard judges the live fly against its own baseline (SHADOW-01 review round 2, G1) 2026-09-30 01:39:52 +00:00
test_loop_recover.py infra: a reset's replay is not progress; the ladder measures progress and catches against the reward names it has seen (row 70 review r3) 2026-09-30 23:58:13 +00:00