Skip to content

feat: a blocked shift worker reaches the human via GitHub @mention (M1.6) #611

Closed

Description

@Jammy2211

Overview

Programme task M1.6 (epic autonomous-orchestrators, phase 8), finding ORCH-13. The review did not verify it, so the task starts by re-checking it at source.

The finding: a worker that blocks (parked, awaiting input, or refused) during a shift reaches the human only through the laptop.

Channel, ruled by the human 2026-11-12: a GitHub @mention in a comment on the shift's digest issue in PyAutoMind. GitHub mobile pushes it to the phone, and the digest already lives on that issue. No new credentials.

Plan

  • Re-check ORCH-13 on today's main: what happens now when a worker parks or blocks, and is anything sent off the laptop?
  • When a worker first parks or blocks, the watcher posts one comment on the shift's digest issue. The comment @-mentions the human (the login comes from config, not hard-coded) and names the task, the reason and the worker's worktree or PR.
  • Never more than one comment per worker per state. The comment is posted through the same marker-before-post idempotence the digest uses, and retried if the post fails.
  • The push test in AUTONOMY.md is respected: only states that genuinely need the human trigger a mention.
  • Fake-worker tests run offline, with the gh call behind a seam.

Ships with M1.5 in one branch (feature/watcher-numbers-and-push).

Tier: glance — merge mode: auto-merge on green if the Witness passes, post-merge summary

Witness

  • A fake worker that parks makes exactly one gh issue comment call on the brief's digest issue, with the @mention and the reason. A second tick makes none.
  • A failed post is retried on the next tick.
  • A worker that finishes normally triggers no mention.
  • The re-check result is recorded on this issue.

Activity

  1. Jammy2211 commented on Nov 12, 2026

    @Jammy2211
    ContributorAuthor

    ORCH-13 re-check, 2026-11-12, on origin/main c7e7c1c: it holds.

    The watcher's only GitHub write is gh_comment (agents/conductors/batch/_orchestrator.py:758 and :880), and only finish_shift calls it, after review-at. Parking (:549-562) records counters["parked"] and an event, and nothing else.

    So a blocked worker is visible only on the laptop (batch watch, claude agents) or in the digest at review-at. A worker that parks on its issue may comment there itself, but the watcher sends nothing off the laptop.

    The fix is on branch feature/watcher-numbers-and-push (c491beb).

    🤖 Generated with Claude Code

  2. Jammy2211 commented on Nov 12, 2026

    @Jammy2211
    ContributorAuthor

    Human rulings, live, 2026-11-12 (programme session):

    1. Posting identity: bot account token. GitHub never notifies you of your own @mention, and the watcher posts as the human's account. So the watcher's GitHub writes use a separate bot or machine account token (fine-grained, PyAutoMind issues:write only), set by the human via PYAUTO_SHIFT_GH_TOKEN. Until it is set, the digest warns that the mention will not notify.
    2. AUTONOMY.md network-surface amendment: signed off in full. That covers the @mention per parked worker, one correction comment per shift on a late arrival, the bounded retry of a failed post (at most 3, never after a timeout), a read-only gh pr view per PR at review-at, and dropping the rule that a second comment retires the watcher.

    🤖 Generated with Claude Code

  3. Jammy2211 commented on Nov 12, 2026

    @Jammy2211
    ContributorAuthor

    Heart RED override (development only), recorded per AUTONOMY.md.

    The live human authorized it in the programme session on 2026-11-12: "Override + merge". That covers the development-only override for #610 and #611 and the merge command, on condition that every required check is green within the turn.

    Current RED reasons, verbatim (ts 2026-11-12T20:14:16Z): "PyAutoNerves: 2 commit(s) behind origin"; "PyAutoArray: 2 commit(s) behind origin"; "PyAutoGalaxy: 14 commit(s) behind origin"; "PyAutoLens: on branch feature/non-imaging-features-review (not main)"; "PyAutoLens: 4 uncommitted source change(s)"; "PyAutoCTI: 2 commit(s) behind origin"; "install verification FAILED (testpypi; checks F)"; "release validation FAILED (stage integrate)"

    None of these is in PyAutoBrain or PyAutoMind. Branch gates passed:

    • Brain suite: 1747 passed.
    • Independent review: clean after three rounds.
    • Smoke: not applicable.

    PRs: PyAutoLabs/PyAutoMind#560 and #612

    🤖 Generated with Claude Code

  4. added a commit that references this issue on Nov 12, 2026
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