Skip to content

D41 — Every reading of a source is kept, and an event is bound to the one it was checked against

  • Status: Accepted — completes D15
  • Date: 2026-09-22
  • Origin: slice 14 probe
  • Area: evidence

Decision

A source is a document, identified by its normalised URL. Each distinct text supplied for that source is archived as a capture: append-only, keyed by the sha of the text, with its size and the time it was stored.

add_event checks the quote against the text the reader actually supplied, then stores that text as a capture and records its sha on the event. Where no text is supplied, the quote is checked against the captures already held, newest reading first, and the event binds to whichever one contains it.

A source that gains a second, differing capture produces a warning. It is not an error: a page that changed between two readings and one document queried twice are both legitimate, and both are worth knowing about.

sources.snapshot keeps its existing meaning — the first text ever supplied — so nothing that reads it changes. Captures are the complete record.

Why

Found by probing the corpus, not by a test. Of 335 events imported from the captured sources, two quoted words that were nowhere in the archive.

The mechanism: NESO's TEC register is one API endpoint, so a query for Apatura and a query for Newarthill normalise to one URL and are one source. That is correct — they are two readings of one register. But upsert_source only stored text when the source had none, so the second query's response was verified against, and then dropped. The events were right, the verification was right, and the archive could no longer show it.

That is worse than storing nothing. The promise the whole engine makes is that every value cites a source and the quote is checked against it. If the archived text does not contain the quote, anyone re-checking concludes the evidence was fabricated — and they cannot tell that case apart from one where it really was.

The same shape shows up wherever a long document is read twice and a different excerpt pasted each time, which is ordinary agent behaviour. The slice-2 golden had been modelling the bug since slice 2 without anyone noticing: it supplies two different texts for one 10-K URL, and the second one's words were not retrievable.

Alternatives rejected

Refuse the second text. Wrong: pages legitimately change, and refusing would make a changed page unciteable.

Overwrite with the newest text. Worse: it silently invalidates every earlier quote, converting a solid event into an unprovable one with no record of why.

Give each query its own URL. Treats a symptom. Any source read twice hits this, including a single page revisited, and it would fragment one register into many sources that should corroborate each other.