Repository navigation
Description
From the Oct 11–16 2026 Run retrospective, finding 6. Tracking issue: #721.
The evidence below is historical and attributed to the supplied report (repository snapshot 5504c97); it has not all been independently reproduced. Limited current-checkout checks were made at 53bb9c6. This is filed for maintainer triage, not automatic Pickup.
Requested outcome and validation
Provide a supported sandbox runner, either a script or a thirdshift command, and name it in Security review guidance. Build from the reported working recipe only after retrieving and validating the actual flags from the #707 review logs; the recipe itself is not included in the report. Enforce the Security skill's isolation requirements rather than weakening them to make commands run.
Cover real namespace availability, toolchain/linker access, certificate access when needed, filesystem mounts, resource limits, and actionable failure diagnostics. Share the runner/probe contract with #608 so setup verifies the same environment reviews use. #608 remains the setup/preflight issue; this finding adds the reusable execution path and review behavior.
Clarify that executing target code serves a candidate finding or required reproduction, and need not repeat the implementer's suite when source review produces no candidate. Before starting review, recognize an empty review range or a PR that is already merged/closed; report the actual state rather than recording a completed review or rewriting a terminal PR.
Validation must prove the applicable isolation properties, a representative sandboxed reproduction, a clear unavailable-prerequisite outcome, and the no-candidate/empty-range paths. Existing Security review and confidentiality requirements remain in force.
Original finding, including evidence, proposed fixes, and confidence
6. Security reviews rebuild a bwrap sandbox by trial and error (Factory and Host)
- Evidence: 6 of the 8 security reviews fought with bwrap:
- "--disable-userns requires --unshare-user";
- "linker
ccnot found"; - "Creating new namespace failed: Resource temporarily unavailable" (nproc counts every thread of uid 1002);
- "Can't remount readonly on /newroot/dev/shm".
- Check re-run reads CI as passed before the re-run's checks are listed, and Self-merges red CI #686 counted the threads and A Merge run reports "review required" without trying a merge it knows will be refused #707 finally added
--ro-bind /etc/ssl/certs. - Then they re-ran tests the implement session had already run. agy sessions fail on agy 1.3.3: pass the prompt as -p's value #658 said "no candidate has needed a security proof-of-concept".
- All 8 reviews ended with no findings.
- The working recipe exists only in an operator memory note.
- Cost: 3–7.6 min per review, and in Check re-run reads CI as passed before the re-run's checks are listed, and Self-merges red CI #686 83% of the review's tokens.
- Fix:
- Ship a tested sandbox runner built from A Merge run reports "review required" without trying a merge it knows will be refused #707 cmd Command surface: help, version and argument errors #40's flags. It could be a script or
thirdshift sandbox -- <cmd>, checked bythirdshift setup(thirdshift setup: check that Security sessions can sandbox target code on this machine #608), and named in the Security review prompt. - Prompt: "Run target code only to prove a candidate finding; when source review finds none, finish."
- Skip the Security review when the merge base equals HEAD or the PR isn't open. Tickets keep their repository from the sub-issue graph to the Run #672 reviewed an empty diff after the merge and wrote "Review incomplete" into the merged PR.
- Ship a tested sandbox runner built from A Merge run reports "review required" without trying a merge it knows will be refused #707 cmd Command surface: help, version and argument errors #40's flags. It could be a script or
- Confidence: high.
Activity
JacobStephens2 commentedon Nov 12, 2026
Additional evidence from #1821: ad-hoc
tmpfssandbox +scripts/affected-testsfroze a 15 GiB / 0-swap hostDuring the Nov 6, 2026 Pickup run on #1821 (
1821-20261106T081201-0500~22jciA41s6iGcyqConcodex · gpt-6.1-sol · xhigh), theSecurity reviewsession frozeorchestrate.etadventures.com(15 GiB RAM, 0 B swap), requiring a host reboot and leaving the rundied at Security review:08:46:12 EST, theSecurity reviewsession had finished inspecting the 4 changed files in PR Keep repositories visible on Inbox rows without an issue #1823 (fbf60abb), reported "The source review found no introduced security findings", and all GitHub Actions CI checks had already passed.AGENTS.md("For final local validation, runscripts/affected-tests <base>") with.agents/skills/thirdshift-security-audit/SKILL.md(Universal execution safety: "Run target-controlled builds, tests, processes, browsers... only inside an OS-enforced sandbox that provides all of these controls... explicit low CPU, memory, process, file-size, disk, and wall-clock limits"), the session tried to runscripts/affected-testsinside a self-built sandbox.tmpfs(in RAM) to enforce a "disk limit" without root:run.py) and launched it undersystemd-run --user --scope --unit=security-1821-validation --property=MemoryMax=6G --property=MemorySwapMax=0 --property=TasksMax=384 --property=CPUQuota=200% ... unshare --user --map-root-user --mount --net --pid --fork:/mnt(tmpfs) to/scratch,/repo/target,/repo/.affected-tests, and/dev/shm, then ran:cp -a /build-cache/.fingerprint /build-cache/deps /build-cache/build /scratch/target/debug/ exec /usr/bin/prlimit --cpu=900 --fsize=536870912 --nofile=1024 -- /usr/bin/python3 scripts/affected-tests a7d76bbb399b36cd108365b255b7e589492537cdcp -aimmediately copied 1.85 GiB oftarget/debug/{.fingerprint,deps,build}into the RAM-backedtmpfs, andscripts/affected-teststhen rancargo build --locked, 153 Playwright Chromium tests, and the full Rust test suite writing into that sametmpfs.tmpfspages and anonymous memory cannot be swapped out. Assecurity-1821-validation.scope'sMemoryCurrentclimbed (2.42 GB→2.74 GB→3.43 GBand rising toward6 GBalongside ~4.5–5 GiB of existing host processes), the kernel could only evict clean file-backed page cache (binaries, shared libraries,.rlibs), causing severe page-cache thrashing across the machine (systemctl --user showtook 97s, per-minute cron runs stalled, and network/DNS calls timed out until the host was rebooted at08:57:20 EST).Implications for #726
tmpfsmount in RAM where build/test artifacts pin unswappable memory on 0-swap hosts).security_review_prompt: Explicitly instructSecurity reviewthat when source review produces no candidate finding and commits no fix, it must not runscripts/affected-testsor repeat the implementer's test suite.