Repository navigation
fix(batch): live-shift worker gaps — no EnterWorktree, decision label, late-arrival sweep - #595
Merged
Merged
Conversation
… label, late-arrival sweep (#594) 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 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Three gaps found in pilot live shift 1 (re-run, PyAutoLabs/PyAutoMind#543):
PyAutoLabs-wt/worktree. That raises a "permission-root relocation" prompt for any worktree outside.claude/worktrees/, and the worker sat blocked about 70 minutes. The worker prompt now forbids the tool; workers use absolute paths andcdin Bash.review-at:. After the digest every tick was idle, so its.doneand two ledger ops were never collected (they were committed by hand). A closed shift with a lease held or ops queued now runslate_sweep: it reaps, commits the ops through the one Mind writer, and appends a- late: <task> — <url> (after review-at, …)line to the record under### Late arrivals. It never spawns, re-dispatches, starts a close-out or posts a second comment. With nothing pending, the tick is idle.gh pr edit <url> --add-label decision-taken, which is the label the close-out refuses on.Closes #594
API Changes
Adds
_orchestrator.late_sweepandLATE_HEADING. A new tick action,late. A new counters key,late. The worker template has two new rules.Witness
session_commandtest)..doneafter review-at (digest posted) is reaped by the next tick with actionlate: outcome recorded, tokens counted, no spawn, lease released; the next tick is idle.failedworker is named "crashed; not re-dispatched" andpending_redispatchis emptied.### Late arrivals(run withPYAUTO_MINDset, since it needsledger_merge.py)._orchestrator.pyand template, the new tests fail (4 failed); with the fix all 6 pass.Tier: glance — merge mode: auto-merge on green with Witness PASS, post-merge summary.
🤖 Generated with Claude Code