ADR 0024: Prod is the only remote environment
Context
Section titled “Context”Each remote environment uses its own share of the account-wide free and included limits. The account shares these limits with other projects (ADR 0017).
Decision
Section titled “Decision”- Prod is the only remote environment. The Terraform root
infrastructure/terraform/envs/prodowns it. The Terraform rootenvs/globalowns the account-wide and zone-wide singletons. - Each Rhumbatron Cloudflare resource has the
-prodsuffix or is a singleton inenvs/global. - Local work uses the local servers (
bun run dev: Wrangler and Vite). - Each change passes the local checks first. Then Terraform deploys it to prod with this sequence:
bun run cf:bundlebun run tf:plan:prodbun run tf:apply:prodbun run tf:drift:prod
- Destroy-time teardowns exist for the Vectorize index, the Sandbox Worker and container
application, and the apps Worker. The K2 streams and the R2 evidence bucket have no destroy-time
deletion.
k2-sync.tsrefuses its destroy mode for prod streams.
Consequences
Section titled “Consequences”- One environment uses half of the account-wide limits that two environments use.
- Prod holds the Sandbox and Anthropic caps that ADR 0011 and ADR 0021 state.
- The binding drift check compares
wrangler.jsoncwith prod only. scripts/cleanup-projects.tstargets prod. It readsCLERK_SECRET_KEYandCLERK_SMOKE_USER_IDof the prod Clerk instance from the environment.- Critical tests prove each injected fault. The only fault path on prod is the release failure injection route. It needs the Project owner or an admin (ADR 0020).