Skip to content

fix(pr-verify): unblock the CI capture's run-e2e leg - #13825

Merged
kyle-sexton merged 5 commits into
mainfrom
fix/13710-capture-abs-paths
Nov 6, 2026
Merged

kyle-sexton merged 5 commits into
mainfrom
fix/13710-capture-abs-paths

Conversation

@kyle-sexton

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

Copy link
Copy Markdown
Member

Refs: #13710

Summary

After PR 13770 narrowed the CI capture's outer leg to named Bash commands, every capture ended with "run-e2e wrote no e2e-summary.json". The sealed transcripts of capture runs 42278031678 and 42279069598 list the refused calls:

  • python3 -I <ws>/.base/plugins/app-control/scripts/affected_features.py ...: drive's Affected step (plugins/app-control/skills/drive/SKILL.md:150). 13770's Q9 (c) allowlist did not include it.
  • The same command with a $B shell-variable path, after the first refusal.
  • Bare git branch --show-current and git status --porcelain, and cd <ws>/head && git branch --show-current. The rules allow only git -C <ws>/head ....
  • Two Writes, to <ws>/capture-run/affected/report.md and <ws>/capture-run/e2e-summary.json, although Edit(./capture-run/**) was allowed. The leg's first call was cd <ws>/head && pwd, prompted by "run the skill from there". The docs resolve a ./path rule against the current directory (permissions). The ./ rules following that cd is the likely mechanism, UNVERIFIED: the init event's cwd stayed at the workspace.

Neither transcript holds a driver.mjs call: both runs stopped before Launch.

Fix

  • File rules: every Read and Edit path rule in both legs is absolute (/${{ github.workspace }}/..., which renders as //home/...). They no longer depend on the current directory.
  • No python rule: drive's affected_features.py stays refused. Its --out write follows a symlink that the head or the sandbox can plant at affected.json, into a .base script these rules run (claude-security-review, resolved). Affected comes back blocked, and run-e2e drives what the scenario names.
  • rev-parse rule: run-e2e's exact default-branch rev-parse --verify (context/e2e.md:39) is allowed. git show '<sha>:...' stays refused, since a wildcard there would also match option text. A refusal there takes the skill's no-entry path (e2e.md:42).
  • Prompt: cd into the head in a command of its own, write every git command as git -C <ws>/head, and write every script or driver path as a literal absolute path with no shell variable.
  • Control skill: .claude/skills/control-claude-code-plugins/SKILL.md gives <skill-dir> and <plugin-dir> as absolute literal paths. From a PR's checkout, a relative <skill-dir> would match no rule, or would run that checkout's copy of the driver.
  • Sibling check: it waits 150 s, above sibling-init.sh's 90 s socket scan; run 42272768360 timed out at 60 s. The step timeout is 6 min, and on no report it prints the probe directory and a sibling.log tail.
  • Font step: it skips apt only when Symbols 2's own file is installed (an emoji font also has U+23F8), and bounds apt's retries and timeouts. Runs 42276347932 and 42277022344 hit the 5-minute step timeout there, both between 19:04 and 19:14Z.

Verification

Related

🤖 Generated with Claude Code

https://claude.ai/code/session_01RMa441b9qec43NvaTyiY2Z

kyle-sexton and others added 4 commits November 6, 2026 14:59
The control skill handed the driver a relative <skill-dir>, which no
absolute-only Bash rule matches; it now names the absolute path in the
folder holding the skill's .claude/. drive's Affected step gets its
python3 -I rule, the sibling check waits past sibling-init's 90 s scan,
and the font step skips apt when the font is present and bounds apt's
network waits.

Refs: #13710

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RMa441b9qec43NvaTyiY2Z
…ts git on -C

Capture runs 42278031678 and 42279069598 cd'd into the head first, as the
prompt asked, so the ./ Read and Edit rules resolved under the head and the
Write of capture-run/e2e-summary.json was refused. Every path rule is now
absolute, the prompt asks for git -C and literal absolute paths, and the
control skill names <plugin-dir> absolutely in the checkout under test.

Refs: #13710

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RMa441b9qec43NvaTyiY2Z
@kyle-sexton
kyle-sexton marked this pull request as ready for review November 6, 2026 20:23
@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

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

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-06T20:23:28.412907Z
We couldn’t complete this review. Comment @codex review to try again.
a765887 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.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

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

claude-lane: claude-review

Comment thread .github/workflows/pr-verify-capture.yml Resolved
@github-actions

github-actions Bot commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

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

Code review (incremental, blocking only): a765887..2cf8b5a

This lane already reviewed an earlier head, so the review was blocking only. I read every hunk of both files on the incremental list: .github/workflows/pr-verify-capture.yml and .github/scripts/pr-verify/workflow.test.mjs. Both are on trusted paths, so I read each change in full, plus the steps it gates.

What changed since the last review (checked by reading only; I ran no commands):

  • Font step skip (pr-verify-capture.yml:416-417):
    • apt is now skipped only when fc-list lists the file NotoSansSymbols2. An emoji font that also has U+23F8 no longer skips the install. This fixes the lane's earlier finding. The owner resolved that thread and chose a file match over a family match (the runner prints the family as "Noto Sans Symbols2").
    • The check after the install still accepts any font, as the owner decided in that thread, so I'm not raising it again.
    • The new test assertion (workflow.test.mjs:2484-2485) pins the skip.
  • affected_features.py allow rule removed:
    • The Bash(python3 -I …/affected_features.py *) rule is gone from the driver leg's allowlist. This addresses the earlier finding that its --out write could follow a symlink into a .base script; the owner resolved that thread.
    • The Bash-fence comment (pr-verify-capture.yml:1089-1092) now explains why the script stays refused. Nothing else in the workflow mentions affected_features.py.
    • The test's expected rule list drops the rule, and its refused list now includes the exact absolute python3 -I command that was allowed before. Both match the workflow.

Both settled threads are marked lines changed since resolution: no against this head, and the new code matches the owners' replies.

Author-claimed and not verified by me: node --test …/workflow.test.mjs passing, and that drive's Affected step returning blocked lets run-e2e carry on (run 42278031678).

Findings: 0. There's no closing issue: Refs: #13710 closes nothing, so there are no acceptance criteria to check. The PR context, settled threads and prior findings contain no embedded instructions.

@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-security-review: 1 inline finding(s) on a765887202aa8127cef85e2bc0506f3faf4039e4; the summary is in this lane's pull request comment.

claude-lane: claude-security-review

Comment thread .github/workflows/pr-verify-capture.yml Resolved
@github-actions

github-actions Bot commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

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

Security review: PR #13825, incremental (a765887 → 2cf8b5a)

No security issues in this push. I read the whole incremental diff for both files in scope: .github/workflows/pr-verify-capture.yml, which is a trusted path, and .github/scripts/pr-verify/workflow.test.mjs. This lane already reviewed an earlier head, so the review was blocking only: just CRITICAL and IMPORTANT findings would be reported, and there are none.

The earlier IMPORTANT finding is fixed. It was about the python3 -I …/affected_features.py * allow rule (#discussion_r4497252307): that script's --out write could follow a symlink into a .base script the leg is allowed to run. This push removes the rule from the leg's Bash allowlist entirely.

  • A search of the head workflow finds no python3 or affected_features rule left. The only match is the comment explaining why the script stays refused (L1089).
  • The test now lists the exact absolute python3 -I form among the refused commands.
  • Removing the rule only narrows the Bash fence. Nothing new gets through.

Font step change, checked, no finding (L416-L424):

  • The install is now skipped only when the fc-list output contains Symbols 2's own file, NotoSansSymbols2. Before, any font with U+23F8 was enough.
  • fc-list output only goes to grep -q through a here-string, so it is never run as shell code.
  • The step still runs before isolation, with the same apt packages and the same bounded retries. All this change does is make the install happen more often.
  • This also resolves the settled font thread; I am not raising it again.

Other checks:

  • No instruction-surface deletions and no plugin-manifest changes in scope.
  • No trust control is widened: the trusted-trigger check, the token scope, the kill switch and the merge holds are all untouched.
  • No embedded instructions were found in the PR context, the settled threads or the prior findings.

Spend (not a finding): the font step may now run apt-get on more runs, adding a few seconds of standard hosted-runner time. It bills nothing new.

critical-findings: 0

…nt by file

The python3 -I affected_features.py rule let a head- or sandbox-planted
symlink at affected.json redirect its --out write into a .base script the
leg may run. The rule is dropped; Affected comes back blocked and run-e2e
drives the scenario. The font step's skip now needs Symbols 2's own file,
since an emoji font also has U+23F8.

Refs: #13710

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RMa441b9qec43NvaTyiY2Z
@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 6, 2026
Merged via the queue into main with commit f1f8d4f Nov 6, 2026
68 checks passed
@kyle-sexton
kyle-sexton deleted the fix/13710-capture-abs-paths branch November 6, 2026 20:45
kyle-sexton added a commit that referenced this pull request Nov 6, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RMa441b9qec43NvaTyiY2Z
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