Skip to content

Sonny: the sky shows the andon cord, who pulled it and who let the line go on - #528

Merged
lydakis merged 3 commits into
mainfrom
claude/project-thread-4m2gtn
Oct 31, 2026
Merged

lydakis merged 3 commits into
mainfrom
claude/project-thread-4m2gtn

Conversation

@lydakis

@lydakis lydakis commented Oct 31, 2026 •

Copy link
Copy Markdown
Owner

George wanted a pull of the andon cord (agent pause / /pause), rare as it is, to be a big moment in /sky that makes clear who pulled it, whether that was an agent or George. He wanted the resume shown too, with who resumed.

/sky as an agent pulls the cord

Pull: a yellow cord drops from the top of the sky to whoever pulled it. That's an agent's star, or "you" in the middle when the person pulled it. The cord is tugged with a burst, then three yellow rings sweep out from the puller across the whole sky, and each star goes still (muted) as a ring passes it. After that the cord hangs at the system's middle weight, and the puller keeps a yellow name and a slow pulse. The chat log says ■ pricing pulled the cord: why, and the footer says ■ paused by pricing, 4m · why. A sky opened during a pause hangs the cord from ready["paused"], without the drop.

Resume: the cord is drawn back up, and white rings sweep out from whoever resumed, waking each star as they pass. The log says ▶ you resumed, after 4m.

Yellow is the sky's existing "needs you" hue, and a stopped line needs the person, so no new colour is added.

Daemon: resume takes by as pause does, answers it, and puts it in the resumed notice. The CLI sends AGENT_BOT, Sonny sends none (which means the person), and a sandboxed bot socket still refuses resume. Protocol 30 → 31. The park-on-pull thread takes the next number.

What the sky reads: the paused/resumed notices every session already hears. No new follow kinds and no store change. Replay doesn't show pulls, because the notices aren't events.

Tests

  • cargo test -p sonny: 733 passed. New tests: the cord drops on its puller, the person's pull, a pause already hanging, and the resume ringing out from the resumer.
  • AGENT_TEST_RUNTIME=1 python3 -m unittest -k pause tests.test_runtime tests.test_daemon: 5 passed. test_a_pause_stops_every_agent_until_resume_across_restarts now checks by in the resume answer and in the notice.
  • cargo clippy --all-targets and cargo fmt --check are clean.

@lydakis lydakis self-assigned this Oct 31, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 31, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-31T17:06:17.651891Z 09fe6ee Manual request
🔒 Security Review ⚠️ Failed 2026-10-31T16:34:00.112237Z
We couldn’t complete this review. Comment @codex security review to try again.
de1caa6 New commits
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

The account paying for this security review has reached its Codex usage limits. The payer can check the Codex usage dashboard. For personal accounts, using credits requires enabling “Use credits for security reviews” in Code review settings. If you do not manage the paying account, contact this repository's admins.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: ffd0462e12

ℹ️ 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".

Comment thread sonny/src/sky.rs Resolved
Comment thread sonny/src/sky.rs Resolved
@chatgpt-codex-connector

Copy link
Copy Markdown

The account paying for this security review has reached its Codex usage limits. The payer can check the Codex usage dashboard. For personal accounts, using credits requires enabling “Use credits for security reviews” in Code review settings. If you do not manage the paying account, contact this repository's admins.

lydakis commented Oct 31, 2026

Copy link
Copy Markdown
Owner Author

@codex review


Generated by Claude Code

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

…ne go on

A pull drops a yellow cord from the sky's top to whoever pulled it (an
agent's star, or the person in the middle), tugs it, and rings the stop
out across the sky, each star going still as a ring passes; the cord then
hangs, calmer, its puller pulsing slowly. A resume draws it back up and
rings the start out from whoever resumed, waking each star. The chat log
says who pulled it and why, then who resumed and after how long; the
footer says who paused it and how long ago. A sky opened during a pause
hangs the cord from the ready greeting, with no drop.

The daemon's resume takes `by` as pause does (the CLI sends AGENT_BOT),
answers it, and tells it in the `resumed` notice. Protocol 31.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_013jkdGGjuqazMtAaTVjn2Rg
…leaves it out

Who pulled or resumed is kept a star when the sky folds, for the cord to
hang from and the rings to set out from; a replay drops the pause's
notices, which tell of now, not of the past it plays.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_013jkdGGjuqazMtAaTVjn2Rg
@lydakis
lydakis force-pushed the claude/project-thread-4m2gtn branch from ef2ee38 to 2391c27 Compare October 31, 2026 16:33
@chatgpt-codex-connector

Copy link
Copy Markdown

The account paying for this security review has reached its Codex usage limits. The payer can check the Codex usage dashboard. For personal accounts, using credits requires enabling “Use credits for security reviews” in Code review settings. If you do not manage the paying account, contact this repository's admins.

@lydakis
lydakis force-pushed the claude/project-thread-4m2gtn branch from 2391c27 to de1caa6 Compare October 31, 2026 16:33
@chatgpt-codex-connector

Copy link
Copy Markdown

The account paying for this security review has reached its Codex usage limits. The payer can check the Codex usage dashboard. For personal accounts, using credits requires enabling “Use credits for security reviews” in Code review settings. If you do not manage the paying account, contact this repository's admins.

@lydakis
lydakis merged commit 09fe6ee into main Oct 31, 2026
5 checks passed
lydakis pushed a commit that referenced this pull request Oct 31, 2026
# Conflicts:
#	sonny/FEATURES.md
#	sonny/src/sky.rs

lydakis commented Oct 31, 2026

Copy link
Copy Markdown
Owner Author

@codex security review

Merged without a security review (usage limit); one of the riskier rows in #531 (protocol 31: resume takes an unchecked by).


Generated by Claude Code

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 09fe6eeea3

ℹ️ 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".

Comment thread src/server/mod.rs
Comment on lines +3415 to 3416
Command::Resume { by } => {
let lifted = store.op("remove_pause", |db| db.remove_pause()).await?;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Bound the resumer name before lifting the pause

When a pause holds, a client on the main socket can send resume with a multi-megabyte by: session::LINE_LIMIT accepts requests up to 8 MiB, but this value is copied directly into the broadcast notice. Output::encode() rejects packets larger than 1 MiB, and the notice loop in src/server/mod.rs closes every session whose try_send() fails, so this disconnects even healthy, fully drained clients after already removing the pause. The broadcast also clones and serializes the oversized value separately for every session on the shared runtime. Validate and bound by before remove_pause() so invalid attribution cannot cause a cross-session disconnect.

AGENTS.md reference: AGENTS.md:L51-L53

Useful? React with 👍 / 👎.

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.

2 participants