Files
chemenu/kb/concepts/architectures/Three-Layer Architecture.md
T
torben 7f74303a00
CI / verify (push) Successful in 52s
Release / release (push) Successful in 36s
kb/concepts/ bekommt Areas: layout: fuer concept, Area-Titel aus jedem Type-Spec, Schwellen-Empfehlung im lint (schliesst #59)
Files changed:
- CHANGES.md
- README.md
- VERSION
- kb/concepts/Ambient Environment Dependency.md
- kb/concepts/Anti-Cramming Heuristic.md
- kb/concepts/Audit Trail.md
- kb/concepts/BM25.md
- kb/concepts/Bulk Operations.md
- kb/concepts/CI Integration.md
- kb/concepts/COLLECTION.md
- kb/concepts/CPPC.md
- kb/concepts/Checkpoint Audit.md
- kb/concepts/Claude Code Auto Mode.md
- kb/concepts/Command Round-Trip Integrity.md
- kb/concepts/Confidence Scoring.md
- kb/concepts/Consolidation Tiers.md
- kb/concepts/Content Quality Control.md
- kb/concepts/Context Isolation.md
- kb/concepts/Contradiction Resolution.md
- kb/concepts/Cross-platform Agent Skills.md
- kb/concepts/Crystallization.md
- kb/concepts/Delete Rather Than Anonymize.md
- kb/concepts/Denylist over Allowlist.md
- kb/concepts/Detect-Repair Asymmetry.md
- kb/concepts/Diff-Reviewable Agent Edits.md
- kb/concepts/Dual Licensing by File Plan.md
- kb/concepts/Entity Extraction.md
- kb/concepts/Episodic Memory.md
- kb/concepts/Event-Driven Automation.md
- kb/concepts/Filter on Ingest.md
- kb/concepts/Forgetting.md
- kb/concepts/Graph Traversal.md
- kb/concepts/Green Suite Blind Spot.md
- kb/concepts/Hooks.md
- kb/concepts/Hybrid Search.md
- kb/concepts/INDEX.md
- kb/concepts/Implementation Spectrum.md
- kb/concepts/Index Scaling.md
- kb/concepts/Issue Label Scheme.md
- kb/concepts/Iteration and Cost Limits.md
- kb/concepts/KB Migration.md
- kb/concepts/KB Stack Versioning.md
- kb/concepts/Knowledge Compounding.md
- kb/concepts/Knowledge Graph.md
- kb/concepts/LLM Wiki Pattern.md
- kb/concepts/Lint Workflow.md
- kb/concepts/MCP-Leseserver.md
- kb/concepts/Mass-Update Gate.md
- kb/concepts/Memory Lifecycle.md
- kb/concepts/Mesh Sync.md
- kb/concepts/Modbus.md
- kb/concepts/Multi-Agent Collaboration.md
- kb/concepts/Naming Convention Conflict.md
- kb/concepts/OKF Compatibility.md
- kb/concepts/Optional Instance Context File.md
- kb/concepts/Personalization Plane.md
- kb/concepts/Privacy and Governance.md
- kb/concepts/Procedural Memory.md
- kb/concepts/Publish-Remote Gate.md
- kb/concepts/Quality Scoring.md
- kb/concepts/Quality and Self-Correction.md
- kb/concepts/RAG.md
- kb/concepts/Reciprocal Rank Fusion.md
- kb/concepts/SSD TRIM.md
- kb/concepts/Scale Ceiling.md
- kb/concepts/Self-Healing.md
- kb/concepts/Semantic Lint Automation.md
- kb/concepts/Semantic Memory.md
- kb/concepts/Session Orientation.md
- kb/concepts/Shared vs Private.md
- kb/concepts/Split Merge Reclassify.md
- kb/concepts/Split Threshold.md
- kb/concepts/Structural Enforcement over Documented Rule.md
- kb/concepts/Stub Threshold.md
- kb/concepts/Supersession.md
- kb/concepts/Three-Layer Architecture.md
- kb/concepts/Token Economics.md
- kb/concepts/Typed Relationships.md
- kb/concepts/User Management.md
- kb/concepts/Vector Search.md
- kb/concepts/Work Coordination.md
- kb/concepts/Workflow Extraction.md
- kb/concepts/Workflow Orchestration.md
- kb/concepts/Working Memory.md
- kb/concepts/Write-Once Frontmatter Fields.md
- kb/concepts/architectures/Consolidation Tiers.md
- kb/concepts/architectures/Context Isolation.md
- kb/concepts/architectures/Cross-platform Agent Skills.md
- kb/concepts/architectures/Episodic Memory.md
- kb/concepts/architectures/Hybrid Search.md
- kb/concepts/architectures/Implementation Spectrum.md
- kb/concepts/architectures/Knowledge Graph.md
- kb/concepts/architectures/LLM Wiki Pattern.md
- kb/concepts/architectures/MCP-Leseserver.md
- kb/concepts/architectures/Memory Lifecycle.md
- kb/concepts/architectures/OKF Compatibility.md
- kb/concepts/architectures/Optional Instance Context File.md
- kb/concepts/architectures/Personalization Plane.md
- kb/concepts/architectures/Procedural Memory.md
- kb/concepts/architectures/RAG.md
- kb/concepts/architectures/Scale Ceiling.md
- kb/concepts/architectures/Semantic Memory.md
- kb/concepts/architectures/Three-Layer Architecture.md
- kb/concepts/architectures/Token Economics.md
- kb/concepts/architectures/Working Memory.md
- kb/concepts/decisions/Delete Rather Than Anonymize.md
- kb/concepts/decisions/Denylist over Allowlist.md
- kb/concepts/decisions/Diff-Reviewable Agent Edits.md
- kb/concepts/decisions/Dual Licensing by File Plan.md
- kb/concepts/decisions/Issue Label Scheme.md
- kb/concepts/decisions/KB Stack Versioning.md
- kb/concepts/decisions/Structural Enforcement over Documented Rule.md
- kb/concepts/patterns/Audit Trail.md
- kb/concepts/patterns/BM25.md
- kb/concepts/patterns/Command Round-Trip Integrity.md
- kb/concepts/patterns/Confidence Scoring.md
- kb/concepts/patterns/Contradiction Resolution.md
- kb/concepts/patterns/Entity Extraction.md
- kb/concepts/patterns/Filter on Ingest.md
- kb/concepts/patterns/Forgetting.md
- kb/concepts/patterns/Graph Traversal.md
- kb/concepts/patterns/Mesh Sync.md
- kb/concepts/patterns/Quality Scoring.md
- kb/concepts/patterns/Reciprocal Rank Fusion.md
- kb/concepts/patterns/Self-Healing.md
- kb/concepts/patterns/Shared vs Private.md
- kb/concepts/patterns/Typed Relationships.md
- kb/concepts/patterns/Vector Search.md
- kb/concepts/patterns/Work Coordination.md
- kb/concepts/problems/Ambient Environment Dependency.md
- kb/concepts/problems/Detect-Repair Asymmetry.md
- kb/concepts/problems/Green Suite Blind Spot.md
- kb/concepts/problems/Naming Convention Conflict.md
- kb/concepts/problems/Write-Once Frontmatter Fields.md
- kb/concepts/protocols/CPPC.md
- kb/concepts/protocols/Modbus.md
- kb/concepts/protocols/SSD TRIM.md
- kb/concepts/workflows/Anti-Cramming Heuristic.md
- kb/concepts/workflows/Bulk Operations.md
- kb/concepts/workflows/CI Integration.md
- kb/concepts/workflows/Checkpoint Audit.md
- kb/concepts/workflows/Claude Code Auto Mode.md
- kb/concepts/workflows/Content Quality Control.md
- kb/concepts/workflows/Crystallization.md
- kb/concepts/workflows/Event-Driven Automation.md
- kb/concepts/workflows/Hooks.md
- kb/concepts/workflows/Index Scaling.md
- kb/concepts/workflows/Iteration and Cost Limits.md
- kb/concepts/workflows/KB Migration.md
- kb/concepts/workflows/Knowledge Compounding.md
- kb/concepts/workflows/Lint Workflow.md
- kb/concepts/workflows/Mass-Update Gate.md
- kb/concepts/workflows/Multi-Agent Collaboration.md
- kb/concepts/workflows/Privacy and Governance.md
- kb/concepts/workflows/Publish-Remote Gate.md
- kb/concepts/workflows/Quality and Self-Correction.md
- kb/concepts/workflows/Semantic Lint Automation.md
- kb/concepts/workflows/Session Orientation.md
- kb/concepts/workflows/Split Merge Reclassify.md
- kb/concepts/workflows/Split Threshold.md
- kb/concepts/workflows/Stub Threshold.md
- kb/concepts/workflows/Supersession.md
- kb/concepts/workflows/User Management.md
- kb/concepts/workflows/Workflow Extraction.md
- kb/concepts/workflows/Workflow Orchestration.md
- kb/index.md
- kb/log.md
- tools/CONTRACT.md
- tools/README.md
- tools/chemenu/catalog.py
- tools/chemenu/commands/index_build.py
- tools/chemenu/lint_core.py
- tools/chemenu/tests/conftest.py
- tools/chemenu/tests/test_cite_cmd.py
- tools/chemenu/tests/test_git_publish.py
- tools/chemenu/tests/test_index_build.py
- tools/chemenu/tests/test_lint.py
- tools/chemenu/tests/test_new_page.py
- tools/chemenu/tests/test_provenance.py
- tools/chemenu/tests/test_type_resolver.py
- tools/chemenu/tests/test_xref.py
- types/concept.md
- types/type-spec.md
2026-09-08 10:07:46 +02:00

10 KiB

type, concept_type, tags, created, modified, related, sources, confidence, confidence_base, provenance, summary
type concept_type tags created modified related sources confidence confidence_base provenance summary
types/concept.md architecture
llm-wiki
layers
structure
2026-07-26 2026-08-29
see-also
LLM Wiki Pattern
contrasts
RAG
composition
Memory Lifecycle
composition
Knowledge Graph
Source - LLM Wiki Pattern
Source - LLM Wiki v2
0.95 0.95 sourced Strukturmodell des LLM-Wiki-Musters mit drei Schichten: unveränderliche Rohquellen, vom LLM gepflegtes Wiki und Schemakonfiguration, die Knowledge Compounding trägt.

Three-Layer Architecture

Typ: Architecture (Foundation of LLM Wiki Pattern)

Definition

Die Three-Layer Architecture ist die strukturelle Grundlage des LLM Wiki Pattern, bestehend aus drei unterschiedlichen Schichten: Rohquellen, Das Wiki und Das Schema. Jede Schicht hat eine spezifische Rolle und behält Separation of Concerns bei um die Wissens-Kompoundierungs-Effekte des Patterns zu ermöglichen.

Kernpunkte

Schicht 1: Rohquellen

Zweck: Unveränderliche Quelle der Wahrheit

Merkmale:

  • Kuratierte Sammlung von Quelldokumenten
  • Read-only aus der Perspektive des LLM
  • Enthält: Artikel, Papiere, Bilder, Datendateien, Notizen, Spezifikationen
  • Niemals verändert durch das LLM
  • Human-verwaltet: Benutzer fügt Quellen hinzu und organisiert sie

Verzeichnis: raw/

Unterverzeichnisse:

  • raw/articles/ — Web-Artikel, Blog-Beiträge
  • raw/documents/ — PDFs, Spezifikationen, Handbücher
  • raw/notes/ — Persönliche Notizen, Besprechungstranskriptionen
  • raw/assets/ — Bilder, Diagramme, Binärdateien

Begründung:

  • Erhält Originalmaterial der Quelle
  • Stellt Audit-Trail zurück zu primären Quellen bereit
  • Ermöglicht Neuverarbeitung, wenn nötig
  • Benutzer behält Kontrolle über Quellenauswahl

Schicht 2: Das Wiki

Zweck: LLM-gepflegte Wissens-Synthese

Merkmale:

  • Verzeichnis von LLM-generierten Markdown-Dateien
  • Vollständig besessen und gepflegt durch das LLM
  • Human liest es; LLM schreibt es
  • Enthält: Zusammenfassungen, Entity-Seiten, Concept-Seiten, Vergleiche, Index, Log
  • Dynamisch aktualisiert, während neue Quellen ingested werden

Verzeichnis: kb/

Collections: Ein Verzeichnis unter kb/ ist eine Collection genau dann, wenn es eine COLLECTION.md trägt; ein Unterverzeichnis darin ist ein Bereich, der sie erbt.

  • kb/entities/ — Entity-Seiten (Projekte, Systeme, Tools, Technologien, Personen)
  • kb/concepts/ — Concept-Seiten (Architekturen, Patterns, Protokolle, Workflows)
  • kb/sources/ — Zusammenfassungen von ingested Quellen
  • kb/comparisons/ — Vergleichstabellen und Analysen
  • kb/CONTRACT.md — Regeln, die von jeder Collection geteilt werden
  • kb/index.md — Katalog aller Seiten
  • kb/log.md — Chronologisches Audit-Log

In diesem Repository wurde die Wiki-Schicht am 2026-08-21 von wiki/ zu kb/ umbenannt, wenn jedes seiner Unterverzeichnisse zu einer First-Class-Collection mit eigenem Contract befördert wurde. Eine vierte Phase, reports/, hält generierten Lint-Output außerhalb des Knowledge-Baums und ist gitignoriert.

Seitentypen:

  • Source-Seiten: Zusammenfassungen mit Metadaten, Kernpunkte, Aufgaben
  • Entity-Seiten: Strukturierte Informationen über spezifische Elemente
  • Concept-Seiten: Definitionen, Beispiele, wann zu verwenden
  • Vergleichs-Seiten: Nebeneinander-Analyse
  • Index: Content-oriented Katalog
  • Log: Chronologischer Betriebsdatensatz

Begründung:

  • Trennt synthetisiertes Wissen von Rohquellen
  • Ermöglicht Querverweise und Verbindungen
  • Erlaubt LLM Konsistenz zu wahren
  • Bietet Mensch-lesbare Struktur

Schicht 3: Das Schema

Zweck: Konfiguration und Betriebsanweisungen für das LLM

Merkmale:

  • Definiert wie das Wiki strukturiert ist
  • Dokumentiert Konventionen und Seitenformate
  • Spezifiziert Workflows (Ingest, Abfrage, Lint)
  • Co-entwickelt durch Mensch und LLM über Zeit
  • Normalerweise eine einzelne Konfigurationsdatei

Datei: AGENTS.md (oder CLAUDE.md für Claude Code)

Inhalt:

  • Verzeichnis-Struktur-Definitionen
  • Seitenformat-Templates
  • Workflow-Beschreibungen
  • Namenskonventionen
  • Qualitätsstandards
  • Wartungsplanung
  • Benutzereinstellungen

Begründung:

  • Macht LLM zu disziplinertem Wiki-Verwalter statt generischem Chatbot
  • Mensch und LLM arbeiten zusammen bei Schema-Entwicklung
  • Stellt Konsistenz über Sessions sicher
  • Dokumentiert das System für zukünftige Referenz

Architekturdiagramm

┌─────────────────────────────────────────────────────────────┐
│                      THREE-LAYER ARCHITECTURE                     │
├─────────────────────────────────────────────────────────────┤
│                                                                  │
│  ┌─────────────────┐    ┌─────────────────┐    ┌───────────┐ │
│  │  LAYER 1:       │    │  LAYER 2:       │    │ LAYER 3: │ │
│  │  Raw Sources    │───▶│  The Wiki       │◀───│ The      │ │
│  │                 │    │                 │    │ Schema   │ │
│  │  - Immutable    │    │  - LLM-maintained│    │          │ │
│  │  - Human-curated│    │  - Dynamic       │    │ - Config  │ │
│  │  - Source truth │    │  - Synthesized   │    │ - Workflows││
│  └─────────────────┘    └─────────────────┘    └───────────┘ │
│                                                                  │
│  User ↔ AGENTS.md (Layer 3) ↔ LLM ↔ Wiki (Layer 2) ← Raw (Layer 1)│
│                                                                  │
└─────────────────────────────────────────────────────────────┘

Datenfluss

Ingest-Ablauf

User adds file to raw/
       ↓
LLM reads source (Layer 1)
       ↓
LLM follows AGENTS.md instructions (Layer 3)
       ↓
LLM creates/updates pages in kb/ (Layer 2)
       ↓
LLM updates index.md and log.md

Abfrage-Ablauf

User asks question
       ↓
LLM reads index.md (Layer 2) to find relevant pages
       ↓
LLM reads relevant wiki pages (Layer 2)
       ↓
LLM follows cross-references
       ↓
LLM synthesizes answer with citations
       ↓
Valuable answers filed back into kb/ (Layer 2)

Vorteile dieser Architektur

Separation of Concerns

  • Rohquellen: Human-Verantwortung (Kurationen, Organisation)
  • Das Wiki: LLM-Verantwortung (Wartung, Querverweise)
  • Das Schema: Gemeinsame Verantwortung (Entwicklung, Verfeinerung)

Ermöglicht Wissens-Compounding

  • Rohquellen bleiben stabil für Neuverarbeitung
  • Wiki wächst und verbindet sich ohne Quellen zu ändern
  • Schema verbessert sich, wenn Mensch und LLM lernen, was funktioniert

Wartbarkeit

  • Klare Grenzen zwischen Schichten
  • Jede Schicht kann sich unabhängig entwickeln
  • Einfach zu debuggen und zu verstehen

Flexibilität

  • Funktioniert mit jedem LLM-Agent (Claude, Codex, etc.)
  • Anpassbar an verschiedene Domänen
  • Modulare Komponenten können ausgetauscht werden

Vergleich mit anderen Architekturen

Feature Three-Layer Traditional RAG Simple Wiki Database
Persistenz Ja Nein Ja Ja
Automatisierung LLM LLM Manuell Manuell
Querverweise Automatisch Nein Manuell Manuell
Quellen-Trennung Ja Teilweise Variiert Nein
Skalierbarkeit Hoch Mittel Niedrig Hoch

Implementierungshinweise

Für dieses Wiki

  • Schicht 1: raw/ Verzeichnis mit Artikeln, Notizen, usw.
  • Schicht 2: kb/ Verzeichnis mit allen generierten Inhalten
  • Schicht 3: AGENTS.md am Repository-Root

Anpassung an andere Domänen

  • Modifiziere Schema (Schicht 3) um Domänen-Konventionen zu erfüllen
  • Passe Entity/Concept-Typen im Wiki an (Schicht 2)
  • Quellen-Schicht (Schicht 1) bleibt weitgehend gleich

V2-Erweiterungen

Die ursprüngliche Three-Layer Architecture bleibt die Grundlage. Source - LLM Wiki v2 (siehe Source - LLM Wiki v2) addiert zusätzliche Schichten und Erweiterungen, die auf dieser Grundlage aufbauen:

Zusätzliche Schichten

Schicht 4: Knowledge Graph (Optional)

  • Strukturierte Darstellung von Entities und Beziehungen
  • Erweitert Schicht 2 (Das Wiki) mit Maschinen-lesbarer Struktur
  • Ermöglicht Graph-Traversal-Abfragen
  • Siehe: Knowledge Graph

Schicht 5: Memory Tiers (Optional)

  • Working Memory, Episodic Memory, Semantic Memory, Procedural Memory
  • Gestaffelte Speicherung mit verschiedenen Aufbewahrung und Zugriffsmuster
  • Siehe: Consolidation Tiers, Memory Lifecycle

Erweiterte Schichten

Erweiterte Schicht 2 (Das Wiki):

Erweiterte Schicht 3 (Das Schema):

Die Three-Layer Architecture bleibt gültig und ausreichend für viele Anwendungsfälle. Die v2-Erweiterungen sind optionale Verbesserungen, die nach Bedarf übernommen werden können (siehe Implementation Spectrum).

Geschichte

  • [1945] - Vannevar Bushs Memex-Konzept deutet auf gestaffelte Wissensverwaltung hin
  • [2023-2024] - LLM Wiki Pattern formalisiert Three-Layer Architecture
  • [2026-07-26] - Concept-Seite erstellt

Siehe auch

Beziehungen