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-24136-red-evidence

stdout | src/orchestration-v2/runtimeLayer.test.ts > OrchestrationV2LayerLive lifecycle > lets a scheduled run mark its own thread unread through t3_thread_organize
[11:14:26.380] ERROR (#3037): Error [AssertionError]: mark_unread from the thread's own active run must not be rejected: expected { Object (_tag, code, ...) } to deeply equal undefined
    at /home/ubuntu/wt/issue-24136-red-evidence/apps/server/src/orchestration-v2/runtimeLayer.test.ts:3806:14 {
  actual: {
    _tag: 'OrchestratorMcpFailure',
    code: 'orchestration_error',
    message: 'Thread runtime-layer-own-mark-unread-thread has no completed run to mark unread.'
  },
  expected: undefined,
  showDiff: true,
  operator: 'strictEqual',
  [cause]: undefined
}

 ❯ |t3| src/orchestration-v2/runtimeLayer.test.ts (87 tests | 1 failed | 86 skipped) 415ms
   ❯ OrchestrationV2LayerLive lifecycle (49)
     × lets a scheduled run mark its own thread unread through t3_thread_organize 136ms

⎯⎯⎯⎯⎯⎯⎯ Failed Tests 1 ⎯⎯⎯⎯⎯⎯⎯

 FAIL  |t3| src/orchestration-v2/runtimeLayer.test.ts > OrchestrationV2LayerLive lifecycle > lets a scheduled run mark its own thread unread through t3_thread_organize
AssertionError: mark_unread from the thread's own active run must not be rejected: expected { Object (_tag, code, ...) } to deeply equal undefined

- Expected:
undefined

+ Received:
{
  "_tag": "OrchestratorMcpFailure",
  "code": "orchestration_error",
  "message": "Thread runtime-layer-own-mark-unread-thread has no completed run to mark unread.",
}

 ❯ src/orchestration-v2/runtimeLayer.test.ts:3806:14
    3804|         );
    3805|       const text = result.content[0];
    3806|       assert.deepEqual(
       |              ^
    3807|         result.isError === true && text?.type === "text" ? JSON.parse(…
    3808|         undefined,
 ❯ ~effect/Effect/successCont ../../node_modules/.pnpm/effect@4.0.5/node_modules/effect/src/internal/effect.ts:1422:28
 ❯ ~effect/Effect/evaluate ../../node_modules/.pnpm/effect@4.0.5/node_modules/effect/src/internal/core.ts:585:30
 ❯ FiberImpl.runLoop ../../node_modules/.pnpm/effect@4.0.5/node_modules/effect/src/internal/effect.ts:654:41
 ❯ FiberImpl.evaluate ../../node_modules/.pnpm/effect@4.0.5/node_modules/effect/src/internal/effect.ts:595:23
 ❯ FiberImpl.evaluate ../../node_modules/.pnpm/effect@4.0.5/node_modules/effect/src/internal/effect.ts:589:27
 ❯ ../../node_modules/.pnpm/effect@4.0.5/node_modules/effect/src/internal/effect.ts:1159:17
 ❯ Array.<anonymous> ../../node_modules/.pnpm/effect@4.0.5/node_modules/effect/src/internal/effect.ts:804:44

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[1/1]⎯


 Test Files  1 failed (1)
      Tests  1 failed | 86 skipped (87)
   Start at  11:14:04
   Duration  22.07s (transform 75%, import 17%, setup 6%, tests 2%)

