Repository navigation
feat(roadmap): extend a step budget when the run makes progress - #4464
Conversation
Replay of the rule on the pilot 3 dataData: the runner logs of 14 days (2026-10-27 to 2026-11-10, 36444 log lines of 420 pods) and the job records of 77 items. For each stop with a class, a script gives the tool calls before the stop to Stops with the class
|
| Label | Extended | Halted |
|---|---|---|
| A person finished the item later | 16 | 0 |
| End not known | 3 | 1 |
| Item | Label | Input tokens at the stop | Counts | Decision |
|---|---|---|---|---|
| #3075 | finished later | 8024412 | (2, 2) | extended |
| #3217 | finished later | 19015622 | (2, 1) | extended |
| #3247 | finished later | 8022108 | (1, 1) | extended |
| #3251 | finished later | 8068015 | (4, 3) | extended |
| #3253 | finished later | 8014688 | (2, 0) | extended |
| #3347 | finished later | 8076906 | (8, 0) | extended |
| #3404 | finished later | 14687799 | (4, 0) | extended |
| #3417 | finished later | 12174702 | (10, 0) | extended |
| #3443 | finished later | 8050668 | (2, 0) | extended |
| #3451 | finished later | 11733930 | (3, 0) | extended |
| #3456 | finished later | 8097393 | (1, 1) | extended |
| #3485 | finished later | 8002042 | (4, 0) | extended |
| #3654 | finished later | 14265109 | (3, 1) | extended |
| #3991 | finished later | 8084136 | (2, 0) | extended |
| #4004 | finished later | 8011119 | (1, 3) | extended |
| #4079 | finished later | 8032090 | (2, 0) | extended |
| #2742 | not known | 8128228 | (6, 0) | extended |
| #3296 | not known | 8073827 | (3, 0) | extended |
| #3427 | not known | 8012397 | (1, 0) | extended |
| #3428 | not known | 8073658 | (0, 0) | halted |
Result: the rule extends each of the 16 stops that a person finished: 0 errors in 16 (the 95% upper bound of the error rate is about 19%).
Stops of another class above 6.4 million input tokens (15)
These steps did not stop at the budget, so the rule did not act on them. The replay shows what the rule does with their last 20 calls.
- The 5 items that spun halt at each of their stops: fix(k8s): List helm repo and upgrade in deploy-stack dry-run #2469 (0, 11), fix(sandbox): Pull the sandbox image before container creation #2554 (0, 3) and (1, 10), fix(devcontainer): add local-path addon to minikube start #2570 (0, 16) and (0, 4), fix(models): make clean-default model fields required #2636 (1, 4) and (0, 4), fix(roadmap): the plan check refuses a placeholder in every plan text #3394 (0, 9) and (0, 11).
- 7 stops with edits pass the rule: feat(roadmap): Add toolsets for implement and review from one registry #3244
ci_infra(4, 0) and (3, 0), fix(roadmap): Refuse criteria entries not in the issue body #3391test(3, 0), fix(roadmap): refuse a behavior group that omits a test it changes #3414conflict(1, 0), fix(roadmap): the plan check fails a citation of a line that moved #3422refused_tool(2, 1), fix(roadmap): stage includes perimeter tests for network policies #3972conflict(2, 0). These steps made progress and then stopped for another cause. The other checks of the Job still stop them, and the item budget still holds.
The 33 labelled checkpoints
| Label | Checkpoints | What the rule does |
|---|---|---|
| Extension was right (finished later) | 16 | extends all 16 |
| Spinning | 5 | halts all 5 |
| Finished with no help above 80% of the budget | 8 | no decision: these steps did not reach the budget |
| Not known | 4 | not scored |
The tests of tests/roadmap/implement/test_roadmap_implement_extension.py hold the 16 shapes that extend and the 5 shapes that halt, as a table.
The live ConfigMap after the mergeThe live ConfigMap roadmap:
implement:
step_token_budget: 12000000This pull request does not change the live cluster. After it merges, a person may delete the line If a person keeps 12000000, the extension goes to 16000000 (the default ceiling cuts it from 18000000). To give the full 50%, add this line under step_token_ceiling: 18000000Caution: the settings refuse a |
Fail-to-passCommand: Result: 5 failed and 150 passed on the base, 1 errored.
On the head, the 7 affected test files pass: 399 tests. |
b562e60 to
ae12894
Compare
A step that reaches roadmap.implement.step_token_budget gets one extension of 50% of the budget when its last 20 tool calls hold at least 1 successful edit and at most 3 refused commands. The new setting roadmap.implement.step_token_ceiling (default 16000000) caps the extension. The item budget and the time limits get no extension. The digest comes from the tool log of the step. A missing digest, a digest that fails the rule, a ceiling with no room and a second arrival at the limit stop the step with the class limit_reached, as before. The record implement.spend, the ready comment and the stop comment show each extension with its counts. The counter devops_cli_roadmap_implement_extension_total counts each decision (2 series).
The table of limit classes holds the four numbers of the rule implement.extension and the setting step_token_ceiling. The list of later variables holds DEVOPS_CLI_ROADMAP_IMPLEMENT_STEP_TOKEN_CEILING. The workflow document writes the name of the decision point as plain text, because a code span of that form names a record key.
ae12894 to
95a957b
Compare
Review findings after the mergeThis pull request merged (c8ed108) before the review fixes. No commit went to its branch. I checked each finding against
Minor findings: the review gave none. No code changed, so no fail-to-pass run applies to this comment. The fix of finding 1 gets its own pull request and its own fail-to-pass run. |
🤖 I have created a release *beep* *boop* --- ## [0.111.0](v0.110.0...v0.111.0) (2026-11-11) ### Features * **roadmap:** a decision-point registry with a resolver chain ([#4453](#4453)) ([b73e97a](b73e97a)) * **roadmap:** eval verify stores each case and resumes ([#4451](#4451)) ([7c59565](7c59565)) * **roadmap:** extend a step budget when the run makes progress ([#4464](#4464)) ([c8ed108](c8ed108)) ### Bug Fixes * **ai:** a failed model transport names its phase and its error ([#4460](#4460)) ([54743c4](54743c4)) * **ai:** price the DeepSeek group and its cached input ([#4454](#4454)) ([3b1f6bd](3b1f6bd)) * **roadmap:** stage and refine send no answer count or row ([#4484](#4484)) ([d9c8ee8](d9c8ee8)) * **roadmap:** tool docstrings garble the answer format ([#4486](#4486)) ([2f6114f](2f6114f)) ### Performance Improvements * **roadmap:** parse only the bodies that hold a job record ([#4455](#4455)) ([c653bde](c653bde)) * **tests:** evaluate hour-scale promtool tests every hour ([#4462](#4462)) ([0ac2f76](0ac2f76)) --- 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>
A step of the implement job that reaches
roadmap.implement.step_token_budgetgets one extension of 50% of the budget when its last 20 tool calls hold at least 1 successful edit and at most 3 refused commands. The tool log of the step gives the counts. A missing or failing digest, a ceiling with no room and a second arrival at the limit stop the step withlimit_reached, as before. The new settingroadmap.implement.step_token_ceiling(default 16000000) caps the extension. The item budget still holds. The ready and stop comments show each extension with its counts, anddevops_cli_roadmap_implement_extension_totalcounts each decision (2 series).In pilot 3, a person finished 16 of the 20 steps that stopped at the budget, and each of the 16 passes the rule. This is the decision point
implement.extensionof ADR 0020: the rule is its resolver, with no decision model.Closes #4394
Change:
openspec/changes/archive/2026-11-11-4394-extend-a-step-budget-when-the/