You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 7aff2b1
Browse filesBrowse the repository at this point in the historyBrowse files
test(server): measure shell, second client, and reconnect transfer
The transfer budget measured one thread subscription. Real clients also hold
a sidebar subscription, often run on two devices, and reconnect. Measure all
three on the same turn and print them next to the capped thread rows, plus a
SQL statement count from sql.execute spans.
Co-Authored-By: Claude Fable 5.1 <[email protected]>
@@ -146,6 +200,7 @@ export function formatTransferBudgetReport(runs: ReadonlyArray<TransferBudgetRun
146
200
"# T3 Code thread transfer budget",
147
201
"",
148
202
"Wire values are thread data bytes read from local HTTP and WebSocket sockets. HTTP includes response headers; WebSocket measurement starts after the resumed thread subscription synchronizes. TCP/IP, TLS framing, and the WebSocket upgrade are excluded. WebSocket permessage-deflate is negotiated.",
203
+
"The measured turn is observed on three sockets at once: one with only the thread subscription (the capped rows), one with only the shell subscription, and a second client holding both. Server egress is the sum of the three. After the turn the second client disconnects and resubscribes from the cursor it held before the turn, which is the cursor a backgrounded phone would hold. SQL statements are `sql.execute` spans counted across the orchestration runtime and the WebSocket handlers.",
149
204
`Scenario: ${TRANSFER_HISTORY_TURN_COUNT} historical turns with ${TRANSFER_HISTORY_TOOLS_PER_TURN} command tools and one retained ${formatBytes(TRANSFER_HISTORY_MCP_RESULT_BYTES)} MCP result each, followed by one measured turn with ${TRANSFER_MEASURED_TOOLS} command tools and a retained ${formatBytes(TRANSFER_MEASURED_MCP_RESULT_BYTES)} MCP result. Payload sizes are calibrated from heavy local Codex and Claude histories and contain no user data.`,
150
205
"",
151
206
"| Provider | Total thread wire | Budget | Result |",
@@ -198,13 +253,40 @@ export function formatTransferBudgetReport(runs: ReadonlyArray<TransferBudgetRun
0 commit comments