Skip to content

v0.359.0

Choose a tag to compare

@ben-s-github-releaser ben-s-github-releaser released this 20 Nov 08:36
· 325 commits to master since this release
  • feat: scripts/reap-stale-gates.py closes stale awaiting-operator gates 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.py reported Board card missing (31) and 30 of those rows belonged to sessions session-liveness.py --check reports ABSENT (72b2851a and d72dda9f at 260 hours, 19561716 at 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.jsonl by item_id, selects items older than --max-age-hours (default 24) whose cause is awaiting-operator and whose session is ABSENT, and prints one line per item; --apply appends one close line each and prints reaped: <id>. ⚠️ It never deletes or rewrites an .events.jsonl — that file is the open-state source who-needs-me.py folds, so rewriting it would destroy history and race the hook that appends. ⚠️ .open.json is not the open-state source (measured 2026-11-19: all 984 carry cleared_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 from who-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() answers None on a mux timeout — measured up to ~88 s under load, which is the loaded machine this targets — and is_routable would raise TypeError on str(pane) not in None; open_panes is 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.