Contents
- 1 Status ~5
- 2 Context ~88
- 3 Options considered ~101
- 4 Choice ~49
- 5 Consequences ~223
Token figures are estimates — chars/4 (estimate — docpack has no tokenizer). Section run receipts are not shown: docpack’s runs: ledger records a run against a PAGE, never a section, so a per-section outcome would be invented.
1Status#
Accepted.
2Context#
Every documentation system this project studied died of collapsed reader trust or migration lock-in. Database-backed wikis cannot be grepped, diffed, blamed, or exported losslessly — and coding agents live in files and terminals. This decision ends that argument; the operational consequence is the build runbook.
3Options considered#
- Database-backed wiki (Confluence/Notion shape) — rich editing, but the agent write path is structurally blocked and export is lossy.
- Static site generator with a build service — good output, but the source of truth drifts from the rendered artifact and needs CI to exist.
- Plain Markdown + YAML frontmatter in git, one binary, rebuildable artifacts — chosen.
4Choice#
Option 3. Git provides history, blame, review, and merge for free; agents read the tree with zero integration; the bundle is a build artifact anyone can regenerate from the files alone.
5Consequences#
Easier: agent reads/writes, PR review of docs, lossless export, offline use. Foreclosed: real-time collaborative editing — two people typing into one page at once needs a server owning the document, which is the thing this decision declined.
WYSIWYG authoring is not foreclosed. The editor is a browser
block editor with real formatting controls; what plain files force is its
shape — it edits a lossless partition of the Markdown and
serializes back to it, so a save re-emits only the segments that changed and
leaves fences, {{vars}}, and output regions byte-identical. A
database-backed editor would not have needed that discipline, and would not
have produced a diff a human can review in a PR.
The regenerable-artifact claim holds exactly: a local docpack build --public
and the hosted rebuild of the same commit produce the identical build id.