Repository navigation
fix(roadmap): refused shell programs name their replacement - #2783
Merged
Merged
Conversation
…t example passes the shell (#2773) The log and the stop reason showed any short bare word, so a password that the model read from a file could reach the stop comment. They now show a program of the allowlist or of the table of replacements, else other. The text of the shell is cut before the hint. The refusal of python says that python -m pip is not to run. The directory example of the prompt had a semicolon that the shell refuses, so it now has none. A test checks each shell command of the prompt against the denied operators.
Owner
Author
|
Test results and review record for #2773. Full Fail-to-pass ( Review findings fixed
Findings not fixed: none. Note on the log: a refused program outside the table, such as |
dan-petty
marked this pull request as ready for review
October 30, 2026 14:39
dan-petty-release Bot
added a commit
that referenced
this pull request
Oct 30, 2026
🤖 I have created a release *beep* *boop* --- ## [0.22.4](v0.22.3...v0.22.4) (2026-10-30) ### Bug Fixes * **pr:** pr create adds the labels of the title ([#2782](#2782)) ([7183af3](7183af3)), closes [#2748](#2748) * **roadmap:** refused shell programs name their replacement ([#2783](#2783)) ([0458f8f](0458f8f)), closes [#2773](#2773) * **roadmap:** restore the own group text in an implement step ([#2780](#2780)) ([163a840](163a840)), closes [#2774](#2774) * **security:** lock joserfc at 1.7.7 ([#2787](#2787)) ([0b9f9e5](0b9f9e5)), closes [#2786](#2786) --- 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.
The shell of an implement step refuses a program outside its allowlist. Each refusal counts against a limit of 5 retries. A model that does not know what to run in its place is refused until the step stops, and the step loses its work.
This change makes three things clear:
python,pytest,pip,cat,ls,grep,cdand similar habits. The refusal ofpythonalso says thatpython -m pipis not to run. An unknown program gets the list of allowed programs. An operator gets the rule of one command in each call. The text of the shell stays, cut to a fixed length. What the shell allows does not change.The hint is a pydantic-ai
Hookscapability.pydantic-ai-harnesshas no setting for the refusal text.Closes #2773