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 a7c675c
Browse filesBrowse the repository at this point in the historyBrowse files
@@ -170,6 +206,18 @@ export function transferBudgetViolations(runs: ReadonlyArray<TransferBudgetRun>)
170
206
run.measuredTurnWebSocket.messages,
171
207
budget.measuredTurnWebSocketMessages,
172
208
],
209
+
[
210
+
"long-turn cold open decoded bytes",
211
+
run.longTurnColdOpen.http.decodedBodyBytes,
212
+
LONG_TURN_BUDGET.decodedBytes,
213
+
],
214
+
["long-turn cold open rows",run.longTurnColdOpen.rows,LONG_TURN_BUDGET.rows],
215
+
[
216
+
"long-turn history page decoded bytes",
217
+
run.longTurnHistoryPage.http.decodedBodyBytes,
218
+
LONG_TURN_BUDGET.decodedBytes,
219
+
],
220
+
["long-turn history page rows",run.longTurnHistoryPage.rows,LONG_TURN_BUDGET.rows],
173
221
]asconst;
174
222
for(const[metric,observed,maximum]ofchecks){
175
223
if(observed>maximum){
@@ -187,6 +235,7 @@ export function formatTransferBudgetReport(runs: ReadonlyArray<TransferBudgetRun
187
235
"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.",
188
236
"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 new sockets resubscribe from the cursor it held before the turn, which is the cursor a backgrounded phone would hold. SQL statements are the SQL client's per-statement spans, counted across V2 persistence and the HTTP/WebSocket handlers.",
189
237
`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. Synthetic V2 domain events exercise persistence, wire projection, and production HTTP/subscription handlers; this does not measure provider adapter ingestion. Payloads contain no user data.`,
238
+
`The long-turn rows open a second thread through the compact bounded snapshot web and mobile use, then load one older page. Its last user turn holds ${LONG_TURN_WORK_ROWS} rows of reasoning, commands, file changes, MCP calls, progress messages, checkpoints, and subagents.`,
190
239
"",
191
240
"| Provider | Total thread wire | Budget | Result |",
192
241
"| --- | ---: | ---: | --- |",
@@ -264,6 +313,8 @@ export function formatTransferBudgetReport(runs: ReadonlyArray<TransferBudgetRun
0 commit comments