Repository navigation
feat(testing): keep test writes in a temp dir and destructive tests in a sandbox - #16955
Conversation
…n a sandbox testing:write's determinism controls gain two rules: every test, and the code under test, writes only under a per-test or per-suite temporary directory removed on every exit path; a test of a destructive command runs only in a throwaway sandbox, never against the real machine, repository or home. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
claude-security-review reviewed Security review (incremental, blocking only): no security issues foundScope. This review covers only the change since What changed. The bullet now handles remote and credential effects separately from local filesystem and configuration effects:
Instruction-surface lens. The phrase "touches the network" was dropped from the first sentence. That removes no protection:
So the change narrows what a generated test may do and softens nothing. It adds no tool grant, no command the session runs, and no path for untrusted input to reach an action. Trust controls and manifests. The file matches no trusted-path glob. The change touches no trust control, plugin manifest, Settled threads. The thread on this bullet (resolved, owner reply by kyle-sexton) asked for cleared credentials, a faked remote and a reconciliation with the Network control. The new text does all three. I raise nothing again. PR context. The description's Fix section still describes the earlier wording of the sandbox bullet, the one that included "touches the network or credentials". The code is stricter than that description, so this is not a security issue. The description contains no instructions aimed at this lane. Prior findings. The only earlier entry is the clean summary from the previous head, so nothing needed to be marked as already posted. critical-findings: 0 |
|
claude-review reviewed Code review: PR #16955 (incremental, blocking only). Since The earlier finding is fixed. My earlier comment on line 119 (the thread is now resolved) said the bullet's sandbox options did not isolate network and credential effects, and that it conflicted with the Network control. The new text answers both points:
Advisory points left out. The review was blocking only, because this lane already reviewed an earlier head. So it left out two advisory points about wording:
Other checks:
Loosened-check verdict: fail (the default, because the wrapper supplied no Verifier dropped 0 of 0 candidates. |
A temporary home or a container with network access leaves credential variables and real remotes in reach. A destructive command that writes to a remote or uses credentials now also runs with credentials cleared and a local fake remote, and the rule defers to the Network control: an integration test opts in only to hosts it owns for testing. Co-Authored-By: Claude Opus 5.5 <[email protected]>
No related issue: workshop 06 close-out, owner decision Q774 (2026-11-17)
Summary
/testing:writehad no rule keeping a test's writes inside a temporary directory, and none keeping a test of a destructive command away from the real machine. Its determinism controls now carry both, beside the order-independence and parallel-isolation rules.Fix
testingchangelog fragment (minor) is added.Verification
scripts/validate-plugins.sh --only testing: "All plugin manifests and the catalog validated."validate-cases.py plugins/testing/evals: WARN lines only (pre-existingallowed_toolsand calibration notes), no FAIL.scripts/check-changelog-fragments.sh --check-required origin/main: every changed fragment-mode plugin (1) has a fragment.Related
testing:audithas no rule id for a missing temp-dir cleanup or a write outside a temp dir; its rule table covers tests that cannot fail or check little, so nothing was added there.🤖 Generated with Claude Code