Repository navigation
fix(roadmap): measure a group with one exact token counter - #3377
Merged
Merged
Conversation
Use the tiktoken encoding in the stage and the implement Job, and fail with TokenCountError when the cache is missing. Add creates_lines to the plan and count 32 tokens for each estimated line of a created file. State the rule in the staging prompts. Record the BPE encoding files in the test fixtures so every host counts the same text.
…ken-counter # Conflicts: # openspec/specs/roadmap-stage/spec.md
…ken-counter # Conflicts: # src/devops_cli/lang/en/messages.py # src/devops_cli/roadmap/stage_change.py
dan-petty
marked this pull request as ready for review
November 3, 2026 21:47
dan-petty
pushed a commit
that referenced
this pull request
Nov 3, 2026
🤖 I have created a release *beep* *boop* --- ## [0.53.3](v0.53.2...v0.53.3) (2026-11-03) ### Bug Fixes * **roadmap:** measure a group with one exact token counter ([#3377](#3377)) ([36943aa](36943aa)) * **roadmap:** refuse an overlong title summary at stage ([#3381](#3381)) ([df40366](df40366)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
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.
Count a task group with the tiktoken encoding in the stage and in the implement Job, so the same group text measures the same in both. A missing cache now stops the step with
TokenCountErrorand names the cache, instead of a character count.Add
creates_linesto the stage plan: each created path carries its estimated number of lines, and the group measure adds 32 tokens for each line. Acreatespath with no estimate is refused. Both staging prompts state the budget and the rule.The test floor loads recorded
o200k_baseandcl100k_baseencodings, so every host counts the same text exactly.Closes #3265
Change:
openspec/changes/archive/2026-11-03-3265-the-plan-group-size-measure-differs/