Repository navigation
Description
Problem
A search outage gives a false "no tool" verdict in the alternatives check (alternatives.py).
AlternativesTools.search_web records a Search for every query, also when no provider answered. cited_web_search (refine_investigation.py) answers a failed search with the text "The search failed: no provider answered." It gives no signal to the caller.
_refusal accepts a verdict when tools.queries is not empty. So a search outage lets the model give the verdict none after searches that all failed. The check writes a false "no tool" result. It stands for DEFAULT_ROADMAP_ALTERNATIVES_RECHECK_DAYS (30 days).
Expected
Make cited_web_search return a small result with the text and a flag answered.
answeredis true for a result list or for a real empty answer.answeredis false forSearchFailed.- The refine tool keeps using the text. Its text does not change.
search_web of the alternatives tools records a Search only when answered is true. _refusal then refuses a verdict when no search was answered. The check ends as a CheckFailure with a class, so the retry delay applies.
The order rule of #2951 does not change.
Acceptance criteria
-
uv run pytest tests/roadmap/test_roadmap_alternatives_search.py -k all_searches_failed- when every search fails, the result is aCheckFailure, not anoneverdict. The body is not written. -
uv run pytest tests/roadmap/test_roadmap_alternatives_search.py -k empty_answer- a search that answered with no result counts as a search. -
uv run pytest tests/roadmap/test_roadmap_alternatives_search.py -k shared_text-cited_web_searchreturns a result withansweredand the same text as before, for an answer, an empty answer and a failed search. The refine tool gets that text.
Every command above fails on the unchanged code. The pull request cites the fail-to-pass run (devops ci fail-to-pass --base <ref>).
Feasibility
I read alternatives.py (AlternativesTools.search_web, _refusal, validate_reply) and refine_investigation.py (cited_web_search, InvestigationTools.search_web) at origin/main. I did not run the code.
I ran the old criterion uv run pytest tests/roadmap -k 'refine and web_search' on main (commit 3a172a3). It gives 9 passed, so it is no fail-to-pass proof. The third criterion above replaces it.
The text "The search failed: no provider answered." is in the code at refine_investigation.py. The shared function is also used by refine, so the change keeps its text.
Existing tool considered
SearchFailed and web_search of ai/web_search.py. They are already the source of the failure signal. No library is needed.
Cost
Build: about 30k tokens and 1.5 h. Keep: about 2k tokens per quarter. Fix: about 8k tokens and 0.5 h.
Related
Part of #3027. #2951 (Ready gate on the alternatives verdict; do not duplicate). Order: before the issues #4049 and #4054. All change alternatives.py.
Activity
dan-petty commentedon Nov 7, 2026
Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.
fixprefix of the title gives the type.(roadmap)scope of the title gives the scope.A search outage produces a wrong verdict that persists for 30 days, but it requires all providers to fail simultaneously.Prevents a false no-tool verdict from blocking the roadmap for 30 days during a search outage.Changes are localized to two files with a small API addition and a conditional guard on Search recording.Both concern the alternatives check failure path; #2949 handles the round-level retry after a CheckFailure, while this candidate makes the check correctly produce that CheckFailure when every search fails.fix(roadmap): count only answered searches in alternatives (#4101)
devops-cli-service commentedon Nov 8, 2026
Released in v0.87.0: https://github.com/dan-petty/devops-cli/releases/tag/v0.87.0
devops-cli-service commentedon Nov 8, 2026
Live since 2026-11-08 03:31 UTC