From 352a88cb19f1f6965f2bff05bf2df9df2e74483b Mon Sep 17 00:00:00 2001 From: Jammy2211 Date: Fri, 6 Nov 2026 12:51:35 +0000 Subject: [PATCH] =?UTF-8?q?fix(batch):=20live-shift=20worker=20gaps=20?= =?UTF-8?q?=E2=80=94=20no=20EnterWorktree,=20decision-taken=20label,=20lat?= =?UTF-8?q?e-arrival=20sweep=20(#594)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Worker prompt: never EnterWorktree (its permission prompt stalls an unattended worker); label a PR decision-taken when a decision is flagged. Watcher: a closed shift with a lease held or ledger ops queued runs late_sweep: reap, commit ops, name each late arrival in the record under '### Late arrivals'. Never a spawn, re-dispatch, close-out or second comment. Co-Authored-By: Claude Opus 5.5 --- agents/conductors/batch/AGENTS.md | 12 +++ agents/conductors/batch/_orchestrator.py | 60 +++++++++++++ agents/conductors/batch/worker_template.md | 8 ++ tests/test_orchestrator_dispatch.py | 99 ++++++++++++++++++++++ 4 files changed, 179 insertions(+) diff --git a/agents/conductors/batch/AGENTS.md b/agents/conductors/batch/AGENTS.md index 429f6398..8218906a 100644 --- a/agents/conductors/batch/AGENTS.md +++ b/agents/conductors/batch/AGENTS.md @@ -285,6 +285,18 @@ watcher's own: one `claude agents --json` per refresh, only on a live shift holding real worker leases, and `gh pr checks` for unmerged PRs, cached for the interval. +**Late arrivals (PyAutoBrain#594).** A worker may finish after `review-at:`, +once the digest is posted. A closed shift with a lease still held or a ledger op +still queued runs `late_sweep` on each tick: it reaps as a live tick does, +commits the queued ops through the one Mind writer, and appends one +`- late: — (after review-at,