Concepts

The architectural ideas behind KAOS.

Six load-bearing decisions that shape every package — how documents are typed, how source provenance survives a language-model call, how plans are written and re-used, how memory is partitioned, and which package can import which.

Six decisions, one architecture

Each concept feeds the others. The protocol-as-type-system shapes the runtime; the runtime is what carries the typed document tree; the document tree is what makes provenance survive an LLM call; the LLM call is what a recipe structures; recipes load into typed memory sections; and the layering law is what keeps every package above from leaking into every package below.

MCP-native protocol = type system Document AST one typed tree Provenance page · bbox · char_span Recipes plans named for legal work Memory 13 typed sections Layering one-way import graph KAOS architecture 18 packages · 14 servers · ~290 tools