Issue 24390 focused red evidence Head tests against only two implementation files replaced with git show 27e0c684c5:: ProviderTurnStartService.ts and storageCleanup.ts. All changes exclusively in scratch archive. Working directory: /tmp/issue-24390-evidence-test Command: vp test run apps/server/src/orchestration-v2/ProviderTurnStartService.test.ts apps/server/src/storageCleanup.test.ts Exit: 1 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 /tmp/issue-24390-evidence-test stdout | src/storageCleanup.test.ts > keeps a managed worktree folder left with only node_modules [10:45:37.003] WARN (#1435): storage cleanup failed for worktree { threadId: 'thread-1', error: { reason: { _tag: 'NotFound', module: 'FileSystem', method: 'stat', pathOrDescriptor: '/tmp/storage-cleanup-3lsHgd/worktrees/feature/.git', syscall: 'stat', cause: [Error] }, cause: [Error: ENOENT: no such file or directory, stat '/tmp/storage-cleanup-3lsHgd/worktrees/feature/.git'] { errno: -2, code: 'ENOENT', syscall: 'stat', path: '/tmp/storage-cleanup-3lsHgd/worktrees/feature/.git' }, _tag: 'PlatformError', '~effect/PlatformError': '~effect/PlatformError' } } stdout | src/storageCleanup.test.ts > keeps a managed worktree folder left with only node_modules [10:45:37.021] ERROR (#1391): Error [AssertionError]: expected { kind: 'worktree', …(8) } to match object { outcome: 'kept', …(1) } (7 matching properties omitted from actual) at Proxy. (file:///home/ubuntu/wt/issue-24390/node_modules/.pnpm/vitest@5.0.5_@tsc-rs+typescript@0.8.0_@types+node@24.12.4_@vitest+browser-playwright@5._a4090df6c7be8012d869871fb8a7445d/node_modules/vitest/dist/chunks/index.aTZaPVhf.js:2066:10) at Proxy. (file:///home/ubuntu/wt/issue-24390/node_modules/.pnpm/vitest@5.0.5_@tsc-rs+typescript@0.8.0_@types+node@24.12.4_@vitest+browser-playwright@5._a4090df6c7be8012d869871fb8a7445d/node_modules/vitest/dist/chunks/index.aTZaPVhf.js:1958:14) at Proxy.methodWrapper (file:///home/ubuntu/wt/issue-24390/node_modules/.pnpm/chai@6.3.0/node_modules/chai/index.js:1737:25) at /tmp/issue-24390-evidence-test/apps/server/src/storageCleanup.test.ts:677:71 { showDiff: true, expected: { outcome: 'kept', reason: 'Not a linked worktree' }, actual: { outcome: 'failed', reason: 'NotFound: FileSystem.stat (/tmp/storage-cleanup-3lsHgd/worktrees/feature/.git)' }, [cause]: undefined } ❯ |t3| src/storageCleanup.test.ts (123 tests | 1 failed) 19306ms × keeps a managed worktree folder left with only node_modules 129ms stdout | src/orchestration-v2/ProviderTurnStartService.test.ts > recreates a managed worktree folder that holds only node_modules [10:45:54.359] ERROR (#365): Error [AssertionError]: expected "vi.fn()" to be called with arguments: [ { …(3) } ] Number of calls: 0 at Proxy. (file:///home/ubuntu/wt/issue-24390/node_modules/.pnpm/vitest@5.0.5_@tsc-rs+typescript@0.8.0_@types+node@24.12.4_@vitest+browser-playwright@5._a4090df6c7be8012d869871fb8a7445d/node_modules/vitest/dist/chunks/index.aTZaPVhf.js:2249:10) at Proxy. (file:///home/ubuntu/wt/issue-24390/node_modules/.pnpm/vitest@5.0.5_@tsc-rs+typescript@0.8.0_@types+node@24.12.4_@vitest+browser-playwright@5._a4090df6c7be8012d869871fb8a7445d/node_modules/vitest/dist/chunks/index.aTZaPVhf.js:1958:14) at Proxy.methodWrapper (file:///home/ubuntu/wt/issue-24390/node_modules/.pnpm/chai@6.3.0/node_modules/chai/index.js:1737:25) at /tmp/issue-24390-evidence-test/apps/server/src/orchestration-v2/ProviderTurnStartService.test.ts:905:38 { [cause]: undefined } stdout | src/orchestration-v2/ProviderTurnStartService.test.ts > recreates a managed worktree folder that holds only node_modules [10:45:54.370] ERROR (#394): Error [AssertionError]: expected "vi.fn()" to be called with arguments: [ { …(3) } ] Number of calls: 0 at Proxy. (file:///home/ubuntu/wt/issue-24390/node_modules/.pnpm/vitest@5.0.5_@tsc-rs+typescript@0.8.0_@types+node@24.12.4_@vitest+browser-playwright@5._a4090df6c7be8012d869871fb8a7445d/node_modules/vitest/dist/chunks/index.aTZaPVhf.js:2249:10) at Proxy. (file:///home/ubuntu/wt/issue-24390/node_modules/.pnpm/vitest@5.0.5_@tsc-rs+typescript@0.8.0_@types+node@24.12.4_@vitest+browser-playwright@5._a4090df6c7be8012d869871fb8a7445d/node_modules/vitest/dist/chunks/index.aTZaPVhf.js:1958:14) at Proxy.methodWrapper (file:///home/ubuntu/wt/issue-24390/node_modules/.pnpm/chai@6.3.0/node_modules/chai/index.js:1737:25) at /tmp/issue-24390-evidence-test/apps/server/src/orchestration-v2/ProviderTurnStartService.test.ts:905:38 { [cause]: undefined } ❯ |t3| src/orchestration-v2/ProviderTurnStartService.test.ts (35 tests | 2 failed) 167ms × recreates a managed worktree folder that holds only node_modules 17ms × recreates a managed worktree folder that holds only node_modules 10ms ⎯⎯⎯⎯⎯⎯⎯ Failed Tests 3 ⎯⎯⎯⎯⎯⎯⎯ FAIL |t3| src/storageCleanup.test.ts > keeps a managed worktree folder left with only node_modules AssertionError: expected { kind: 'worktree', …(8) } to match object { outcome: 'kept', …(1) } (7 matching properties omitted from actual) - Expected + Received { - "outcome": "kept", - "reason": "Not a linked worktree", + "outcome": "failed", + "reason": "NotFound: FileSystem.stat (/tmp/storage-cleanup-3lsHgd/worktrees/feature/.git)", } ❯ src/storageCleanup.test.ts:677:71 675| yield* command(repo, ["worktree", "prune"]); 676| const report = yield* service.runNow; 677| expect(report.entries.find((entry) => entry.path === worktree)).… | ^ 678| outcome: "kept", 679| reason: "Not a linked worktree", ❯ ~effect/Effect/successCont ../../../../home/ubuntu/wt/issue-24390/node_modules/.pnpm/effect@4.0.5/node_modules/effect/src/internal/effect.ts:1422:28 ❯ ~effect/Effect/evaluate ../../../../home/ubuntu/wt/issue-24390/node_modules/.pnpm/effect@4.0.5/node_modules/effect/src/internal/core.ts:585:30 ❯ FiberImpl.runLoop ../../../../home/ubuntu/wt/issue-24390/node_modules/.pnpm/effect@4.0.5/node_modules/effect/src/internal/effect.ts:654:41 ❯ FiberImpl.evaluate ../../../../home/ubuntu/wt/issue-24390/node_modules/.pnpm/effect@4.0.5/node_modules/effect/src/internal/effect.ts:595:23 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[1/3]⎯ FAIL |t3| src/orchestration-v2/ProviderTurnStartService.test.ts > recreates a managed worktree folder that holds only node_modules FAIL |t3| src/orchestration-v2/ProviderTurnStartService.test.ts > recreates a managed worktree folder that holds only node_modules AssertionError: expected "vi.fn()" to be called with arguments: [ { …(3) } ] Number of calls: 0 ❯ src/orchestration-v2/ProviderTurnStartService.test.ts:905:38 903| ); 904| yield* harness.start; 905| expect(harness.createWorktree).toHaveBeenCalledWith({ | ^ 906| cwd: "/tmp/native-account-project", 907| refName: "feature/restore", ❯ ~effect/Effect/successCont ../../../../home/ubuntu/wt/issue-24390/node_modules/.pnpm/effect@4.0.5/node_modules/effect/src/internal/effect.ts:1422:28 ❯ ~effect/Effect/evaluate ../../../../home/ubuntu/wt/issue-24390/node_modules/.pnpm/effect@4.0.5/node_modules/effect/src/internal/core.ts:585:30 ❯ FiberImpl.runLoop ../../../../home/ubuntu/wt/issue-24390/node_modules/.pnpm/effect@4.0.5/node_modules/effect/src/internal/effect.ts:654:41 ❯ FiberImpl.evaluate ../../../../home/ubuntu/wt/issue-24390/node_modules/.pnpm/effect@4.0.5/node_modules/effect/src/internal/effect.ts:595:23 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[2/3]⎯ Test Files 2 failed (2) Tests 3 failed | 155 passed (158) Start at 10:45:21 Duration 32.92s (tests 61%, import 19%, transform 17%, setup 3%)