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 aa3b73a
Browse filesBrowse the repository at this point in the historyBrowse files
test(server): wire budget covers stale todo lists in long threads
A todo list node and its plan stay open when their run ends. Before
#34490 each one counted as live
work, so every window carried the records of every finished run.
The transfer budget test now opens a thread of 40 finished runs behind
one working run and caps the decoded bytes and the node, subagent, plan,
provider turn and checkpoint counts of its bounded snapshot.
Co-Authored-By: Claude Fable 5.2 <[email protected]>
["stale todo list cold open rows",run.staleTodoColdOpen.rows,STALE_TODO_BUDGET.rows],
288
+
...STALE_TODO_RECORD_KINDS.map(
289
+
(kind)=>
290
+
[
291
+
`stale todo list cold open ${kind}`,
292
+
run.staleTodoColdOpen.records[kind],
293
+
STALE_TODO_BUDGET.records[kind],
294
+
]asconst,
295
+
),
248
296
]asconst;
249
297
for(const[metric,observed,maximum]ofchecks){
250
298
if(observed>maximum){
@@ -264,6 +312,7 @@ export function formatTransferBudgetReport(runs: ReadonlyArray<TransferBudgetRun
264
312
`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.`,
265
313
`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.`,
266
314
`The fleet shell rows read the cold-connect shell after ${SHELL_SETTLED_THREADS} settled threads and ${SHELL_IDLE_SUBAGENTS} idle subagent children are added. Budgeted reads send the opt-ins current clients send; "older client" rows show the same read without the opt-ins added since row budgets.`,
315
+
`The stale todo list rows open a third thread the same way: ${STALE_TODO_SETTLED_RUNS} finished runs, then one run still at work with ${STALE_TODO_LIVE_ROWS} rows. Every run left its todo list open and has ${STALE_TODO_SUBAGENTS_PER_RUN} finished subagents, a provider turn and, once finished, a checkpoint. The record counts must not grow with the number of finished runs.`,
267
316
"",
268
317
"| Provider | Total thread wire | Budget | Result |",
269
318
"| --- | ---: | ---: | --- |",
@@ -352,6 +401,22 @@ export function formatTransferBudgetReport(runs: ReadonlyArray<TransferBudgetRun
352
401
...legacyRows(run.provider,"long-turn history page",run.longTurnHistoryPageLegacy),
0 commit comments