Skip to content

Decision Wiki As Knowledge Base

Reese Hodge edited this page Nov 1, 2026 · 3 revisions

Decision: Wiki as Knowledge Base

Context

Max Height knowledge is spread across specs, docs, constitution text, tasks, and code. docs/llm-wiki-plan.md records the problem: every agent session was re-deriving context from large raw sources, and drift was already visible in the tasks.md deviations table.

The wiki is the living synthesis layer. The raw sources stay immutable and citable; the wiki records what is true now. The schema is documented on Wiki-Conventions, and traps are indexed on Gotchas.

Decision

Adopt the GitHub wiki as the LLM-maintained knowledge base for Max Height.

Use the hybrid rule:

Use Spec Kit when... Use the wiki when...
Adding a new user-facing capability Changing existing behavior
Adding a new AWS resource or changing the cost model Fixing bugs
A constitution check is required Refactoring
Research or clarification is needed before the work is understood Tooling, dependency, CI, docs, and knowledge capture

Use this precedence order when sources disagree:

  1. .specify/memory/constitution.md — supreme; the wiki never overrides it.
  2. The wiki — current-state truth for completed work.
  3. specs/ — authoritative while a feature is being implemented, then point-in-time history.
  4. docs/ — background only.

Keep the local wiki clone at ./wiki, gitignored by the main repository. Drive it with plain git -C wiki ...; the only wiki script is wiki:lint, which lives in packages/repo-tools so it is linted, typechecked and tested like the rest of the code. wiki:pull and wiki:push existed until 2026-11-01 and were deleted — see Guide-Wiki-Contributing for why.

Consequences

Wiki pages can be edited directly by agents using local files, and wiki pushes avoid normal main-repo pull-request overhead. That is the point of the workflow, but it has an accepted cost: GitHub wikis have no branches and no pull requests, so wiki content goes live before the main-repo PR merges.

If the main-repo PR is later rejected or reworked, the wiki must be reverted separately through wiki git history. That asymmetry is documented on Guide-Wiki-Contributing and indexed from Gotchas so future contributors do not rediscover it by accident.

The wiki is public. It must not contain credentials, AWS account IDs, private endpoints, or project-visible forbidden copy. The metadata and link rules in Wiki-Conventions exist so pages are machine-checkable.

Alternatives considered

Alternative Rejected because
Keep only specs and docs Preserves provenance but not current-state synthesis.
Move everything into Spec Kit Too heavy for bug fixes, refactors, tooling, and docs changes.
Use GitHub Pages immediately Unneeded at the current size; the wiki is far below the 5,000-file soft limit.
Store knowledge only in agent memory/chat Does not compound across contributors or sessions.

Status/verification

Current as of 2026-09-26, verified against docs/llm-wiki-plan.md. See Source-LLM-Wiki-Plan for the distilled source, Source-LLM-Wiki-Pattern for the originating idea and how this implementation diverges from it, and Guide-Wiki-Contributing for the operational workflow.

Clone this wiki locally