Skip to content

Derive prompt size budgets from a checked-in baseline - #992

Merged
TheGreatAxios merged 2 commits into
mainfrom
cl-7910-derive-prompt-size-budgets-from-a-checked-in-baseline
Sep 13, 2026
Merged

TheGreatAxios merged 2 commits into
mainfrom
cl-7910-derive-prompt-size-budgets-from-a-checked-in-baseline

Conversation

@TheGreatAxios

Copy link
Copy Markdown
Collaborator

Replaces parallel CHAR/BYTE_BUDGET records with a single baseline snapshot + budgetFor(). Per-director churn eliminated; growth guardrail preserved.

Closes CL-7910

@linear-code

linear-code Bot commented Sep 13, 2026

Copy link
Copy Markdown

CL-7910

The checked-in emil snapshot predates the CMO restore; the rebased tree measures 22770 chars / 22922 bytes on grok, which exceeds the derived budget. Refresh the baseline so the budget covers the restored prompt.
@TheGreatAxios

Copy link
Copy Markdown
Collaborator Author

Fixed the stale emil baseline (commit a407a12). PROMPT_SIZE_BASELINE.emil was pre-CL-7801 residue (14653/14765); verified live against the post-restore tree (emil grok measures 22770 chars / 22922 bytes) and updated the entry to { chars: 22770, bytes: 22922 }, which derives budgets of 24800/26000. prompt-sizes suite: 7 pass, 0 fail; tsc --noEmit clean. No merge — returning to the train.

@TheGreatAxios

Copy link
Copy Markdown
Collaborator Author

Fix verified: checked out PR head a407a12 in an isolated worktree — bun test src/agent/prompt-sizes.test.ts 7 pass / 0 fail (including every assembled prompt stays within budget), bun run typecheck clean. git log origin/main..HEAD is exactly the two intended commits (8c2f780 + a407a12, emil baseline {22770, 22922}). Proceeding to merge check.

@TheGreatAxios
TheGreatAxios marked this pull request as ready for review September 13, 2026 19:35
@TheGreatAxios
TheGreatAxios merged commit 8759571 into main Sep 13, 2026
9 checks passed
TheGreatAxios added a commit that referenced this pull request Sep 14, 2026
* Derive prompt size budgets from a checked-in baseline snapshot

* Correct emil baseline for the CL-7801 full-fidelity restore

The checked-in emil snapshot predates the CMO restore; the rebased tree measures 22770 chars / 22922 bytes on grok, which exceeds the derived budget. Refresh the baseline so the budget covers the restored prompt.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant