Three-layer architecture
The structural commitment behind the llm-wiki-pattern.
| Layer | Owned by | Mutable? | This vault |
|---|---|---|---|
| Raw sources | Human (curates) | Immutable to LLM | raw/ |
| Wiki | LLM | LLM writes, human reads | wiki/ |
| Schema | Co-evolved | Both edit, deliberately | CLAUDE.md |
Why separated
- Raw is auditable. Any wiki claim can be traced back to a source whose text didn’t change under it.
- Wiki is the LLM’s working memory across sessions. Free to be rewritten as understanding sharpens.
- Schema is the contract. Changing it changes how all future ingests/queries behave — should be a deliberate act.
Failure modes if you collapse them
- LLM edits raw → can’t trust sources anymore (silent drift).
- Schema lives in chat history → next session forgets the conventions, every wiki page drifts.
- No wiki layer → you’re back to RAG; nothing compounds.