Skip to content

🤖 ci: Codex Comments blocks a push-only head: push-triggered Codex runs post no security receipt #7731

Closed

Description

@ThomasK33

What happens

After a push, Codex Comments (and so Required) fails on a PR where Codex found nothing. It stays failed until someone comments @codex security review (or @codex review) and reruns the job. Examples: #7722 head 3bea37c033 (pushed 16:39Z, receipt only after a manual request at 16:58Z) and #7721 head cae39ff73b (pushed 16:41Z, receipt after 16:56Z).

Cause

  1. Codex posts a security receipt only for comment-triggered runs. In 🤖 tests: editAfterEmptyFailedReply resends after a stop-in-progress refusal #7659, 🤖 refactor: split sendTreeMessage, part 5: request, route and endpoint gates #7713, 🤖 tests: cover prepareTaskReservation paths before the split #7717, 🤖 fix: a parent's waiting message no longer unarchives a child the user archived #7721, 🤖 fix: a creation-draft delete retry deletes only the record it knew #7722, 🤖 refactor: split prepareTaskReservation, part 2: parent gates, placement, agentId and bestOf #7724 and 🤖 ci: Codex Comments accepts null security flags only beside a clean receipt for the head #7729, every security receipt follows an @codex review comment (receipt headed "Automatically triggered") or an @codex security review comment. No run triggered by "PR opened" or "New commits" posted one. Examples: 🤖 fix: a creation-draft delete retry deletes only the record it knew #7722 PR opened 13:10Z and push 16:39Z (none), 🤖 ci: Codex Comments accepts null security flags only beside a clean receipt for the head #7729 PR opened 14:56Z (none), 🤖 tests: editAfterEmptyFailedReply resends after a stop-in-progress refusal #7659 PR opened 2026-10-27 01:05Z (none).
  2. Since about 2026-10-29, the board's review state records a finished security review with null flags (🤖 ci: Codex Comments gate fails closed when a Codex review completes with null finding flags #7727). Earlier boards had false flags (🤖 tests: editAfterEmptyFailedReply resends after a stop-in-progress refusal #7659 board 6431143463, 🤖 refactor: split sendTreeMessage, part 5: request, route and endpoint gates #7713 board 6482870861), so a push run used to pass without a receipt.
  3. 🤖 ci: Codex Comments accepts null security flags only beside a clean receipt for the head #7729 accepts null flags only beside a clean receipt for the head. So a push-only head blocks.
  4. The CI job runs on pull_request events only, so a receipt that lands later does not rerun it. Its --wait-for-review 900 does not cover this state either: completed + null + no receipt exits 1 at once, not 10 (in progress).

The gate does read the board correctly when Codex edits it in place. Each PR has one board, the gate fetches its current body, and it requires the board's commit to be the current head. For example, #7722's board 6497578419 was created 13:10Z and last edited 17:00:44Z for 3bea37c033.

Options (not decided)

  1. The gate accepts completed + null security flags when the code review for the head is clean, with no receipt.
  2. Agent readiness scripts post @codex security review once per head when they see this state, and the CI gate treats "completed + null + no receipt" as pending within its wait budget.
  3. The CI job posts @codex security review itself once per head.
  4. Leave the gate as is and document: after each push, comment @codex review.

Refs #7727, #7729


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

Activity

  1. added 2 commits that reference this issue on Oct 30, 2026
    6b0aa51
    ff5ed1e
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