D39 — Fetching is off until the user says otherwise, and there is one gate¶
- Status: Accepted — amended by D55 (
fetch: record: fetching only while a research run is recorded) - Date: 2026-09-22
- Origin: slice 12 build
- Area: evidence
Decision¶
--fetch reads --source over the network and uses what comes back as the text
an event's quote is checked against. It is off by default (fetch: off),
and the refusal names the setting and the alternative:
fetching is off. This graph does not make outbound requests unless you allow it: set
fetch: onin kg.yaml, or read the page yourself and pass it with--text-file.
Every surface reaches one gate. The CLI, the MCP write tool and the ops
dispatcher all end at core/fetch.fetch(), so neither surface can fetch where
another would refuse. fetch() takes its reader as an argument, which is how the
tests and the golden sessions stay offline (D26).
Why¶
The engine making outbound requests on the user's behalf is a different kind of
act from everything else in this project. Every other operation reads files the
user chose and writes to a database the user owns. A fetch sends a request, from
the user's machine and address, to a third party — possibly a regulator, possibly
a company that will notice. That is the user's decision, and a default of off
is the only honest one.
It is not a security control, and should not be described as one: anyone who can
edit kg.yaml can turn it on. It is a statement about what the tool does when
nobody has said otherwise.
The fetch key has been in DEFAULT_CONFIG since slice 0, set to "off", and
Config.fetch_allowed() has existed and never been called. Slice 12 is the first
time anything reads it.
The size cap, the timeout and the honest user agent are all in the same place. The user agent identifies the tool rather than impersonating a browser — which, on the one site tested that blocks automated requests, turned out to be the version that got through.