Repository navigation
fix: align context token accounting and capacity - #388
Merged
Merged
Conversation
Contributor
|
Found 10 test failures on Blacksmith runners: Failures
|
mohitranka
disabled auto-merge
August 18, 2026 01:42
This was referenced Aug 18, 2026
mohitranka
added a commit
that referenced
this pull request
Aug 21, 2026
…unting fix: align context token accounting and capacity
mohitranka
added a commit
that referenced
this pull request
Aug 21, 2026
All 16 compaction tests were failing on main, and not on anything about compaction: #388 raised CompactionPolicy::default() from a 200K to a 500K window, which moved the trigger from 170K to 425K. The fixture grows 70 turns to ~182K tokens, so it stopped crossing the boundary and tripped its own "must actually be under context pressure" guard. These tests exercise behaviour at the boundary, so they now set the boundary themselves instead of inheriting whatever the product default happens to be. Growing the fixture to suit a 500K window would have made the suite ~2.5x slower and left it just as fragile the next time the default moves.
mohitranka
added a commit
that referenced
this pull request
Sep 11, 2026
…unting fix: align context token accounting and capacity
mohitranka
added a commit
that referenced
this pull request
Sep 11, 2026
All 16 compaction tests were failing on main, and not on anything about compaction: #388 raised CompactionPolicy::default() from a 200K to a 500K window, which moved the trigger from 170K to 425K. The fixture grows 70 turns to ~182K tokens, so it stopped crossing the boundary and tripped its own "must actually be under context pressure" guard. These tests exercise behaviour at the boundary, so they now set the boundary themselves instead of inheriting whatever the product default happens to be. Growing the fixture to suit a 500K window would have made the suite ~2.5x slower and left it just as fragile the next time the default moves.
mohitranka
added a commit
that referenced
this pull request
Sep 11, 2026
…unting fix: align context token accounting and capacity
mohitranka
added a commit
that referenced
this pull request
Sep 11, 2026
All 16 compaction tests were failing on main, and not on anything about compaction: #388 raised CompactionPolicy::default() from a 200K to a 500K window, which moved the trigger from 170K to 425K. The fixture grows 70 turns to ~182K tokens, so it stopped crossing the boundary and tripped its own "must actually be under context pressure" guard. These tests exercise behaviour at the boundary, so they now set the boundary themselves instead of inheriting whatever the product default happens to be. Growing the fixture to suit a 500K window would have made the suite ~2.5x slower and left it just as fragile the next time the default moves.
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.
![Fix with [code]smith](https://pr-comments-assets.blacksmith.sh/codesmith/fix-with-codesmith-light.png)
No description provided.