Skip to content

ci(pr-pipeline): switch the pr-verify capture off until claude is on PATH - #13593

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

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

Conversation

@kyle-sexton

Copy link
Copy Markdown
Member

Refs: #12232

Summary

Every pr-verify capture of a PR that changes a plugin ends blocked with "claude CLI is not on PATH" (run 42067341949). It gets there only after 2 to 5 minutes of model time, and pr-verify's check-intent judge waits for it (.github/workflows/pr-verify.yml:441-447). Over the last 40 completed capture runs, 17 ran 2 to 5 minutes. In run 42092005805 the subscription leg alone ran about 4.5 minutes. No capture has recorded a count above 0, so judges get no evidence for that wait.

Fix

  • Unset merge.verify-capture.app, as PR 13462 did. The capture then stops after reading its config, the judges wait for nothing, and each verdict records capture: no-app.
  • The comment keeps the app name, so switching back on is one line.
  • This replaces step 1 of the build order in #12232 issuecomment-6666806931, the early-blocked check. Switching off removes the waste and the judges' wait with no new code. An early check would still run the reach probe on a model, and the judges would still wait on the capture job.
  • Security and cost: no control is loosened, and nothing new can bill. The capture's credential legs stop being called.

Verification

  • bash scripts/check-convention-yaml.sh: 14 docs/conventions YAML files parse and validate.
  • None of the pr-verify tests reads the live merge.verify-capture.app value.
  • Left out: a live run. The next PR's capture run should end at "Read the capture config" with the no-app notice, and Lane 6 will check it after merge.

Related

  • PR 13462: the same switch-off, done earlier while the key had no credit.
  • PR 13536: the subscription fallback that switched the capture back on.

Remaining

🤖 Generated with Claude Code

…PATH

Every matched capture ends blocked ("claude CLI is not on PATH") after
2 to 5 minutes of model time, and pr-verify's check-intent waits on it.
Unset merge.verify-capture.app until the capture job can launch the app.

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 19:27
@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-05T19:29:11.974447Z bef9527 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 bef952743798fcd72b7512355dbe5249c4ddda4b: read 1 of 1 changed file(s); 0 finding(s), 0 as inline comments.

Security review: PR #13593

No security issues found.

Change: one trusted-path file, docs/conventions/pr-pipeline.yaml. The PR removes merge.verify-capture.app: claude-code-plugins, which switches the pr-verify capture off, and adds a comment.

What I checked:

  • Who reads the key. Both pr-verify-capture.yml (yq '.merge."verify-capture".app // ""', L160) and pr-verify.yml (L463) read it from the base checkout. A pull request can't change it for its own run. With the key unset, the capture job stops after a notice (L163), and each verdict records no-app.
  • Merge holds. No module under .github/scripts/pr-merge/ reads the capture result or verify-capture.app. The only capture reference in merge-holds.mjs is a path-classification entry for the workflow file (L420), and this PR leaves it unchanged. The judges already went on when the capture was blocked (continue-on-error: true, pr-verify.yml L453). So no merge hold is weakened.
  • Trust controls. The change doesn't widen who is trusted, what a lane token may do, what the broker mints, the kill switch, or what untrusted text reaches a lane. It narrows exposure: the capture job, which runs pull request code with credential legs, stops running.
  • Spend: none new. Turning the capture off stops the 2 to 5 minutes of subscription/API model time each capture run used.

critical-findings: 0

@github-actions

github-actions Bot commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

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

Code review: no findings

This PR removes merge.verify-capture.app: claude-code-plugins from docs/conventions/pr-pipeline.yaml and adds to the comment above it why the key stays unset (#12232). docs/conventions/pr-pipeline.yaml is on the trusted-path list, so I read its whole change. That was the diff's only file.

What I checked

  • What happens when app is unset. Both "Read the capture config" steps in pr-verify-capture.yml (L163 and L838) treat a missing app as "no capture runs" and log a notice. There is a test for exactly what this PR leaves behind, verify-capture: holding only retention-days: 30: workflow.test.mjs#L1453-L1456.
  • The judge side. With no CAPTURE_APP, find-capture.mjs#L153-L156 returns straight away without waiting, so each verdict records no-app. write-verdict.test.mjs covers this case.
  • What is left under verify-capture:. retention-days: 30 stays, inside the 1–30 range that .github/artifact-retention.json allows, so the mapping is still valid.
  • The rewritten comment. It still matches what the code does: the unset meaning is described a few lines up, and the app name is kept so switching it back on is one line.
  • Tests that read the live value. A repo-wide search for app: claude-code-plugins turns up no test that reads the live value. The author said the same. I checked it with a search but did not run any tests.

PR context

Spend: this change only lowers spend. It stops the capture job's 2–5 minutes of model time per matched PR (prepaid credit or subscription use). It adds no billable resource.

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