Skip to content

🤖 ci: accept resolved Codex advisories on the review summary board - #4223

Merged
ibetitsmike merged 1 commit into
mainfrom
mike/codex-gate-resolved-advisories
Sep 11, 2026
Merged

🤖 ci: accept resolved Codex advisories on the review summary board#4223
ibetitsmike merged 1 commit into
mainfrom
mike/codex-gate-resolved-advisories

Conversation

@ibetitsmike

Copy link
Copy Markdown
Contributor

Summary

The Codex Comments gate treats Codex's review summary board as a blocking comment whenever it carries a "Security findings" section, even after every advisory thread is resolved and both reviews are complete. This whitelists the section when each advisory bullet carries Codex's own Resolved marker, so PRs that once had a security advisory can pass Required again. Unblocks #4211.

Background

Codex keeps resolved security advisories listed on the board and only adds the · **Resolved** marker when a later review completes (verified from the board's edit history on #4211: the marker appeared at the next review completion, not when the thread was resolved). The gate's line whitelist (#4149, #4158) does not know the section, so a completed board with resolved advisories is reported as an unresolved Codex comment and Required can never go green. On #4211 the gate log at 17:24Z shows exactly that: status: completed, both rows Completed, two **Resolved** advisories, still counted as blocking. The two most recent merged PRs with such boards (#4170, #4176) only passed because the section was added after their last gate run.

Implementation

scripts/lib/codex_comments.jq accepts three more line shapes inside a completed board: ### Security findings, #### Advisory findings (N), and a bullet that links a review thread on a PR (.../pull/N#discussion_r<id>), names a severity, and ends with · **Resolved**. A bullet without the marker is a live finding and keeps blocking, as do unknown sections, non-thread links, and trailing text.

Validation


Generated with xum • Model: anthropic:claude-fable-5-1 • Thinking: xhigh • Cost: $16.42

Codex keeps resolved security advisories listed on its summary board and
only adds the Resolved marker once a later review completes, so a
completed board with the "Security findings" section failed the Codex
Comments gate forever. Whitelist the section header, the advisory count
line and bullets that link a review thread on this PR and end with
Codex's Resolved marker; bare bullets, unknown sections and non-thread
links keep blocking.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 11, 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-09-11T18:23:23.835702Z ce3fcd1 PR opened
🔒 Security Review Completed 2026-09-11T18:29:31.954822Z ce3fcd1 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