Skip to content

feat(ai): search the web through a chain of providers - #3948

Merged
dan-petty merged 7 commits into
mainfrom
feat/3925-web-search-provider-chain
Nov 7, 2026
Merged

dan-petty merged 7 commits into
mainfrom
feat/3925-web-search-provider-chain

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

Web search had one backend, Firecrawl, and its credit ran out. The new module web_search.py asks the providers of search.providers in order: it skips a provider that is not configured, passes the search on at once when a provider fails or returns no hit, and returns the first hit list. DuckDuckGo and Firecrawl move into it as providers, and SearXNG joins later (#3927). A guard refuses a query that holds a secret, an e-mail address, a private address or an internal host name. One counter, devops_cli_web_searches_total, replaces the two old counters, and the alert RoadmapServiceFirecrawlRefused becomes RoadmapServiceWebSearchRefused. DuckDuckGo needs no key, so web search is on for a public repository with the default settings.

Closes #3925

Change: openspec/changes/archive/2026-11-07-3925-web-search-provider-chain/

@dan-petty dan-petty added type/feature Type feature: a new function scope/ai AI review pipeline, personas, prompts, LLM client, or RAG labels Nov 7, 2026
@dan-petty

Copy link
Copy Markdown
Owner Author

Test notes for this pull request.

  • The full uv run devops ci passed before the rebase and the archive commit: all gates, with pytest and coverage at 5m 38s. The test gate was over the 5 minute budget on a shared host; the slowest test is the promtool unit test of the alert rules (107 s), which exists on main.
  • After the last rebase I ran the narrow tests of the files the rebase touched: tests/ai/test_web_search.py, tests/roadmap/refine, tests/roadmap/test_roadmap_alternatives.py, tests/roadmap/test_roadmap_dry_runs.py, tests/roadmap/stage/test_roadmap_stage_tools.py (712 passed), ruff check and devops openspec check.
  • git grep finds the old counter names only in openspec/changes/archive and in the frozen eval fixtures of other issues under tests/fixtures/roadmap_eval/stage (recorded issue text and expected model replies). I did not edit those fixtures.
  • Decisions of the owner of 2026-11-07 that this change follows: DuckDuckGo needs no key and may turn web search on for a public repository, and Firecrawl stays the last provider for one release cycle. The cluster is not touched.
  • The SearXNG provider is feat(ai): add the SearXNG search provider #3927. The default list names searxng and the chain skips it until that provider exists.

@dan-petty
dan-petty marked this pull request as ready for review November 7, 2026 06:26
@dan-petty
dan-petty force-pushed the feat/3925-web-search-provider-chain branch from 601f1f1 to 56aa3a9 Compare November 7, 2026 11:55
@dan-petty
dan-petty enabled auto-merge (squash) November 7, 2026 12:02
@dan-petty
dan-petty force-pushed the feat/3925-web-search-provider-chain branch from 56aa3a9 to d551655 Compare November 7, 2026 12:07
@dan-petty
dan-petty merged commit 517c58b into main Nov 7, 2026
24 checks passed
@dan-petty
dan-petty deleted the feat/3925-web-search-provider-chain branch November 7, 2026 12:17
dan-petty pushed a commit that referenced this pull request Nov 7, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.80.0](v0.79.0...v0.80.0)
(2026-11-07)


### Features

* **ai:** search the web through a chain of providers
([#3948](#3948))
([517c58b](517c58b))

---
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/ai AI review pipeline, personas, prompts, LLM client, or RAG type/feature Type feature: a new function

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(ai): search the web through a chain of providers

1 participant