Repository navigation
feat: live shift view you can steer — status comment, /pause /drop /stop, /batch watch (#622) - #623
Merged
Merged
Conversation
…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>
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
Pre-M3 build 1 of 3. Closes #622.
/pause,/resume,/drop <task>and/stop.mention_login, only afterdispatched:, and only as the first line of a comment./pauseholds spawns, re-dispatches and new close-outs; reaps and mentions continue./dropremoves an unspawned pick. For a running one it writes a.droppedmarker that the close-out checks before merging. A merge that lands anyway is recorded as outside the close-out, with no stage-2 row./stophas exactly the effect of the STOP kill-switch file./batch watchfor a Claude window. A- live:line in the brief record feeds the dashboard batch box.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.pytest tests/: 1842 passed. The known environmentaltest_grouped_organ_consumersfailure remains.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:
/dropdid not stop a running close-out;/stoppushed the ledger;/pausewording was inconsistent;/droptypo got a false acknowledgement;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