"Codex BaaS scaffolding"

Codex BaaS scaffolding

Codex is the API and metadata SSOT on Turso. Large blobs (exports, weights, attachments) use an object storage trait (S3/R2-compatible), not a second relational engine.

Components (target)

  1. Codex API — Query/mutation routes, auth/tenant boundary, schema digest sync.
  2. Reactive layercodex_change_log + subscriptions (SSE/WebSocket); included in baseline DDL (manifest fragment v8).
  3. Skills registry — Backed by skill_manifests + CAS objects.
  4. Workflow runtime API — Journal from execution_log / future dedicated workflow tables.
  5. Object storage adapter — Metadata in Turso; bytes in R2/S3.

Deployment

Environment (canonical)

VariableRole
VOX_DB_URLTurso / libSQL remote URL
VOX_DB_TOKENAuth token (env only)
VOX_DB_PATHLocal file or replica local path

Optional object storage: R2_ACCOUNT_ID, R2_ACCESS_KEY_ID, R2_SECRET_ACCESS_KEY, R2_BUCKET_NAME, R2_PUBLIC_URL (documented when adapter lands).

HTTP contract