Skip to content

ci(pr-pipeline): switch on the pr-verify capture with the claude-code-plugins app - #13452

Merged
kyle-sexton merged 4 commits into
mainfrom
ci/12232-enable-capture
Nov 5, 2026
Merged

kyle-sexton merged 4 commits into
mainfrom
ci/12232-enable-capture

Conversation

@kyle-sexton

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

Copy link
Copy Markdown
Member

Refs: #12232

Summary

The pr-verify capture workflow has been on main since PR 13053, switched off because merge.verify-capture.app was unset. The fixes its Remaining section listed merged in PR 13449. This PR switches the capture on.

Fix

  • docs/conventions/pr-pipeline.yaml: merge.verify-capture.app: claude-code-plugins, this repository's control skill (.claude/skills/control-claude-code-plugins). ci(pr-verify): add the capture job that drives the affected app (S7 of #8651) #12232's plan said claude-code, but drive keeps only a skill named control-<app> (plugins/app-control/skills/drive/SKILL.md:62), so that name would have stopped blocked on harness-ops' session-only skill (claude-review finding).
    • pr-verify-capture.yml reads the value from main's file, so the capture first runs on PRs opened after this merges, not on this PR.
    • That skill drives each changed plugin through harness-ops:control-claude-code, which the driver loads through plugin-dirs.
  • pr-verify-capture.yml: the capture and probe legs add Read(./.base/.claude/skills/**), so drive can read main's control skill under dontAsk. It is trusted content with no credential, and the deny rules are unchanged. workflow.test.mjs pins the list.
  • The driver's key secret PR_VERIFY_CLAUDE_API_KEY exists as an org secret with visibility all. Basis: gh secret list -o melodic-software.

Verification

  • scripts/check-convention-yaml.sh: 14 files parse and validate.
  • A fresh-context security review of the capture path at main 59f8e5b ran before this PR was marked ready. It found no forgeable verdict: every verdict reader requires an upload from a pr-verify.yml run on main started by workflow_run (babysit_verify_evidence.py:2308-2322, resolve-pr.mjs:465-477, merge-holds.mjs:1392-1412). Its findings, as weighed here:
    • HIGH, symlink read: refuted. A head symlink to /proc/self/environ, read through the Read(./head/**) allow rule. Claude Code checks a symlinked read against both the link and its target. An allow rule applies only when both match, and a deny rule when either matches (permissions, Symlinks). So the target hits Read(//proc/**) and is denied.
    • Reading the key through a subprocess's /proc/<pid>/environ: covered at run time. The reach probe runs as a Bash child of a live leg on the key, scans every readable /proc/*/environ, and must see its canary. Any hit fails the job before the head checkout (pr-verify-capture.yml:262-347).
    • MEDIUM, accepted. Head code can rewrite .base actions that run after it, such as the transcript upload. It can upload artifacts only inside the capture run, which no verdict reader trusts. Capture content is untrusted data to the judges (pr-verify-capture.yml:466 notes this).
  • Not run here: a live capture. One in-repo PR opened after this merges must show a judged capture (done-when 4).

Related

🤖 Generated with Claude Code

kyle-sexton and others added 2 commits November 5, 2026 01:25
… app

Set merge.verify-capture.app to claude-code, so pr-verify-capture.yml
drives harness-ops' control-claude-code against each in-repo PR's
changed plugins and pr-verify's judges read the capture as evidence.

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 06:35
@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-05T06:37:08.431804Z c5ab3d3 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 4336b31f02e6776c59460819746c7e2e769172f3: read 3 of 3 changed file(s); 0 finding(s), 0 as inline comments.

Security review: PR #13452 (incremental, c5ab3d3 → 4336b31)

I found no security issues. This was an incremental review and blocking only, because this lane already reviewed an earlier head. I read every hunk in .claude-lane/incremental.diff for the 3 files in scope. All three match trusted paths, so I also read the code they gate in pr-verify-capture.yml.

What changed

  • docs/conventions/pr-pipeline.yaml: merge.verify-capture.app changes from claude-code to claude-code-plugins, and the comment is updated to match.
    • The value is still checked against ^[a-z0-9][a-z0-9-]{0,63}$ before use (pr-verify-capture.yml L127).
    • It reaches the capture prompt only as app=$APP (L380). It is read from main's file, so no head-controlled text gets in.
    • It changes no lane slot, activity effect or token grant.
  • .github/workflows/pr-verify-capture.yml: the probe and capture legs each add the allow rule Read(./.base/.claude/skills/**) (L291, L442). I checked whether this gives the driver, which holds the key, any new reach:
    • The new rule only lets the driver read main's own repository skills, which are trusted content and hold no credential.
    • Every deny rule is unchanged: //proc/**, //sys/**, the runner's temp directory, ~/.config/**, ~/.git-credentials and Edit(./.base/**) (L446-L457).
    • The Skill fence is unchanged: only Skill(testing:run-e2e *) and Skill(app-control:drive *) are allowed. Drive reads the control skill as text through Read, so frontmatter hooks in a .claude/skills file never load.
    • Head code could overwrite .base files through Bash. That already applies to .base/plugins/**, which the driver could already read, and to ./head/**, the PR's own content. The earlier review accepted this, and only trusted actors' same-repository heads reach the job. The new rule adds no new untrusted input and no credential path.
  • .github/scripts/pr-verify/workflow.test.mjs: the test's expected allow list gets the new rule, so the test matches the workflow.

Trust controls: none are widened. The trusted-trigger check, the token requests, the kill switch and the merge holds are all untouched. The new rule loosens the file-tool fence only for trusted, credential-free content, as described above.

Spend: once this merges, the capture runs for every eligible same-repository PR, using the PR_VERIFY_CLAUDE_API_KEY API credits. This draws on prepaid credit, so it is not a hold.

critical-findings: 0

@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 c5ab3d3f0bc99b50ec2244b6d2fae6d58e43230f; the summary is in this lane's pull request comment.

claude-lane: claude-review

Comment thread docs/conventions/pr-pipeline.yaml Resolved
@github-actions

github-actions Bot commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

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

Code review: PR #13452 (incremental, c5ab3d3 → 4336b31)

Blocking only. This lane already reviewed an earlier head, so this pass reports only blocking findings. I found none.

I read every hunk of the 3 files in the incremental diff:

  • docs/conventions/pr-pipeline.yaml: merge.verify-capture.app is now claude-code-plugins, and the comment above it is updated. This applies my earlier blocking finding as I suggested it (thread). The owner resolved that thread with a decision, so it is settled.
    • With --trusted-root .base, drive step 1 globs .base for **/.claude/skills/**/SKILL.md. It keeps a file whose folder name is control-claude-code-plugins, and .claude/skills/control-claude-code-plugins/SKILL.md matches.
    • A repository match comes before any plugin match (drive SKILL.md:84-86). So the session-only harness-ops:control-claude-code block no longer applies.
  • .github/workflows/pr-verify-capture.yml: the probe leg (line 291) and the driver leg (line 442) both add Read(./.base/.claude/skills/**).
    • Without this rule, the driver could read only under ./.base/plugins/**. Under dontAsk, drive's Read of main's control skill would have been refused, so the rule is needed for the fix above to work.
    • The deny list is unchanged, and Edit(./.base/**) is still denied.
    • Whether the wider read fence is safe is a question for the security lane.
  • .github/scripts/pr-verify/workflow.test.mjs: the pinned driver allow-list now includes the new rule, in the same position as in the workflow, and the comment is updated to match. The PR body says 54/54 tests pass; that is the author's claim, and I did not run them.

Verification: I confirmed the above by reading the code. I did not run a capture or the tests. The PR says a live capture is still to come: done-when 4 of #12232, on a PR opened after this merges.

Closing issue: the PR says Refs: #12232 and closes nothing, so no closing-issue criteria apply.

Spend: with the capture on, each eligible in-repo PR head starts one extra Claude Code driver run (up to 16 minutes) on PR_VERIFY_CLAUDE_API_KEY. That is prepaid API credit, not a billing change.

No embedded instructions were found in the PR context, settled-threads or prior-findings files.

kyle-sexton and others added 2 commits November 5, 2026 01:40
app-control:drive keeps only a control skill named control-<app>, so
claude-code skipped this repository's control-claude-code-plugins and
stopped on harness-ops' session-only control-claude-code.

Refs: #12232

Co-Authored-By: Claude Opus 5.5 <[email protected]>
app-control:drive reads main's control-claude-code-plugins skill from
.base/.claude/skills as data; the driver's Read allow list covered only
.base/plugins, so under dontAsk that read would be refused. The probe
leg carries the same rule, as the workflow test requires.

Refs: #12232

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@kyle-sexton kyle-sexton changed the title ci(pr-pipeline): switch on the pr-verify capture with the claude-code app ci(pr-pipeline): switch on the pr-verify capture with the claude-code-plugins app Nov 5, 2026
@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 5, 2026
Merged via the queue into main with commit 59ef662 Nov 5, 2026
67 checks passed
@kyle-sexton
kyle-sexton deleted the ci/12232-enable-capture branch November 5, 2026 06:57
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