D49f — The review page shows each quote in its capture, and an agent's advice beside it¶
- Status: Accepted — amends D49c
- Date: 2026-11-04
- Origin: reviewing a real queue of 53 proposals from the page
- Area: surfaces
Decision¶
The page kg review --queue --html FILE writes (D49c) carries what a person
needs to decide each item without opening its source.
- The capture around the quote. Each item has a
context: the text of the capture the quote was checked against (events.capture_sha), about 600 characters either side, capped at 2,400, with the quote's offsets so the page highlights it. It is read withcapture_text, so a capture a dataset withheld (withheld=1, D47d) is never shown; with no capture,contextis None and the page shows the quote alone. A quote that cannot be placed in its capture shows the capture's opening, and says so. - Both reasons. The checker's
whysits beside the rule's. - A header for each entity. Items are grouped under their entity, whose header
shows what we hold for a few key properties, each with its date: status, every
property in MW, developer, operator, planning authority, county (and party and
constituency for a person). It comes from the entity view the queue already
builds. The queue's JSON gains
entitiesfor it. - The page itself.
- The source URL is a link that opens in a new tab with
rel="noopener noreferrer", and only anhttp(s)URL becomes one. - Filters for support, property and change.
- Reject (why) and edit (value, valid_from, why) are fields on the item, not browser prompts.
- A count of decisions by action.
- The keys stay
j k a r e s u. - It stays one self-contained file, with no network and no external script,
style or font. Data enters it as JSON, with
</escaped, and reaches the page only throughtextContent, never as markup. - Advice.
kg review --advice FILE(with--queue,--htmlor-i) and the MCP queue op'sadvicetake an agent's suggestions, shaped like a decisions file:{"decisions": [{id, action, value?, valid_from?, why?, confidence?}]}. - Each piece is put on its item by id, and decides nothing.
- Every piece is checked first. An id not in this queue is an error naming it, whether it was decided already or a filter left it out. So are an action outside accept, reject, edit and skip, an edit that changes nothing or edits a relation, and an id advised twice.
- The page shows the advice on each item.
ttakes this item's advice, and Take all advice takes it for every item shown that is not yet decided. - Advice taken is an ordinary decision, which the person can change or undo.
The page saves it without
confidence, so the file applies withkg review --applyas before. - The text queue shows advice in one short line.
--advicewith--applyis refused: advice is read, then taken on the page.
Why¶
Reviewing 53 proposals in a real graph on 2026-11-04, a person could not judge
them from the page: it showed one line of quote, left out the checker's reason,
and asked for an edit through window.prompt. Each item meant opening the
source to read what surrounded the quote. Four agents had advised on the queue
that day, and their advice could only be read from their JSON files, beside the
page. The capture is already stored, and the checker's reason and the entity's
current values are already computed. The page was the only place they were
missing.
Advice is kept apart from decisions so the rule of D49c holds: an agent lists the queue and a person decides it. The advice file has the decisions file's shape so an agent writes one format, and what the person takes from it applies unchanged.
Alternatives¶
- Show the whole capture. Some captures are whole planning documents. A window around the quote is what a reader needs, and fifty items stay one page.
- Apply advice directly (
--apply advice.json). That works already, and it is the agent deciding. The page makes taking advice a person's act, one item or all shown at once, with undo. - Ignore advice for items not in the queue. A filter that hides an advised item, or an item decided since, would then drop advice without a word. The error names the item so the person can widen the filter or drop the advice.