Expand description
What older builds kept of the record, brought into the folder it lives in now (docs/specs/SPEC_LONG_RUNNING_ZERO_DEGRADATION_2026_11_16.md §6, task #47820).
The record first lived in the data folder. An installed AgentMux has a data folder per version, so every
upgrade began a new, empty record, and the old one went with the old version’s folder: a record that must
outlast weeks never held more than the days between two upgrades. It lives in the channel’s folder now
(agentmux_common::record_events::record_dir), which an upgrade keeps.
bring_over moves what the data folders still hold into it, once: a file the record does not have is
moved, and where both have a file of the same name (the day of an upgrade, the month’s rollups and events)
their lines are put together in time order. A file is taken from the old folder only after its lines are in
the new one, so a failure part of the way leaves the rest to the next start.
Structs§
- Brought
- What
bring_overdid.
Functions§
- bring_
over - Move what the folders of
old_dirshold intodest, the record’s folder. BLOCKING (file reads and writes); call it once at start, before the first line is written. A file that cannot be brought is logged and left where it is: the record is never a reason for anything else to fail. - bring_
over_ here bring_overfor this process: from the folders under its channel into its record. Nothing when the launcher gave it no folders.- old_
dirs - The folders an older build kept its record in, under
instance_dir(the channel’s folder, or a dev build’s own):data/record, andversions/<version>/data/recordof every version, oldest name first.