Skip to content

🤖 ci: Codex Comments gate fails closed when a Codex review completes with null finding flags #7727

Closed

Description

@ThomasK33

What happens

The Codex Comments CI gate fails, and so Required fails, on a PR where Codex found nothing. This happens when Codex's summary comment reports a review as completed with null finding flags. A rerun of the job fails the same way, because the state does not change.

First seen on #7721 at head 18b1cfc8ef (state comment 6497492531):

"security_review":{"commit_sha":"18b1cfc8ef0165f1b84a52bea0c21d47d2614610","has_any_findings":null,"has_unresolved_findings":null,"status":"completed"}

Codex also posted no +1 reaction. Of the 15 most recent PRs, only #7721 showed this state.

Cause

codex_summary_status in scripts/lib/codex_comments.jq accepts has_unresolved_findings == null only while status == "running\" ("Codex sends null only while a review runs; a completed one must say false"). For completed plus null, the classifier returns null (unknown), and check_codex_comments.sh counts the summary as an unresolved Codex comment.

Failing closed on an unknown state is the safe default, so this is not a request to accept null. The gate needs a defined way out. Today the only way out is a manual @codex security review (or @codex review), which costs a review round.

Possible directions (not decided)

  1. The gate reports this state as its own message ("Codex review completed without a verdict, request a new review") instead of the generic "unresolved comments". Then the author knows what to do.
  2. Or, wait_pr_codex.sh / wait_pr_ready.sh detect the state and say so.

Generated with xum • Model: anthropic:claude-opus-5-5 • Thinking: high • Cost: $298.52

Activity

  1. ThomasK33 commented on Oct 29, 2026

    @ThomasK33
    MemberAuthor

    Picked up by the bug fixer lane (workspace a6151739e2) at the desk's request: PR #7729, branch fix/codex-gate-null-security-flags. This unblocks #7722.

  2. added 3 commits that reference this issue on Oct 29, 2026
    616277e
    5e0b266
    6b0aa51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions