Skip to content

D64c — A reader reads as a person's browser would, and no further

  • Status: Accepted — amends D64b, extends D39 and D55
  • Date: 2026-11-09
  • Origin: research agents who could not read through kg improvised their own requests, and one was stopped as a way round a bot check
  • Area: reading

Decision

  • Researchers read through kg. kg read <url> --out <file> saves a page's text for a quote to be checked against (text_file), through kg's own reader:
  • the server's pace and refusals are kept, and a Retry-After is honoured (D63, D66);
  • each read is logged;
  • a PDF is read for its text layer.

An agent with no shell reads the same way through the MCP tool, read(op="page", url, via?), which returns the text. Both give the links the page carries, so a researcher can find the document a listing points to. It runs under fetch: on or fetch: record. Under fetch: off it is refused, and the refusal says how to allow it. A research brief tells researchers to read this way, and only this way, whenever kg may fetch, and so does the default research prompt. - A document is read in the session that listed it. kg read <document> --via <listing> opens the page that lists the document (a portal's documents tab) first, and then the document, with the cookies the site set kept for that one reading, and no other: two reads are two browsers, even in one long-running MCP server. This is what a person's browser does. A server's pause holds across runs: a kg read straight after another waits as one run would. - A disclaimer is agreed only if the person allows it. fetch: {disclaimers: refuse} stops kg pressing a register's Agree (D64b) on anyone's behalf. A page that lands on a disclaimer is then not read, and kg says why. The default stays agree, as D64b decided, for the importers that rely on it. - What a reader never does, whatever the setting: - solve or route round a CAPTCHA or bot check; - send a Referer, user agent or header that pretends to be something it is not; - put personal data in a request; - ask again a server that refused, before it says it may be asked.

A site's own public data link (such as PlanIt's per-application JSON) is reading; a portal's private API is not.

Why

With fetch: off, an agent that needed a council's application form found its own way to it: - it kept the portal's session cookie between the documents tab and the PDF; - another sent a Referer header.

The first is what any browser does; the second pretends. Without a rule written down, and a reader that keeps it, each agent decided for itself, and the results were refused or kept by chance. One reader, in kg, with its limits stated, makes reading the same for every researcher, and auditable in reads.

Alternatives

  • Let agents fetch with their own tools under a written rule. Rejected: a rule nobody enforces is the situation this replaces.
  • Turn disclaimer agreement off for everyone. Rejected for now: D64b's importers read three registers that way, and the choice belongs to whoever runs the graph.