Skip to content

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

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

cdeust merged 2 commits 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 asked for one final verdict line and did 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.

On #495 the verdict went only into the second one (tracking comment 6767209801: link, no verdict; review comment 6767255997: verdict, no link), so its approve cannot be read and the merge is held. Same defect and same fix as cdeust/Cortex#975 (merged), where it held cdeust/Cortex#973.

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 unittest discover -s scripts/tests -p "test_ci_review*.py": OK.

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": one today in this repository (#495), 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: on #495 the review posted with gh pr comment carried
the verdict and no link, the tracking comment the link and no verdict,
so the approve 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-10T14:36:01.575548Z cf533ba New commits
🔒 Security Review ✅ Completed 2026-11-10T14:37:34.853058Z cf533ba New commits
ℹ️ 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.

CHANGELOG conflict with the contract entry (#495): both entries kept.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
Claude-Session: https://claude.ai/code/session_018kyZYsWnKSjpX4oNV19PCF
Signed-off-by: Claude <[email protected]>
@cdeust
cdeust merged commit 9f976da into main Nov 10, 2026
24 checks passed
@cdeust
cdeust deleted the ci/verdict-links-its-run branch November 10, 2026 16:26
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