Repository navigation
v0.359.0
·
325 commits
to master
since this release
- feat:
scripts/reap-stale-gates.pycloses staleawaiting-operatorgates whose session is gone. The attention event log is append-only and nothing ever cleared an item whose session died: measured 2026-11-09,who-needs-me.pyreportedBoard card missing (31)and 30 of those rows belonged to sessionssession-liveness.py --checkreports ABSENT (72b2851aandd72dda9fat 260 hours,19561716at 221 hours), so the one live uncarded gate sat under 30 dead ones. The cause had recurred 37 days with no owner. The reaper folds*.events.jsonlbyitem_id, selects items older than--max-age-hours(default 24) whose cause isawaiting-operatorand whose session isABSENT, and prints one line per item;--applyappends onecloseline each and printsreaped: <id>.⚠️ It never deletes or rewrites an.events.jsonl— that file is the open-state sourcewho-needs-me.pyfolds, so rewriting it would destroy history and race the hook that appends.⚠️ .open.jsonis not the open-state source (measured 2026-11-19: all 984 carrycleared_by).⚠️ A failed liveness read is never ABSENT — an unreadable probe keeps the item, so an outage cannot close live gates. The classification is imported fromwho-needs-me.py(cause_class,row,wezterm_panes,read_registry) rather than re-implemented, so the tags cannot drift from the report it cleans.⚠️ A failed pane read refuses (exit 2), never crashes:wezterm_panes()answersNoneon a mux timeout — measured up to ~88 s under load, which is the loaded machine this targets — andis_routablewould raiseTypeErroronstr(pane) not in None;open_panesis also derived from every open item, not just the stale candidates, matching the report. Change set:scripts/reap-stale-gates.py,scripts/tests/test_reap_stale_gates.py,CHANGELOG.md.