Repository navigation
fix(test): expect managed worktrees for sandboxed URL spawns - #196271
roboclaw-bot wants to merge 1 commit into
Conversation
Align visible-spawn proof with the repository URL placement contract from #196206. Preserve required sandbox inheritance and registered-folder rejection while verifying the owned checkout and dispatch for false or omitted worktree intent. Co-authored-by: steipete <[email protected]>
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. What this changesUpdates sandboxed repository-URL spawn tests to expect an owned worktree when worktree intent is false or omitted. Example: A sandbox-required parent spawns from [email protected]:example/selected.git with worktree=false.
Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review This PR correctly repairs obsolete test expectations after the intentional managed-worktree change; no introduced defects were found, and the exact-head CI gate passes. Priority: P2 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe visible session-spawn tool sends project selection through Gateway session creation and workspace preparation, which bind the child session to a managed checkout before dispatch. flowchart LR
A[Visible spawn tool] --> B[Gateway session creation]
B --> C[Repository URL preparation]
C --> D[Managed worktree owner]
D --> E[Child session workspace]
E --> F[Agent dispatch]
Technical reviewBest possible solution: Merge this focused test repair using the existing spawn suite and managed-worktree owner. Do we have a high-confidence way to reproduce the issue? The base test expects URL-spawn failure, while current production preparation unconditionally allocates a managed checkout for pending repository URLs; the author also reports reproducing that assertion failure. Is this the best way to solve the issue? This is the smallest complete repair: reuse successful-spawn assertions for URL requests while retaining the registered-folder rejection and sandbox protections. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against d122c1b06011. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceTests 0. Total 0 across 1 file. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. LabelsLabel changes: No label changes. Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed November 9, 2026, 4:51 PM ET / 21:51 UTC. |
|
Superseded by #196889 (ff392db). Current main now treats GitHub URL sources as managed worktrees, accepts the formerly failing sandbox-required URL case, and preserves rejection of external registered folders. That owner fix resolves this PR’s stated CI failure; closing this redundant repair rather than layering another fixture rewrite. |
What Problem This Solves
Fixes scheduled main CI rejecting a successful sandbox-required repository URL spawn after #196206 made repository URL sessions use managed worktrees.
User Impact
No product behavior changes. The test now verifies that URL spawns keep the required sandbox and receive an owned checkout when
worktreeis false or omitted. Registered local folders outside the sandbox still fail without a managed worktree.Why This Change Was Made
Commit
97e91a16d636cbf25fff55728de21afc1578ac53intentionally removed direct URL-to-clone session binding, but this visible-spawn test still expected a failed session. Reuse its successful-spawn assertions for URL requests and verify registry ownership, session cwd/root, source isolation, dispatch, and disabled setup scripts. Remove the obsolete failure branch and its unreachable registry assertion. Production delta: 0 lines; test delta: +22/-22. No baseline changes.Related: #196206. Main failure: scheduled run 42692902936, job 129418193712, head
e64c3514e4194c1100779f9617f2d0c7b0439c4c.Evidence
required; the expectedstatus: failedwas absent. One failed test, 67.15 s wall time.src/gateway/server.sessions.create-worktree-spawn.test.ts: 28/28 passed, 132.49 s wall time, using the repository Vitest wrapper on Node with one worker. This boundary suite uses real fixture Git repositories and SQLite; GitHub materialization and agent dispatch are mocked. It also covers cancellation, stale parents, registry ownership, failed preparation, and deferred retries.git diff --checkpassed.b09f5e65212882bdc68df70fd1da833c9a9c8f33: scoped-clean through P2; no findings. Model: GPT-6.1 Sol, medium reasoning. No tests were run by the reviewer.Broad proof and CI timing are pending PR CI. No workflow dispatch, rerun, containers, PostgreSQL, or browser E2E was used for this fix.
Work sessions
Linked for team reference; these sessions aren’t public.
Discussion, implementation and verification