Repository navigation
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ 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. |
via HAPI Co-Authored-By: HAPI <[email protected]> Co-authored-by: Cursor <[email protected]>
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 0d89f28134
ℹ️ 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".
Review finding on #326. When the v1 state said completed with has_any_findings: true, the verdict fell through to the legacy clean-body regex, which runs over the WHOLE summary comment — including its security-review row. A "No findings" there matched `CLEAN_REGEX` and reported CLEAN on a PR with real code-review findings. Restrict prose matching to events carrying no machine-readable state. When the state block is present it is the verdict; the operator `cold-review-clean` override is untouched. Regression test appends that exact security-review line to a completed-with-findings fixture; it fails against the unguarded branch. via [HAPI](https://hapi.run) Co-Authored-By: HAPI <[email protected]>
|
@codex review Tip moved to |
|
Codex Review: Didn't find any major issues. Keep them coming! 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". |
… pass The ChatGPT Codex connector stopped emitting the legacy "Reviewed commit: `sha`" prose and now posts a machine-readable summary comment instead, edited in place as the review runs. hapi-pr-status matched only the old prose, so dimension 3 reported UNKNOWN for every fork PR — #309 and #311 were already in the new format days before this was noticed. Because cold-review-clean deliberately refuses to invent a tip-match, that made the fork-stage gate un-passable rather than noisy, which pushes agents toward habitual --skip-fork-stage and quietly hollows out the gate. Parse the v1 block: tip from code_review.commit_sha, clean iff status is completed AND has_any_findings is false. An in-flight review is explicitly not a verdict, and the label does not rescue one. The legacy prose parse stays as the fallback for older waves. Two traps worth naming, both covered by the test: - jq's `//` swallows `false`, which is exactly the value meaning "reviewed, found nothing" — `.has_any_findings // empty` would blank the verdict. - the summary comment is edited in place, so selecting on created_at ranks a finished review as stale; use updated_at. The test asserts both directions (clean, findings, in-flight, tip-ahead, label-does-not-override, legacy-still-works) and fails 5 assertions against the unpatched script. via [HAPI](https://hapi.run) Co-Authored-By: HAPI <[email protected]>
Review finding on #326. When the v1 state said completed with has_any_findings: true, the verdict fell through to the legacy clean-body regex, which runs over the WHOLE summary comment — including its security-review row. A "No findings" there matched `CLEAN_REGEX` and reported CLEAN on a PR with real code-review findings. Restrict prose matching to events carrying no machine-readable state. When the state block is present it is the verdict; the operator `cold-review-clean` override is untouched. Regression test appends that exact security-review line to a completed-with-findings fixture; it fails against the unguarded branch. via [HAPI](https://hapi.run) Co-Authored-By: HAPI <[email protected]>
6a26a7c to
b3642db
Compare
via HAPI Co-Authored-By: HAPI <[email protected]> Co-authored-by: Cursor <[email protected]>
Why
The ChatGPT Codex connector has switched comment formats. It no longer emits the
legacy
Reviewed commit: `sha`prose — it posts a machine-readable summarycomment instead, edited in place as the review runs:
hapi-pr-status.shmatched only the old prose, so dimension 3 reportedUNKNOWN (no Reviewed-commit Codex event)for every fork PR. This wasn't new— #309 and #311 (2026-11-08) were already in the new format, with zero legacy
hits, days before anyone noticed.
The failure mode is worse than noise. Because
cold-review-cleandeliberatelyrefuses to invent a tip-match, the fork-stage gate became un-passable: the
only way through was
--skip-fork-stage. A gate that can only ever say "unknown"trains everyone to bypass it, and then it isn't a gate. Found while promoting
#324 → tiann#2362, where Codex had in fact reviewed the exact tip and
returned clean.
What
codex-review-state:v1alongside the legacy prose when selecting thelatest Codex event. The old parse stays as the fallback — this adds a format,
it doesn't replace one.
code_review.commit_sha.status == "completed"andhas_any_findings == false.cold-review-cleandoes not rescue one.
Two traps worth naming, because both fail silently and both are covered by the test:
jq's//swallowsfalse..has_any_findings // emptyreturns empty forfalse— which is precisely the value meaning "reviewed, found nothing". Usingthe alternative operator here would have blanked the verdict it was reading.
created_atstays at the momentthe review started, so selecting on creation time ranks a finished review as
stale. Keys on
updated_at.Testing
scripts/tooling/hapi-pr-status-codex-state.test.sh— offline, stubsgh,auto-discovered by the existing
scripts/**/*.test.shsweep insoup-redeploy.yml. 11 assertions across both directions: tip-matched clean,completed-with-findings, in-flight, tip-ahead via the v1 sha, label-does-not-
override-in-flight, and legacy prose still working.
It fails 5 assertions against the unpatched script, reproducing the exact
UNKNOWNsymptom — so it's a real probe, not a tautology.Live, after the fix:
shellcheck -S warningclean on both files.Note
I opened tiann#2362 with
--skip-fork-stagewhile this was broken, havingverified the review independently (state JSON + the 👍 the bot only adds when all
reviews finish with no findings). With this change, #324 now passes the gate on
its own, which retroactively confirms that call — but the point of fixing it is
that nobody should have to make that call by hand again.