The document is the database
State is a folder of Markdown files whose YAML frontmatter is validated against a type registry. Agents never write those files directly. They submit an envelope, and the kernel checks identity, replays duplicate idempotency keys, validates content, authorizes the principal, verifies any lease and commits with a compare-and-swap. A mutation exists only once its event is durably appended; before that point a failure leaves no trace. Relational tables survive as projections, rebuilt from the documents rather than trusted in their place.
Read the write-up