Skip to content

An open-source, faster Devin alternative

TypeScript

Remove production configs and deploy workflows (work 097 step 6 scrub) (#1048)

opencomputer-app[bot]285dccfe1b10
diff --git a/.agents/done/dev-env-setup.md b/.agents/done/dev-env-setup.md
index 10200a2e..75ad9f32 100644
--- a/.agents/done/dev-env-setup.md
+++ b/.agents/done/dev-env-setup.md
@@ -12,7 +12,7 @@ behavior — e.g. the WorkOS hosted-logout flow, which the vite-local setup bypa
## Resources
-- Worker `opencomputer-api-edge-igor-dev` in **Mo's CF account** (`b8f23cb8`),
+- Worker `opencomputer-api-edge-igor-dev` in **Mo's CF account**,
URL `https://opencomputer-api-edge-igor-dev.mo-b8f.workers.dev`.
- D1 `opencomputer-igor-dev` (schema = `cloudflare-workers/schema.sql`).
- Backend: GCP dev box `34.181.232.88` (`deploy/gcp/deploy-qemu-dev.sh`).
diff --git a/.agents/done/sandbox-webhooks-rearchitecture.md b/.agents/done/sandbox-webhooks-rearchitecture.md
index 9b2cdcd2..f77c2232 100644
--- a/.agents/done/sandbox-webhooks-rearchitecture.md
+++ b/.agents/done/sandbox-webhooks-rearchitecture.md
@@ -324,29 +324,29 @@ ripping them out has no prod blast radius. Phasing:
## 9. Testing
We test the **real** path around the existing GCP dev box (`opensandbox-qemu-dev-igor`,
-34.181.232.88) by standing up a one-off, clearly-labeled `igor-dev` edge stack in **Mo's CF account
-`b8f23cb8`** (the local `CLOUDFLARE_API_TOKEN` is Mo's, so deploys work; the repo tomls' `1241f114`
-is stale/inaccessible — the dev tomls must set `account_id = b8f23cb8`). Tear down after, or leave —
+34.181.232.88) by standing up a one-off, clearly-labeled `igor-dev` edge stack in **Mo's CF
+account** (the local `CLOUDFLARE_API_TOKEN` is Mo's, so deploys work; the repo tomls' `1241f114`
+is stale/inaccessible — the dev tomls must target Mo's account). Tear down after, or leave —
everything is prefixed `…-igor-dev`. The path under test:
`client → api-edge-igor-dev → (mgmt→Svix; create→dev-box CP) → events:{cell} → events-ingest-igor-dev → Svix → sink`.
-### 9.1 Create in CF (Mo's account `b8f23cb8`)
+### 9.1 Create in CF (Mo's account)
1. **D1 `opencomputer-igor-dev`** — apply `cloudflare-workers/schema*.sql` + the new webhook-index
migration. Seed minimal rows: one `orgs` row; one `api_keys` row (`key_hash` = sha256 of a dev
API key); one `cells` row (`base_url = http://34.181.232.88:8080`, healthy) so api-edge can auth +
route create to the dev box.
2. **R2 `events-archive-igor-dev`**.
-3. **Worker `opencomputer-api-edge-igor-dev`** (`account_id b8f23cb8`) — bindings: D1 (above), KV
+3. **Worker `opencomputer-api-edge-igor-dev`** (Mo's account) — bindings: D1 (above), KV
sessions, DO `CREDIT_ACCOUNT` (self), R2. Secrets: `SESSION_JWT_SECRET`, `EVENT_SECRET`,
`SVIX_API_TOKEN`, `CF_ADMIN_SECRET` (WorkOS/Autumn left unset/stubbed — off the webhook path).
New code: `/api/webhooks*` management + `/internal/webhooks/register`.
-4. **Worker `opencomputer-events-ingest-igor-dev`** (`account_id b8f23cb8`) — **stripped**: bindings
+4. **Worker `opencomputer-events-ingest-igor-dev`** (Mo's account) — **stripped**: bindings
D1 + R2 + secrets only, **drop the `CREDIT_ACCOUNT` DO binding** (it's free-tier debit, off the
webhook path; without it `usage_tick` debit logs a harmless error in `waitUntil` and never blocks
the 202). This avoids needing api-edge's full DO/KV/WorkOS/Autumn/Stripe stack just to test
deliveries. Secrets: `EVENT_SECRET` (**must equal** the box's `OPENSANDBOX_CF_EVENT_SECRET`),
`SVIX_API_TOKEN`. New code: `SvixSink` + sync-handoff. (Confirmed Igor 2026-06-24: create resources
- in **Mo's account `b8f23cb8`**, prefix `…-igor-dev`; the local `CLOUDFLARE_API_TOKEN` is Mo's so
+ in **Mo's account**, prefix `…-igor-dev`; the local `CLOUDFLARE_API_TOKEN` is Mo's so
`wrangler` lands there.)
5. **Svix** — nothing to pre-create: apps are per-org-`uid`, created on demand by the mgmt API. The
one `SVIX_API_TOKEN` (`/tmp/svix_token`) suffices; dev uses dev org uids so apps don't collide
@@ -385,7 +385,7 @@ Delete the two workers + D1 + R2 (or leave, clearly labeled). Optionally delete
`uid` prefix.
### 9.6 Results (2026-06-24) — STOOD UP + PASSED
-Live stack in Mo's acct `b8f23cb87a7a6c64040d3134643da448`: D1 `opencomputer-igor-dev`
+Live stack in Mo's acct: D1 `opencomputer-igor-dev`
(`d5bbb12a-…`), R2 `events-archive-igor-dev`, workers `opencomputer-events-ingest-igor-dev` +
`opencomputer-api-edge-igor-dev` (dev tomls: `events-ingest/wrangler.igor-dev.toml`,
`api-edge/wrangler.igor-dev.toml`). Validated end-to-end against **real Svix Cloud**:
diff --git a/.agents/reference/dev-edge-setup.md b/.agents/reference/dev-edge-setup.md
index 6ce437fa..0c353614 100644
--- a/.agents/reference/dev-edge-setup.md
+++ b/.agents/reference/dev-edge-setup.md
@@ -25,7 +25,7 @@ on the WorkOS cookie. Don't mix them.
| Thing | Value |
|---|---|
-| CF account | **Mo's** — `b8f23cb87a7a6c64040d3134643da448` |
+| CF account | **Mo's** (`CLOUDFLARE_ACCOUNT_ID`; not in this repository) |
| Worker | `opencomputer-api-edge-igor-dev` (also the sandbox-webhooks e2e worker — one edge, all routes, like prod) |
| URL | `https://opencomputer-api-edge-igor-dev.mo-b8f.workers.dev` |
| Config | `cloudflare-workers/api-edge/wrangler.igor-dev.toml` |
@@ -84,7 +84,7 @@ pass `--config`.
- `EVENT_SECRET`, `SVIX_API_TOKEN` — webhooks e2e only (optional).
- The remaining Env secrets (Stripe/Autumn/etc.) are path-specific and unused
by the dashboard/auth path — leave unset.
-3. **Build + stage the SPA** (mirrors `.github/workflows/deploy-api-edge.yml`):
+3. **Build + stage the SPA** (as the production build does):
```
cd web && npm run build
rm -rf cloudflare-workers/api-edge/assets \
diff --git a/.github/workflows/apply-d1-migrations.yml b/.github/workflows/apply-d1-migrations.yml
deleted file mode 100644
index cd14e609..00000000
--- a/.github/workflows/apply-d1-migrations.yml
+++ /dev/null
@@ -1,89 +0,0 @@
-name: Apply D1 Migrations
-
-on:
- workflow_dispatch:
- inputs:
- action:
- description: 'Migration action'
- required: true
- default: 'list'
- type: choice
- options:
- - list
- - apply
-
-concurrency:
- group: apply-d1-migrations-prod
- cancel-in-progress: false
-
-jobs:
- migrations:
- name: D1 migrations
- runs-on: ubuntu-latest
- permissions:
- contents: read
- steps:
- - uses: actions/checkout@v4
-
- - uses: actions/setup-node@v4
- with:
- node-version: '22'
-
- - name: Resolve prod target
- id: target
- run: |
- echo "config=wrangler.prod.toml" >> "$GITHUB_OUTPUT"
- echo "database=OPENCOMPUTER_DB" >> "$GITHUB_OUTPUT"
-
- - name: Install api-edge dependencies
- working-directory: cloudflare-workers/api-edge
- run: npm ci
-
- - name: Prepare CI Wrangler config
- working-directory: cloudflare-workers/api-edge
- run: |
- python3 - <<'PY'
- from pathlib import Path
-
- src = Path("${{ steps.target.outputs.config }}")
- dst = Path("wrangler.ci.toml")
- lines = src.read_text().splitlines()
-
- out = []
- skipping_routes = False
- for line in lines:
- if line.startswith("routes = ["):
- skipping_routes = True
- continue
- if skipping_routes:
- if line.strip() == "]":
- skipping_routes = False
- continue
- out.append(line)
-
- dst.write_text("\n".join(out).rstrip() + "\n")
- PY
-
- - name: List pending D1 migrations
- if: inputs.action == 'list'
- working-directory: cloudflare-workers/api-edge
- env:
- CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
- run: |
- if [ -z "$CLOUDFLARE_API_TOKEN" ]; then
- echo "CLOUDFLARE_API_TOKEN GitHub secret is required for Wrangler D1 migrations" >&2
- exit 1
- fi
- npx wrangler d1 migrations list "${{ steps.target.outputs.database }}" --remote -c wrangler.ci.toml
-
- - name: Apply pending D1 migrations
- if: inputs.action == 'apply'
- working-directory: cloudflare-workers/api-edge
- env:
- CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
- run: |
- if [ -z "$CLOUDFLARE_API_TOKEN" ]; then
- echo "CLOUDFLARE_API_TOKEN GitHub secret is required for Wrangler D1 migrations" >&2
- exit 1
- fi
- npx wrangler d1 migrations apply "${{ steps.target.outputs.database }}" --remote -c wrangler.ci.toml
diff --git a/.github/workflows/deploy-api-edge.yml b/.github/workflows/deploy-api-edge.yml
deleted file mode 100644
index 0bb08f17..00000000
--- a/.github/workflows/deploy-api-edge.yml
+++ /dev/null
@@ -1,129 +0,0 @@
-name: Deploy API Edge
-
-# Production deploys of api-edge now run from diggerhq/opencomputer-deploy
-# (work 097 Track H). The push trigger is gone; manual dispatch stays for the
-# rollback window and goes with this file once the cutover has held.
-on:
- workflow_dispatch:
-
-concurrency:
- group: deploy-api-edge
- cancel-in-progress: false
-
-jobs:
- deploy:
- name: Deploy API Edge
- runs-on: ubuntu-latest
- permissions:
- contents: read
- steps:
- - uses: actions/checkout@v4
-
- - uses: actions/setup-node@v4
- with:
- node-version: '22'
-
- - name: Resolve target
- id: target
- run: |
- echo "config=wrangler.prod.toml" >> "$GITHUB_OUTPUT"
- echo "database=OPENCOMPUTER_DB" >> "$GITHUB_OUTPUT"
- echo "name=opencomputer-edge-prod" >> "$GITHUB_OUTPUT"
-
- - name: Build dashboard assets
- working-directory: web
- env:
- VITE_PUBLIC_POSTHOG_PROJECT_TOKEN: ${{ secrets.POSTHOG_PROJECT_TOKEN }}
- VITE_PUBLIC_POSTHOG_HOST: ${{ secrets.POSTHOG_HOST }}
- run: |
- npm ci
- npm run build
-
- - name: Stage dashboard assets for Worker
- run: |
- rm -rf cloudflare-workers/api-edge/assets
- mkdir -p cloudflare-workers/api-edge/assets
- cp -R web/dist/. cloudflare-workers/api-edge/assets/
-
- - name: Install api-edge dependencies
- working-directory: cloudflare-workers/api-edge
- run: npm ci
-
- - name: Test api-edge
- working-directory: cloudflare-workers/api-edge
- run: |
- npm test -- --run
- npx tsc --noEmit
-
- - name: Prepare CI deploy config
- working-directory: cloudflare-workers/api-edge
- run: |
- python3 - <<'PY'
- from pathlib import Path
-
- src = Path("${{ steps.target.outputs.config }}")
- dst = Path("wrangler.ci.toml")
- lines = src.read_text().splitlines()
-
- out = []
- skipping_routes = False
- for line in lines:
- if line.startswith("routes = ["):
- skipping_routes = True
- continue
- if skipping_routes:
- if line.strip() == "]":
- skipping_routes = False
- continue
- out.append(line)
-
- dst.write_text("\n".join(out).rstrip() + "\n")
- PY
-
- - name: Apply D1 migrations
- working-directory: cloudflare-workers/api-edge
- env:
- CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
- run: |
- if [ -z "$CLOUDFLARE_API_TOKEN" ]; then
- echo "CLOUDFLARE_API_TOKEN GitHub secret is required for Wrangler D1 migrations" >&2
- exit 1
- fi
- npx wrangler d1 migrations apply "${{ steps.target.outputs.database }}" --remote -c wrangler.ci.toml
-
- - name: Deploy ${{ steps.target.outputs.name }}
- working-directory: cloudflare-workers/api-edge
- env:
- CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
- OC_MANAGED_CRED_HMAC_SECRET: ${{ secrets.OC_MANAGED_CRED_HMAC_SECRET }}
- AGENT_RUNTIME_USAGE_HMAC_SECRET: ${{ secrets.AGENT_RUNTIME_USAGE_HMAC_SECRET }}
- # Optional (lifecycle email, src/loops.ts): pushed only when set, so
- # an unset GitHub secret leaves the worker's value alone.
- LOOPS_API_KEY: ${{ secrets.LOOPS_API_KEY }}
- LOOPS_EXCLUDE_EMAILS: ${{ secrets.LOOPS_EXCLUDE_EMAILS }}
- # Optional (Slack Connect per signup, src/slack_connect.ts): same rule.
- SLACK_CONNECT_TOKEN: ${{ secrets.SLACK_CONNECT_TOKEN }}
- run: |
- if [ -z "$CLOUDFLARE_API_TOKEN" ]; then
- echo "CLOUDFLARE_API_TOKEN GitHub secret is required for Wrangler deploys" >&2
- exit 1
- fi
- : "${OC_MANAGED_CRED_HMAC_SECRET:?missing OC_MANAGED_CRED_HMAC_SECRET}"
- : "${AGENT_RUNTIME_USAGE_HMAC_SECRET:?missing AGENT_RUNTIME_USAGE_HMAC_SECRET}"
- umask 077
- jq -n \
- --arg managedCredential "$OC_MANAGED_CRED_HMAC_SECRET" \
- --arg runtimeUsage "$AGENT_RUNTIME_USAGE_HMAC_SECRET" \
- --arg loopsKey "$LOOPS_API_KEY" \
- --arg loopsExclude "$LOOPS_EXCLUDE_EMAILS" \
- --arg slackConnect "$SLACK_CONNECT_TOKEN" \
- '{OC_MANAGED_CRED_HMAC_SECRET: $managedCredential, AGENT_RUNTIME_USAGE_HMAC_SECRET: $runtimeUsage}
- + (if $loopsKey == "" then {} else {LOOPS_API_KEY: $loopsKey} end)
- + (if $loopsExclude == "" then {} else {LOOPS_EXCLUDE_EMAILS: $loopsExclude} end)
- + (if $slackConnect == "" then {} else {SLACK_CONNECT_TOKEN: $slackConnect} end)' \
- > "$RUNNER_TEMP/api-edge-secrets.json"
- npx wrangler deploy \
- -c wrangler.ci.toml \
- --keep-vars \
- --strict \
- --secrets-file "$RUNNER_TEMP/api-edge-secrets.json"
diff --git a/.github/workflows/deploy-log-tail.yml b/.github/workflows/deploy-log-tail.yml
deleted file mode 100644
index c3f0273d..00000000
--- a/.github/workflows/deploy-log-tail.yml
+++ /dev/null
@@ -1,51 +0,0 @@
-name: Deploy log tail
-
-# The collector receives every console line and exception from the API edge
-# Worker and forwards them to Axiom, redacting webhook credentials on the way.
-#
-# Production deploys of opencomputer-log-tail-prod no longer run from this
-# repository on push (work 097 step 2). This manual trigger stays only for
-# the rollback window and is removed afterwards.
-
-on:
- workflow_dispatch:
-
-concurrency:
- group: deploy-log-tail
- cancel-in-progress: false
-
-jobs:
- deploy:
- name: Deploy log tail
- runs-on: ubuntu-latest
- permissions:
- contents: read
- defaults:
- run:
- working-directory: cloudflare-workers/log-tail
- steps:
- - uses: actions/checkout@v4
-
- - uses: actions/setup-node@v4
- with:
- node-version: '22'
- cache: npm
- cache-dependency-path: cloudflare-workers/log-tail/package-lock.json
-
- - name: Install
- run: npm ci
-
- - name: Test
- run: npm test
-
- - name: Deploy opencomputer-log-tail-prod
- env:
- CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
- run: |
- if [ -z "$CLOUDFLARE_API_TOKEN" ]; then
- echo "CLOUDFLARE_API_TOKEN GitHub secret is required for Wrangler deploys" >&2
- exit 1
- fi
- # AXIOM_TOKEN is a Worker secret set once with `wrangler secret put`;
- # --keep-vars leaves it and any dashboard-set vars in place.
- npm run deploy:prod
diff --git a/cloudflare-workers/api-edge/migrations/README.md b/cloudflare-workers/api-edge/migrations/README.md
index e83cffdf..054ca8b8 100644
--- a/cloudflare-workers/api-edge/migrations/README.md
+++ b/cloudflare-workers/api-edge/migrations/README.md
@@ -9,16 +9,10 @@ are never applied by Wrangler migrations.
## Existing databases
Do not apply `../schema-snapshots/current_schema.sql` to the existing prod database.
-For prod, use the Wrangler migration ledger:
-
-```bash
-cd cloudflare-workers/api-edge
-npx wrangler d1 migrations list opencomputer-prod --remote -c wrangler.prod.toml
-npx wrangler d1 migrations apply opencomputer-prod --remote -c wrangler.prod.toml
-```
-
-The API edge deploy workflow applies pending prod migrations before deploying
-the prod Worker.
+Prod migrations are listed and applied from the private deploy repository
+(`diggerhq/opencomputer-deploy`, `d1-migrations.yml`), which holds the prod
+config. A prod deploy there fails while a migration is pending, except purely
+additive ones, which it applies first.
## Fresh databases
diff --git a/cloudflare-workers/api-edge/wrangler.igor-dev.toml b/cloudflare-workers/api-edge/wrangler.igor-dev.toml
index 8d372683..f1b1fe18 100644
--- a/cloudflare-workers/api-edge/wrangler.igor-dev.toml
+++ b/cloudflare-workers/api-edge/wrangler.igor-dev.toml
@@ -1,4 +1,4 @@
-# api-edge — `igor-dev` personal dev edge in **Mo's CF account (b8f23cb8)**.
+# api-edge — `igor-dev` personal dev edge in **Mo's CF account**.
# A prod-mirror of the api-edge Worker sitting in front of Igor's GCP dev box:
# one worker that serves the dashboard SPA from [assets] AND handles /auth
# (WorkOS) + /api/dashboard (edge-native, read from D1) — the
@@ -27,7 +27,8 @@ name = "opencomputer-api-edge-igor-dev"
main = "src/index.ts"
compatibility_date = "2026-04-28"
compatibility_flags = ["nodejs_compat"]
-account_id = "b8f23cb87a7a6c64040d3134643da448"
+# No account_id: set CLOUDFLARE_ACCOUNT_ID to Mo's account (kept out of this
+# public repository).
# Dashboard SPA assets (built from web/, staged into ./assets — gitignored).
# Worker runs first on every request, handles /api,/auth,/webhooks, then falls
diff --git a/cloudflare-workers/api-edge/wrangler.prod.toml b/cloudflare-workers/api-edge/wrangler.prod.toml
deleted file mode 100644
index 2e6d47b0..00000000
--- a/cloudflare-workers/api-edge/wrangler.prod.toml
+++ /dev/null
@@ -1,167 +0,0 @@
-# api-edge Worker — PROD on opencomputer.dev zone.
-# Mirrors wrangler.toml (dev) but targets Mo's CF account.
-# Deploy: `wrangler deploy -c wrangler.prod.toml`
-#
-# Final cutover hostname will be app.opencomputer.dev; during parallel run
-# we serve at app2.opencomputer.dev so the legacy app at opencomputer.dev
-# (opencomputer-site-v1 worker) keeps serving.
-
-name = "opencomputer-edge-prod"
-main = "src/index.ts"
-compatibility_date = "2026-04-28"
-compatibility_flags = ["nodejs_compat"]
-account_id = "b8f23cb87a7a6c64040d3134643da448"
-
-# The deployed version on computer-API telemetry (work 084). The optional
-# TINYBIRD_API_URL and TINYBIRD_APPEND_TOKEN secrets switch it on; unset, the
-# edge sends nothing.
-[version_metadata]
-binding = "CF_VERSION_METADATA"
-
-# Workers Logs: without this, exceptions behind a Cloudflare 1101 Ray ID are
-# only visible to a live `wrangler tail`.
-[observability]
-enabled = true
-head_sampling_rate = 1
-
-# Static assets — the dashboard SPA. Built from `web/` by the deploy script.
-[assets]
-directory = "./assets"
-binding = "ASSETS"
-not_found_handling = "single-page-application"
-run_worker_first = true
-
-[[d1_databases]]
-binding = "OPENCOMPUTER_DB"
-database_name = "opencomputer-prod"
-database_id = "8329e0f0-100d-445a-bf89-95c065f15dbb"
-migrations_dir = "migrations"
-
-# blue's managed-agent session index (session_creations), read by the activation
-# alert (src/slack_alerts.ts, work 090). Read-only here: its schema and
-# migrations belong to blue, so no migrations_dir.
-[[d1_databases]]
-binding = "SERVERLESS_AGENTS_DB"
-database_name = "serverless-agents"
-database_id = "dae08738-fc29-4ad3-acd1-138944aabc9e"
-
-[[kv_namespaces]]
-binding = "SESSIONS_KV"
-id = "b496f905ce634f94b6ac1d4f619825e0"
-
-[[ratelimits]]
-name = "CLI_AUTH_START_RATE_LIMIT"
-namespace_id = "2026072401"
-
- [ratelimits.simple]
- limit = 30
- period = 60
-
-[[ratelimits]]
-name = "CLI_AUTH_EXCHANGE_RATE_LIMIT"
-namespace_id = "2026072402"
-
- [ratelimits.simple]
- limit = 180
- period = 60
-
-# Public CLI connect (work 082): per IP, ahead of blue.
-[[ratelimits]]
-name = "COMPUTER_CONNECT_RATE_LIMIT"
-namespace_id = "2026102301"
-
- [ratelimits.simple]
- limit = 20
- period = 60
-
-# Computer API (work 084): HTTP calls per API key, ahead of blue.
-[[ratelimits]]
-name = "COMPUTER_API_RATE_LIMIT"
-namespace_id = "2026102601"
-
- [ratelimits.simple]
- limit = 600
- period = 60
-
-[[durable_objects.bindings]]
-name = "CREDIT_ACCOUNT"
-class_name = "CreditAccount"
-script_name = "opencomputer-edge-prod"
-
-[[migrations]]
-tag = "v1"
-new_sqlite_classes = ["CreditAccount"]
-
-[[migrations]]
-tag = "v2"
-new_sqlite_classes = ["PoolStock"]
-
-# PoolStock is now an empty stub, kept exported because of v2; nothing binds it.
-[[migrations]]
-tag = "v3"
-new_sqlite_classes = ["VmSession"]
-
-# v4 removes the edge-local VmSession class — it moved to the vm-do worker
-# (cloudflare-workers/vm-do). Safe to delete: VmSession keeps no
-# durable state, only live sockets, and hosts redial the new namespace within
-# ~1s of the cutover deploy.
-[[migrations]]
-tag = "v4"
-deleted_classes = ["VmSession"]
-
-# Secrets (set via `wrangler secret put --config wrangler.prod.toml`):
-# SESSION_JWT_SECRET — fresh prod HMAC (DO NOT reuse dev secret)
-# CF_ADMIN_SECRET — fresh prod HMAC for the /internal/* admin routes
-# STRIPE_WEBHOOK_SECRET — Stripe LIVE mode webhook signing secret
-# STRIPE_API_KEY — Stripe LIVE mode API key (sk_live_...)
-# WORKOS_API_KEY — prod WorkOS app API key
-# WORKOS_CLIENT_ID — prod WorkOS client identifier
-# EVENT_SECRET — fresh prod HMAC for /internal/autumn-* callers
-# OPENROUTER_PROVISIONING_KEY — OpenRouter MANAGEMENT/provisioning key (mints
-# per-org inference keys + reads analytics). Token
-# billing dormant until this is set. (token-billing.md)
-# OC_MANAGED_CRED_HMAC_SECRET — dedicated HMAC for handing a minted OR key to
-# the managed agents backend (shared only with it; NOT the
-# generic internal-auth — this route carries a live key)
-# OC_MANAGED_AGENTS_SECRET — dedicated HS256 secret shared only with the
-# managed-agents backend
-# AGENT_FEEDBACK_TRIAGE_TOKEN — bearer token for the feedback.now triage
-# routes (src/agent_feedback.ts); submission works
-# without it
-# LINEAR_API_KEY / LINEAR_TEAM_ID (+ optional LINEAR_PROJECT_ID var) —
-# when set, each new agent-feedback report opens a
-# Linear issue. Off when unset.
-# LOOPS_API_KEY — lifecycle email through Loops (src/loops.ts,
-# serverless-agents-ws 088). Off when unset.
-# LOOPS_EXCLUDE_EMAILS — comma-separated addresses or @domains that never
-# get lifecycle email (internal accounts).
-# Optional vars: OPENROUTER_BASE_URL (default https://openrouter.ai/api/v1),
-# OPENROUTER_MARKUP_BPS (env-default markup; per-org orgs.model_markup_bps wins).
-
-# Edge-native autumn billing: every 5 min, meter autumn orgs' usage_samples to
-# Autumn + halt on exhaustion (src/autumn_meter.ts). One place, not per-cell.
-# No-ops unless AUTUMN_SECRET_KEY is set, so it's dormant until cutover.
-[triggers]
-crons = ["*/5 * * * *"]
-
-[vars]
-WORKER_ENV = "prod"
-# Computer rollout (work 052): only the organizations listed (comma-separated
-# ids) see their computer until COMPUTER_ENABLED_FOR_ALL is "true".
-COMPUTER_ENABLED_FOR_ALL = "true"
-COMPUTER_ENABLED_ORGS = "be0cf06f-ef75-400a-851c-bfd1507a666e"
-# Slack Connect per signup (slack_connect.ts): users created from 2026-10-28
-# 00:00 UTC get a channel with utpal, Mo and Igor. Dormant until the
-# SLACK_CONNECT_TOKEN secret is set.
-SLACK_CONNECT_SINCE = "1793145600"
-SLACK_CONNECT_TEAM_USER_IDS = "U06G42NTEK1,U06GFN8DJ7P,U06H7D98X40"
-# Customer alerts (slack_alerts.ts, work 090), posted by the same Slack app
-# (needs chat:write and membership of the channel). SLACK_ALERT_CHANNELS
-# (`kind=channel,...`) moves a kind elsewhere, e.g. revenue alerts; credit
-# purchases alert from SLACK_ALERT_CREDITS_MIN dollars (default 100).
-SIGNUPS_SLACK_CHANNEL = "#signups"
-MANAGED_AGENTS_API_URL = "https://managedagents.opencomputer.dev"
-
-# Ship Worker logs to opencomputer-log-tail-prod → Axiom dataset cf-prod.
-[[tail_consumers]]
-service = "opencomputer-log-tail-prod"
diff --git a/cloudflare-workers/api-edge/wrangler.toml b/cloudflare-workers/api-edge/wrangler.toml
index e9c90e3d..1d509aa4 100644
--- a/cloudflare-workers/api-edge/wrangler.toml
+++ b/cloudflare-workers/api-edge/wrangler.toml
@@ -144,7 +144,8 @@ crons = ["*/5 * * * *"]
[vars]
WORKER_ENV = "dev"
-# Computer rollout (work 052); see wrangler.prod.toml.
+# Computer rollout (work 052): only the organizations listed (comma-separated
+# ids) see their computer until COMPUTER_ENABLED_FOR_ALL is "true".
COMPUTER_ENABLED_FOR_ALL = "false"
COMPUTER_ENABLED_ORGS = ""
MANAGED_AGENTS_API_URL = "https://managedagents.opencomputer.dev"
diff --git a/cloudflare-workers/log-tail/package.json b/cloudflare-workers/log-tail/package.json
index 0ceed392..15393eb2 100644
--- a/cloudflare-workers/log-tail/package.json
+++ b/cloudflare-workers/log-tail/package.json
@@ -7,7 +7,6 @@
"engines": { "node": ">=22.6" },
"scripts": {
"test": "node --test --experimental-strip-types src/index.test.ts",
- "deploy:prod": "wrangler deploy -c wrangler.prod.toml --keep-vars",
"deploy:dev": "wrangler deploy -c wrangler.toml --keep-vars"
},
"devDependencies": {
diff --git a/cloudflare-workers/log-tail/wrangler.prod.toml b/cloudflare-workers/log-tail/wrangler.prod.toml
deleted file mode 100644
index a859c9cf..00000000
--- a/cloudflare-workers/log-tail/wrangler.prod.toml
+++ /dev/null
@@ -1,27 +0,0 @@
-# log-tail Worker — PROD on Mo's CF account.
-# Tail consumer for opencomputer-edge-prod + opencomputer-events-ingest-prod.
-# Forwards console output + exceptions to Axiom dataset oc-platform-edge.
-# Deployed by .github/workflows/deploy-log-tail.yml on push to main; manually:
-# `npm run deploy:prod` (needs CLOUDFLARE_API_TOKEN for this account).
-
-name = "opencomputer-log-tail-prod"
-main = "src/index.ts"
-compatibility_date = "2024-12-01"
-account_id = "b8f23cb87a7a6c64040d3134643da448"
-workers_dev = false
-
-# Independent fallback for failures in the Axiom sink itself. Tenant/dispatch
-# logs go to Axiom; collector invocation failures remain searchable in the
-# Cloudflare Observability dashboard even when Axiom is unavailable.
-[observability]
-enabled = true
-
- [observability.logs]
- invocation_logs = true
- head_sampling_rate = 1
-
-# Secrets (set via `wrangler secret put --config wrangler.prod.toml`):
-# AXIOM_TOKEN — ingest-capable token scoped to the oc-platform-edge dataset
-[vars]
-AXIOM_HOST = "https://api.axiom.co"
-AXIOM_DATASET = "oc-platform-edge"