feat(config): caps — auto conversation budget, 200 pairs, 32K batch cap, 8K render cap, 16K local completion cap, 60 worker steps, 32K auto-context floor - #437
Open
plombeer31 wants to merge 1 commit into
Conversation
…rs, 32K batch cap, 8K render cap, 16K local completion cap, 60 worker steps, 32K auto-context floor
plombeer31
force-pushed
the
harness/11-llama
branch
from
September 16, 2026 22:03
e57453c to
bf1fd11
Compare
plombeer31
force-pushed
the
harness/12-caps
branch
from
September 16, 2026 22:03
69ea2c8 to
49fdd86
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Before: fixed caps sized for the previous generation of the loop — a 20-pair conversation limit, a 16,000-char batch cap, a 4,000-char render cap, an 8K local completion cap, 40 worker steps and a 16K auto-context floor.
After: the conversation budget is
auto(32K fallback),conversationMaxPairs200, the batch result cap 32,000 chars, the render cap 8,000, the local completion cap 16K, 60 worker steps, and the auto-context floor 32,768 so it always covers the fixed prompt plus the completion cap. Existing explicit values are migrated only when equal to the old default.Why
The earlier caps were tuned around a 16–32K local context; with 131K contexts, water-filled batch results and line-boundary paging the old numbers re-created the truncation the previous PRs removed. One commit so the numbers are reviewed together.
How it was verified
npm run lintcleannpx vitest run --minWorkers=1 --maxWorkers=3 src/agent src/config src/llm/run-mode src/local-llm src/prompt src/session— 103 files / 1631 tests green (baseline failures: none)Stacked on #436; merge in order.