flybrain/services/flysim/crates/fly-legacy-session/src
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
..
bin shadow: SHADOW-02, the shadow run on a build box 2026-10-01 00:45:54 +00:00
shadow shadow: a lost coverage is never forgotten (SHADOW-02 review B1) and the review notes 2026-10-01 00:45:54 +00:00
admission.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
composition.rs Merge port/serve-01 (SERVE-01) into v0.7.0 release candidate 2026-09-30 10:06:03 +00:00
driver.rs fly-legacy-session: pokered-macros-v1 on the session framework (TASK-01) 2026-09-29 18:03:59 +00:00
import.rs Merge port/task-01 (TASK-01 review fixes) into port/serve-01 2026-09-29 21:29:31 +00:00
lib.rs Merge port/shadow-01 (SHADOW-01) into v0.7.0 release candidate 2026-09-30 10:09:01 +00:00
service.rs Merge port/task-01 (TASK-01 round-2 fixes) into port/serve-01; hand begun captures to the writer on pause 2026-09-30 01:37:12 +00:00
task.rs Merge port/shadow-01 (SHADOW-01) into v0.7.0 release candidate 2026-09-30 10:09:01 +00:00
trace.rs fly-legacy-session: the shadow run, its comparator and verdict (SHADOW-01) 2026-09-30 01:39:42 +00:00