Skip to content

Security review only (do not merge): #528 The sky shows the andon cord (protocol 31) - #583

Closed
lydakis wants to merge 1 commit into
security-review/528-basefrom
security-review/528
Closed

lydakis wants to merge 1 commit into
security-review/528-basefrom
security-review/528

Conversation

@lydakis

@lydakis lydakis commented Nov 1, 2026 •

Copy link
Copy Markdown
Owner

Do not merge. This PR exists only so Codex runs the security review that #528 never got (tracked in #531). The base is the commit before #528 merged (09fe6ee^) and the head is the merge commit 09fe6ee, so the diff is exactly what #528 landed on main. Once findings are fixed on main or filed, this PR gets closed and both security-review/528* branches are deleted.

What to look at: protocol 31, where resume takes by, filled from AGENT_BOT by the CLI, and the daemon's resume path. #534 later bounded by to 1–128 bytes on main.

…ne go on (#528)

* Sonny: the sky shows the andon cord, who pulled it and who let the line 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

* Sky: the cord keeps its ends as stars in a crowded sky, and a replay 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

* Sky: a copy pulls the cord as the agent it is drawn on

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

---------

Co-authored-by: Claude <[email protected]>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 1, 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-11-01T06:08:08.641753Z 09fe6ee PR opened
🔒 Security Review ✅ Completed 2026-11-01T06:09:27.249879Z 09fe6ee PR opened
ℹ️ 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 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 +3422 to +3423
self.notices.push(
json!({"event": "resumed", "pause": lifted, "by": by, "durable": false}),

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 resume attribution before lifting the pause

When a pause holds, a main-socket client can send resume with a by string larger than 1 MiB but within the 8 MiB request-line limit. This branch copies that string into the broadcast notice without validation. In the inspected daemon, Output::encode rejects events over 1 MiB, and the notice-distribution loop in src/server/mod.rs closes every session whose try_send fails, so this single request disconnects all connected clients, including healthy approval consumers. Validate the attribution length before removing the pause, rather than letting an oversized notice reach the broadcaster. This also avoids copying and encoding megabytes per session on the shared runtime thread.

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.

1 participant