D26 — Repo layout, install and test strategy¶
- Status: Accepted — amended by D26b–D26f; amended by D69 (the config is
~/.analects/analects.yaml) - Date: 2026-09-17
- Origin: design interview
- Area: build
Decision¶
src/kg/{core,packs,importers,
cli,mcp}, packs/, skills/kg/, tests/{unit,fixtures,golden}. Database
in the repo (git-ignored), overridable with KG_DB/--db. kg.yaml at
~/.kg/kg.yaml via kg init. Three test layers: unit, pack fixtures, and
golden sessions (a recorded op script replayed into an empty database, with
brief output compared against a checked-in snapshot). Golden snapshots are the
primary regression check and double as each slice's demo.