flybrain/services/flysim/crates/fly-legacy-session/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
..
journal_replay.rs journal_replay: compare the adapter ledger as numbers 2026-09-29 21:54:41 +00:00
ledger_size.rs TASK-01 review fixes: an artifact-backed task ledger, the pending pulse, the palette seed, queued saves 2026-09-29 20:47:19 +00:00
palette_seed.rs TASK-01 review fixes: an artifact-backed task ledger, the pending pulse, the palette seed, queued saves 2026-09-29 20:47:19 +00:00
rollback_sequence.rs TASK-01 review fixes: an artifact-backed task ledger, the pending pulse, the palette seed, queued saves 2026-09-29 20:47:19 +00:00
save_handoff.rs TASK-01 round-2 notes: saves reach the writer on a failed step and on pause, every save outcome reported, sugar admission atomic with the commit 2026-09-30 01:30:56 +00:00
service_parity.rs service_parity: two sugars in one drain; repeat a run whose recorder fell behind 2026-09-29 20:48:37 +00:00
session_trace.rs session_trace: boot parity accepts the adapter migrations v0.6.7 deploys with 2026-09-30 04:11:06 +00:00
shadow.rs shadow: SHADOW-02, the shadow run on a build box 2026-10-01 00:45:54 +00:00
shadow_relay_coverage.rs shadow: a lost coverage is never forgotten (SHADOW-02 review B1) and the review notes 2026-10-01 00:45:54 +00:00
shadow_remote.rs shadow: the relay never blocks on a stalled link 2026-10-01 00:45:54 +00:00
speed.rs N5: publication at the feed's rate, in-memory transport in-process, capture spans; docs for the fix round 2026-09-29 22:20:39 +00:00
speed_ab.rs fly-legacy-session: in-process sessions over the local lane; speed_ab arms 2026-09-30 01:46:07 +00:00