Skip to content

fix: align context token accounting and capacity - #388

Merged
mohitranka merged 1 commit into
mainfrom
fix/context-window-token-accounting
Aug 18, 2026
Merged

mohitranka merged 1 commit into
mainfrom
fix/context-window-token-accounting

Conversation

@mohitranka

Copy link
Copy Markdown
Contributor

No description provided.

@github-actions
github-actions Bot enabled auto-merge (squash) August 18, 2026 01:39
@blacksmith-sh

blacksmith-sh Bot commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

Found 10 test failures on Blacksmith runners:

Failures

Test View Logs
apk is used when apt and pacman are absent/apk is used when apt and pacman are absent View Logs
apt install runs under sudo/apt install runs under sudo View Logs
apt installs both when both missing/apt installs both when both missing View Logs
failed install warns without failing/failed install warns without failing View Logs
install that does not deliver the binaries is caught/
install that does not deliver the binaries is caught
View Logs
no package manager warns without failing/no package manager warns without failing View Logs
only the missing package is installed/only the missing package is installed View Logs
pacman is used when apt is absent/pacman is used when apt is absent View Logs
root installs without sudo/root installs without sudo View Logs
the warning always says what to install/the warning always says what to install View Logs

Fix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need.

@mohitranka
mohitranka disabled auto-merge August 18, 2026 01:42
@mohitranka
mohitranka merged commit e6e364a into main Aug 18, 2026
6 of 8 checks passed
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.
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