LABEL: service-layer driver on a real temp git worktree with an injected provider pause; not a running server worktree: /home/ubuntu/wt/pr-23671-before git rev-parse HEAD: 60b35a1ee02d717009ff4a3de34de285db9e8a60 driver: /tmp/ev-23671/evidence/driver/RestoreRace.driver.test.ts sha256=da3cd6b20b7e79f9e83c6f7df8a6a063480a6275798c1dc2c096cedcbf73f113 command: (cd /home/ubuntu/wt/pr-23671-before/apps/server && vp test run src/orchestration-v2/RestoreRace.driver.test.ts -t EVIDENCE --silent=false --reporter=verbose) date: 2026-10-22T15:49:08Z ---- note: You are running `vp test` as a Vite+ built-in command. If you meant to run the test npm script, use `vpr test` instead. RUN v5.0.5 /home/ubuntu/wt/pr-23671-before/apps/server stdout | src/orchestration-v2/RestoreRace.driver.test.ts > EVIDENCE case (a) symlink alias of the restoring worktree case (a) symlink alias of the restoring worktree restore worktree=/tmp/t3-ev-23671-Od4ylY/project/worktrees/repo/feature restoreFiles=true; turn thread worktreePath=/tmp/t3-ev-23671-Od4ylY/alias [+ 44.258ms] # 3 rollback parked at provider open [+ 44.266ms] # 4 turn start requested [+ 50.003ms] # 5 provider session opened for turn (worktree file.txt="agent edit to roll back\n") [+ 62.623ms] # 6 PROBE after 64x yieldNow: turn HAS opened a provider session while the rollback is parked [+ 70.042ms] # 7 checkpoint files restored (git checkout; file.txt="checkpoint\n") [+ 71.080ms] # 8 rollback released (execute returned) [+ 71.089ms] # 9 turn start returned RESULT (a): turn did NOT wait (opened while the rollback was parked); provider session opened BEFORE checkpoint files restored ↓ src/orchestration-v2/RestoreRace.driver.test.ts > recreates a missing worktree only at the managed location: // ↓ src/orchestration-v2/RestoreRace.driver.test.ts > recreates a missing worktree only at the managed location: the real path of a symlinked managed fo… ↓ src/orchestration-v2/RestoreRace.driver.test.ts > recreates a missing worktree only at the managed location: a path outside the managed folder ↓ src/orchestration-v2/RestoreRace.driver.test.ts > recreates a missing worktree only at the managed location: a symlink inside the managed folder tha… ↓ src/orchestration-v2/RestoreRace.driver.test.ts > recreates a missing worktree only at the managed location: a folder nested below a worktree ↓ src/orchestration-v2/RestoreRace.driver.test.ts > recreates a missing worktree only at the managed location: '..' out of the managed folder ↓ src/orchestration-v2/RestoreRace.driver.test.ts > recreates a missing worktree only at the managed location: '..' after a symlink inside the managed… ↓ src/orchestration-v2/RestoreRace.driver.test.ts > recreates a missing worktree only at the managed location: a relative path ✓ src/orchestration-v2/RestoreRace.driver.test.ts > EVIDENCE case (a) symlink alias of the restoring worktree 87ms stdout | src/orchestration-v2/RestoreRace.driver.test.ts > EVIDENCE case (b) child dir inside the restoring worktree case (b) child dir inside the restoring worktree restore worktree=/tmp/t3-ev-23671-sxW3xN/project/worktrees/repo/feature restoreFiles=true; turn thread worktreePath=/tmp/t3-ev-23671-sxW3xN/project/worktrees/repo/feature/packages/app [+ 31.079ms] # 3 rollback parked at provider open [+ 31.089ms] # 4 turn start requested [+ 32.822ms] # 5 provider session opened for turn (worktree file.txt="agent edit to roll back\n") [+ 35.261ms] # 6 PROBE after 64x yieldNow: turn HAS opened a provider session while the rollback is parked [+ 41.952ms] # 7 checkpoint files restored (git checkout; file.txt="checkpoint\n") [+ 42.185ms] # 8 rollback released (execute returned) [+ 42.189ms] # 9 turn start returned RESULT (b): turn did NOT wait (opened while the rollback was parked); provider session opened BEFORE checkpoint files restored stdout | src/orchestration-v2/RestoreRace.driver.test.ts > EVIDENCE case (c) project-root thread (worktreePath null)… case (c) project-root thread (worktreePath null), workspaceRoot is a parent of the restoring worktree restore worktree=/tmp/t3-ev-23671-C2lCxE/project/worktrees/repo/feature restoreFiles=true; turn thread worktreePath=null project.workspaceRoot=/tmp/t3-ev-23671-C2lCxE/project [+ 34.351ms] # 3 rollback parked at provider open [+ 34.357ms] # 4 turn start requested [+ 35.840ms] # 5 provider session opened for turn (worktree file.txt="agent edit to roll back\n") [+ 37.854ms] # 6 PROBE after 64x yieldNow: turn HAS opened a provider session while the rollback is parked [+ 45.279ms] # 7 checkpoint files restored (git checkout; file.txt="checkpoint\n") [+ 45.615ms] # 8 rollback released (execute returned) [+ 45.620ms] # 9 turn start returned RESULT (c): turn did NOT wait (opened while the rollback was parked); provider session opened BEFORE checkpoint files restored stdout | src/orchestration-v2/RestoreRace.driver.test.ts > EVIDENCE case (d) CONTROL non-overlapping sibling dir ( vs -other) restore worktree=/tmp/t3-ev-23671-TOHRID/project/worktrees/repo/feature restoreFiles=true; turn thread worktreePath=/tmp/t3-ev-23671-TOHRID/project/worktrees/repo/feature-other [+ 31.082ms] # 3 rollback parked at provider open [+ 31.088ms] # 4 turn start requested [+ 32.470ms] # 5 provider session opened for turn (worktree file.txt="agent edit to roll back\n") [+ 34.616ms] # 6 PROBE after 64x yieldNow: turn HAS opened a provider session while the rollback is parked [+ 41.848ms] # 7 checkpoint files restored (git checkout; file.txt="checkpoint\n") [+ 42.072ms] # 8 rollback released (execute returned) [+ 42.076ms] # 9 turn start returned RESULT (d): turn did NOT wait (opened while the rollback was parked); provider session opened BEFORE checkpoint files restored ✓ src/orchestration-v2/RestoreRace.driver.test.ts > EVIDENCE case (b) child dir inside the restoring worktree 47ms ✓ src/orchestration-v2/RestoreRace.driver.test.ts > EVIDENCE case (c) project-root thread (worktreePath null)… 51ms ✓ src/orchestration-v2/RestoreRace.driver.test.ts > EVIDENCE case (d) CONTROL non-overlapping sibling dir ( EVIDENCE case (e) CONTROL restoreFiles:false, turn in chi… case (e) CONTROL restoreFiles:false, turn in child dir of the rolling-back worktree restore worktree=/tmp/t3-ev-23671-f71wgP/project/worktrees/repo/feature restoreFiles=false; turn thread worktreePath=/tmp/t3-ev-23671-f71wgP/project/worktrees/repo/feature/packages/app [+ 26.748ms] # 3 rollback parked at provider open [+ 26.754ms] # 4 turn start requested [+ 27.999ms] # 5 provider session opened for turn (worktree file.txt="agent edit to roll back\n") [+ 29.574ms] # 6 PROBE after 64x yieldNow: turn HAS opened a provider session while the rollback is parked [+ 29.728ms] # 7 rollback released (execute returned) [+ 29.732ms] # 8 turn start returned RESULT (e): turn did NOT wait (opened while the rollback was parked); no file restore (restoreFiles:false); provider session opened BEFORE the rollback released ✓ src/orchestration-v2/RestoreRace.driver.test.ts > EVIDENCE case (e) CONTROL restoreFiles:false, turn in chi… 35ms Test Files 1 passed (1) Tests 5 passed | 8 skipped (13) Start at 15:49:09 Duration 9.51s (transform 67%, import 29%, tests 3%, setup 1%) exit: 0 ---- git status --porcelain after cleanup: (end)