SHA: [938b4d4525](https://git.cafe/pingdotgg/t3code/commit/938b4d45255fa92c11a03e0a5e946b2e438aabb3) (`938b4d45255fa92c11a03e0a5e946b2e438aabb3`)

# G10-replay: Projection rebuild and a new persisted-event reader from sequence zero — before

**synthetic integration harness, not a live provider**

Rows: R31 (server replay portion).

Same byte-identical driver at both supplied revisions. Node v26.12.1; Vite+ / Vitest v5.0.5; Linux 6.1.102; ProviderReplayHarness.layerWithRegistry; fresh in-memory SQLite. No live provider, real database, client browser or listening server. All data is synthetic.

Deferred gates wait for persisted events. The terminal reactor stream is intercepted before handling a failed run; marked runtime-reconcile fence events establish reactor progress without triggering more work. The guards use labelled synthetic projection events. The dispatch-fault case rejects exactly the recovery command persistence boundary. No production implementation was changed.

The adapter supplies canned response text and usage, records the terminal it publishes, and its interrupt method returns immediately. Persisted interrupted state and task results are server observations; no native provider acknowledgement or compaction quality is claimed. The baseline creates no recovery compact, so the same compact-stop driver records that there was no compact to stop. Structured log diagnostics are omitted to keep private operational metadata out of uploads.

## projection-rebuild-second-reader

Fixture: `{"group":"G10","name":"projection-rebuild-second-reader","background":true,"rebuild":true}`

Final run state:

| Run id | Message id | Status | Held | Recovery of |
| --- | --- | --- | --- | --- |
| `run:thread:thread%3Aevidence:ordinal:1` | `evidence:1` | `completed` | `—` | `—` |
| `run:thread:thread%3Aevidence:ordinal:2` | `evidence:2` | `failed` | `—` | `—` |
| `run:thread:thread%3Aevidence:ordinal:3` | `evidence:3` | `failed` | `—` | `—` |

This performs both a new event reader from sequence zero and ProjectionReplay.rebuild, which deletes synthetic projection tables and reapplies the unpruned persisted events. The public projection summary is asserted equal before/after rebuild. No WebSocket reconnect, process restart, second client, relay/tunnel, crash window or UI is exercised.

Adapter calls, published terminals, Stop, server warning messages and service results in observation order:
```jsonl
{"operation":"dispatchReceipt","messageId":"evidence:1","sequence":9}
{"operation":"ensureThread"}
{"operation":"providerInput","runId":"run:thread:thread%3Aevidence:ordinal:1","runOrdinal":1,"nativeThreadId":"codex:thread:evidence:0","text":"Original brief CODEWORD_ORIGINAL","textLength":32,"attachments":[]}
{"operation":"syntheticTerminalPublished","runId":"run:thread:thread%3Aevidence:ordinal:1","status":"completed"}
{"operation":"dispatchReceipt","messageId":"evidence:2","sequence":35}
{"operation":"resumeThread","nativeThreadId":"codex:thread:evidence:0"}
{"operation":"serverLog","level":"Error","message":["orchestration V2 provider turn start failed","[structured diagnostics omitted; may include private runtime metadata]"]}
{"operation":"dispatchReceipt","messageId":"evidence:3","sequence":54}
{"operation":"resumeThread","nativeThreadId":"codex:thread:evidence:0"}
{"operation":"serverLog","level":"Warn","message":["Orchestration effect execution failed","[structured diagnostics omitted; may include private runtime metadata]"]}
{"operation":"serverLog","level":"Warn","message":["Orchestration effect execution failed","[structured diagnostics omitted; may include private runtime metadata]"]}
{"operation":"serverLog","level":"Warn","message":["Orchestration effect execution failed","[structured diagnostics omitted; may include private runtime metadata]"]}
{"operation":"serverLog","level":"Warn","message":["Orchestration effect execution failed","[structured diagnostics omitted; may include private runtime metadata]"]}
{"operation":"reactorFence","label":"recovery-settled","note":"terminal reactor has consumed all preceding events; fence itself is ignored by runtime-reconcile filter"}
{"operation":"reactorFence","label":"final","note":"terminal reactor has consumed all preceding events; fence itself is ignored by runtime-reconcile filter"}
{"operation":"projectionRebuildFromPersistedEvents","verification":{"valid":true,"schemaVersion":2,"expectedSequence":61,"projectionSequence":61,"unreadableThreadIds":[],"missingThreadIds":[],"unexpectedThreadIds":[]},"before":{"snoozedUntil":null,"archivedAt":null,"stopItems":[],"runs":[{"id":"run:thread:thread%3Aevidence:ordinal:1","rootNodeId":"node:run:run%3Athread%3Athread%253Aevidence%3Aordinal%3A1:root","ordinal":1,"status":"completed","messageId":"evidence:1","providerThreadId":"provider-thread:provider:codex:native-thread:pending%3Arun%3Athread%3Athread%253Aevidence%3Aordinal%3A1","queuePosition":null},{"id":"run:thread:thread%3Aevidence:ordinal:2","rootNodeId":"node:run:run%3Athread%3Athread%253Aevidence%3Aordinal%3A2:root","ordinal":2,"status":"failed","messageId":"evidence:2","providerThreadId":"provider-thread:provider:codex:native-thread:pending%3Arun%3Athread%3Athread%253Aevidence%3Aordinal%3A1","queuePosition":null},{"id":"run:thread:thread%3Aevidence:ordinal:3","rootNodeId":"node:run:run%3Athread%3Athread%253Aevidence%3Aordinal%3A3:root","ordinal":3,"status":"failed","messageId":"evidence:3","providerThreadId":"provider-thread:provider:codex:native-thread:pending%3Arun%3Athread%3Athread%253Aevidence%3Aordinal%3A1","queuePosition":null}],"messages":[{"id":"evidence:1","text":"Original brief CODEWORD_ORIGINAL","length":32,"createdBy":"user","creationSource":"web","attachmentCount":0,"attachments":[]},{"id":"evidence:2","text":"Request 2 CODEWORD_MISSED rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr","length":6026,"createdBy":"user","creationSource":"web","attachmentCount":0,"attachments":[]},{"id":"evidence:3","text":"Request 3 CODEWORD_RECOVER","length":26,"createdBy":"user","creationSource":"web","attachmentCount":0,"attachments":[]}],"attempts":[{"id":"run-attempt:run:run%3Athread%3Athread%253Aevidence%3Aordinal%3A1:attempt:1","runId":"run:thread:thread%3Aevidence:ordinal:1","status":"completed","nativeThreadId":"codex:thread:evidence:0","providerThreadId":"provider-thread:provider:codex:native-thread:pending%3Arun%3Athread%3Athread%253Aevidence%3Aordinal%3A1"},{"id":"run-attempt:run:run%3Athread%3Athread%253Aevidence%3Aordinal%3A2:attempt:1","runId":"run:thread:thread%3Aevidence:ordinal:2","status":"failed","nativeThreadId":"codex:thread:evidence:0","providerThreadId":"provider-thread:provider:codex:native-thread:pending%3Arun%3Athread%3Athread%253Aevidence%3Aordinal%3A1"},{"id":"run-attempt:run:run%3Athread%3Athread%253Aevidence%3Aordinal%3A3:attempt:1","runId":"run:thread:thread%3Aevidence:ordinal:3","status":"failed","providerThreadId":"provider-thread:provider:codex:native-thread:pending%3Arun%3Athread%3Athread%253Aevidence%3Aordinal%3A1"}],"providerTurns":[{"id":"provider-turn:codex:thread:evidence:1","nodeId":"node:run:run%3Athread%3Athread%253Aevidence%3Aordinal%3A1:root","runAttemptId":"run-attempt:run:run%3Athread%3Athread%253Aevidence%3Aordinal%3A1:attempt:1","ordinal":1,"status":"completed"}],"providerThreads":[{"id":"provider-thread:provider:codex:native-thread:pending%3Arun%3Athread%3Athread%253Aevidence%3Aordinal%3A1","nativeThreadId":"codex:thread:evidence:0","contextUsage":{"usedTokens":250164,"maxTokens":258400}}],"errors":[{"nodeId":"node:run:run%3Athread%3Athread%253Aevidence%3Aordinal%3A2:root","runId":"run:thread:thread%3Aevidence:ordinal:2","status":"failed","title":"Provider error","failure":{"class":"provider_error","message":"Provider turn failed.","code":null,"retryable":null}},{"nodeId":"node:run:run%3Athread%3Athread%253Aevidence%3Aordinal%3A3:root","runId":"run:thread:thread%3Aevidence:ordinal:3","status":"failed","title":"Provider turn failed to start","failure":{"class":"provider_error","message":"The target provider still has background work running. Wait for it to finish or stop it before retrying the handoff.","code":null,"retryable":null}}],"compactionItems":[],"answers":[{"runId":"run:thread:thread%3Aevidence:ordinal:1","status":"completed","text":"codex response for run 1","length":24}]},"after":{"snoozedUntil":null,"archivedAt":null,"stopItems":[],"runs":[{"id":"run:thread:thread%3Aevidence:ordinal:1","rootNodeId":"node:run:run%3Athread%3Athread%253Aevidence%3Aordinal%3A1:root","ordinal":1,"status":"completed","messageId":"evidence:1","providerThreadId":"provider-thread:provider:codex:native-thread:pending%3Arun%3Athread%3Athread%253Aevidence%3Aordinal%3A1","queuePosition":null},{"id":"run:thread:thread%3Aevidence:ordinal:2","rootNodeId":"node:run:run%3Athread%3Athread%253Aevidence%3Aordinal%3A2:root","ordinal":2,"status":"failed","messageId":"evidence:2","providerThreadId":"provider-thread:provider:codex:native-thread:pending%3Arun%3Athread%3Athread%253Aevidence%3Aordinal%3A1","queuePosition":null},{"id":"run:thread:thread%3Aevidence:ordinal:3","rootNodeId":"node:run:run%3Athread%3Athread%253Aevidence%3Aordinal%3A3:root","ordinal":3,"status":"failed","messageId":"evidence:3","providerThreadId":"provider-thread:provider:codex:native-thread:pending%3Arun%3Athread%3Athread%253Aevidence%3Aordinal%3A1","queuePosition":null}],"messages":[{"id":"evidence:1","text":"Original brief CODEWORD_ORIGINAL","length":32,"createdBy":"user","creationSource":"web","attachmentCount":0,"attachments":[]},{"id":"evidence:2","text":"Request 2 CODEWORD_MISSED rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr","length":6026,"createdBy":"user","creationSource":"web","attachmentCount":0,"attachments":[]},{"id":"evidence:3","text":"Request 3 CODEWORD_RECOVER","length":26,"createdBy":"user","creationSource":"web","attachmentCount":0,"attachments":[]}],"attempts":[{"id":"run-attempt:run:run%3Athread%3Athread%253Aevidence%3Aordinal%3A1:attempt:1","runId":"run:thread:thread%3Aevidence:ordinal:1","status":"completed","nativeThreadId":"codex:thread:evidence:0","providerThreadId":"provider-thread:provider:codex:native-thread:pending%3Arun%3Athread%3Athread%253Aevidence%3Aordinal%3A1"},{"id":"run-attempt:run:run%3Athread%3Athread%253Aevidence%3Aordinal%3A2:attempt:1","runId":"run:thread:thread%3Aevidence:ordinal:2","status":"failed","nativeThreadId":"codex:thread:evidence:0","providerThreadId":"provider-thread:provider:codex:native-thread:pending%3Arun%3Athread%3Athread%253Aevidence%3Aordinal%3A1"},{"id":"run-attempt:run:run%3Athread%3Athread%253Aevidence%3Aordinal%3A3:attempt:1","runId":"run:thread:thread%3Aevidence:ordinal:3","status":"failed","providerThreadId":"provider-thread:provider:codex:native-thread:pending%3Arun%3Athread%3Athread%253Aevidence%3Aordinal%3A1"}],"providerTurns":[{"id":"provider-turn:codex:thread:evidence:1","nodeId":"node:run:run%3Athread%3Athread%253Aevidence%3Aordinal%3A1:root","runAttemptId":"run-attempt:run:run%3Athread%3Athread%253Aevidence%3Aordinal%3A1:attempt:1","ordinal":1,"status":"completed"}],"providerThreads":[{"id":"provider-thread:provider:codex:native-thread:pending%3Arun%3Athread%3Athread%253Aevidence%3Aordinal%3A1","nativeThreadId":"codex:thread:evidence:0","contextUsage":{"usedTokens":250164,"maxTokens":258400}}],"errors":[{"nodeId":"node:run:run%3Athread%3Athread%253Aevidence%3Aordinal%3A2:root","runId":"run:thread:thread%3Aevidence:ordinal:2","status":"failed","title":"Provider error","failure":{"class":"provider_error","message":"Provider turn failed.","code":null,"retryable":null}},{"nodeId":"node:run:run%3Athread%3Athread%253Aevidence%3Aordinal%3A3:root","runId":"run:thread:thread%3Aevidence:ordinal:3","status":"failed","title":"Provider turn failed to start","failure":{"class":"provider_error","message":"The target provider still has background work running. Wait for it to finish or stop it before retrying the handoff.","code":null,"retryable":null}}],"compactionItems":[],"answers":[{"runId":"run:thread:thread%3Aevidence:ordinal:1","status":"completed","text":"codex response for run 1","length":24}]},"recoveryRuns":[],"note":"all synthetic projection tables dropped and rebuilt by ProjectionReplay; full public summary equal"}
{"operation":"secondReaderFromSequenceZero","throughSequence":61,"eventCount":61,"recoveryRunEvents":[],"note":"new in-process event reader, not a socket reconnect; no process restart, client rendering, relay or tunnel exercised"}
{"operation":"persistedEventReplayAndProjectionReread","throughSequence":61,"unchangedRunCount":3,"note":"in-process event replay and projection re-read; no network reconnect or crash tested"}
```

Persisted relevant lifecycle, Stop, error and compaction events in sequence order:
```jsonl
{"sequence":3,"type":"provider-thread.updated","id":"provider-thread:provider:codex:native-thread:pending%3Arun%3Athread%3Athread%253Aevidence%3Aordinal%3A1","contextUsage":null}
{"sequence":6,"type":"node.updated","id":"node:run:run%3Athread%3Athread%253Aevidence%3Aordinal%3A1:root","runId":"run:thread:thread%3Aevidence:ordinal:1","status":"pending"}
{"sequence":12,"type":"provider-thread.updated","id":"provider-thread:provider:codex:native-thread:pending%3Arun%3Athread%3Athread%253Aevidence%3Aordinal%3A1","nativeThreadId":"codex:thread:evidence:0","contextUsage":null}
{"sequence":13,"type":"run.updated","id":"run:thread:thread%3Aevidence:ordinal:1","ordinal":1,"status":"running","messageId":"evidence:1"}
{"sequence":14,"type":"run-attempt.updated","id":"run-attempt:run:run%3Athread%3Athread%253Aevidence%3Aordinal%3A1:attempt:1","runId":"run:thread:thread%3Aevidence:ordinal:1","status":"running"}
{"sequence":15,"type":"node.updated","id":"node:run:run%3Athread%3Athread%253Aevidence%3Aordinal%3A1:root","runId":"run:thread:thread%3Aevidence:ordinal:1","status":"running"}
{"sequence":16,"type":"provider-turn.updated","id":"provider-turn:codex:thread:evidence:1","status":"running","ordinal":1,"tokenUsage":{"usedTokens":250164,"maxTokens":258400}}
{"sequence":17,"type":"provider-turn.updated","id":"provider-turn:codex:thread:evidence:1","status":"completed","ordinal":1}
{"sequence":19,"type":"run-attempt.updated","id":"run-attempt:run:run%3Athread%3Athread%253Aevidence%3Aordinal%3A1:attempt:1","runId":"run:thread:thread%3Aevidence:ordinal:1","status":"completed"}
{"sequence":20,"type":"run.updated","id":"run:thread:thread%3Aevidence:ordinal:1","ordinal":1,"status":"waiting","messageId":"evidence:1"}
{"sequence":21,"type":"node.updated","id":"node:run:run%3Athread%3Athread%253Aevidence%3Aordinal%3A1:root","runId":"run:thread:thread%3Aevidence:ordinal:1","status":"waiting"}
{"sequence":26,"type":"run.updated","id":"run:thread:thread%3Aevidence:ordinal:1","ordinal":1,"status":"completed","messageId":"evidence:1"}
{"sequence":27,"type":"node.updated","id":"node:run:run%3Athread%3Athread%253Aevidence%3Aordinal%3A1:root","runId":"run:thread:thread%3Aevidence:ordinal:1","status":"completed"}
{"sequence":32,"type":"node.updated","id":"node:run:run%3Athread%3Athread%253Aevidence%3Aordinal%3A2:root","runId":"run:thread:thread%3Aevidence:ordinal:2","status":"pending"}
{"sequence":38,"type":"provider-thread.updated","id":"provider-thread:provider:codex:native-thread:pending%3Arun%3Athread%3Athread%253Aevidence%3Aordinal%3A1","nativeThreadId":"codex:thread:evidence:0","contextUsage":{"usedTokens":250164,"maxTokens":258400}}
{"sequence":39,"type":"run.updated","id":"run:thread:thread%3Aevidence:ordinal:2","ordinal":2,"status":"running","messageId":"evidence:2"}
{"sequence":40,"type":"run-attempt.updated","id":"run-attempt:run:run%3Athread%3Athread%253Aevidence%3Aordinal%3A2:attempt:1","runId":"run:thread:thread%3Aevidence:ordinal:2","status":"running"}
{"sequence":41,"type":"node.updated","id":"node:run:run%3Athread%3Athread%253Aevidence%3Aordinal%3A2:root","runId":"run:thread:thread%3Aevidence:ordinal:2","status":"running"}
{"sequence":42,"type":"run-attempt.updated","id":"run-attempt:run:run%3Athread%3Athread%253Aevidence%3Aordinal%3A2:attempt:1","runId":"run:thread:thread%3Aevidence:ordinal:2","status":"failed"}
{"sequence":43,"type":"turn-item.updated","itemType":"error","nodeId":"node:run:run%3Athread%3Athread%253Aevidence%3Aordinal%3A2:root","runId":"run:thread:thread%3Aevidence:ordinal:2","status":"failed","title":"Provider error","failure":{"class":"provider_error","message":"Provider turn failed.","code":null,"retryable":null}}
{"sequence":44,"type":"run.updated","id":"run:thread:thread%3Aevidence:ordinal:2","ordinal":2,"status":"failed","messageId":"evidence:2"}
{"sequence":45,"type":"node.updated","id":"node:run:run%3Athread%3Athread%253Aevidence%3Aordinal%3A2:root","runId":"run:thread:thread%3Aevidence:ordinal:2","status":"failed"}
{"sequence":51,"type":"node.updated","id":"node:run:run%3Athread%3Athread%253Aevidence%3Aordinal%3A3:root","runId":"run:thread:thread%3Aevidence:ordinal:3","status":"pending"}
{"sequence":56,"type":"turn-item.updated","itemType":"error","nodeId":"node:run:run%3Athread%3Athread%253Aevidence%3Aordinal%3A3:root","runId":"run:thread:thread%3Aevidence:ordinal:3","status":"failed","title":"Provider turn failed to start","failure":{"class":"provider_error","message":"The target provider still has background work running. Wait for it to finish or stop it before retrying the handoff.","code":null,"retryable":null}}
{"sequence":57,"type":"run.updated","id":"run:thread:thread%3Aevidence:ordinal:3","ordinal":3,"status":"failed","messageId":"evidence:3"}
{"sequence":58,"type":"run-attempt.updated","id":"run-attempt:run:run%3Athread%3Athread%253Aevidence%3Aordinal%3A3:attempt:1","runId":"run:thread:thread%3Aevidence:ordinal:3","status":"failed"}
{"sequence":59,"type":"node.updated","id":"node:run:run%3Athread%3Athread%253Aevidence%3Aordinal%3A3:root","runId":"run:thread:thread%3Aevidence:ordinal:3","status":"failed"}
```

Checkpoint projections (including running native turn, Stop items, generated message provenance, task links, queue state and answers):
```json
[
  {
    "label": "final",
    "snoozedUntil": null,
    "archivedAt": null,
    "stopItems": [],
    "runs": [
      {
        "id": "run:thread:thread%3Aevidence:ordinal:1",
        "rootNodeId": "node:run:run%3Athread%3Athread%253Aevidence%3Aordinal%3A1:root",
        "ordinal": 1,
        "status": "completed",
        "messageId": "evidence:1",
        "providerThreadId": "provider-thread:provider:codex:native-thread:pending%3Arun%3Athread%3Athread%253Aevidence%3Aordinal%3A1",
        "queuePosition": null
      },
      {
        "id": "run:thread:thread%3Aevidence:ordinal:2",
        "rootNodeId": "node:run:run%3Athread%3Athread%253Aevidence%3Aordinal%3A2:root",
        "ordinal": 2,
        "status": "failed",
        "messageId": "evidence:2",
        "providerThreadId": "provider-thread:provider:codex:native-thread:pending%3Arun%3Athread%3Athread%253Aevidence%3Aordinal%3A1",
        "queuePosition": null
      },
      {
        "id": "run:thread:thread%3Aevidence:ordinal:3",
        "rootNodeId": "node:run:run%3Athread%3Athread%253Aevidence%3Aordinal%3A3:root",
        "ordinal": 3,
        "status": "failed",
        "messageId": "evidence:3",
        "providerThreadId": "provider-thread:provider:codex:native-thread:pending%3Arun%3Athread%3Athread%253Aevidence%3Aordinal%3A1",
        "queuePosition": null
      }
    ],
    "messages": [
      {
        "id": "evidence:1",
        "text": "Original brief CODEWORD_ORIGINAL",
        "length": 32,
        "createdBy": "user",
        "creationSource": "web",
        "attachmentCount": 0,
        "attachments": []
      },
      {
        "id": "evidence:2",
        "text": "Request 2 CODEWORD_MISSED rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr",
        "length": 6026,
        "createdBy": "user",
        "creationSource": "web",
        "attachmentCount": 0,
        "attachments": []
      },
      {
        "id": "evidence:3",
        "text": "Request 3 CODEWORD_RECOVER",
        "length": 26,
        "createdBy": "user",
        "creationSource": "web",
        "attachmentCount": 0,
        "attachments": []
      }
    ],
    "attempts": [
      {
        "id": "run-attempt:run:run%3Athread%3Athread%253Aevidence%3Aordinal%3A1:attempt:1",
        "runId": "run:thread:thread%3Aevidence:ordinal:1",
        "status": "completed",
        "nativeThreadId": "codex:thread:evidence:0",
        "providerThreadId": "provider-thread:provider:codex:native-thread:pending%3Arun%3Athread%3Athread%253Aevidence%3Aordinal%3A1"
      },
      {
        "id": "run-attempt:run:run%3Athread%3Athread%253Aevidence%3Aordinal%3A2:attempt:1",
        "runId": "run:thread:thread%3Aevidence:ordinal:2",
        "status": "failed",
        "nativeThreadId": "codex:thread:evidence:0",
        "providerThreadId": "provider-thread:provider:codex:native-thread:pending%3Arun%3Athread%3Athread%253Aevidence%3Aordinal%3A1"
      },
      {
        "id": "run-attempt:run:run%3Athread%3Athread%253Aevidence%3Aordinal%3A3:attempt:1",
        "runId": "run:thread:thread%3Aevidence:ordinal:3",
        "status": "failed",
        "providerThreadId": "provider-thread:provider:codex:native-thread:pending%3Arun%3Athread%3Athread%253Aevidence%3Aordinal%3A1"
      }
    ],
    "providerTurns": [
      {
        "id": "provider-turn:codex:thread:evidence:1",
        "nodeId": "node:run:run%3Athread%3Athread%253Aevidence%3Aordinal%3A1:root",
        "runAttemptId": "run-attempt:run:run%3Athread%3Athread%253Aevidence%3Aordinal%3A1:attempt:1",
        "ordinal": 1,
        "status": "completed"
      }
    ],
    "providerThreads": [
      {
        "id": "provider-thread:provider:codex:native-thread:pending%3Arun%3Athread%3Athread%253Aevidence%3Aordinal%3A1",
        "nativeThreadId": "codex:thread:evidence:0",
        "contextUsage": {
          "usedTokens": 250164,
          "maxTokens": 258400
        }
      }
    ],
    "errors": [
      {
        "nodeId": "node:run:run%3Athread%3Athread%253Aevidence%3Aordinal%3A2:root",
        "runId": "run:thread:thread%3Aevidence:ordinal:2",
        "status": "failed",
        "title": "Provider error",
        "failure": {
          "class": "provider_error",
          "message": "Provider turn failed.",
          "code": null,
          "retryable": null
        }
      },
      {
        "nodeId": "node:run:run%3Athread%3Athread%253Aevidence%3Aordinal%3A3:root",
        "runId": "run:thread:thread%3Aevidence:ordinal:3",
        "status": "failed",
        "title": "Provider turn failed to start",
        "failure": {
          "class": "provider_error",
          "message": "The target provider still has background work running. Wait for it to finish or stop it before retrying the handoff.",
          "code": null,
          "retryable": null
        }
      }
    ],
    "compactionItems": [],
    "answers": [
      {
        "runId": "run:thread:thread%3Aevidence:ordinal:1",
        "status": "completed",
        "text": "codex response for run 1",
        "length": 24
      }
    ]
  }
]
```

Provider inputs (ordinary long text clipped to 900 characters as indicated):
```json
[
  {
    "nativeThreadId": "codex:thread:evidence:0",
    "providerTurnOrdinal": 1,
    "text": "Original brief CODEWORD_ORIGINAL",
    "length": 32,
    "attachmentCount": 0,
    "attachments": []
  }
]
```

Native generations: 1; final run count: 3.
