Repository navigation
fix(review): enable hosted Linux sandbox - #1162
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 14, 2026, 1:03 AM ET / 05:03 UTC. ClawSweeper reviewWhat this changesThe PR enables user-namespace kernel settings on GitHub-hosted Linux runners and preflights Codex’s read-only, network-isolated sandbox before review execution. Regression provenancePossible regression — probable (reproduction; failure trace). No predecessor PR is attributed. Merge readinessKeep this member-authored PR open for maintainer security-boundary review. The review sandbox itself reproduced the reported Bubblewrap loopback failure before any repository command could run, while the submitted hosted-run proof reports the intended after-fix preflight. Priority: P2 Review scores
Verification
How this fits togetherClawSweeper’s GitHub Actions workflows install Codex and run repository review commands inside a read-only sandbox. The setup action prepares the hosted runner, validates sandbox startup, then permits the review workflow to publish a verdict only if that prerequisite succeeds. flowchart LR
A[GitHub-hosted Linux runner] --> B[Codex setup action]
B --> C[Enable user namespace settings]
C --> D[Read-only sandbox preflight]
D --> E{Sandbox starts?}
E -->|Yes| F[Repository review]
E -->|No| G[Stop before verdict publication]
Decision needed
Why: The patch intentionally changes a kernel-level containment setting for the whole hosted job; source inspection and CI cannot determine the repository’s acceptable threat-model tradeoff. Before merge
Findings
Agent review detailsSecurityNeeds attention: The patch deliberately lowers an AppArmor user-namespace restriction for each hosted job, requiring maintainer acceptance of that containment tradeoff. Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Accept the narrowly hosted-only kernel preparation only if its runner-wide security tradeoff matches the workflow threat model, while retaining the preflight that prevents degraded review publication. Do we have a high-confidence way to reproduce the issue? Yes: attempting a read-only repository inspection in this review environment failed before command execution with the same Bubblewrap Is this the best way to solve the issue? Unclear: failing before publication is the correct reliability boundary, but a maintainer must decide whether the hosted-job-wide AppArmor setting is an acceptable way to enable it. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against c9eda83c29d2. LabelsLabel changes:
Label justifications:
EvidenceSecurity concerns:
What I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
|
/clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
Summary
Root cause
The hosted Ubuntu runner allowed the review process to start, but AppArmor rejected bubblewrap while it configured loopback inside the isolated network namespace. Every repository command failed before execution, yet the degraded report could still reach publication.
The setup action now applies the same hosted-Linux preparation used by the upstream action, then exercises the exact review permission profile with
/bin/true. Self-hosted and non-Linux runners are unchanged.Behavior
Before: a review could publish after every checkout command failed with
RTM_NEWADDR: Operation not permitted.After: hosted Linux must enter the read-only, network-isolated sandbox successfully before the review starts. A sandbox regression stops the workflow before a verdict can be produced.
Proof
fad063b7e6d9:read-onlysandbox smoke passedRTM_NEWADDRfailureScope