flybrain/services/flysim/crates/fly-session/src
acamilo 7d2650ae5e gpu-02 notes: a GPU failure falls back to the CPU for the process lifetime
A CUDA failure (a failed batch or read-back, or an attach that fails at a restart) now marks the
GPU unusable for the process: the replacement agent worker is created on the CPU and restores the
last checkpoint, so a lost device no longer leaves the session unable to restore and a flaky one is
never re-attached in a loop. Worker processes share the record through a marker file the launcher
owns and empties when it starts. Exposed as the LIF_GPU_FALLBACK log line,
fly_brain_backend{backend}, fly_brain_backend_wanted and fly_brain_backend_fallbacks_total, and
fly-watchdog check 11 (report only).

Adds a committed fault-injection hook for the cuda feature (FLY_LIF_CUDA_FAULT or the inject
setters), the recovery harness in legacy_parity, and the cuda_fallback test: init failure, transient
(host current) and permanent (in-process and process) faults, each equal to the CPU reference.
Corrects the runbook, documents the stale host arrays on LifNetwork, and has cuda_session assert
that no fallback hid a CPU pass.
2026-10-02 10:15:03 +00:00
..
bin session: parallel processes, a launcher and the fault behaviour 2026-09-22 14:33:25 +00:00
agent.rs session types: the legacy Game Boy profile and the RT-01a extension methods 2026-09-23 08:31:58 +00:00
cli.rs session: the live composition's participants on the router (BUS-01) 2026-10-02 00:09:41 +00:00
clock.rs session: coherent all-participant checkpoint and recovery 2026-09-22 17:43:43 +00:00
coordinator.rs Merge port/serve-01 (SERVE-01) into v0.7.0 release candidate 2026-09-30 10:06:03 +00:00
dedup.rs refactor(session): build the session slice on the shared fly-session-types crate 2026-09-22 12:30:41 +00:00
environment.rs session: coherent all-participant checkpoint and recovery 2026-09-22 17:43:43 +00:00
harness.rs session: a snapshot publishes the telemetry of the transition that just ended 2026-09-22 20:18:49 +00:00
launcher.rs gpu-02 notes: a GPU failure falls back to the CPU for the process lifetime 2026-10-02 10:15:03 +00:00
legacy_agent.rs gpu-02 notes: a GPU failure falls back to the CPU for the process lifetime 2026-10-02 10:15:03 +00:00
legacy_checkpoint.rs FLYSIM01 carries the reinforcement count; the import takes its ids from the file; StageRestore refuses conflicts before building a network 2026-09-29 17:17:56 +00:00
legacy_env.rs PERF-01: spikes gathered per tick, 1 Hz session snapshots, fewer copies 2026-09-30 02:15:25 +00:00
legacy_env_parity.rs fly-session: LegacyGameboyEnvironment, the ENV-01 Game Boy environment worker 2026-09-29 13:16:22 +00:00
legacy_parity.rs gpu-02 notes: a GPU failure falls back to the CPU for the process lifetime 2026-10-02 10:15:03 +00:00
lib.rs TASK-01 review N5: the per-boundary costs measured, the world's seals concurrent, bounded history 2026-09-29 21:06:32 +00:00
measure.rs session: an unknown launch option is an error, not a no-op 2026-09-22 16:28:59 +00:00
media.rs session: the live composition's participants on the router (BUS-01) 2026-10-02 00:09:41 +00:00
metrics.rs TASK-01 review N5: the per-boundary costs measured, the world's seals concurrent, bounded history 2026-09-29 21:06:32 +00:00
phase.rs fly-session: the coordinator runs the legacy composition's boundary (TASK-01) 2026-09-29 18:03:59 +00:00
profile.rs PERF-01: spikes gathered per tick, 1 Hz session snapshots, fewer copies 2026-09-30 02:15:25 +00:00
publish.rs PERF-01: spikes gathered per tick, 1 Hz session snapshots, fewer copies 2026-09-30 02:15:25 +00:00
rpc.rs PERF-01: spikes gathered per tick, 1 Hz session snapshots, fewer copies 2026-09-30 02:15:25 +00:00
state.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
task.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
types.rs session types: the legacy Game Boy profile and the RT-01a extension methods 2026-09-23 08:31:58 +00:00
worker.rs session: the live composition's participants on the router (BUS-01) 2026-10-02 00:09:41 +00:00