DEC-AIC-0049: Keep the decision records in a kb-kit knowledge base
Status: superseded by DEC-AIC-0065 · 2026-11-15
⚠️ Superseded by DEC-AIC-0065 on 2026-12-04.
Context
DEC-AIC-0001 put the decision records in docs/adr/, one file each, with README.md as an index kept by hand and template.md to copy. Nothing checked a record's fields, its links, or that a superseded record named its successor, and an agent that needed a decision had to read the index and open files.
DEC-AIC-0048 moved the vault server into this repository but left the reasons for its behaviour, DEC-KI-0058 to DEC-KI-0071 and Q-KI-0042, in kb-template. kb-template is not public, so a reader of this repository could not open them, although this repository cites them by ID (observed: 66 mentions, 2026-11-15).
kb-kit is a set of agent skills on the docs-mcp engine. The engine validates a folder of decisions, questions and evidence, indexes it, and serves it to agents over MCP. Version 3 of the engine is not on npm (observed: 2026-11-15).
Decision
-
The decision records live in
kb/, a kb-kit workspace for docs-mcp 3.kb/docs-mcp.config.jsonis its contract: document types, statuses, ID rules and the ADR template. This replaces DEC-AIC-0001 Decision 1. -
The workspace has two initiatives.
ai-coach, prefixAIC: the coach's own decisions. ADR-0001 to ADR-0048 became DEC-AIC-0001 to DEC-AIC-0048 and moved with their git history. Each keeps its old ID inaliases.vault, prefixKI: DEC-KI-0058 to DEC-KI-0071 and Q-KI-0042, copied from kb-templatear/ai-coach@ f184c18 with their IDs and text unchanged. Their frontmatter links to kb-template documents that did not come along were dropped. This replaces DEC-AIC-0048 Decision 7.
New decisions about the vault go in
ai-coach, as DEC-AIC-0048 says. -
A record's fields follow the engine's schema. It has
doc_typeandinitiative. A replaced record names its successor insucceeded_by; the successor names nothing, sosupersedesandsuperseded_byare gone. A record that is replaced only in part keeps its status and still names the newer record insucceeded_by. This replaces the field named in DEC-AIC-0001 Decision 4. -
Status is one of
draft,accepted,rejectedorsuperseded.proposedbecamedraft. This replaces DEC-AIC-0001 Decision 5. The rest of DEC-AIC-0001 stands: what counts as an important change, that the record ships in the same commit, and that an accepted record is not rewritten. -
A record has
Context,DecisionandConsequences;Alternatives Consideredis optional.docs-mcp checkenforces this, sotemplate.mdis gone. The hand-kept index is gone too: the docs site lists the records from their files. -
A new record is written through the engine, with the
upsert_documenttool ordocs-mcp upsert, which give it the next ID and its file name. A status changes with thetransition_statustool.docs-mcp check, run inkb/, passes before the commit. -
Agents reach the records over MCP. The server is
docs-mcp serve, run inkb/;.mcp.example.jsonhas the entry, namedai-coach-kb.docs-mcpis expected on thePATHuntil the engine is on npm, and CI does not rundocs-mcp checkuntil then. -
The docs site builds the decision pages from
kb/source/initiatives/ai-coach/decisions/, at the addresses they had before (DEC-AIC-0032). Thevaultinitiative is not on the site. -
Prettier does not format
kb/. The engine writes those files.
Consequences
- An agent can search the decisions, read one by ID and follow its links, instead of reading an index.
- The reasons behind the vault's behaviour are public and sit in the same graph as the coach's decisions.
- Every
ADR-NNNNin this repository's docs becameADR-AIC-NNNN. Commit messages and text outside this repository keep the old IDs. docs-mcp checkpasses with 70 warnings (observed: 2026-11-15): 25 records that are not drafts name no owners and no reviewers, and 20 links point at a superseded record. The coach's records have no tags and no summaries.- Adding a record needs the docs-mcp engine, which is not on npm yet.
- The workspace follows the engine's major version. When the engine changes the workspace's contract,
docs-mcp migratebringskb/up to date. - Two decisions wait on a draft: DEC-AIC-0024 would replace DEC-AIC-0016, and DEC-AIC-0025 would replace DEC-AIC-0021. Until they are accepted, each draft only links the record it would replace.
Alternatives Considered
- Keep
docs/adr/and copy the records into a knowledge base. Every decision would have two homes that drift apart. - Make the repository root the workspace.
docs-mcp initkeeps an existingAGENTS.md,CLAUDE.mdandREADME.md, so the workspace's own rules would be missing, and its folders would sit among the Nx projects.