From 51e8f5a2bef86171e95119878aa4c9a8dfa5d3ad Mon Sep 17 00:00:00 2001 From: Neil Date: Thu, 12 Nov 2026 11:25:16 -0800 Subject: [PATCH] chore(cloud): ENTITLEMENTS-ON dev billing serves the catalog + grants (ENTITLEMENTS_MODE=on) --- cloud/apps/billing/wrangler.dev.jsonc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cloud/apps/billing/wrangler.dev.jsonc b/cloud/apps/billing/wrangler.dev.jsonc index ce152b1e628..11d474bf1b7 100644 --- a/cloud/apps/billing/wrangler.dev.jsonc +++ b/cloud/apps/billing/wrangler.dev.jsonc @@ -25,10 +25,10 @@ "triggers": { "crons": ["*/10 * * * *"] }, "vars": { "BILLING_ENV": "dev", - // Plans & entitlements rollout (env.ts): 'shadow' serves the legacy terms and records every - // disagreement of the grant resolver in entitlement_shadow_diffs; 'on' once a full e2e run - // leaves that table empty. Needs migration 0008 and `tsx scripts/catalog-apply.ts --config wrangler.dev.jsonc`. - "ENTITLEMENTS_MODE": "shadow", + // Plans & entitlements (env.ts): 'on' serves the D1 catalog + grants. Switched from 'shadow' + // on 2026-11-12 after the Stripe TEST e2e (7/7 billing checks) left entitlement_shadow_diffs + // empty. Rollback: set 'shadow' (or 'off') and redeploy; no data change needed. + "ENTITLEMENTS_MODE": "on", "STRIPE_API_VERSION": "2025-09-30.clover", "STRIPE_METER_EVENT_NAME": "orca_sandbox_seconds", // Stripe TEST MODE objects in acct_1Or7xeKb73TzRkjk (scripts/stripe-test-setup.ts).