D49c — The review queue decides one proposal at a time, or many by filter¶
- Status: Accepted — amended by D49f (the page shows each quote in its capture, both support reasons, a header per entity, and an agent's advice)
- Date: 2026-09-23
- Origin: slice 26 build
- Area: surfaces
Decision¶
kg review --queuelists every staged claim and relation as one item:- what we hold (value, since, source count) and what is proposed (value,
kind,
valid_from); - the change:
missing,changed,corroborates,alongside(a forecast or rumour),withdrawn; - the quote, locator and source;
- its support (D49b);
- "staged against an older head" where it applies (D47o).
- Filters:
--changeset,--from,--scope/--set/--type,--props,--support,--source(part of the URL),--change. Items are grouped by source, then entity (--group entityfor the other way), so one source's proposals read together, as in EditGroups. - New entities are not queue items, and neither are entity merges or
reverts:
kg reviewis where those are decided. The queue counts the new entities that have proposals waiting on them. - Four decisions:
- accept merges the proposal and its event (a merge by id);
- reject rejects it, with a reason; an event nothing else cites goes with it;
- edit is for when the source says it, but not quite that. The proposal is
rejected ("edited: X → Y"), and the reviewer's own reading of the same
quote (a new value or
valid_from) is staged in their changeset and merged. The quote is checked again at staging. A relation is not edited: it is rejected, and the right one added; - skip leaves it staged.
- Every decision is checked before any lands.
- Four ways to decide:
-i: one item at a time, one key each (a r e s,uundo,qstop). Decisions are held until the end and applied after a y/n, so undo is forgetting one. Piped input is read one key per line;--acceptor--rejectover everything the filters select. It shows the count, and needs--yes;--html FILEwrites a self-contained page, with no network and no publishing (it may hold local-only rows), that downloadsdecisions.json.--apply FILEapplies that file;- MCP
review(op="queue")andreview(op="decide", decisions=[…] | action + filters). - An agent lists the queue; a person decides it. The skill says so. The surfaces do not enforce it, as merge does not.
Why¶
kg review shows a changeset as a whole, which is right for one session's work
and wrong for a refresh that touched fifty entities: the reviewer needs old
against new with the quote, fifty times in a row, and then to say "the
supported ones from this publisher are fine" once. Prodigy and OpenRefine are
built that way: one decision per keystroke, and bulk actions over a filter. An
edit that rejects and restates keeps the append-only rule: the correction is on
record as the reviewer's, citing the same words.
Alternatives¶
- A full-screen terminal UI. It would need a new dependency, and a line-by-line loop with a buffer does the job and can be tested with piped keys.
- Apply each key as it is pressed. Undo would then need a revert (D49e) for every slip.
- Publish the page as an artifact. The queue may hold proprietary rows; a local file never leaves the machine.