Skip to content

test(review): require the script's codex: ran status in the fanout X arms - #12587

Merged
kyle-sexton merged 2 commits into
mainfrom
test/12495-x-arm-codex-ran
Nov 3, 2026
Merged

kyle-sexton merged 2 commits into
mainfrom
test/12495-x-arm-codex-ran

Conversation

@kyle-sexton

Copy link
Copy Markdown
Member

Refs: #12495

Summary

The fanout-diversity Codex arms now require the review script's own codex: ran status, not only Codex in the reply's Ran list. Their doc also stops telling a host run to make a Codex login reachable inside a run's home, where the model under test could read it.

Fix

  • Add graders/codex-ran.md with samples to the 24 X-arm cases: a regex on trace matching a tool result or text block whose content starts with codex: ran.
  • Reword fanout-diversity.md: the X arms run outside claude plugin eval on the host's own login, and a run is valid only when arm-check and codex-ran both pass.

Verification

  • Harness probe of the pattern on trace (2 cases, Sonnet, --runs 1): a command printing codex: ran passes; one printing codex: skipped (no login) and quoting codex: ran later fails.
  • The pattern on the 72 X-arm stream-json traces: 71 matches, the same 71 that codex: ran marks valid; the skipped run does not match.
  • validate-cases.py on plugins/review/evals: no FAIL, no warning naming codex-ran.
  • Left out: a full X-arm rerun through the new grader, since the arms cannot run inside the harness; the arm check and the trace agreed on all 72 runs.

Related

Measured result: #12151 (comment)

Remaining

🤖 Generated with Claude Code

https://claude.ai/code/session_01VQb9Q296cDKeBR2kaZuHaV

…arms

The arm check reads only the reply's Ran list. Add a trace grader to the
24 X-arm cases that requires a tool result starting with `codex: ran`, and
state that the arms run outside the harness on the host's own Codex login,
since copying a login into a run's home exposes it to the model under test.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01VQb9Q296cDKeBR2kaZuHaV
@kyle-sexton
kyle-sexton marked this pull request as ready for review November 3, 2026 01:49
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 3, 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-03T01:51:50.797233Z cb0c437 Draft marked ready
ℹ️ 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.

@github-actions

github-actions Bot commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

claude-security-review reviewed bd8fb1f28d493229342f6eb5ca497223507f46b1: read 1 of 1 changed file(s); 0 finding(s), 0 as inline comments.

Security review (incremental, cb0c437..bd8fb1f): no security issues found

Scope: I read the whole incremental change. It touches one file, plugins/review/evals/fanout-diversity.md, in a single hunk at L31–40. No TRUSTED PATHS glob covers that file.

What changed: the X-arm procedure for running outside the eval harness now says:

  • run each arm as claude -p --output-format stream-json --verbose --permission-mode auto;
  • keep the stream as the run's trace;
  • grade arm-check on the final message, codex-ran on the trace, and recall and false-positive on the copied report.

The --scaffold --allow-tools Bash Write Workflow bullet now applies only to the L and M arms. This is the fix for the settled review-lane thread on this file. That thread is marked lines changed since resolution: no, and I am not raising it again.

Security check on the one new flag, --permission-mode auto:

  • What it allows: the host-run session can use tools under auto mode's permission gate, on a machine that holds the Codex login.
  • Who could exploit it: nobody outside the owner. The run is started by an operator over the owner's own committed scaffold fixtures and prompts. No pull request, issue or comment author supplies input to it.
  • Credential rule: the doc still says never to copy the Codex login into a run's home (L31). The edit leaves that rule as it was.
  • Result: no attacker reaches this path, so there is no finding.

Other checks:

  • Trust controls: none touched. That covers the trusted-actor list, token scope, the kill switch, merge holds and the .github/actions/ controls.
  • Plugin manifests: none changed.
  • Standing instructions: none deleted or weakened.
  • Embedded text: nothing in the PR context or the settled threads tells the review lane what to do.
  • Prior findings: none apply. The only prior entry is the earlier clean summary.

Spend: the X arms run as host-run claude -p sessions plus Codex reviews. That uses only subscription or prepaid usage, so it is not a hold.

critical-findings: 0

@github-actions

github-actions Bot commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

claude-review reviewed bd8fb1f28d493229342f6eb5ca497223507f46b1: read 1 of 1 changed file(s); 0 finding(s), 0 as inline comments.

Code review: PR #12587 (incremental, cb0c4372..bd8fb1f2)

Scope. This round covers only what changed since the last review: one hunk in one file, plugins/review/evals/fanout-diversity.md. I read all of it, plus the file's text around it. The other files in the PR are unchanged since cb0c4372, and I reviewed them then.

Checked:

  • Last round's advisory finding is fixed (thread; the owner has resolved it). The X-arm procedure (L31-L37) now:

    • runs claude -p --output-format stream-json --verbose and keeps the stream as the run's trace;
    • says which input each grader reads: arm-check the final message, codex-ran the trace, and recall and false-positive the copied report.

    This matches the graders' targets from last round: last_message for arm-check and trace for codex-ran.

  • The flag mismatch noted last round is also fixed. The harness-flags bullet (L38) now applies only to the L and M arms. It no longer contradicts the X-arm bullet, whose runs happen outside claude plugin eval.

  • Rule and manifests. The .claude/rules/eval-case-transcripts.md rule is not affected: the new text is procedure and holds no transcript content. No plugin manifest changed in this round.

  • Embedded text. The PR context, settled-threads and prior-findings files contain no directives aimed at this lane.

Findings: none new.

Prior findings: the one earlier inline finding has been fixed at this head, so I did not post it again. This is round 2 of 3, so the cap did not apply.

Not verified: I have no shell, so I did not run the documented claude -p command. The claim in the owner's reply that it works as written is the author's and unverified.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

claude-review: 1 inline finding(s) on cb0c43724e91e0967ea6cfbc9007fa1a9b2e807d; the summary is in this lane's pull request comment.

claude-lane: claude-review

@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 3, 2026
Merged via the queue into main with commit 4c042ae Nov 3, 2026
43 checks passed
@kyle-sexton
kyle-sexton deleted the test/12495-x-arm-codex-ran branch November 3, 2026 02:05
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