Repository navigation
The pull cord: pause every agent until resume, across restarts - #408
Conversation
A daemon op pause {reason, by} stores a one-row pause (schema 63), ends
every running turn as interrupted with daemon_paused, and holds every
start: reject submissions answer daemon_paused, queued work, triggers and
notes wait, parked turns stay parked. resume lifts it and what waited
starts. Both are told to every session as paused/resumed events, and
ready and stats carry the pause. A bot's own socket pauses as that bot.
agent pause --reason / agent resume send them, as AGENT_BOT in a bot's
shell. Sonny gets /pause REASON and /resume and a line above the footer
saying who paused and why. task.md and lead.md tell agents to pull it
when they see harm someone needs to look at, with no tool for it.
Protocol 24.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_013jkdGF2d82b9p96KboFLML
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
Security findingsAdvisory findings (2)
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGF2d82b9p96KboFLML
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: d0edb533fc
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGF2d82b9p96KboFLML
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 21807dc0f4
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGF2d82b9p96KboFLML
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 54b6395f45
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGF2d82b9p96KboFLML
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGF2d82b9p96KboFLML
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: f25c82dcf4
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGF2d82b9p96KboFLML
A command a steer moved to the background ends with the pull, as one started there does. Sonny keeps a pause or resume that came during its follow replay, and shows the pause over a waiting approval, whose keys wait for the resume. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGF2d82b9p96KboFLML
There was a problem hiding this comment.
🛡️ Codex Security Review · Automatically triggered
Here are some automated security review suggestions for this pull request.
Reviewed commit: 064515de88
ℹ️ About Codex security reviews in GitHub
This is an experimental Codex feature. Security reviews are triggered when:
- You comment "@codex security review"
- A regular code review gets triggered (for example, "@codex review" or when a PR is opened), and you’re opted in so security review runs alongside code review
Once complete, Codex will leave suggestions, or a comment if no findings are found.
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGF2d82b9p96KboFLML
The pause's table now takes schema 64, after #393's 63. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGF2d82b9p96KboFLML
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGF2d82b9p96KboFLML # Conflicts: # sonny/agents/lead.md # sonny/agents/task.md
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGF2d82b9p96KboFLML # Conflicts: # docs/DAEMON_MEASUREMENTS.md
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGF2d82b9p96KboFLML # Conflicts: # sonny/agents/lead.md
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGF2d82b9p96KboFLML # Conflicts: # sonny/src/main.rs
There was a problem hiding this comment.
🛡️ Codex Security Review · Automatically triggered
Here are some automated security review suggestions for this pull request.
Reviewed commit: 4e8fac0f55
ℹ️ About Codex security reviews in GitHub
This is an experimental Codex feature. Security reviews are triggered when:
- You comment "@codex security review"
- A regular code review gets triggered (for example, "@codex review" or when a PR is opened), and you’re opted in so security review runs alongside code review
Once complete, Codex will leave suggestions, or a comment if no findings are found.
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGF2d82b9p96KboFLML # Conflicts: # client/src/lib.rs # docs/DAEMON_MEASUREMENTS.md # sonny/agents/task.md
George asked for an andon cord: one way to stop every agent at once, which agents can pull from the CLI ("Let's not give them a tool, but let's keep the CLI"). The design was discussed first in the pull cord doc, and he took all three recommendations:
Later, on Codex's security finding, he chose to have a sandboxed bot's socket refuse
resume.It works like a Toyota andon cord, or
kubectl cordon: one flag that anyone with access can set and a person clears.Daemon (protocol 24, schema 64)
{"op":"pause","reason","by"}stores a one-rowpausetable with the reason, who pulled it and when.interruptedwithdaemon_paused, and it also ends background commands, steered shells and terminals. Detached commands are left running.has_capacity()is false while paused.rejectsubmission answersdaemon_paused, the same way draining answersdaemon_draining.queueandsteersubmissions are recorded and wait, and triggers and notes wait with them.attachis taken as usual.changed: false.byis always that bot.{"op":"resume"}lifts the pause. It answers with the pause it lifted, or null if none held. Whatever waited starts as capacity allows.not_permitted.shutdown --grace.pausedorresumedevent (durable: false). A session too far behind to take one is closed, so it hears the pause in its next greeting.readyandstatsboth carrypaused.agent pause --reason TEXTsends the pause asAGENT_BOTwhen run in a bot's shell, andagent resumelifts it.Sonny
/pause REASONand/resume.⏸ Every agent is paused by NAME: REASON · /resumeabove the footer. The banner starts from thereadypause, follows the events, and is kept across reattaches.task.mdandlead.mdeach get one sentence: when you see agents doing harm someone needs to look at, such as data being lost, money being spent or messages going out, stop every agent with"$AGENT_BIN" pause --reason WHY; resuming them is the person's call. Agents get no tool for this.docs/SONNY.md#pause, the README, and a row inFEATURES.md(experimental).Shared numbers
docs/DAEMON_MEASUREMENTS.md, after Daemon: bound each session's queue by bytes, not 64 messages #425's.Tests
test_a_pause_stops_every_agent_until_resume_across_restarts(AGENT_TEST_RUNTIME=1). It checks that:daemon_paused;rejectis refused andqueuewaits;resumeruns what waited;resumeis a no-op.resume(test_approvals)./pausewithout a reason, then with one;pausedevent and over a waiting approval;/resume, and theresumedevent clearing the banner.cargo test --workspacepasses, andcargo clippy --workspace --all-targets -D warningsis clean.🤖 Generated with Claude Code