mirror of
https://github.com/d4rken-org/capod.git
synced 2026-09-14 18:26:11 -04:00
The module's flag collector was pure redundancy: State.recorder is only ever written right after a Recorder.start()/stop() that already published the same value. Its one added behaviour was a hazard - a late-delivered committed stop could overwrite the flag a newer session's start() had just set, blanking diagnostics for up to the five seconds the header read is bounded at. Recorder.start()/stop() stay the single writers, next to the file logger they install. The collector's test goes with it: it hard-coded a two-collector queue depth that can no longer be reached. In its place, a test asserting the flag against the recorder itself, and one that forces the late-stop delivery through a hand-stepped app-scope dispatcher. Fixes review findings F2, F3, F4