Linora

0022. API-first: one public versioned API, one op pipeline, generated types

Status: Accepted (2026-11-27)

Context

Everything (browser, MCP, scripts, future integrations) must go through one API that validates every op on the server. There must be no side path into the database or a document.

Decision

Alternatives

Consequences

Every feature ships as an API route or protocol message first; the UI and MCP consume it like any client. The API is documented by construction.