Skip to content

Commit cd4fa7a

Browse files
committed
fix(agents): default size probe stays residual-free after claude row
The anthropic/claude-sonnet-4 fixture now resolves to the claude family, so the default column silently measured the task_guidance block. Probe openai/gpt-4.1 instead (default family until the CL-8310 gpt row lands) and assert the default column carries no family residual.
1 parent 0d13595 commit cd4fa7a

2 files changed

Lines changed: 10 additions & 5 deletions

File tree

‎src/agent/prompt-sizes.test.ts‎

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -343,9 +343,12 @@ describe("grok tool-budget residual (CL-8297)", () => {
343343
});
344344

345345
test("default-family and orchestrator prompts carry no tool budget", () => {
346-
expect(assembleDirectorPrompt("builder", "default")).not.toContain(
347-
"Tool budget:",
348-
);
346+
const defaultPrompt = assembleDirectorPrompt("builder", "default");
347+
expect(defaultPrompt).not.toContain("Tool budget:");
348+
// The default probe (openai/gpt-4.1) resolves to the default family, so
349+
// the default column carries no family residual at all — not the claude
350+
// task_guidance block either.
351+
expect(defaultPrompt).not.toContain("<task_guidance>");
349352
expect(assembleDirectorPrompt("skywalker", "grok")).not.toContain(
350353
"Tool budget:",
351354
);

‎src/agent/prompt-sizes.ts‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,11 @@ export const CANONICAL_PROMPT_ENV: EnvironmentInfo = {
5757
};
5858

5959
const GROK_PROVIDER = { providerName: "xai/default", model: "grok-4.6" };
60+
// Default-family probe: openai/gpt-4.1 resolves to the default family (the
61+
// gpt row lands later in CL-8310), so the default column carries no residual.
6062
const DEFAULT_PROVIDER = {
61-
providerName: "anthropic",
62-
model: "claude-sonnet-4",
63+
providerName: "openai",
64+
model: "gpt-4.1",
6365
};
6466

6567
/** Families in the size table: default assembly vs Grok (+finish-bias note). */

0 commit comments

Comments
 (0)