Skip to content

fix(roadmap): log the searches and URL of a refused check - #6567

Merged
dan-petty merged 3 commits into
mainfrom
fix/6346-alternatives-refusal-count
Nov 20, 2026
Merged

dan-petty merged 3 commits into
mainfrom
fix/6346-alternatives-refusal-count

Conversation

@dan-petty

@dan-petty dan-petty commented Nov 20, 2026 •

Copy link
Copy Markdown
Owner

The result line of a refused or failed alternatives check gave searches=0 and returns=0, but a url or no_facts refusal comes only after an answered search, and a refusal can follow a return to the model. No log line named the URL that a url refusal cites, so the cause of the refusals could not be measured.

CheckFailure now keeps the searches that a provider answered and the returns of the run, and the result line gives both counts for each failure of an agent run. When the job refuses a reply for reason url, it logs one WARNING for each source URL that no tool of the run returned, with the item number and the reason code. #6394 uses these lines to find the cause.

Closes #6346

Change: openspec/changes/archive/2026-11-20-6346-alternatives-refusal-count/

The result line of a failed alternatives check gave searches=0, although a
url or no_facts refusal comes only after an answered search. CheckFailure
now keeps the answered searches of the run, and the result line gives
them. A url refusal logs one WARNING for each source URL that no tool of
the run returned, so that #6394 can measure the cause.

Closes #6346
@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 20, 2026
A failed alternatives check wrote returns=0 on its result line, also
after the run sent a refused reply back to the model. CheckFailure now
keeps the run's returns, and each failure of an agent run sets them.
Three tests now hold the search count of a failed model call, an
unpaired marker and a failed read of the tools in use.
@dan-petty
dan-petty marked this pull request as ready for review November 20, 2026 23:36
@dan-petty
dan-petty merged commit eec4677 into main Nov 20, 2026
29 checks passed
@dan-petty
dan-petty deleted the fix/6346-alternatives-refusal-count branch November 20, 2026 23:38
dan-petty pushed a commit that referenced this pull request Nov 20, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.185.2](v0.185.1...v0.185.2)
(2026-11-20)


### Bug Fixes

* **deps:** update Helm release pyroscope to v2.4.4
([#6565](#6565))
([0f75e18](0f75e18))
* **roadmap:** log the searches and URL of a refused check
([#6567](#6567))
([eec4677](eec4677))


### Code Refactoring

* **deps:** delete install-tools and the tools lock
([#6555](#6555))
([ebec015](ebec015)),
closes [#4363](#4363)

---
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): show the cause of a refused alternatives check

1 participant