Skip to content

feat(roadmap): refuse a repeated failed tool call - #5686

Merged
dan-petty merged 1 commit into
mainfrom
feat/3570-refuse-a-repeated-failed-tool-call
Nov 14, 2026
Merged

dan-petty merged 1 commit into
mainfrom
feat/3570-refuse-a-repeated-failed-tool-call

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

The agent of a repair round can send the same failed tool call again. Nothing in the tool executor stops it, so the step spends turns and tokens on a call that already failed. ToolCallLog already computes the digest of each call for the trace, but it kept no set of the failed ones.

The log now keeps the digest and the masked reason of each retry and failure, and _execute refuses a call whose digest is in that set before its handler runs. The refusal carries the earlier reason as a tool result, so a path outside the checkout stays hidden. A changed argument has another digest and runs, and a successful call is not recorded.

Closes #3570

Change: openspec/changes/archive/2026-11-14-3570-refuse-a-repeated-failed-tool-call/

@dan-petty dan-petty added type/feature Type feature: a new function 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 11:43
@dan-petty
dan-petty merged commit 4e1c76c into main Nov 14, 2026
23 checks passed
@dan-petty
dan-petty deleted the feat/3570-refuse-a-repeated-failed-tool-call branch November 14, 2026 12:28
dan-petty pushed a commit that referenced this pull request Nov 14, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.138.0](v0.137.0...v0.138.0)
(2026-11-14)


### Features

* **ci:** hold actionlint, shellcheck and Trivy in the runner
([#5682](#5682))
([5264950](5264950))
* **roadmap:** ask for a smaller group when a step changes no file
([#5687](#5687))
([a56b4ec](a56b4ec))
* **roadmap:** gate Ready on the alternatives verdict
([#5681](#5681))
([27b12c0](27b12c0))
* **roadmap:** mark each cut tool answer with its cap
([#5622](#5622))
([3fa6387](3fa6387))
* **roadmap:** pair each new spec scenario with a task
([#5683](#5683))
([ea0767c](ea0767c))
* **roadmap:** refuse a repeated failed tool call
([#5686](#5686))
([4e1c76c](4e1c76c))
* **roadmap:** require an existing file in each changing group
([#5644](#5644))
([94a45f6](94a45f6)),
closes [#3978](#3978)


### Bug Fixes

* **ai:** count a local gateway group as local
([#5679](#5679))
([31adfc3](31adfc3))
* **ai:** key the valkey embedding by the request identity
([#5669](#5669))
([944d401](944d401)),
closes [#4569](#4569)
* **ai:** leave the chat personas out of the review digest
([#5676](#5676))
([0c9e141](0c9e141)),
closes [#4829](#4829)
* **ai:** name the gateway caller when the service name is empty
([#5688](#5688))
([92e8237](92e8237))
* **ai:** pass served_by from the build_agent spend hook
([#5674](#5674))
([eccd171](eccd171)),
closes [#4716](#4716)
* **ci:** cancel a stale plan-check run on a pull request edit
([#5633](#5633))
([107044d](107044d))
* **ci:** give the test row and the index build their own bounds
([#5672](#5672))
([e61c91f](e61c91f)),
closes [#4683](#4683)
* **ci:** wait for the semantic title check before the plan check
([#5637](#5637))
([592be2e](592be2e))
* **config:** print one line for a refused config-file value
([#5666](#5666))
([a2c7c7d](a2c7c7d))
* **github:** poll again after one failed read in pr monitor
([#5678](#5678))
([ad096e5](ad096e5)),
closes [#4838](#4838)
* **openspec:** name the checkout branch in the new output
([#5665](#5665))
([2deaaec](2deaaec)),
closes [#4593](#4593)
* **openspec:** state the scaffold settings in the agent config spec
([#5664](#5664))
([a49091f](a49091f)),
closes [#4478](#4478)
* **pr:** check the title form on pr edit
([#5671](#5671))
([c729a48](c729a48)),
closes [#4782](#4782)
* **pr:** require stage eval evidence on a stage-change pr
([#5623](#5623))
([25f3046](25f3046))
* **roadmap:** accept a file restored to base in the repair turn
([#5652](#5652))
([66b63b5](66b63b5))
* **roadmap:** co-locate an enum change with its prompt update
([#5659](#5659))
([6616da8](6616da8)),
closes [#4063](#4063)
* **roadmap:** count the creates of earlier plan groups
([#5631](#5631))
([f29a73b](f29a73b))
* **roadmap:** give one bullet for a degenerate reply at the limit
([#5668](#5668))
([179132b](179132b)),
closes [#4618](#4618)
* **roadmap:** ignore a struck-through acceptance criterion
([#5657](#5657))
([c397c32](c397c32)),
closes [#4024](#4024)
* **roadmap:** keep a person's unlisted title after a body edit
([#5667](#5667))
([0f89291](0f89291)),
closes [#4620](#4620)
* **roadmap:** keep the adr cap test on its own logger and reset the
tracer ([#5658](#5658))
([1fbb86b](1fbb86b)),
closes [#4062](#4062)
* **roadmap:** leave out an item whose plan checks did not pass
([#5650](#5650))
([c8b9832](c8b9832)),
closes [#3976](#3976)
* **roadmap:** leave out an item with an open dependency in implement
([#5645](#5645))
([b0de568](b0de568)),
closes [#4009](#4009)
* **roadmap:** name an unmarked verification span in the plan reader
([#5647](#5647))
([d60bf8c](d60bf8c)),
closes [#4010](#4010)
* **roadmap:** name the plan merge wait in explain
([#5632](#5632))
([cdef5c2](cdef5c2)),
closes [#3971](#3971)
* **roadmap:** read the pod exit status to find an oom kill
([#5630](#5630))
([8a13aee](8a13aee)),
closes [#3727](#3727)
* **roadmap:** refuse a behavior verify that runs no test
([#5684](#5684))
([65268d6](65268d6))
* **roadmap:** refuse an open change's plan as feasibility evidence
([#5685](#5685))
([e8d318e](e8d318e))
* **roadmap:** resolve a pending-person criterion with a comma
([#5656](#5656))
([8f2b48d](8f2b48d)),
closes [#4023](#4023)
* **roadmap:** retry the first mcp connection of a new job pod
([#5661](#5661))
([5b83fc6](5b83fc6)),
closes [#4372](#4372)
* **roadmap:** type the stop of a foreign repair change
([#5663](#5663))
([c3a6b84](c3a6b84)),
closes [#4390](#4390)
* **roadmap:** write the status comment to the pull request on a stop
([#5655](#5655))
([afba21c](afba21c)),
closes [#3997](#3997)
* **sandbox:** accept a public ipv6 whitelist cidr
([#5626](#5626))
([6f943d3](6f943d3))
* **service:** share one issue-events read across the lanes of a poll
([#5634](#5634))
([7e4749a](7e4749a))
* **tests:** quiet the logfire console between tests
([#5624](#5624))
([31d2979](31d2979))


### Performance Improvements

* **ci:** skip the sync bytecode compile in the test jobs
([#5673](#5673))
([b6fbbee](b6fbbee)),
closes [#4727](#4727)


### Code Refactoring

* **security:** drop the dead symlink guard in the path check
([#5628](#5628))
([bde6bc5](bde6bc5))

---
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/feature Type feature: a new function

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(roadmap): a repair attempt cannot repeat a failed tool call

1 participant