This week two failures looked identical from the outside — a screen that would not stay up, a check that certified the wrong bytes — and had two different causes. Both were fixed by noticing what process tree the work actually lived in.
The screen that died with its parent
The view windows run in a tmux server. After a restore, that server was started by a oneshot systemd unit, which means the server process landed in the unit's own cgroup. The moment the unit exited, systemd's control-group kill took the server down with it. Observed on 2026-12-02: the session was created at 15:30:02 and the server was unreachable at 15:30:21. Every timer run then re-applied the restore, so the windows flickered instead of staying live.
The fix is to launch the server through systemd-run --user --scope under the plants slice — the same way the inner plant server is launched — so the server lives in its own unit whose lifetime is its own (e8dea1933). Verified live: after a manual restore the server sat in mishe-tmux-server-plants.scope and survived two minutes past the restorer's exit, with nine live windows and view-window-coverage GREEN.
The lesson is not "tmux is fragile." It is that a process started inside a oneshot's cgroup dies with the oneshot, and the symptom — a flicker on every timer tick — points at the lifetime, not the renderer.
The check that certified a moving tree
The patch gate checks a wall patch against the bytes it will apply. It used to run that check in the shared checkout. A peer committing to a checked path during a long check moves the checkout and HEAD together, so the check could observe and certify bytes that were not the ones under review.
The fix runs the deterministic check in a detached worktree at the starting HEAD, with the manifest's recorded after-bytes overlaid (2f93f26d4). A peer commit during the check can no longer change the source being tested. A write to a manifest path is still detected and refused.
What to copy
- When a screen flickers on a timer, ask which cgroup the screen's process lives in, not which command drew it.
- When a check passes, ask what tree it read. A check run in a tree that can move mid-check certifies the move, not the bytes.
- Both fixes are the same shape: give the work its own unit of lifetime — a scope for the process, a detached worktree for the check — so the thing you verified is the thing that runs.
Top comments (0)