Skip to content

ci(review): the comment that carries the verdict links the review run (Cortex ADR-1130) - #234

Merged
cdeust merged 1 commit into
mainfrom
ci/verdict-links-its-run
Nov 10, 2026
Merged

cdeust merged 1 commit into
mainfrom
ci/verdict-links-its-run

Conversation

@cdeust

@cdeust cdeust commented Nov 10, 2026

Copy link
Copy Markdown
Owner

Why

The resolver counts a verdict only when its comment links a successful claude-review.yml run of the head. The review prompt asks for one final verdict line and does not say where. The action posts two comments: its tracking comment, which links the run, and the review posted with gh pr comment, which does not. When the verdict goes only into the second one, the approve cannot be read and the merge is held.

Observed on cdeust/Cortex#973 and cdeust/ai-architect-mcp-codebase#495; fixed in cdeust/Cortex#975 (merged), and confirmed there by review 2 of cdeust/Cortex#973, whose review comment carries both the link and the verdict. This repository runs the same prompt and the same resolver.

What

  • claude-review.yml: the prompt gives the run's link and says to put it just before the verdict line in every comment that carries it. The resolver is unchanged.
  • scripts/tests/test_ci_review_budget.py: the prompt carries the link, after the verdict instruction.
  • CHANGELOG.

Checks

python3 -m pytest scripts/tests/test_ci_review_budget.py -q: 20 passed.

Limits

The rule lives in a prompt: a review that ignores it is held as before, with the same notice. This pull request edits claude-review.yml, so the action does not review it.

Metric

Pull requests with an approve and green checks that the resolver holds with "Claude has not posted a verdict on this head": expected zero.


Generated by Claude Code

… (Cortex ADR-1130)

The resolver counts a verdict only when its comment links a successful
review run of the head. The prompt asked for one final verdict line and
did not say where: a review posted with gh pr comment can carry the
verdict and no link, and the approve then cannot be read. The prompt now
gives the run's link and says to put it just before the verdict line in
every comment that carries it. Same change as cdeust/Cortex#975.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
Claude-Session: https://claude.ai/code/session_018kyZYsWnKSjpX4oNV19PCF
Signed-off-by: Claude <[email protected]>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-10T13:40:12.885990Z 2765392 PR opened
🔒 Security Review ✅ Completed 2026-11-10T13:42:22.028186Z 2765392 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.

@cdeust
cdeust merged commit 3eb2c12 into main Nov 10, 2026
17 checks passed
@cdeust
cdeust deleted the ci/verdict-links-its-run branch November 10, 2026 13:52
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.

2 participants