Repository navigation
fix(roadmap): implement refusal hints fit the refused command - #5726
Merged
Merged
Conversation
The implement step answered every refused shell command with one generic text, and directed the model to .data/agent/scratch/, which did not exist on fresh checkouts (#5452). This change selects the refusal hint based on the refused command (Python code with inline script gets write_file instruction first, command chains get two-call examples, pipes name read_file with offset/limit, and bare devops/openspec name uv run), creates the scratch directory in the job worktree, and registers create_directory from the harness FileSystem capability. Closes #5452 Change: `openspec/changes/archive/2026-11-14-5452-implement-refusal-hints-fit-the-refused/`
dan-petty
marked this pull request as ready for review
November 14, 2026 19:34
dan-petty
deleted the
fix/5452-implement-refusal-hints-fit-the-refused
branch
November 14, 2026 19:36
dan-petty
pushed a commit
that referenced
this pull request
Nov 14, 2026
🤖 I have created a release *beep* *boop* --- ## [0.142.1](v0.142.0...v0.142.1) (2026-11-14) ### Bug Fixes * **roadmap:** implement refusal hints fit the refused command ([#5726](#5726)) ([719f33f](719f33f)) --- 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 implement step answers every refused shell form with one text. Commands such as
uv run python -candgit status && git logread identical advice. The advice about the file comes last. The prompt and text direct the model to.data/agent/scratch/. A fresh checkout does not have this directory. The prompt tells it to make a directory withuv run python -c. The shell refuses that form. The model sends the same form again, or it stops after three refusals in a row. #5452Closes #5452
Change:
openspec/changes/archive/2026-11-14-5452-implement-refusal-hints-fit-the-refused/