Skip to content

fix(batch): live-shift worker gaps — EnterWorktree stall, late finishers stranded, unlabelled decisions #594

Closed

Description

@Jammy2211

Overview

Three gaps from pilot live shift 1 (re-run, PyAutoLabs/PyAutoMind#543; pilot #574):

  1. EnterWorktree stalls workers. The worker used the EnterWorktree tool to move into its task worktree under PyAutoLabs-wt/. That raises a "permission-root relocation" prompt for any worktree outside .claude/worktrees/, which nobody answers in auto mode. It was blocked 70 minutes until the human attached.
  2. Late finishers are stranded. The worker finished at 12:32, after review-at: (12:20). Once the digest is posted every tick is idle, so its .done was never reaped and two ledger ops were never committed (committed by hand, Mind 8f2e2cc4).
  3. Unlabelled decisions. The worker flagged a decide-and-flag scope choice in its summary, but the PR had no decision-taken label, the one thing the close-out refuses on.

Plan

  • worker_template.md: never use EnterWorktree (work by absolute paths and cd in Bash); a PR carrying any flagged decision gets gh pr edit <n> --add-label decision-taken before the .done.
  • _orchestrator.tick: after the digest is posted, a closed shift still runs a late sweep: reap .done/crashes, commit pending ledger ops, and append one - late: <task> — <url> (after review-at) line per late arrival to the record. No spawns, no close-outs, no second comment. It is idle once no lease or op remains.
  • Tests for each; the full Brain suite.

Tier: glance — merge mode: auto-merge on green if the Witness passes, post-merge summary (a non-PASS Witness → human /prm).

🤖 Generated with Claude Code

Activity

  1. Jammy2211 commented on Nov 6, 2026

    @Jammy2211
    ContributorAuthor

    Shipped

    Merged in #595 (12a8e634) as a glance-tier in-turn merge: Witness PASS (control plus a real-git test), CI green, Heart STALE acknowledged by the human.

    Revert: git revert -m 1 12a8e634 in PyAutoBrain.

    🤖 Generated with Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions