Repository navigation
Approver: show the judge the agent's history and the AGENTS.md it was given - #243
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
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. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 1511057bf5
ℹ️ 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".
…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
|
@codex review Generated by Claude Code |
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: 60e7fb45d8
ℹ️ 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.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 60e7fb45d8
ℹ️ 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".
…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
|
@codex review Generated by Claude Code |
|
Codex Review: Didn't find any major issues. You're on a roll. 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: 21beb35384
ℹ️ 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.
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
|
@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: f1fd18599f
ℹ️ 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".
🛡️ Codex Security Review · Automatically triggeredSecurity review completed. No security issues were found in this pull request. Reviewed commit: Only the user who started this review can view the report in Codex. ℹ️ About Codex security reviews in GitHubThis is an experimental Codex feature. Security reviews are triggered when:
Once complete, Codex will leave suggestions, or a comment if no findings are found. |
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
|
@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". |
🛡️ Codex Security Review · Automatically triggeredSecurity review completed. No security issues were found in this pull request. Reviewed commit: Only the user who started this review can view the report in Codex. ℹ️ About Codex security reviews in GitHubThis is an experimental Codex feature. Security reviews are triggered when:
Once complete, Codex will leave suggestions, or a comment if no findings are found. |
Pick 4 of the Codex alignment (#237 was picks 2, 5, 6 and 9). Codex shows its guardian reviewer the conversation transcript, tool outputs included and marked as untrusted evidence, and treats AGENTS.md as the person's own instructions. Until now our judge never saw a tool output or any of the model's prose. That left out context the bare calls don't carry, such as what a script printed before the call that runs it, or what the model said it was doing.
What changes
transcriptis new in the judge's state. It holds the bot's own history, oldest first: its messages (model), the calls it made (call), and what they returned (output), with acall_idtying each call to its output.history_nodesandhistory_itemsnewest first and keeps entries within Codex's synchronous bounds: 5,000 tokens per message, 1,000 per call or output, 20,000 for all messages, 10,000 for all tool entries, and 40 entries at most.transcript_cutis set when anything is left out.planned_calls.standing_instructionslists the AGENTS.md files that apply to the workspace, but only when every one of them reads exactly as the bot was given them in its stored instructions (policy::given_agents_files). If a file was edited, cut short, added or removed since, none of them is shown. That way an agent can't write itself permission or drop a restriction.standing_instructionsas trusted, alongside the person's words and the environment note. It treats the wholetranscript, tool outputs above all, as untrusted evidence.docs/APPROVALS.mdgets a new section at the top of Automatic mode, and the old "what the judge is shown" note is marked as the earlier design.The person's words stay in
requestandearlier_prompts, labeled with who wrote them, so the consent rules from #237 don't change.Tests
given_agents_files: an edited file, a file cut short at a paragraph, a removed file, and a file followed by a role.cargo test --workspacepasses, apart from the two sandfs FUSE tests that can't run in this container. The approvals, query-plan, CLI and daemon Python suites pass (109 tests).There is no visible change, so there are no screenshots.
🤖 Generated with Claude Code