# Runtime evidence for PR [#24172](https://github.com/pingdotgg/t3code/pull/24172)

Head verified from local git. Database stores no SHA. Lead reports parent created on e92888749d and fresh fork/control exercised on 2615e21dec, and personally verified browser at head. This extraction does not independently establish server binary SHA. Exact fork createdAt is 16:59:57.287Z; first compact requestedAt is 17:00:05.065Z.

Read-only SQLite extraction (`mode=ro`, `PRAGMA query_only=ON`, one read transaction). Only isolated worktree state was read. No browser/server launched. No test was rerun. Database has zero retained v2 events; these are persisted projections.

## parent

Thread: `thread:project:bf603268-d87e-4a81-9ccf-61ddcaff37e0:4fcb6326-5ac9-4095-9aa9-09ba29d7278c`
Created: 2026-10-23T16:53:56.467Z
Fork source: `null`
Counts: {"runs": 3, "messages": 6, "turnItems": 9, "providerTurns": 3, "contextTransfers": 0}

Run `run:thread:thread%3Aproject%3Abf603268-d87e-4a81-9ccf-61ddcaff37e0%3A4fcb6326-5ac9-4095-9aa9-09ba29d7278c:ordinal:1`: completed; requested 2026-10-23T16:54:37.852Z; completed 2026-10-23T16:54:42.680Z
Run `run:thread:thread%3Aproject%3Abf603268-d87e-4a81-9ccf-61ddcaff37e0%3A4fcb6326-5ac9-4095-9aa9-09ba29d7278c:ordinal:2`: completed; requested 2026-10-23T16:55:21.606Z; completed 2026-10-23T16:55:28.771Z
Run `run:thread:thread%3Aproject%3Abf603268-d87e-4a81-9ccf-61ddcaff37e0%3A4fcb6326-5ac9-4095-9aa9-09ba29d7278c:ordinal:3`: completed; requested 2026-10-23T16:56:20.772Z; completed 2026-10-23T16:56:23.086Z
Message `57c69124-f7c5-49de-ab1a-fd1b2d2440f3` (user, 2026-10-23T16:54:37.852Z): "Reply exactly FIRST. Do not use tools."
Message `message:provider:claudeAgent:native-item:300e93fa-97be-4f0d-9c4a-0f38c140d567` (assistant, 2026-10-23T16:54:42.611Z): "FIRST"
Message `6c18cbfc-d7e7-4453-b52b-de8ea4b29797` (user, 2026-10-23T16:55:21.606Z): "Reply exactly SECOND. Do not use tools."
Message `message:provider:claudeAgent:native-item:70cdc7ec-f972-4210-bee5-229a7f576711` (assistant, 2026-10-23T16:55:28.687Z): "SECOND"
Message `ca27565e-6756-42f6-ac00-754a2f020e0f` (user, 2026-10-23T16:56:20.772Z): "Reply exactly THIRD. Do not use tools."
Message `message:provider:claudeAgent:native-item:87c31f96-7509-4bcc-9b59-e3120b618f1f` (assistant, 2026-10-23T16:56:23.003Z): "THIRD"

## nativeFork

Thread: `0cd47e2d-b08b-4196-af57-65d674892681`
Created: 2026-10-23T16:59:57.287Z
Fork source: `{"type": "run", "threadId": "thread:project:bf603268-d87e-4a81-9ccf-61ddcaff37e0:4fcb6326-5ac9-4095-9aa9-09ba29d7278c", "runId": "run:thread:thread%3Aproject%3Abf603268-d87e-4a81-9ccf-61ddcaff37e0%3A4fcb6326-5ac9-4095-9aa9-09ba29d7278c:ordinal:3"}`
Counts: {"runs": 1, "messages": 1, "turnItems": 3, "providerTurns": 1, "contextTransfers": 1}

Run `run:thread:0cd47e2d-b08b-4196-af57-65d674892681:ordinal:1`: completed; requested 2026-10-23T17:00:05.065Z; completed 2026-10-23T17:00:22.122Z
Message `f0efd114-7b58-4629-a396-c6dc256d2b9f` (user, 2026-10-23T17:00:05.065Z): "/compact"
```json
{
  "id": "turn-item:provider:claudeAgent:native-item:6d394633-77a8-48f9-a555-6ccca9f0cc7d",
  "threadId": "0cd47e2d-b08b-4196-af57-65d674892681",
  "runId": "run:thread:0cd47e2d-b08b-4196-af57-65d674892681:ordinal:1",
  "nodeId": "node:run:run%3Athread%3A0cd47e2d-b08b-4196-af57-65d674892681%3Aordinal%3A1:root",
  "providerThreadId": "provider-thread:provider:claudeAgent:native-thread:pending%3Arun%3Athread%3A0cd47e2d-b08b-4196-af57-65d674892681%3Aordinal%3A1",
  "providerTurnId": "provider-turn:provider:claudeAgent:native-turn:turn%3Arun-attempt%3Arun%3Arun%253Athread%253A0cd47e2d-b08b-4196-af57-65d674892681%253Aordinal%253A1%3Aattempt%3A1",
  "nativeItemRef": {
    "driver": "claudeAgent",
    "nativeId": "6d394633-77a8-48f9-a555-6ccca9f0cc7d",
    "strength": "strong"
  },
  "parentItemId": null,
  "ordinal": 1000002,
  "status": "completed",
  "title": "Context compacted",
  "startedAt": "2026-10-23T17:00:07.606Z",
  "completedAt": "2026-10-23T17:00:21.998Z",
  "updatedAt": "2026-10-23T17:00:22.057Z",
  "type": "compaction",
  "driver": "claudeAgent",
  "beforeTokenCount": 84252,
  "afterTokenCount": 1586
}
```
Transfer resolution:
```json
{
  "id": "context-transfer:type:fork:source-thread:thread%3Aproject%3Abf603268-d87e-4a81-9ccf-61ddcaff37e0%3A4fcb6326-5ac9-4095-9aa9-09ba29d7278c:target-thread:0cd47e2d-b08b-4196-af57-65d674892681:8f1df4a3-4d7e-47bd-88fa-22914f681213",
  "type": "fork",
  "sourceThreadId": "thread:project:bf603268-d87e-4a81-9ccf-61ddcaff37e0:4fcb6326-5ac9-4095-9aa9-09ba29d7278c",
  "targetThreadId": "0cd47e2d-b08b-4196-af57-65d674892681",
  "sourcePoint": {
    "threadId": "thread:project:bf603268-d87e-4a81-9ccf-61ddcaff37e0:4fcb6326-5ac9-4095-9aa9-09ba29d7278c",
    "runId": "run:thread:thread%3Aproject%3Abf603268-d87e-4a81-9ccf-61ddcaff37e0%3A4fcb6326-5ac9-4095-9aa9-09ba29d7278c:ordinal:3",
    "checkpointId": "checkpoint:scope:checkpoint-scope%3Athread%3Athread%253Aproject%253Abf603268-d87e-4a81-9ccf-61ddcaff37e0%253A4fcb6326-5ac9-4095-9aa9-09ba29d7278c%3Aname%3Aroot:name:3",
    "providerThreadRef": {
      "driver": "claudeAgent",
      "nativeId": "342b2027-161f-440e-b224-7b0357544dd1",
      "strength": "strong"
    },
    "providerTurnRef": {
      "driver": "claudeAgent",
      "nativeId": "87c31f96-7509-4bcc-9b59-e3120b618f1f",
      "strength": "weak"
    }
  },
  "basePoint": null,
  "sourceProviderInstanceId": "claudeAgent",
  "sourceTokenUsage": {
    "usedTokens": 84252,
    "maxTokens": 1000000,
    "inputTokens": 84246,
    "cachedInputTokens": 84169,
    "outputTokens": 6,
    "reasoningOutputTokens": 0,
    "promptCacheTtlMs": 3600000,
    "promptCacheExpiresAt": "2026-10-23T17:56:22.994Z",
    "updatedAt": "2026-10-23T16:56:23.004Z"
  },
  "targetProviderInstanceId": "claudeAgent",
  "targetRunId": "run:thread:0cd47e2d-b08b-4196-af57-65d674892681:ordinal:1",
  "status": "consumed",
  "resolution": {
    "strategy": "native_fork",
    "providerThreadRef": {
      "driver": "claudeAgent",
      "nativeId": "3823411a-9bcf-4108-8eae-a1ec70da2094",
      "strength": "strong"
    }
  },
  "createdBy": "user",
  "error": null,
  "createdAt": "2026-10-23T16:59:57.287Z",
  "updatedAt": "2026-10-23T17:00:05.631Z",
  "consumedAt": "2026-10-23T17:00:05.631Z"
}
```

## emptyControl

Thread: `c696ce82-ba07-4040-8a2e-0ea1ad98ef68`
Created: 2026-10-23T17:00:53.459Z
Fork source: `null`
Counts: {"runs": 1, "messages": 1, "turnItems": 3, "providerTurns": 0, "contextTransfers": 0}

Run `run:thread:c696ce82-ba07-4040-8a2e-0ea1ad98ef68:ordinal:1`: failed; requested 2026-10-23T17:00:53.675Z; completed 2026-10-23T17:00:54.250Z
Message `600596e8-38e8-4433-9a76-0066e85c7197` (user, 2026-10-23T17:00:53.675Z): "/compact"
```json
{
  "id": "turn-item:run:run%3Athread%3Ac696ce82-ba07-4040-8a2e-0ea1ad98ef68%3Aordinal%3A1:signal:empty-compaction",
  "threadId": "c696ce82-ba07-4040-8a2e-0ea1ad98ef68",
  "runId": "run:thread:c696ce82-ba07-4040-8a2e-0ea1ad98ef68:ordinal:1",
  "nodeId": "node:run:run%3Athread%3Ac696ce82-ba07-4040-8a2e-0ea1ad98ef68%3Aordinal%3A1:root",
  "providerThreadId": "provider-thread:provider:claudeAgent:native-thread:pending%3Arun%3Athread%3Ac696ce82-ba07-4040-8a2e-0ea1ad98ef68%3Aordinal%3A1",
  "providerTurnId": null,
  "nativeItemRef": null,
  "parentItemId": null,
  "ordinal": 1000003,
  "status": "failed",
  "title": "Cannot compact an empty thread",
  "startedAt": "2026-10-23T17:00:54.250Z",
  "completedAt": "2026-10-23T17:00:54.250Z",
  "updatedAt": "2026-10-23T17:00:54.250Z",
  "type": "error",
  "failure": {
    "class": "validation_error",
    "message": "Start a conversation before compacting this thread.",
    "code": null,
    "retryable": null
  }
}
```

## Limits and interpretation

Native fork: exactly one own user message, first run completed, compaction 84,252 -> 1,586 tokens (UI rounds to 84.3K -> 1.59K). Parent has exactly three completed runs and six messages, with assistant replies FIRST, SECOND, THIRD. Empty control: one /compact message, one failed run, exact empty-conversation validation, zero provider turns and zero compaction items.

Server-only visual matrix remains `[]`. Portable regression uses two ASCII messages of 17,000 bytes each; each exceeds the 16k handoff budget, so both whole items are omitted. Native case accepts the same history; portable empty case rejects before provider session open. The shared helper scans transfers and handoffs in O(T + H) time and O(1) extra space; it does not parse message content.

Two fresh reviewers reported MERGE per lead handoff; no independent forge verification was performed.
