Skip to content

ci(pr-pipeline): switch the pr-verify capture off while its key has no credit - #13462

Merged
kyle-sexton merged 1 commit into
mainfrom
ci/12232-capture-off-credit
Nov 5, 2026
Merged

kyle-sexton merged 1 commit into
mainfrom
ci/12232-capture-off-credit

Conversation

@kyle-sexton

Copy link
Copy Markdown
Member

Refs: #12232

Summary

PR 13452 switched the pr-verify capture on, and every capture run since has failed red at its probe leg with the same error: pr-verify-capture ended class=credit-stop on PR_VERIFY_CLAUDE_API_KEY api_error_status=400. The failed runs are 41984197946, 41984609327 and 41984597485.

That key is the capture's only credential leg. Each new PR therefore spends a runner job and a failed key call and leaves a red run on main. No verdict is harmed: every one of these records capture: blocked, and no PR code runs because the probe comes first.

Fix

  • Unset merge.verify-capture.app, so the capture skips with a notice and verdicts record no-app.
  • The comment keeps the app name, claude-code-plugins, so switching back on is one line.
  • The rest of PR 13452 stays: the driver's read rule for .base/.claude/skills.

Verification

  • scripts/check-convention-yaml.sh: 14 files parse and validate.
  • After the merge, the next capture runs should end skipped, as before PR 13452.

Related

  • ci(pr-verify): add the capture job that drives the affected app (S7 of #8651) #12232. Remaining:
    • Give the capture a credential with capacity. Owner decision Q10 says "reuse pr-verify's existing credential legs, no dedicated key", and pr-verify's judges run on the subscription first with the key as fallback. Adding the subscription OAuth leg to the capture job puts that token beside PR code, a credential-boundary change, so it is the owner's decision.
    • Then switch the capture back on and show one judged capture (done-when 4).

🤖 Generated with Claude Code

…o credit

Every capture run since the switch-on ended at the probe with
class=credit-stop on PR_VERIFY_CLAUDE_API_KEY (api_error_status=400),
the capture's only credential leg. Unset merge.verify-capture.app until
the capture has a credential with capacity.

Refs: #12232

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@kyle-sexton
kyle-sexton marked this pull request as ready for review November 5, 2026 07:08
@chatgpt-codex-connector

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

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-05T07:09:32.936378Z dd94310 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.

@github-actions

github-actions Bot commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

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

Security review: PR #13462

I found no security issues. I read the PR's one changed file, docs/conventions/pr-pipeline.yaml, in full. It matches a trusted path.

What changed: the PR deletes merge.verify-capture.app: claude-code-plugins and updates the comment above it. retention-days: 30 stays as it was.

Trust controls checked:

  • Lane token broker: this file sets the lane slots and activity effects the broker mints tokens from. The diff touches neither. It only removes the capture's app selector, so no token scope, lane or activity grows.
  • Capture workflow: the base-read CAPTURE_APP lookup at
    CAPTURE_APP=$(yq '.merge."verify-capture".app // ""' .base/docs/conventions/pr-pipeline.yaml)
    and the message at
    console.log("find-capture: merge.verify-capture.app is unset, so no capture runs; the verdict records no-app");
    both handle an unset app the same way: no capture runs and the verdict records no-app. .github/scripts/pr-verify/workflow.test.mjs:1441 tests this case.
  • Effect of the change: the capture job, which drives PR code next to the PR_VERIFY_CLAUDE_API_KEY credential leg, stops running. That removes an untrusted-code-beside-credential path rather than adding one.
  • Merge holds and the rest of merge: no merge-hold setting or other merge key changed, so no hold is weakened.

Embedded text: the PR description contains no directives aimed at the review lane.

Spend: the change reduces spend on prepaid credit and runner time, because failing capture probe runs stop. It starts no charge.

critical-findings: 0

@github-actions

github-actions Bot commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

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

Code review: no findings

Scope: I read the whole diff: 1 of 1 files, docs/conventions/pr-pipeline.yaml. This was a full review, not blocking only, and this lane had no earlier findings.

Change: It removes merge.verify-capture.app: claude-code-plugins and keeps retention-days: 30. The comment is rewritten to still name the app and give the reason it is unset: PR_VERIFY_CLAUDE_API_KEY has no credit.

Checks against the code at this head:

  • The unset case is handled. pr-verify-capture.yml checks for an unset app and stops with a notice (L124). find-capture.mjs records no-app for the verdict (L154). pr-verify.yml already says it reads nothing when the app is unset (L425).
  • A test covers this exact config. workflow.test.mjs runs the shape verify-capture: with only retention-days: 30 and expects the "is unset; no capture runs" notice (L1441-L1444). That shape matches the new config, so it still validates.
  • Nothing else depends on the app being set. No test or document reads the live config and expects app to be set.
  • The new comment matches the code. It agrees with the existing note at L1403-L1404: unset means no capture runs and the verdict records capture: no-app.

PR context: The PR says "Refs" #12232 and closes no issue, so there were no acceptance criteria to check. The PR's verification (scripts/check-convention-yaml.sh passing, and capture runs ending skipped after merge) is the author's claim; I had no shell and did not run it. No instructions to the reviewer were embedded in the PR context.

Spend: This lowers spend: each new PR no longer triggers a capture runner job or a failed PR_VERIFY_CLAUDE_API_KEY call.

Trusted path: docs/conventions/pr-pipeline.yaml is on the trusted-path list, so I read its whole change and what it controls. The change only turns off an optional capture step and widens no gate.

Left to a person (already listed by the PR under #12232): give the capture a credential that has credit, then switch it back on.

@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 5, 2026
Merged via the queue into main with commit a421304 Nov 5, 2026
74 checks passed
@kyle-sexton
kyle-sexton deleted the ci/12232-capture-off-credit branch November 5, 2026 07:21
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.

1 participant