Skip to content

D49 — A set's gaps become research tasks, and what comes back is one batch

  • Status: Accepted — amended by D55 (a research run's searches are logged as a refresh's are; tasks also carry a plain question) and D56 (a confirmed gap is held back too)
  • Date: 2026-09-23
  • Origin: slice 26 build
  • Area: surfaces

Decision

  • kg refresh brief (--scope | --set | --type | --ids) turns a set's gaps (D48b) into research tasks:
  • one task per entity and property;
  • each task gives what we hold, since when and from which sources, the findings behind it, and an ask written from the property and the rules (a status asks for the date it happened; a figure asks for its unit);
  • --props and --rule narrow it, and --limit caps it;
  • --split K deals the tasks into K briefs, one entity to one brief, for K agents at once;
  • the brief states the rules, what not to do, and the exact JSON to return, with one outcome per task already filled in to be completed. It is the prompt, as data, like a sweep brief (D46b).
  • verify.thin_sourcing is sent only when it is named. An imported set would otherwise send every entity out for a second source.
  • kg refresh record --results records what came back:
  • one changeset, as the researcher;
  • each document through check and into that changeset, one batch per document, so a bad document takes nothing else down (the sweep's own path, D46c);
  • an outcome per task: updated, confirmed, nothing_newer or unreachable;
  • a warning for a task reported updated with nothing staged about it.
  • Outcomes are a log. Schema 11 adds refreshes and attempts, which ride the researcher's changeset and travel in its bundle, like the sweep log (D47m). A run over a scope not shared stays local, and so does an attempt on an entity kept local.
  • Nothing newer is remembered. A finding whose last attempt found nothing, with nothing merged about it since, is marked "searched D by X: nothing newer" in the report and brief.
  • It still shows, unlike a dismissal (D48c).
  • It no longer adds to its entity's score, so it sorts below what nobody has looked at.
  • The refresh brief holds it back for refresh.retry_days (30), unless --retry is given.
  • Nothing here merges. kg never reads with a model (D16): agents research, kg checks and records, and a person decides in the review queue (D49c).

Why

Slice 25 found every gap in one pass, but fixing them was still one site at a time. The sweep already had the shape a refresh needs: a brief an agent can work from without having read the skill, and a record that runs every document through check. What it lacked was a task per member rather than per channel, and a way to remember that a search came back empty. Without that, the same stale finding is sent out every day and comes back empty every day.

Alternatives

  • kg calls a model to research. It would break D16 and bring a key, a cost and non-determinism into the engine, when Claude Code already runs agents.
  • One task per entity. An agent asked "refresh Alder" has no idea what is wrong with Alder. The findings are what make the task answerable.
  • Hide a searched finding like a dismissal. Nothing newer is a fact about a day, not a judgement that the finding is wrong; it should fade from the top of the list, not disappear.