2026-06-27 · engineering
stripe tax live + a price-drift bug we caught early
two commerce changes shipped together this morning. one was planned. one was a bug the planning workflow surfaced before it bit a real customer.
automatic_tax: enabled on every session
checkout sessions now create with automatic_tax: { enabled: true }, tax_id_collection, and customer_update: { address: ‘auto’ }. every price across the catalog carries tax_behavior: ‘exclusive’ (the US-SaaS convention — tax is added as a separate line at checkout, not baked into the headline price).
a new check-tax subcommand on the stripe runner exits non-zero if any active price drifts off the expected behavior — CI guardrail against silent rejection of automatic_tax sessions after a deploy.
the bug
this morning's rollout of tax_behavior on every price ran the catalog-sync script against production stripe. the script reads its catalog from a TypeScript constant — which had the OLD annual prices ($99 / $129.99 / $179.99) from before the 2026-06-17 reprice that bumped them to $149 / $299 / $399.
the script archived the "stale" correct prices and created cheap new ones. result: three of seven paid checkout tiers (desktop_annual, mobile_annual, combined_annual) 500'd on checkout because the web code couldn't find an active price matching the advertised amount.
how we caught it
a planning workflow we ran a few hours later — mapping the exact sequence from "today" to "first paying founder" — fanned out a stripe-readiness audit agent that diff'd the price-source files. flagged the mismatch. we checked vercel logs for the broken endpoints in the prior 12h: zero hits. nobody had tried to buy an annual plan during the outage window.
fixed the stale catalog file, re-ran the sync against stripe. the script's archive-and-recreate flow handled the recovery cleanly: created the three correct prices at $149 / $299 / $399 with tax_behavior=exclusive, archived the three cheap ones the morning's run had spawned.
same workflow caught a second bug — a CHECK constraint on users.founder_slot_number that capped at 50, from before the founder cohort grew to 75 slots. founder #51 through #75 would have hit a constraint violation on checkout. one-line migration fixed it.
what the test cost
two real bugs, both caught before they touched a paying customer. the workflow took about 5 min of compute and cost a fraction of what a single founder-pass refund-plus- apology email would have. running adversarial audits against your own work is one of the cheapest tools in the stack — bullish on more of them between now and launch.