Skip to content

fix(roadmap): implement refusal hints fit the refused command - #5726

Merged
dan-petty merged 1 commit into
mainfrom
fix/5452-implement-refusal-hints-fit-the-refused
Nov 14, 2026
Merged

dan-petty merged 1 commit into
mainfrom
fix/5452-implement-refusal-hints-fit-the-refused

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

The implement step answers every refused shell form with one text. Commands such as uv run python -c and git status && git log read 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 with uv run python -c. The shell refuses that form. The model sends the same form again, or it stops after three refusals in a row. #5452

Closes #5452

Change: openspec/changes/archive/2026-11-14-5452-implement-refusal-hints-fit-the-refused/

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 dan-petty added type/bug Type bug: the code does not do what it must scope/roadmap The roadmap jobs: intake, refine, stage, implement and the Service that runs them labels Nov 14, 2026
@dan-petty
dan-petty marked this pull request as ready for review November 14, 2026 19:34
@dan-petty
dan-petty merged commit 719f33f into main Nov 14, 2026
24 checks passed
@dan-petty
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/roadmap The roadmap jobs: intake, refine, stage, implement and the Service that runs them type/bug Type bug: the code does not do what it must

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(roadmap): implement refusal hints fit the refused command

1 participant