CLOUDFLARE WORKER KIT

CROWN Cloudflare Worker Architecture

This page documents the CROWN Cloudflare Worker path. Static mode works first. Worker mode adds shared records through D1, quick event cache through KV, and optional async processing through Queues.

Worker API

Routes `/api/crown/status`, `/api/crown/route`, `/api/crown/task`, `/api/crown/approval`, and `/api/crown/ledger`.

D1

Stores events, tasks, and approval receipts for shared operator review.

KV

Optional quick cache for recent events, routing receipts, and site status flags.

Queues

Optional async flow for digest generation, proof review, and cabinet handoff processing.

cd cloudflare-crown-operator
wrangler d1 migrations apply crown-site-operator
wrangler deploy
curl /api/crown/status
Do not connect external send actions until approval gates, auth, and audit retention are implemented.