Walk the user through the wiki-wide freshness backlog one entry at a
time. Wiki-scoped to match the SessionStart status-line chip: when the
chip says "N pending verdict", running this command surfaces exactly
those N notes.
The primary verdict path is the LLM-emitted in-passing nudge that
fires when the agent actively cites a stale-candidate note in flow.
This slash command is the explicit fallback for the user who wants to
clear the backlog on their own schedule.
-
Discover. Call mcp__lore__lore_pending_verdicts (no args —
the tool auto-resolves the active wiki from the cwd attachment).
The response carries every picker field per entry; no further reads
are needed.
-
Handle empty. If count == 0, say "no pending verdicts in this
wiki" and stop. Do not invent work.
-
Loop one picker per entry. Entries arrive pre-sorted:
disagreements first, then authored_marker, then orphan_broken.
For each, show one AskUserQuestion with three options:
stale / confirm / skip.
Header wording.
- Disagreement (entry has
disagreement block):
[[<slug>]] — stale by <disagreement.stale_by> <disagreement.stale_at>, you confirmed <disagreement.self_confirmed_at>
- Plain:
[[<slug>]] — <reason>
In the option description fields, surface the cause and any prior
personal confirm so the user has context without re-reading the
note.
-
On stale. Show a second AskUserQuestion for the one-line
reason. Offer three context-aware canned options derived from the
entry's reason field (the picker UI will also expose "Other" for
free-form entry). Then call mcp__lore__lore_verdict with
{wiki: <response.wiki>, note: entry.path, verdict: "stale", reason: <chosen>}. Echo the returned freshness block so the user
sees what landed.
-
On confirm. Call mcp__lore__lore_verdict with
{wiki: <response.wiki>, note: entry.path, verdict: "confirm"}.
Echo the returned freshness block.
-
On skip. No MCP call. Move to the next entry.
-
Summarize. End-of-loop: how many confirmed, how many stale,
how many skipped. Mention that the SessionStart status-line chip
will reflect the new count on the next refresh.