Prelude Documentation

Prelude v1.0 · Architecture

Logical components

Data flow

  1. Request hits Nginx → Fastify.
  2. Request context + rate limiting + license guard run before business logic.
  3. Decision route evaluates rules, persists outcome, returns ALLOW/BLOCK payload.
  4. Audit route retrieves persisted records read-only.

Persistence model

Single database schema (`schema.sql`) enforced with checksum at startup to prevent drift. No automatic migrations beyond this check.

Networking

All traffic terminates at TLS (port 443). HTTP (port 80) performs strict redirects. `api.precion.io` proxies to Fastify at `127.0.0.1:3000`.