Repository navigation
test: select workspace mode for worker wire permission proof - #132267
Conversation
Worktree creation intentionally inherits configured policy. Select the existing workspace mode in the fixture, verify persisted mode and absent markers, and retain the complete denial, reconciliation, load and restart assertions. Preserve current main Gateway cleanup.
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 28, 2026, 9:52 PM ET / August 29, 2026, 01:52 UTC. ClawSweeper reviewWhat this changesUpdates the paired node-worker wire E2E fixture to explicitly select workspace mode and verify clean effect markers before exercising containment. Merge readinessThe test-only correction matches the current session-permission contract and has no introduced correctness or security finding. It remains open for normal maintainer handling because it carries the protected Priority: P3 Review scores
Verification
How this fits togetherGateway session creation records an optional permission mode, then worker dispatch carries that selected mode and the remote workspace root to the paired node. This E2E test uses a synthetic provider to verify an allowed in-workspace write and denied escape or exec attempts. flowchart TD
A[Session creation request] --> B[Gateway session record]
B --> C[Worker turn launcher]
C --> D[Paired node workspace]
D --> E[Allowed workspace write]
D --> F[Denied escape and exec]
E --> G[Wire E2E assertions]
F --> G
Before merge
Agent review detailsSecurityNone. PR surfaceTests +12. Total +12 across 1 file. View PR surface stats
Review metrics
Technical reviewBest possible solution: Keep the explicit fixture mode and its precondition assertions so the wire test continues to prove the documented workspace boundary rather than an inherited default. Do we have a high-confidence way to reproduce the issue? Yes, from source: the prior fixture omitted a mode although current main explicitly defines omission as inherited policy, while its later assertions require workspace containment. Is this the best way to solve the issue? Yes. Selecting the existing explicit session mode at the fixture boundary is narrower and more maintainable than restoring a worktree-only production default. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against a6ccf6ad8f94. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Exact head I read the latest ClawSweeper review5459631580: no actionable finding or rank-up move. This is the requested normal maintainer delivery; no product permission default, authority, approval or containment policy changes. Proceeding through native preparation/merge with the exact-head gate, without bypass. |
|
Merged via squash.
|
…w#132267) Worktree creation intentionally inherits configured policy. Select the existing workspace mode in the fixture, verify persisted mode and absent markers, and retain the complete denial, reconciliation, load and restart assertions. Preserve current main Gateway cleanup.
What Problem This Solves
Fixes a stale worker wire-test setup that expected workspace containment without selecting a permission mode. Since #131547, creating a worktree intentionally pins the directory while inheriting configured tool/exec policy; it does not select workspace mode.
Why This Change Was Made
Select the existing
workspacemode in the fixture's session creation, verify the persisted mode, and assert all three effect markers are absent before probing. Keep the original allowed-write, outside-write denial, exec approval-required outcome, transcript, reconciliation, legacy negotiation, 36 load turns and restart-audit assertions unchanged. Preserve current main's separately repaired Gateway cleanup owner.The fix belongs to test setup. Reintroducing the worktree-only production default would contradict the documented permission contract. No production/default/containment/approval/authority changes are made.
User Impact
No product behavior change. The real wire scenario once again tests the explicitly selected workspace policy it claims to exercise.
Evidence
The unmodified fixture failed on fresh Linux at the outside-marker absence assertion. Separate temporary instrumentation of the actual prepared-tool execution path showed new marker effects under an absent mode and denial under explicit workspace mode, with the same live placement generation/owner epoch/turn claim. That instrumentation was removed. This explains the fresh reproduction; it does not identify the historical CI marker creator or claim general worker security completeness.
The original final uninstrumented full wire scenario and 141 owner/sibling cases passed. The current-main port passed its complete original wire scenario again (39.793s), a full private-QA build (3m51.7s), and the full changed-files gate in clean Linux environment33226469125. Node24.19.0/pnpm12.0.0, canonical frozen install; command8m10.534s/exit0. Exact full tracked tree
a5dd4b860b3a5c8349813be6287b743e3cfbb6camatched before/after; the Testbox was stopped. The environment Actions run may be cancelled by lease cleanup; the wrapper receipt records command success.Fresh isolated complete-delta Codex review found no actionable P0 findings. Exact headbe409 CI33227133928 is green; native landing gates are next. AI-assisted. This is local synthetic-provider/isolated Gateway proof, not an authenticated provider session or full release matrix.
Production LOC:0. Test LOC:+13/-1 (net+12). Existing documented input only; no new test-only production seam, config field, schema/protocol, dependency or permission policy.