Skip to content

fix(ci): read the check-contract do-not-merge line and re-pin the composite - #16189

Merged
kyle-sexton merged 3 commits into
mainfrom
fix/16188-pr-verify-check-contract-line
Nov 14, 2026
Merged

kyle-sexton merged 3 commits into
mainfrom
fix/16188-pr-verify-check-contract-line

Conversation

@kyle-sexton

@kyle-sexton kyle-sexton commented Nov 14, 2026 •

Copy link
Copy Markdown
Member

Closes #16188

Summary

heldOnly in .github/scripts/pr-verify/resolve-pr.mjs decides that a failed ci-status run failed only on a hold. For the do-not-merge label it matches one exact error line from the ci-workflows check-contract composite. melodic-software/ci-workflows#1094 (merged) changed that line's prefix from pr-contract: to check-contract:. The owner's decision for the rename: no old name left, and no dual-name handling.

Fix

The pin and the reader line change together; neither is correct alone.

What else the re-pin brings (8 commits to the composite since 2476d5d): bounded retries and conditional reads, a per-step API call count notice, and an opt-in hold label (enforce-hold-label, off by default and not set here). The advisory comment marker is now <!-- check-contract:linkage -->, so a pull request that already has an advisory comment gets one new comment on its next run.

Verification

  • node --test .github/scripts/pr-verify/resolve-pr.test.mjs .github/scripts/pr-unblock/review-dependency.test.mjs: 209 pass, 0 fail.
  • This PR's own CI Status run exercises the re-pinned composite.

Related

🤖 Generated with Claude Code

https://claude.ai/code/session_015XWwmcDV2xryj42rLbyEkJ

heldOnly matched one exact error line from the ci-workflows
check-contract composite, prefixed pr-contract. ci-workflows#1093
renames that prefix to check-contract. Count either line as the label
line, so a repository keeps its held-only verdict whichever release it
pins.

Closes #16188

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

chatgpt-codex-connector Bot commented Nov 14, 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-14T17:18:48.104886Z 855118b Draft marked ready
ℹ️ 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.

@kyle-sexton
kyle-sexton disabled auto-merge November 14, 2026 17:08
@kyle-sexton
kyle-sexton marked this pull request as draft November 14, 2026 17:08
@github-actions

github-actions Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

claude-review reviewed 855118bbbab1f151b3cdf89a4c67e0143c42ba33: read 5 of 5 changed file(s); 1 finding(s), 1 as inline comments.

Code review (blocking only: this lane already reviewed an earlier head, ef0ef9f): 1 finding.

I read all 5 changed files in the diff, plus the unchanged heldShape / heldOnly / resolve path in .github/scripts/pr-verify/resolve-pr.mjs that the changed constant feeds.

  • Closing issue Accept the check-contract do-not-merge line in pr-verify before ci-workflows renames it #16188 criteria are not met, and the change on the issue is not recorded there. Since the earlier head, the PR has dropped the dual-line handling. heldOnly now accepts only the check-contract: line, which contradicts both "Done when" items on the issue. The only source for the owner's decision ("no old name left, and no dual-name handling") is the PR body. The issue section has no such decision comment. Details are in the inline comment on resolve-pr.mjs:310.
  • Rest of the change: the comment in address-feedback.mjs and the sample messages in review-dependency.test.mjs and resolve-pr.test.mjs are text-only renames and fine. The re-pin in pr-require-checks.yml is the only check-contract@ use under .github, and resolve-pr.test.mjs L863 still checks its shape. I can't confirm from here that 60b15bf is the commit fix(check-contract)!: print check-contract in messages and the comment marker ci-workflows#1094 merged as, or that it prints this exact line. That is author-claimed.
  • Behavior change from the re-pin: per the PR body, the composite's advisory marker changes, so each open PR that already has an advisory comment gets one duplicate comment. In this repo only docs/contracts/loop-lane/posting-lanes.md mentions the marker. No code reads it.
  • Verification: the PR reports node --test … with 209 passing. That is the author's claim. I had no shell and ran nothing.
  • Trusted paths: .github/scripts/pr-verify/resolve-pr.mjs, .github/scripts/pr-unblock/address-feedback.mjs and .github/workflows/pr-require-checks.yml match trusted globs. I read each whole change and what it gates. The constant change only narrows what heldOnly accepts, so it fails closed: a labeled head still never merges. The re-pin swaps a third-party composite to a new SHA, and its code is outside this diff.
  • Embedded text: the PR body and the issue contain no instructions aimed at the review lane.
  • Spend: none.

Verifier dropped 0 of 1 candidates.

@github-actions

github-actions Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

claude-security-review reviewed 855118bbbab1f151b3cdf89a4c67e0143c42ba33: read 5 of 5 changed file(s); 0 finding(s), 0 as inline comments.

Security review: PR #16189 (head 855118b)

No security issues found. This lane reviewed an earlier head, so this review was blocking only: it reports CRITICAL and IMPORTANT findings and drops SUGGESTION findings. There were none at any severity.

Scope. I read every hunk of all 5 changed files in .claude-lane/pr.diff. Three are trusted paths:

  • .github/scripts/pr-unblock/address-feedback.mjs (trusted path)
  • .github/scripts/pr-verify/resolve-pr.mjs (trusted path)
  • .github/workflows/pr-require-checks.yml (trusted path; it holds the ci-status hold steps)

The other two are .github/scripts/pr-unblock/review-dependency.test.mjs and .github/scripts/pr-verify/resolve-pr.test.mjs. I also read heldShape and heldOnly in the head file (resolve-pr.mjs#L306-L395) and the steps around the re-pinned composite (pr-require-checks.yml#L5239-L5247).

What I checked:

  • DO_NOT_MERGE_LINE matching (L310, L385-L390):
    • It is still one fixed string, compared to whole lines with ===.
    • The count rules are unchanged: exactly one label line when the contract step failed, none otherwise, and no other error line allowed.
    • The earlier head accepted both prefixes. This head accepts only the new one, so a log still carrying pr-contract: is no longer judged held-only. That direction fails closed.
    • The function's contract (L338-L340) still holds: ci-status keeps failing on a labeled head, and the verdict lifts no hold or label.
  • Re-pin of check-contract (L5240):
    • It moves from one full commit SHA to another in the owner's own melodic-software/ci-workflows repository.
    • The inputs are unchanged: token: ${{ github.token }} and the same exact-login exempt-authors. The job's token scope is unchanged, and the step adds no new trusted actor or text path.
    • The pin moves the action to code this checkout cannot show. That falls under the owner's pin/repin ceremony, a named friction hold under the owner threat model, so it is noted here and holds nothing.
    • If the new composite logged an extra error line, heldOnly would return false. That fails closed.
  • Other changes: the comment in address-feedback.mjs and the sample strings in both test files change no behavior.
  • Trust controls: none is widened. No trusted-actor change, no change to the token broker or lane token, no kill-switch change, and no merge hold weakened.

Embedded text. The PR context contains no instructions to this lane.

Spend. No billable change. By the PR description, the composite's new advisory marker makes each PR that already has an advisory comment get one more comment on its next run. That is a small, one-off GitHub API cost only.

Skipped steps. I dispatched no hunter or verifier subagents, because there was no CRITICAL candidate to refute. I posted nothing to GitHub; the job posts this review.

critical-findings: 0

Drop the second accepted line and its test: the reader matches the
check-contract line alone, and changes with the re-pin that makes the
composite print it.

Refs: #16188

Co-Authored-By: Claude Fable 5.2 <[email protected]>
Claude-Session: https://claude.ai/code/session_015XWwmcDV2xryj42rLbyEkJ
@kyle-sexton kyle-sexton changed the title fix(ci): accept the check-contract do-not-merge line in pr-verify fix(ci): read the check-contract do-not-merge line and re-pin the composite Nov 14, 2026
ci-workflows#1094 prefixes the composite's messages check-contract: and
moves the advisory comment marker to <!-- check-contract:linkage -->.
Pin that commit in the same change as the reader line it prints. The
hold-label input the newer composite adds is off by default.

Refs: #16188

Co-Authored-By: Claude Fable 5.2 <[email protected]>
Claude-Session: https://claude.ai/code/session_015XWwmcDV2xryj42rLbyEkJ

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

claude-review: 1 inline finding(s) on 855118bbbab1f151b3cdf89a4c67e0143c42ba33; the summary is in this lane's pull request comment.

claude-lane: claude-review

@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 14, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 14, 2026
@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 14, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 14, 2026
@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 14, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 14, 2026
@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 14, 2026
Merged via the queue into main with commit cb97501 Nov 14, 2026
117 of 130 checks passed
@kyle-sexton
kyle-sexton deleted the fix/16188-pr-verify-check-contract-line branch November 14, 2026 19:36
@github-actions github-actions Bot added the merge-path: owner-agent Post-merge accounting record (README.md, Merge paths) label Nov 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-path: owner-agent Post-merge accounting record (README.md, Merge paths)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Accept the check-contract do-not-merge line in pr-verify before ci-workflows renames it

1 participant