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

# G8-stop: Stop races, interrupted recovery, delegated result and settled waits — after

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

Rows: R13, R14, R21.

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.

## delegated-stop-during-recovery

Fixture: `{"group":"G8","name":"delegated-stop-during-recovery","background":true,"stopCompact":true,"interruptCompact":true,"parent":true}`

Final run state:

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

Observed parent follow-up task: `{"id":"node:delegated-task:evidence%3A3","status":"interrupted","result":"Synthetic compaction complete","completionDelivery":{"state":"claimed","observedByRunId":null}}`. This records the result verbatim without judging it.

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":45}
{"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":73}
{"operation":"resumeThread","nativeThreadId":"codex:thread:evidence:0"}
{"operation":"compactThread","runId":"run:thread:thread%3Aevidence:ordinal:4","nativeThreadId":"codex:thread:evidence:0"}
{"operation":"providerInput","runId":"run:thread:thread%3Aevidence:ordinal:4","runOrdinal":4,"nativeThreadId":"codex:thread:evidence:0","text":"/compact","textLength":8,"attachments":[]}
{"operation":"threadStop","phase":"compact running, held before synthetic terminal","runId":"run:thread:thread%3Aevidence:ordinal:4","syntheticTerminal":"interrupted"}
{"operation":"syntheticTerminalPublished","runId":"run:thread:thread%3Aevidence:ordinal:4","status":"interrupted"}
{"operation":"syntheticInterruptTurn","note":"synthetic runtime interrupt method returns; no native provider acknowledgement is claimed"}
{"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":"waitAfterStopSettled","timedOut":false,"run":{"id":"run:thread:thread%3Aevidence:ordinal:4","status":"interrupted"}}
{"operation":"parentTaskResults","tasks":[{"id":"node:full-native-task","status":"completed","result":"codex response for run 1","completionDelivery":{"state":"acknowledged","observedByRunId":"run:full-native-parent"}},{"id":"node:delegated-task:evidence%3A2","status":"failed","result":"Provider turn failed.","completionDelivery":{"state":"claimed","observedByRunId":null}},{"id":"node:delegated-task:evidence%3A3","status":"interrupted","result":"Synthetic compaction complete","completionDelivery":{"state":"claimed","observedByRunId":null}}]}
{"operation":"persistedEventReplayAndProjectionReread","throughSequence":106,"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":29,"type":"run.updated","id":"run:full-native-parent","ordinal":1,"status":"completed","messageId":"evidence:1"}
{"sequence":30,"type":"subagent.updated","id":"node:full-native-task","status":"completed","result":"Original done"}
{"sequence":32,"type":"subagent.updated","id":"node:full-native-task","status":"completed","result":"codex response for run 1"}
{"sequence":38,"type":"node.updated","id":"node:run:run%3Athread%3Athread%253Aevidence%3Aordinal%3A2:root","runId":"run:thread:thread%3Aevidence:ordinal:2","status":"pending"}
{"sequence":42,"type":"run.updated","id":"run:thread:thread%3Aevidence:ordinal:2","ordinal":2,"status":"starting","messageId":"evidence:2","delegatedTaskId":"node:delegated-task:evidence%3A2"}
{"sequence":43,"type":"node.updated","id":"node:delegated-task:evidence%3A2","runId":"run:full-native-parent","status":"running"}
{"sequence":44,"type":"subagent.updated","id":"node:delegated-task:evidence%3A2","status":"running","result":null}
{"sequence":48,"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":49,"type":"run.updated","id":"run:thread:thread%3Aevidence:ordinal:2","ordinal":2,"status":"running","messageId":"evidence:2","delegatedTaskId":"node:delegated-task:evidence%3A2"}
{"sequence":50,"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":51,"type":"node.updated","id":"node:run:run%3Athread%3Athread%253Aevidence%3Aordinal%3A2:root","runId":"run:thread:thread%3Aevidence:ordinal:2","status":"running"}
{"sequence":52,"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":53,"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":54,"type":"run.updated","id":"run:thread:thread%3Aevidence:ordinal:2","ordinal":2,"status":"failed","messageId":"evidence:2","delegatedTaskId":"node:delegated-task:evidence%3A2"}
{"sequence":55,"type":"node.updated","id":"node:run:run%3Athread%3Athread%253Aevidence%3Aordinal%3A2:root","runId":"run:thread:thread%3Aevidence:ordinal:2","status":"failed"}
{"sequence":58,"type":"subagent.updated","id":"node:delegated-task:evidence%3A2","status":"failed","result":"Provider turn failed."}
{"sequence":60,"type":"node.updated","id":"node:delegated-task:evidence%3A2","runId":"run:full-native-parent","status":"failed"}
{"sequence":66,"type":"node.updated","id":"node:run:run%3Athread%3Athread%253Aevidence%3Aordinal%3A3:root","runId":"run:thread:thread%3Aevidence:ordinal:3","status":"pending"}
{"sequence":70,"type":"run.updated","id":"run:thread:thread%3Aevidence:ordinal:3","ordinal":3,"status":"starting","messageId":"evidence:3","delegatedTaskId":"node:delegated-task:evidence%3A3"}
{"sequence":71,"type":"node.updated","id":"node:delegated-task:evidence%3A3","runId":"run:full-native-parent","status":"running"}
{"sequence":72,"type":"subagent.updated","id":"node:delegated-task:evidence%3A3","status":"running","result":null}
{"sequence":75,"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":76,"type":"run.updated","id":"run:thread:thread%3Aevidence:ordinal:3","ordinal":3,"status":"failed","messageId":"evidence:3","delegatedTaskId":"node:delegated-task:evidence%3A3"}
{"sequence":77,"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":78,"type":"node.updated","id":"node:run:run%3Athread%3Athread%253Aevidence%3Aordinal%3A3:root","runId":"run:thread:thread%3Aevidence:ordinal:3","status":"failed"}
{"sequence":82,"type":"node.updated","id":"node:run:run%3Athread%3Athread%253Aevidence%3Aordinal%3A4:root","runId":"run:thread:thread%3Aevidence:ordinal:4","status":"pending"}
{"sequence":88,"type":"run.updated","compactionRecoveryOfRunId":"run:thread:thread%3Aevidence:ordinal:3","id":"run:thread:thread%3Aevidence:ordinal:4","ordinal":4,"status":"running","messageId":"context-compact:run:thread:thread%3Aevidence:ordinal:3","delegatedTaskId":"node:delegated-task:evidence%3A3"}
{"sequence":89,"type":"run-attempt.updated","id":"run-attempt:run:run%3Athread%3Athread%253Aevidence%3Aordinal%3A4:attempt:1","runId":"run:thread:thread%3Aevidence:ordinal:4","status":"running"}
{"sequence":90,"type":"node.updated","id":"node:run:run%3Athread%3Athread%253Aevidence%3Aordinal%3A4:root","runId":"run:thread:thread%3Aevidence:ordinal:4","status":"running"}
{"sequence":91,"type":"provider-turn.updated","id":"provider-turn:codex:thread:evidence:4","status":"running","ordinal":4,"tokenUsage":{"usedTokens":20000,"maxTokens":258400}}
{"sequence":92,"type":"turn-item.updated","itemType":"run_interrupt_request","runId":"run:thread:thread%3Aevidence:ordinal:4","status":"completed","message":"Stopped by user"}
{"sequence":93,"type":"provider-turn.updated","id":"provider-turn:codex:thread:evidence:4","status":"interrupted","ordinal":4}
{"sequence":95,"type":"run-attempt.updated","id":"run-attempt:run:run%3Athread%3Athread%253Aevidence%3Aordinal%3A4:attempt:1","runId":"run:thread:thread%3Aevidence:ordinal:4","status":"interrupted"}
{"sequence":97,"type":"node.updated","id":"node:run:run%3Athread%3Athread%253Aevidence%3Aordinal%3A4:root","runId":"run:thread:thread%3Aevidence:ordinal:4","status":"interrupted"}
{"sequence":98,"type":"turn-item.updated","itemType":"run_interrupt_result","runId":"run:thread:thread%3Aevidence:ordinal:4","status":"interrupted","message":"Stopped by user"}
{"sequence":99,"type":"run.updated","compactionRecoveryOfRunId":"run:thread:thread%3Aevidence:ordinal:3","id":"run:thread:thread%3Aevidence:ordinal:4","ordinal":4,"status":"interrupted","messageId":"context-compact:run:thread:thread%3Aevidence:ordinal:3","delegatedTaskId":"node:delegated-task:evidence%3A3"}
{"sequence":101,"type":"subagent.updated","id":"node:delegated-task:evidence%3A3","status":"interrupted","result":"Synthetic compaction complete"}
{"sequence":103,"type":"node.updated","id":"node:delegated-task:evidence%3A3","runId":"run:full-native-parent","status":"interrupted"}
```

Checkpoint projections (including running native turn, Stop items, generated message provenance, task links, queue state and answers):
```json
[
  {
    "label": "compact-running-before-stop",
    "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",
        "delegatedTaskId": "node:delegated-task:evidence%3A2",
        "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",
        "delegatedTaskId": "node:delegated-task:evidence%3A3",
        "queuePosition": null
      },
      {
        "id": "run:thread:thread%3Aevidence:ordinal:4",
        "rootNodeId": "node:run:run%3Athread%3Athread%253Aevidence%3Aordinal%3A4:root",
        "ordinal": 4,
        "status": "running",
        "messageId": "context-compact:run:thread:thread%3Aevidence:ordinal:3",
        "providerThreadId": "provider-thread:provider:codex:native-thread:pending%3Arun%3Athread%3Athread%253Aevidence%3Aordinal%3A1",
        "delegatedTaskId": "node:delegated-task:evidence%3A3",
        "queuePosition": null,
        "compactionRecoveryOfRunId": "run:thread:thread%3Aevidence:ordinal:3"
      }
    ],
    "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": "context-compact:run:thread:thread%3Aevidence:ordinal:3",
        "text": "/compact",
        "length": 8,
        "createdBy": "agent",
        "creationSource": "server",
        "idleCompaction": "onReturn",
        "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": "running",
        "nativeThreadId": "codex:thread:evidence:0",
        "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"
      },
      {
        "id": "provider-turn:codex:thread:evidence:4",
        "nodeId": "node:run:run%3Athread%3Athread%253Aevidence%3Aordinal%3A4:root",
        "runAttemptId": "run-attempt:run:run%3Athread%3Athread%253Aevidence%3Aordinal%3A4:attempt:1",
        "ordinal": 4,
        "status": "running"
      }
    ],
    "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": "stop-during-compact",
    "snoozedUntil": null,
    "archivedAt": null,
    "stopItems": [
      {
        "type": "run_interrupt_request",
        "runId": "run:thread:thread%3Aevidence:ordinal:4",
        "status": "completed",
        "message": "Stopped by user"
      }
    ],
    "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",
        "delegatedTaskId": "node:delegated-task:evidence%3A2",
        "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",
        "delegatedTaskId": "node:delegated-task:evidence%3A3",
        "queuePosition": null
      },
      {
        "id": "run:thread:thread%3Aevidence:ordinal:4",
        "rootNodeId": "node:run:run%3Athread%3Athread%253Aevidence%3Aordinal%3A4:root",
        "ordinal": 4,
        "status": "running",
        "messageId": "context-compact:run:thread:thread%3Aevidence:ordinal:3",
        "providerThreadId": "provider-thread:provider:codex:native-thread:pending%3Arun%3Athread%3Athread%253Aevidence%3Aordinal%3A1",
        "delegatedTaskId": "node:delegated-task:evidence%3A3",
        "queuePosition": null,
        "compactionRecoveryOfRunId": "run:thread:thread%3Aevidence:ordinal:3"
      }
    ],
    "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": "context-compact:run:thread:thread%3Aevidence:ordinal:3",
        "text": "/compact",
        "length": 8,
        "createdBy": "agent",
        "creationSource": "server",
        "idleCompaction": "onReturn",
        "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": "running",
        "nativeThreadId": "codex:thread:evidence:0",
        "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"
      },
      {
        "id": "provider-turn:codex:thread:evidence:4",
        "nodeId": "node:run:run%3Athread%3Athread%253Aevidence%3Aordinal%3A4:root",
        "runAttemptId": "run-attempt:run:run%3Athread%3Athread%253Aevidence%3Aordinal%3A4:attempt:1",
        "ordinal": 4,
        "status": "running"
      }
    ],
    "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": [
      {
        "type": "run_interrupt_request",
        "runId": "run:thread:thread%3Aevidence:ordinal:4",
        "status": "completed",
        "message": "Stopped by user"
      },
      {
        "type": "run_interrupt_result",
        "runId": "run:thread:thread%3Aevidence:ordinal:4",
        "status": "interrupted",
        "message": "Stopped by user"
      }
    ],
    "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",
        "delegatedTaskId": "node:delegated-task:evidence%3A2",
        "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",
        "delegatedTaskId": "node:delegated-task:evidence%3A3",
        "queuePosition": null
      },
      {
        "id": "run:thread:thread%3Aevidence:ordinal:4",
        "rootNodeId": "node:run:run%3Athread%3Athread%253Aevidence%3Aordinal%3A4:root",
        "ordinal": 4,
        "status": "interrupted",
        "messageId": "context-compact:run:thread:thread%3Aevidence:ordinal:3",
        "providerThreadId": "provider-thread:provider:codex:native-thread:pending%3Arun%3Athread%3Athread%253Aevidence%3Aordinal%3A1",
        "delegatedTaskId": "node:delegated-task:evidence%3A3",
        "queuePosition": null,
        "compactionRecoveryOfRunId": "run:thread:thread%3Aevidence:ordinal:3"
      }
    ],
    "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": "context-compact:run:thread:thread%3Aevidence:ordinal:3",
        "text": "/compact",
        "length": 8,
        "createdBy": "agent",
        "creationSource": "server",
        "idleCompaction": "onReturn",
        "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": "interrupted",
        "nativeThreadId": "codex:thread:evidence:0",
        "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"
      },
      {
        "id": "provider-turn:codex:thread:evidence:4",
        "nodeId": "node:run:run%3Athread%3Athread%253Aevidence%3Aordinal%3A4:root",
        "runAttemptId": "run-attempt:run:run%3Athread%3Athread%253Aevidence%3Aordinal%3A4:attempt:1",
        "ordinal": 4,
        "status": "interrupted"
      }
    ],
    "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
      },
      {
        "runId": "run:thread:thread%3Aevidence:ordinal:4",
        "status": "interrupted",
        "text": "Synthetic compaction complete",
        "length": 29
      }
    ]
  }
]
```

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": []
  },
  {
    "nativeThreadId": "codex:thread:evidence:0",
    "providerTurnOrdinal": 2,
    "text": "/compact",
    "length": 8,
    "attachmentCount": 0,
    "attachments": []
  }
]
```

Native generations: 1; final run count: 4.

## stop-before-terminal-handler

Fixture: `{"group":"G8","name":"stop-before-terminal-handler","background":true,"stopTerminal":true,"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":"threadStop","phase":"failure persisted before run-ended handler","runId":"run:thread:thread%3Aevidence:ordinal:3"}
{"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":"waitAfterStopSettled","timedOut":false,"run":{"id":"run:thread:thread%3Aevidence:ordinal:3","status":"failed"}}
{"operation":"persistedEventReplayAndProjectionReread","throughSequence":69,"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":65,"type":"turn-item.updated","itemType":"run_interrupt_request","runId":"run:thread:thread%3Aevidence:ordinal:3","status":"completed","message":"Stopped by user"}
{"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": "stop-before-handler-release",
    "snoozedUntil": null,
    "archivedAt": null,
    "stopItems": [
      {
        "type": "run_interrupt_request",
        "runId": "run:thread:thread%3Aevidence:ordinal:3",
        "status": "completed",
        "message": "Stopped by user"
      }
    ],
    "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": "guard-before-handler-release",
    "snoozedUntil": null,
    "archivedAt": null,
    "stopItems": [
      {
        "type": "run_interrupt_request",
        "runId": "run:thread:thread%3Aevidence:ordinal:3",
        "status": "completed",
        "message": "Stopped by user"
      }
    ],
    "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": "queue-after-recovery",
    "snoozedUntil": null,
    "archivedAt": null,
    "stopItems": [
      {
        "type": "run_interrupt_request",
        "runId": "run:thread:thread%3Aevidence:ordinal:3",
        "status": "completed",
        "message": "Stopped by user"
      }
    ],
    "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": [
      {
        "type": "run_interrupt_request",
        "runId": "run:thread:thread%3Aevidence:ordinal:3",
        "status": "completed",
        "message": "Stopped by user"
      }
    ],
    "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.

## stop-during-compact-interrupted

Fixture: `{"group":"G8","name":"stop-during-compact-interrupted","background":true,"stopCompact":true,"interruptCompact":true,"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` | `—` |
| `run:thread:thread%3Aevidence:ordinal:5` | `context-compact:run:thread:thread%3Aevidence:ordinal:3` | `interrupted` | `—` | `run:thread:thread%3Aevidence:ordinal:3` |

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":"compactThread","runId":"run:thread:thread%3Aevidence:ordinal:5","nativeThreadId":"codex:thread:evidence:0"}
{"operation":"providerInput","runId":"run:thread:thread%3Aevidence:ordinal:5","runOrdinal":5,"nativeThreadId":"codex:thread:evidence:0","text":"/compact","textLength":8,"attachments":[]}
{"operation":"threadStop","phase":"compact running, held before synthetic terminal","runId":"run:thread:thread%3Aevidence:ordinal:5","syntheticTerminal":"interrupted"}
{"operation":"syntheticTerminalPublished","runId":"run:thread:thread%3Aevidence:ordinal:5","status":"interrupted"}
{"operation":"syntheticInterruptTurn","note":"synthetic runtime interrupt method returns; no native provider acknowledgement is claimed"}
{"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":"waitAfterStopSettled","timedOut":false,"run":{"id":"run:thread:thread%3Aevidence:ordinal:5","status":"interrupted"}}
{"operation":"persistedEventReplayAndProjectionReread","throughSequence":88,"unchangedRunCount":5,"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":68,"type":"node.updated","id":"node:run:run%3Athread%3Athread%253Aevidence%3Aordinal%3A5:root","runId":"run:thread:thread%3Aevidence:ordinal:5","status":"pending"}
{"sequence":74,"type":"run.updated","compactionRecoveryOfRunId":"run:thread:thread%3Aevidence:ordinal:3","id":"run:thread:thread%3Aevidence:ordinal:5","ordinal":5,"status":"running","messageId":"context-compact:run:thread:thread%3Aevidence:ordinal:3"}
{"sequence":75,"type":"run-attempt.updated","id":"run-attempt:run:run%3Athread%3Athread%253Aevidence%3Aordinal%3A5:attempt:1","runId":"run:thread:thread%3Aevidence:ordinal:5","status":"running"}
{"sequence":76,"type":"node.updated","id":"node:run:run%3Athread%3Athread%253Aevidence%3Aordinal%3A5:root","runId":"run:thread:thread%3Aevidence:ordinal:5","status":"running"}
{"sequence":77,"type":"provider-turn.updated","id":"provider-turn:codex:thread:evidence:5","status":"running","ordinal":5,"tokenUsage":{"usedTokens":20000,"maxTokens":258400}}
{"sequence":78,"type":"turn-item.updated","itemType":"run_interrupt_request","runId":"run:thread:thread%3Aevidence:ordinal:5","status":"completed","message":"Stopped by user"}
{"sequence":79,"type":"run.updated","id":"run:thread:thread%3Aevidence:ordinal:4","ordinal":4,"status":"queued","messageId":"evidence:4","queueHeld":true}
{"sequence":80,"type":"provider-turn.updated","id":"provider-turn:codex:thread:evidence:5","status":"interrupted","ordinal":5}
{"sequence":82,"type":"run-attempt.updated","id":"run-attempt:run:run%3Athread%3Athread%253Aevidence%3Aordinal%3A5:attempt:1","runId":"run:thread:thread%3Aevidence:ordinal:5","status":"interrupted"}
{"sequence":84,"type":"node.updated","id":"node:run:run%3Athread%3Athread%253Aevidence%3Aordinal%3A5:root","runId":"run:thread:thread%3Aevidence:ordinal:5","status":"interrupted"}
{"sequence":85,"type":"turn-item.updated","itemType":"run_interrupt_result","runId":"run:thread:thread%3Aevidence:ordinal:5","status":"interrupted","message":"Stopped by user"}
{"sequence":86,"type":"run.updated","compactionRecoveryOfRunId":"run:thread:thread%3Aevidence:ordinal:3","id":"run:thread:thread%3Aevidence:ordinal:5","ordinal":5,"status":"interrupted","messageId":"context-compact:run:thread:thread%3Aevidence:ordinal:3"}
```

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": "compact-running-before-stop",
    "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
      },
      {
        "id": "run:thread:thread%3Aevidence:ordinal:5",
        "rootNodeId": "node:run:run%3Athread%3Athread%253Aevidence%3Aordinal%3A5:root",
        "ordinal": 5,
        "status": "running",
        "messageId": "context-compact:run:thread:thread%3Aevidence:ordinal:3",
        "providerThreadId": "provider-thread:provider:codex:native-thread:pending%3Arun%3Athread%3Athread%253Aevidence%3Aordinal%3A1",
        "queuePosition": null,
        "compactionRecoveryOfRunId": "run:thread:thread%3Aevidence:ordinal:3"
      }
    ],
    "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": "context-compact:run:thread:thread%3Aevidence:ordinal:3",
        "text": "/compact",
        "length": 8,
        "createdBy": "agent",
        "creationSource": "server",
        "idleCompaction": "onReturn",
        "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"
      },
      {
        "id": "run-attempt:run:run%3Athread%3Athread%253Aevidence%3Aordinal%3A5:attempt:1",
        "runId": "run:thread:thread%3Aevidence:ordinal:5",
        "status": "running",
        "nativeThreadId": "codex:thread:evidence:0",
        "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"
      },
      {
        "id": "provider-turn:codex:thread:evidence:5",
        "nodeId": "node:run:run%3Athread%3Athread%253Aevidence%3Aordinal%3A5:root",
        "runAttemptId": "run-attempt:run:run%3Athread%3Athread%253Aevidence%3Aordinal%3A5:attempt:1",
        "ordinal": 5,
        "status": "running"
      }
    ],
    "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": "stop-during-compact",
    "snoozedUntil": null,
    "archivedAt": null,
    "stopItems": [
      {
        "type": "run_interrupt_request",
        "runId": "run:thread:thread%3Aevidence:ordinal:5",
        "status": "completed",
        "message": "Stopped by user"
      }
    ],
    "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
      },
      {
        "id": "run:thread:thread%3Aevidence:ordinal:5",
        "rootNodeId": "node:run:run%3Athread%3Athread%253Aevidence%3Aordinal%3A5:root",
        "ordinal": 5,
        "status": "running",
        "messageId": "context-compact:run:thread:thread%3Aevidence:ordinal:3",
        "providerThreadId": "provider-thread:provider:codex:native-thread:pending%3Arun%3Athread%3Athread%253Aevidence%3Aordinal%3A1",
        "queuePosition": null,
        "compactionRecoveryOfRunId": "run:thread:thread%3Aevidence:ordinal:3"
      }
    ],
    "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": "context-compact:run:thread:thread%3Aevidence:ordinal:3",
        "text": "/compact",
        "length": 8,
        "createdBy": "agent",
        "creationSource": "server",
        "idleCompaction": "onReturn",
        "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"
      },
      {
        "id": "run-attempt:run:run%3Athread%3Athread%253Aevidence%3Aordinal%3A5:attempt:1",
        "runId": "run:thread:thread%3Aevidence:ordinal:5",
        "status": "running",
        "nativeThreadId": "codex:thread:evidence:0",
        "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"
      },
      {
        "id": "provider-turn:codex:thread:evidence:5",
        "nodeId": "node:run:run%3Athread%3Athread%253Aevidence%3Aordinal%3A5:root",
        "runAttemptId": "run-attempt:run:run%3Athread%3Athread%253Aevidence%3Aordinal%3A5:attempt:1",
        "ordinal": 5,
        "status": "running"
      }
    ],
    "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": [
      {
        "type": "run_interrupt_request",
        "runId": "run:thread:thread%3Aevidence:ordinal:5",
        "status": "completed",
        "message": "Stopped by user"
      },
      {
        "type": "run_interrupt_result",
        "runId": "run:thread:thread%3Aevidence:ordinal:5",
        "status": "interrupted",
        "message": "Stopped by user"
      }
    ],
    "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
      },
      {
        "id": "run:thread:thread%3Aevidence:ordinal:5",
        "rootNodeId": "node:run:run%3Athread%3Athread%253Aevidence%3Aordinal%3A5:root",
        "ordinal": 5,
        "status": "interrupted",
        "messageId": "context-compact:run:thread:thread%3Aevidence:ordinal:3",
        "providerThreadId": "provider-thread:provider:codex:native-thread:pending%3Arun%3Athread%3Athread%253Aevidence%3Aordinal%3A1",
        "queuePosition": null,
        "compactionRecoveryOfRunId": "run:thread:thread%3Aevidence:ordinal:3"
      }
    ],
    "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": "context-compact:run:thread:thread%3Aevidence:ordinal:3",
        "text": "/compact",
        "length": 8,
        "createdBy": "agent",
        "creationSource": "server",
        "idleCompaction": "onReturn",
        "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"
      },
      {
        "id": "run-attempt:run:run%3Athread%3Athread%253Aevidence%3Aordinal%3A5:attempt:1",
        "runId": "run:thread:thread%3Aevidence:ordinal:5",
        "status": "interrupted",
        "nativeThreadId": "codex:thread:evidence:0",
        "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"
      },
      {
        "id": "provider-turn:codex:thread:evidence:5",
        "nodeId": "node:run:run%3Athread%3Athread%253Aevidence%3Aordinal%3A5:root",
        "runAttemptId": "run-attempt:run:run%3Athread%3Athread%253Aevidence%3Aordinal%3A5:attempt:1",
        "ordinal": 5,
        "status": "interrupted"
      }
    ],
    "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
      },
      {
        "runId": "run:thread:thread%3Aevidence:ordinal:5",
        "status": "interrupted",
        "text": "Synthetic compaction complete",
        "length": 29
      }
    ]
  },
  {
    "label": "final",
    "snoozedUntil": null,
    "archivedAt": null,
    "stopItems": [
      {
        "type": "run_interrupt_request",
        "runId": "run:thread:thread%3Aevidence:ordinal:5",
        "status": "completed",
        "message": "Stopped by user"
      },
      {
        "type": "run_interrupt_result",
        "runId": "run:thread:thread%3Aevidence:ordinal:5",
        "status": "interrupted",
        "message": "Stopped by user"
      }
    ],
    "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
      },
      {
        "id": "run:thread:thread%3Aevidence:ordinal:5",
        "rootNodeId": "node:run:run%3Athread%3Athread%253Aevidence%3Aordinal%3A5:root",
        "ordinal": 5,
        "status": "interrupted",
        "messageId": "context-compact:run:thread:thread%3Aevidence:ordinal:3",
        "providerThreadId": "provider-thread:provider:codex:native-thread:pending%3Arun%3Athread%3Athread%253Aevidence%3Aordinal%3A1",
        "queuePosition": null,
        "compactionRecoveryOfRunId": "run:thread:thread%3Aevidence:ordinal:3"
      }
    ],
    "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": "context-compact:run:thread:thread%3Aevidence:ordinal:3",
        "text": "/compact",
        "length": 8,
        "createdBy": "agent",
        "creationSource": "server",
        "idleCompaction": "onReturn",
        "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"
      },
      {
        "id": "run-attempt:run:run%3Athread%3Athread%253Aevidence%3Aordinal%3A5:attempt:1",
        "runId": "run:thread:thread%3Aevidence:ordinal:5",
        "status": "interrupted",
        "nativeThreadId": "codex:thread:evidence:0",
        "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"
      },
      {
        "id": "provider-turn:codex:thread:evidence:5",
        "nodeId": "node:run:run%3Athread%3Athread%253Aevidence%3Aordinal%3A5:root",
        "runAttemptId": "run-attempt:run:run%3Athread%3Athread%253Aevidence%3Aordinal%3A5:attempt:1",
        "ordinal": 5,
        "status": "interrupted"
      }
    ],
    "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
      },
      {
        "runId": "run:thread:thread%3Aevidence:ordinal:5",
        "status": "interrupted",
        "text": "Synthetic compaction complete",
        "length": 29
      }
    ]
  }
]
```

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": []
  },
  {
    "nativeThreadId": "codex:thread:evidence:0",
    "providerTurnOrdinal": 2,
    "text": "/compact",
    "length": 8,
    "attachmentCount": 0,
    "attachments": []
  }
]
```

Native generations: 1; final run count: 5.

## stop-during-compact-late-completion

Fixture: `{"group":"G8","name":"stop-during-compact-late-completion","background":true,"stopCompact":true,"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` | `—` |
| `run:thread:thread%3Aevidence:ordinal:5` | `context-compact:run:thread:thread%3Aevidence:ordinal:3` | `interrupted` | `—` | `run:thread:thread%3Aevidence:ordinal:3` |

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":"compactThread","runId":"run:thread:thread%3Aevidence:ordinal:5","nativeThreadId":"codex:thread:evidence:0"}
{"operation":"providerInput","runId":"run:thread:thread%3Aevidence:ordinal:5","runOrdinal":5,"nativeThreadId":"codex:thread:evidence:0","text":"/compact","textLength":8,"attachments":[]}
{"operation":"threadStop","phase":"compact running, held before synthetic terminal","runId":"run:thread:thread%3Aevidence:ordinal:5","syntheticTerminal":"completed"}
{"operation":"syntheticTerminalPublished","runId":"run:thread:thread%3Aevidence:ordinal:5","status":"completed"}
{"operation":"syntheticInterruptTurn","note":"synthetic runtime interrupt method returns; no native provider acknowledgement is claimed"}
{"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":"waitAfterStopSettled","timedOut":false,"run":{"id":"run:thread:thread%3Aevidence:ordinal:5","status":"interrupted"}}
{"operation":"persistedEventReplayAndProjectionReread","throughSequence":88,"unchangedRunCount":5,"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":68,"type":"node.updated","id":"node:run:run%3Athread%3Athread%253Aevidence%3Aordinal%3A5:root","runId":"run:thread:thread%3Aevidence:ordinal:5","status":"pending"}
{"sequence":74,"type":"run.updated","compactionRecoveryOfRunId":"run:thread:thread%3Aevidence:ordinal:3","id":"run:thread:thread%3Aevidence:ordinal:5","ordinal":5,"status":"running","messageId":"context-compact:run:thread:thread%3Aevidence:ordinal:3"}
{"sequence":75,"type":"run-attempt.updated","id":"run-attempt:run:run%3Athread%3Athread%253Aevidence%3Aordinal%3A5:attempt:1","runId":"run:thread:thread%3Aevidence:ordinal:5","status":"running"}
{"sequence":76,"type":"node.updated","id":"node:run:run%3Athread%3Athread%253Aevidence%3Aordinal%3A5:root","runId":"run:thread:thread%3Aevidence:ordinal:5","status":"running"}
{"sequence":77,"type":"provider-turn.updated","id":"provider-turn:codex:thread:evidence:5","status":"running","ordinal":5,"tokenUsage":{"usedTokens":20000,"maxTokens":258400}}
{"sequence":78,"type":"turn-item.updated","itemType":"run_interrupt_request","runId":"run:thread:thread%3Aevidence:ordinal:5","status":"completed","message":"Stopped by user"}
{"sequence":79,"type":"run.updated","id":"run:thread:thread%3Aevidence:ordinal:4","ordinal":4,"status":"queued","messageId":"evidence:4","queueHeld":true}
{"sequence":80,"type":"provider-turn.updated","id":"provider-turn:codex:thread:evidence:5","status":"completed","ordinal":5}
{"sequence":82,"type":"run-attempt.updated","id":"run-attempt:run:run%3Athread%3Athread%253Aevidence%3Aordinal%3A5:attempt:1","runId":"run:thread:thread%3Aevidence:ordinal:5","status":"interrupted"}
{"sequence":84,"type":"node.updated","id":"node:run:run%3Athread%3Athread%253Aevidence%3Aordinal%3A5:root","runId":"run:thread:thread%3Aevidence:ordinal:5","status":"interrupted"}
{"sequence":85,"type":"turn-item.updated","itemType":"run_interrupt_result","runId":"run:thread:thread%3Aevidence:ordinal:5","status":"interrupted","message":"Stopped by user"}
{"sequence":86,"type":"run.updated","compactionRecoveryOfRunId":"run:thread:thread%3Aevidence:ordinal:3","id":"run:thread:thread%3Aevidence:ordinal:5","ordinal":5,"status":"interrupted","messageId":"context-compact:run:thread:thread%3Aevidence:ordinal:3"}
```

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": "compact-running-before-stop",
    "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
      },
      {
        "id": "run:thread:thread%3Aevidence:ordinal:5",
        "rootNodeId": "node:run:run%3Athread%3Athread%253Aevidence%3Aordinal%3A5:root",
        "ordinal": 5,
        "status": "running",
        "messageId": "context-compact:run:thread:thread%3Aevidence:ordinal:3",
        "providerThreadId": "provider-thread:provider:codex:native-thread:pending%3Arun%3Athread%3Athread%253Aevidence%3Aordinal%3A1",
        "queuePosition": null,
        "compactionRecoveryOfRunId": "run:thread:thread%3Aevidence:ordinal:3"
      }
    ],
    "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": "context-compact:run:thread:thread%3Aevidence:ordinal:3",
        "text": "/compact",
        "length": 8,
        "createdBy": "agent",
        "creationSource": "server",
        "idleCompaction": "onReturn",
        "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"
      },
      {
        "id": "run-attempt:run:run%3Athread%3Athread%253Aevidence%3Aordinal%3A5:attempt:1",
        "runId": "run:thread:thread%3Aevidence:ordinal:5",
        "status": "running",
        "nativeThreadId": "codex:thread:evidence:0",
        "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"
      },
      {
        "id": "provider-turn:codex:thread:evidence:5",
        "nodeId": "node:run:run%3Athread%3Athread%253Aevidence%3Aordinal%3A5:root",
        "runAttemptId": "run-attempt:run:run%3Athread%3Athread%253Aevidence%3Aordinal%3A5:attempt:1",
        "ordinal": 5,
        "status": "running"
      }
    ],
    "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": "stop-during-compact",
    "snoozedUntil": null,
    "archivedAt": null,
    "stopItems": [
      {
        "type": "run_interrupt_request",
        "runId": "run:thread:thread%3Aevidence:ordinal:5",
        "status": "completed",
        "message": "Stopped by user"
      }
    ],
    "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
      },
      {
        "id": "run:thread:thread%3Aevidence:ordinal:5",
        "rootNodeId": "node:run:run%3Athread%3Athread%253Aevidence%3Aordinal%3A5:root",
        "ordinal": 5,
        "status": "running",
        "messageId": "context-compact:run:thread:thread%3Aevidence:ordinal:3",
        "providerThreadId": "provider-thread:provider:codex:native-thread:pending%3Arun%3Athread%3Athread%253Aevidence%3Aordinal%3A1",
        "queuePosition": null,
        "compactionRecoveryOfRunId": "run:thread:thread%3Aevidence:ordinal:3"
      }
    ],
    "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": "context-compact:run:thread:thread%3Aevidence:ordinal:3",
        "text": "/compact",
        "length": 8,
        "createdBy": "agent",
        "creationSource": "server",
        "idleCompaction": "onReturn",
        "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"
      },
      {
        "id": "run-attempt:run:run%3Athread%3Athread%253Aevidence%3Aordinal%3A5:attempt:1",
        "runId": "run:thread:thread%3Aevidence:ordinal:5",
        "status": "running",
        "nativeThreadId": "codex:thread:evidence:0",
        "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"
      },
      {
        "id": "provider-turn:codex:thread:evidence:5",
        "nodeId": "node:run:run%3Athread%3Athread%253Aevidence%3Aordinal%3A5:root",
        "runAttemptId": "run-attempt:run:run%3Athread%3Athread%253Aevidence%3Aordinal%3A5:attempt:1",
        "ordinal": 5,
        "status": "running"
      }
    ],
    "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": [
      {
        "type": "run_interrupt_request",
        "runId": "run:thread:thread%3Aevidence:ordinal:5",
        "status": "completed",
        "message": "Stopped by user"
      },
      {
        "type": "run_interrupt_result",
        "runId": "run:thread:thread%3Aevidence:ordinal:5",
        "status": "interrupted",
        "message": "Stopped by user"
      }
    ],
    "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
      },
      {
        "id": "run:thread:thread%3Aevidence:ordinal:5",
        "rootNodeId": "node:run:run%3Athread%3Athread%253Aevidence%3Aordinal%3A5:root",
        "ordinal": 5,
        "status": "interrupted",
        "messageId": "context-compact:run:thread:thread%3Aevidence:ordinal:3",
        "providerThreadId": "provider-thread:provider:codex:native-thread:pending%3Arun%3Athread%3Athread%253Aevidence%3Aordinal%3A1",
        "queuePosition": null,
        "compactionRecoveryOfRunId": "run:thread:thread%3Aevidence:ordinal:3"
      }
    ],
    "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": "context-compact:run:thread:thread%3Aevidence:ordinal:3",
        "text": "/compact",
        "length": 8,
        "createdBy": "agent",
        "creationSource": "server",
        "idleCompaction": "onReturn",
        "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"
      },
      {
        "id": "run-attempt:run:run%3Athread%3Athread%253Aevidence%3Aordinal%3A5:attempt:1",
        "runId": "run:thread:thread%3Aevidence:ordinal:5",
        "status": "interrupted",
        "nativeThreadId": "codex:thread:evidence:0",
        "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"
      },
      {
        "id": "provider-turn:codex:thread:evidence:5",
        "nodeId": "node:run:run%3Athread%3Athread%253Aevidence%3Aordinal%3A5:root",
        "runAttemptId": "run-attempt:run:run%3Athread%3Athread%253Aevidence%3Aordinal%3A5:attempt:1",
        "ordinal": 5,
        "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
      },
      {
        "runId": "run:thread:thread%3Aevidence:ordinal:5",
        "status": "completed",
        "text": "Synthetic compaction complete",
        "length": 29
      }
    ]
  },
  {
    "label": "final",
    "snoozedUntil": null,
    "archivedAt": null,
    "stopItems": [
      {
        "type": "run_interrupt_request",
        "runId": "run:thread:thread%3Aevidence:ordinal:5",
        "status": "completed",
        "message": "Stopped by user"
      },
      {
        "type": "run_interrupt_result",
        "runId": "run:thread:thread%3Aevidence:ordinal:5",
        "status": "interrupted",
        "message": "Stopped by user"
      }
    ],
    "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
      },
      {
        "id": "run:thread:thread%3Aevidence:ordinal:5",
        "rootNodeId": "node:run:run%3Athread%3Athread%253Aevidence%3Aordinal%3A5:root",
        "ordinal": 5,
        "status": "interrupted",
        "messageId": "context-compact:run:thread:thread%3Aevidence:ordinal:3",
        "providerThreadId": "provider-thread:provider:codex:native-thread:pending%3Arun%3Athread%3Athread%253Aevidence%3Aordinal%3A1",
        "queuePosition": null,
        "compactionRecoveryOfRunId": "run:thread:thread%3Aevidence:ordinal:3"
      }
    ],
    "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": "context-compact:run:thread:thread%3Aevidence:ordinal:3",
        "text": "/compact",
        "length": 8,
        "createdBy": "agent",
        "creationSource": "server",
        "idleCompaction": "onReturn",
        "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"
      },
      {
        "id": "run-attempt:run:run%3Athread%3Athread%253Aevidence%3Aordinal%3A5:attempt:1",
        "runId": "run:thread:thread%3Aevidence:ordinal:5",
        "status": "interrupted",
        "nativeThreadId": "codex:thread:evidence:0",
        "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"
      },
      {
        "id": "provider-turn:codex:thread:evidence:5",
        "nodeId": "node:run:run%3Athread%3Athread%253Aevidence%3Aordinal%3A5:root",
        "runAttemptId": "run-attempt:run:run%3Athread%3Athread%253Aevidence%3Aordinal%3A5:attempt:1",
        "ordinal": 5,
        "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
      },
      {
        "runId": "run:thread:thread%3Aevidence:ordinal:5",
        "status": "completed",
        "text": "Synthetic compaction complete",
        "length": 29
      }
    ]
  }
]
```

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": []
  },
  {
    "nativeThreadId": "codex:thread:evidence:0",
    "providerTurnOrdinal": 2,
    "text": "/compact",
    "length": 8,
    "attachmentCount": 0,
    "attachments": []
  }
]
```

Native generations: 1; final run count: 5.
