Commit: 61081da02dbb1d8c4788af7c796639d08c76dc5d (base implementation + regression test) CWD: separate detached evidence checkout apps/server Command: ../../node_modules/.bin/vp test run src/orchestration-v2/ProviderTurnStartService.test.ts Environment: Linux x86_64, Node 24.21.0; dependencies reused without modifying implementation Result: actual rerun, not a delegated report. Regression fails at harness.start with ProviderTurnStartError caused by ProjectionStoreReadError / malformed command_execution turn item, before the terminal-state expectations. 22 other tests pass. 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/issue-16441-red-evidence/apps/server stdout | src/orchestration-v2/ProviderTurnStartService.test.ts > terminalizes a starting run when its recovery projection cannot be read [00:31:20.739] ERROR (#339): Error [ProviderTurnStartError]: at /home/ubuntu/wt/issue-16441-red-evidence/apps/server/src/orchestration-v2/ProviderTurnStartService.ts:1291:19 at file:///home/ubuntu/wt/issue-16441/node_modules/.pnpm/effect@4.0.5/node_modules/effect/dist/internal/effect.js:1483:96 at ProviderTurnStartService.start (/home/ubuntu/wt/issue-16441-red-evidence/apps/server/src/orchestration-v2/ProviderTurnStartService.test.ts:680:68) at ProviderTurnStartService.start (definition) (/home/ubuntu/wt/issue-16441-red-evidence/apps/server/src/orchestration-v2/ProviderTurnStartService.ts:1276:21) { _tag: 'ProviderTurnStartError', runId: 'run-native-account-command', [cause]: Error [ProjectionStoreReadError]: Failed to read orchestration projection for thread thread-native-account-command. at Proxy.getRuntimeRecoveryProjection (/home/ubuntu/wt/issue-16441-red-evidence/apps/server/src/orchestration-v2/ProviderTurnStartService.test.ts:632:19) at /home/ubuntu/wt/issue-16441-red-evidence/apps/server/src/orchestration-v2/ProviderTurnStartService.ts:523:10 { _tag: 'ProjectionStoreReadError', threadId: 'thread-native-account-command', [cause]: Error: malformed command_execution turn item at /home/ubuntu/wt/issue-16441-red-evidence/apps/server/src/orchestration-v2/ProviderTurnStartService.test.ts:937:28 { [cause]: undefined } } } ❯ src/orchestration-v2/ProviderTurnStartService.test.ts (23 tests | 1 failed) 3093ms × terminalizes a starting run when its recovery projection cannot be read 130ms ⎯⎯⎯⎯⎯⎯⎯ Failed Tests 1 ⎯⎯⎯⎯⎯⎯⎯ FAIL src/orchestration-v2/ProviderTurnStartService.test.ts > terminalizes a starting run when its recovery projection cannot be read { _tag: 'ProviderTurnStartError', runId: 'run-native-account-command', cause: { _tag: 'ProjectionStoreReadError', threadId: 'thread-native-account-command', cause: { stack: 'Error: malformed command_execution turn item\n' + ' at /home/ubuntu/wt/issue-16441-red-evidence/apps/server/src/orchestration-v2/ProviderTurnStartService.test.ts:937:28\n' + ' at Generator.next ()\n' + ' at ~effect/Effect/successCont (file:///home/ubuntu/wt/issue-16441/node_modules/.pnpm/effect@4.0.5/node_modules/effect/dist/internal/effect.js:979:28)\n' + ' at ~effect/Effect/evaluate (file:///home/ubuntu/wt/issue-16441/node_modules/.pnpm/effect@4.0.5/node_modules/effect/dist/internal/effect.js:991:25)\n' + ' at FiberImpl.runLoop (file:///home/ubuntu/wt/issue-16441/node_modules/.pnpm/effect@4.0.5/node_modules/effect/dist/internal/effect.js:453:97)\n' + ' at FiberImpl.evaluate (file:///home/ubuntu/wt/issue-16441/node_modules/.pnpm/effect@4.0.5/node_modules/effect/dist/internal/effect.js:402:23)\n' + ' at file:///home/ubuntu/wt/issue-16441/node_modules/.pnpm/effect@4.0.5/node_modules/effect/dist/internal/effect.js:2474:9\n' + ' at file:///home/ubuntu/wt/issue-16441/node_modules/.pnpm/effect@4.0.5/node_modules/effect/dist/internal/effect.js:2526:19\n' + ' at Module. (file:///home/ubuntu/wt/issue-16441/node_modules/.pnpm/effect@4.0.5/node_modules/effect/dist/internal/effect.js:2537:31)\n' + ' at Array. (file:///home/ubuntu/wt/issue-16441/node_modules/.pnpm/@effect+vitest@4.0.5_patch_hash=2731c9c3761c595f25ddc625a7d61ca376b389d5b3049ecb837c894_0a53b7d0c7fa50535b23af1337f994a1/node_modules/@effect/vitest/dist/internal/internal.js:26:31)', message: 'malformed command_execution turn item', constructor: 'Function', name: 'Error', toString: 'Function' }, message: 'Failed to read orchestration projection for thread thread-native-account-command.', stack: 'ProjectionStoreReadError: Failed to read orchestration projection for thread thread-native-account-command.\n' + ' at Proxy.getRuntimeRecoveryProjection (/home/ubuntu/wt/issue-16441-red-evidence/apps/server/src/orchestration-v2/ProviderTurnStartService.test.ts:632:19)\n' + ' at /home/ubuntu/wt/issue-16441-red-evidence/apps/server/src/orchestration-v2/ProviderTurnStartService.ts:523:10\n' + ' at Generator.next ()\n' + ' at ~effect/Effect/successCont (file:///home/ubuntu/wt/issue-16441/node_modules/.pnpm/effect@4.0.5/node_modules/effect/dist/internal/effect.js:979:28)\n' + ' at ~effect/Effect/evaluate (file:///home/ubuntu/wt/issue-16441/node_modules/.pnpm/effect@4.0.5/node_modules/effect/dist/internal/effect.js:991:25)\n' + ' at FiberImpl.runLoop (file:///home/ubuntu/wt/issue-16441/node_modules/.pnpm/effect@4.0.5/node_modules/effect/dist/internal/effect.js:453:97)\n' + ' at FiberImpl.evaluate (file:///home/ubuntu/wt/issue-16441/node_modules/.pnpm/effect@4.0.5/node_modules/effect/dist/internal/effect.js:402:23)\n' + ' at file:///home/ubuntu/wt/issue-16441/node_modules/.pnpm/effect@4.0.5/node_modules/effect/dist/internal/effect.js:2474:9\n' + ' at file:///home/ubuntu/wt/issue-16441/node_modules/.pnpm/effect@4.0.5/node_modules/effect/dist/internal/effect.js:2526:19\n' + ' at Module. (file:///home/ubuntu/wt/issue-16441/node_modules/.pnpm/effect@4.0.5/node_modules/effect/dist/internal/effect.js:2537:31)', name: 'ProjectionStoreReadError' }, message: '', stack: 'ProviderTurnStartError: \n' + ' at /home/ubuntu/wt/issue-16441-red-evidence/apps/server/src/orchestration-v2/ProviderTurnStartService.ts:1291:19\n' + ' at file:///home/ubuntu/wt/issue-16441/node_modules/.pnpm/effect@4.0.5/node_modules/effect/dist/internal/effect.js:1483:96\n' + ' at PrimitiveImpl.~effect/Effect/args (file:///home/ubuntu/wt/issue-16441/node_modules/.pnpm/effect@4.0.5/node_modules/effect/dist/internal/effect.js:748:53)\n' + ' at ~effect/Effect/evaluate (file:///home/ubuntu/wt/issue-16441/node_modules/.pnpm/effect@4.0.5/node_modules/effect/dist/internal/effect.js:709:22)\n' + ' at FiberImpl.runLoop (file:///home/ubuntu/wt/issue-16441/node_modules/.pnpm/effect@4.0.5/node_modules/effect/dist/internal/effect.js:453:97)\n' + ' at FiberImpl.evaluate (file:///home/ubuntu/wt/issue-16441/node_modules/.pnpm/effect@4.0.5/node_modules/effect/dist/internal/effect.js:402:23)\n' + ' at file:///home/ubuntu/wt/issue-16441/node_modules/.pnpm/effect@4.0.5/node_modules/effect/dist/internal/effect.js:2474:9\n' + ' at file:///home/ubuntu/wt/issue-16441/node_modules/.pnpm/effect@4.0.5/node_modules/effect/dist/internal/effect.js:2526:19\n' + ' at Module. (file:///home/ubuntu/wt/issue-16441/node_modules/.pnpm/effect@4.0.5/node_modules/effect/dist/internal/effect.js:2537:31)\n' + ' at Array. (file:///home/ubuntu/wt/issue-16441/node_modules/.pnpm/@effect+vitest@4.0.5_patch_hash=2731c9c3761c595f25ddc625a7d61ca376b389d5b3049ecb837c894_0a53b7d0c7fa50535b23af1337f994a1/node_modules/@effect/vitest/dist/internal/internal.js:26:31)', name: 'ProviderTurnStartError', stacks: [ { method: '', file: '/home/ubuntu/wt/issue-16441-red-evidence/apps/server/src/orchestration-v2/ProviderTurnStartService.ts', line: 1291, column: 19 }, { line: 3384, column: 72, file: '/home/ubuntu/wt/issue-16441/node_modules/.pnpm/effect@4.0.5/node_modules/effect/src/internal/effect.ts', method: '' }, { line: 1058, column: 95, file: '/home/ubuntu/wt/issue-16441/node_modules/.pnpm/effect@4.0.5/node_modules/effect/src/internal/effect.ts', method: 'PrimitiveImpl.~effect/Effect/args' }, { line: 981, column: 22, file: '/home/ubuntu/wt/issue-16441/node_modules/.pnpm/effect@4.0.5/node_modules/effect/src/internal/effect.ts', method: '~effect/Effect/evaluate' }, { line: 654, column: 41, file: '/home/ubuntu/wt/issue-16441/node_modules/.pnpm/effect@4.0.5/node_modules/effect/src/internal/effect.ts', method: 'FiberImpl.runLoop' }, { line: 595, column: 23, file: '/home/ubuntu/wt/issue-16441/node_modules/.pnpm/effect@4.0.5/node_modules/effect/src/internal/effect.ts', method: 'FiberImpl.evaluate' }, { line: 5689, column: 9, file: '/home/ubuntu/wt/issue-16441/node_modules/.pnpm/effect@4.0.5/node_modules/effect/src/internal/effect.ts', method: '' }, { line: 5767, column: 19, file: '/home/ubuntu/wt/issue-16441/node_modules/.pnpm/effect@4.0.5/node_modules/effect/src/internal/effect.ts', method: '' }, { line: 5786, column: 5, file: '/home/ubuntu/wt/issue-16441/node_modules/.pnpm/effect@4.0.5/node_modules/effect/src/internal/effect.ts', method: 'Module.' } ] } ❯ src/orchestration-v2/ProviderTurnStartService.ts:1291:19 1289| isProviderTurnStartError(cause) 1290| ? cause 1291| : new ProviderTurnStartError({ runId: input.runId, cau… | ^ 1292| ), 1293| ), ❯ ../../../issue-16441/node_modules/.pnpm/effect@4.0.5/node_modules/effect/src/internal/effect.ts:3384:72 ❯ PrimitiveImpl.~effect/Effect/args ../../../issue-16441/node_modules/.pnpm/effect@4.0.5/node_modules/effect/src/internal/effect.ts:1058:95 ❯ ~effect/Effect/evaluate ../../../issue-16441/node_modules/.pnpm/effect@4.0.5/node_modules/effect/src/internal/effect.ts:981:22 ❯ FiberImpl.runLoop ../../../issue-16441/node_modules/.pnpm/effect@4.0.5/node_modules/effect/src/internal/effect.ts:654:41 ❯ FiberImpl.evaluate ../../../issue-16441/node_modules/.pnpm/effect@4.0.5/node_modules/effect/src/internal/effect.ts:595:23 ❯ ../../../issue-16441/node_modules/.pnpm/effect@4.0.5/node_modules/effect/src/internal/effect.ts:5689:9 ❯ ../../../issue-16441/node_modules/.pnpm/effect@4.0.5/node_modules/effect/src/internal/effect.ts:5767:19 ❯ Module. ../../../issue-16441/node_modules/.pnpm/effect@4.0.5/node_modules/effect/src/internal/effect.ts:5786:5 Caused by: ProjectionStoreReadError: Failed to read orchestration projection for thread thread-native-account-command. ❯ Proxy.getRuntimeRecoveryProjection src/orchestration-v2/ProviderTurnStartService.test.ts:632:19 ❯ src/orchestration-v2/ProviderTurnStartService.ts:523:10 ❯ ~effect/Effect/successCont ../../../issue-16441/node_modules/.pnpm/effect@4.0.5/node_modules/effect/dist/internal/effect.js:979:28 ❯ ~effect/Effect/evaluate ../../../issue-16441/node_modules/.pnpm/effect@4.0.5/node_modules/effect/dist/internal/effect.js:991:25 ❯ FiberImpl.runLoop ../../../issue-16441/node_modules/.pnpm/effect@4.0.5/node_modules/effect/dist/internal/effect.js:453:97 ❯ FiberImpl.evaluate ../../../issue-16441/node_modules/.pnpm/effect@4.0.5/node_modules/effect/dist/internal/effect.js:402:23 ❯ ../../../issue-16441/node_modules/.pnpm/effect@4.0.5/node_modules/effect/dist/internal/effect.js:2474:9 ❯ ../../../issue-16441/node_modules/.pnpm/effect@4.0.5/node_modules/effect/dist/internal/effect.js:2526:19 ❯ Module. ../../../issue-16441/node_modules/.pnpm/effect@4.0.5/node_modules/effect/dist/internal/effect.js:2537:31 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { _tag: 'ProjectionStoreReadError', threadId: 'thread-native-account-command' } Caused by: Error: malformed command_execution turn item ❯ src/orchestration-v2/ProviderTurnStartService.test.ts:937:28 ❯ ~effect/Effect/successCont ../../../issue-16441/node_modules/.pnpm/effect@4.0.5/node_modules/effect/dist/internal/effect.js:979:28 ❯ ~effect/Effect/evaluate ../../../issue-16441/node_modules/.pnpm/effect@4.0.5/node_modules/effect/dist/internal/effect.js:991:25 ❯ FiberImpl.runLoop ../../../issue-16441/node_modules/.pnpm/effect@4.0.5/node_modules/effect/dist/internal/effect.js:453:97 ❯ FiberImpl.evaluate ../../../issue-16441/node_modules/.pnpm/effect@4.0.5/node_modules/effect/dist/internal/effect.js:402:23 ❯ ../../../issue-16441/node_modules/.pnpm/effect@4.0.5/node_modules/effect/dist/internal/effect.js:2474:9 ❯ ../../../issue-16441/node_modules/.pnpm/effect@4.0.5/node_modules/effect/dist/internal/effect.js:2526:19 ❯ Module. ../../../issue-16441/node_modules/.pnpm/effect@4.0.5/node_modules/effect/dist/internal/effect.js:2537:31 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[1/1]⎯ Test Files 1 failed (1) Tests 1 failed | 22 passed (23) Start at 00:29:31 Duration 110.60s (transform 70%, import 26%, tests 3%, setup 1%) EXIT_STATUS=1 Regression expectations at red commit: effectIt.effect("terminalizes a starting run when its recovery projection cannot be read", () => Effect.gen(function* () { const harness = makeLocalCommandHarness({ text: "Continue", recoveryReadFailure: new Error("malformed command_execution turn item"), }); yield* harness.start; expect(harness.open).not.toHaveBeenCalled(); expect(harness.startRootRun).not.toHaveBeenCalled(); const projection = harness.projection(); expect(projection.runs.at(-1)).toMatchObject({ status: "failed", startedAt: null }); expect(projection.attempts[0]).toMatchObject({ status: "failed", startedAt: null }); expect(projection.nodes[0]).toMatchObject({ status: "failed", startedAt: null }); expect(projection.turnItems).toMatchObject([{ type: "error", status: "failed" }]); }), ); effectIt.effect("leaves the run starting when a session-open failure will be retried", () => Effect.gen(function* () {