Skip to content

feat: live shift view you can steer — status comment, /pause /drop /stop, /batch watch (#622) - #623

Merged
Jammy2211 merged 2 commits into
mainfrom
feature/live-shift-view
Nov 13, 2026
Merged

Jammy2211 merged 2 commits into
mainfrom
feature/live-shift-view

Conversation

@Jammy2211

Copy link
Copy Markdown
Contributor

Summary

Pre-M3 build 1 of 3. Closes #622.

  • One status comment per shift on the shift issue: created once, then edited at most once per tick (on a state change, every 10 min, and once at review-at). It shows picks, workers, tokens, blocks and time left. A crash or timeout never produces a second comment: the watcher adopts its own tagged comment, posted by the posting identity. The comment mentions nobody.
  • Steering commands: /pause, /resume, /drop <task> and /stop.
    • Only from mention_login, only after dispatched:, and only as the first line of a comment.
    • Each command is enacted and acknowledged once, by comment id.
    • /pause holds spawns, re-dispatches and new close-outs; reaps and mentions continue.
    • /drop removes an unspawned pick. For a running one it writes a .dropped marker that the close-out checks before merging. A merge that lands anyway is recorded as outside the close-out, with no stage-2 row.
    • /stop has exactly the effect of the STOP kill-switch file.
  • /batch watch for a Claude window. A - live: line in the brief record feeds the dashboard batch box.
  • AUTONOMY.md: the watcher network-surface amendment, dated 2026-11-13 and authorized by the human.
  • Call budget: one comments read plus at most one write per tick. Every GitHub write uses PYAUTO_SHIFT_GH_TOKEN, which never reaches workers.

Test plan

  • tests/test_orchestrator_steering.py: 20 tests, offline with a fake gh. They fail on the old code.
  • Brain pytest tests/: 1842 passed. The known environmental test_grouped_organ_consumers failure remains.
  • Skill line counts OK. Tenant firewall OK.

Gate

  • Heart, scoped dev-ship verdict: GREEN for PyAutoBrain and PyAutoMind (ts 2026-11-13T18:06:03Z). No override was needed.

  • Independent review (fresh Opus context): FINDINGS, then fixed, then CLEAN. The findings were:

    • /drop did not stop a running close-out;
    • /stop pushed the ledger;
    • the /pause wording was inconsistent;
    • comment adoption ran only with a login set;
    • a /drop typo got a false acknowledgement;
    • two test gaps.

    The remaining close-out race is acknowledged and recorded, never counted as an unattended merge.

  • Human: approved the design and the AUTONOMY network-surface amendment on 2026-11-13, and gave the merge command (judge tier).

🤖 Generated with Claude Code

Jammy2211 and others added 2 commits November 13, 2026 15:04
…resume /drop /stop, /batch watch (#622)

The watcher keeps one status comment per shift on the brief's issue:
created once (status.json claimed before the create), then only edited,
at most once a tick (on a change of state, or every 10 minutes). A create
that may have landed is never re-made; the comments read adopts it by its
hidden tag. A failed edit is retried next tick and the tick carries on.

After the reap, one `gh api .../comments` read per tick takes the human's
commands: the first line of a comment by mention_login, made after
dispatched:. /pause holds new spawns, proposals and close-outs until
/resume; /drop <task> keeps a pick from ever being picked (a running worker
is shown "dropped, still running", never re-dispatched or merged
unattended, and stopping it stays the human's); /stop writes STOP. Each
comment is enacted once by id and acknowledged once in the status comment.

The dashboard shows the same status as the record's `- live:` line (new
`record-key` Mind-writer op, written on a change of state) in the batch
box. `batch watch` shows pause, refusals, commands and the comment link.
AUTONOMY.md: the watcher network-surface amendment dated 2026-11-13.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…its nothing, adoption by the poster

- /drop writes leases/<task>.dropped; closeout_template.md checks it just
  before merging and refuses. A merge that lands anyway is recorded as
  "merged outside the close-out after /drop": never counted, no stage-2 row.
  The ack says a running close-out may still merge the PR.
- /drop takes only a task of this shift (picks, leases, outcomes, the brief's
  named tasks, the plan's members), else "no such task in this shift".
- The /stop tick skips the live line and every Mind commit; its one status
  edit is the ack, so /stop has exactly the STOP file's effect.
- /pause wording aligned: holds spawns, re-dispatches and new close-outs;
  reaps and mentions continue (PAUSE_ACK, AUTONOMY, AGENTS, reference).
- The comments read runs for adoption even with no login set, and adopts
  only a comment written by the posting identity (gh api user, once a shift).
- Tests: FakeGitHub honours `since`; an edited enacted command never
  re-triggers; drop typo; drop vs running close-out; /stop commits nothing;
  adoption without a login, and never from another author.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Jammy2211
Jammy2211 merged commit 8fdf79b into main Nov 13, 2026
2 checks passed
@Jammy2211
Jammy2211 deleted the feature/live-shift-view branch November 13, 2026 18:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: live shift view you can steer — status comment, /pause /drop /stop, /batch watch (pre-M3)

1 participant