Skip to content

v0.367.1

Choose a tag to compare

@ben-s-github-releaser ben-s-github-releaser released this 23 Nov 14:56
· 17 commits to master since this release
  • fix: the fleet keeper no longer cards an ABSENT death for a manager it restarted itself. main()'s if live == "ABSENT": branch reads sid = fleet_session() — the id the fleet manager's registration names — and a restart fresh retires that session and starts a new one whose registration lands a moment later. The branch also returned before load_lapse(), so the record proving the keeper caused the death (fresh_consumed, written by act_on_fresh_answer immediately before it runs restart-worker.py --reason lapse --fresh-prompt /supervisor:fleet-loop) was never read on the carding path. Measured 2026-11-16: the operator answered restart fresh at 15:20:21Z, the keeper stopped the manager at 15:30:15Z and started the replacement at 15:30:24Z, then minted an ABSENT card at 15:30:33Z asking the operator to act on the death they had just authorised. The guard matches the session the keeper stopped: fresh_sid is written only when the restart succeeds, and the branch suppresses only while sid == fresh_sid, so a death of the REPLACEMENT manager — or of any session the keeper did not stop — still cards, and a refused or failed restart arms nothing. It is bounded by RESUME_DEFER_MAX; fresh_first_try and fresh_sid persist in the lapse record because the ABSENT branch runs in a later process. Change set: scripts/fleet-keeper.py, scripts/tests/test_fleet_keeper.py, CHANGELOG.md.