# PR #22761 evidence transcript: before
SYNTHETIC data only (local OpenRouter-shaped stub). Server: node apps/server/src/bin.ts start --base-dir /tmp/ev-22761/home-before --mode web --host 127.0.0.1 --no-browser
worktree HEAD: 8acbefefc51b4d281dcd04108c82baa1ab902b0e
opencode: 1.18.18

## 1. Server emits (read-only sqlite3 of isolated statev2.sqlite after the server stopped; driver/extract.sh)
```
=== R1 thread 03474665-7337-4210-9260-34d638cce4dd
--- orchestration_events (provider-turn.updated; orchestration_v2_events is empty on this schema)
26|running|<absent>|<absent>
28|running|<absent>|<absent>
40|completed|<absent>|{"usageScope":"main_agent","cachedInputTokens":1000,"cacheCreationTokens":0,"reasoningTokens":0,"hasSubagents":false,"usageStatus":"complete","inputTokens":12000,"outputTokens":32}
--- orchestration_v2_projection_provider_turns
1|completed|<absent>|{"usageScope":"main_agent","cachedInputTokens":1000,"cacheCreationTokens":0,"reasoningTokens":0,"hasSubagents":false,"usageStatus":"complete","inputTokens":12000,"outputTokens":32}
=== R2 thread 965e1b9d-6a27-4ebd-9fdd-1eab0b6002c1
--- orchestration_events (provider-turn.updated; orchestration_v2_events is empty on this schema)
72|running|<absent>|<absent>
74|running|<absent>|<absent>
94|completed|<absent>|{"usageScope":"main_agent","cachedInputTokens":1500,"cacheCreationTokens":0,"reasoningTokens":0,"hasSubagents":false,"usageStatus":"complete","inputTokens":21500,"outputTokens":72}
--- orchestration_v2_projection_provider_turns
1|completed|<absent>|{"usageScope":"main_agent","cachedInputTokens":1500,"cacheCreationTokens":0,"reasoningTokens":0,"hasSubagents":false,"usageStatus":"complete","inputTokens":21500,"outputTokens":72}
=== R3b thread 3543e5bd-c20f-474c-964d-6b6aa32aa010
--- orchestration_events (provider-turn.updated; orchestration_v2_events is empty on this schema)
126|running|<absent>|<absent>
128|running|<absent>|<absent>
140|completed|<absent>|{"usageScope":"main_agent","cachedInputTokens":0,"cacheCreationTokens":0,"reasoningTokens":0,"hasSubagents":false,"usageStatus":"complete","inputTokens":0,"outputTokens":0}
--- orchestration_v2_projection_provider_turns
1|completed|<absent>|{"usageScope":"main_agent","cachedInputTokens":0,"cacheCreationTokens":0,"reasoningTokens":0,"hasSubagents":false,"usageStatus":"complete","inputTokens":0,"outputTokens":0}
=== R3a thread c309f557-c622-47ce-8da5-00494dde8c2b
--- orchestration_events (provider-turn.updated; orchestration_v2_events is empty on this schema)
172|running|<absent>|<absent>
174|running|<absent>|<absent>
179|failed|<absent>|{"usageScope":"main_agent","hasSubagents":false,"usageStatus":"unavailable"}
--- orchestration_v2_projection_provider_turns
1|failed|<absent>|{"usageScope":"main_agent","hasSubagents":false,"usageStatus":"unavailable"}
=== R4 thread 30f34554-99ad-422b-b8be-f56f3455c02a
--- orchestration_events (provider-turn.updated; orchestration_v2_events is empty on this schema)
207|running|<absent>|<absent>
209|running|<absent>|<absent>
221|completed|<absent>|{"usageScope":"main_agent","cachedInputTokens":1000,"cacheCreationTokens":0,"reasoningTokens":0,"hasSubagents":false,"usageStatus":"complete","inputTokens":12000,"outputTokens":32}
--- orchestration_v2_projection_provider_turns
1|completed|<absent>|{"usageScope":"main_agent","cachedInputTokens":1000,"cacheCreationTokens":0,"reasoningTokens":0,"hasSubagents":false,"usageStatus":"complete","inputTokens":12000,"outputTokens":32}
```

## 2. Client receives (capture.mjs: orchestration.subscribeThread frames + final orchestration.getThreadProjection), full JSON
```json
{
  "startedAt": "2026-10-22T14:03:21.752Z",
  "origin": "http://127.0.0.1:13862",
  "steps": [
    {
      "at": "2026-10-22T14:03:21.811Z",
      "step": "auth",
      "data": {
        "tokenExchange": 200
      }
    },
    {
      "at": "2026-10-22T14:03:21.833Z",
      "step": "project.create",
      "data": {
        "status": 200,
        "projectId": "e8e515a6-f52d-4d67-b6d6-55c369acdc6c",
        "body": "{\"id\":\"e8e515a6-f52d-4d67-b6d6-55c369acdc6c\",\"title\":\"ev-22761 synthetic project\",\"workspaceRoot\":\"/tmp/ev-22761/oc/project\",\"repositoryIdentity\":null,\"faviconPath\":null,\"projectIcon\":null,\"defaultModelSelection\":null,\"defaultThreadEnvMode\":null,\"autoPull\":false,\"scripts\":[],\"createdAt\":\"2026-10-22T"
      }
    },
    {
      "at": "2026-10-22T14:03:21.924Z",
      "step": "server.updateSettings",
      "data": {
        "opencode": {
          "driver": "opencode",
          "enabled": true,
          "config": {
            "binaryPath": "/tmp/ev-22761/oc/opencode"
          }
        }
      }
    },
    {
      "at": "2026-10-22T14:03:21.925Z",
      "step": "R1 launch",
      "data": {
        "threadId": "03474665-7337-4210-9260-34d638cce4dd",
        "model": "openrouter/z-ai/glm-5.3-flash"
      }
    },
    {
      "at": "2026-10-22T14:03:29.757Z",
      "step": "R1 final",
      "data": {
        "outcome": "settled",
        "runs": [
          {
            "status": "completed"
          }
        ],
        "providerTurns": [
          {
            "id": "provider-turn:provider:opencode:native-turn:ses_e9c138275ffedYNb9wKQ2tN2px%3Aattempt%3Arun-attempt%3Arun%3Arun%253Athread%253A03474665-7337-4210-9260-34d638cce4dd%253Aordinal%253A1%3Aattempt%3A1",
            "ordinal": 1,
            "status": "completed",
            "completedAt": "2026-10-22T14:03:27.961Z",
            "tokenUsage": "<absent>",
            "turnTokenUsage": {
              "usageScope": "main_agent",
              "cachedInputTokens": 1000,
              "cacheCreationTokens": 0,
              "reasoningTokens": 0,
              "hasSubagents": false,
              "usageStatus": "complete",
              "inputTokens": 12000,
              "outputTokens": 32
            }
          }
        ],
        "assistantMessages": [
          "Local stub reply."
        ]
      }
    },
    {
      "at": "2026-10-22T14:03:29.758Z",
      "step": "R2 launch",
      "data": {
        "threadId": "965e1b9d-6a27-4ebd-9fdd-1eab0b6002c1",
        "model": "openrouter/z-ai/glm-multi"
      }
    },
    {
      "at": "2026-10-22T14:03:36.431Z",
      "step": "R2 final",
      "data": {
        "outcome": "settled",
        "runs": [
          {
            "status": "completed"
          }
        ],
        "providerTurns": [
          {
            "id": "provider-turn:provider:opencode:native-turn:ses_e9c136850ffeGYTXLqh8uZ4NPV%3Aattempt%3Arun-attempt%3Arun%3Arun%253Athread%253A965e1b9d-6a27-4ebd-9fdd-1eab0b6002c1%253Aordinal%253A1%3Aattempt%3A1",
            "ordinal": 1,
            "status": "completed",
            "completedAt": "2026-10-22T14:03:34.638Z",
            "tokenUsage": "<absent>",
            "turnTokenUsage": {
              "usageScope": "main_agent",
              "cachedInputTokens": 1500,
              "cacheCreationTokens": 0,
              "reasoningTokens": 0,
              "hasSubagents": false,
              "usageStatus": "complete",
              "inputTokens": 21500,
              "outputTokens": 72
            }
          }
        ],
        "assistantMessages": [
          "Local stub reply."
        ]
      }
    },
    {
      "at": "2026-10-22T14:03:36.432Z",
      "step": "R3b launch",
      "data": {
        "threadId": "3543e5bd-c20f-474c-964d-6b6aa32aa010",
        "model": "openrouter/z-ai/glm-nousage"
      }
    },
    {
      "at": "2026-10-22T14:03:42.525Z",
      "step": "R3b final",
      "data": {
        "outcome": "settled",
        "runs": [
          {
            "status": "completed"
          }
        ],
        "providerTurns": [
          {
            "id": "provider-turn:provider:opencode:native-turn:ses_e9c134e76ffem56T8kxhcl6lDR%3Aattempt%3Arun-attempt%3Arun%3Arun%253Athread%253A3543e5bd-c20f-474c-964d-6b6aa32aa010%253Aordinal%253A1%3Aattempt%3A1",
            "ordinal": 1,
            "status": "completed",
            "completedAt": "2026-10-22T14:03:40.815Z",
            "tokenUsage": "<absent>",
            "turnTokenUsage": {
              "usageScope": "main_agent",
              "cachedInputTokens": 0,
              "cacheCreationTokens": 0,
              "reasoningTokens": 0,
              "hasSubagents": false,
              "usageStatus": "complete",
              "inputTokens": 0,
              "outputTokens": 0
            }
          }
        ],
        "assistantMessages": [
          "Local stub reply."
        ]
      }
    },
    {
      "at": "2026-10-22T14:03:42.525Z",
      "step": "R3a launch",
      "data": {
        "threadId": "c309f557-c622-47ce-8da5-00494dde8c2b",
        "model": "openrouter/z-ai/glm-err"
      }
    },
    {
      "at": "2026-10-22T14:03:48.332Z",
      "step": "R3a final",
      "data": {
        "outcome": "settled",
        "runs": [
          {
            "status": "failed"
          }
        ],
        "providerTurns": [
          {
            "id": "provider-turn:provider:opencode:native-turn:ses_e9c133727ffeyqz56W4yXqTPRB%3Aattempt%3Arun-attempt%3Arun%3Arun%253Athread%253Ac309f557-c622-47ce-8da5-00494dde8c2b%253Aordinal%253A1%3Aattempt%3A1",
            "ordinal": 1,
            "status": "failed",
            "completedAt": "2026-10-22T14:03:46.773Z",
            "tokenUsage": "<absent>",
            "turnTokenUsage": {
              "usageScope": "main_agent",
              "hasSubagents": false,
              "usageStatus": "unavailable"
            }
          }
        ],
        "assistantMessages": []
      }
    },
    {
      "at": "2026-10-22T14:03:48.332Z",
      "step": "R4 launch",
      "data": {
        "threadId": "30f34554-99ad-422b-b8be-f56f3455c02a",
        "model": "acme/stub-a"
      }
    },
    {
      "at": "2026-10-22T14:03:55.282Z",
      "step": "R4 final",
      "data": {
        "outcome": "settled",
        "runs": [
          {
            "status": "completed"
          }
        ],
        "providerTurns": [
          {
            "id": "provider-turn:provider:opencode:native-turn:ses_e9c131ebeffeR7PPBeNOry7V41%3Aattempt%3Arun-attempt%3Arun%3Arun%253Athread%253A30f34554-99ad-422b-b8be-f56f3455c02a%253Aordinal%253A1%3Aattempt%3A1",
            "ordinal": 1,
            "status": "completed",
            "completedAt": "2026-10-22T14:03:53.510Z",
            "tokenUsage": "<absent>",
            "turnTokenUsage": {
              "usageScope": "main_agent",
              "cachedInputTokens": 1000,
              "cacheCreationTokens": 0,
              "reasoningTokens": 0,
              "hasSubagents": false,
              "usageStatus": "complete",
              "inputTokens": 12000,
              "outputTokens": 32
            }
          }
        ],
        "assistantMessages": [
          "Local stub reply."
        ]
      }
    }
  ],
  "rows": {
    "R1": {
      "label": "openrouter single",
      "model": "openrouter/z-ai/glm-5.3-flash",
      "threadId": "03474665-7337-4210-9260-34d638cce4dd",
      "clientFrames": [
        {
          "at": "2026-10-22T14:03:22.011Z",
          "kind": "snapshot",
          "providerTurns": [],
          "runs": [
            "preparing"
          ]
        },
        {
          "kind": "event",
          "sequence": 18,
          "type": "run.updated",
          "status": "starting"
        },
        {
          "kind": "event",
          "sequence": 22,
          "type": "run.updated",
          "status": "running"
        },
        {
          "at": "2026-10-22T14:03:25.825Z",
          "kind": "event",
          "sequence": 26,
          "type": "provider-turn.updated",
          "payload": {
            "id": "provider-turn:provider:opencode:native-turn:ses_e9c138275ffedYNb9wKQ2tN2px%3Aattempt%3Arun-attempt%3Arun%3Arun%253Athread%253A03474665-7337-4210-9260-34d638cce4dd%253Aordinal%253A1%3Aattempt%3A1",
            "ordinal": 1,
            "status": "running",
            "completedAt": null,
            "tokenUsage": "<absent>",
            "turnTokenUsage": "<absent>"
          }
        },
        {
          "at": "2026-10-22T14:03:26.567Z",
          "kind": "event",
          "sequence": 28,
          "type": "provider-turn.updated",
          "payload": {
            "id": "provider-turn:provider:opencode:native-turn:ses_e9c138275ffedYNb9wKQ2tN2px%3Aattempt%3Arun-attempt%3Arun%3Arun%253Athread%253A03474665-7337-4210-9260-34d638cce4dd%253Aordinal%253A1%3Aattempt%3A1",
            "ordinal": 1,
            "status": "running",
            "completedAt": null,
            "tokenUsage": "<absent>",
            "turnTokenUsage": "<absent>"
          }
        },
        {
          "at": "2026-10-22T14:03:28.025Z",
          "kind": "event",
          "sequence": 40,
          "type": "provider-turn.updated",
          "payload": {
            "id": "provider-turn:provider:opencode:native-turn:ses_e9c138275ffedYNb9wKQ2tN2px%3Aattempt%3Arun-attempt%3Arun%3Arun%253Athread%253A03474665-7337-4210-9260-34d638cce4dd%253Aordinal%253A1%3Aattempt%3A1",
            "ordinal": 1,
            "status": "completed",
            "completedAt": "2026-10-22T14:03:27.961Z",
            "tokenUsage": "<absent>",
            "turnTokenUsage": {
              "usageScope": "main_agent",
              "cachedInputTokens": 1000,
              "cacheCreationTokens": 0,
              "reasoningTokens": 0,
              "hasSubagents": false,
              "usageStatus": "complete",
              "inputTokens": 12000,
              "outputTokens": 32
            }
          }
        },
        {
          "kind": "event",
          "sequence": 43,
          "type": "run.updated",
          "status": "waiting"
        },
        {
          "kind": "event",
          "sequence": 49,
          "type": "run.updated",
          "status": "completed"
        }
      ],
      "finalProjection": {
        "outcome": "settled",
        "runs": [
          {
            "status": "completed"
          }
        ],
        "providerTurns": [
          {
            "id": "provider-turn:provider:opencode:native-turn:ses_e9c138275ffedYNb9wKQ2tN2px%3Aattempt%3Arun-attempt%3Arun%3Arun%253Athread%253A03474665-7337-4210-9260-34d638cce4dd%253Aordinal%253A1%3Aattempt%3A1",
            "ordinal": 1,
            "status": "completed",
            "completedAt": "2026-10-22T14:03:27.961Z",
            "tokenUsage": "<absent>",
            "turnTokenUsage": {
              "usageScope": "main_agent",
              "cachedInputTokens": 1000,
              "cacheCreationTokens": 0,
              "reasoningTokens": 0,
              "hasSubagents": false,
              "usageStatus": "complete",
              "inputTokens": 12000,
              "outputTokens": 32
            }
          }
        ],
        "assistantMessages": [
          "Local stub reply."
        ]
      },
      "error": null
    },
    "R2": {
      "label": "openrouter multi (tool step + text step)",
      "model": "openrouter/z-ai/glm-multi",
      "threadId": "965e1b9d-6a27-4ebd-9fdd-1eab0b6002c1",
      "clientFrames": [
        {
          "at": "2026-10-22T14:03:29.816Z",
          "kind": "snapshot",
          "providerTurns": [],
          "runs": [
            "preparing"
          ]
        },
        {
          "kind": "event",
          "sequence": 64,
          "type": "run.updated",
          "status": "starting"
        },
        {
          "kind": "event",
          "sequence": 68,
          "type": "run.updated",
          "status": "running"
        },
        {
          "at": "2026-10-22T14:03:32.352Z",
          "kind": "event",
          "sequence": 72,
          "type": "provider-turn.updated",
          "payload": {
            "id": "provider-turn:provider:opencode:native-turn:ses_e9c136850ffeGYTXLqh8uZ4NPV%3Aattempt%3Arun-attempt%3Arun%3Arun%253Athread%253A965e1b9d-6a27-4ebd-9fdd-1eab0b6002c1%253Aordinal%253A1%3Aattempt%3A1",
            "ordinal": 1,
            "status": "running",
            "completedAt": null,
            "tokenUsage": "<absent>",
            "turnTokenUsage": "<absent>"
          }
        },
        {
          "at": "2026-10-22T14:03:33.325Z",
          "kind": "event",
          "sequence": 74,
          "type": "provider-turn.updated",
          "payload": {
            "id": "provider-turn:provider:opencode:native-turn:ses_e9c136850ffeGYTXLqh8uZ4NPV%3Aattempt%3Arun-attempt%3Arun%3Arun%253Athread%253A965e1b9d-6a27-4ebd-9fdd-1eab0b6002c1%253Aordinal%253A1%3Aattempt%3A1",
            "ordinal": 1,
            "status": "running",
            "completedAt": null,
            "tokenUsage": "<absent>",
            "turnTokenUsage": "<absent>"
          }
        },
        {
          "at": "2026-10-22T14:03:34.685Z",
          "kind": "event",
          "sequence": 94,
          "type": "provider-turn.updated",
          "payload": {
            "id": "provider-turn:provider:opencode:native-turn:ses_e9c136850ffeGYTXLqh8uZ4NPV%3Aattempt%3Arun-attempt%3Arun%3Arun%253Athread%253A965e1b9d-6a27-4ebd-9fdd-1eab0b6002c1%253Aordinal%253A1%3Aattempt%3A1",
            "ordinal": 1,
            "status": "completed",
            "completedAt": "2026-10-22T14:03:34.638Z",
            "tokenUsage": "<absent>",
            "turnTokenUsage": {
              "usageScope": "main_agent",
              "cachedInputTokens": 1500,
              "cacheCreationTokens": 0,
              "reasoningTokens": 0,
              "hasSubagents": false,
              "usageStatus": "complete",
              "inputTokens": 21500,
              "outputTokens": 72
            }
          }
        },
        {
          "kind": "event",
          "sequence": 97,
          "type": "run.updated",
          "status": "waiting"
        },
        {
          "kind": "event",
          "sequence": 103,
          "type": "run.updated",
          "status": "completed"
        }
      ],
      "finalProjection": {
        "outcome": "settled",
        "runs": [
          {
            "status": "completed"
          }
        ],
        "providerTurns": [
          {
            "id": "provider-turn:provider:opencode:native-turn:ses_e9c136850ffeGYTXLqh8uZ4NPV%3Aattempt%3Arun-attempt%3Arun%3Arun%253Athread%253A965e1b9d-6a27-4ebd-9fdd-1eab0b6002c1%253Aordinal%253A1%3Aattempt%3A1",
            "ordinal": 1,
            "status": "completed",
            "completedAt": "2026-10-22T14:03:34.638Z",
            "tokenUsage": "<absent>",
            "turnTokenUsage": {
              "usageScope": "main_agent",
              "cachedInputTokens": 1500,
              "cacheCreationTokens": 0,
              "reasoningTokens": 0,
              "hasSubagents": false,
              "usageStatus": "complete",
              "inputTokens": 21500,
              "outputTokens": 72
            }
          }
        ],
        "assistantMessages": [
          "Local stub reply."
        ]
      },
      "error": null
    },
    "R3b": {
      "label": "openrouter nousage (step finishes without usage)",
      "model": "openrouter/z-ai/glm-nousage",
      "threadId": "3543e5bd-c20f-474c-964d-6b6aa32aa010",
      "clientFrames": [
        {
          "at": "2026-10-22T14:03:36.498Z",
          "kind": "snapshot",
          "providerTurns": [],
          "runs": [
            "preparing"
          ]
        },
        {
          "kind": "event",
          "sequence": 118,
          "type": "run.updated",
          "status": "starting"
        },
        {
          "kind": "event",
          "sequence": 122,
          "type": "run.updated",
          "status": "running"
        },
        {
          "at": "2026-10-22T14:03:38.962Z",
          "kind": "event",
          "sequence": 126,
          "type": "provider-turn.updated",
          "payload": {
            "id": "provider-turn:provider:opencode:native-turn:ses_e9c134e76ffem56T8kxhcl6lDR%3Aattempt%3Arun-attempt%3Arun%3Arun%253Athread%253A3543e5bd-c20f-474c-964d-6b6aa32aa010%253Aordinal%253A1%3Aattempt%3A1",
            "ordinal": 1,
            "status": "running",
            "completedAt": null,
            "tokenUsage": "<absent>",
            "turnTokenUsage": "<absent>"
          }
        },
        {
          "at": "2026-10-22T14:03:39.804Z",
          "kind": "event",
          "sequence": 128,
          "type": "provider-turn.updated",
          "payload": {
            "id": "provider-turn:provider:opencode:native-turn:ses_e9c134e76ffem56T8kxhcl6lDR%3Aattempt%3Arun-attempt%3Arun%3Arun%253Athread%253A3543e5bd-c20f-474c-964d-6b6aa32aa010%253Aordinal%253A1%3Aattempt%3A1",
            "ordinal": 1,
            "status": "running",
            "completedAt": null,
            "tokenUsage": "<absent>",
            "turnTokenUsage": "<absent>"
          }
        },
        {
          "at": "2026-10-22T14:03:40.849Z",
          "kind": "event",
          "sequence": 140,
          "type": "provider-turn.updated",
          "payload": {
            "id": "provider-turn:provider:opencode:native-turn:ses_e9c134e76ffem56T8kxhcl6lDR%3Aattempt%3Arun-attempt%3Arun%3Arun%253Athread%253A3543e5bd-c20f-474c-964d-6b6aa32aa010%253Aordinal%253A1%3Aattempt%3A1",
            "ordinal": 1,
            "status": "completed",
            "completedAt": "2026-10-22T14:03:40.815Z",
            "tokenUsage": "<absent>",
            "turnTokenUsage": {
              "usageScope": "main_agent",
              "cachedInputTokens": 0,
              "cacheCreationTokens": 0,
              "reasoningTokens": 0,
              "hasSubagents": false,
              "usageStatus": "complete",
              "inputTokens": 0,
              "outputTokens": 0
            }
          }
        },
        {
          "kind": "event",
          "sequence": 143,
          "type": "run.updated",
          "status": "waiting"
        },
        {
          "kind": "event",
          "sequence": 149,
          "type": "run.updated",
          "status": "completed"
        }
      ],
      "finalProjection": {
        "outcome": "settled",
        "runs": [
          {
            "status": "completed"
          }
        ],
        "providerTurns": [
          {
            "id": "provider-turn:provider:opencode:native-turn:ses_e9c134e76ffem56T8kxhcl6lDR%3Aattempt%3Arun-attempt%3Arun%3Arun%253Athread%253A3543e5bd-c20f-474c-964d-6b6aa32aa010%253Aordinal%253A1%3Aattempt%3A1",
            "ordinal": 1,
            "status": "completed",
            "completedAt": "2026-10-22T14:03:40.815Z",
            "tokenUsage": "<absent>",
            "turnTokenUsage": {
              "usageScope": "main_agent",
              "cachedInputTokens": 0,
              "cacheCreationTokens": 0,
              "reasoningTokens": 0,
              "hasSubagents": false,
              "usageStatus": "complete",
              "inputTokens": 0,
              "outputTokens": 0
            }
          }
        ],
        "assistantMessages": [
          "Local stub reply."
        ]
      },
      "error": null
    },
    "R3a": {
      "label": "openrouter err (400 before any step)",
      "model": "openrouter/z-ai/glm-err",
      "threadId": "c309f557-c622-47ce-8da5-00494dde8c2b",
      "clientFrames": [
        {
          "at": "2026-10-22T14:03:42.573Z",
          "kind": "snapshot",
          "providerTurns": [],
          "runs": [
            "preparing"
          ]
        },
        {
          "kind": "event",
          "sequence": 164,
          "type": "run.updated",
          "status": "starting"
        },
        {
          "kind": "event",
          "sequence": 168,
          "type": "run.updated",
          "status": "running"
        },
        {
          "at": "2026-10-22T14:03:44.880Z",
          "kind": "event",
          "sequence": 172,
          "type": "provider-turn.updated",
          "payload": {
            "id": "provider-turn:provider:opencode:native-turn:ses_e9c133727ffeyqz56W4yXqTPRB%3Aattempt%3Arun-attempt%3Arun%3Arun%253Athread%253Ac309f557-c622-47ce-8da5-00494dde8c2b%253Aordinal%253A1%3Aattempt%3A1",
            "ordinal": 1,
            "status": "running",
            "completedAt": null,
            "tokenUsage": "<absent>",
            "turnTokenUsage": "<absent>"
          }
        },
        {
          "at": "2026-10-22T14:03:45.784Z",
          "kind": "event",
          "sequence": 174,
          "type": "provider-turn.updated",
          "payload": {
            "id": "provider-turn:provider:opencode:native-turn:ses_e9c133727ffeyqz56W4yXqTPRB%3Aattempt%3Arun-attempt%3Arun%3Arun%253Athread%253Ac309f557-c622-47ce-8da5-00494dde8c2b%253Aordinal%253A1%3Aattempt%3A1",
            "ordinal": 1,
            "status": "running",
            "completedAt": null,
            "tokenUsage": "<absent>",
            "turnTokenUsage": "<absent>"
          }
        },
        {
          "at": "2026-10-22T14:03:46.811Z",
          "kind": "event",
          "sequence": 179,
          "type": "provider-turn.updated",
          "payload": {
            "id": "provider-turn:provider:opencode:native-turn:ses_e9c133727ffeyqz56W4yXqTPRB%3Aattempt%3Arun-attempt%3Arun%3Arun%253Athread%253Ac309f557-c622-47ce-8da5-00494dde8c2b%253Aordinal%253A1%3Aattempt%3A1",
            "ordinal": 1,
            "status": "failed",
            "completedAt": "2026-10-22T14:03:46.773Z",
            "tokenUsage": "<absent>",
            "turnTokenUsage": {
              "usageScope": "main_agent",
              "hasSubagents": false,
              "usageStatus": "unavailable"
            }
          }
        },
        {
          "kind": "event",
          "sequence": 183,
          "type": "run.updated",
          "status": "failed"
        }
      ],
      "finalProjection": {
        "outcome": "settled",
        "runs": [
          {
            "status": "failed"
          }
        ],
        "providerTurns": [
          {
            "id": "provider-turn:provider:opencode:native-turn:ses_e9c133727ffeyqz56W4yXqTPRB%3Aattempt%3Arun-attempt%3Arun%3Arun%253Athread%253Ac309f557-c622-47ce-8da5-00494dde8c2b%253Aordinal%253A1%3Aattempt%3A1",
            "ordinal": 1,
            "status": "failed",
            "completedAt": "2026-10-22T14:03:46.773Z",
            "tokenUsage": "<absent>",
            "turnTokenUsage": {
              "usageScope": "main_agent",
              "hasSubagents": false,
              "usageStatus": "unavailable"
            }
          }
        ],
        "assistantMessages": []
      },
      "error": null
    },
    "R4": {
      "label": "non-OpenRouter custom provider acme/stub-a",
      "model": "acme/stub-a",
      "threadId": "30f34554-99ad-422b-b8be-f56f3455c02a",
      "clientFrames": [
        {
          "at": "2026-10-22T14:03:48.394Z",
          "kind": "snapshot",
          "providerTurns": [],
          "runs": [
            "preparing"
          ]
        },
        {
          "kind": "event",
          "sequence": 199,
          "type": "run.updated",
          "status": "starting"
        },
        {
          "kind": "event",
          "sequence": 203,
          "type": "run.updated",
          "status": "running"
        },
        {
          "at": "2026-10-22T14:03:51.262Z",
          "kind": "event",
          "sequence": 207,
          "type": "provider-turn.updated",
          "payload": {
            "id": "provider-turn:provider:opencode:native-turn:ses_e9c131ebeffeR7PPBeNOry7V41%3Aattempt%3Arun-attempt%3Arun%3Arun%253Athread%253A30f34554-99ad-422b-b8be-f56f3455c02a%253Aordinal%253A1%3Aattempt%3A1",
            "ordinal": 1,
            "status": "running",
            "completedAt": null,
            "tokenUsage": "<absent>",
            "turnTokenUsage": "<absent>"
          }
        },
        {
          "at": "2026-10-22T14:03:52.327Z",
          "kind": "event",
          "sequence": 209,
          "type": "provider-turn.updated",
          "payload": {
            "id": "provider-turn:provider:opencode:native-turn:ses_e9c131ebeffeR7PPBeNOry7V41%3Aattempt%3Arun-attempt%3Arun%3Arun%253Athread%253A30f34554-99ad-422b-b8be-f56f3455c02a%253Aordinal%253A1%3Aattempt%3A1",
            "ordinal": 1,
            "status": "running",
            "completedAt": null,
            "tokenUsage": "<absent>",
            "turnTokenUsage": "<absent>"
          }
        },
        {
          "at": "2026-10-22T14:03:53.547Z",
          "kind": "event",
          "sequence": 221,
          "type": "provider-turn.updated",
          "payload": {
            "id": "provider-turn:provider:opencode:native-turn:ses_e9c131ebeffeR7PPBeNOry7V41%3Aattempt%3Arun-attempt%3Arun%3Arun%253Athread%253A30f34554-99ad-422b-b8be-f56f3455c02a%253Aordinal%253A1%3Aattempt%3A1",
            "ordinal": 1,
            "status": "completed",
            "completedAt": "2026-10-22T14:03:53.510Z",
            "tokenUsage": "<absent>",
            "turnTokenUsage": {
              "usageScope": "main_agent",
              "cachedInputTokens": 1000,
              "cacheCreationTokens": 0,
              "reasoningTokens": 0,
              "hasSubagents": false,
              "usageStatus": "complete",
              "inputTokens": 12000,
              "outputTokens": 32
            }
          }
        },
        {
          "kind": "event",
          "sequence": 224,
          "type": "run.updated",
          "status": "waiting"
        },
        {
          "kind": "event",
          "sequence": 230,
          "type": "run.updated",
          "status": "completed"
        }
      ],
      "finalProjection": {
        "outcome": "settled",
        "runs": [
          {
            "status": "completed"
          }
        ],
        "providerTurns": [
          {
            "id": "provider-turn:provider:opencode:native-turn:ses_e9c131ebeffeR7PPBeNOry7V41%3Aattempt%3Arun-attempt%3Arun%3Arun%253Athread%253A30f34554-99ad-422b-b8be-f56f3455c02a%253Aordinal%253A1%3Aattempt%3A1",
            "ordinal": 1,
            "status": "completed",
            "completedAt": "2026-10-22T14:03:53.510Z",
            "tokenUsage": "<absent>",
            "turnTokenUsage": {
              "usageScope": "main_agent",
              "cachedInputTokens": 1000,
              "cacheCreationTokens": 0,
              "reasoningTokens": 0,
              "hasSubagents": false,
              "usageStatus": "complete",
              "inputTokens": 12000,
              "outputTokens": 32
            }
          }
        ],
        "assistantMessages": [
          "Local stub reply."
        ]
      },
      "error": null
    }
  },
  "finishedAt": "2026-10-22T14:03:55.283Z"
}```

## 3. Stub request log
```
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 {"at":"2026-10-22T14:03:26.634Z","method":"POST","path":"/v1/chat/completions","model":"google/gemini-nano-banana-2.1","stream":true,"messages":3,"mode":"single","reply":"text","usageSent":{"prompt":12000,"cached":1000,"completion":32}}
{"at":"2026-10-22T14:03:27.853Z","method":"POST","path":"/v1/chat/completions","model":"z-ai/glm-5.3-flash","stream":true,"messages":2,"mode":"single","reply":"text","usageSent":{"prompt":12000,"cached":1000,"completion":32}}
{"at":"2026-10-22T14:03:33.393Z","method":"POST","path":"/v1/chat/completions","model":"google/gemini-nano-banana-2.1","stream":true,"messages":3,"mode":"single","reply":"text","usageSent":{"prompt":12000,"cached":1000,"completion":32}}
{"at":"2026-10-22T14:03:34.327Z","method":"POST","path":"/v1/chat/completions","model":"z-ai/glm-multi","stream":true,"messages":2,"mode":"multi","reply":"tool_call glob","usageSent":{"prompt":9500,"cached":500,"completion":40}}
{"at":"2026-10-22T14:03:34.536Z","method":"POST","path":"/v1/chat/completions","model":"z-ai/glm-multi","stream":true,"messages":4,"mode":"multi","reply":"text","usageSent":{"prompt":12000,"cached":1000,"completion":32}}
{"at":"2026-10-22T14:03:39.880Z","method":"POST","path":"/v1/chat/completions","model":"google/gemini-nano-banana-2.1","stream":true,"messages":3,"mode":"single","reply":"text","usageSent":{"prompt":12000,"cached":1000,"completion":32}}
{"at":"2026-10-22T14:03:40.721Z","method":"POST","path":"/v1/chat/completions","model":"z-ai/glm-nousage","stream":true,"messages":2,"mode":"nousage","reply":"text","usageSent":null}
{"at":"2026-10-22T14:03:45.852Z","method":"POST","path":"/v1/chat/completions","model":"google/gemini-nano-banana-2.1","stream":true,"messages":3,"mode":"single","reply":"text","usageSent":{"prompt":12000,"cached":1000,"completion":32}}
{"at":"2026-10-22T14:03:46.753Z","method":"POST","path":"/v1/chat/completions","model":"z-ai/glm-err","stream":true,"messages":2,"mode":"err","reply":"400","usageSent":null}
{"at":"2026-10-22T14:03:52.377Z","method":"POST","path":"/v1/chat/completions","model":"stub-a","stream":true,"messages":3,"mode":"single","reply":"text","usageSent":{"prompt":12000,"cached":1000,"completion":32}}
{"at":"2026-10-22T14:03:53.377Z","method":"POST","path":"/v1/chat/completions","model":"stub-a","stream":true,"messages":2,"mode":"single","reply":"text","usageSent":{"prompt":12000,"cached":1000,"completion":32}}
```
