DuckDuckGo is fixed at the tailnet level; record how
The ISP redirects UDP/53 to a resolver that answers duckduckgo.com with an RPZ block page. The
tailnet's DNS configuration now carries Cloudflare over DoH as a global nameserver, with
useWithExitNode and overrideLocalDNS, so MagicDNS resolves the real address on every machine. All
five return real DuckDuckGo results.
Records the four details that made it fiddly, because each cost time and each will recur:
* POST /dns/preferences replaces the object — sending only overrideLocalDNS turned MagicDNS off.
* GET /dns/preferences does not report overrideLocalDNS, so a successful write looks ignored;
/dns/configuration reports everything.
* /dns/nameservers rejects useWithExitNode (flat strings only); the combined /dns/configuration
endpoint accepts it, and without it an exit-node device ignores the tailnet nameserver.
* macOS per-service DNS beats MagicDNS even with overrideLocalDNS, including on a service named
'Tailscale'; clearing each with networksetup was the last step.
All providers on by default; the fleet is native; the CAPTCHA is transient
Three corrections, all of them things this wiki stated the other way.
**Nothing is opt-in.** The scrapers and Parallel were listed as opt-in. Every provider is now
enabled by default, including the ones needing no credential: a provider without a credential
reports not_configured and the rest still answer the query, so an install with no keys searches
instead of refusing.
**The fleet runs natively.** All five instances are native under launchd now, not Colima
containers — same listener, no VM in the path, and no login-keychain dependency during install.
The table also listed this Mac twice, once as 'this Mac' and once as 'node1', which made five
machines look like six; it is one machine, and the table now says so.
**The DuckDuckGo CAPTCHA is transient.** This page called it a second fault that only a
different egress could clear. A burst of probing provoked the challenge on every endpoint, and a
single polite request afterwards returned HTTP 200 with 12 real results. It is back-pressure to
be rate limited around, not a verdict on the engine.
Correct the DNS diagnosis: UDP/53 is redirected, not every resolver poisoned
This page concluded that the DuckDuckGo block 'applied to every resolver including 8.8.8.8 and
1.1.1.1', and that no resolver change could help. The observation was real and the inference was
wrong: those queries never reached the resolvers they named, because the ISP redirects UDP/53.
The responder's own identity settles it, and it takes two commands:
dig @1.1.1.1 CH TXT id.server # UDP/53 -> noc-dev (the ISP's Unbound 1.19.2)
dig @1.1.1.1 +tcp CH TXT id.server # TCP/53 -> cgk01 (Cloudflare, Jakarta)
TCP/53 and DoH return the real address, so this is fixable in place. On a Tailscale network it
is one setting: MagicDNS is the system resolver everywhere and forwards to the DHCP-provided ISP
resolvers, so a DoH global nameserver in the admin console, with Override local DNS, lifts the
block for the whole tailnet.
Providers.md carried the same wrong claim and is corrected with it; the DuckDuckGo entry also now
distinguishes this fault from the CAPTCHA, which a different egress is the only cure for.
Docs: DuckDuckGo — why a DNS block looks like a TLS bug, and why fixing DNS is not enough
Two findings from making this provider's failure legible, both worth writing down because
each one cost a debugging session:
* A DNS-blocking network makes the failure surface as a *certificate* error. The name
resolves to a block page, the connection lands there, and TLS trust fails first. Every
plain resolver on that network — including 1.1.1.1, 8.8.8.8 and 9.9.9.9 — returned the
same block-page address, so changing resolvers does not help. The failure reason now
names interception, and this records why.
* Reaching the real address is not a fix. DuckDuckGo then serves an interactive CAPTCHA
("select all squares containing a duck") as HTTP 202, on every endpoint, with either
user agent, requests spaced well apart. Its Instant Answer API is challenged too, and
SearXNG's own DuckDuckGo engine is unresponsive on the same host. The remedy is a
different egress, not a different request.
Docs: make the wiki a user guide, and reduce the tracker to open work
The wiki had drifted into a development record. This is the pass that makes it something a user can
read: the audit history comes out, the tracker keeps only what is open, and the three reference pages
that had no examples get them.
Project Tracker
* 1011 lines -> ~60. It was a history of the audit, an action plan, observations and decisions; the
task now is what is open. Closed items are deleted rather than archived, so an entry that is gone is
done — the CHANGELOG and release notes are where a shipped fix belongs.
* What remains: the four open items (the PAT rotation, now issue #16; `node5`; the unasserted
second half of the "two executables against one stub" contract; and one commit authored under a
worker identity, which is recorded rather than rewritten), plus the six **accepted limitations**
as decisions with the reason and the page that documents each.
* Adds how a fix happens here, because that is what a reader needs to judge whether to report
something.
Home
* Drops the "Project status" audit history — PR numbers, commit SHAs, ledger IDs, Phase E runs and a
path into `AUDIT/` that no longer exists — for a "Current release" section a user can act on.
* Test count 590 -> 591.
Examples
* **Providers**: a working two-provider configuration, and asking `web_search_status` what the server
actually sees instead of assuming the environment took effect.
* **Reliability**: the two knobs that cover most tuning, and what a partial answer looks like.
* **Security**: the supported way to expose the HTTP transport — reverse proxy, loopback bind, and the
declared host name that everything else is refused against.
Also removes two stale ISSUE- references from Compatibility and Security, and repoints an anchor at
the tracker's accepted-limitations table, which is what the old `#known-limitations` anchor had named.
Every internal wiki link and anchor now resolves.
Record the 368-test suite, the new coverage, and the defects it found
Follows the test-coverage pass (c02c969, 5afa7a7, bc56236):
- Test count 309 -> 368, 6 opt-in live tests gated on SEARCH_LIVE_TESTS plus a
usable key; README, Home, Testing and Project-Tracker.
- Testing layout: HTTPTransportTests (7), FetchFallbackTests (11), ProbeTests
(15, NodeProbe + ProviderProbe); ProviderContractTests 27 -> 51 now runs the
shared failure taxonomy across every adapter; LiveProviderTests 7 -> 8 with the
opt-in guard. Contract section no longer lists coverage gaps; the only gap is
live-only Tavily, moved to Known limitations.
- Two defects the new tests found recorded in the audit trail: NodeProbe read
unresponsiveEngines while SearXNG emits unresponsive_engines, so the monitor's
unavailable-engine column was always empty; OpenWebSearchProvider documented a
bare top-level array it could not decode. Both fixed in 5afa7a7.
- Resold-provenance folding reworded in Architecture and Known limitations:
folding needs per-result engines (SearXNG, Open Web Search); a response-level
adapter gets the discount without folding.
- Project-Tracker: HEAD bc56236, tasks 26-33 marked done (33 except the scheduled
live smoke), ISSUE-5 resolved, audit note updated, ff7ffbc corrected to ff7ffbb,
the write-one-response-per-request HTTPMCPHost fix recorded, and status/CI
brought up to date (run for bc56236 in progress).
Reconcile the wiki with the implementation
Corrects every page the 17-commit correctness pass made stale:
- Test count 287 -> 309 (6 opt-in live tests); Home, Testing, Project-Tracker.
- Smoke test is a presence check against REQUIRED_TOOLS; exactness lives in
StdioServerTests/SchemaCompatibilityTests. Testing reworded.
- SSRF: embedded-IPv4 unwrapping documented in Security, 0.0.0.0/8 added to
reserved, DNS-rebinding window recorded as an accepted limitation.
- Jina is not a provider: Providers table row removed, section rewound,
Configuration explains JINA_API_KEY only raises the reader limit.
- ProviderCapabilities deleted; adding-a-provider no longer lists capabilities.
- SEARCH_CONNECT_TIMEOUT_MS removed from Configuration; request timeout is what
bounds a connect, and Reliability says so.
- Transport flags reject an explicit --transport stdio conflict (Installation,
Troubleshooting).
- Reliability: deadline no longer trips breakers, last-resort local wait,
fan-out refill.
- Monitor: providers probed once on the first frame only; --watch and
--allow-expensive-probing documented.
- Self-Hosting: pinned digest, canary validation, per-node secret key, local
instance loopback-only, Docker Desktop LaunchAgent and its removal.
- Security/Compatibility: no built-in auth by design; human-readable text block
rather than a JSON mirror of structuredContent.
- Project-Tracker: CI status corrected to green-pending-the-run, resolved issues
moved to the audit trail (open issues 17 -> 6), 47-task plan annotated with
completions, decisions added for the connect timeout, Jina, DNS rebinding and
auth.
- Testing: local builds need --scratch-path outside Dropbox; .build is now
com.dropbox.ignored.
Document web_answer: grounded synthesis, and why the model is not a provider
Adds the tool reference, the four configuration variables, the architecture
placement and the measurements behind the design.
The load-bearing finding is that the model has no web access. That is why it
cannot be a search provider -- as one it would emit plausible prose with
invented URLs, which is the failure this project exists to avoid -- and why
grounding it in already-fetched results is safe: it cannot cite a document
the search never retrieved.
Evidence recorded, all measured against deepseek-flash (V4.1-Flash):
- unaided it answered 'newest macOS is 26.4.1' while the machine ran 26.6.2
- grounded on the reference query it replied INSUFFICIENT rather than
inventing the explanation the results did not contain
- grounded on a live price query it answered from six real sources
- ~2s to synthesise, ~7s per balanced call, ~$0.0003 per answer, no
fabricated URLs in any run
Also documents the thinking-mode trap: the API default is enabled, the
reasoning pass shares the output-token budget, and a call can return
completion=4000/reasoning=4000/content='' under HTTP 200.
Corrects the stale test counts to the measured 287 and the tool count to
four throughout.
Correct the DuckDuckGo diagnosis: DNS poisoning, not IP reputation
Measured per node (account matches hostname) rather than inferred:
node1..4 egress 182.253.9.73, no exit node, distinct public IPv6
this Mac egress 91.99.176.243 via the deltasona exit node
Probing each engine directly shows the earlier 'blocked by IP' note was
wrong. The Indonesian ISP poisons html.duckduckgo.com for EVERY resolver
including 8.8.8.8 and 1.1.1.1, so the name is dead before a connection is
made; pinning the real address returns HTTP 200 and real results from the
node. Bing and Brave resolve normally there.
The second fault is separate: SearXNG's DuckDuckGo engine is CAPTCHA'd
even from the clean German egress, because it uses scripted form POSTs.
Our own adapter does not share that fault and returned 10/10.
Also: node5's account hypothesis is disproved, the stale 179/216 test
counts are corrected to the measured 256, and Self-Hosting now documents
the two-egress engine tables and the extra_hosts workaround.
Document the mcps-mon dashboard
New Monitor page: what it shows, why provider probing is opt-in, every flag and
key, and how the two probe paths work.
Two design decisions are worth recording because they are easy to get wrong:
- Nodes are asked for JSON directly, not through the MCP server. An instance that
is running but has JSON disabled answers 403, and reporting that as "down"
would send an operator looking for a network fault. It shows as DEGRADED with
the real reason instead.
- Providers are probed one at a time through the same adapters the server uses,
never through the orchestrator, because a fused answer deliberately hides which
provider failed - which is precisely what the dashboard exists to show.
Also notes that the testable parts live in the library rather than the
executable, since an executable's symbols cannot be imported by a test target.
Document the SearXNG cluster deployment
New Self-Hosting page: the five instances and their Tailscale addresses, how to
provision a node, the four traps that cost the most time during rollout, and the
measured behaviour.
It records the result honestly rather than just the success. The cluster does not
deliver what was hoped for: all four nodes share one egress IP behind a single
NAT, so they add no network reach, and DuckDuckGo fails from both egress points
tried - CAPTCHA from the German exit and a connection error from the Indonesian
one. Four instances behind one address are redundancy, not diversity. Nor is this
an independent index: every instance queries the same upstream engines.
Also records what is still blocked: node5 rejects key authentication, and the
server takes one SEARXNG_BASE_URL at a time, so the extra instances are a choice
of endpoint rather than parallel fan-out.
Correct fusion documentation for the ordering fix
A live provider comparison found that a balanced search returned 100% Tavily
while an aggregator had ranked better on the query. The cause was arithmetic:
score is weight / (k + rank), so a weight ratio wider than the reachable rank
ratio ((k + maxRank) / (k + 1), about 1.07 for five results at k = 60) lets one
provider's whole list outrank another's. The old weights spanned 0.8 to 1.1.
Registry weights are now all 1.0 and the aggregator discount applies only when
an aggregator demonstrably resells an index another provider owns. Architecture
documents the invariant and the measured failure; Providers drops the stale
per-provider weight column; the tracker records the finding and verifies it live.
Same query now interleaves both providers with on-topic results throughout.
Document client compatibility, OpenAI/Anthropic/Open Responses
Adds a Compatibility page recording what each client and API requires, verified
against official documentation, plus the schema rules the server must follow and
why each one exists. Several of those rules are counter-intuitive - notably that
additionalProperties:false is required rather than risky, and that nullable type
unions are officially supported - so the reasoning is captured rather than the
conclusion alone.
Also documents the Streamable HTTP transport: endpoints, the session and Accept
requirements it enforces, and the security posture (loopback by default, no
authentication, TLS behind a reverse proxy).
Updates Installation (transport flags), Tools Reference (nullable optionals, and
text carried once rather than duplicated), Testing (209 tests, HTTP smoke
coverage, the schema rule tests), Home and every navigation strip, and the
Project Tracker, which now records the remaining HTTP gaps honestly: no auth, no
TLS, no server-initiated streaming, and no end-to-end test against a real vendor
client yet.
Document live verification, the Tavily decoder fix and the new suite
- Testing: adds a section on the opt-in live suite, including what each test
proves and what it costs in credits, and corrects the test count.
- Providers: records the Tavily decoder trap, since it is a live-API quirk that
stub tests structurally cannot catch.
- Project Tracker: records the live verification run, the published_date fix,
and the .gitignore hardening.
Write the full project wiki
Grows the wiki from eight short pages into a complete, navigable reference of
eleven pages, and adds the two that were missing:
- Installation: requirements, building, client configuration, verification.
- Tools Reference: every argument, response field, mode, error category and
example call for the three tools.
- Reliability: the timeouts, retries, circuit breakers, rate limits and cache
that enforce the "one vendor outage never fails a search" rule, with the
failover matrix.
- Architecture, Providers, Configuration, Security, Testing and Troubleshooting
are expanded into full references rather than summaries.
Every page carries a navigation strip, all internal links are verified, and the
detail that was previously duplicated in the repository README now lives here.
Build the wiki: architecture, providers, config, security, testing, tracker
Replaces the placeholder Home page with real documentation and adds the
project tracker.
Beyond reference material, several pages record findings that are easy to
lose:
- Providers.md documents the API quirks each adapter depends on: Mojeek
authenticates by query parameter and returns HTTP 200 for a bad key,
Brave reports an invalid token as 422 plus an error code, Exa answers a
missing key with 402 and has no score field, SearXNG returns 403 when
JSON is disabled, and DuckDuckGo signals its bot challenge with HTTP 202.
- Security.md explains why three SSRF layers are needed and what exactly is
refused.
- Testing.md documents the hermetic-environment requirement, which was a
real defect: end-to-end tests used to inherit ambient provider keys.
- Project-Tracker.md is the living task list, with the same-index
double-counting limitation recorded honestly as open rather than solved.