Skip to content

test(review): prove sandbox failures stop publication - #1165

Merged
jesse-merhi merged 3 commits into
mainfrom
jesse/sandbox-preflight-contract
Aug 17, 2026
Merged

jesse-merhi merged 3 commits into
mainfrom
jesse/sandbox-preflight-contract

Conversation

@jesse-merhi

@jesse-merhi jesse-merhi commented Aug 14, 2026 •

Copy link
Copy Markdown
Member

The hosted-Linux setup action already stops when Codex sandbox setup fails, but that production guard had no executable regression. Without one, a future action edit could swallow the failure and let review publication continue. This PR runs the real composite-action shell block with controlled sysctl and codex executables. When the fake Codex process exits 23, the action returns 23 and the test passes.

Proof

Node 24 ran the focused test on head ef5943c1f63285a55be6c7078d2192ede100cf6a:

✔ hosted Linux sandbox preflight propagates Codex startup failures
tests 1
pass 1
fail 0

The fixture makes sysctl take the sandbox-start path and makes codex exit 23. The test passes only when the real action shell block preserves that exit status.

How to verify

node --test test/setup-codex-action.test.ts

This PR changes tests only; the production fix already merged in #1162. OpenClaw Bay is unaffected because no runtime, review metadata, lifecycle, status, route, data, or UI contract changes.

@clawsweeper

clawsweeper Bot commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@clawsweeper clawsweeper Bot added P3 Low-risk cleanup, docs, polish, ergonomics, or speculative feature. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Aug 14, 2026
@clawsweeper

clawsweeper Bot commented Aug 14, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 17, 2026, 8:29 AM ET / 12:29 UTC.

ClawSweeper review

What this changes

This PR adds a Node test that runs the hosted-Linux setup action’s sandbox-preflight shell block with controlled commands and asserts a Codex failure exits the step.

Merge readiness

✅ Ready for maintainer review

Keep open: current main has the production sandbox guard, but this PR adds its missing executable regression coverage; as a MEMBER-authored PR it is also non-closeable by cleanup policy.

Priority: P3
Reviewed head: ef5943c1f63285a55be6c7078d2192ede100cf6a

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused regression test with direct current-head terminal evidence and no actionable correctness findings.
Proof confidence 🐚 platinum hermit (4/6) Not applicable: Not applicable to this MEMBER-authored test-only PR; its body nevertheless includes current-head terminal evidence for the focused action-contract test.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: Not applicable to this MEMBER-authored test-only PR; its body nevertheless includes current-head terminal evidence for the focused action-contract test.
Evidence reviewed 5 items Narrow PR delta: The branch differs from current main by one newly added 55-line test file; it does not alter the production action.
Current production guard: Current main’s composite action uses set -euo pipefail and invokes the read-only Codex sandbox directly, so its nonzero exit stops the action step.
Regression assertion: The added test parses the real action block, makes the fake Codex executable return 23, and asserts that the shell exits 23.
Findings None None.
Security None None.

How this fits together

The review workflow invokes the Setup Codex composite action on hosted Linux before it reserves and runs a Codex review. The action’s sandbox preflight must fail the job so a broken isolated environment cannot proceed to review-result publication.

flowchart LR
A[GitHub-hosted Linux runner] --> B[Setup Codex action]
B --> C[Sandbox preflight]
C -->|success| D[Review workflow]
C -->|failure| E[Job stops]
D --> F[Review result publication]
Loading

Before merge

None.

Agent review details

Security

None.

Review metrics

Metric Value Why it matters
Focused test coverage 1 file added, 55 lines The patch is limited to an executable regression around the existing sandbox guard.

Technical review

Best possible solution:

Land the focused regression test so future edits cannot silently ignore a hosted-Linux sandbox startup failure.

Do we have a high-confidence way to reproduce the issue?

Yes: Node 24 can run node --test test/setup-codex-action.test.ts; the PR body records a current-head passing run, while this read-only review did not execute artifact-writing tests.

Is this the best way to solve the issue?

Yes: parsing and executing the real action shell block is the narrowest maintainable way to protect its exit-status contract without duplicating the shell logic.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against dc147bfb39d8.

Labels

Label justifications:

  • P3: This is a low-risk test-coverage improvement for an existing workflow guard.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: Not applicable to this MEMBER-authored test-only PR; its body nevertheless includes current-head terminal evidence for the focused action-contract test.

Evidence

What I checked:

Likely related people:

  • jesse-merhi: Authored merged commit 746cb85 that introduced the hosted-Linux sandbox preflight; the current main tip is also authored by Jesse Merhi. (role: introduced the production guard and recent area contributor; confidence: high; commits: 746cb858bf00, dc147bfb39d8; files: .github/actions/setup-codex/action.yml)
  • Martin Cleary: Appears in the available current-main history for the Setup Codex action before the sandbox-preflight change. (role: adjacent action-history contributor; confidence: medium; commits: 6ca63d912cb1; files: .github/actions/setup-codex/action.yml)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (4 earlier review cycles)
  • reviewed 2026-08-14T07:24:13.795Z sha 93ecdfc :: needs maintainer review before merge. :: none
  • reviewed 2026-08-14T07:28:35.319Z sha 93ecdfc :: needs maintainer review before merge. :: none
  • reviewed 2026-08-14T08:39:06.389Z sha 93ecdfc :: needs maintainer review before merge. :: none
  • reviewed 2026-08-17T12:09:03.870Z sha 785c561 :: needs maintainer review before merge. :: none

@clawsweeper clawsweeper Bot added proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient Contributor real behavior proof is sufficient. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. and removed rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. labels Aug 14, 2026
@jesse-merhi

Copy link
Copy Markdown
Member Author

/clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 17, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. and removed proof: sufficient Contributor real behavior proof is sufficient. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. labels Aug 17, 2026
@jesse-merhi

Copy link
Copy Markdown
Member Author

/clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 17, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@jesse-merhi

Copy link
Copy Markdown
Member Author

/clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 17, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@jesse-merhi
jesse-merhi marked this pull request as ready for review August 17, 2026 12:32
Copilot AI lite review requested due to automatic review settings August 17, 2026 12:32
@clawsweeper

clawsweeper Bot commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@jesse-merhi
jesse-merhi merged commit 4de9030 into main Aug 17, 2026
13 checks passed
@jesse-merhi
jesse-merhi deleted the jesse/sandbox-preflight-contract branch August 17, 2026 12:32

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P3 Low-risk cleanup, docs, polish, ergonomics, or speculative feature. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants