Repository navigation
Decision Wiki As Knowledge Base
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.
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:
-
.specify/memory/constitution.md— supreme; the wiki never overrides it. - The wiki — current-state truth for completed work.
-
specs/— authoritative while a feature is being implemented, then point-in-time history. -
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.
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.
| 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. |
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.
- Concept-Cloud-Only-Inference
- Concept-Budget-Ceiling
- Concept-Personality-Gate
- Concept-IP-And-Legal-Posture
- Concept-Supply-Chain-Discipline
- Concept-Graceful-Degradation
- Concept-Observability
- Concept-Testing-And-TDD
- Concept-Credential-Hygiene
Editing in the browser? Wiki edits are live and bypass wiki:lint. Read
Guide-Wiki-Contributing first.