Skip to content

Commit 344bc61

Browse files
committed
test(server): recalibrate thread transfer budgets
1 parent 9347584 commit 344bc61

1 file changed

Lines changed: 9 additions & 8 deletions

File tree

‎apps/server/integration/TransferBudgetReport.integration.ts‎

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,16 @@ interface ProviderTransferBudget {
2626
readonly measuredTurnWebSocketMessages: number;
2727
}
2828

29-
// These caps leave roughly 30% headroom above the deterministic fixture. The
30-
// CI report preserves the exact values so intentional protocol growth can be
31-
// reviewed and the caps raised explicitly.
29+
// These caps leave roughly 30% headroom above the client projection of the
30+
// deterministic 9 MB retained-result fixture. Full MCP results stay in
31+
// persistence, so accidentally shipping them again exceeds these caps by
32+
// orders of magnitude. The CI report preserves exact values for review.
3233
const TRANSFER_BUDGET = {
33-
totalWireBytes: 2_900_000,
34-
threadSnapshotWireBytes: 2_600_000,
35-
measuredTurnWebSocketWireBytes: 320_000,
36-
measuredTurnWebSocketDecodedBytes: 1_550_000,
37-
measuredTurnWebSocketMessages: 20,
34+
totalWireBytes: 15_500,
35+
threadSnapshotWireBytes: 7_500,
36+
measuredTurnWebSocketWireBytes: 8_000,
37+
measuredTurnWebSocketDecodedBytes: 68_000,
38+
measuredTurnWebSocketMessages: 21,
3839
} satisfies ProviderTransferBudget;
3940

4041
export const TRANSFER_BUDGETS: Readonly<Record<string, ProviderTransferBudget>> = {

0 commit comments

Comments
 (0)