Skip to content

Security review only (do not merge): #534 Pull cord parks running turns, resume continues them - #581

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

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

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 #534 never got (tracked in #531). The base is the commit before #534 merged (e924653^) and the head is the merge commit e924653, so the diff is exactly what #534 landed on main. Once findings are fixed on main or filed, this PR gets closed and both security-review/534* branches are deleted.

What to look at: the daemon's turn lifecycle, tools and store. Parked turns continue on resume, and killed tool calls are reported, not run again. Check that no tool call with side effects can run twice, that nothing escapes a pause, and that the resume bounds and refusals hold for sandboxed callers.

* Pull cord: running turns park on a pull and continue on resume

A pull used to end every running turn as interrupted, and nothing started
them again on resume. Now each parks at once as a closed pool parks it
(status paced, `turn_paced` with `paused: true` and no `resume_at_ms`), and
its wake-up waits for `resume`, across restarts too. Each call it had not
answered gets a `daemon_paused` result saying the pause stopped it (it may
have had effects) or came before it ran, with the pause; none is run again,
as Codex answers the calls an interrupt cut off. A background command the
pull ends says the same on its handle. The pause is not counted as paced
time, and the pause reply counts `parked`, not `interrupted`. Sonny says
"Paused" for such a turn. Protocol 31; no schema change.

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

* Pull cord: results say facts only; closed calls end their steps; a park that committed as the pull landed stays

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

* Pull cord: an interrupt after a pull still ends the turn

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

* Pull cord: a wait parked as the pull landed keeps its wake-ups; by is bounded on pause and resume

A park of the turn's own that committed as the pull cancelled its task now
has its wake-ups registered by the task, as a restart registers a parked
turn's: a pool's time, a verdict or answer looked at again, or a wait's
handles and the round's next lapse. `by` on `pause` and `resume` is 1 to 128
bytes, as a verdict's is, answering `invalid_by` otherwise: it is told to
every session.

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

* Pull cord: take protocol 33, main having taken 32

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

---------

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:07:57.753542Z e924653 PR opened
🔒 Security Review ✅ Completed 2026-11-01T06:09:06.693933Z e924653 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.

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