Skip to content

billing: revert memory tier prices to pre-10x rates#183

Merged
motatoes merged 2 commits intomainfrom
revert-10x-pricing
Apr 22, 2026
Merged

billing: revert memory tier prices to pre-10x rates#183
motatoes merged 2 commits intomainfrom
revert-10x-pricing

Conversation

@motatoes
Copy link
Copy Markdown
Contributor

Summary

  • Reverts the 10x price bump from billing: 10x memory tier prices + grandfather existing orgs #142 (c21f21e, 2026-04-15). All six entries in TierPricePerSecond are divided by 10, back to the per-second rates from the 2026-04-15 correction.
  • Bumps every TierPriceKey suffix one step (_v3 -> _v4 for most tiers, 8GB _v4 -> _v5) so EnsureProducts creates fresh Stripe Prices at the reverted rates on next boot.
  • Leaves migration 022 (orgs.price_locked) and the --force/--org flags on cmd/migrate-prices untouched — grandfathering for the 6 pre-2026-04-15 paying orgs continues to work as-is.

Reverted rates (USD/second)

Tier Memory / vCPU Before (10x) After (reverted) ~$/month
XXS 1GB / 1 vCPU 0.00001080246914 0.000001080246914 $2.80
XS 4GB / 1 vCPU 0.00005787037037 0.000005787037037 $15
S 8GB / 2 vCPU 0.0001350308642 0.00001350308642 $35
M 16GB / 4 vCPU 0.0002700617284 0.00002700617284 $70
L 32GB / 8 vCPU 0.001929012346 0.0001929012346 $500
XL 64GB / 16 vCPU 0.005401234568 0.0005401234568 $1400

After deploy

Run go run ./cmd/migrate-prices to move orgs that signed up at 10x between 2026-04-15 and today onto the reverted Prices. Default behavior targets price_locked=FALSE only, so grandfathered orgs stay put.

Test plan

  • Staging: boot server, confirm EnsureProducts logs creation of the new _v4/_v5 Prices in Stripe at the reverted unit amounts
  • Staging: new signup subscribes at the reverted rate (spot-check one tier in the Stripe dashboard)
  • Staging: run cmd/migrate-prices --dry-run and verify only non-locked 10x subscription items are listed
  • Staging: run cmd/migrate-prices for real, confirm items move to new Prices
  • Spot-check that the 6 grandfathered orgs (price_locked=TRUE) are skipped in the migrate-prices output

🤖 Generated with Claude Code

Reverts the 10x bump from c21f21e (2026-04-15). TierPricePerSecond is divided
by 10 across all six tiers, back to the rates established by the per-second
correction earlier the same day.

TierPriceKey suffixes are bumped one step (_v3 -> _v4 for most tiers, 8GB
_v4 -> _v5) so EnsureProducts creates fresh Stripe Prices at the reverted
rates. Existing 10x subscribers are migrated onto the new Prices via
cmd/migrate-prices after deploy (default behavior targets price_locked=FALSE,
so the 6 pre-2026-04-15 grandfathered orgs stay untouched).

Migration 022 and the --force/--org flags on cmd/migrate-prices are left
intact so grandfathering continues to work unchanged.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 22, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
opensandbox Ready Ready Preview, Comment Apr 22, 2026 8:16pm

Request Review

Those tiers stay available in code but we are not supporting them publicly
until a later date, so strip them from the elasticity page, the TypeScript
SDK reference, and the create-sandbox API reference (param descriptions,
allowed-values lists, and tier tables).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Copy link
Copy Markdown
Contributor

@breardon2011 breardon2011 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

approve

@motatoes motatoes merged commit 2499db1 into main Apr 22, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants