Repository navigation
Integrate recorder ring and bounded restart preservation - #25
RyanTheTide wants to merge 13 commits into
Conversation
Assisted-by: LLM Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
Install an explicit preservation helper and document replacing only a local destructive pre-start command, retaining all other admission checks. Assisted-by: LLM Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
…orded run Assisted-by: LLM Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
…cording-ring-preservation # Conflicts: # src/main.rs # src/record.rs
|
Offline replay on the MacBook Air 13" M4 (J713), in case it's useful. Setup: the J713 recording from #8 (https://weirdware.io/aurora/j713.rec.zst, format 3, 58 s of playback over 816 s, mostly loud test tones), replayed with
Both runs report
Per 100 s of the recording, from the
#25 fixes the short-sound cut-outs we saw live with #8 on the J713: the near-mute hand-offs at stream edges are gone. In their place, the J413 profile holds the tweeters about 15 dB down and the woofers about 5.5 dB down for the whole recording. That happens while the replayed tweeter coil is around 55 C, far under the 140 C working limit. So the reduction doesn't look thermal; my guess is the onset-energy ceiling from #12/#15. If so, this recording at least would play noticeably quieter and duller on J413-family machines with this stack. Caveats:
If more information would help, I can share the CSVs. |
|
Superseded by #27: this PR's head is already contained in the 0.1.13 release candidate branch (fu-speakerguardd-rc), so it lands with that PR. Closing to keep one release PR (fewer, bigger PRs). |
Summary
Integrates #22's bounded async recording ring with #23's restart preservation and archive-cap fix. The merged recorder keeps production
create_async, refuses stale sidecars, and usescreate_newso a failed preservation cannot truncate evidence. The helper counts incomplete archive bytes and makes room before moving any new segment; a failed deletion leaves an incomplete marker. Regressions cover repeated restarts after a partial move, failed deletion, and the production async constructor.The Linux run also exposed a timing race in #22's missing-directory test. The worker can return
BrokenPipebeforecreate_asyncreturns. The regression now accepts either timing and still checks that governing continues without recording.Base and review order
This is stacked on #21 (
fix/playback-energy-grants) because the defaultmainbranch has not yet received #21. The branch contains #22 and #23 by merge ancestry. Retarget tomainafter #21 lands; keep this PR draft until the combined review is complete.Verification
a9daa66: 331 passed, 2 failed, 1 ignored. The two named failures exactly match Keep recent V/I evidence after the recorder size limit #22's pre-existing strict listening assertions; no new failures remain. The 20 non-strict failures from Preserve recorder evidence across service restarts #23's older Close profile thermal gaps; keep the listening-cost release gate #15 base are absent on this combined source.No hardware, playback, deployment or running unit was changed.