Skip to content

D45d — The sweep plan is data, for whatever does the research

  • Status: Accepted
  • Date: 2026-09-22
  • Origin: slice 18
  • Area: surfaces

Decision

kg sweep plan <scope> [--json] (MCP: read op=sweep_plan set=<scope>) returns everything one sweep needs: - the criteria and exclusions; - every member with its attention score, and the worklist; - members held out by a rule; - channels with their last check and whether each is due; - open and decided candidates; - coverage and its gap; - the evidence rules, stated in the plan itself because the reader may never have seen the skill.

kg sweep record <scope> --results <json> (MCP: write op=sweep_record) takes back the channels checked and the candidates found. Updates and new members come back separately, through check and write.

Why

Deep research is a good fit for the discovery step: many channels, each needing search and reading, independent of each other. But it should not matter what runs it: - a Claude Code session fanning out one subagent per due channel, today; - a hosted research session over MCP, once the server is hosted.

kg's job is to say what to do, record what was done, and enforce the evidence rules on the way in. Putting the plan in data rather than in one runner's prompt is what keeps the second runner from needing a second implementation.

Consequences

  • New members never arrive through sweep record. They arrive through check and write, under the write policy, so a sweep cannot merge on its own. Under confirm, a new entity waits for a person, whoever ran the sweep.
  • The skill documents the routine once, for every runner.