{
  "baseSha": "95cb068c10a6cf0b33eed0a0cab3b298763fe852",
  "headSha": "2f889eb131d1a33bd039c1d14c42e0a3aff6be09",
  "method": "Real web clients and servers; Chromium 151, Linux, 1440x960, light; development Replay agent instrumented identically to emit synthetic ACP tool and reasoning events; fresh server-created databases, populated only through RPC and provider events.",
  "startingState": {
    "base": {
      "Short history": {
        "runs": {
          "count": 3,
          "byStatus": {
            "run:completed": 3
          },
          "semanticSha256": "7ba8bf287ac0f37d7328a344eeda7155db77f7ecda932f55eda45571119e0f25"
        },
        "turn_items": {
          "count": 57,
          "byStatus": {
            "user_message:completed": 3,
            "command_execution:completed": 48,
            "assistant_message:completed": 3,
            "checkpoint:completed": 3
          },
          "semanticSha256": "fcbce701e63e7280645452e3d27fb9c6345b31aafb22d0b63ff56104aa29cee5"
        },
        "nodes": {
          "count": 54,
          "byStatus": {
            "root_turn:completed": 3,
            "tool_call:completed": 48,
            "assistant_message:completed": 3
          },
          "semanticSha256": "4fbbc183eb93892f33dc882399979884321d47cf63ad4bc27758299b4b59d9c0"
        },
        "messages": {
          "count": 6,
          "byStatus": {
            "user:message": 3,
            "assistant:message": 3
          },
          "semanticSha256": "27a79d2849c20712fbf00d304b6cb680e36b0c7b46378c2723461289b0119da1"
        }
      },
      "Long history": {
        "runs": {
          "count": 1800,
          "byStatus": {
            "run:completed": 1800
          },
          "semanticSha256": "4cf3ccfcef5fb7b5bbb057df323bf78cca9528a71314d16c1eaf9c7bcaf6e040"
        },
        "turn_items": {
          "count": 34200,
          "byStatus": {
            "user_message:completed": 1800,
            "command_execution:completed": 28800,
            "assistant_message:completed": 1800,
            "checkpoint:completed": 1800
          },
          "semanticSha256": "63b0acf2d13b4c91e3647bd7c5dca7ef8e0fa6c91770d2a4b5e29fa816e404f6"
        },
        "nodes": {
          "count": 32400,
          "byStatus": {
            "root_turn:completed": 1800,
            "tool_call:completed": 28800,
            "assistant_message:completed": 1800
          },
          "semanticSha256": "012fd681a93742d48c44bda033d0d3236ac74def6bf6d8cab8f089c8031489b7"
        },
        "messages": {
          "count": 3600,
          "byStatus": {
            "user:message": 1800,
            "assistant:message": 1800
          },
          "semanticSha256": "5eec3b885ed71acc578b618c8eb5ffb87429a0c369271f345e1295266b9c0e03"
        }
      }
    },
    "head": {
      "Short history": {
        "runs": {
          "count": 3,
          "byStatus": {
            "run:completed": 3
          },
          "semanticSha256": "7ba8bf287ac0f37d7328a344eeda7155db77f7ecda932f55eda45571119e0f25"
        },
        "turn_items": {
          "count": 57,
          "byStatus": {
            "user_message:completed": 3,
            "command_execution:completed": 48,
            "assistant_message:completed": 3,
            "checkpoint:completed": 3
          },
          "semanticSha256": "fcbce701e63e7280645452e3d27fb9c6345b31aafb22d0b63ff56104aa29cee5"
        },
        "nodes": {
          "count": 54,
          "byStatus": {
            "root_turn:completed": 3,
            "tool_call:completed": 48,
            "assistant_message:completed": 3
          },
          "semanticSha256": "4fbbc183eb93892f33dc882399979884321d47cf63ad4bc27758299b4b59d9c0"
        },
        "messages": {
          "count": 6,
          "byStatus": {
            "user:message": 3,
            "assistant:message": 3
          },
          "semanticSha256": "27a79d2849c20712fbf00d304b6cb680e36b0c7b46378c2723461289b0119da1"
        }
      },
      "Long history": {
        "runs": {
          "count": 1800,
          "byStatus": {
            "run:completed": 1800
          },
          "semanticSha256": "4cf3ccfcef5fb7b5bbb057df323bf78cca9528a71314d16c1eaf9c7bcaf6e040"
        },
        "turn_items": {
          "count": 34200,
          "byStatus": {
            "user_message:completed": 1800,
            "command_execution:completed": 28800,
            "assistant_message:completed": 1800,
            "checkpoint:completed": 1800
          },
          "semanticSha256": "63b0acf2d13b4c91e3647bd7c5dca7ef8e0fa6c91770d2a4b5e29fa816e404f6"
        },
        "nodes": {
          "count": 32400,
          "byStatus": {
            "root_turn:completed": 1800,
            "tool_call:completed": 28800,
            "assistant_message:completed": 1800
          },
          "semanticSha256": "012fd681a93742d48c44bda033d0d3236ac74def6bf6d8cab8f089c8031489b7"
        },
        "messages": {
          "count": 3600,
          "byStatus": {
            "user:message": 1800,
            "assistant:message": 1800
          },
          "semanticSha256": "5eec3b885ed71acc578b618c8eb5ffb87429a0c369271f345e1295266b9c0e03"
        }
      }
    },
    "identical": true
  },
  "provenance": {
    "driverUrl": "https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/816d76cbd7192bbd/queue-proof-driver-v3.tar.gz",
    "uploadedSha256": "0d6c4531625fd2397ec46d20ccc73100a381758bd3804203d0d3d74505aee70e",
    "downloadedSha256": "0d6c4531625fd2397ec46d20ccc73100a381758bd3804203d0d3d74505aee70e",
    "baseSha": "95cb068c10a6cf0b33eed0a0cab3b298763fe852",
    "headSha": "2f889eb131d1a33bd039c1d14c42e0a3aff6be09",
    "developmentReplayChangedIdentically": true,
    "seed": "Fresh databases through RPC commands and ACP provider events; no database inserts or copied data",
    "rebuild": "Both final short/long UI capture runs executed flow.mjs extracted from the downloaded public v3 bundle. SHA-256 of uploaded and downloaded archive matched.",
    "shortControlReset": "Both short controls recreated identically after an automation input issue; long histories untouched. Final normalized content audit matched.",
    "productionSourceChangedDuringPrimaryCaptures": false,
    "productionSourceChangedDuringSupplementaryCounts": "ProjectionStore received identical observational span annotations only; patch included in supplemental source bundle."
  },
  "sides": {
    "base": {
      "uiFlows": [
        {
          "thread": "Short history",
          "beforeCounts": {
            "runs": 3,
            "turn_items": 57,
            "nodes": 54,
            "messages": 6
          },
          "beforeRunStatuses": {
            "completed": 3
          },
          "afterCounts": {
            "runs": 5,
            "turn_items": 66,
            "nodes": 61,
            "messages": 8
          },
          "lastUserMessages": [
            "HISTORY-SEED 0002",
            "HISTORY-SEED 0003",
            "Continue the work.",
            "Please focus on message ordering, edited."
          ],
          "persistedReasoning": [
            {
              "type": "reasoning",
              "status": "completed",
              "text": "Working.",
              "ordinal": 4000002
            },
            {
              "type": "reasoning",
              "status": "completed",
              "text": "Working.",
              "ordinal": 4000005
            }
          ],
          "lastRuns": [
            {
              "ordinal": 4,
              "status": "interrupted"
            },
            {
              "ordinal": 5,
              "status": "cancelled"
            }
          ],
          "log": [
            {
              "step": "send",
              "at": "2026-11-13T04:16:51.525Z"
            },
            {
              "step": "live-reasoning-persisted",
              "at": "2026-11-13T04:16:52.203Z"
            },
            {
              "step": "queue",
              "at": "2026-11-13T04:16:52.204Z"
            },
            {
              "step": "edit",
              "at": "2026-11-13T04:16:53.324Z"
            },
            {
              "step": "promote",
              "at": "2026-11-13T04:16:55.340Z"
            },
            {
              "step": "post-steer-reasoning-persisted",
              "at": "2026-11-13T04:16:56.278Z"
            },
            {
              "step": "stop",
              "at": "2026-11-13T04:16:56.278Z"
            },
            {
              "step": "finished",
              "at": "2026-11-13T04:17:01.596Z"
            }
          ],
          "reasoningBeforeStop": {
            "first": {
              "reason": "Working.",
              "status": "completed"
            },
            "afterSteer": {
              "reason": "Working.",
              "status": "completed"
            }
          },
          "collapsedVisibleWorkingCount": 0,
          "collapsedVisibleStoppedCount": 1
        },
        {
          "thread": "Long history",
          "beforeCounts": {
            "runs": 1800,
            "turn_items": 34200,
            "nodes": 32400,
            "messages": 3600
          },
          "beforeRunStatuses": {
            "completed": 1800
          },
          "afterCounts": {
            "runs": 1802,
            "turn_items": 34209,
            "nodes": 32407,
            "messages": 3602
          },
          "lastUserMessages": [
            "HISTORY-SEED 1799",
            "HISTORY-SEED 1800",
            "Continue the work.",
            "Please focus on message ordering, edited."
          ],
          "persistedReasoning": [
            {
              "type": "reasoning",
              "status": "completed",
              "text": "Working.",
              "ordinal": 1801000002
            },
            {
              "type": "reasoning",
              "status": "completed",
              "text": "Working.",
              "ordinal": 1801000005
            }
          ],
          "lastRuns": [
            {
              "ordinal": 1801,
              "status": "interrupted"
            },
            {
              "ordinal": 1802,
              "status": "cancelled"
            }
          ],
          "log": [
            {
              "step": "send",
              "at": "2026-11-13T04:17:07.214Z"
            },
            {
              "step": "live-reasoning-persisted",
              "at": "2026-11-13T04:17:09.399Z"
            },
            {
              "step": "queue",
              "at": "2026-11-13T04:17:09.400Z"
            },
            {
              "step": "edit",
              "at": "2026-11-13T04:17:09.910Z"
            },
            {
              "step": "promote",
              "at": "2026-11-13T04:17:11.658Z"
            },
            {
              "step": "post-steer-reasoning-persisted",
              "at": "2026-11-13T04:17:15.099Z"
            },
            {
              "step": "stop",
              "at": "2026-11-13T04:17:20.969Z"
            },
            {
              "step": "finished",
              "at": "2026-11-13T04:17:28.899Z"
            }
          ],
          "reasoningBeforeStop": {
            "first": {
              "reason": "Working.",
              "status": "completed"
            },
            "afterSteer": {
              "reason": "Working.",
              "status": "completed"
            }
          },
          "collapsedVisibleWorkingCount": 0,
          "collapsedVisibleStoppedCount": 1
        }
      ],
      "uiTrace": {
        "commands": [
          {
            "thread": "Short history",
            "command": "message.dispatch",
            "ackMs": 41.752348,
            "projectionReadMs": [
              0.752773,
              4.949805
            ],
            "projectionSumMs": 5.702578
          },
          {
            "thread": "Short history",
            "command": "message.dispatch",
            "ackMs": 43.153106,
            "projectionReadMs": [
              0.730219,
              5.981731
            ],
            "projectionSumMs": 6.71195
          },
          {
            "thread": "Short history",
            "command": "queued-run.edit",
            "ackMs": 15.350377,
            "projectionReadMs": [
              1.911527
            ],
            "projectionSumMs": 1.911527
          },
          {
            "thread": "Short history",
            "command": "queued-message.promote-to-steer",
            "ackMs": 107.207954,
            "projectionReadMs": [
              27.89948,
              2.729651
            ],
            "projectionSumMs": 30.629131
          },
          {
            "thread": "Short history",
            "command": "thread.stop",
            "ackMs": 93.149249,
            "projectionReadMs": [
              4.291309,
              8.595214,
              32.786357,
              10.859742
            ],
            "projectionSumMs": 56.532622
          },
          {
            "thread": "Short history",
            "command": "thread.visit",
            "ackMs": 24.928957,
            "projectionReadMs": [],
            "projectionSumMs": 0
          },
          {
            "thread": "Long history",
            "command": "message.dispatch",
            "ackMs": 279.383807,
            "projectionReadMs": [
              0.679455,
              248.887737
            ],
            "projectionSumMs": 249.56719199999998
          },
          {
            "thread": "Long history",
            "command": "message.dispatch",
            "ackMs": 174.842076,
            "projectionReadMs": [
              0.526669,
              153.317465
            ],
            "projectionSumMs": 153.844134
          },
          {
            "thread": "Long history",
            "command": "queued-run.edit",
            "ackMs": 133.196237,
            "projectionReadMs": [
              109.815065
            ],
            "projectionSumMs": 109.815065
          },
          {
            "thread": "Long history",
            "command": "queued-message.promote-to-steer",
            "ackMs": 838.723205,
            "projectionReadMs": [
              733.769139,
              53.587111
            ],
            "projectionSumMs": 787.35625
          },
          {
            "thread": "Long history",
            "command": "thread.visit",
            "ackMs": 7.935087,
            "projectionReadMs": [],
            "projectionSumMs": 0
          },
          {
            "thread": "Long history",
            "command": "thread.stop",
            "ackMs": 923.100397,
            "projectionReadMs": [
              90.657095,
              699.398601,
              111.173212,
              1.382072
            ],
            "projectionSumMs": 902.61098
          },
          {
            "thread": "Long history",
            "command": "thread.visit",
            "ackMs": 487.279913,
            "projectionReadMs": [],
            "projectionSumMs": 0
          },
          {
            "thread": "Long history",
            "command": "thread.visit",
            "ackMs": 19.757465,
            "projectionReadMs": [],
            "projectionSumMs": 0
          }
        ],
        "source": "server.trace.ndjson; handler descendants inside each RPC acknowledgement window",
        "spans": [
          {
            "type": "effect-span",
            "name": "ws.rpc.orchestration.dispatchCommand",
            "traceId": "a559b5d52bc1146909600d2a3a60bf36",
            "spanId": "4a52ce840df3e345",
            "parentSpanId": "0f483f4b84889adb",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1794543411987712512",
            "endTimeUnixNano": "1794543412029464860",
            "durationMs": 41.752348,
            "attributes": {
              "rpc.transport": "websocket",
              "rpc.system": "effect-rpc",
              "rpc.method": "orchestration.dispatchCommand",
              "rpc.aggregate": "orchestrationV2",
              "orchestration_v2.command_id": "011c1a53-f955-41eb-a7b7-c6420a6be0cf",
              "orchestration_v2.command_type": "message.dispatch",
              "orchestration_v2.thread_id": "72a857b5-5743-4816-a93d-7d285e553083"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.readCanonicalProjection",
            "traceId": "a559b5d52bc1146909600d2a3a60bf36",
            "spanId": "f9b31da4e90dc2d3",
            "parentSpanId": "6ce0640d9253223a",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1794543411990389124",
            "endTimeUnixNano": "1794543411991141897",
            "durationMs": 0.752773,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.readCanonicalProjection",
            "traceId": "a559b5d52bc1146909600d2a3a60bf36",
            "spanId": "65bc535d4e6356f6",
            "parentSpanId": "7f6cde7ee18baefe",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1794543411997276646",
            "endTimeUnixNano": "1794543412002226451",
            "durationMs": 4.949805,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ws.rpc.orchestration.dispatchCommand",
            "traceId": "a559b5d52bc1146909600d2a3a60bf36",
            "spanId": "786308b85225bcd3",
            "parentSpanId": "0f483f4b84889adb",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1794543413269857310",
            "endTimeUnixNano": "1794543413313010416",
            "durationMs": 43.153106,
            "attributes": {
              "rpc.transport": "websocket",
              "rpc.system": "effect-rpc",
              "rpc.method": "orchestration.dispatchCommand",
              "rpc.aggregate": "orchestrationV2",
              "orchestration_v2.command_id": "3c3d52e5-3b5f-41ab-8dac-41e29b8d91cd",
              "orchestration_v2.command_type": "message.dispatch",
              "orchestration_v2.thread_id": "72a857b5-5743-4816-a93d-7d285e553083"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.readCanonicalProjection",
            "traceId": "a559b5d52bc1146909600d2a3a60bf36",
            "spanId": "4df93dca9dd488c5",
            "parentSpanId": "8d972e2c035732d0",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1794543413271023729",
            "endTimeUnixNano": "1794543413271753948",
            "durationMs": 0.730219,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.readCanonicalProjection",
            "traceId": "a559b5d52bc1146909600d2a3a60bf36",
            "spanId": "2adc908662cdb426",
            "parentSpanId": "82de81974e1518e0",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1794543413273914492",
            "endTimeUnixNano": "1794543413279896223",
            "durationMs": 5.981731,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ws.rpc.orchestration.dispatchCommand",
            "traceId": "a559b5d52bc1146909600d2a3a60bf36",
            "spanId": "691e0e2476d9c4cb",
            "parentSpanId": "0f483f4b84889adb",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1794543414286383747",
            "endTimeUnixNano": "1794543414301734124",
            "durationMs": 15.350377,
            "attributes": {
              "rpc.transport": "websocket",
              "rpc.system": "effect-rpc",
              "rpc.method": "orchestration.dispatchCommand",
              "rpc.aggregate": "orchestrationV2",
              "orchestration_v2.command_id": "6c3a07fa-cafe-45e7-a9a8-24bbdf57a588",
              "orchestration_v2.command_type": "queued-run.edit",
              "orchestration_v2.thread_id": "72a857b5-5743-4816-a93d-7d285e553083"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.readCanonicalProjection",
            "traceId": "a559b5d52bc1146909600d2a3a60bf36",
            "spanId": "639cc1f588559e5b",
            "parentSpanId": "e208b1c3d8ca397d",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1794543414288313747",
            "endTimeUnixNano": "1794543414290225274",
            "durationMs": 1.911527,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ws.rpc.orchestration.dispatchCommand",
            "traceId": "a559b5d52bc1146909600d2a3a60bf36",
            "spanId": "880f1d0b972af1b0",
            "parentSpanId": "0f483f4b84889adb",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1794543415502003164",
            "endTimeUnixNano": "1794543415609211118",
            "durationMs": 107.207954,
            "attributes": {
              "rpc.transport": "websocket",
              "rpc.system": "effect-rpc",
              "rpc.method": "orchestration.dispatchCommand",
              "rpc.aggregate": "orchestrationV2",
              "orchestration_v2.command_id": "f2270ca8-bdd0-411b-869d-a28e6ff3f54c",
              "orchestration_v2.command_type": "queued-message.promote-to-steer",
              "orchestration_v2.thread_id": "72a857b5-5743-4816-a93d-7d285e553083"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.readCanonicalProjection",
            "traceId": "a559b5d52bc1146909600d2a3a60bf36",
            "spanId": "e173765250fd01b2",
            "parentSpanId": "49c5de36bcc719e0",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1794543415511463241",
            "endTimeUnixNano": "1794543415539362721",
            "durationMs": 27.89948,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.readCanonicalProjection",
            "traceId": "a559b5d52bc1146909600d2a3a60bf36",
            "spanId": "7f25a6db31894b18",
            "parentSpanId": "23842e86dcb2fa11",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1794543415559386185",
            "endTimeUnixNano": "1794543415562115836",
            "durationMs": 2.729651,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ws.rpc.orchestration.dispatchCommand",
            "traceId": "a559b5d52bc1146909600d2a3a60bf36",
            "spanId": "9eb255164dfcd08e",
            "parentSpanId": "0f483f4b84889adb",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1794543416956926238",
            "endTimeUnixNano": "1794543417050075487",
            "durationMs": 93.149249,
            "attributes": {
              "rpc.transport": "websocket",
              "rpc.system": "effect-rpc",
              "rpc.method": "orchestration.dispatchCommand",
              "rpc.aggregate": "orchestrationV2",
              "orchestration_v2.command_id": "601d4433-9184-49fa-9306-95b771bd5fda",
              "orchestration_v2.command_type": "thread.stop",
              "orchestration_v2.thread_id": "72a857b5-5743-4816-a93d-7d285e553083"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.readCanonicalProjection",
            "traceId": "a559b5d52bc1146909600d2a3a60bf36",
            "spanId": "8e464461860cb80a",
            "parentSpanId": "81cbc324268b5809",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1794543416960852244",
            "endTimeUnixNano": "1794543416965143553",
            "durationMs": 4.291309,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.readCanonicalProjection",
            "traceId": "a559b5d52bc1146909600d2a3a60bf36",
            "spanId": "0320314f5827ba98",
            "parentSpanId": "331c910c826cdf2c",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1794543416966636725",
            "endTimeUnixNano": "1794543416975231939",
            "durationMs": 8.595214,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.readCanonicalProjection",
            "traceId": "a559b5d52bc1146909600d2a3a60bf36",
            "spanId": "f9b13db74729cf89",
            "parentSpanId": "47badebc99700204",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1794543416978926801",
            "endTimeUnixNano": "1794543417011713158",
            "durationMs": 32.786357,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.readCanonicalProjection",
            "traceId": "a559b5d52bc1146909600d2a3a60bf36",
            "spanId": "a51a72818e3ad998",
            "parentSpanId": "a8519a52c2c38697",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1794543417016151035",
            "endTimeUnixNano": "1794543417027010777",
            "durationMs": 10.859742,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ws.rpc.orchestration.dispatchCommand",
            "traceId": "a559b5d52bc1146909600d2a3a60bf36",
            "spanId": "c7cb26b6050e4871",
            "parentSpanId": "0f483f4b84889adb",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1794543417766902493",
            "endTimeUnixNano": "1794543417791831450",
            "durationMs": 24.928957,
            "attributes": {
              "rpc.transport": "websocket",
              "rpc.system": "effect-rpc",
              "rpc.method": "orchestration.dispatchCommand",
              "rpc.aggregate": "orchestrationV2",
              "orchestration_v2.command_id": "53aa32c5-f8eb-45a6-841b-57c6004013b9",
              "orchestration_v2.command_type": "thread.visit",
              "orchestration_v2.thread_id": "72a857b5-5743-4816-a93d-7d285e553083"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ws.rpc.orchestration.dispatchCommand",
            "traceId": "a559b5d52bc1146909600d2a3a60bf36",
            "spanId": "c8a74eb1ac34d25d",
            "parentSpanId": "9bf1b12c1a016714",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1794543427611450944",
            "endTimeUnixNano": "1794543427890834751",
            "durationMs": 279.383807,
            "attributes": {
              "rpc.transport": "websocket",
              "rpc.system": "effect-rpc",
              "rpc.method": "orchestration.dispatchCommand",
              "rpc.aggregate": "orchestrationV2",
              "orchestration_v2.command_id": "5736ced8-19b8-4421-a41e-d897bf34eddc",
              "orchestration_v2.command_type": "message.dispatch",
              "orchestration_v2.thread_id": "80f2feac-bb9e-45f2-9454-9d6c0bcc0696"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.readCanonicalProjection",
            "traceId": "a559b5d52bc1146909600d2a3a60bf36",
            "spanId": "77bfcc5b71a9665a",
            "parentSpanId": "c2ea0875f868c58f",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1794543427612658709",
            "endTimeUnixNano": "1794543427613338164",
            "durationMs": 0.679455,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.readCanonicalProjection",
            "traceId": "a559b5d52bc1146909600d2a3a60bf36",
            "spanId": "23541a7672d12000",
            "parentSpanId": "b335fc6033e9fab0",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1794543427616231852",
            "endTimeUnixNano": "1794543427865119589",
            "durationMs": 248.887737,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ws.rpc.orchestration.dispatchCommand",
            "traceId": "a559b5d52bc1146909600d2a3a60bf36",
            "spanId": "7ffc6192091ced4f",
            "parentSpanId": "9bf1b12c1a016714",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1794543429671743767",
            "endTimeUnixNano": "1794543429846585843",
            "durationMs": 174.842076,
            "attributes": {
              "rpc.transport": "websocket",
              "rpc.system": "effect-rpc",
              "rpc.method": "orchestration.dispatchCommand",
              "rpc.aggregate": "orchestrationV2",
              "orchestration_v2.command_id": "7b6fa0da-ee5a-4e52-8369-21d239f001a4",
              "orchestration_v2.command_type": "message.dispatch",
              "orchestration_v2.thread_id": "80f2feac-bb9e-45f2-9454-9d6c0bcc0696"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.readCanonicalProjection",
            "traceId": "a559b5d52bc1146909600d2a3a60bf36",
            "spanId": "f7e16f1bc7c36ad6",
            "parentSpanId": "9d4c3983de79b2da",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1794543429672907861",
            "endTimeUnixNano": "1794543429673434530",
            "durationMs": 0.526669,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.readCanonicalProjection",
            "traceId": "a559b5d52bc1146909600d2a3a60bf36",
            "spanId": "b126ee6adaac22c9",
            "parentSpanId": "d8e47b5df91aae51",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1794543429675281053",
            "endTimeUnixNano": "1794543429828598518",
            "durationMs": 153.317465,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ws.rpc.orchestration.dispatchCommand",
            "traceId": "a559b5d52bc1146909600d2a3a60bf36",
            "spanId": "07ca77a83c1eadbe",
            "parentSpanId": "9bf1b12c1a016714",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1794543430465463015",
            "endTimeUnixNano": "1794543430598659252",
            "durationMs": 133.196237,
            "attributes": {
              "rpc.transport": "websocket",
              "rpc.system": "effect-rpc",
              "rpc.method": "orchestration.dispatchCommand",
              "rpc.aggregate": "orchestrationV2",
              "orchestration_v2.command_id": "40fe28ba-e52b-496d-9f8b-cd1c2be191db",
              "orchestration_v2.command_type": "queued-run.edit",
              "orchestration_v2.thread_id": "80f2feac-bb9e-45f2-9454-9d6c0bcc0696"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.readCanonicalProjection",
            "traceId": "a559b5d52bc1146909600d2a3a60bf36",
            "spanId": "567867da016a18f7",
            "parentSpanId": "323f28d969c232b6",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1794543430480270212",
            "endTimeUnixNano": "1794543430590085277",
            "durationMs": 109.815065,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ws.rpc.orchestration.dispatchCommand",
            "traceId": "a559b5d52bc1146909600d2a3a60bf36",
            "spanId": "a5ccdfe8a8a5d8bd",
            "parentSpanId": "9bf1b12c1a016714",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1794543431727522592",
            "endTimeUnixNano": "1794543432566245797",
            "durationMs": 838.723205,
            "attributes": {
              "rpc.transport": "websocket",
              "rpc.system": "effect-rpc",
              "rpc.method": "orchestration.dispatchCommand",
              "rpc.aggregate": "orchestrationV2",
              "orchestration_v2.command_id": "52f53813-1a4f-4856-92c6-dd78fdf0e372",
              "orchestration_v2.command_type": "queued-message.promote-to-steer",
              "orchestration_v2.thread_id": "80f2feac-bb9e-45f2-9454-9d6c0bcc0696"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.readCanonicalProjection",
            "traceId": "a559b5d52bc1146909600d2a3a60bf36",
            "spanId": "61fbbeed707c49e3",
            "parentSpanId": "62dca733ac57e620",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1794543431730003507",
            "endTimeUnixNano": "1794543432463772646",
            "durationMs": 733.769139,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.readCanonicalProjection",
            "traceId": "a559b5d52bc1146909600d2a3a60bf36",
            "spanId": "1ce8937c217418f2",
            "parentSpanId": "f39c38288476b862",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1794543432471065297",
            "endTimeUnixNano": "1794543432524652408",
            "durationMs": 53.587111,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ws.rpc.orchestration.dispatchCommand",
            "traceId": "a559b5d52bc1146909600d2a3a60bf36",
            "spanId": "d43f5df1d462e457",
            "parentSpanId": "9bf1b12c1a016714",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1794543435833747940",
            "endTimeUnixNano": "1794543435841683027",
            "durationMs": 7.935087,
            "attributes": {
              "rpc.transport": "websocket",
              "rpc.system": "effect-rpc",
              "rpc.method": "orchestration.dispatchCommand",
              "rpc.aggregate": "orchestrationV2",
              "orchestration_v2.command_id": "78a69ca4-98ae-44e1-aef9-61607843558e",
              "orchestration_v2.command_type": "thread.visit",
              "orchestration_v2.thread_id": "80f2feac-bb9e-45f2-9454-9d6c0bcc0696"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ws.rpc.orchestration.dispatchCommand",
            "traceId": "a559b5d52bc1146909600d2a3a60bf36",
            "spanId": "73b9c302a986ca5d",
            "parentSpanId": "9bf1b12c1a016714",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1794543441038289903",
            "endTimeUnixNano": "1794543441961390300",
            "durationMs": 923.100397,
            "attributes": {
              "rpc.transport": "websocket",
              "rpc.system": "effect-rpc",
              "rpc.method": "orchestration.dispatchCommand",
              "rpc.aggregate": "orchestrationV2",
              "orchestration_v2.command_id": "b65d3cac-604f-4ce2-b2ca-4e5856987e6f",
              "orchestration_v2.command_type": "thread.stop",
              "orchestration_v2.thread_id": "80f2feac-bb9e-45f2-9454-9d6c0bcc0696"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.readCanonicalProjection",
            "traceId": "a559b5d52bc1146909600d2a3a60bf36",
            "spanId": "d90db40521eea34f",
            "parentSpanId": "757298b48b60bbb8",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1794543441042685880",
            "endTimeUnixNano": "1794543441133342975",
            "durationMs": 90.657095,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.readCanonicalProjection",
            "traceId": "a559b5d52bc1146909600d2a3a60bf36",
            "spanId": "89d323629c11db8f",
            "parentSpanId": "a14f22cb073f279b",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1794543441134845412",
            "endTimeUnixNano": "1794543441834244013",
            "durationMs": 699.398601,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.readCanonicalProjection",
            "traceId": "a559b5d52bc1146909600d2a3a60bf36",
            "spanId": "19bc5740528304db",
            "parentSpanId": "0ba1292051a8f7b2",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1794543441839955487",
            "endTimeUnixNano": "1794543441951128699",
            "durationMs": 111.173212,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.readCanonicalProjection",
            "traceId": "a559b5d52bc1146909600d2a3a60bf36",
            "spanId": "f313f16b2eb12379",
            "parentSpanId": "3c34eaee75fd0c07",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1794543441955252626",
            "endTimeUnixNano": "1794543441956634698",
            "durationMs": 1.382072,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ws.rpc.orchestration.dispatchCommand",
            "traceId": "a559b5d52bc1146909600d2a3a60bf36",
            "spanId": "ffaf7fc991a5ebc2",
            "parentSpanId": "9bf1b12c1a016714",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1794543442324603262",
            "endTimeUnixNano": "1794543442811883175",
            "durationMs": 487.279913,
            "attributes": {
              "rpc.transport": "websocket",
              "rpc.system": "effect-rpc",
              "rpc.method": "orchestration.dispatchCommand",
              "rpc.aggregate": "orchestrationV2",
              "orchestration_v2.command_id": "24234c8b-de92-4cc3-8aa7-e345d095c92f",
              "orchestration_v2.command_type": "thread.visit",
              "orchestration_v2.thread_id": "80f2feac-bb9e-45f2-9454-9d6c0bcc0696"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ws.rpc.orchestration.dispatchCommand",
            "traceId": "a559b5d52bc1146909600d2a3a60bf36",
            "spanId": "10df63bed74c61d9",
            "parentSpanId": "9bf1b12c1a016714",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1794543442856145011",
            "endTimeUnixNano": "1794543442875902476",
            "durationMs": 19.757465,
            "attributes": {
              "rpc.transport": "websocket",
              "rpc.system": "effect-rpc",
              "rpc.method": "orchestration.dispatchCommand",
              "rpc.aggregate": "orchestrationV2",
              "orchestration_v2.command_id": "aaaa5d76-4f77-4da3-b153-aeb39b56d460",
              "orchestration_v2.command_type": "thread.visit",
              "orchestration_v2.thread_id": "80f2feac-bb9e-45f2-9454-9d6c0bcc0696"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          }
        ]
      },
      "filterReadDiagnostic": {
        "historyItems": 34206,
        "results": [
          {
            "label": "conversation-types",
            "count": 3602,
            "idsMatch": true,
            "durationMs": 99.81286,
            "semanticHash": "5fc440d8a2b3cc9a8d3e8d760f26702c91ddf23a64265a1a3207718989e0891f",
            "plans": [
              {
                "query": "\n                SELECT payload_json\n                FROM orchestration_v2_projection_turn_items\n                INDEXED BY orchestration_v2_projection_turn_items_conversation_idx\n                WHERE thread_id = ? AND type NOT IN ('command_execution', 'reasoning', 'file_change', 'file_search', 'web_search', 'dynamic_tool')\n                  \n                  AND type IN (SELECT value FROM json_each(?))\n                  \n                  \n                  \n                  \n                ORDER BY ordinal ASC, turn_item_id ASC\n              ",
                "plan": [
                  {
                    "id": 4,
                    "parent": 0,
                    "notused": 62,
                    "detail": "SEARCH orchestration_v2_projection_turn_items USING INDEX orchestration_v2_projection_turn_items_conversation_idx (thread_id=?)"
                  },
                  {
                    "id": 14,
                    "parent": 0,
                    "notused": 0,
                    "detail": "LIST SUBQUERY 1"
                  },
                  {
                    "id": 17,
                    "parent": 14,
                    "notused": 0,
                    "detail": "SCAN json_each VIRTUAL TABLE INDEX 1:"
                  },
                  {
                    "id": 26,
                    "parent": 14,
                    "notused": 0,
                    "detail": "CREATE BLOOM FILTER"
                  },
                  {
                    "id": 45,
                    "parent": 0,
                    "notused": 0,
                    "detail": "USE TEMP B-TREE FOR LAST TERM OF ORDER BY"
                  }
                ]
              }
            ]
          },
          {
            "label": "tool-type",
            "count": 28802,
            "idsMatch": true,
            "durationMs": 1043.1724439999998,
            "semanticHash": "3b7ad64659f3b895399b303e8abceedbedbc3f1c893e943a9ea7a876f34ce030",
            "plans": [
              {
                "query": "\n                SELECT payload_json\n                FROM orchestration_v2_projection_turn_items\n                WHERE thread_id = ?\n                  \n                  AND type IN (SELECT value FROM json_each(?))\n                  \n                  \n                  \n                  \n                ORDER BY ordinal ASC, turn_item_id ASC\n              ",
                "plan": [
                  {
                    "id": 4,
                    "parent": 0,
                    "notused": 62,
                    "detail": "SEARCH orchestration_v2_projection_turn_items USING INDEX orchestration_v2_projection_turn_items_thread_ordinal_idx (thread_id=?)"
                  },
                  {
                    "id": 14,
                    "parent": 0,
                    "notused": 0,
                    "detail": "LIST SUBQUERY 1"
                  },
                  {
                    "id": 17,
                    "parent": 14,
                    "notused": 0,
                    "detail": "SCAN json_each VIRTUAL TABLE INDEX 1:"
                  },
                  {
                    "id": 26,
                    "parent": 14,
                    "notused": 0,
                    "detail": "CREATE BLOOM FILTER"
                  }
                ]
              }
            ]
          },
          {
            "label": "tool-type-completed",
            "count": 28800,
            "idsMatch": true,
            "durationMs": 511.154411,
            "semanticHash": "c1a74eff6e5d39e570883973a2c6931646b3cd8bf3d275fab6afb206a75c8136",
            "plans": [
              {
                "query": "\n                SELECT payload_json\n                FROM orchestration_v2_projection_turn_items\n                WHERE thread_id = ?\n                  \n                  AND type IN (SELECT value FROM json_each(?))\n                  AND status IN (SELECT value FROM json_each(?))\n                  \n                  \n                  \n                ORDER BY ordinal ASC, turn_item_id ASC\n              ",
                "plan": [
                  {
                    "id": 4,
                    "parent": 0,
                    "notused": 62,
                    "detail": "SEARCH orchestration_v2_projection_turn_items USING INDEX orchestration_v2_projection_turn_items_thread_ordinal_idx (thread_id=?)"
                  },
                  {
                    "id": 14,
                    "parent": 0,
                    "notused": 0,
                    "detail": "LIST SUBQUERY 1"
                  },
                  {
                    "id": 17,
                    "parent": 14,
                    "notused": 0,
                    "detail": "SCAN json_each VIRTUAL TABLE INDEX 1:"
                  },
                  {
                    "id": 26,
                    "parent": 14,
                    "notused": 0,
                    "detail": "CREATE BLOOM FILTER"
                  },
                  {
                    "id": 36,
                    "parent": 0,
                    "notused": 0,
                    "detail": "LIST SUBQUERY 2"
                  },
                  {
                    "id": 39,
                    "parent": 36,
                    "notused": 0,
                    "detail": "SCAN json_each VIRTUAL TABLE INDEX 1:"
                  },
                  {
                    "id": 48,
                    "parent": 36,
                    "notused": 0,
                    "detail": "CREATE BLOOM FILTER"
                  }
                ]
              }
            ]
          },
          {
            "label": "active-statuses",
            "count": 1,
            "idsMatch": true,
            "durationMs": 36.932244999999966,
            "semanticHash": "ad0f21eda2f75355add5981302dd798f04e010ac62509839b3a54e92aa5ea71d",
            "plans": [
              {
                "query": "\n                SELECT payload_json\n                FROM orchestration_v2_projection_turn_items\n                WHERE thread_id = ?\n                  \n                  AND type IN (SELECT value FROM json_each(?))\n                  AND status IN (SELECT value FROM json_each(?))\n                  \n                  \n                  \n                ORDER BY ordinal ASC, turn_item_id ASC\n              ",
                "plan": [
                  {
                    "id": 4,
                    "parent": 0,
                    "notused": 62,
                    "detail": "SEARCH orchestration_v2_projection_turn_items USING INDEX orchestration_v2_projection_turn_items_thread_ordinal_idx (thread_id=?)"
                  },
                  {
                    "id": 14,
                    "parent": 0,
                    "notused": 0,
                    "detail": "LIST SUBQUERY 1"
                  },
                  {
                    "id": 17,
                    "parent": 14,
                    "notused": 0,
                    "detail": "SCAN json_each VIRTUAL TABLE INDEX 1:"
                  },
                  {
                    "id": 26,
                    "parent": 14,
                    "notused": 0,
                    "detail": "CREATE BLOOM FILTER"
                  },
                  {
                    "id": 36,
                    "parent": 0,
                    "notused": 0,
                    "detail": "LIST SUBQUERY 2"
                  },
                  {
                    "id": 39,
                    "parent": 36,
                    "notused": 0,
                    "detail": "SCAN json_each VIRTUAL TABLE INDEX 1:"
                  },
                  {
                    "id": 48,
                    "parent": 36,
                    "notused": 0,
                    "detail": "CREATE BLOOM FILTER"
                  }
                ]
              }
            ]
          },
          {
            "label": "single-run",
            "count": 2,
            "idsMatch": true,
            "durationMs": 28.5129909999996,
            "semanticHash": "ccf9fd8d6c9527882112832c22a2b9a9208ea0a5c7d6cac459c97a4e1b9a3892",
            "plans": [
              {
                "query": "\n                SELECT payload_json\n                FROM orchestration_v2_projection_turn_items\n                WHERE thread_id = ?\n                  \n                  AND type IN (SELECT value FROM json_each(?))\n                  \n                  AND run_id = ?\n                  \n                  \n                ORDER BY ordinal ASC, turn_item_id ASC\n              ",
                "plan": [
                  {
                    "id": 4,
                    "parent": 0,
                    "notused": 62,
                    "detail": "SEARCH orchestration_v2_projection_turn_items USING INDEX orchestration_v2_projection_turn_items_thread_ordinal_idx (thread_id=?)"
                  },
                  {
                    "id": 14,
                    "parent": 0,
                    "notused": 0,
                    "detail": "LIST SUBQUERY 1"
                  },
                  {
                    "id": 17,
                    "parent": 14,
                    "notused": 0,
                    "detail": "SCAN json_each VIRTUAL TABLE INDEX 1:"
                  },
                  {
                    "id": 26,
                    "parent": 14,
                    "notused": 0,
                    "detail": "CREATE BLOOM FILTER"
                  }
                ]
              }
            ]
          },
          {
            "label": "multiple-runs-with-null",
            "count": 21,
            "idsMatch": true,
            "durationMs": 40.30069399999957,
            "semanticHash": "4c965ad54b55e2ccb8477ea9a809db90067611da5b78e42705c160ed23194409",
            "plans": [
              {
                "query": "\n                SELECT payload_json\n                FROM orchestration_v2_projection_turn_items\n                WHERE thread_id = ?\n                  \n                  AND type IN (SELECT value FROM json_each(?))\n                  \n                  \n                  \n                  AND (run_id IN (SELECT value FROM json_each(?)) OR (? = 1 AND run_id IS NULL))\n                ORDER BY ordinal ASC, turn_item_id ASC\n              ",
                "plan": [
                  {
                    "id": 4,
                    "parent": 0,
                    "notused": 62,
                    "detail": "SEARCH orchestration_v2_projection_turn_items USING INDEX orchestration_v2_projection_turn_items_thread_ordinal_idx (thread_id=?)"
                  },
                  {
                    "id": 14,
                    "parent": 0,
                    "notused": 0,
                    "detail": "LIST SUBQUERY 1"
                  },
                  {
                    "id": 17,
                    "parent": 14,
                    "notused": 0,
                    "detail": "SCAN json_each VIRTUAL TABLE INDEX 1:"
                  },
                  {
                    "id": 26,
                    "parent": 14,
                    "notused": 0,
                    "detail": "CREATE BLOOM FILTER"
                  },
                  {
                    "id": 39,
                    "parent": 0,
                    "notused": 0,
                    "detail": "LIST SUBQUERY 2"
                  },
                  {
                    "id": 42,
                    "parent": 39,
                    "notused": 0,
                    "detail": "SCAN json_each VIRTUAL TABLE INDEX 1:"
                  },
                  {
                    "id": 51,
                    "parent": 39,
                    "notused": 0,
                    "detail": "CREATE BLOOM FILTER"
                  }
                ]
              }
            ]
          },
          {
            "label": "nodes",
            "count": 18,
            "idsMatch": true,
            "durationMs": 29.73625600000014,
            "semanticHash": "a7ce5b2adaf10e7e451514c2770bc2a20ad8e9b73499df2fc8637ef656fac26c",
            "plans": [
              {
                "query": "\n                SELECT payload_json\n                FROM orchestration_v2_projection_turn_items\n                WHERE thread_id = ?\n                  \n                  AND type IN (SELECT value FROM json_each(?))\n                  \n                  \n                  AND node_id IN (SELECT value FROM json_each(?))\n                  \n                ORDER BY ordinal ASC, turn_item_id ASC\n              ",
                "plan": [
                  {
                    "id": 4,
                    "parent": 0,
                    "notused": 62,
                    "detail": "SEARCH orchestration_v2_projection_turn_items USING INDEX orchestration_v2_projection_turn_items_thread_ordinal_idx (thread_id=?)"
                  },
                  {
                    "id": 14,
                    "parent": 0,
                    "notused": 0,
                    "detail": "LIST SUBQUERY 1"
                  },
                  {
                    "id": 17,
                    "parent": 14,
                    "notused": 0,
                    "detail": "SCAN json_each VIRTUAL TABLE INDEX 1:"
                  },
                  {
                    "id": 26,
                    "parent": 14,
                    "notused": 0,
                    "detail": "CREATE BLOOM FILTER"
                  },
                  {
                    "id": 36,
                    "parent": 0,
                    "notused": 0,
                    "detail": "LIST SUBQUERY 2"
                  },
                  {
                    "id": 39,
                    "parent": 36,
                    "notused": 0,
                    "detail": "SCAN json_each VIRTUAL TABLE INDEX 1:"
                  },
                  {
                    "id": 48,
                    "parent": 36,
                    "notused": 0,
                    "detail": "CREATE BLOOM FILTER"
                  }
                ]
              }
            ]
          },
          {
            "label": "no-matching-request",
            "count": 0,
            "idsMatch": true,
            "durationMs": 1.8183609999996406,
            "semanticHash": "4f53cda18c2baa0c0354bb5f9a3ecbe5ed12ab4d8e11ba873c2f11161202b945",
            "plans": [
              {
                "query": "\n                SELECT payload_json\n                FROM orchestration_v2_projection_turn_items\n                INDEXED BY orchestration_v2_projection_turn_items_conversation_idx\n                WHERE thread_id = ? AND type NOT IN ('command_execution', 'reasoning', 'file_change', 'file_search', 'web_search', 'dynamic_tool')\n                  AND json_extract(payload_json, '$.requestId') IN (SELECT value FROM json_each(?))\n                  AND type IN (SELECT value FROM json_each(?))\n                  \n                  \n                  \n                  \n                ORDER BY ordinal ASC, turn_item_id ASC\n              ",
                "plan": [
                  {
                    "id": 4,
                    "parent": 0,
                    "notused": 62,
                    "detail": "SEARCH orchestration_v2_projection_turn_items USING INDEX orchestration_v2_projection_turn_items_conversation_idx (thread_id=?)"
                  },
                  {
                    "id": 14,
                    "parent": 0,
                    "notused": 0,
                    "detail": "LIST SUBQUERY 2"
                  },
                  {
                    "id": 17,
                    "parent": 14,
                    "notused": 0,
                    "detail": "SCAN json_each VIRTUAL TABLE INDEX 1:"
                  },
                  {
                    "id": 26,
                    "parent": 14,
                    "notused": 0,
                    "detail": "CREATE BLOOM FILTER"
                  },
                  {
                    "id": 36,
                    "parent": 0,
                    "notused": 0,
                    "detail": "LIST SUBQUERY 1"
                  },
                  {
                    "id": 39,
                    "parent": 36,
                    "notused": 0,
                    "detail": "SCAN json_each VIRTUAL TABLE INDEX 1:"
                  },
                  {
                    "id": 48,
                    "parent": 36,
                    "notused": 0,
                    "detail": "CREATE BLOOM FILTER"
                  },
                  {
                    "id": 70,
                    "parent": 0,
                    "notused": 0,
                    "detail": "USE TEMP B-TREE FOR LAST TERM OF ORDER BY"
                  }
                ]
              }
            ]
          },
          {
            "label": "empty-types",
            "count": 0,
            "idsMatch": true,
            "durationMs": 0.6819099999993341,
            "semanticHash": "4f53cda18c2baa0c0354bb5f9a3ecbe5ed12ab4d8e11ba873c2f11161202b945",
            "plans": []
          },
          {
            "label": "all-types",
            "count": 34206,
            "idsMatch": true,
            "durationMs": 529.10131,
            "semanticHash": "987a65bae2d5343c686d52257c0616d9017fa7d1a991f539bd137511c264db8a",
            "plans": [
              {
                "query": "\n                SELECT payload_json\n                FROM orchestration_v2_projection_turn_items\n                WHERE thread_id = ?\n                  \n                  AND type IN (SELECT value FROM json_each(?))\n                  \n                  \n                  \n                  \n                ORDER BY ordinal ASC, turn_item_id ASC\n              ",
                "plan": [
                  {
                    "id": 4,
                    "parent": 0,
                    "notused": 62,
                    "detail": "SEARCH orchestration_v2_projection_turn_items USING INDEX orchestration_v2_projection_turn_items_thread_ordinal_idx (thread_id=?)"
                  },
                  {
                    "id": 14,
                    "parent": 0,
                    "notused": 0,
                    "detail": "LIST SUBQUERY 1"
                  },
                  {
                    "id": 17,
                    "parent": 14,
                    "notused": 0,
                    "detail": "SCAN json_each VIRTUAL TABLE INDEX 1:"
                  },
                  {
                    "id": 26,
                    "parent": 14,
                    "notused": 0,
                    "detail": "CREATE BLOOM FILTER"
                  }
                ]
              }
            ]
          }
        ]
      },
      "cleanWarmTimings": {
        "measurements": {
          "source": "Real persistent WebSocket RPC, 3 warm repetitions, provider latches excluded from acknowledgement timing",
          "measurements": [
            {
              "trial": 1,
              "command": "message.dispatch",
              "commandId": "2f63d2e9-20d2-4e7a-bbaf-2108e4efed0e",
              "roundTripMs": 335.34184700000014
            },
            {
              "trial": 1,
              "command": "message.dispatch",
              "commandId": "4974ab6a-1519-4fdb-b792-545cd8cb67c0",
              "roundTripMs": 181.358479
            },
            {
              "trial": 1,
              "command": "queued-run.edit",
              "commandId": "17df6dac-b31c-43a2-8d54-c48cec517df7",
              "roundTripMs": 137.55282799999986
            },
            {
              "trial": 1,
              "command": "queued-message.promote-to-steer",
              "commandId": "6b5e89b4-9f81-4301-9c8c-027e35b9a2b3",
              "roundTripMs": 1008.9178129999996
            },
            {
              "trial": 1,
              "command": "run.interrupt",
              "commandId": "c0b6b0a6-1cba-4402-be39-3bb9be919cfd",
              "roundTripMs": 930.8102799999997
            },
            {
              "trial": 2,
              "command": "message.dispatch",
              "commandId": "72d36dda-3aa8-4678-96e9-9fd960527489",
              "roundTripMs": 1004.4057119999998
            },
            {
              "trial": 2,
              "command": "message.dispatch",
              "commandId": "7e295ee1-6df2-4080-81e4-699816916c37",
              "roundTripMs": 168.9073069999995
            },
            {
              "trial": 2,
              "command": "queued-run.edit",
              "commandId": "05face63-c8cc-45d0-8bc8-31dffa364f48",
              "roundTripMs": 77.03409699999975
            },
            {
              "trial": 2,
              "command": "queued-message.promote-to-steer",
              "commandId": "6dc33905-2caa-4d4f-92ed-139cf65a16a4",
              "roundTripMs": 793.6606549999997
            },
            {
              "trial": 2,
              "command": "run.interrupt",
              "commandId": "c0bb160a-6542-4d59-a1ce-09f0bdc1e664",
              "roundTripMs": 952.0558000000001
            },
            {
              "trial": 3,
              "command": "message.dispatch",
              "commandId": "ae247478-b4a3-4971-8bcb-64748aaff41b",
              "roundTripMs": 1485.9907839999996
            },
            {
              "trial": 3,
              "command": "message.dispatch",
              "commandId": "854ab427-4440-47d0-b5ed-a41d5385704e",
              "roundTripMs": 144.84626599999865
            },
            {
              "trial": 3,
              "command": "queued-run.edit",
              "commandId": "9ff18308-5bfd-45e0-b009-cce2fb312608",
              "roundTripMs": 72.66786200000024
            },
            {
              "trial": 3,
              "command": "queued-message.promote-to-steer",
              "commandId": "a78ffec0-1ce1-422d-be6a-19d14d73e234",
              "roundTripMs": 579.5181099999991
            },
            {
              "trial": 3,
              "command": "run.interrupt",
              "commandId": "4f6134a2-ef39-4c2c-b893-4ad7a9a89968",
              "roundTripMs": 708.8685509999996
            }
          ]
        },
        "serverSpans": [
          {
            "commandId": "2f63d2e9-20d2-4e7a-bbaf-2108e4efed0e",
            "command": "message.dispatch",
            "serverAckMs": 318.596105,
            "projectionReadMs": [
              0.992524,
              280.583829
            ],
            "projectionSumMs": 281.576353
          },
          {
            "commandId": "4974ab6a-1519-4fdb-b792-545cd8cb67c0",
            "command": "message.dispatch",
            "serverAckMs": 179.074241,
            "projectionReadMs": [
              0.645953,
              163.108694
            ],
            "projectionSumMs": 163.754647
          },
          {
            "commandId": "17df6dac-b31c-43a2-8d54-c48cec517df7",
            "command": "queued-run.edit",
            "serverAckMs": 134.313238,
            "projectionReadMs": [
              116.789426
            ],
            "projectionSumMs": 116.789426
          },
          {
            "commandId": "6b5e89b4-9f81-4301-9c8c-027e35b9a2b3",
            "command": "queued-message.promote-to-steer",
            "serverAckMs": 1005.33567,
            "projectionReadMs": [
              950.455084,
              28.508218
            ],
            "projectionSumMs": 978.9633020000001
          },
          {
            "commandId": "c0b6b0a6-1cba-4402-be39-3bb9be919cfd",
            "command": "run.interrupt",
            "serverAckMs": 928.677135,
            "projectionReadMs": [
              801.922265,
              113.68533
            ],
            "projectionSumMs": 915.6075950000001
          },
          {
            "commandId": "72d36dda-3aa8-4678-96e9-9fd960527489",
            "command": "message.dispatch",
            "serverAckMs": 1000.79798,
            "projectionReadMs": [
              0.391114,
              364.114768
            ],
            "projectionSumMs": 364.50588200000004
          },
          {
            "commandId": "7e295ee1-6df2-4080-81e4-699816916c37",
            "command": "message.dispatch",
            "serverAckMs": 165.401136,
            "projectionReadMs": [
              1.038198,
              149.180401
            ],
            "projectionSumMs": 150.21859899999998
          },
          {
            "commandId": "05face63-c8cc-45d0-8bc8-31dffa364f48",
            "command": "queued-run.edit",
            "serverAckMs": 75.129653,
            "projectionReadMs": [
              69.707486
            ],
            "projectionSumMs": 69.707486
          },
          {
            "commandId": "6dc33905-2caa-4d4f-92ed-139cf65a16a4",
            "command": "queued-message.promote-to-steer",
            "serverAckMs": 781.866067,
            "projectionReadMs": [
              709.527594,
              36.451897
            ],
            "projectionSumMs": 745.979491
          },
          {
            "commandId": "c0bb160a-6542-4d59-a1ce-09f0bdc1e664",
            "command": "run.interrupt",
            "serverAckMs": 949.00855,
            "projectionReadMs": [
              776.957924,
              151.153043
            ],
            "projectionSumMs": 928.1109670000001
          },
          {
            "commandId": "ae247478-b4a3-4971-8bcb-64748aaff41b",
            "command": "message.dispatch",
            "serverAckMs": 1463.96315,
            "projectionReadMs": [
              0.81058,
              331.439266
            ],
            "projectionSumMs": 332.249846
          },
          {
            "commandId": "854ab427-4440-47d0-b5ed-a41d5385704e",
            "command": "message.dispatch",
            "serverAckMs": 141.209009,
            "projectionReadMs": [
              1.074326,
              125.980546
            ],
            "projectionSumMs": 127.054872
          },
          {
            "commandId": "9ff18308-5bfd-45e0-b009-cce2fb312608",
            "command": "queued-run.edit",
            "serverAckMs": 70.993729,
            "projectionReadMs": [
              65.125075
            ],
            "projectionSumMs": 65.125075
          },
          {
            "commandId": "a78ffec0-1ce1-422d-be6a-19d14d73e234",
            "command": "queued-message.promote-to-steer",
            "serverAckMs": 576.844513,
            "projectionReadMs": [
              528.421115,
              28.864427
            ],
            "projectionSumMs": 557.285542
          },
          {
            "commandId": "4f6134a2-ef39-4c2c-b893-4ad7a9a89968",
            "command": "run.interrupt",
            "serverAckMs": 707.259221,
            "projectionReadMs": [
              596.441675,
              99.452715
            ],
            "projectionSumMs": 695.89439
          }
        ],
        "summary": {
          "message.dispatch": {
            "samples": 6,
            "medianServerAckMs": 248.835173,
            "medianProjectionMs": 222.6655
          },
          "queued-message.promote-to-steer": {
            "samples": 3,
            "medianServerAckMs": 781.866067,
            "medianProjectionMs": 745.979491
          },
          "queued-run.edit": {
            "samples": 3,
            "medianServerAckMs": 75.129653,
            "medianProjectionMs": 69.707486
          },
          "run.interrupt": {
            "samples": 3,
            "medianServerAckMs": 928.677135,
            "medianProjectionMs": 915.6075950000001
          }
        }
      },
      "countProbe": {
        "measurements": {
          "source": "Real persistent WebSocket RPC, 3 warm repetitions, provider latches excluded from acknowledgement timing",
          "measurements": [
            {
              "trial": 1,
              "command": "message.dispatch",
              "commandId": "a6fd6c45-6a32-4d99-8263-d20739e338d5",
              "roundTripMs": 196.75599699999998
            },
            {
              "trial": 1,
              "command": "message.dispatch",
              "commandId": "9524fcd2-8c65-4d69-9d1a-b23619bddf2b",
              "roundTripMs": 149.92945999999984
            },
            {
              "trial": 1,
              "command": "queued-run.edit",
              "commandId": "106a002d-c081-4970-bd02-82514d5f7d03",
              "roundTripMs": 74.38165099999992
            },
            {
              "trial": 1,
              "command": "queued-message.promote-to-steer",
              "commandId": "e9055c9c-0069-4c76-88e4-b8022b5a5380",
              "roundTripMs": 528.773136
            },
            {
              "trial": 1,
              "command": "run.interrupt",
              "commandId": "ab2916f3-3d53-4984-8b57-851832f041e2",
              "roundTripMs": 697.0114660000004
            },
            {
              "trial": 2,
              "command": "message.dispatch",
              "commandId": "17881ce9-c6d6-4eb3-a61d-feff8fbff536",
              "roundTripMs": 816.3167309999999
            },
            {
              "trial": 2,
              "command": "message.dispatch",
              "commandId": "21ae6935-5cde-413d-b8a1-09dcda3990c6",
              "roundTripMs": 138.24332799999956
            },
            {
              "trial": 2,
              "command": "queued-run.edit",
              "commandId": "04f3a7fa-7992-40b1-8f2a-eeb7aaf8222f",
              "roundTripMs": 63.85311199999978
            },
            {
              "trial": 2,
              "command": "queued-message.promote-to-steer",
              "commandId": "7bff424d-0c2d-45df-a634-74e243b1b7d8",
              "roundTripMs": 595.2418440000001
            },
            {
              "trial": 2,
              "command": "run.interrupt",
              "commandId": "cdd764d3-4cae-4f2b-851a-a35f10783075",
              "roundTripMs": 646.7893619999995
            },
            {
              "trial": 3,
              "command": "message.dispatch",
              "commandId": "56495d20-b0ae-4439-a0f6-3b72d45cd9ab",
              "roundTripMs": 718.9392830000006
            },
            {
              "trial": 3,
              "command": "message.dispatch",
              "commandId": "fb504e3e-71d1-45a8-b16e-8034a74b2850",
              "roundTripMs": 139.4466169999996
            },
            {
              "trial": 3,
              "command": "queued-run.edit",
              "commandId": "134dd5cd-ceec-4b15-b8b5-aa36e3282417",
              "roundTripMs": 71.85627000000022
            },
            {
              "trial": 3,
              "command": "queued-message.promote-to-steer",
              "commandId": "8f644d02-625e-477e-8ab6-c116561a92c9",
              "roundTripMs": 601.3865959999994
            },
            {
              "trial": 3,
              "command": "run.interrupt",
              "commandId": "38d759e8-b955-4085-adbd-92cc39bd8fa9",
              "roundTripMs": 697.6111369999999
            }
          ]
        },
        "serverSpans": [
          {
            "commandId": "a6fd6c45-6a32-4d99-8263-d20739e338d5",
            "command": "message.dispatch",
            "serverAckMs": 187.926679,
            "projectionReadMs": [
              1.169765,
              150.961666
            ],
            "projectionSumMs": 152.13143100000002,
            "readCounts": [
              {
                "spanId": "5738cb6ed893b392",
                "proof.fields": "[]",
                "proof.types": "[]",
                "proof.statuses": "[]",
                "proof.omitSettledLeafNodes": false,
                "proof.nodes": 0,
                "proof.turnItems": 0,
                "proof.reasoning": 0,
                "proof.toolNodes": 0,
                "proof.settledToolNodes": 0
              },
              {
                "spanId": "f98dc2c6b5f8bdf6",
                "proof.fields": "[\"runs\",\"attempts\",\"nodes\",\"subagents\",\"providerSessions\",\"providerThreads\",\"providerTurns\",\"runtimeRequests\",\"messages\",\"turnItems\",\"checkpointScopes\",\"contextTransfers\"]",
                "proof.types": "[\"user_message\",\"error\"]",
                "proof.statuses": "[]",
                "proof.omitSettledLeafNodes": true,
                "proof.nodes": 1823,
                "proof.turnItems": 1815,
                "proof.reasoning": 0,
                "proof.toolNodes": 0,
                "proof.settledToolNodes": 0
              }
            ]
          },
          {
            "commandId": "9524fcd2-8c65-4d69-9d1a-b23619bddf2b",
            "command": "message.dispatch",
            "serverAckMs": 146.745193,
            "projectionReadMs": [
              0.728648,
              128.836193
            ],
            "projectionSumMs": 129.564841,
            "readCounts": [
              {
                "spanId": "9e6f891d389e0b4b",
                "proof.fields": "[]",
                "proof.types": "[]",
                "proof.statuses": "[]",
                "proof.omitSettledLeafNodes": false,
                "proof.nodes": 0,
                "proof.turnItems": 0,
                "proof.reasoning": 0,
                "proof.toolNodes": 0,
                "proof.settledToolNodes": 0
              },
              {
                "spanId": "a1d8e838f387284b",
                "proof.fields": "[\"runs\",\"attempts\",\"nodes\",\"subagents\",\"providerSessions\",\"providerThreads\",\"providerTurns\",\"runtimeRequests\",\"messages\",\"turnItems\",\"checkpointScopes\",\"contextTransfers\"]",
                "proof.types": "[\"user_message\",\"error\"]",
                "proof.statuses": "[]",
                "proof.omitSettledLeafNodes": true,
                "proof.nodes": 1826,
                "proof.turnItems": 1816,
                "proof.reasoning": 0,
                "proof.toolNodes": 1,
                "proof.settledToolNodes": 0
              }
            ]
          },
          {
            "commandId": "106a002d-c081-4970-bd02-82514d5f7d03",
            "command": "queued-run.edit",
            "serverAckMs": 72.817755,
            "projectionReadMs": [
              66.387178
            ],
            "projectionSumMs": 66.387178,
            "readCounts": [
              {
                "spanId": "cfb2123eeebecfc9",
                "proof.fields": "[\"runs\",\"messages\",\"turnItems\"]",
                "proof.types": "[\"user_message\"]",
                "proof.statuses": "[]",
                "proof.omitSettledLeafNodes": false,
                "proof.nodes": 0,
                "proof.turnItems": 1816,
                "proof.reasoning": 0,
                "proof.toolNodes": 0,
                "proof.settledToolNodes": 0
              }
            ]
          },
          {
            "commandId": "e9055c9c-0069-4c76-88e4-b8022b5a5380",
            "command": "queued-message.promote-to-steer",
            "serverAckMs": 525.518889,
            "projectionReadMs": [
              466.997084,
              29.91967
            ],
            "projectionSumMs": 496.91675399999997,
            "readCounts": [
              {
                "spanId": "dcf0ee34d894f5bc",
                "proof.fields": "[\"runs\",\"nodes\",\"attempts\",\"messages\",\"providerThreads\",\"providerTurns\",\"providerSessions\",\"turnItems\",\"runtimeRequests\",\"subagents\"]",
                "proof.types": "[\"user_message\"]",
                "proof.statuses": "[]",
                "proof.omitSettledLeafNodes": false,
                "proof.nodes": 32456,
                "proof.turnItems": 1816,
                "proof.reasoning": 0,
                "proof.toolNodes": 28815,
                "proof.settledToolNodes": 28814
              },
              {
                "spanId": "b74977e8633352e2",
                "proof.fields": "[\"turnItems\"]",
                "proof.types": "[\"run_interrupt_request\"]",
                "proof.statuses": "[]",
                "proof.omitSettledLeafNodes": false,
                "proof.nodes": 0,
                "proof.turnItems": 0,
                "proof.reasoning": 0,
                "proof.toolNodes": 0,
                "proof.settledToolNodes": 0
              }
            ]
          },
          {
            "commandId": "ab2916f3-3d53-4984-8b57-851832f041e2",
            "command": "run.interrupt",
            "serverAckMs": 694.444586,
            "projectionReadMs": [
              562.94716,
              111.829888
            ],
            "projectionSumMs": 674.777048,
            "readCounts": [
              {
                "spanId": "2f383c286b33a410",
                "proof.fields": "[\"runs\",\"nodes\",\"providerThreads\",\"providerTurns\",\"messages\",\"attempts\",\"turnItems\",\"subagents\",\"runtimeRequests\"]",
                "proof.types": "[\"command_execution\",\"dynamic_tool\",\"subagent\",\"assistant_message\",\"reasoning\"]",
                "proof.statuses": "[\"pending\",\"running\",\"waiting\"]",
                "proof.omitSettledLeafNodes": false,
                "proof.nodes": 32458,
                "proof.turnItems": 1,
                "proof.reasoning": 0,
                "proof.toolNodes": 28815,
                "proof.settledToolNodes": 28814
              },
              {
                "spanId": "cd18dba92acb03b9",
                "proof.fields": "[\"runs\",\"attempts\",\"nodes\",\"subagents\",\"providerSessions\",\"providerThreads\",\"providerTurns\",\"runtimeRequests\",\"messages\",\"turnItems\",\"checkpointScopes\",\"contextTransfers\"]",
                "proof.types": "[\"user_message\",\"error\"]",
                "proof.statuses": "[]",
                "proof.omitSettledLeafNodes": true,
                "proof.nodes": 1830,
                "proof.turnItems": 1817,
                "proof.reasoning": 0,
                "proof.toolNodes": 2,
                "proof.settledToolNodes": 1
              }
            ]
          },
          {
            "commandId": "17881ce9-c6d6-4eb3-a61d-feff8fbff536",
            "command": "message.dispatch",
            "serverAckMs": 813.332811,
            "projectionReadMs": [
              0.66108,
              257.156749
            ],
            "projectionSumMs": 257.817829,
            "readCounts": [
              {
                "spanId": "335568b1b52a5d57",
                "proof.fields": "[]",
                "proof.types": "[]",
                "proof.statuses": "[]",
                "proof.omitSettledLeafNodes": false,
                "proof.nodes": 0,
                "proof.turnItems": 0,
                "proof.reasoning": 0,
                "proof.toolNodes": 0,
                "proof.settledToolNodes": 0
              },
              {
                "spanId": "5fcd903477f3e38e",
                "proof.fields": "[\"runs\",\"attempts\",\"nodes\",\"subagents\",\"providerSessions\",\"providerThreads\",\"providerTurns\",\"runtimeRequests\",\"messages\",\"turnItems\",\"checkpointScopes\",\"contextTransfers\"]",
                "proof.types": "[\"user_message\",\"error\"]",
                "proof.statuses": "[]",
                "proof.omitSettledLeafNodes": true,
                "proof.nodes": 1826,
                "proof.turnItems": 1817,
                "proof.reasoning": 0,
                "proof.toolNodes": 0,
                "proof.settledToolNodes": 0
              }
            ]
          },
          {
            "commandId": "21ae6935-5cde-413d-b8a1-09dcda3990c6",
            "command": "message.dispatch",
            "serverAckMs": 135.278934,
            "projectionReadMs": [
              0.71381,
              122.965235
            ],
            "projectionSumMs": 123.679045,
            "readCounts": [
              {
                "spanId": "c0b2e5ab3f3e81ee",
                "proof.fields": "[]",
                "proof.types": "[]",
                "proof.statuses": "[]",
                "proof.omitSettledLeafNodes": false,
                "proof.nodes": 0,
                "proof.turnItems": 0,
                "proof.reasoning": 0,
                "proof.toolNodes": 0,
                "proof.settledToolNodes": 0
              },
              {
                "spanId": "b4ffed0218482792",
                "proof.fields": "[\"runs\",\"attempts\",\"nodes\",\"subagents\",\"providerSessions\",\"providerThreads\",\"providerTurns\",\"runtimeRequests\",\"messages\",\"turnItems\",\"checkpointScopes\",\"contextTransfers\"]",
                "proof.types": "[\"user_message\",\"error\"]",
                "proof.statuses": "[]",
                "proof.omitSettledLeafNodes": true,
                "proof.nodes": 1829,
                "proof.turnItems": 1818,
                "proof.reasoning": 0,
                "proof.toolNodes": 1,
                "proof.settledToolNodes": 0
              }
            ]
          },
          {
            "commandId": "04f3a7fa-7992-40b1-8f2a-eeb7aaf8222f",
            "command": "queued-run.edit",
            "serverAckMs": 62.288557,
            "projectionReadMs": [
              57.553548
            ],
            "projectionSumMs": 57.553548,
            "readCounts": [
              {
                "spanId": "be20a0c4e44643b1",
                "proof.fields": "[\"runs\",\"messages\",\"turnItems\"]",
                "proof.types": "[\"user_message\"]",
                "proof.statuses": "[]",
                "proof.omitSettledLeafNodes": false,
                "proof.nodes": 0,
                "proof.turnItems": 1818,
                "proof.reasoning": 0,
                "proof.toolNodes": 0,
                "proof.settledToolNodes": 0
              }
            ]
          },
          {
            "commandId": "7bff424d-0c2d-45df-a634-74e243b1b7d8",
            "command": "queued-message.promote-to-steer",
            "serverAckMs": 591.191292,
            "projectionReadMs": [
              534.928636,
              30.316323
            ],
            "projectionSumMs": 565.244959,
            "readCounts": [
              {
                "spanId": "237a63273e761cbf",
                "proof.fields": "[\"runs\",\"nodes\",\"attempts\",\"messages\",\"providerThreads\",\"providerTurns\",\"providerSessions\",\"turnItems\",\"runtimeRequests\",\"subagents\"]",
                "proof.types": "[\"user_message\"]",
                "proof.statuses": "[]",
                "proof.omitSettledLeafNodes": false,
                "proof.nodes": 32461,
                "proof.turnItems": 1818,
                "proof.reasoning": 0,
                "proof.toolNodes": 28815,
                "proof.settledToolNodes": 28814
              },
              {
                "spanId": "bd8ed950b3c5507c",
                "proof.fields": "[\"turnItems\"]",
                "proof.types": "[\"run_interrupt_request\"]",
                "proof.statuses": "[]",
                "proof.omitSettledLeafNodes": false,
                "proof.nodes": 0,
                "proof.turnItems": 0,
                "proof.reasoning": 0,
                "proof.toolNodes": 0,
                "proof.settledToolNodes": 0
              }
            ]
          },
          {
            "commandId": "cdd764d3-4cae-4f2b-851a-a35f10783075",
            "command": "run.interrupt",
            "serverAckMs": 644.507931,
            "projectionReadMs": [
              526.183153,
              105.668746
            ],
            "projectionSumMs": 631.851899,
            "readCounts": [
              {
                "spanId": "ea68d22e099fa882",
                "proof.fields": "[\"runs\",\"nodes\",\"providerThreads\",\"providerTurns\",\"messages\",\"attempts\",\"turnItems\",\"subagents\",\"runtimeRequests\"]",
                "proof.types": "[\"command_execution\",\"dynamic_tool\",\"subagent\",\"assistant_message\",\"reasoning\"]",
                "proof.statuses": "[\"pending\",\"running\",\"waiting\"]",
                "proof.omitSettledLeafNodes": false,
                "proof.nodes": 32463,
                "proof.turnItems": 1,
                "proof.reasoning": 0,
                "proof.toolNodes": 28815,
                "proof.settledToolNodes": 28814
              },
              {
                "spanId": "501cdf4bdf976fab",
                "proof.fields": "[\"runs\",\"attempts\",\"nodes\",\"subagents\",\"providerSessions\",\"providerThreads\",\"providerTurns\",\"runtimeRequests\",\"messages\",\"turnItems\",\"checkpointScopes\",\"contextTransfers\"]",
                "proof.types": "[\"user_message\",\"error\"]",
                "proof.statuses": "[]",
                "proof.omitSettledLeafNodes": true,
                "proof.nodes": 1833,
                "proof.turnItems": 1819,
                "proof.reasoning": 0,
                "proof.toolNodes": 2,
                "proof.settledToolNodes": 1
              }
            ]
          },
          {
            "commandId": "56495d20-b0ae-4439-a0f6-3b72d45cd9ab",
            "command": "message.dispatch",
            "serverAckMs": 715.925677,
            "projectionReadMs": [
              0.3465,
              228.485992
            ],
            "projectionSumMs": 228.832492,
            "readCounts": [
              {
                "spanId": "fb471dc613efd520",
                "proof.fields": "[]",
                "proof.types": "[]",
                "proof.statuses": "[]",
                "proof.omitSettledLeafNodes": false,
                "proof.nodes": 0,
                "proof.turnItems": 0,
                "proof.reasoning": 0,
                "proof.toolNodes": 0,
                "proof.settledToolNodes": 0
              },
              {
                "spanId": "3d77e0921d955f38",
                "proof.fields": "[\"runs\",\"attempts\",\"nodes\",\"subagents\",\"providerSessions\",\"providerThreads\",\"providerTurns\",\"runtimeRequests\",\"messages\",\"turnItems\",\"checkpointScopes\",\"contextTransfers\"]",
                "proof.types": "[\"user_message\",\"error\"]",
                "proof.statuses": "[]",
                "proof.omitSettledLeafNodes": true,
                "proof.nodes": 1829,
                "proof.turnItems": 1819,
                "proof.reasoning": 0,
                "proof.toolNodes": 0,
                "proof.settledToolNodes": 0
              }
            ]
          },
          {
            "commandId": "fb504e3e-71d1-45a8-b16e-8034a74b2850",
            "command": "message.dispatch",
            "serverAckMs": 136.636562,
            "projectionReadMs": [
              0.656403,
              121.207466
            ],
            "projectionSumMs": 121.863869,
            "readCounts": [
              {
                "spanId": "e866151266cebcd5",
                "proof.fields": "[]",
                "proof.types": "[]",
                "proof.statuses": "[]",
                "proof.omitSettledLeafNodes": false,
                "proof.nodes": 0,
                "proof.turnItems": 0,
                "proof.reasoning": 0,
                "proof.toolNodes": 0,
                "proof.settledToolNodes": 0
              },
              {
                "spanId": "b264bd99349c5195",
                "proof.fields": "[\"runs\",\"attempts\",\"nodes\",\"subagents\",\"providerSessions\",\"providerThreads\",\"providerTurns\",\"runtimeRequests\",\"messages\",\"turnItems\",\"checkpointScopes\",\"contextTransfers\"]",
                "proof.types": "[\"user_message\",\"error\"]",
                "proof.statuses": "[]",
                "proof.omitSettledLeafNodes": true,
                "proof.nodes": 1832,
                "proof.turnItems": 1820,
                "proof.reasoning": 0,
                "proof.toolNodes": 1,
                "proof.settledToolNodes": 0
              }
            ]
          },
          {
            "commandId": "134dd5cd-ceec-4b15-b8b5-aa36e3282417",
            "command": "queued-run.edit",
            "serverAckMs": 70.422119,
            "projectionReadMs": [
              64.671538
            ],
            "projectionSumMs": 64.671538,
            "readCounts": [
              {
                "spanId": "3ac23def1d47cb87",
                "proof.fields": "[\"runs\",\"messages\",\"turnItems\"]",
                "proof.types": "[\"user_message\"]",
                "proof.statuses": "[]",
                "proof.omitSettledLeafNodes": false,
                "proof.nodes": 0,
                "proof.turnItems": 1820,
                "proof.reasoning": 0,
                "proof.toolNodes": 0,
                "proof.settledToolNodes": 0
              }
            ]
          },
          {
            "commandId": "8f644d02-625e-477e-8ab6-c116561a92c9",
            "command": "queued-message.promote-to-steer",
            "serverAckMs": 597.634793,
            "projectionReadMs": [
              519.725084,
              41.388542
            ],
            "projectionSumMs": 561.1136260000001,
            "readCounts": [
              {
                "spanId": "339d9d15e40d8522",
                "proof.fields": "[\"runs\",\"nodes\",\"attempts\",\"messages\",\"providerThreads\",\"providerTurns\",\"providerSessions\",\"turnItems\",\"runtimeRequests\",\"subagents\"]",
                "proof.types": "[\"user_message\"]",
                "proof.statuses": "[]",
                "proof.omitSettledLeafNodes": false,
                "proof.nodes": 32466,
                "proof.turnItems": 1820,
                "proof.reasoning": 0,
                "proof.toolNodes": 28815,
                "proof.settledToolNodes": 28814
              },
              {
                "spanId": "15ced1c9b88ad485",
                "proof.fields": "[\"turnItems\"]",
                "proof.types": "[\"run_interrupt_request\"]",
                "proof.statuses": "[]",
                "proof.omitSettledLeafNodes": false,
                "proof.nodes": 0,
                "proof.turnItems": 0,
                "proof.reasoning": 0,
                "proof.toolNodes": 0,
                "proof.settledToolNodes": 0
              }
            ]
          },
          {
            "commandId": "38d759e8-b955-4085-adbd-92cc39bd8fa9",
            "command": "run.interrupt",
            "serverAckMs": 695.317361,
            "projectionReadMs": [
              549.763974,
              134.517405
            ],
            "projectionSumMs": 684.281379,
            "readCounts": [
              {
                "spanId": "df8d11f5ce2a7979",
                "proof.fields": "[\"runs\",\"nodes\",\"providerThreads\",\"providerTurns\",\"messages\",\"attempts\",\"turnItems\",\"subagents\",\"runtimeRequests\"]",
                "proof.types": "[\"command_execution\",\"dynamic_tool\",\"subagent\",\"assistant_message\",\"reasoning\"]",
                "proof.statuses": "[\"pending\",\"running\",\"waiting\"]",
                "proof.omitSettledLeafNodes": false,
                "proof.nodes": 32468,
                "proof.turnItems": 1,
                "proof.reasoning": 0,
                "proof.toolNodes": 28815,
                "proof.settledToolNodes": 28814
              },
              {
                "spanId": "bc879a11d05fa5e7",
                "proof.fields": "[\"runs\",\"attempts\",\"nodes\",\"subagents\",\"providerSessions\",\"providerThreads\",\"providerTurns\",\"runtimeRequests\",\"messages\",\"turnItems\",\"checkpointScopes\",\"contextTransfers\"]",
                "proof.types": "[\"user_message\",\"error\"]",
                "proof.statuses": "[]",
                "proof.omitSettledLeafNodes": true,
                "proof.nodes": 1836,
                "proof.turnItems": 1821,
                "proof.reasoning": 0,
                "proof.toolNodes": 2,
                "proof.settledToolNodes": 1
              }
            ]
          }
        ],
        "summary": {
          "message.dispatch": {
            "samples": 6,
            "medianServerAckMs": 167.335936,
            "medianProjectionMs": 140.848136
          },
          "queued-message.promote-to-steer": {
            "samples": 3,
            "medianServerAckMs": 591.191292,
            "medianProjectionMs": 561.1136260000001
          },
          "queued-run.edit": {
            "samples": 3,
            "medianServerAckMs": 70.422119,
            "medianProjectionMs": 64.671538
          },
          "run.interrupt": {
            "samples": 3,
            "medianServerAckMs": 694.444586,
            "medianProjectionMs": 674.777048
          }
        }
      },
      "activeReasoningUi": {
        "surface": "Web, Chromium, 1440x960, light",
        "startingState": "New empty synthetic thread",
        "before": {
          "type": "reasoning",
          "status": "running",
          "text": "Working."
        },
        "after": {
          "type": "reasoning",
          "status": "completed",
          "text": "Working."
        },
        "toolItems": 0,
        "visibleWorking": true,
        "visibleStopped": true,
        "privacyCrop": "1120x960 left crop of original 1440x960 viewport, identically applied to remove the environment workspace card."
      },
      "expandedLongReasoningUi": {
        "visibleWorkingCount": 1,
        "visibleStoppedCount": 1,
        "visibleTail": "Code\nSettled\n0\nQP\nQueue performance proof\n/\nLong history\nLoad earlier turns\nYou\n\nHISTORY-SEED 1791\n\n5:11 AM\n\nT3 Code\n\nHistory turn complete.\n\n5:11 AM\n\nYou\n\nHISTORY-SEED 1794\n\n5:11 AM\n\nWorked for 98ms\n5:11 AM\nT3 Code\n\nHistory turn complete.\n\n5:11 AM\n\nYou\n\nHISTORY-SEED 1795\n\n5:11 AM\n\nWorked for 103ms\n5:11 AM\nT3 Code\n\nHistory turn complete.\n\n5:11 AM\n\nYou\n\nHISTORY-SEED 1796\n\n5:11 AM\n\nWorked for 104ms\n5:11 AM\nT3 Code\n\nHistory turn complete.\n\n5:11 AM\n\nYou\n\nHISTORY-SEED 1797\n\n5:11 AM\n\nWorked for 104ms\n5:11 AM\nT3 Code\n\nHistory turn complete.\n\n5:11 AM\n\nYou\n\nHISTORY-SEED 1798\n\n5:11 AM\n\nWorked for 105ms\n5:11 AM\nT3 Code\n\nHistory turn complete.\n\n5:11 AM\n\nYou\n\nHISTORY-SEED 1799\n\n5:11 AM\n\nWorked for 93ms\n5:11 AM\nT3 Code\n\nHistory turn complete.\n\n5:11 AM\n\nYou\n\nHISTORY-SEED 1800\n\n5:11 AM\n\nWorked for 100ms\n5:11 AM\nT3 Code\n\nHistory turn complete.\n\n5:11 AM\n\nYou\n\nContinue the work.\n\n5:17 AM\n\nSuperseded attempt\nCut off by a steer\nRan 1 command\n5:17 AM\nSteer\nYou\n\nPlease focus on message ordering, edited.\n\n5:17 AM\n\nRan 1 command\n5:17 AM\n\nThought\n\n5:17 AM\n\nWorking.\n\nsynthetic hold until cancel\n\n5:17 AM\nRun interrupted\u00b7\u00a0Stopped by user\n\n\n\n\nAsk anything. @ files, $ skills, / commands\nShowcase\nToggle Sidebar"
      },
      "activeReasoningReadCounts": {
        "measurements": {
          "source": "Real server command while reasoning is running; no tool calls",
          "before": {
            "status": "running",
            "text": "Working."
          },
          "after": {
            "status": "completed",
            "text": "Working."
          },
          "measurements": [
            {
              "commandId": "e3edc1d8-19ee-49b3-a3fb-85c9cdb97124",
              "command": "run.interrupt"
            }
          ]
        },
        "serverSpans": [
          {
            "commandId": "e3edc1d8-19ee-49b3-a3fb-85c9cdb97124",
            "command": "run.interrupt",
            "serverAckMs": 31.670013,
            "projectionReadMs": [
              6.159139,
              9.190386
            ],
            "projectionSumMs": 15.349525,
            "readCounts": [
              {
                "spanId": "434308c95da41863",
                "proof.fields": "[\"runs\",\"nodes\",\"providerThreads\",\"providerTurns\",\"messages\",\"attempts\",\"turnItems\",\"subagents\",\"runtimeRequests\"]",
                "proof.types": "[\"command_execution\",\"dynamic_tool\",\"subagent\",\"assistant_message\",\"reasoning\"]",
                "proof.statuses": "[\"pending\",\"running\",\"waiting\"]",
                "proof.omitSettledLeafNodes": false,
                "proof.nodes": 2,
                "proof.turnItems": 1,
                "proof.reasoning": 1,
                "proof.toolNodes": 0,
                "proof.settledToolNodes": 0
              },
              {
                "spanId": "ff699aad1f60a5b7",
                "proof.fields": "[\"runs\",\"attempts\",\"nodes\",\"subagents\",\"providerSessions\",\"providerThreads\",\"providerTurns\",\"runtimeRequests\",\"messages\",\"turnItems\",\"checkpointScopes\",\"contextTransfers\"]",
                "proof.types": "[\"user_message\",\"error\"]",
                "proof.statuses": "[]",
                "proof.omitSettledLeafNodes": true,
                "proof.nodes": 2,
                "proof.turnItems": 1,
                "proof.reasoning": 0,
                "proof.toolNodes": 0,
                "proof.settledToolNodes": 0
              }
            ]
          }
        ],
        "summary": {
          "run.interrupt": {
            "samples": 1,
            "medianServerAckMs": 31.670013,
            "medianProjectionMs": 15.349525
          }
        }
      },
      "additionalCliCallers": {
        "startedAt": "2026-11-13T04:30:54.544Z",
        "endedAt": "2026-11-13T04:31:08.521Z",
        "steps": [
          {
            "operation": "CLI thread send",
            "text": "CLI follow-up probe.",
            "wallMs": 2916.6474900000003,
            "delivery": "started",
            "runId": "run:thread:80f2feac-bb9e-45f2-9454-9d6c0bcc0696:ordinal:1823",
            "messageId": "message:mcp:client%3Ade8e7ca6-057e-4094-84ba-36a14395bf82:thread-send:ab02eb96-4158-4af1-9061-ceba1f3d6e62"
          },
          {
            "operation": "CLI thread send",
            "text": "CLI queued probe.",
            "wallMs": 2471.5941649999995,
            "delivery": "queued",
            "runId": "run:thread:80f2feac-bb9e-45f2-9454-9d6c0bcc0696:ordinal:1824",
            "messageId": "message:mcp:client%3A75944546-56e1-41c2-a24a-b786272dabb5:thread-send:31a7c182-b0d2-4c44-964c-a713b7637011"
          },
          {
            "operation": "queued-run.cancel",
            "queuedRunId": "run:thread:80f2feac-bb9e-45f2-9454-9d6c0bcc0696:ordinal:1824"
          },
          {
            "operation": "provider-session.detach",
            "ackMs": 114.9156579999999
          },
          {
            "operation": "thread.stop"
          }
        ],
        "before": {
          "user_message:completed": 1821,
          "command_execution:completed": 28800,
          "assistant_message:completed": 1800,
          "checkpoint:completed": 1811,
          "reasoning:completed": 21,
          "command_execution:interrupted": 15,
          "run_interrupt_request:completed": 11,
          "run_interrupt_result:interrupted": 11
        },
        "afterDetachAndStop": {
          "user_message:completed": 1822,
          "command_execution:completed": 28800,
          "assistant_message:completed": 1800,
          "checkpoint:completed": 1812,
          "reasoning:completed": 22,
          "command_execution:interrupted": 16,
          "run_interrupt_request:completed": 12,
          "run_interrupt_result:interrupted": 12
        },
        "after": {
          "user_message:completed": 1822,
          "command_execution:completed": 28800,
          "assistant_message:completed": 1800,
          "checkpoint:completed": 1812,
          "reasoning:completed": 22,
          "command_execution:interrupted": 16,
          "run_interrupt_request:completed": 12,
          "run_interrupt_result:interrupted": 12
        },
        "lastUserMessages": [
          "Warm probe 3.",
          "Warm queued 3, edited.",
          "CLI follow-up probe.",
          "CLI queued probe."
        ],
        "sessions": [
          {
            "driver": "acpRegistry",
            "status": "ready"
          }
        ],
        "evidence": "Actual CLI -> MCP -> ThreadManagementService sends, queue cancellation, provider-session.detach, then explicit thread.stop; detach alone does not stop active work."
      },
      "migrationIndexMetadata": [
        {
          "name": "orchestration_v2_projection_turn_items_thread_ordinal_idx",
          "sql": "CREATE INDEX orchestration_v2_projection_turn_items_thread_ordinal_idx ON orchestration_v2_projection_turn_items(thread_id, ordinal, turn_item_id)"
        },
        {
          "name": "orchestration_v2_projection_turn_items_thread_run_idx",
          "sql": "CREATE INDEX orchestration_v2_projection_turn_items_thread_run_idx\n    ON orchestration_v2_projection_turn_items(thread_id, run_id)\n  "
        }
      ]
    },
    "head": {
      "uiFlows": [
        {
          "thread": "Short history",
          "beforeCounts": {
            "runs": 3,
            "turn_items": 57,
            "nodes": 54,
            "messages": 6
          },
          "beforeRunStatuses": {
            "completed": 3
          },
          "afterCounts": {
            "runs": 5,
            "turn_items": 66,
            "nodes": 61,
            "messages": 8
          },
          "lastUserMessages": [
            "HISTORY-SEED 0002",
            "HISTORY-SEED 0003",
            "Continue the work.",
            "Please focus on message ordering, edited."
          ],
          "persistedReasoning": [
            {
              "type": "reasoning",
              "status": "completed",
              "text": "Working.",
              "ordinal": 4000002
            },
            {
              "type": "reasoning",
              "status": "completed",
              "text": "Working.",
              "ordinal": 4000005
            }
          ],
          "lastRuns": [
            {
              "ordinal": 4,
              "status": "interrupted"
            },
            {
              "ordinal": 5,
              "status": "cancelled"
            }
          ],
          "log": [
            {
              "step": "send",
              "at": "2026-11-13T04:18:05.257Z"
            },
            {
              "step": "live-reasoning-persisted",
              "at": "2026-11-13T04:18:06.752Z"
            },
            {
              "step": "queue",
              "at": "2026-11-13T04:18:06.753Z"
            },
            {
              "step": "edit",
              "at": "2026-11-13T04:18:07.912Z"
            },
            {
              "step": "promote",
              "at": "2026-11-13T04:18:10.001Z"
            },
            {
              "step": "post-steer-reasoning-persisted",
              "at": "2026-11-13T04:18:10.790Z"
            },
            {
              "step": "stop",
              "at": "2026-11-13T04:18:10.790Z"
            },
            {
              "step": "finished",
              "at": "2026-11-13T04:18:16.804Z"
            }
          ],
          "reasoningBeforeStop": {
            "first": {
              "reason": "Working.",
              "status": "completed"
            },
            "afterSteer": {
              "reason": "Working.",
              "status": "completed"
            }
          },
          "collapsedVisibleWorkingCount": 0,
          "collapsedVisibleStoppedCount": 1
        },
        {
          "thread": "Long history",
          "beforeCounts": {
            "runs": 1800,
            "turn_items": 34200,
            "nodes": 32400,
            "messages": 3600
          },
          "beforeRunStatuses": {
            "completed": 1800
          },
          "afterCounts": {
            "runs": 1802,
            "turn_items": 34208,
            "nodes": 32407,
            "messages": 3602
          },
          "lastUserMessages": [
            "HISTORY-SEED 1799",
            "HISTORY-SEED 1800",
            "Continue the work.",
            "Please focus on message ordering, edited."
          ],
          "persistedReasoning": [
            {
              "type": "reasoning",
              "status": "completed",
              "text": "Working.",
              "ordinal": 1801000002
            },
            {
              "type": "reasoning",
              "status": "completed",
              "text": "Working.",
              "ordinal": 1801000005
            }
          ],
          "lastRuns": [
            {
              "ordinal": 1801,
              "status": "interrupted"
            },
            {
              "ordinal": 1802,
              "status": "cancelled"
            }
          ],
          "log": [
            {
              "step": "send",
              "at": "2026-11-13T04:18:20.408Z"
            },
            {
              "step": "live-reasoning-persisted",
              "at": "2026-11-13T04:18:23.367Z"
            },
            {
              "step": "queue",
              "at": "2026-11-13T04:18:23.367Z"
            },
            {
              "step": "edit",
              "at": "2026-11-13T04:18:24.180Z"
            },
            {
              "step": "promote",
              "at": "2026-11-13T04:18:25.847Z"
            },
            {
              "step": "post-steer-reasoning-persisted",
              "at": "2026-11-13T04:18:29.175Z"
            },
            {
              "step": "stop",
              "at": "2026-11-13T04:18:36.913Z"
            },
            {
              "step": "finished",
              "at": "2026-11-13T04:18:39.454Z"
            }
          ],
          "reasoningBeforeStop": {
            "first": {
              "reason": "Working.",
              "status": "completed"
            },
            "afterSteer": {
              "reason": "Working.",
              "status": "completed"
            }
          },
          "collapsedVisibleWorkingCount": 0,
          "collapsedVisibleStoppedCount": 1
        }
      ],
      "uiTrace": {
        "commands": [
          {
            "thread": "Short history",
            "command": "message.dispatch",
            "ackMs": 52.785116,
            "projectionReadMs": [
              1.297814,
              13.580958
            ],
            "projectionSumMs": 14.878772000000001
          },
          {
            "thread": "Short history",
            "command": "message.dispatch",
            "ackMs": 72.172617,
            "projectionReadMs": [
              0.950454,
              15.887004
            ],
            "projectionSumMs": 16.837457999999998
          },
          {
            "thread": "Short history",
            "command": "queued-run.edit",
            "ackMs": 42.541138,
            "projectionReadMs": [
              8.915084
            ],
            "projectionSumMs": 8.915084
          },
          {
            "thread": "Short history",
            "command": "queued-message.promote-to-steer",
            "ackMs": 139.646218,
            "projectionReadMs": [
              6.470539,
              4.025581
            ],
            "projectionSumMs": 10.49612
          },
          {
            "thread": "Short history",
            "command": "thread.stop",
            "ackMs": 84.558373,
            "projectionReadMs": [
              9.094832,
              11.106336,
              13.931646,
              1.18322
            ],
            "projectionSumMs": 35.316034
          },
          {
            "thread": "Short history",
            "command": "thread.visit",
            "ackMs": 24.267847,
            "projectionReadMs": [],
            "projectionSumMs": 0
          },
          {
            "thread": "Long history",
            "command": "message.dispatch",
            "ackMs": 266.052637,
            "projectionReadMs": [
              0.518413,
              214.211655
            ],
            "projectionSumMs": 214.73006800000002
          },
          {
            "thread": "Long history",
            "command": "message.dispatch",
            "ackMs": 402.1779,
            "projectionReadMs": [
              0.382147,
              317.542272
            ],
            "projectionSumMs": 317.924419
          },
          {
            "thread": "Long history",
            "command": "queued-run.edit",
            "ackMs": 132.449407,
            "projectionReadMs": [
              127.07294
            ],
            "projectionSumMs": 127.07294
          },
          {
            "thread": "Long history",
            "command": "queued-message.promote-to-steer",
            "ackMs": 165.332635,
            "projectionReadMs": [
              147.044929,
              0.509405
            ],
            "projectionSumMs": 147.55433399999998
          },
          {
            "thread": "Long history",
            "command": "thread.visit",
            "ackMs": 8.079789,
            "projectionReadMs": [],
            "projectionSumMs": 0
          },
          {
            "thread": "Long history",
            "command": "thread.stop",
            "ackMs": 530.900615,
            "projectionReadMs": [
              82.595179,
              295.091735,
              129.642361,
              0.592372
            ],
            "projectionSumMs": 507.921647
          },
          {
            "thread": "Long history",
            "command": "thread.visit",
            "ackMs": 729.714974,
            "projectionReadMs": [],
            "projectionSumMs": 0
          },
          {
            "thread": "Long history",
            "command": "thread.visit",
            "ackMs": 16.14079,
            "projectionReadMs": [],
            "projectionSumMs": 0
          }
        ],
        "source": "server.trace.ndjson; handler descendants inside each RPC acknowledgement window",
        "spans": [
          {
            "type": "effect-span",
            "name": "ws.rpc.orchestration.dispatchCommand",
            "traceId": "08154fd30cd60ceff3d787defebec7ef",
            "spanId": "adcabafbc7a6a108",
            "parentSpanId": "4f84ba778f6f2d19",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1794543486377244138",
            "endTimeUnixNano": "1794543486430029254",
            "durationMs": 52.785116,
            "attributes": {
              "rpc.transport": "websocket",
              "rpc.system": "effect-rpc",
              "rpc.method": "orchestration.dispatchCommand",
              "rpc.aggregate": "orchestrationV2",
              "orchestration_v2.command_id": "2913c5df-6309-41f0-a5d2-fe534f92b065",
              "orchestration_v2.command_type": "message.dispatch",
              "orchestration_v2.thread_id": "3ce77e3c-5480-48b2-b9e2-793e1b9b2e0a"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.readCanonicalProjection",
            "traceId": "08154fd30cd60ceff3d787defebec7ef",
            "spanId": "6a30fafa54a5dfdf",
            "parentSpanId": "c5e32a085b26a527",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1794543486379333197",
            "endTimeUnixNano": "1794543486380631011",
            "durationMs": 1.297814,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.readCanonicalProjection",
            "traceId": "08154fd30cd60ceff3d787defebec7ef",
            "spanId": "e4f7cfc3f57f179e",
            "parentSpanId": "ad42948308f26308",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1794543486384440047",
            "endTimeUnixNano": "1794543486398021005",
            "durationMs": 13.580958,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ws.rpc.orchestration.dispatchCommand",
            "traceId": "08154fd30cd60ceff3d787defebec7ef",
            "spanId": "9dac94beb34f12ac",
            "parentSpanId": "4f84ba778f6f2d19",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1794543487798229251",
            "endTimeUnixNano": "1794543487870401868",
            "durationMs": 72.172617,
            "attributes": {
              "rpc.transport": "websocket",
              "rpc.system": "effect-rpc",
              "rpc.method": "orchestration.dispatchCommand",
              "rpc.aggregate": "orchestrationV2",
              "orchestration_v2.command_id": "ff8b4d95-3574-49ad-a27b-eb0eccc45666",
              "orchestration_v2.command_type": "message.dispatch",
              "orchestration_v2.thread_id": "3ce77e3c-5480-48b2-b9e2-793e1b9b2e0a"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.readCanonicalProjection",
            "traceId": "08154fd30cd60ceff3d787defebec7ef",
            "spanId": "a21a3e22cfa562cb",
            "parentSpanId": "4f3aba9f682d6676",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1794543487800579831",
            "endTimeUnixNano": "1794543487801530285",
            "durationMs": 0.950454,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.readCanonicalProjection",
            "traceId": "08154fd30cd60ceff3d787defebec7ef",
            "spanId": "7d4ffa16418f814d",
            "parentSpanId": "52b80a51b5a1d565",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1794543487816122489",
            "endTimeUnixNano": "1794543487832009493",
            "durationMs": 15.887004,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ws.rpc.orchestration.dispatchCommand",
            "traceId": "08154fd30cd60ceff3d787defebec7ef",
            "spanId": "53afaffd503a6fa4",
            "parentSpanId": "4f84ba778f6f2d19",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1794543488947788227",
            "endTimeUnixNano": "1794543488990329365",
            "durationMs": 42.541138,
            "attributes": {
              "rpc.transport": "websocket",
              "rpc.system": "effect-rpc",
              "rpc.method": "orchestration.dispatchCommand",
              "rpc.aggregate": "orchestrationV2",
              "orchestration_v2.command_id": "ac0596a9-195f-4dc1-9ced-a5bfef4d0477",
              "orchestration_v2.command_type": "queued-run.edit",
              "orchestration_v2.thread_id": "3ce77e3c-5480-48b2-b9e2-793e1b9b2e0a"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.readCanonicalProjection",
            "traceId": "08154fd30cd60ceff3d787defebec7ef",
            "spanId": "87ea08125074c6c5",
            "parentSpanId": "21094e8ac07a8b54",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1794543488964151014",
            "endTimeUnixNano": "1794543488973066098",
            "durationMs": 8.915084,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ws.rpc.orchestration.dispatchCommand",
            "traceId": "08154fd30cd60ceff3d787defebec7ef",
            "spanId": "571988e02a6c2a72",
            "parentSpanId": "4f84ba778f6f2d19",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1794543490132134423",
            "endTimeUnixNano": "1794543490271780641",
            "durationMs": 139.646218,
            "attributes": {
              "rpc.transport": "websocket",
              "rpc.system": "effect-rpc",
              "rpc.method": "orchestration.dispatchCommand",
              "rpc.aggregate": "orchestrationV2",
              "orchestration_v2.command_id": "5309e9e8-6bb1-4ab0-9967-0c96142d0d03",
              "orchestration_v2.command_type": "queued-message.promote-to-steer",
              "orchestration_v2.thread_id": "3ce77e3c-5480-48b2-b9e2-793e1b9b2e0a"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.readCanonicalProjection",
            "traceId": "08154fd30cd60ceff3d787defebec7ef",
            "spanId": "f3d3a4e2fb2b2b09",
            "parentSpanId": "f0b3c108d8241b9f",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1794543490147264497",
            "endTimeUnixNano": "1794543490153735036",
            "durationMs": 6.470539,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.readCanonicalProjection",
            "traceId": "08154fd30cd60ceff3d787defebec7ef",
            "spanId": "d5d786e8774e80d0",
            "parentSpanId": "dadc0581f20e4a3e",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1794543490168437549",
            "endTimeUnixNano": "1794543490172463130",
            "durationMs": 4.025581,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ws.rpc.orchestration.dispatchCommand",
            "traceId": "08154fd30cd60ceff3d787defebec7ef",
            "spanId": "9915364f193354f4",
            "parentSpanId": "4f84ba778f6f2d19",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1794543491103396011",
            "endTimeUnixNano": "1794543491187954384",
            "durationMs": 84.558373,
            "attributes": {
              "rpc.transport": "websocket",
              "rpc.system": "effect-rpc",
              "rpc.method": "orchestration.dispatchCommand",
              "rpc.aggregate": "orchestrationV2",
              "orchestration_v2.command_id": "adf049cb-7119-49da-b3f9-c26cb59a49d8",
              "orchestration_v2.command_type": "thread.stop",
              "orchestration_v2.thread_id": "3ce77e3c-5480-48b2-b9e2-793e1b9b2e0a"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.readCanonicalProjection",
            "traceId": "08154fd30cd60ceff3d787defebec7ef",
            "spanId": "489265fbbac166d4",
            "parentSpanId": "df37f162200bbbf0",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1794543491117845859",
            "endTimeUnixNano": "1794543491126940691",
            "durationMs": 9.094832,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.readCanonicalProjection",
            "traceId": "08154fd30cd60ceff3d787defebec7ef",
            "spanId": "238d4065ec7baac7",
            "parentSpanId": "ada5509569d74eff",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1794543491131862635",
            "endTimeUnixNano": "1794543491142968971",
            "durationMs": 11.106336,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.readCanonicalProjection",
            "traceId": "08154fd30cd60ceff3d787defebec7ef",
            "spanId": "02fe707818c13faf",
            "parentSpanId": "dd8e7dfa2c6ac9fa",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1794543491153931847",
            "endTimeUnixNano": "1794543491167863493",
            "durationMs": 13.931646,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.readCanonicalProjection",
            "traceId": "08154fd30cd60ceff3d787defebec7ef",
            "spanId": "c76437562a787bed",
            "parentSpanId": "88dfb03544b1103b",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1794543491171697816",
            "endTimeUnixNano": "1794543491172881036",
            "durationMs": 1.18322,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ws.rpc.orchestration.dispatchCommand",
            "traceId": "08154fd30cd60ceff3d787defebec7ef",
            "spanId": "09eaa87ba091f297",
            "parentSpanId": "4f84ba778f6f2d19",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1794543491683343941",
            "endTimeUnixNano": "1794543491707611788",
            "durationMs": 24.267847,
            "attributes": {
              "rpc.transport": "websocket",
              "rpc.system": "effect-rpc",
              "rpc.method": "orchestration.dispatchCommand",
              "rpc.aggregate": "orchestrationV2",
              "orchestration_v2.command_id": "c19253fc-cb7b-4974-af82-bcfa3158560b",
              "orchestration_v2.command_type": "thread.visit",
              "orchestration_v2.thread_id": "3ce77e3c-5480-48b2-b9e2-793e1b9b2e0a"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ws.rpc.orchestration.dispatchCommand",
            "traceId": "08154fd30cd60ceff3d787defebec7ef",
            "spanId": "5c64f877f3ed2236",
            "parentSpanId": "27b5324f7e60b4bc",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1794543500671553129",
            "endTimeUnixNano": "1794543500937605766",
            "durationMs": 266.052637,
            "attributes": {
              "rpc.transport": "websocket",
              "rpc.system": "effect-rpc",
              "rpc.method": "orchestration.dispatchCommand",
              "rpc.aggregate": "orchestrationV2",
              "orchestration_v2.command_id": "e85f45de-21eb-4ca7-9874-9b37844dad8d",
              "orchestration_v2.command_type": "message.dispatch",
              "orchestration_v2.thread_id": "d22ee050-2878-4ed0-b13e-8722d034f3c1"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.readCanonicalProjection",
            "traceId": "08154fd30cd60ceff3d787defebec7ef",
            "spanId": "16c47a9f62b7e3c6",
            "parentSpanId": "c86f97fe1f98cc05",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1794543500673318852",
            "endTimeUnixNano": "1794543500673837265",
            "durationMs": 0.518413,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.readCanonicalProjection",
            "traceId": "08154fd30cd60ceff3d787defebec7ef",
            "spanId": "7f43c60a97322f94",
            "parentSpanId": "0787b58d4f2355c8",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1794543500678691320",
            "endTimeUnixNano": "1794543500892902975",
            "durationMs": 214.211655,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ws.rpc.orchestration.dispatchCommand",
            "traceId": "08154fd30cd60ceff3d787defebec7ef",
            "spanId": "e27a767f6a4c4167",
            "parentSpanId": "27b5324f7e60b4bc",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1794543503770568577",
            "endTimeUnixNano": "1794543504172746477",
            "durationMs": 402.1779,
            "attributes": {
              "rpc.transport": "websocket",
              "rpc.system": "effect-rpc",
              "rpc.method": "orchestration.dispatchCommand",
              "rpc.aggregate": "orchestrationV2",
              "orchestration_v2.command_id": "cbf65cc0-611d-4fc1-bf97-8b0ea96b3cfd",
              "orchestration_v2.command_type": "message.dispatch",
              "orchestration_v2.thread_id": "d22ee050-2878-4ed0-b13e-8722d034f3c1"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.readCanonicalProjection",
            "traceId": "08154fd30cd60ceff3d787defebec7ef",
            "spanId": "8d8265c4c046697d",
            "parentSpanId": "2664f41ef095b89f",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1794543503771842427",
            "endTimeUnixNano": "1794543503772224574",
            "durationMs": 0.382147,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.readCanonicalProjection",
            "traceId": "08154fd30cd60ceff3d787defebec7ef",
            "spanId": "a18bb091233b0481",
            "parentSpanId": "d2f86898778b566e",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1794543503773473657",
            "endTimeUnixNano": "1794543504091015929",
            "durationMs": 317.542272,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ws.rpc.orchestration.dispatchCommand",
            "traceId": "08154fd30cd60ceff3d787defebec7ef",
            "spanId": "3fb900655d467c0f",
            "parentSpanId": "27b5324f7e60b4bc",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1794543504706559987",
            "endTimeUnixNano": "1794543504839009394",
            "durationMs": 132.449407,
            "attributes": {
              "rpc.transport": "websocket",
              "rpc.system": "effect-rpc",
              "rpc.method": "orchestration.dispatchCommand",
              "rpc.aggregate": "orchestrationV2",
              "orchestration_v2.command_id": "f27ca963-40b1-4885-a8d1-166495e77269",
              "orchestration_v2.command_type": "queued-run.edit",
              "orchestration_v2.thread_id": "d22ee050-2878-4ed0-b13e-8722d034f3c1"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.readCanonicalProjection",
            "traceId": "08154fd30cd60ceff3d787defebec7ef",
            "spanId": "f33aaa298780572a",
            "parentSpanId": "9cb96d2a7a98b198",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1794543504707647737",
            "endTimeUnixNano": "1794543504834720677",
            "durationMs": 127.07294,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ws.rpc.orchestration.dispatchCommand",
            "traceId": "08154fd30cd60ceff3d787defebec7ef",
            "spanId": "bd81aad89a785539",
            "parentSpanId": "27b5324f7e60b4bc",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1794543505899830696",
            "endTimeUnixNano": "1794543506065163331",
            "durationMs": 165.332635,
            "attributes": {
              "rpc.transport": "websocket",
              "rpc.system": "effect-rpc",
              "rpc.method": "orchestration.dispatchCommand",
              "rpc.aggregate": "orchestrationV2",
              "orchestration_v2.command_id": "a91fed32-8f63-4f0a-a3ff-78c8aa85a6ff",
              "orchestration_v2.command_type": "queued-message.promote-to-steer",
              "orchestration_v2.thread_id": "d22ee050-2878-4ed0-b13e-8722d034f3c1"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.readCanonicalProjection",
            "traceId": "08154fd30cd60ceff3d787defebec7ef",
            "spanId": "73bcef4fe22e5f2b",
            "parentSpanId": "906b4fdb0cef0707",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1794543505901467466",
            "endTimeUnixNano": "1794543506048512395",
            "durationMs": 147.044929,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.readCanonicalProjection",
            "traceId": "08154fd30cd60ceff3d787defebec7ef",
            "spanId": "d36d5edcb7ba9509",
            "parentSpanId": "d948fa8a48f7faeb",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1794543506050599159",
            "endTimeUnixNano": "1794543506051108564",
            "durationMs": 0.509405,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ws.rpc.orchestration.dispatchCommand",
            "traceId": "08154fd30cd60ceff3d787defebec7ef",
            "spanId": "71187f4c5269ec3a",
            "parentSpanId": "27b5324f7e60b4bc",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1794543509424671756",
            "endTimeUnixNano": "1794543509432751545",
            "durationMs": 8.079789,
            "attributes": {
              "rpc.transport": "websocket",
              "rpc.system": "effect-rpc",
              "rpc.method": "orchestration.dispatchCommand",
              "rpc.aggregate": "orchestrationV2",
              "orchestration_v2.command_id": "50e694a1-6e5b-47ed-b830-94d21917b131",
              "orchestration_v2.command_type": "thread.visit",
              "orchestration_v2.thread_id": "d22ee050-2878-4ed0-b13e-8722d034f3c1"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ws.rpc.orchestration.dispatchCommand",
            "traceId": "08154fd30cd60ceff3d787defebec7ef",
            "spanId": "279f1cb25d86c20c",
            "parentSpanId": "27b5324f7e60b4bc",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1794543516971662654",
            "endTimeUnixNano": "1794543517502563269",
            "durationMs": 530.900615,
            "attributes": {
              "rpc.transport": "websocket",
              "rpc.system": "effect-rpc",
              "rpc.method": "orchestration.dispatchCommand",
              "rpc.aggregate": "orchestrationV2",
              "orchestration_v2.command_id": "fdbdb839-32a5-4ba4-aa95-ff4b632d7d41",
              "orchestration_v2.command_type": "thread.stop",
              "orchestration_v2.thread_id": "d22ee050-2878-4ed0-b13e-8722d034f3c1"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.readCanonicalProjection",
            "traceId": "08154fd30cd60ceff3d787defebec7ef",
            "spanId": "e177b9481bfd6500",
            "parentSpanId": "3649416e52891e39",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1794543516973616770",
            "endTimeUnixNano": "1794543517056211949",
            "durationMs": 82.595179,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.readCanonicalProjection",
            "traceId": "08154fd30cd60ceff3d787defebec7ef",
            "spanId": "0a74ee4fc0350783",
            "parentSpanId": "975bd6766b180004",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1794543517057238916",
            "endTimeUnixNano": "1794543517352330651",
            "durationMs": 295.091735,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.readCanonicalProjection",
            "traceId": "08154fd30cd60ceff3d787defebec7ef",
            "spanId": "8b39750eb50181b3",
            "parentSpanId": "f9aa22b58177292c",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1794543517357199244",
            "endTimeUnixNano": "1794543517486841605",
            "durationMs": 129.642361,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.readCanonicalProjection",
            "traceId": "08154fd30cd60ceff3d787defebec7ef",
            "spanId": "2f57969fbad240e4",
            "parentSpanId": "ecc97a94ce858454",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1794543517490982653",
            "endTimeUnixNano": "1794543517491575025",
            "durationMs": 0.592372,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ws.rpc.orchestration.dispatchCommand",
            "traceId": "08154fd30cd60ceff3d787defebec7ef",
            "spanId": "7698ec87782d3052",
            "parentSpanId": "27b5324f7e60b4bc",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1794543517823983035",
            "endTimeUnixNano": "1794543518553698009",
            "durationMs": 729.714974,
            "attributes": {
              "rpc.transport": "websocket",
              "rpc.system": "effect-rpc",
              "rpc.method": "orchestration.dispatchCommand",
              "rpc.aggregate": "orchestrationV2",
              "orchestration_v2.command_id": "0d6e7ed2-3b35-4ec2-ac01-557d3726d045",
              "orchestration_v2.command_type": "thread.visit",
              "orchestration_v2.thread_id": "d22ee050-2878-4ed0-b13e-8722d034f3c1"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ws.rpc.orchestration.dispatchCommand",
            "traceId": "08154fd30cd60ceff3d787defebec7ef",
            "spanId": "28ada813dae55e23",
            "parentSpanId": "27b5324f7e60b4bc",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1794543518599548615",
            "endTimeUnixNano": "1794543518615689405",
            "durationMs": 16.14079,
            "attributes": {
              "rpc.transport": "websocket",
              "rpc.system": "effect-rpc",
              "rpc.method": "orchestration.dispatchCommand",
              "rpc.aggregate": "orchestrationV2",
              "orchestration_v2.command_id": "29cc9b35-af8d-4609-b9eb-fa85bbefc853",
              "orchestration_v2.command_type": "thread.visit",
              "orchestration_v2.thread_id": "d22ee050-2878-4ed0-b13e-8722d034f3c1"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          }
        ]
      },
      "filterReadDiagnostic": {
        "historyItems": 34206,
        "results": [
          {
            "label": "conversation-types",
            "count": 3602,
            "idsMatch": true,
            "durationMs": 75.49302499999999,
            "semanticHash": "5fc440d8a2b3cc9a8d3e8d760f26702c91ddf23a64265a1a3207718989e0891f",
            "plans": [
              {
                "query": "\n                SELECT payload_json\n                FROM orchestration_v2_projection_turn_items\n                WHERE rowid IN (\n                    SELECT rowid FROM orchestration_v2_projection_turn_items\n                    WHERE \n      thread_id = ?\n        \n        AND type IN (SELECT value FROM json_each(?))\n        \n        \n        \n        \n    \n                  )\n                ORDER BY ordinal ASC, turn_item_id ASC\n              ",
                "plan": [
                  {
                    "id": 3,
                    "parent": 0,
                    "notused": 91,
                    "detail": "SEARCH orchestration_v2_projection_turn_items USING INTEGER PRIMARY KEY (rowid=?)"
                  },
                  {
                    "id": 7,
                    "parent": 0,
                    "notused": 0,
                    "detail": "LIST SUBQUERY 2"
                  },
                  {
                    "id": 9,
                    "parent": 7,
                    "notused": 54,
                    "detail": "SEARCH orchestration_v2_projection_turn_items USING COVERING INDEX orchestration_v2_projection_turn_items_thread_type_idx (thread_id=? AND type=?)"
                  },
                  {
                    "id": 15,
                    "parent": 7,
                    "notused": 0,
                    "detail": "LIST SUBQUERY 1"
                  },
                  {
                    "id": 17,
                    "parent": 15,
                    "notused": 0,
                    "detail": "SCAN json_each VIRTUAL TABLE INDEX 1:"
                  },
                  {
                    "id": 54,
                    "parent": 0,
                    "notused": 0,
                    "detail": "USE TEMP B-TREE FOR ORDER BY"
                  }
                ]
              }
            ]
          },
          {
            "label": "tool-type",
            "count": 28802,
            "idsMatch": true,
            "durationMs": 1004.085525,
            "semanticHash": "3b7ad64659f3b895399b303e8abceedbedbc3f1c893e943a9ea7a876f34ce030",
            "plans": [
              {
                "query": "\n                SELECT payload_json\n                FROM orchestration_v2_projection_turn_items\n                WHERE rowid IN (\n                    SELECT rowid FROM orchestration_v2_projection_turn_items\n                    WHERE \n      thread_id = ?\n        \n        AND type IN (SELECT value FROM json_each(?))\n        \n        \n        \n        \n    \n                  )\n                ORDER BY ordinal ASC, turn_item_id ASC\n              ",
                "plan": [
                  {
                    "id": 3,
                    "parent": 0,
                    "notused": 91,
                    "detail": "SEARCH orchestration_v2_projection_turn_items USING INTEGER PRIMARY KEY (rowid=?)"
                  },
                  {
                    "id": 7,
                    "parent": 0,
                    "notused": 0,
                    "detail": "LIST SUBQUERY 2"
                  },
                  {
                    "id": 9,
                    "parent": 7,
                    "notused": 54,
                    "detail": "SEARCH orchestration_v2_projection_turn_items USING COVERING INDEX orchestration_v2_projection_turn_items_thread_type_idx (thread_id=? AND type=?)"
                  },
                  {
                    "id": 15,
                    "parent": 7,
                    "notused": 0,
                    "detail": "LIST SUBQUERY 1"
                  },
                  {
                    "id": 17,
                    "parent": 15,
                    "notused": 0,
                    "detail": "SCAN json_each VIRTUAL TABLE INDEX 1:"
                  },
                  {
                    "id": 54,
                    "parent": 0,
                    "notused": 0,
                    "detail": "USE TEMP B-TREE FOR ORDER BY"
                  }
                ]
              }
            ]
          },
          {
            "label": "tool-type-completed",
            "count": 28800,
            "idsMatch": true,
            "durationMs": 1348.3197619999996,
            "semanticHash": "c1a74eff6e5d39e570883973a2c6931646b3cd8bf3d275fab6afb206a75c8136",
            "plans": [
              {
                "query": "\n                SELECT payload_json\n                FROM orchestration_v2_projection_turn_items\n                WHERE rowid IN (\n                    SELECT rowid FROM orchestration_v2_projection_turn_items\n                    WHERE \n      thread_id = ?\n        \n        AND type IN (SELECT value FROM json_each(?))\n        AND status IN (SELECT value FROM json_each(?))\n        \n        \n        \n    \n                  )\n                ORDER BY ordinal ASC, turn_item_id ASC\n              ",
                "plan": [
                  {
                    "id": 3,
                    "parent": 0,
                    "notused": 91,
                    "detail": "SEARCH orchestration_v2_projection_turn_items USING INTEGER PRIMARY KEY (rowid=?)"
                  },
                  {
                    "id": 7,
                    "parent": 0,
                    "notused": 0,
                    "detail": "LIST SUBQUERY 3"
                  },
                  {
                    "id": 9,
                    "parent": 7,
                    "notused": 54,
                    "detail": "SEARCH orchestration_v2_projection_turn_items USING COVERING INDEX orchestration_v2_projection_turn_items_thread_type_idx (thread_id=? AND type=? AND status=?)"
                  },
                  {
                    "id": 15,
                    "parent": 7,
                    "notused": 0,
                    "detail": "LIST SUBQUERY 1"
                  },
                  {
                    "id": 17,
                    "parent": 15,
                    "notused": 0,
                    "detail": "SCAN json_each VIRTUAL TABLE INDEX 1:"
                  },
                  {
                    "id": 35,
                    "parent": 7,
                    "notused": 0,
                    "detail": "LIST SUBQUERY 2"
                  },
                  {
                    "id": 37,
                    "parent": 35,
                    "notused": 0,
                    "detail": "SCAN json_each VIRTUAL TABLE INDEX 1:"
                  },
                  {
                    "id": 76,
                    "parent": 0,
                    "notused": 0,
                    "detail": "USE TEMP B-TREE FOR ORDER BY"
                  }
                ]
              }
            ]
          },
          {
            "label": "active-statuses",
            "count": 1,
            "idsMatch": true,
            "durationMs": 2.2242129999995086,
            "semanticHash": "ad0f21eda2f75355add5981302dd798f04e010ac62509839b3a54e92aa5ea71d",
            "plans": [
              {
                "query": "\n                SELECT payload_json\n                FROM orchestration_v2_projection_turn_items\n                WHERE rowid IN (\n                    SELECT rowid FROM orchestration_v2_projection_turn_items\n                    WHERE \n      thread_id = ?\n        \n        AND type IN (SELECT value FROM json_each(?))\n        AND status IN (SELECT value FROM json_each(?))\n        \n        \n        \n    \n                  )\n                ORDER BY ordinal ASC, turn_item_id ASC\n              ",
                "plan": [
                  {
                    "id": 3,
                    "parent": 0,
                    "notused": 91,
                    "detail": "SEARCH orchestration_v2_projection_turn_items USING INTEGER PRIMARY KEY (rowid=?)"
                  },
                  {
                    "id": 7,
                    "parent": 0,
                    "notused": 0,
                    "detail": "LIST SUBQUERY 3"
                  },
                  {
                    "id": 9,
                    "parent": 7,
                    "notused": 54,
                    "detail": "SEARCH orchestration_v2_projection_turn_items USING COVERING INDEX orchestration_v2_projection_turn_items_thread_type_idx (thread_id=? AND type=? AND status=?)"
                  },
                  {
                    "id": 15,
                    "parent": 7,
                    "notused": 0,
                    "detail": "LIST SUBQUERY 1"
                  },
                  {
                    "id": 17,
                    "parent": 15,
                    "notused": 0,
                    "detail": "SCAN json_each VIRTUAL TABLE INDEX 1:"
                  },
                  {
                    "id": 35,
                    "parent": 7,
                    "notused": 0,
                    "detail": "LIST SUBQUERY 2"
                  },
                  {
                    "id": 37,
                    "parent": 35,
                    "notused": 0,
                    "detail": "SCAN json_each VIRTUAL TABLE INDEX 1:"
                  },
                  {
                    "id": 76,
                    "parent": 0,
                    "notused": 0,
                    "detail": "USE TEMP B-TREE FOR ORDER BY"
                  }
                ]
              }
            ]
          },
          {
            "label": "single-run",
            "count": 2,
            "idsMatch": true,
            "durationMs": 0.841710000000603,
            "semanticHash": "ccf9fd8d6c9527882112832c22a2b9a9208ea0a5c7d6cac459c97a4e1b9a3892",
            "plans": [
              {
                "query": "\n                SELECT payload_json\n                FROM orchestration_v2_projection_turn_items\n                WHERE rowid IN (\n                    SELECT rowid FROM orchestration_v2_projection_turn_items\n                    WHERE \n      thread_id = ?\n        \n        AND type IN (SELECT value FROM json_each(?))\n        \n        AND run_id = ?\n        \n        \n    \n                  )\n                ORDER BY ordinal ASC, turn_item_id ASC\n              ",
                "plan": [
                  {
                    "id": 3,
                    "parent": 0,
                    "notused": 91,
                    "detail": "SEARCH orchestration_v2_projection_turn_items USING INTEGER PRIMARY KEY (rowid=?)"
                  },
                  {
                    "id": 7,
                    "parent": 0,
                    "notused": 0,
                    "detail": "LIST SUBQUERY 2"
                  },
                  {
                    "id": 10,
                    "parent": 7,
                    "notused": 61,
                    "detail": "SEARCH orchestration_v2_projection_turn_items USING INDEX orchestration_v2_projection_turn_items_thread_run_idx (thread_id=? AND run_id=?)"
                  },
                  {
                    "id": 22,
                    "parent": 7,
                    "notused": 0,
                    "detail": "LIST SUBQUERY 1"
                  },
                  {
                    "id": 25,
                    "parent": 22,
                    "notused": 0,
                    "detail": "SCAN json_each VIRTUAL TABLE INDEX 1:"
                  },
                  {
                    "id": 34,
                    "parent": 22,
                    "notused": 0,
                    "detail": "CREATE BLOOM FILTER"
                  },
                  {
                    "id": 57,
                    "parent": 0,
                    "notused": 0,
                    "detail": "USE TEMP B-TREE FOR ORDER BY"
                  }
                ]
              }
            ]
          },
          {
            "label": "multiple-runs-with-null",
            "count": 21,
            "idsMatch": true,
            "durationMs": 67.1572470000001,
            "semanticHash": "4c965ad54b55e2ccb8477ea9a809db90067611da5b78e42705c160ed23194409",
            "plans": [
              {
                "query": "\n                SELECT payload_json\n                FROM orchestration_v2_projection_turn_items\n                WHERE rowid IN (\n                    SELECT rowid FROM orchestration_v2_projection_turn_items\n                    WHERE \n      thread_id = ?\n        \n        AND type IN (SELECT value FROM json_each(?))\n        \n        \n        \n        AND (run_id IN (SELECT value FROM json_each(?)) OR (? = 1 AND run_id IS NULL))\n    \n                  )\n                ORDER BY ordinal ASC, turn_item_id ASC\n              ",
                "plan": [
                  {
                    "id": 3,
                    "parent": 0,
                    "notused": 91,
                    "detail": "SEARCH orchestration_v2_projection_turn_items USING INTEGER PRIMARY KEY (rowid=?)"
                  },
                  {
                    "id": 7,
                    "parent": 0,
                    "notused": 0,
                    "detail": "LIST SUBQUERY 3"
                  },
                  {
                    "id": 10,
                    "parent": 7,
                    "notused": 62,
                    "detail": "SEARCH orchestration_v2_projection_turn_items USING INDEX orchestration_v2_projection_turn_items_thread_type_idx (thread_id=? AND type=?)"
                  },
                  {
                    "id": 16,
                    "parent": 7,
                    "notused": 0,
                    "detail": "LIST SUBQUERY 1"
                  },
                  {
                    "id": 18,
                    "parent": 16,
                    "notused": 0,
                    "detail": "SCAN json_each VIRTUAL TABLE INDEX 1:"
                  },
                  {
                    "id": 44,
                    "parent": 7,
                    "notused": 0,
                    "detail": "LIST SUBQUERY 2"
                  },
                  {
                    "id": 47,
                    "parent": 44,
                    "notused": 0,
                    "detail": "SCAN json_each VIRTUAL TABLE INDEX 1:"
                  },
                  {
                    "id": 56,
                    "parent": 44,
                    "notused": 0,
                    "detail": "CREATE BLOOM FILTER"
                  },
                  {
                    "id": 82,
                    "parent": 0,
                    "notused": 0,
                    "detail": "USE TEMP B-TREE FOR ORDER BY"
                  }
                ]
              }
            ]
          },
          {
            "label": "nodes",
            "count": 18,
            "idsMatch": true,
            "durationMs": 62.99787500000002,
            "semanticHash": "a7ce5b2adaf10e7e451514c2770bc2a20ad8e9b73499df2fc8637ef656fac26c",
            "plans": [
              {
                "query": "\n                SELECT payload_json\n                FROM orchestration_v2_projection_turn_items\n                WHERE rowid IN (\n                    SELECT rowid FROM orchestration_v2_projection_turn_items\n                    WHERE \n      thread_id = ?\n        \n        AND type IN (SELECT value FROM json_each(?))\n        \n        \n        AND node_id IN (SELECT value FROM json_each(?))\n        \n    \n                  )\n                ORDER BY ordinal ASC, turn_item_id ASC\n              ",
                "plan": [
                  {
                    "id": 3,
                    "parent": 0,
                    "notused": 91,
                    "detail": "SEARCH orchestration_v2_projection_turn_items USING INTEGER PRIMARY KEY (rowid=?)"
                  },
                  {
                    "id": 7,
                    "parent": 0,
                    "notused": 0,
                    "detail": "LIST SUBQUERY 3"
                  },
                  {
                    "id": 10,
                    "parent": 7,
                    "notused": 62,
                    "detail": "SEARCH orchestration_v2_projection_turn_items USING INDEX orchestration_v2_projection_turn_items_thread_type_idx (thread_id=? AND type=?)"
                  },
                  {
                    "id": 16,
                    "parent": 7,
                    "notused": 0,
                    "detail": "LIST SUBQUERY 1"
                  },
                  {
                    "id": 18,
                    "parent": 16,
                    "notused": 0,
                    "detail": "SCAN json_each VIRTUAL TABLE INDEX 1:"
                  },
                  {
                    "id": 41,
                    "parent": 7,
                    "notused": 0,
                    "detail": "LIST SUBQUERY 2"
                  },
                  {
                    "id": 44,
                    "parent": 41,
                    "notused": 0,
                    "detail": "SCAN json_each VIRTUAL TABLE INDEX 1:"
                  },
                  {
                    "id": 53,
                    "parent": 41,
                    "notused": 0,
                    "detail": "CREATE BLOOM FILTER"
                  },
                  {
                    "id": 79,
                    "parent": 0,
                    "notused": 0,
                    "detail": "USE TEMP B-TREE FOR ORDER BY"
                  }
                ]
              }
            ]
          },
          {
            "label": "no-matching-request",
            "count": 0,
            "idsMatch": true,
            "durationMs": 1.316038999999364,
            "semanticHash": "4f53cda18c2baa0c0354bb5f9a3ecbe5ed12ab4d8e11ba873c2f11161202b945",
            "plans": [
              {
                "query": "\n                SELECT payload_json\n                FROM orchestration_v2_projection_turn_items\n                WHERE rowid IN (\n                    SELECT rowid FROM orchestration_v2_projection_turn_items\n                    WHERE \n      thread_id = ?\n        AND json_extract(payload_json, '$.requestId') IN (SELECT value FROM json_each(?))\n        AND type IN (SELECT value FROM json_each(?))\n        \n        \n        \n        \n    \n                  )\n                ORDER BY ordinal ASC, turn_item_id ASC\n              ",
                "plan": [
                  {
                    "id": 3,
                    "parent": 0,
                    "notused": 91,
                    "detail": "SEARCH orchestration_v2_projection_turn_items USING INTEGER PRIMARY KEY (rowid=?)"
                  },
                  {
                    "id": 7,
                    "parent": 0,
                    "notused": 0,
                    "detail": "LIST SUBQUERY 3"
                  },
                  {
                    "id": 10,
                    "parent": 7,
                    "notused": 62,
                    "detail": "SEARCH orchestration_v2_projection_turn_items USING INDEX orchestration_v2_projection_turn_items_thread_type_idx (thread_id=? AND type=?)"
                  },
                  {
                    "id": 16,
                    "parent": 7,
                    "notused": 0,
                    "detail": "LIST SUBQUERY 2"
                  },
                  {
                    "id": 18,
                    "parent": 16,
                    "notused": 0,
                    "detail": "SCAN json_each VIRTUAL TABLE INDEX 1:"
                  },
                  {
                    "id": 41,
                    "parent": 7,
                    "notused": 0,
                    "detail": "LIST SUBQUERY 1"
                  },
                  {
                    "id": 44,
                    "parent": 41,
                    "notused": 0,
                    "detail": "SCAN json_each VIRTUAL TABLE INDEX 1:"
                  },
                  {
                    "id": 53,
                    "parent": 41,
                    "notused": 0,
                    "detail": "CREATE BLOOM FILTER"
                  },
                  {
                    "id": 81,
                    "parent": 0,
                    "notused": 0,
                    "detail": "USE TEMP B-TREE FOR ORDER BY"
                  }
                ]
              }
            ]
          },
          {
            "label": "empty-types",
            "count": 0,
            "idsMatch": true,
            "durationMs": 0.4992160000001604,
            "semanticHash": "4f53cda18c2baa0c0354bb5f9a3ecbe5ed12ab4d8e11ba873c2f11161202b945",
            "plans": []
          },
          {
            "label": "all-types",
            "count": 34206,
            "idsMatch": true,
            "durationMs": 898.2496870000004,
            "semanticHash": "987a65bae2d5343c686d52257c0616d9017fa7d1a991f539bd137511c264db8a",
            "plans": [
              {
                "query": "\n                SELECT payload_json\n                FROM orchestration_v2_projection_turn_items\n                WHERE rowid IN (\n                    SELECT rowid FROM orchestration_v2_projection_turn_items\n                    WHERE \n      thread_id = ?\n        \n        AND type IN (SELECT value FROM json_each(?))\n        \n        \n        \n        \n    \n                  )\n                ORDER BY ordinal ASC, turn_item_id ASC\n              ",
                "plan": [
                  {
                    "id": 3,
                    "parent": 0,
                    "notused": 91,
                    "detail": "SEARCH orchestration_v2_projection_turn_items USING INTEGER PRIMARY KEY (rowid=?)"
                  },
                  {
                    "id": 7,
                    "parent": 0,
                    "notused": 0,
                    "detail": "LIST SUBQUERY 2"
                  },
                  {
                    "id": 9,
                    "parent": 7,
                    "notused": 54,
                    "detail": "SEARCH orchestration_v2_projection_turn_items USING COVERING INDEX orchestration_v2_projection_turn_items_thread_type_idx (thread_id=? AND type=?)"
                  },
                  {
                    "id": 15,
                    "parent": 7,
                    "notused": 0,
                    "detail": "LIST SUBQUERY 1"
                  },
                  {
                    "id": 17,
                    "parent": 15,
                    "notused": 0,
                    "detail": "SCAN json_each VIRTUAL TABLE INDEX 1:"
                  },
                  {
                    "id": 54,
                    "parent": 0,
                    "notused": 0,
                    "detail": "USE TEMP B-TREE FOR ORDER BY"
                  }
                ]
              }
            ]
          }
        ]
      },
      "cleanWarmTimings": {
        "measurements": {
          "source": "Real persistent WebSocket RPC, 3 warm repetitions, provider latches excluded from acknowledgement timing",
          "measurements": [
            {
              "trial": 1,
              "command": "message.dispatch",
              "commandId": "5e34c9d8-3890-49bb-8030-6a96640c56a0",
              "roundTripMs": 187.53501699999993
            },
            {
              "trial": 1,
              "command": "message.dispatch",
              "commandId": "99a3d43f-e6c3-4f29-b6d9-3c53c303ef11",
              "roundTripMs": 169.1960459999998
            },
            {
              "trial": 1,
              "command": "queued-run.edit",
              "commandId": "afea2d5f-9b5a-4353-a370-d335854a0ed0",
              "roundTripMs": 92.21582000000012
            },
            {
              "trial": 1,
              "command": "queued-message.promote-to-steer",
              "commandId": "5c419f64-76a5-40c7-995f-bc9324b15fc5",
              "roundTripMs": 219.87998400000015
            },
            {
              "trial": 1,
              "command": "run.interrupt",
              "commandId": "c3348b0e-8764-4e79-8863-4708acc5fd48",
              "roundTripMs": 320.5974339999998
            },
            {
              "trial": 2,
              "command": "message.dispatch",
              "commandId": "896ad953-8c42-4e57-aa35-321cd554f150",
              "roundTripMs": 1192.8293859999999
            },
            {
              "trial": 2,
              "command": "message.dispatch",
              "commandId": "dd6288b4-e9a6-4a32-b00e-edd2c49446da",
              "roundTripMs": 180.39236999999957
            },
            {
              "trial": 2,
              "command": "queued-run.edit",
              "commandId": "c4d3daf3-da8e-4ee9-ad38-c10adb89d460",
              "roundTripMs": 61.07462200000009
            },
            {
              "trial": 2,
              "command": "queued-message.promote-to-steer",
              "commandId": "db18a2fb-5a88-4bbd-9aa5-e736233c8581",
              "roundTripMs": 107.01863400000002
            },
            {
              "trial": 2,
              "command": "run.interrupt",
              "commandId": "8c8713ec-e4ca-4e58-abfc-cd2e7e952c33",
              "roundTripMs": 194.92973500000062
            },
            {
              "trial": 3,
              "command": "message.dispatch",
              "commandId": "d828aded-e8e9-4d40-8e58-7ee8ff30dc58",
              "roundTripMs": 682.4320719999996
            },
            {
              "trial": 3,
              "command": "message.dispatch",
              "commandId": "ff3078a5-797c-41b2-9a61-2739ad8cb95f",
              "roundTripMs": 109.44228300000032
            },
            {
              "trial": 3,
              "command": "queued-run.edit",
              "commandId": "a7c29f1a-f69e-4d7c-bc2c-89f2ce7bd9cf",
              "roundTripMs": 56.00277100000039
            },
            {
              "trial": 3,
              "command": "queued-message.promote-to-steer",
              "commandId": "404ca0e8-a1c9-4a78-9088-b88dad9969f8",
              "roundTripMs": 153.64352299999973
            },
            {
              "trial": 3,
              "command": "run.interrupt",
              "commandId": "b2fe720c-ae61-49ae-98fc-407736aa2467",
              "roundTripMs": 191.929803
            }
          ]
        },
        "serverSpans": [
          {
            "commandId": "5e34c9d8-3890-49bb-8030-6a96640c56a0",
            "command": "message.dispatch",
            "serverAckMs": 181.754858,
            "projectionReadMs": [
              0.621175,
              157.346297
            ],
            "projectionSumMs": 157.967472
          },
          {
            "commandId": "99a3d43f-e6c3-4f29-b6d9-3c53c303ef11",
            "command": "message.dispatch",
            "serverAckMs": 165.833655,
            "projectionReadMs": [
              0.540053,
              147.857786
            ],
            "projectionSumMs": 148.397839
          },
          {
            "commandId": "afea2d5f-9b5a-4353-a370-d335854a0ed0",
            "command": "queued-run.edit",
            "serverAckMs": 89.935431,
            "projectionReadMs": [
              81.063348
            ],
            "projectionSumMs": 81.063348
          },
          {
            "commandId": "5c419f64-76a5-40c7-995f-bc9324b15fc5",
            "command": "queued-message.promote-to-steer",
            "serverAckMs": 216.822617,
            "projectionReadMs": [
              174.019219,
              0.867177
            ],
            "projectionSumMs": 174.886396
          },
          {
            "commandId": "c3348b0e-8764-4e79-8863-4708acc5fd48",
            "command": "run.interrupt",
            "serverAckMs": 317.768203,
            "projectionReadMs": [
              136.770636,
              129.723038
            ],
            "projectionSumMs": 266.493674
          },
          {
            "commandId": "896ad953-8c42-4e57-aa35-321cd554f150",
            "command": "message.dispatch",
            "serverAckMs": 1188.525807,
            "projectionReadMs": [
              0.575229,
              318.481261
            ],
            "projectionSumMs": 319.05649
          },
          {
            "commandId": "dd6288b4-e9a6-4a32-b00e-edd2c49446da",
            "command": "message.dispatch",
            "serverAckMs": 130.586408,
            "projectionReadMs": [
              0.667823,
              118.598268
            ],
            "projectionSumMs": 119.266091
          },
          {
            "commandId": "c4d3daf3-da8e-4ee9-ad38-c10adb89d460",
            "command": "queued-run.edit",
            "serverAckMs": 59.13479,
            "projectionReadMs": [
              50.807591
            ],
            "projectionSumMs": 50.807591
          },
          {
            "commandId": "db18a2fb-5a88-4bbd-9aa5-e736233c8581",
            "command": "queued-message.promote-to-steer",
            "serverAckMs": 104.274333,
            "projectionReadMs": [
              90.148881,
              0.674255
            ],
            "projectionSumMs": 90.823136
          },
          {
            "commandId": "8c8713ec-e4ca-4e58-abfc-cd2e7e952c33",
            "command": "run.interrupt",
            "serverAckMs": 193.188487,
            "projectionReadMs": [
              93.935188,
              90.228119
            ],
            "projectionSumMs": 184.163307
          },
          {
            "commandId": "d828aded-e8e9-4d40-8e58-7ee8ff30dc58",
            "command": "message.dispatch",
            "serverAckMs": 673.417763,
            "projectionReadMs": [
              0.326172,
              270.035451
            ],
            "projectionSumMs": 270.361623
          },
          {
            "commandId": "ff3078a5-797c-41b2-9a61-2739ad8cb95f",
            "command": "message.dispatch",
            "serverAckMs": 107.61361,
            "projectionReadMs": [
              0.646845,
              97.616799
            ],
            "projectionSumMs": 98.263644
          },
          {
            "commandId": "a7c29f1a-f69e-4d7c-bc2c-89f2ce7bd9cf",
            "command": "queued-run.edit",
            "serverAckMs": 54.70754,
            "projectionReadMs": [
              50.881259
            ],
            "projectionSumMs": 50.881259
          },
          {
            "commandId": "404ca0e8-a1c9-4a78-9088-b88dad9969f8",
            "command": "queued-message.promote-to-steer",
            "serverAckMs": 151.399824,
            "projectionReadMs": [
              134.960407,
              2.222199
            ],
            "projectionSumMs": 137.182606
          },
          {
            "commandId": "b2fe720c-ae61-49ae-98fc-407736aa2467",
            "command": "run.interrupt",
            "serverAckMs": 190.464934,
            "projectionReadMs": [
              93.734339,
              90.22882
            ],
            "projectionSumMs": 183.96315900000002
          }
        ],
        "summary": {
          "message.dispatch": {
            "samples": 6,
            "medianServerAckMs": 173.79425650000002,
            "medianProjectionMs": 153.1826555
          },
          "queued-message.promote-to-steer": {
            "samples": 3,
            "medianServerAckMs": 151.399824,
            "medianProjectionMs": 137.182606
          },
          "queued-run.edit": {
            "samples": 3,
            "medianServerAckMs": 59.13479,
            "medianProjectionMs": 50.881259
          },
          "run.interrupt": {
            "samples": 3,
            "medianServerAckMs": 193.188487,
            "medianProjectionMs": 184.163307
          }
        }
      },
      "countProbe": {
        "measurements": {
          "source": "Real persistent WebSocket RPC, 3 warm repetitions, provider latches excluded from acknowledgement timing",
          "measurements": [
            {
              "trial": 1,
              "command": "message.dispatch",
              "commandId": "474d3329-c527-4179-a521-a6d5465c421d",
              "roundTripMs": 245.236667
            },
            {
              "trial": 1,
              "command": "message.dispatch",
              "commandId": "e8ec10db-2904-4a1e-839b-110fbee0cb9a",
              "roundTripMs": 162.03141899999991
            },
            {
              "trial": 1,
              "command": "queued-run.edit",
              "commandId": "95513433-08cf-4744-86df-357c2ff6b27a",
              "roundTripMs": 71.618473
            },
            {
              "trial": 1,
              "command": "queued-message.promote-to-steer",
              "commandId": "23893ec9-ee5d-4103-8414-d12f267a48de",
              "roundTripMs": 137.1216219999999
            },
            {
              "trial": 1,
              "command": "run.interrupt",
              "commandId": "06dabe7d-b87d-4c76-82d8-b3a83cad8c2f",
              "roundTripMs": 225.24422699999968
            },
            {
              "trial": 2,
              "command": "message.dispatch",
              "commandId": "11d3ef9a-c490-4f46-892d-00a2ff0810a6",
              "roundTripMs": 724.881777
            },
            {
              "trial": 2,
              "command": "message.dispatch",
              "commandId": "76b7d6ea-fb32-403b-8ba9-7ff778ef477c",
              "roundTripMs": 125.85019899999952
            },
            {
              "trial": 2,
              "command": "queued-run.edit",
              "commandId": "2ff3c848-1ebe-4bb0-ad92-40192a0acef2",
              "roundTripMs": 55.22369700000036
            },
            {
              "trial": 2,
              "command": "queued-message.promote-to-steer",
              "commandId": "9c6283ae-9768-4994-9277-4f0026ccf38c",
              "roundTripMs": 129.723207
            },
            {
              "trial": 2,
              "command": "run.interrupt",
              "commandId": "a005952f-a281-4943-aea6-d768eb5382bb",
              "roundTripMs": 276.76936099999966
            },
            {
              "trial": 3,
              "command": "message.dispatch",
              "commandId": "450c2611-7530-49b6-96b6-2c1d49335229",
              "roundTripMs": 754.5438610000001
            },
            {
              "trial": 3,
              "command": "message.dispatch",
              "commandId": "db42be9a-a0fa-44cb-869b-493e59023561",
              "roundTripMs": 157.7738870000003
            },
            {
              "trial": 3,
              "command": "queued-run.edit",
              "commandId": "7b492e86-72a2-45c0-89f6-3cdcdb7ba641",
              "roundTripMs": 71.4714469999999
            },
            {
              "trial": 3,
              "command": "queued-message.promote-to-steer",
              "commandId": "bc1085ac-abe8-4a82-8e63-379fcaf317b2",
              "roundTripMs": 176.92330399999992
            },
            {
              "trial": 3,
              "command": "run.interrupt",
              "commandId": "51f972b5-bbc5-41ce-ba8e-ba366e5abb7b",
              "roundTripMs": 304.6908199999998
            }
          ]
        },
        "serverSpans": [
          {
            "commandId": "474d3329-c527-4179-a521-a6d5465c421d",
            "command": "message.dispatch",
            "serverAckMs": 230.949675,
            "projectionReadMs": [
              1.706322,
              184.936594
            ],
            "projectionSumMs": 186.642916,
            "readCounts": [
              {
                "spanId": "88f4209e3d921591",
                "proof.fields": "[]",
                "proof.types": "[]",
                "proof.statuses": "[]",
                "proof.omitSettledLeafNodes": false,
                "proof.nodes": 0,
                "proof.turnItems": 0,
                "proof.reasoning": 0,
                "proof.toolNodes": 0,
                "proof.settledToolNodes": 0
              },
              {
                "spanId": "7219d02e2ef6cc54",
                "proof.fields": "[\"runs\",\"attempts\",\"nodes\",\"subagents\",\"providerSessions\",\"providerThreads\",\"providerTurns\",\"runtimeRequests\",\"messages\",\"turnItems\",\"checkpointScopes\",\"contextTransfers\"]",
                "proof.types": "[\"user_message\",\"error\"]",
                "proof.statuses": "[]",
                "proof.omitSettledLeafNodes": true,
                "proof.nodes": 1823,
                "proof.turnItems": 1815,
                "proof.reasoning": 0,
                "proof.toolNodes": 0,
                "proof.settledToolNodes": 0
              }
            ]
          },
          {
            "commandId": "e8ec10db-2904-4a1e-839b-110fbee0cb9a",
            "command": "message.dispatch",
            "serverAckMs": 158.897998,
            "projectionReadMs": [
              0.621746,
              139.181216
            ],
            "projectionSumMs": 139.802962,
            "readCounts": [
              {
                "spanId": "4d12d16957012a08",
                "proof.fields": "[]",
                "proof.types": "[]",
                "proof.statuses": "[]",
                "proof.omitSettledLeafNodes": false,
                "proof.nodes": 0,
                "proof.turnItems": 0,
                "proof.reasoning": 0,
                "proof.toolNodes": 0,
                "proof.settledToolNodes": 0
              },
              {
                "spanId": "54824d9f91af0deb",
                "proof.fields": "[\"runs\",\"attempts\",\"nodes\",\"subagents\",\"providerSessions\",\"providerThreads\",\"providerTurns\",\"runtimeRequests\",\"messages\",\"turnItems\",\"checkpointScopes\",\"contextTransfers\"]",
                "proof.types": "[\"user_message\",\"error\"]",
                "proof.statuses": "[]",
                "proof.omitSettledLeafNodes": true,
                "proof.nodes": 1826,
                "proof.turnItems": 1816,
                "proof.reasoning": 0,
                "proof.toolNodes": 1,
                "proof.settledToolNodes": 0
              }
            ]
          },
          {
            "commandId": "95513433-08cf-4744-86df-357c2ff6b27a",
            "command": "queued-run.edit",
            "serverAckMs": 69.394569,
            "projectionReadMs": [
              61.749513
            ],
            "projectionSumMs": 61.749513,
            "readCounts": [
              {
                "spanId": "f0956a78979cf434",
                "proof.fields": "[\"runs\",\"messages\",\"turnItems\"]",
                "proof.types": "[\"user_message\"]",
                "proof.statuses": "[]",
                "proof.omitSettledLeafNodes": false,
                "proof.nodes": 0,
                "proof.turnItems": 1816,
                "proof.reasoning": 0,
                "proof.toolNodes": 0,
                "proof.settledToolNodes": 0
              }
            ]
          },
          {
            "commandId": "23893ec9-ee5d-4103-8414-d12f267a48de",
            "command": "queued-message.promote-to-steer",
            "serverAckMs": 132.886163,
            "projectionReadMs": [
              98.078179,
              1.026136
            ],
            "projectionSumMs": 99.104315,
            "readCounts": [
              {
                "spanId": "2771cf4ea0bf1c40",
                "proof.fields": "[\"runs\",\"nodes\",\"attempts\",\"messages\",\"providerThreads\",\"providerTurns\",\"providerSessions\",\"turnItems\",\"runtimeRequests\",\"subagents\"]",
                "proof.types": "[\"user_message\"]",
                "proof.statuses": "[]",
                "proof.omitSettledLeafNodes": true,
                "proof.nodes": 1827,
                "proof.turnItems": 1816,
                "proof.reasoning": 0,
                "proof.toolNodes": 1,
                "proof.settledToolNodes": 0
              },
              {
                "spanId": "db4171c185b81a04",
                "proof.fields": "[\"turnItems\"]",
                "proof.types": "[\"run_interrupt_request\"]",
                "proof.statuses": "[]",
                "proof.omitSettledLeafNodes": false,
                "proof.nodes": 0,
                "proof.turnItems": 0,
                "proof.reasoning": 0,
                "proof.toolNodes": 0,
                "proof.settledToolNodes": 0
              }
            ]
          },
          {
            "commandId": "06dabe7d-b87d-4c76-82d8-b3a83cad8c2f",
            "command": "run.interrupt",
            "serverAckMs": 222.160911,
            "projectionReadMs": [
              103.08185,
              101.464565
            ],
            "projectionSumMs": 204.546415,
            "readCounts": [
              {
                "spanId": "f1fd3b73d640a48b",
                "proof.fields": "[\"runs\",\"nodes\",\"providerThreads\",\"providerTurns\",\"messages\",\"attempts\",\"turnItems\",\"subagents\",\"runtimeRequests\"]",
                "proof.types": "[\"command_execution\",\"dynamic_tool\",\"subagent\",\"assistant_message\",\"reasoning\"]",
                "proof.statuses": "[\"pending\",\"running\",\"waiting\"]",
                "proof.omitSettledLeafNodes": true,
                "proof.nodes": 1830,
                "proof.turnItems": 1,
                "proof.reasoning": 0,
                "proof.toolNodes": 2,
                "proof.settledToolNodes": 1
              },
              {
                "spanId": "50cf5dade9e60d43",
                "proof.fields": "[\"runs\",\"attempts\",\"nodes\",\"subagents\",\"providerSessions\",\"providerThreads\",\"providerTurns\",\"runtimeRequests\",\"messages\",\"turnItems\",\"checkpointScopes\",\"contextTransfers\"]",
                "proof.types": "[\"user_message\",\"error\"]",
                "proof.statuses": "[]",
                "proof.omitSettledLeafNodes": true,
                "proof.nodes": 1830,
                "proof.turnItems": 1817,
                "proof.reasoning": 0,
                "proof.toolNodes": 2,
                "proof.settledToolNodes": 1
              }
            ]
          },
          {
            "commandId": "11d3ef9a-c490-4f46-892d-00a2ff0810a6",
            "command": "message.dispatch",
            "serverAckMs": 721.256774,
            "projectionReadMs": [
              1.087772,
              213.487935
            ],
            "projectionSumMs": 214.575707,
            "readCounts": [
              {
                "spanId": "8da4f735a9d78850",
                "proof.fields": "[]",
                "proof.types": "[]",
                "proof.statuses": "[]",
                "proof.omitSettledLeafNodes": false,
                "proof.nodes": 0,
                "proof.turnItems": 0,
                "proof.reasoning": 0,
                "proof.toolNodes": 0,
                "proof.settledToolNodes": 0
              },
              {
                "spanId": "bfe07f525cc9a33d",
                "proof.fields": "[\"runs\",\"attempts\",\"nodes\",\"subagents\",\"providerSessions\",\"providerThreads\",\"providerTurns\",\"runtimeRequests\",\"messages\",\"turnItems\",\"checkpointScopes\",\"contextTransfers\"]",
                "proof.types": "[\"user_message\",\"error\"]",
                "proof.statuses": "[]",
                "proof.omitSettledLeafNodes": true,
                "proof.nodes": 1826,
                "proof.turnItems": 1817,
                "proof.reasoning": 0,
                "proof.toolNodes": 0,
                "proof.settledToolNodes": 0
              }
            ]
          },
          {
            "commandId": "76b7d6ea-fb32-403b-8ba9-7ff778ef477c",
            "command": "message.dispatch",
            "serverAckMs": 123.464121,
            "projectionReadMs": [
              0.881085,
              109.775711
            ],
            "projectionSumMs": 110.656796,
            "readCounts": [
              {
                "spanId": "9f817e38779569f3",
                "proof.fields": "[]",
                "proof.types": "[]",
                "proof.statuses": "[]",
                "proof.omitSettledLeafNodes": false,
                "proof.nodes": 0,
                "proof.turnItems": 0,
                "proof.reasoning": 0,
                "proof.toolNodes": 0,
                "proof.settledToolNodes": 0
              },
              {
                "spanId": "99d94ea33cc32817",
                "proof.fields": "[\"runs\",\"attempts\",\"nodes\",\"subagents\",\"providerSessions\",\"providerThreads\",\"providerTurns\",\"runtimeRequests\",\"messages\",\"turnItems\",\"checkpointScopes\",\"contextTransfers\"]",
                "proof.types": "[\"user_message\",\"error\"]",
                "proof.statuses": "[]",
                "proof.omitSettledLeafNodes": true,
                "proof.nodes": 1829,
                "proof.turnItems": 1818,
                "proof.reasoning": 0,
                "proof.toolNodes": 1,
                "proof.settledToolNodes": 0
              }
            ]
          },
          {
            "commandId": "2ff3c848-1ebe-4bb0-ad92-40192a0acef2",
            "command": "queued-run.edit",
            "serverAckMs": 53.71818,
            "projectionReadMs": [
              48.782729
            ],
            "projectionSumMs": 48.782729,
            "readCounts": [
              {
                "spanId": "6b8e623692d8e2d8",
                "proof.fields": "[\"runs\",\"messages\",\"turnItems\"]",
                "proof.types": "[\"user_message\"]",
                "proof.statuses": "[]",
                "proof.omitSettledLeafNodes": false,
                "proof.nodes": 0,
                "proof.turnItems": 1818,
                "proof.reasoning": 0,
                "proof.toolNodes": 0,
                "proof.settledToolNodes": 0
              }
            ]
          },
          {
            "commandId": "9c6283ae-9768-4994-9277-4f0026ccf38c",
            "command": "queued-message.promote-to-steer",
            "serverAckMs": 122.630355,
            "projectionReadMs": [
              102.524352,
              0.474591
            ],
            "projectionSumMs": 102.998943,
            "readCounts": [
              {
                "spanId": "b8821b190aea9440",
                "proof.fields": "[\"runs\",\"nodes\",\"attempts\",\"messages\",\"providerThreads\",\"providerTurns\",\"providerSessions\",\"turnItems\",\"runtimeRequests\",\"subagents\"]",
                "proof.types": "[\"user_message\"]",
                "proof.statuses": "[]",
                "proof.omitSettledLeafNodes": true,
                "proof.nodes": 1830,
                "proof.turnItems": 1818,
                "proof.reasoning": 0,
                "proof.toolNodes": 1,
                "proof.settledToolNodes": 0
              },
              {
                "spanId": "8074ae505835b1f3",
                "proof.fields": "[\"turnItems\"]",
                "proof.types": "[\"run_interrupt_request\"]",
                "proof.statuses": "[]",
                "proof.omitSettledLeafNodes": false,
                "proof.nodes": 0,
                "proof.turnItems": 0,
                "proof.reasoning": 0,
                "proof.toolNodes": 0,
                "proof.settledToolNodes": 0
              }
            ]
          },
          {
            "commandId": "a005952f-a281-4943-aea6-d768eb5382bb",
            "command": "run.interrupt",
            "serverAckMs": 273.748703,
            "projectionReadMs": [
              145.227593,
              113.171675
            ],
            "projectionSumMs": 258.399268,
            "readCounts": [
              {
                "spanId": "f5edb504b6d501c1",
                "proof.fields": "[\"runs\",\"nodes\",\"providerThreads\",\"providerTurns\",\"messages\",\"attempts\",\"turnItems\",\"subagents\",\"runtimeRequests\"]",
                "proof.types": "[\"command_execution\",\"dynamic_tool\",\"subagent\",\"assistant_message\",\"reasoning\"]",
                "proof.statuses": "[\"pending\",\"running\",\"waiting\"]",
                "proof.omitSettledLeafNodes": true,
                "proof.nodes": 1833,
                "proof.turnItems": 1,
                "proof.reasoning": 0,
                "proof.toolNodes": 2,
                "proof.settledToolNodes": 1
              },
              {
                "spanId": "fee8920589f467d2",
                "proof.fields": "[\"runs\",\"attempts\",\"nodes\",\"subagents\",\"providerSessions\",\"providerThreads\",\"providerTurns\",\"runtimeRequests\",\"messages\",\"turnItems\",\"checkpointScopes\",\"contextTransfers\"]",
                "proof.types": "[\"user_message\",\"error\"]",
                "proof.statuses": "[]",
                "proof.omitSettledLeafNodes": true,
                "proof.nodes": 1833,
                "proof.turnItems": 1819,
                "proof.reasoning": 0,
                "proof.toolNodes": 2,
                "proof.settledToolNodes": 1
              }
            ]
          },
          {
            "commandId": "450c2611-7530-49b6-96b6-2c1d49335229",
            "command": "message.dispatch",
            "serverAckMs": 742.09014,
            "projectionReadMs": [
              0.607861,
              238.980575
            ],
            "projectionSumMs": 239.588436,
            "readCounts": [
              {
                "spanId": "a37b6ad12df21171",
                "proof.fields": "[]",
                "proof.types": "[]",
                "proof.statuses": "[]",
                "proof.omitSettledLeafNodes": false,
                "proof.nodes": 0,
                "proof.turnItems": 0,
                "proof.reasoning": 0,
                "proof.toolNodes": 0,
                "proof.settledToolNodes": 0
              },
              {
                "spanId": "15af38b8b0378a3b",
                "proof.fields": "[\"runs\",\"attempts\",\"nodes\",\"subagents\",\"providerSessions\",\"providerThreads\",\"providerTurns\",\"runtimeRequests\",\"messages\",\"turnItems\",\"checkpointScopes\",\"contextTransfers\"]",
                "proof.types": "[\"user_message\",\"error\"]",
                "proof.statuses": "[]",
                "proof.omitSettledLeafNodes": true,
                "proof.nodes": 1829,
                "proof.turnItems": 1819,
                "proof.reasoning": 0,
                "proof.toolNodes": 0,
                "proof.settledToolNodes": 0
              }
            ]
          },
          {
            "commandId": "db42be9a-a0fa-44cb-869b-493e59023561",
            "command": "message.dispatch",
            "serverAckMs": 155.189298,
            "projectionReadMs": [
              0.594736,
              139.638042
            ],
            "projectionSumMs": 140.23277800000002,
            "readCounts": [
              {
                "spanId": "4209c208be409a47",
                "proof.fields": "[]",
                "proof.types": "[]",
                "proof.statuses": "[]",
                "proof.omitSettledLeafNodes": false,
                "proof.nodes": 0,
                "proof.turnItems": 0,
                "proof.reasoning": 0,
                "proof.toolNodes": 0,
                "proof.settledToolNodes": 0
              },
              {
                "spanId": "1f84ccf60edb5510",
                "proof.fields": "[\"runs\",\"attempts\",\"nodes\",\"subagents\",\"providerSessions\",\"providerThreads\",\"providerTurns\",\"runtimeRequests\",\"messages\",\"turnItems\",\"checkpointScopes\",\"contextTransfers\"]",
                "proof.types": "[\"user_message\",\"error\"]",
                "proof.statuses": "[]",
                "proof.omitSettledLeafNodes": true,
                "proof.nodes": 1832,
                "proof.turnItems": 1820,
                "proof.reasoning": 0,
                "proof.toolNodes": 1,
                "proof.settledToolNodes": 0
              }
            ]
          },
          {
            "commandId": "7b492e86-72a2-45c0-89f6-3cdcdb7ba641",
            "command": "queued-run.edit",
            "serverAckMs": 69.450806,
            "projectionReadMs": [
              62.945577
            ],
            "projectionSumMs": 62.945577,
            "readCounts": [
              {
                "spanId": "12b42f9edf08731c",
                "proof.fields": "[\"runs\",\"messages\",\"turnItems\"]",
                "proof.types": "[\"user_message\"]",
                "proof.statuses": "[]",
                "proof.omitSettledLeafNodes": false,
                "proof.nodes": 0,
                "proof.turnItems": 1820,
                "proof.reasoning": 0,
                "proof.toolNodes": 0,
                "proof.settledToolNodes": 0
              }
            ]
          },
          {
            "commandId": "bc1085ac-abe8-4a82-8e63-379fcaf317b2",
            "command": "queued-message.promote-to-steer",
            "serverAckMs": 172.992388,
            "projectionReadMs": [
              133.121464,
              0.786976
            ],
            "projectionSumMs": 133.90844,
            "readCounts": [
              {
                "spanId": "12268894eb577454",
                "proof.fields": "[\"runs\",\"nodes\",\"attempts\",\"messages\",\"providerThreads\",\"providerTurns\",\"providerSessions\",\"turnItems\",\"runtimeRequests\",\"subagents\"]",
                "proof.types": "[\"user_message\"]",
                "proof.statuses": "[]",
                "proof.omitSettledLeafNodes": true,
                "proof.nodes": 1833,
                "proof.turnItems": 1820,
                "proof.reasoning": 0,
                "proof.toolNodes": 1,
                "proof.settledToolNodes": 0
              },
              {
                "spanId": "7a1cb769f2f8d4b8",
                "proof.fields": "[\"turnItems\"]",
                "proof.types": "[\"run_interrupt_request\"]",
                "proof.statuses": "[]",
                "proof.omitSettledLeafNodes": false,
                "proof.nodes": 0,
                "proof.turnItems": 0,
                "proof.reasoning": 0,
                "proof.toolNodes": 0,
                "proof.settledToolNodes": 0
              }
            ]
          },
          {
            "commandId": "51f972b5-bbc5-41ce-ba8e-ba366e5abb7b",
            "command": "run.interrupt",
            "serverAckMs": 301.974061,
            "projectionReadMs": [
              138.049863,
              148.543845
            ],
            "projectionSumMs": 286.593708,
            "readCounts": [
              {
                "spanId": "0ed5e7e76977308f",
                "proof.fields": "[\"runs\",\"nodes\",\"providerThreads\",\"providerTurns\",\"messages\",\"attempts\",\"turnItems\",\"subagents\",\"runtimeRequests\"]",
                "proof.types": "[\"command_execution\",\"dynamic_tool\",\"subagent\",\"assistant_message\",\"reasoning\"]",
                "proof.statuses": "[\"pending\",\"running\",\"waiting\"]",
                "proof.omitSettledLeafNodes": true,
                "proof.nodes": 1836,
                "proof.turnItems": 1,
                "proof.reasoning": 0,
                "proof.toolNodes": 2,
                "proof.settledToolNodes": 1
              },
              {
                "spanId": "f3df9730ef716b80",
                "proof.fields": "[\"runs\",\"attempts\",\"nodes\",\"subagents\",\"providerSessions\",\"providerThreads\",\"providerTurns\",\"runtimeRequests\",\"messages\",\"turnItems\",\"checkpointScopes\",\"contextTransfers\"]",
                "proof.types": "[\"user_message\",\"error\"]",
                "proof.statuses": "[]",
                "proof.omitSettledLeafNodes": true,
                "proof.nodes": 1836,
                "proof.turnItems": 1821,
                "proof.reasoning": 0,
                "proof.toolNodes": 2,
                "proof.settledToolNodes": 1
              }
            ]
          }
        ],
        "summary": {
          "message.dispatch": {
            "samples": 6,
            "medianServerAckMs": 194.9238365,
            "medianProjectionMs": 163.43784700000003
          },
          "queued-message.promote-to-steer": {
            "samples": 3,
            "medianServerAckMs": 132.886163,
            "medianProjectionMs": 102.998943
          },
          "queued-run.edit": {
            "samples": 3,
            "medianServerAckMs": 69.394569,
            "medianProjectionMs": 61.749513
          },
          "run.interrupt": {
            "samples": 3,
            "medianServerAckMs": 273.748703,
            "medianProjectionMs": 258.399268
          }
        }
      },
      "activeReasoningUi": {
        "surface": "Web, Chromium, 1440x960, light",
        "startingState": "New empty synthetic thread",
        "before": {
          "type": "reasoning",
          "status": "running",
          "text": "Working."
        },
        "after": {
          "type": "reasoning",
          "status": "completed",
          "text": "Working."
        },
        "toolItems": 0,
        "visibleWorking": true,
        "visibleStopped": true,
        "privacyCrop": "1120x960 left crop of original 1440x960 viewport, identically applied to remove the environment workspace card."
      },
      "expandedLongReasoningUi": {
        "visibleWorkingCount": 1,
        "visibleStoppedCount": 1,
        "visibleTail": "Code\nSettled\n0\nQP\nQueue performance proof\n/\nLong history\nLoad earlier turns\nYou\n\nHISTORY-SEED 1791\n\n5:12 AM\n\nT3 Code\n\nHistory turn complete.\n\n5:12 AM\n\nYou\n\nHISTORY-SEED 1797\n\n5:12 AM\n\nWorked for 333ms\n5:12 AM\nT3 Code\n\nHistory turn complete.\n\n5:12 AM\n\nYou\n\nHISTORY-SEED 1798\n\n5:12 AM\n\nWorked for 126ms\n5:12 AM\nT3 Code\n\nHistory turn complete.\n\n5:12 AM\n\nYou\n\nHISTORY-SEED 1799\n\n5:12 AM\n\nWorked for 148ms\n5:12 AM\nT3 Code\n\nHistory turn complete.\n\n5:12 AM\n\nYou\n\nHISTORY-SEED 1800\n\n5:12 AM\n\nWorked for 127ms\n5:12 AM\nT3 Code\n\nHistory turn complete.\n\n5:12 AM\n\nYou\n\nContinue the work.\n\n5:18 AM\n\nSuperseded attempt\nCut off by a steer\nRan 1 command\n5:18 AM\nSteer\nYou\n\nPlease focus on message ordering, edited.\n\n5:18 AM\n\nRan 1 command\n5:18 AM\n\nThought\n\n5:18 AM\n\nWorking.\n\nsynthetic hold until cancel\n\n5:18 AM\nRun interrupted\u00b7\u00a0Stopped by user\n\n\n\n\nAsk anything. @ files, $ skills, / commands\nShowcase\nToggle Sidebar"
      },
      "activeReasoningReadCounts": {
        "measurements": {
          "source": "Real server command while reasoning is running; no tool calls",
          "before": {
            "status": "running",
            "text": "Working."
          },
          "after": {
            "status": "completed",
            "text": "Working."
          },
          "measurements": [
            {
              "commandId": "99f487f7-dd9a-420a-84a8-7a467fd9e37e",
              "command": "run.interrupt"
            }
          ]
        },
        "serverSpans": [
          {
            "commandId": "99f487f7-dd9a-420a-84a8-7a467fd9e37e",
            "command": "run.interrupt",
            "serverAckMs": 35.687742,
            "projectionReadMs": [
              6.377598,
              9.840047
            ],
            "projectionSumMs": 16.217645,
            "readCounts": [
              {
                "spanId": "cbb8c06a73b3edc2",
                "proof.fields": "[\"runs\",\"nodes\",\"providerThreads\",\"providerTurns\",\"messages\",\"attempts\",\"turnItems\",\"subagents\",\"runtimeRequests\"]",
                "proof.types": "[\"command_execution\",\"dynamic_tool\",\"subagent\",\"assistant_message\",\"reasoning\"]",
                "proof.statuses": "[\"pending\",\"running\",\"waiting\"]",
                "proof.omitSettledLeafNodes": true,
                "proof.nodes": 2,
                "proof.turnItems": 1,
                "proof.reasoning": 1,
                "proof.toolNodes": 0,
                "proof.settledToolNodes": 0
              },
              {
                "spanId": "32c51c3b77d19737",
                "proof.fields": "[\"runs\",\"attempts\",\"nodes\",\"subagents\",\"providerSessions\",\"providerThreads\",\"providerTurns\",\"runtimeRequests\",\"messages\",\"turnItems\",\"checkpointScopes\",\"contextTransfers\"]",
                "proof.types": "[\"user_message\",\"error\"]",
                "proof.statuses": "[]",
                "proof.omitSettledLeafNodes": true,
                "proof.nodes": 2,
                "proof.turnItems": 1,
                "proof.reasoning": 0,
                "proof.toolNodes": 0,
                "proof.settledToolNodes": 0
              }
            ]
          }
        ],
        "summary": {
          "run.interrupt": {
            "samples": 1,
            "medianServerAckMs": 35.687742,
            "medianProjectionMs": 16.217645
          }
        }
      },
      "additionalCliCallers": {
        "startedAt": "2026-11-13T04:31:12.392Z",
        "endedAt": "2026-11-13T04:31:21.061Z",
        "steps": [
          {
            "operation": "CLI thread send",
            "text": "CLI follow-up probe.",
            "wallMs": 1910.8687399999994,
            "delivery": "started",
            "runId": "run:thread:d22ee050-2878-4ed0-b13e-8722d034f3c1:ordinal:1823",
            "messageId": "message:mcp:client%3A02658a7e-9cb7-47ef-801d-f1b7b918758c:thread-send:d1280d7e-477d-41c3-86bd-034b60d6590c"
          },
          {
            "operation": "CLI thread send",
            "text": "CLI queued probe.",
            "wallMs": 1496.0669129999997,
            "delivery": "queued",
            "runId": "run:thread:d22ee050-2878-4ed0-b13e-8722d034f3c1:ordinal:1824",
            "messageId": "message:mcp:client%3A21bec99d-4124-4ba8-a41e-23b4420f4489:thread-send:03d4594b-eb06-46ca-8b4f-f470564d228f"
          },
          {
            "operation": "queued-run.cancel",
            "queuedRunId": "run:thread:d22ee050-2878-4ed0-b13e-8722d034f3c1:ordinal:1824"
          },
          {
            "operation": "provider-session.detach",
            "ackMs": 50.58472400000028
          },
          {
            "operation": "thread.stop"
          }
        ],
        "before": {
          "user_message:completed": 1821,
          "command_execution:completed": 28800,
          "assistant_message:completed": 1800,
          "checkpoint:completed": 1811,
          "reasoning:completed": 21,
          "command_execution:interrupted": 15,
          "run_interrupt_request:completed": 11,
          "run_interrupt_result:interrupted": 11
        },
        "afterDetachAndStop": {
          "user_message:completed": 1822,
          "command_execution:completed": 28800,
          "assistant_message:completed": 1800,
          "checkpoint:completed": 1812,
          "reasoning:completed": 22,
          "command_execution:interrupted": 16,
          "run_interrupt_request:completed": 12,
          "run_interrupt_result:interrupted": 12
        },
        "after": {
          "user_message:completed": 1822,
          "command_execution:completed": 28800,
          "assistant_message:completed": 1800,
          "checkpoint:completed": 1812,
          "reasoning:completed": 22,
          "command_execution:interrupted": 16,
          "run_interrupt_request:completed": 12,
          "run_interrupt_result:interrupted": 12
        },
        "lastUserMessages": [
          "Warm probe 3.",
          "Warm queued 3, edited.",
          "CLI follow-up probe.",
          "CLI queued probe."
        ],
        "sessions": [
          {
            "driver": "acpRegistry",
            "status": "ready"
          }
        ],
        "evidence": "Actual CLI -> MCP -> ThreadManagementService sends, queue cancellation, provider-session.detach, then explicit thread.stop; detach alone does not stop active work."
      },
      "migrationIndexMetadata": [
        {
          "name": "orchestration_v2_projection_turn_items_thread_ordinal_idx",
          "sql": "CREATE INDEX orchestration_v2_projection_turn_items_thread_ordinal_idx ON orchestration_v2_projection_turn_items(thread_id, ordinal, turn_item_id)"
        },
        {
          "name": "orchestration_v2_projection_turn_items_thread_run_idx",
          "sql": "CREATE INDEX orchestration_v2_projection_turn_items_thread_run_idx\n    ON orchestration_v2_projection_turn_items(thread_id, run_id)\n  "
        },
        {
          "name": "orchestration_v2_projection_turn_items_thread_type_idx",
          "sql": "CREATE INDEX orchestration_v2_projection_turn_items_thread_type_idx\n    ON orchestration_v2_projection_turn_items(thread_id, type, status)\n  "
        }
      ]
    }
  },
  "limitations": [
    "Single UI-run timings are noisy; queue acknowledgement was slower on head in that capture.",
    "Ten typed-read shapes exercise actual ProjectionStore code against the live synthetic database, not every caller end to end. Bulk reads returning most tool rows were sometimes slower on head.",
    "Supplementary count probes append identical commands after the original 1800-run captures; their row counts therefore include the later synthetic probe runs.",
    "The span-count observer was installed only after primary video captures and the clean three-repetition timing series. It adds annotations without changing filters, SQL, return values or dispatch behavior. Count-probe timings are separate and are not the headline timing comparison."
  ],
  "filterComparisons": [
    {
      "label": "conversation-types",
      "sameCount": true,
      "sameOrderedContents": true,
      "baseOrderedIdsMatchReference": true,
      "headOrderedIdsMatchReference": true,
      "baseMs": 99.81286,
      "headMs": 75.49302499999999
    },
    {
      "label": "tool-type",
      "sameCount": true,
      "sameOrderedContents": true,
      "baseOrderedIdsMatchReference": true,
      "headOrderedIdsMatchReference": true,
      "baseMs": 1043.1724439999998,
      "headMs": 1004.085525
    },
    {
      "label": "tool-type-completed",
      "sameCount": true,
      "sameOrderedContents": true,
      "baseOrderedIdsMatchReference": true,
      "headOrderedIdsMatchReference": true,
      "baseMs": 511.154411,
      "headMs": 1348.3197619999996
    },
    {
      "label": "active-statuses",
      "sameCount": true,
      "sameOrderedContents": true,
      "baseOrderedIdsMatchReference": true,
      "headOrderedIdsMatchReference": true,
      "baseMs": 36.932244999999966,
      "headMs": 2.2242129999995086
    },
    {
      "label": "single-run",
      "sameCount": true,
      "sameOrderedContents": true,
      "baseOrderedIdsMatchReference": true,
      "headOrderedIdsMatchReference": true,
      "baseMs": 28.5129909999996,
      "headMs": 0.841710000000603
    },
    {
      "label": "multiple-runs-with-null",
      "sameCount": true,
      "sameOrderedContents": true,
      "baseOrderedIdsMatchReference": true,
      "headOrderedIdsMatchReference": true,
      "baseMs": 40.30069399999957,
      "headMs": 67.1572470000001
    },
    {
      "label": "nodes",
      "sameCount": true,
      "sameOrderedContents": true,
      "baseOrderedIdsMatchReference": true,
      "headOrderedIdsMatchReference": true,
      "baseMs": 29.73625600000014,
      "headMs": 62.99787500000002
    },
    {
      "label": "no-matching-request",
      "sameCount": true,
      "sameOrderedContents": true,
      "baseOrderedIdsMatchReference": true,
      "headOrderedIdsMatchReference": true,
      "baseMs": 1.8183609999996406,
      "headMs": 1.316038999999364
    },
    {
      "label": "empty-types",
      "sameCount": true,
      "sameOrderedContents": true,
      "baseOrderedIdsMatchReference": true,
      "headOrderedIdsMatchReference": true,
      "baseMs": 0.6819099999993341,
      "headMs": 0.4992160000001604
    },
    {
      "label": "all-types",
      "sameCount": true,
      "sameOrderedContents": true,
      "baseOrderedIdsMatchReference": true,
      "headOrderedIdsMatchReference": true,
      "baseMs": 529.10131,
      "headMs": 898.2496870000004
    }
  ],
  "migrationUpgrade": {
    "source": "Actual head server startup against a read-only snapshot of the synthetic base database, captured after all browser flows; no real user database involved.",
    "baseSha": "95cb068c10a6cf0b33eed0a0cab3b298763fe852",
    "headSha": "2f889eb131d1a33bd039c1d14c42e0a3aff6be09",
    "startupTranscript": [
      "[04:34:22.467] INFO: Running database migrations",
      "[04:34:22.476] INFO: Upgrading database; migration: 88_TurnItemTypeStatusIndex; progress: 1 of 1",
      "[04:34:22.598] INFO: Migrations ran successfully; migrations: [88_TurnItemTypeStatusIndex]",
      "[04:34:23.499] INFO: Listening on loopback port 16222",
      "[04:34:23.696] INFO: V2 orchestration recovery completed; terminalizedRuns: 0, stoppedSessions: 0, closedRequests: 0, retiredEffects: 0, requeuedEffects: 0",
      "Environment discovery endpoint returned HTTP 200."
    ],
    "before": {
      "records": {
        "runs": {
          "count": 1836,
          "sha256": "43f999dbf61465d5cf16ed86c661c0f45e3f9886121fa3da64ada2b7dcb19499"
        },
        "turn_items": {
          "count": 34434,
          "sha256": "a14b74241fbebda217198f1eaedac7c491e3ca6a57d4eba268ac2da702bbe1bf"
        },
        "nodes": {
          "count": 32595,
          "sha256": "9a1bf8c658c1034771d721f0111f2fc82bd65300cd6262ea74e99267bacd653c"
        },
        "messages": {
          "count": 3642,
          "sha256": "cde0a40f8b8ff37c968f17a2d2d248cbb2bd6f0038a8a57c4b7146bdb33058ae"
        }
      },
      "indexes": [
        {
          "name": "orchestration_v2_projection_turn_items_thread_ordinal_idx",
          "sql": "CREATE INDEX orchestration_v2_projection_turn_items_thread_ordinal_idx ON orchestration_v2_projection_turn_items(thread_id, ordinal, turn_item_id)"
        },
        {
          "name": "orchestration_v2_projection_turn_items_thread_run_idx",
          "sql": "CREATE INDEX orchestration_v2_projection_turn_items_thread_run_idx\n    ON orchestration_v2_projection_turn_items(thread_id, run_id)\n  "
        }
      ],
      "migrations": [
        {
          "table": "effect_sql_migrations",
          "rows": [
            {
              "migration_id": 1,
              "created_at": "2026-11-13 03:42:53",
              "name": "OrchestrationEvents"
            },
            {
              "migration_id": 2,
              "created_at": "2026-11-13 03:42:53",
              "name": "OrchestrationCommandReceipts"
            },
            {
              "migration_id": 3,
              "created_at": "2026-11-13 03:42:53",
              "name": "CheckpointDiffBlobs"
            },
            {
              "migration_id": 4,
              "created_at": "2026-11-13 03:42:53",
              "name": "ProviderSessionRuntime"
            },
            {
              "migration_id": 5,
              "created_at": "2026-11-13 03:42:53",
              "name": "Projections"
            },
            {
              "migration_id": 6,
              "created_at": "2026-11-13 03:42:53",
              "name": "ProjectionThreadSessionRuntimeModeColumns"
            },
            {
              "migration_id": 7,
              "created_at": "2026-11-13 03:42:53",
              "name": "ProjectionThreadMessageAttachments"
            },
            {
              "migration_id": 8,
              "created_at": "2026-11-13 03:42:53",
              "name": "ProjectionThreadActivitySequence"
            },
            {
              "migration_id": 9,
              "created_at": "2026-11-13 03:42:53",
              "name": "ProviderSessionRuntimeMode"
            },
            {
              "migration_id": 10,
              "created_at": "2026-11-13 03:42:53",
              "name": "ProjectionThreadsRuntimeMode"
            },
            {
              "migration_id": 11,
              "created_at": "2026-11-13 03:42:53",
              "name": "OrchestrationThreadCreatedRuntimeMode"
            },
            {
              "migration_id": 12,
              "created_at": "2026-11-13 03:42:53",
              "name": "ProjectionThreadsInteractionMode"
            },
            {
              "migration_id": 13,
              "created_at": "2026-11-13 03:42:53",
              "name": "ProjectionThreadProposedPlans"
            },
            {
              "migration_id": 14,
              "created_at": "2026-11-13 03:42:53",
              "name": "ProjectionThreadProposedPlanImplementation"
            },
            {
              "migration_id": 15,
              "created_at": "2026-11-13 03:42:53",
              "name": "ProjectionTurnsSourceProposedPlan"
            },
            {
              "migration_id": 16,
              "created_at": "2026-11-13 03:42:53",
              "name": "CanonicalizeModelSelections"
            },
            {
              "migration_id": 17,
              "created_at": "2026-11-13 03:42:53",
              "name": "ProjectionThreadsArchivedAt"
            },
            {
              "migration_id": 18,
              "created_at": "2026-11-13 03:42:53",
              "name": "ProjectionThreadsArchivedAtIndex"
            },
            {
              "migration_id": 19,
              "created_at": "2026-11-13 03:42:53",
              "name": "ProjectionSnapshotLookupIndexes"
            },
            {
              "migration_id": 20,
              "created_at": "2026-11-13 03:42:53",
              "name": "AuthAccessManagement"
            },
            {
              "migration_id": 21,
              "created_at": "2026-11-13 03:42:53",
              "name": "AuthSessionClientMetadata"
            },
            {
              "migration_id": 22,
              "created_at": "2026-11-13 03:42:53",
              "name": "AuthSessionLastConnectedAt"
            },
            {
              "migration_id": 23,
              "created_at": "2026-11-13 03:42:53",
              "name": "ProjectionThreadShellSummary"
            },
            {
              "migration_id": 24,
              "created_at": "2026-11-13 03:42:53",
              "name": "BackfillProjectionThreadShellSummary"
            },
            {
              "migration_id": 25,
              "created_at": "2026-11-13 03:42:53",
              "name": "CleanupInvalidProjectionPendingApprovals"
            },
            {
              "migration_id": 26,
              "created_at": "2026-11-13 03:42:53",
              "name": "CanonicalizeModelSelectionOptions"
            },
            {
              "migration_id": 27,
              "created_at": "2026-11-13 03:42:53",
              "name": "ProviderSessionRuntimeInstanceId"
            },
            {
              "migration_id": 28,
              "created_at": "2026-11-13 03:42:53",
              "name": "ProjectionThreadSessionInstanceId"
            },
            {
              "migration_id": 29,
              "created_at": "2026-11-13 03:42:53",
              "name": "ProjectionThreadDetailOrderingIndexes"
            },
            {
              "migration_id": 30,
              "created_at": "2026-11-13 03:42:53",
              "name": "ProjectionThreadShellArchiveIndexes"
            },
            {
              "migration_id": 31,
              "created_at": "2026-11-13 03:42:53",
              "name": "AuthAuthorizationScopes"
            },
            {
              "migration_id": 32,
              "created_at": "2026-11-13 03:42:53",
              "name": "AuthPairingProofKeyThumbprint"
            },
            {
              "migration_id": 33,
              "created_at": "2026-11-13 03:42:53",
              "name": "ProjectionThreadsSettled"
            },
            {
              "migration_id": 34,
              "created_at": "2026-11-13 03:42:53",
              "name": "ProjectionThreadsSnoozed"
            },
            {
              "migration_id": 35,
              "created_at": "2026-11-13 03:42:53",
              "name": "ProjectionThreadTitleRegeneration"
            },
            {
              "migration_id": 36,
              "created_at": "2026-11-13 03:42:53",
              "name": "ProjectionThreadsPinned"
            },
            {
              "migration_id": 37,
              "created_at": "2026-11-13 03:42:53",
              "name": "ProjectionTurnsKeysetIndex"
            },
            {
              "migration_id": 38,
              "created_at": "2026-11-13 03:42:53",
              "name": "ProjectionThreadsPinOrderKey"
            },
            {
              "migration_id": 39,
              "created_at": "2026-11-13 03:42:53",
              "name": "ProjectionProjectsDefaultThreadEnvMode"
            },
            {
              "migration_id": 40,
              "created_at": "2026-11-13 03:42:53",
              "name": "ProjectionProjectFaviconPath"
            },
            {
              "migration_id": 41,
              "created_at": "2026-11-13 03:42:53",
              "name": "AuthSessionClientConnection"
            },
            {
              "migration_id": 42,
              "created_at": "2026-11-13 03:42:53",
              "name": "ProjectionThreadLinkedPullRequest"
            },
            {
              "migration_id": 43,
              "created_at": "2026-11-13 03:42:53",
              "name": "ProjectionThreadsUnsettledAt"
            },
            {
              "migration_id": 44,
              "created_at": "2026-11-13 03:42:53",
              "name": "ClearAutomaticProjectModelDefaults"
            },
            {
              "migration_id": 45,
              "created_at": "2026-11-13 03:42:53",
              "name": "ProjectionProjectsAutoPull"
            },
            {
              "migration_id": 46,
              "created_at": "2026-11-13 03:42:53",
              "name": "RepairAutomaticSettlementTimestamps"
            },
            {
              "migration_id": 47,
              "created_at": "2026-11-13 03:42:53",
              "name": "ProjectionProjectIcon"
            },
            {
              "migration_id": 48,
              "created_at": "2026-11-13 03:42:53",
              "name": "ProjectionThreadBranchPullRequest"
            },
            {
              "migration_id": 49,
              "created_at": "2026-11-13 03:42:53",
              "name": "ProjectionThreadsActiveOrderKey"
            },
            {
              "migration_id": 50,
              "created_at": "2026-11-13 03:42:53",
              "name": "ProjectionThreadPullRequests"
            },
            {
              "migration_id": 51,
              "created_at": "2026-11-13 03:42:53",
              "name": "ProjectionThreadMessageContext"
            },
            {
              "migration_id": 52,
              "created_at": "2026-11-13 03:42:53",
              "name": "ProjectionThreadTitleState"
            },
            {
              "migration_id": 53,
              "created_at": "2026-11-13 03:42:53",
              "name": "PullRequestFilesViewed"
            },
            {
              "migration_id": 54,
              "created_at": "2026-11-13 03:42:53",
              "name": "ProjectionThreadsAutoSettleDisabledAt"
            },
            {
              "migration_id": 55,
              "created_at": "2026-11-13 03:42:53",
              "name": "OrchestrationV2"
            },
            {
              "migration_id": 56,
              "created_at": "2026-11-13 03:42:53",
              "name": "RemoveRedundantProjectionIndexes"
            },
            {
              "migration_id": 57,
              "created_at": "2026-11-13 03:42:53",
              "name": "ScheduledTaskWebhooks"
            },
            {
              "migration_id": 58,
              "created_at": "2026-11-13 03:42:53",
              "name": "WebhookRelayDeliveries"
            },
            {
              "migration_id": 59,
              "created_at": "2026-11-13 03:42:53",
              "name": "McpAppModelContext"
            },
            {
              "migration_id": 60,
              "created_at": "2026-11-13 03:42:53",
              "name": "ThreadSnapshotWindowIndexes"
            },
            {
              "migration_id": 61,
              "created_at": "2026-11-13 03:42:53",
              "name": "PullRequestReviewGuides"
            },
            {
              "migration_id": 62,
              "created_at": "2026-11-13 03:42:53",
              "name": "ThreadFailureLookupIndex"
            },
            {
              "migration_id": 63,
              "created_at": "2026-11-13 03:42:53",
              "name": "DropUnusedV1Projections"
            },
            {
              "migration_id": 64,
              "created_at": "2026-11-13 03:42:53",
              "name": "CanonicalizeThreadPullRequestLinks"
            },
            {
              "migration_id": 65,
              "created_at": "2026-11-13 03:42:53",
              "name": "CodexUsageNativeTurnIndex"
            },
            {
              "migration_id": 66,
              "created_at": "2026-11-13 03:42:53",
              "name": "RepairClientSettlementTimestamps"
            },
            {
              "migration_id": 67,
              "created_at": "2026-11-13 03:42:53",
              "name": "WebhookDedupe"
            },
            {
              "migration_id": 68,
              "created_at": "2026-11-13 03:42:53",
              "name": "ShellStopRequestIndex"
            },
            {
              "migration_id": 69,
              "created_at": "2026-11-13 03:42:53",
              "name": "ThreadMessageSearch"
            },
            {
              "migration_id": 70,
              "created_at": "2026-11-13 03:42:53",
              "name": "PeerLinks"
            },
            {
              "migration_id": 71,
              "created_at": "2026-11-13 03:42:53",
              "name": "PeerLinkFence"
            },
            {
              "migration_id": 72,
              "created_at": "2026-11-13 03:42:53",
              "name": "WaitingLinkRequestIndex"
            },
            {
              "migration_id": 73,
              "created_at": "2026-11-13 03:42:53",
              "name": "ActiveTurnItemIndexes"
            },
            {
              "migration_id": 74,
              "created_at": "2026-11-13 03:42:53",
              "name": "ExcludeAttachmentPlaceholdersFromSearch"
            },
            {
              "migration_id": 75,
              "created_at": "2026-11-13 03:42:53",
              "name": "SubagentDeliveryState"
            },
            {
              "migration_id": 76,
              "created_at": "2026-11-13 03:42:53",
              "name": "ProjectionProjectsPinArchive"
            },
            {
              "migration_id": 77,
              "created_at": "2026-11-13 03:42:53",
              "name": "RepairBooleanSettledOverride"
            },
            {
              "migration_id": 78,
              "created_at": "2026-11-13 03:42:53",
              "name": "DropOrchestrationEventCorrelationIndex"
            },
            {
              "migration_id": 79,
              "created_at": "2026-11-13 03:42:53",
              "name": "DelegatedRecoveryIndexes"
            },
            {
              "migration_id": 80,
              "created_at": "2026-11-13 03:42:53",
              "name": "ScheduledTaskThreadMode"
            },
            {
              "migration_id": 81,
              "created_at": "2026-11-13 03:42:53",
              "name": "ProjectionMessageSearchText"
            },
            {
              "migration_id": 82,
              "created_at": "2026-11-13 03:42:53",
              "name": "TurnItemConversationIndex"
            },
            {
              "migration_id": 83,
              "created_at": "2026-11-13 03:42:53",
              "name": "CommandReadIndexes"
            },
            {
              "migration_id": 84,
              "created_at": "2026-11-13 03:42:53",
              "name": "LastExecutedRunIndex"
            },
            {
              "migration_id": 85,
              "created_at": "2026-11-13 03:42:53",
              "name": "TurnItemCounts"
            },
            {
              "migration_id": 86,
              "created_at": "2026-11-13 03:42:53",
              "name": "QueuedTurnInputIndex"
            },
            {
              "migration_id": 87,
              "created_at": "2026-11-13 03:42:53",
              "name": "ProjectionProjectsCustomTitle"
            }
          ]
        }
      ]
    },
    "after": {
      "records": {
        "runs": {
          "count": 1836,
          "sha256": "43f999dbf61465d5cf16ed86c661c0f45e3f9886121fa3da64ada2b7dcb19499"
        },
        "turn_items": {
          "count": 34434,
          "sha256": "a14b74241fbebda217198f1eaedac7c491e3ca6a57d4eba268ac2da702bbe1bf"
        },
        "nodes": {
          "count": 32595,
          "sha256": "9a1bf8c658c1034771d721f0111f2fc82bd65300cd6262ea74e99267bacd653c"
        },
        "messages": {
          "count": 3642,
          "sha256": "cde0a40f8b8ff37c968f17a2d2d248cbb2bd6f0038a8a57c4b7146bdb33058ae"
        }
      },
      "indexes": [
        {
          "name": "orchestration_v2_projection_turn_items_thread_ordinal_idx",
          "sql": "CREATE INDEX orchestration_v2_projection_turn_items_thread_ordinal_idx ON orchestration_v2_projection_turn_items(thread_id, ordinal, turn_item_id)"
        },
        {
          "name": "orchestration_v2_projection_turn_items_thread_run_idx",
          "sql": "CREATE INDEX orchestration_v2_projection_turn_items_thread_run_idx\n    ON orchestration_v2_projection_turn_items(thread_id, run_id)\n  "
        },
        {
          "name": "orchestration_v2_projection_turn_items_thread_type_idx",
          "sql": "CREATE INDEX orchestration_v2_projection_turn_items_thread_type_idx\n    ON orchestration_v2_projection_turn_items(thread_id, type, status)\n  "
        }
      ],
      "migrations": [
        {
          "table": "effect_sql_migrations",
          "rows": [
            {
              "migration_id": 1,
              "created_at": "2026-11-13 03:42:53",
              "name": "OrchestrationEvents"
            },
            {
              "migration_id": 2,
              "created_at": "2026-11-13 03:42:53",
              "name": "OrchestrationCommandReceipts"
            },
            {
              "migration_id": 3,
              "created_at": "2026-11-13 03:42:53",
              "name": "CheckpointDiffBlobs"
            },
            {
              "migration_id": 4,
              "created_at": "2026-11-13 03:42:53",
              "name": "ProviderSessionRuntime"
            },
            {
              "migration_id": 5,
              "created_at": "2026-11-13 03:42:53",
              "name": "Projections"
            },
            {
              "migration_id": 6,
              "created_at": "2026-11-13 03:42:53",
              "name": "ProjectionThreadSessionRuntimeModeColumns"
            },
            {
              "migration_id": 7,
              "created_at": "2026-11-13 03:42:53",
              "name": "ProjectionThreadMessageAttachments"
            },
            {
              "migration_id": 8,
              "created_at": "2026-11-13 03:42:53",
              "name": "ProjectionThreadActivitySequence"
            },
            {
              "migration_id": 9,
              "created_at": "2026-11-13 03:42:53",
              "name": "ProviderSessionRuntimeMode"
            },
            {
              "migration_id": 10,
              "created_at": "2026-11-13 03:42:53",
              "name": "ProjectionThreadsRuntimeMode"
            },
            {
              "migration_id": 11,
              "created_at": "2026-11-13 03:42:53",
              "name": "OrchestrationThreadCreatedRuntimeMode"
            },
            {
              "migration_id": 12,
              "created_at": "2026-11-13 03:42:53",
              "name": "ProjectionThreadsInteractionMode"
            },
            {
              "migration_id": 13,
              "created_at": "2026-11-13 03:42:53",
              "name": "ProjectionThreadProposedPlans"
            },
            {
              "migration_id": 14,
              "created_at": "2026-11-13 03:42:53",
              "name": "ProjectionThreadProposedPlanImplementation"
            },
            {
              "migration_id": 15,
              "created_at": "2026-11-13 03:42:53",
              "name": "ProjectionTurnsSourceProposedPlan"
            },
            {
              "migration_id": 16,
              "created_at": "2026-11-13 03:42:53",
              "name": "CanonicalizeModelSelections"
            },
            {
              "migration_id": 17,
              "created_at": "2026-11-13 03:42:53",
              "name": "ProjectionThreadsArchivedAt"
            },
            {
              "migration_id": 18,
              "created_at": "2026-11-13 03:42:53",
              "name": "ProjectionThreadsArchivedAtIndex"
            },
            {
              "migration_id": 19,
              "created_at": "2026-11-13 03:42:53",
              "name": "ProjectionSnapshotLookupIndexes"
            },
            {
              "migration_id": 20,
              "created_at": "2026-11-13 03:42:53",
              "name": "AuthAccessManagement"
            },
            {
              "migration_id": 21,
              "created_at": "2026-11-13 03:42:53",
              "name": "AuthSessionClientMetadata"
            },
            {
              "migration_id": 22,
              "created_at": "2026-11-13 03:42:53",
              "name": "AuthSessionLastConnectedAt"
            },
            {
              "migration_id": 23,
              "created_at": "2026-11-13 03:42:53",
              "name": "ProjectionThreadShellSummary"
            },
            {
              "migration_id": 24,
              "created_at": "2026-11-13 03:42:53",
              "name": "BackfillProjectionThreadShellSummary"
            },
            {
              "migration_id": 25,
              "created_at": "2026-11-13 03:42:53",
              "name": "CleanupInvalidProjectionPendingApprovals"
            },
            {
              "migration_id": 26,
              "created_at": "2026-11-13 03:42:53",
              "name": "CanonicalizeModelSelectionOptions"
            },
            {
              "migration_id": 27,
              "created_at": "2026-11-13 03:42:53",
              "name": "ProviderSessionRuntimeInstanceId"
            },
            {
              "migration_id": 28,
              "created_at": "2026-11-13 03:42:53",
              "name": "ProjectionThreadSessionInstanceId"
            },
            {
              "migration_id": 29,
              "created_at": "2026-11-13 03:42:53",
              "name": "ProjectionThreadDetailOrderingIndexes"
            },
            {
              "migration_id": 30,
              "created_at": "2026-11-13 03:42:53",
              "name": "ProjectionThreadShellArchiveIndexes"
            },
            {
              "migration_id": 31,
              "created_at": "2026-11-13 03:42:53",
              "name": "AuthAuthorizationScopes"
            },
            {
              "migration_id": 32,
              "created_at": "2026-11-13 03:42:53",
              "name": "AuthPairingProofKeyThumbprint"
            },
            {
              "migration_id": 33,
              "created_at": "2026-11-13 03:42:53",
              "name": "ProjectionThreadsSettled"
            },
            {
              "migration_id": 34,
              "created_at": "2026-11-13 03:42:53",
              "name": "ProjectionThreadsSnoozed"
            },
            {
              "migration_id": 35,
              "created_at": "2026-11-13 03:42:53",
              "name": "ProjectionThreadTitleRegeneration"
            },
            {
              "migration_id": 36,
              "created_at": "2026-11-13 03:42:53",
              "name": "ProjectionThreadsPinned"
            },
            {
              "migration_id": 37,
              "created_at": "2026-11-13 03:42:53",
              "name": "ProjectionTurnsKeysetIndex"
            },
            {
              "migration_id": 38,
              "created_at": "2026-11-13 03:42:53",
              "name": "ProjectionThreadsPinOrderKey"
            },
            {
              "migration_id": 39,
              "created_at": "2026-11-13 03:42:53",
              "name": "ProjectionProjectsDefaultThreadEnvMode"
            },
            {
              "migration_id": 40,
              "created_at": "2026-11-13 03:42:53",
              "name": "ProjectionProjectFaviconPath"
            },
            {
              "migration_id": 41,
              "created_at": "2026-11-13 03:42:53",
              "name": "AuthSessionClientConnection"
            },
            {
              "migration_id": 42,
              "created_at": "2026-11-13 03:42:53",
              "name": "ProjectionThreadLinkedPullRequest"
            },
            {
              "migration_id": 43,
              "created_at": "2026-11-13 03:42:53",
              "name": "ProjectionThreadsUnsettledAt"
            },
            {
              "migration_id": 44,
              "created_at": "2026-11-13 03:42:53",
              "name": "ClearAutomaticProjectModelDefaults"
            },
            {
              "migration_id": 45,
              "created_at": "2026-11-13 03:42:53",
              "name": "ProjectionProjectsAutoPull"
            },
            {
              "migration_id": 46,
              "created_at": "2026-11-13 03:42:53",
              "name": "RepairAutomaticSettlementTimestamps"
            },
            {
              "migration_id": 47,
              "created_at": "2026-11-13 03:42:53",
              "name": "ProjectionProjectIcon"
            },
            {
              "migration_id": 48,
              "created_at": "2026-11-13 03:42:53",
              "name": "ProjectionThreadBranchPullRequest"
            },
            {
              "migration_id": 49,
              "created_at": "2026-11-13 03:42:53",
              "name": "ProjectionThreadsActiveOrderKey"
            },
            {
              "migration_id": 50,
              "created_at": "2026-11-13 03:42:53",
              "name": "ProjectionThreadPullRequests"
            },
            {
              "migration_id": 51,
              "created_at": "2026-11-13 03:42:53",
              "name": "ProjectionThreadMessageContext"
            },
            {
              "migration_id": 52,
              "created_at": "2026-11-13 03:42:53",
              "name": "ProjectionThreadTitleState"
            },
            {
              "migration_id": 53,
              "created_at": "2026-11-13 03:42:53",
              "name": "PullRequestFilesViewed"
            },
            {
              "migration_id": 54,
              "created_at": "2026-11-13 03:42:53",
              "name": "ProjectionThreadsAutoSettleDisabledAt"
            },
            {
              "migration_id": 55,
              "created_at": "2026-11-13 03:42:53",
              "name": "OrchestrationV2"
            },
            {
              "migration_id": 56,
              "created_at": "2026-11-13 03:42:53",
              "name": "RemoveRedundantProjectionIndexes"
            },
            {
              "migration_id": 57,
              "created_at": "2026-11-13 03:42:53",
              "name": "ScheduledTaskWebhooks"
            },
            {
              "migration_id": 58,
              "created_at": "2026-11-13 03:42:53",
              "name": "WebhookRelayDeliveries"
            },
            {
              "migration_id": 59,
              "created_at": "2026-11-13 03:42:53",
              "name": "McpAppModelContext"
            },
            {
              "migration_id": 60,
              "created_at": "2026-11-13 03:42:53",
              "name": "ThreadSnapshotWindowIndexes"
            },
            {
              "migration_id": 61,
              "created_at": "2026-11-13 03:42:53",
              "name": "PullRequestReviewGuides"
            },
            {
              "migration_id": 62,
              "created_at": "2026-11-13 03:42:53",
              "name": "ThreadFailureLookupIndex"
            },
            {
              "migration_id": 63,
              "created_at": "2026-11-13 03:42:53",
              "name": "DropUnusedV1Projections"
            },
            {
              "migration_id": 64,
              "created_at": "2026-11-13 03:42:53",
              "name": "CanonicalizeThreadPullRequestLinks"
            },
            {
              "migration_id": 65,
              "created_at": "2026-11-13 03:42:53",
              "name": "CodexUsageNativeTurnIndex"
            },
            {
              "migration_id": 66,
              "created_at": "2026-11-13 03:42:53",
              "name": "RepairClientSettlementTimestamps"
            },
            {
              "migration_id": 67,
              "created_at": "2026-11-13 03:42:53",
              "name": "WebhookDedupe"
            },
            {
              "migration_id": 68,
              "created_at": "2026-11-13 03:42:53",
              "name": "ShellStopRequestIndex"
            },
            {
              "migration_id": 69,
              "created_at": "2026-11-13 03:42:53",
              "name": "ThreadMessageSearch"
            },
            {
              "migration_id": 70,
              "created_at": "2026-11-13 03:42:53",
              "name": "PeerLinks"
            },
            {
              "migration_id": 71,
              "created_at": "2026-11-13 03:42:53",
              "name": "PeerLinkFence"
            },
            {
              "migration_id": 72,
              "created_at": "2026-11-13 03:42:53",
              "name": "WaitingLinkRequestIndex"
            },
            {
              "migration_id": 73,
              "created_at": "2026-11-13 03:42:53",
              "name": "ActiveTurnItemIndexes"
            },
            {
              "migration_id": 74,
              "created_at": "2026-11-13 03:42:53",
              "name": "ExcludeAttachmentPlaceholdersFromSearch"
            },
            {
              "migration_id": 75,
              "created_at": "2026-11-13 03:42:53",
              "name": "SubagentDeliveryState"
            },
            {
              "migration_id": 76,
              "created_at": "2026-11-13 03:42:53",
              "name": "ProjectionProjectsPinArchive"
            },
            {
              "migration_id": 77,
              "created_at": "2026-11-13 03:42:53",
              "name": "RepairBooleanSettledOverride"
            },
            {
              "migration_id": 78,
              "created_at": "2026-11-13 03:42:53",
              "name": "DropOrchestrationEventCorrelationIndex"
            },
            {
              "migration_id": 79,
              "created_at": "2026-11-13 03:42:53",
              "name": "DelegatedRecoveryIndexes"
            },
            {
              "migration_id": 80,
              "created_at": "2026-11-13 03:42:53",
              "name": "ScheduledTaskThreadMode"
            },
            {
              "migration_id": 81,
              "created_at": "2026-11-13 03:42:53",
              "name": "ProjectionMessageSearchText"
            },
            {
              "migration_id": 82,
              "created_at": "2026-11-13 03:42:53",
              "name": "TurnItemConversationIndex"
            },
            {
              "migration_id": 83,
              "created_at": "2026-11-13 03:42:53",
              "name": "CommandReadIndexes"
            },
            {
              "migration_id": 84,
              "created_at": "2026-11-13 03:42:53",
              "name": "LastExecutedRunIndex"
            },
            {
              "migration_id": 85,
              "created_at": "2026-11-13 03:42:53",
              "name": "TurnItemCounts"
            },
            {
              "migration_id": 86,
              "created_at": "2026-11-13 03:42:53",
              "name": "QueuedTurnInputIndex"
            },
            {
              "migration_id": 87,
              "created_at": "2026-11-13 03:42:53",
              "name": "ProjectionProjectsCustomTitle"
            },
            {
              "migration_id": 88,
              "created_at": "2026-11-13 04:34:22",
              "name": "TurnItemTypeStatusIndex"
            }
          ]
        }
      ]
    },
    "canonicalRecordsIdentical": true
  }
}