Repository navigation
Sonny: show auto-review in progress and its denials; /approve retries one - #261
Conversation
George asked to follow Codex's auto-approval patterns where ours were odd. This takes the picks that need no sandbox: - The judge gets Codex's written policy (evidence handling, authorization scoring, risk taxonomy, exfiltration, credential probing, security weakening, destructive actions, outcome table) with this agent's trust rules folded in, and answers one assessment a call: risk_level, user_authorization, outcome, rationale. The eleven probability questions built for Jev are gone; the Decisions API gets one predicate a call. - A denial goes back to the model at once with Codex's wording. Only a call too long to show is still handed to a person. - A review is tried up to 3 times within 90 s, then denied as a labeled review failure (or a timeout). The answer carries `unreviewed`, and the daemon counts it toward no breaker. - The breaker is Codex's: 3 in a row, or 10 among the turn's last 50 decided calls. The daemon keeps that window as bits on the bot. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01NSAn6KdbZwnLbDoimEJpTZ
- Schema 54 turns a stored per-turn count into that many denials as the window's newest calls, so a turn parked across the upgrade keeps its breaker count instead of starting from none. - A denial's reason clips the judge's rationale to 4 KiB on a character boundary and names only known risk and authorization levels, so it always fits the daemon's 16 KiB reason limit. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01NSAn6KdbZwnLbDoimEJpTZ
… given Codex shows its guardian the transcript, tool outputs included and marked untrusted, and treats AGENTS.md as the person's instructions. The judge's state gains the bot's own messages, calls and outputs within Codex's synchronous bounds, and the AGENTS.md files that still read as the bot was given them. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01NSAn6KdbZwnLbDoimEJpTZ
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01NSAn6KdbZwnLbDoimEJpTZ
…AGENTS.md only as given in full A cut could keep the tail of a secret the redactor no longer recognizes, so each entry is redacted before it is cut to its share. AGENTS.md files count as standing instructions only when every file that applies reads exactly as the bot's instructions hold them, followed by the next composed section: a file cut short at a paragraph, added, or removed reads as changed, and then none is shown. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01NSAn6KdbZwnLbDoimEJpTZ
…ole state within one judge prompt A registered secret with a quote in it no longer matches once its call's arguments are JSON-escaped, so they are redacted as values first, as planned calls are. The standing instructions and the transcript are bounded on their own, so together the state could pass the daemon's 256 KiB prompt limit and every attempt would fail: past 240 KiB the oldest transcript entries go first, then the standing instructions. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01NSAn6KdbZwnLbDoimEJpTZ
Agents write memory, so an index could be made to read as the paragraphs an agent cut from AGENTS.md, and an empty index matched any cut at a paragraph. Only the end, the skills or profiles list, or a role with no list after it now marks the end of the files. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01NSAn6KdbZwnLbDoimEJpTZ
A shell's result encodes what the command printed, so a printed secret with a quote or backslash read otherwise once escaped and slipped past redaction of the text. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01NSAn6KdbZwnLbDoimEJpTZ
… one While the auto judge reviews a call, the status row reads "Reviewing approval request" (or N requests), as in Codex. A denied call is drawn as "✗ Request denied for <action>" with the reason, live and in replay. /approve lists this session's recent auto-review denials and approves one retry of the chosen one, with Codex's wording: that exact action, in the same context, and nothing similar. The retry is still reviewed. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01NSAn6KdbZwnLbDoimEJpTZ
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
Security findingsAdvisory findings (3)
ℹ️ 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. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 5ca8035266
ℹ️ 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".
A denied question was pinned as asked, live and in the replay, since a denial carries no failed flag. And one call's denial set the status to Working while the judge still reviewed the round's other calls. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01NSAn6KdbZwnLbDoimEJpTZ
|
@codex review Generated by Claude Code |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 5703e592b0
ℹ️ 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".
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: 5703e592b0
ℹ️ 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.
…r approves it; a cancelled call leaves review The picker showed a command's first line, or a write's path, so a person could approve what they had not read. And a call cancelled before it started stayed under review into later turns. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01NSAn6KdbZwnLbDoimEJpTZ
|
@codex review Generated by Claude Code |
|
Codex Review: Didn't find any major issues. More of your lovely PRs please. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
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: 38fb9cb18f
ℹ️ 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.
Past 500 rows the start of a written-out call could scroll out of what the screen keeps, so the person approves it in words instead. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01NSAn6KdbZwnLbDoimEJpTZ
|
@codex review Generated by Claude Code |
|
Codex Review: Didn't find any major issues. Another round soon, please! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
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: faca4e3f56
ℹ️ 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.
A detached or backgrounded command read like any other, though the approval covers how it runs as well. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01NSAn6KdbZwnLbDoimEJpTZ
|
@codex review Generated by Claude Code |
|
Codex Review: Didn't find any major issues. 🎉 Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
…-6y8uvt # Conflicts: # sonny/src/main.rs
|
Generated by Claude Code |
Main's send now takes pictures; an /approve retry carries none. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01NSAn6KdbZwnLbDoimEJpTZ
# Conflicts: # sonny/src/main.rs
Picks 5 and 7 of the Codex alignment (#237 and #243 did the approver side). Codex's TUI shows when its guardian is reviewing a call, draws each denial with its reason, and offers
/approveto retry a denied action once. Until now Sonny showed nothing while the judge worked, and a denial looked like any other tool error.What changes
Reviewing approval request, orReviewing N approval requestswhen there are several. This is Codex's wording.✗ Request denied for <action>, followed by the judge's reason in up to four dim rows.askis never pinned and a deniedresolve_taskresolves nothing./approve: lists this session's most recent auto-review denials, up to eight.detach,timeout_ms, …), or a write's or edit's full arguments./approvalsbullet mentions the status and the denial line, and there is a new/approvebullet.Screenshots
These were taken against a real daemon and
agent approver, with a stand-in judge that denies--force.Reviewing:
Denied:
/approve, after the first Enter:Tests
an_auto_review_denial_is_drawn_and_approve_sends_one_retryuses a fake daemon and checks:askisn't pinned;/approve, and that the retry is sent as one message.a_denied_call_reads_from_its_output_in_the_replaycovers the replay, plus the whole-call rendering for a write, a detached command and a multi-line command.cargo test -p sonny --binspasses (263), and clippy with-D warningsandcargo fmt --checkare clean.🤖 Generated with Claude Code