yuzu

Data Architecture

The architect and sre agents load this document when designing schemas for new features. CLAUDE.md keeps a one-line pointer.

When building new features, design data schemas with downstream analytics in mind. The four data classes below are the integration surface; all other persistence is internal.

Response data

Audit events

Metrics

Inventory data

Storage substrate

Server-side stores live on PostgreSQL as of 2026-06-09 (ADR-0006); the agent stays on SQLite. New server stores default to Postgres, existing ones migrate incrementally behind per-store ADRs. ClickHouse (below) remains the analytics sink, fed separately — it is not the OLTP substrate. Schema designers: read docs/adr/0006-server-postgresql-substrate.md (and ADR-0004, its first instance) before adding a server store.

Cross-references