Repository navigation
fix(roadmap): a shell refusal of the implement step counts no tool retry - #3526
Conversation
A refusal of the shell by policy is no failure of the tool, yet the retry count of pydantic-ai counted it, and the sixth refusal stopped the step. The refusal now comes back as a normal tool result that names the replacement. A real failure of a tool still counts. A limit of 30 refusals in one step ends a loop with the class refused_tool. Refs #3271
|
Proof and test results for this pull request. Fail-to-pass:
Local full Follow-up: #3520 holds the read pipe through a table of right-hand programs, and the table or digest for the first word that the log shows as For the owner: the item #3041 still lists, in its criterion 3, a refusal limit. The evaluation of #3271 asks to remove that criterion and name #3271 as a dependency in |
🤖 I have created a release *beep* *boop* --- ## [0.56.3](v0.56.2...v0.56.3) (2026-11-04) ### Bug Fixes * **roadmap:** a new runner image clears only a stop that it can fix ([#3527](#3527)) ([48f94d7](48f94d7)) * **roadmap:** a shell refusal of the implement step counts no tool retry ([#3526](#3526)) ([1905269](1905269)) --- 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 shell refusal of the implement step now comes back to the model as a normal tool result with its hint. It adds no tool retry. Before this change, each refusal counted as a retry. Five refusals in a row ended the run, and the step lost all its work.
A new capability,
ShellRefusal, wraps the toolset and returns the refusal as text. It replaces the two refusal hooks. A new limit,CONST_ROADMAP_IMPLEMENT_MAX_REFUSALS(30), ends a step that loops on refused commands. The stop uses the existing failure classrefused_tool. A failed tool call keeps the limit of five retries in a row.Closes #3271
Change:
openspec/changes/archive/2026-11-04-3271-shell-refusal-counts-no-retry/