Commit c621b7a
docs(server-beta): state what the summary input budget does not cover
Greptile flagged that the budget compares event-block bytes while
buildServerGenerationPrompt goes on to add the request wrapper, the
project/session/job tags, the instructions and the observation schema.
Correct: built with zero events, that envelope measures 1,244 bytes here.
Left out of the budget rather than reserved from it. Unlike the payload,
the envelope is a fixed cost -- it scales with neither event count nor
payload size -- so at the 600 KB default it is 0.2%, and the only budgets
it could decide are ones already too small to produce a useful summary
(~1 KB buys a single truncated tool call).
Documented instead of enforced because every additional thing this
function knows about the prompt is another thing that can drift out of
sync with the builder, which is what produced the bug this PR fixes.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>1 parent 804a718 commit c621b7a
1 file changed
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
76 | 83 | | |
77 | 84 | | |
78 | 85 | | |
| |||
0 commit comments