Deployment
Prerequisites
Section titled “Prerequisites”- Cloudflare Workers Paid plan (required for Durable Objects, Queues, D1)
- A GitHub personal access token with
reposcope - Wrangler CLI authenticated (
bunx wrangler login)
First Deployment
Section titled “First Deployment”Create D1 Database
Section titled “Create D1 Database”bunx wrangler@latest d1 create sentinel-dbUpdate wrangler.jsonc with the returned database_id.
Create R2 Bucket
Section titled “Create R2 Bucket”bunx wrangler@latest r2 bucket create sentinel-artifactsCreate Queues
Section titled “Create Queues”bunx wrangler@latest queues create sentinel-errors-detectedbunx wrangler@latest queues create sentinel-triage-readybunx wrangler@latest queues create sentinel-fix-readybunx wrangler@latest queues create sentinel-trace-externalbunx wrangler@latest queues create sentinel-completedbunx wrangler@latest queues create sentinel-dlqSet Secrets
Section titled “Set Secrets”bunx wrangler@latest secret put GITHUB_TOKENbunx wrangler@latest secret put ANTHROPIC_API_KEYInitialize Database Schema
Section titled “Initialize Database Schema”bunx wrangler@latest d1 execute sentinel-db --file=src/db/schema.sqlDeploy
Section titled “Deploy”bunx wrangler@latest deploySubsequent Deployments
Section titled “Subsequent Deployments”bunx wrangler@latest deployWrangler handles Durable Object migrations automatically based on the migration tags in wrangler.jsonc.
Verify Deployment
Section titled “Verify Deployment”curl https://sentinel.{your-subdomain}.workers.dev/api/healthExpected response:
{ "status": "ok", "startedAt": "2026-02-20T10:00:00Z" }Custom Domain
Section titled “Custom Domain”To use a custom domain, add a route in wrangler.jsonc:
"routes": [ { "pattern": "sentinel.example.com", "custom_domain": true }]Or configure via the Cloudflare dashboard under Workers → Triggers → Custom Domains.
Sandbox Container
Section titled “Sandbox Container”The Sandbox container image needs to be built and pushed before the SANDBOX binding can be enabled:
cd sandbox-imagedocker build -t sentinel-sandbox .Then update wrangler.jsonc to uncomment the containers binding and reference the image.
Monitoring
Section titled “Monitoring”After deployment, monitor via:
- Workers Observability — logs and traces for all agent executions
- Orchestrator API —
/api/statsfor aggregate metrics - D1 Console — direct SQL queries on the
sentinel-dbdatabase - R2 Dashboard — browse artifacts in the
sentinel-artifactsbucket