Skip to content

D34 — kg check as built: seven verdicts, and the quote first

  • Status: Accepted — completes D16; amended by D56 (kg check --report)
  • Date: 2026-09-21
  • Origin: slice 7 build
  • Area: surfaces

Decision

kg check <document> --source URL --type T --mentions <file> reads a document and a list of mentions, and returns a verdict for each plus an ops batch. It writes nothing — not a row, not a changeset.

A mention is {entity_text, type, property|edge, value, quote, locator} plus the optional shape a claim already has (kind, valid_from, valid_to, on, retract, low, high, method, inputs, attributes).

Checks run in this order, and the first one that fails settles it:

  1. the quote — is it in the document? Hard rule 6, before anything else, so a sentence nobody wrote is refused whatever else is wrong with it;
  2. the shape — is this a known type, a known property or edge, a value that parses under it;
  3. the entity — the resolver decides. An exact match is used; a close call is unmatchable and waits for a person; a name nothing matches becomes an entity op for review;
  4. the difference — against what we already hold.

The verdicts, worst first: refused, unmatchable, new, stale, missing, alongside, corroborates, unchanged. Only the middle five produce ops.

Why

D16 settled that the agent brings the mentions and the engine does the rest, deterministically. What this slice adds is that "the rest" has an order, and the quote comes first: a hallucinated sentence should be refused for being hallucinated, not for a mistyped property name it also happens to have.

The verdicts are not severity labels, they are actions. stale means a person should look; corroborates means stage it and confidence rises; unchanged means there is nothing to do. A triage whose categories do not map to actions would just be a second thing to read.

alongside exists because missing was lying. A forecast measured against a value we hold is neither missing nor a disagreement — a projection never displaces a stated value (D7) — and calling it "missing" while printing "we hold 4" in the same line was the clearest possible sign the category was wrong.