SHA: [3d864ff44f](https://git.cafe/pingdotgg/t3code/commit/3d864ff44fec8f84dc7a10e75860d7880d69c40e) (`3d864ff44fec8f84dc7a10e75860d7880d69c40e`)

# G9-guards: Non-latest terminal, non-root failure and recovery-dispatch persistence fault — after

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

Rows: R12.

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.

## non-latest-terminal

Fixture: `{"group":"G9","name":"non-latest-terminal","background":true,"guard":"non-latest"}`

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` | `—` | `—` |
| `run:synthetic-newer` | `evidence:3` | `completed` | `—` | `—` |

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":"fixtureNonLatest","terminalRunId":"run:thread:thread%3Aevidence:ordinal:3","newerExecutedRunId":"run:synthetic-newer"}
{"operation":"reactorFence","label":"guard-handled","note":"terminal reactor has consumed all preceding events; fence itself is ignored by runtime-reconcile filter"}
{"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":"persistedEventReplayAndProjectionReread","throughSequence":63,"unchangedRunCount":4,"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":"Conversation compaction needed","failure":{"class":"provider_error","message":"The conversation is too long to continue as is. T3 Code is compacting it and will continue automatically.","code":"context_compaction_required","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"}
{"sequence":60,"type":"run.updated","id":"run:synthetic-newer","ordinal":4,"status":"completed","messageId":"evidence:3"}
```

Checkpoint projections (including running native turn, Stop items, generated message provenance, task links, queue state and answers):
```json
[
  {
    "label": "terminal-persisted-handler-held",
    "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": "Conversation compaction needed",
        "failure": {
          "class": "provider_error",
          "message": "The conversation is too long to continue as is. T3 Code is compacting it and will continue automatically.",
          "code": "context_compaction_required",
          "retryable": null
        }
      }
    ],
    "compactionItems": [],
    "answers": [
      {
        "runId": "run:thread:thread%3Aevidence:ordinal:1",
        "status": "completed",
        "text": "codex response for run 1",
        "length": 24
      }
    ]
  },
  {
    "label": "guard-before-handler-release",
    "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
      },
      {
        "id": "run:synthetic-newer",
        "rootNodeId": "node:run:run%3Athread%3Athread%253Aevidence%3Aordinal%3A3:root",
        "ordinal": 4,
        "status": "completed",
        "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": "Conversation compaction needed",
        "failure": {
          "class": "provider_error",
          "message": "The conversation is too long to continue as is. T3 Code is compacting it and will continue automatically.",
          "code": "context_compaction_required",
          "retryable": null
        }
      }
    ],
    "compactionItems": [],
    "answers": [
      {
        "runId": "run:thread:thread%3Aevidence:ordinal:1",
        "status": "completed",
        "text": "codex response for run 1",
        "length": 24
      }
    ]
  },
  {
    "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
      },
      {
        "id": "run:synthetic-newer",
        "rootNodeId": "node:run:run%3Athread%3Athread%253Aevidence%3Aordinal%3A3:root",
        "ordinal": 4,
        "status": "completed",
        "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": "Conversation compaction needed",
        "failure": {
          "class": "provider_error",
          "message": "The conversation is too long to continue as is. T3 Code is compacting it and will continue automatically.",
          "code": "context_compaction_required",
          "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: 4.

## non-root-failure

Fixture: `{"group":"G9","name":"non-root-failure","background":true,"guard":"non-root"}`

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` | `—` | `—` |

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":"fixtureNonRootFailure","runId":"run:thread:thread%3Aevidence:ordinal:3","rootNodeId":"node:run:run%3Athread%3Athread%253Aevidence%3Aordinal%3A3:root","errorNodeId":"node:synthetic-nonroot"}
{"operation":"reactorFence","label":"guard-handled","note":"terminal reactor has consumed all preceding events; fence itself is ignored by runtime-reconcile filter"}
{"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":"persistedEventReplayAndProjectionReread","throughSequence":63,"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":"Conversation compaction needed","failure":{"class":"provider_error","message":"The conversation is too long to continue as is. T3 Code is compacting it and will continue automatically.","code":"context_compaction_required","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"}
{"sequence":60,"type":"turn-item.updated","itemType":"error","nodeId":"node:synthetic-nonroot","runId":"run:thread:thread%3Aevidence:ordinal:3","status":"failed","title":"Conversation compaction needed","failure":{"class":"provider_error","message":"The conversation is too long to continue as is. T3 Code is compacting it and will continue automatically.","code":"context_compaction_required","retryable":null}}
```

Checkpoint projections (including running native turn, Stop items, generated message provenance, task links, queue state and answers):
```json
[
  {
    "label": "terminal-persisted-handler-held",
    "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": "Conversation compaction needed",
        "failure": {
          "class": "provider_error",
          "message": "The conversation is too long to continue as is. T3 Code is compacting it and will continue automatically.",
          "code": "context_compaction_required",
          "retryable": null
        }
      }
    ],
    "compactionItems": [],
    "answers": [
      {
        "runId": "run:thread:thread%3Aevidence:ordinal:1",
        "status": "completed",
        "text": "codex response for run 1",
        "length": 24
      }
    ]
  },
  {
    "label": "guard-before-handler-release",
    "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:synthetic-nonroot",
        "runId": "run:thread:thread%3Aevidence:ordinal:3",
        "status": "failed",
        "title": "Conversation compaction needed",
        "failure": {
          "class": "provider_error",
          "message": "The conversation is too long to continue as is. T3 Code is compacting it and will continue automatically.",
          "code": "context_compaction_required",
          "retryable": null
        }
      }
    ],
    "compactionItems": [],
    "answers": [
      {
        "runId": "run:thread:thread%3Aevidence:ordinal:1",
        "status": "completed",
        "text": "codex response for run 1",
        "length": 24
      }
    ]
  },
  {
    "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:synthetic-nonroot",
        "runId": "run:thread:thread%3Aevidence:ordinal:3",
        "status": "failed",
        "title": "Conversation compaction needed",
        "failure": {
          "class": "provider_error",
          "message": "The conversation is too long to continue as is. T3 Code is compacting it and will continue automatically.",
          "code": "context_compaction_required",
          "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.

## recovery-dispatch-persistence-fault

Fixture: `{"group":"G9","name":"recovery-dispatch-persistence-fault","background":true,"guard":"dispatch-fault","queue":"automatic"}`

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` | `—` | `—` |
| `run:thread:thread%3Aevidence:ordinal:4` | `evidence:4` | `queued` | `True` | `—` |

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":"dispatchReceipt","messageId":"evidence:4","sequence":60}
{"operation":"armRecoveryDispatchPersistenceFault","runId":"run:thread:thread%3Aevidence:ordinal:3","note":"EventSink.commitCommand rejects exactly the next server:context-compact dispatch; all earlier terminal/error persistence remains real"}
{"operation":"serverLog","level":"Warn","message":["Failed to start compaction recovery","[structured diagnostics omitted; may include private runtime metadata]"]}
{"operation":"reactorFence","label":"guard-handled","note":"terminal reactor has consumed all preceding events; fence itself is ignored by runtime-reconcile filter"}
{"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":"recoveryDispatchFaultObserved","count":1}
{"operation":"persistedEventReplayAndProjectionReread","throughSequence":68,"unchangedRunCount":4,"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":58,"type":"node.updated","id":"node:run:run%3Athread%3Athread%253Aevidence%3Aordinal%3A4:root","runId":"run:thread:thread%3Aevidence:ordinal:4","status":"pending"}
{"sequence":61,"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":"Conversation compaction needed","failure":{"class":"provider_error","message":"The conversation is too long to continue as is. T3 Code is compacting it and will continue automatically.","code":"context_compaction_required","retryable":null}}
{"sequence":62,"type":"run.updated","id":"run:thread:thread%3Aevidence:ordinal:3","ordinal":3,"status":"failed","messageId":"evidence:3"}
{"sequence":63,"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":64,"type":"node.updated","id":"node:run:run%3Athread%3Athread%253Aevidence%3Aordinal%3A3:root","runId":"run:thread:thread%3Aevidence:ordinal:3","status":"failed"}
{"sequence":66,"type":"run.updated","id":"run:thread:thread%3Aevidence:ordinal:4","ordinal":4,"status":"queued","messageId":"evidence:4","queueHeld":true}
```

Checkpoint projections (including running native turn, Stop items, generated message provenance, task links, queue state and answers):
```json
[
  {
    "label": "queued-before-release (hold seeded via synthetic event sink)",
    "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": "starting",
        "messageId": "evidence:3",
        "providerThreadId": "provider-thread:provider:codex:native-thread:pending%3Arun%3Athread%3Athread%253Aevidence%3Aordinal%3A1",
        "queuePosition": null
      },
      {
        "id": "run:thread:thread%3Aevidence:ordinal:4",
        "rootNodeId": "node:run:run%3Athread%3Athread%253Aevidence%3Aordinal%3A4:root",
        "ordinal": 4,
        "status": "queued",
        "messageId": "evidence:4",
        "providerThreadId": "provider-thread:provider:codex:native-thread:pending%3Arun%3Athread%3Athread%253Aevidence%3Aordinal%3A1",
        "queuePosition": 1
      }
    ],
    "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": []
      },
      {
        "id": "evidence:4",
        "text": "QUEUED_PAYLOAD after recovery",
        "length": 29,
        "createdBy": "agent",
        "creationSource": "server",
        "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": "pending",
        "providerThreadId": "provider-thread:provider:codex:native-thread:pending%3Arun%3Athread%3Athread%253Aevidence%3Aordinal%3A1"
      },
      {
        "id": "run-attempt:run:run%3Athread%3Athread%253Aevidence%3Aordinal%3A4:attempt:1",
        "runId": "run:thread:thread%3Aevidence:ordinal:4",
        "status": "pending",
        "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
        }
      }
    ],
    "compactionItems": [],
    "answers": [
      {
        "runId": "run:thread:thread%3Aevidence:ordinal:1",
        "status": "completed",
        "text": "codex response for run 1",
        "length": 24
      }
    ]
  },
  {
    "label": "terminal-persisted-handler-held",
    "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
      },
      {
        "id": "run:thread:thread%3Aevidence:ordinal:4",
        "rootNodeId": "node:run:run%3Athread%3Athread%253Aevidence%3Aordinal%3A4:root",
        "ordinal": 4,
        "status": "queued",
        "messageId": "evidence:4",
        "providerThreadId": "provider-thread:provider:codex:native-thread:pending%3Arun%3Athread%3Athread%253Aevidence%3Aordinal%3A1",
        "queuePosition": 1
      }
    ],
    "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": []
      },
      {
        "id": "evidence:4",
        "text": "QUEUED_PAYLOAD after recovery",
        "length": 29,
        "createdBy": "agent",
        "creationSource": "server",
        "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"
      },
      {
        "id": "run-attempt:run:run%3Athread%3Athread%253Aevidence%3Aordinal%3A4:attempt:1",
        "runId": "run:thread:thread%3Aevidence:ordinal:4",
        "status": "pending",
        "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": "Conversation compaction needed",
        "failure": {
          "class": "provider_error",
          "message": "The conversation is too long to continue as is. T3 Code is compacting it and will continue automatically.",
          "code": "context_compaction_required",
          "retryable": null
        }
      }
    ],
    "compactionItems": [],
    "answers": [
      {
        "runId": "run:thread:thread%3Aevidence:ordinal:1",
        "status": "completed",
        "text": "codex response for run 1",
        "length": 24
      }
    ]
  },
  {
    "label": "guard-before-handler-release",
    "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
      },
      {
        "id": "run:thread:thread%3Aevidence:ordinal:4",
        "rootNodeId": "node:run:run%3Athread%3Athread%253Aevidence%3Aordinal%3A4:root",
        "ordinal": 4,
        "status": "queued",
        "messageId": "evidence:4",
        "providerThreadId": "provider-thread:provider:codex:native-thread:pending%3Arun%3Athread%3Athread%253Aevidence%3Aordinal%3A1",
        "queuePosition": 1
      }
    ],
    "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": []
      },
      {
        "id": "evidence:4",
        "text": "QUEUED_PAYLOAD after recovery",
        "length": 29,
        "createdBy": "agent",
        "creationSource": "server",
        "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"
      },
      {
        "id": "run-attempt:run:run%3Athread%3Athread%253Aevidence%3Aordinal%3A4:attempt:1",
        "runId": "run:thread:thread%3Aevidence:ordinal:4",
        "status": "pending",
        "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": "Conversation compaction needed",
        "failure": {
          "class": "provider_error",
          "message": "The conversation is too long to continue as is. T3 Code is compacting it and will continue automatically.",
          "code": "context_compaction_required",
          "retryable": null
        }
      }
    ],
    "compactionItems": [],
    "answers": [
      {
        "runId": "run:thread:thread%3Aevidence:ordinal:1",
        "status": "completed",
        "text": "codex response for run 1",
        "length": 24
      }
    ]
  },
  {
    "label": "queue-after-recovery",
    "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
      },
      {
        "id": "run:thread:thread%3Aevidence:ordinal:4",
        "rootNodeId": "node:run:run%3Athread%3Athread%253Aevidence%3Aordinal%3A4:root",
        "ordinal": 4,
        "status": "queued",
        "messageId": "evidence:4",
        "providerThreadId": "provider-thread:provider:codex:native-thread:pending%3Arun%3Athread%3Athread%253Aevidence%3Aordinal%3A1",
        "queueHeld": true,
        "queuePosition": 1
      }
    ],
    "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": []
      },
      {
        "id": "evidence:4",
        "text": "QUEUED_PAYLOAD after recovery",
        "length": 29,
        "createdBy": "agent",
        "creationSource": "server",
        "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"
      },
      {
        "id": "run-attempt:run:run%3Athread%3Athread%253Aevidence%3Aordinal%3A4:attempt:1",
        "runId": "run:thread:thread%3Aevidence:ordinal:4",
        "status": "pending",
        "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": "Conversation compaction needed",
        "failure": {
          "class": "provider_error",
          "message": "The conversation is too long to continue as is. T3 Code is compacting it and will continue automatically.",
          "code": "context_compaction_required",
          "retryable": null
        }
      }
    ],
    "compactionItems": [],
    "answers": [
      {
        "runId": "run:thread:thread%3Aevidence:ordinal:1",
        "status": "completed",
        "text": "codex response for run 1",
        "length": 24
      }
    ]
  },
  {
    "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
      },
      {
        "id": "run:thread:thread%3Aevidence:ordinal:4",
        "rootNodeId": "node:run:run%3Athread%3Athread%253Aevidence%3Aordinal%3A4:root",
        "ordinal": 4,
        "status": "queued",
        "messageId": "evidence:4",
        "providerThreadId": "provider-thread:provider:codex:native-thread:pending%3Arun%3Athread%3Athread%253Aevidence%3Aordinal%3A1",
        "queueHeld": true,
        "queuePosition": 1
      }
    ],
    "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": []
      },
      {
        "id": "evidence:4",
        "text": "QUEUED_PAYLOAD after recovery",
        "length": 29,
        "createdBy": "agent",
        "creationSource": "server",
        "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"
      },
      {
        "id": "run-attempt:run:run%3Athread%3Athread%253Aevidence%3Aordinal%3A4:attempt:1",
        "runId": "run:thread:thread%3Aevidence:ordinal:4",
        "status": "pending",
        "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": "Conversation compaction needed",
        "failure": {
          "class": "provider_error",
          "message": "The conversation is too long to continue as is. T3 Code is compacting it and will continue automatically.",
          "code": "context_compaction_required",
          "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: 4.
