Skip to content

D71 — Before the public repository: the agent surface is read from the CLI, and fixtures keep only what is read

  • Status: Accepted — amends D28 (what help --agent lists)
  • Date: 2026-11-23
  • Origin: reading the backlog before the public repository (D65) was created
  • Area: build

Decision

  • The public repository is KindTechUK/analects. The install docs, the docs site and CODE_SOURCE name it. The private repository, which keeps the history (D65), was renamed to make way for it.
  • analects help --agent lists every option a command takes. The commands and their arguments are still written out by hand, as words an agent reads. Each command's options are read from the CLI itself, so none can be left out. A test checks the options the backlog found missing.
  • analects schema test says what it checks. It checks a fixture's fields, not its verdict. The test suite runs the verdicts for the packs Analects ships (D12). The "from slice 4" line is gone.
  • PlanIt's captures keep only the fields its reader reads. PlanIt publishes no data licence, so the public repository carries no more of its responses than the tests need. Those are a record's reference, area, point and links; a search hit's name, kind, size, state, date, link and description; and an authority's name, code and portal. The invented decoys in other_fields stay, so a test still proves agents' names are never read.
  • A dataset is not opened to public contribution. The code repository takes pull requests from anyone. A dataset takes signed bundles only from the contributors it lists, and only its maintainers decide what it asserts (D47h). CONTRIBUTING.md says so.
  • The hosted peer is for a small, trusted team for now. It has no rate limits and no production setup has been chosen. The guide says so.

Why

Each of these was open in the backlog, and each would have been visible to anyone reading the public repository on its first day. The agent surface was hand-written: it was missing check --fetch, --report, --scope and --out; views export --site, --scope and --contact; add event --fetch and --text; and sweep brief --limit. A test that compared only command names didn't notice. An agent never uses an option that isn't listed.

Alternatives

  • Correct the hand-written option lists. They had drifted once and would again. A test comparing them with the CLI would catch drift, but only after it happened. Reading the options from the CLI means it can't happen.
  • Ask PlanIt for a licence before publishing. That still matters before the data products are published widely (backlog). The code repository needs only the fields its tests read, so it doesn't have to wait.