Skip to content

test(eval): compare the floor as the plugin does, to a whole percent - #4

Merged
wasd96040501 merged 1 commit into
mainfrom
test/mechanism-floor-rounding
Sep 22, 2026
Merged

wasd96040501 merged 1 commit into
mainfrom
test/mechanism-floor-rounding

Conversation

@wasd96040501

@wasd96040501 wasd96040501 commented Sep 22, 2026 •

Copy link
Copy Markdown
Owner

make eval-mechanism failed "nothing is compacted below the floor" on a run that behaved correctly: with the floor at 5%, the first turn ended at 46,335 tokens of a 1M window, Claude Code reported that as 5%, and taskcut compacted. The check compared exact tokens (50,000) while the plugin compares Claude Code's whole percentage.

The other floor checks in the same function already allow a point of rounding either side; this one now does too.

The same run's two other failures (recall, the interrupted work) are not addressed here: from the second compaction on, the compaction model refused to summarise, and each later compaction followed its own earlier refusal. That is Claude Code's compaction, not the check.

🤖 Generated with Claude Code

Claude Code reports context as a whole percentage, so at a 5% floor a
compaction at 46,335 tokens of a 1M window is past it: the plugin saw 5%.
The other floor checks already allow a point either side; this one
compared exact tokens and failed a run that did what it should.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@wasd96040501
wasd96040501 merged commit c352506 into main Sep 22, 2026
3 checks passed
@wasd96040501
wasd96040501 deleted the test/mechanism-floor-rounding branch September 22, 2026 06:55
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