From 3b10aac89518ab5fc690dacd3d29ddbe87485abc Mon Sep 17 00:00:00 2001 From: Jithin Date: Tue, 30 Jun 2026 15:08:54 +0530 Subject: [PATCH] test: align send-budget default assertion with shipped 20x/200 cap The fork.test.ts case asserted maxTotalSends defaults of 300 (50x budgetUsd) and 400 (no budget), but BudgetGuard (core/src/autonomous/lib/budget.ts:64) ships 20x / 200. The suite was red on master; CI did not catch it because the CLI workspace tests are not run in CI. Update the assertions to match the shipped behaviour (120 and 200) so the suite passes. --- runners/cli/tests/fork.test.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/runners/cli/tests/fork.test.ts b/runners/cli/tests/fork.test.ts index 0ab1632..530d8fd 100644 --- a/runners/cli/tests/fork.test.ts +++ b/runners/cli/tests/fork.test.ts @@ -117,9 +117,9 @@ test("sendAllowed caps total sends and refuses NEW threads past the tree ceiling assert.equal(budget.sendAllowed(false, 1).ok, false, "all sends refused past the send budget"); }); -test("maxTotalSends defaults to ~50× budgetUsd when unset", () => { - assert.equal(new BudgetGuard({ maxThreadTurns: 25, budgetUsd: 6 }).maxTotalSends, 300); - assert.equal(new BudgetGuard({ maxThreadTurns: 25 }).maxTotalSends, 400, "no budget → 400"); +test("maxTotalSends defaults to ~20× budgetUsd when unset", () => { + assert.equal(new BudgetGuard({ maxThreadTurns: 25, budgetUsd: 6 }).maxTotalSends, 120); + assert.equal(new BudgetGuard({ maxThreadTurns: 25 }).maxTotalSends, 200, "no budget → 200"); }); function finding(threadId: string, evidence: string, confidence: number): Finding {