Repository navigation
fix(roadmap): halt implement step on consecutive refusals - #4659
Merged
Merged
Conversation
Owner
Author
|
Fail-to-pass run:
Local run on the head: Test changes of note: tests that looped on one refused command now alternate it with a read in each reply when they prove the total limit. The extension test of #4394 uses two replies with two refusals each, so the refusals are not consecutive. No live step needed: the change has no ConfigMap or setting. |
dan-petty
marked this pull request as ready for review
November 11, 2026 17:01
dan-petty
pushed a commit
that referenced
this pull request
Nov 11, 2026
🤖 I have created a release *beep* *boop* --- ## [0.112.2](v0.112.1...v0.112.2) (2026-11-11) ### Bug Fixes * **github:** bound the GitHub session read at 60 seconds ([#4636](#4636)) ([a87442a](a87442a)) * **roadmap:** bound the shadow mark probability to 0 to 1 ([#4655](#4655)) ([abf1166](abf1166)) * **roadmap:** halt implement step on consecutive refusals ([#4659](#4659)) ([9bcf0f5](9bcf0f5)) * **security:** file an issue for each Trivy-config alert group ([#4640](#4640)) ([a7668fe](a7668fe)) * **service:** route issues webhooks past scoped intake ([#4631](#4631)) ([caf4c7e](caf4c7e)) --- 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 was referenced Nov 11, 2026
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.
The implement step now stops the run when the shell policy refuses 3 commands in a row, with no accepted tool call between them. Before, a model that repeated one refused command kept asking until the total limit of 30 refusals or the token budget stopped it. One run spent 8,022,108 tokens in 77 requests on 4 refused commands.
ToolCallLogkeeps the count of refusals in a row. Any tool call that is not refused resets it. The stop uses the text "refused by policy", so it has the classrefused_tooland the wait action. The total limit of 30 stays and still stops a model that alternates refused and accepted calls. The constant isCONST_ROADMAP_IMPLEMENT_MAX_CONSECUTIVE_REFUSALS.Closes #4043
Change:
openspec/changes/archive/2026-11-11-4043-halt-implement-step-on-consecutive-command/