Skip to content

test(pr-review): fail when the lanes' bubblewrap install scripts differ - #811

Merged
kyle-sexton merged 1 commit into
mainfrom
test/review-bwrap-install-drift
Oct 20, 2026
Merged

kyle-sexton merged 1 commit into
mainfrom
test/review-bwrap-install-drift

Conversation

@kyle-sexton

Copy link
Copy Markdown
Member

Closes #761

Summary

The two review lanes each carry their own copy of the "Install subprocess isolation" step, and nothing asserted they match. The README's red-status list also omitted sandbox-unavailable, which both lanes report.

Fix

  • New .github/scripts/claude-lane-install-isolation.test.cjs asserts the run script of that step is equal in pr-review.yml and pr-review-security.yml.
  • README.md: one added entry, sandbox-unavailable, in the red-status class list.

Out of scope per the brief: the intake-triage.yml copies, the one-minute cap comment, probe or install behaviour.

Verification

  • node --test .github/scripts/*.test.cjs: 472 pass, 0 fail.
  • Changing sleep 5 to sleep 6 in pr-review.yml made the new test fail (1 fail); reverted.
  • No workflow file changed, so actionlint was not run.

Related

🤖 Generated with Claude Code

Add a test comparing the "Install subprocess isolation" run script in
pr-review.yml and pr-review-security.yml, and name sandbox-unavailable in
the README's red-status class list.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@kyle-sexton
kyle-sexton marked this pull request as ready for review October 20, 2026 19:01
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 20, 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-10-20T19:02:45.247562Z e5ca076 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.

@claude

claude Bot commented Oct 20, 2026 •

Copy link
Copy Markdown

Claude finished @kyle-sexton's task in 1m 41s —— View job


Code review complete

No blocking or advisory findings.

What I checked:

  • claude-lane-install-isolation.test.cjs uses the fail-closed parseWorkflow helper correctly: it flat-maps steps across all jobs in each file, asserts exactly one "Install subprocess isolation" step exists per lane, and compares the two run scripts. I confirmed by reading both workflows directly (pr-review.yml#L678 and pr-review-security.yml#L568) that the two install steps are currently byte-identical, so the new test should pass against the current tree (the author's "472 pass, 0 fail" and the sleep 5→sleep 6 drift-detection claims are author-reported and not independently re-run by me — this sandbox's Bash approval gate blocked node --test).
  • The README.md addition of sandbox-unavailable to the red-status class list is accurate and completes the list: I traced the status-check step's case "$FAILURE_CLASS" in both workflows (e.g. pr-review.yml#L1240) and confirmed sandbox-unavailable was the one class missing from the prose list before this change, with no other list elsewhere in the README needing the same addition.
  • .claude/rules/pr-body-contract.md carries no paths: frontmatter, so it isn't a path-scoped rule here; its general body contract (closing reference, ## Summary/## Fix/## Verification/## Related) is satisfied by this PR's body regardless.
  • Closing issue test(review): harden the review lanes' bubblewrap install check #761: no .claude-lane/pr-context.md was present in this checkout, so its acceptance criteria are unread — I could not fetch it independently (gh issue view required approval I don't have in this lane). Nothing in the diff contradicts the PR's own stated scope note (intake-triage.yml, the one-minute cap, probe/install behavior are explicitly out of scope).

claude-lane-summary: lane=claude-review sha=e5ca076813d37da14735a72258d5dc5cb9414f79 run=39479877642

@claude

claude Bot commented Oct 20, 2026 •

Copy link
Copy Markdown

Claude finished @kyle-sexton's task in 31s —— View job


Security review complete

  • Gather context (PR diff, changed files)
  • Review new test file for security-relevant issues
  • Review README.md change
  • Check for instruction-surface deletions
  • Post findings

Scope: .github/scripts/claude-lane-install-isolation.test.cjs (new test) and README.md (doc update adding sandbox-unavailable to the red-status list).

Findings: none.

  • The new test is a read-only Node test that parses two local, repo-owned YAML workflow files via the existing parseWorkflow helper and asserts their "Install subprocess isolation" step bodies match. It takes no external/untrusted input, executes nothing, and writes nothing — no injection, credential, or trust-boundary surface.
  • The README change is additive prose (documenting an existing sandbox-unavailable status that both lanes already report) — no instruction, guardrail, or policy is deleted, narrowed, or softened.
  • No workflow files (.github/workflows/**) are touched in this PR, so there's no permissions/trigger/pinning surface for this lane to evaluate (that's zizmor's lane regardless).

No inline comments were needed.

claude-lane-summary: lane=claude-security-review sha=e5ca076813d37da14735a72258d5dc5cb9414f79 run=39479877642

@github-actions

Copy link
Copy Markdown

claude-security-review has reviewed this pull request through e5ca076; a later push is reviewed from there.

@github-actions

Copy link
Copy Markdown

claude-review has reviewed this pull request through e5ca076; a later push is reviewed from there.

@kyle-sexton
kyle-sexton merged commit 5db374b into main Oct 20, 2026
56 checks passed
@kyle-sexton
kyle-sexton deleted the test/review-bwrap-install-drift branch October 20, 2026 19:08
kyle-sexton added a commit that referenced this pull request Oct 20, 2026
…ed in status (#813)

Closes #657

## Summary

When a review step fails without leaving an execution file, and it
neither timed out nor failed its Bun install, the lane reported `other`,
and the status step printed "an unclassified failure". That case now
gets its own class, `no-execution`. Both lanes' status steps also gain
an arm for `install-failed`, which the classifier could already return
but the status steps did not handle by name.

## Fix

- `.github/actions/report-lane-outcome/classify.cjs`: with no execution
file, the class is `timeout`, then `install-failed`, otherwise
`no-execution`. An execution file that exists but cannot be parsed still
classifies as `other`, which is outside this issue's scope. The class
list in the header comment now includes `no-execution`.
- `.github/actions/report-lane-outcome/action.yml`: the `execution-file`
input description and the `failure-class` output description now name
`no-execution`.
- `pr-review.yml` and `pr-review-security.yml`:
- the status steps get `install-failed)` and `no-execution)` case arms,
placed before `*)`. Both fall through to the existing `exit 1`.
- the `failure-class` output descriptions now list `install-failed` and
`no-execution`.
- `README.md`: the red-status list names `install-failed` and
`no-execution`. Only line 1125 changed (one line inserted).
- Tests:
- `classify.test.cjs`: the existing no-execution-file test now asserts
`no-execution`, including with explicit `timedOut: false, installFailed:
false`.
- `outcome-step.test.cjs`: two assertions that expected `other` for the
no-file path now expect `no-execution`.
- The existing `timeout` and `install-failed` tests are unchanged and
pass.
- Effect on other callers:
- `run-claude-cli/lane.cjs` also calls `classifyExecutionFile`. A CLI
leg that leaves no file and did not time out now reports `no-execution`.
Its summary note falls back to the `other` note.
- `intake-triage.yml`'s status allowlist maps any unknown class to
`other`, so intake output does not change.
- No step timeout was changed: `pr-review-security.yml:613` is still
`timeout-minutes: 13`.

## Verification

- `node --test .github/scripts/*.test.cjs`: 471 tests, 471 pass, 0 fail.
- `node --test .github/scripts/*.test.cjs .github/actions/*/*.test.cjs`:
559 tests, 559 pass, 0 fail. Before the edit, the same command gave
559/559. After the classifier change, 2 `outcome-step` tests failed
because they still asserted `other`; they were updated as described
above.
- `node --test .github/actions/*/*.test.cjs`: 88 tests, 88 pass, 0 fail.
- `actionlint .github/workflows/pr-review.yml
.github/workflows/pr-review-security.yml`: clean.
- `grep -n "timeout-minutes: 13"
.github/workflows/pr-review-security.yml`: line 613.

## Related

- #811 (issue #761) adds `sandbox-unavailable` to the same README
red-status paragraph, on lines 1127-1128. This PR changes only line 1125
and leaves line 1126 untouched, so the two hunks should not overlap.
Whichever PR merges second must keep both sets of rows.
- #691 added the `install-failed` class. #760 set the security step
timeout to 13 minutes. Also related: #795.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
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.

test(review): harden the review lanes' bubblewrap install check

1 participant