Three-layer architecture

The structural commitment behind the llm-wiki-pattern.

LayerOwned byMutable?This vault
Raw sourcesHuman (curates)Immutable to LLMraw/
WikiLLMLLM writes, human readswiki/
SchemaCo-evolvedBoth edit, deliberatelyCLAUDE.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.