Re-gate Team tier out of self-serve checkout (CEO directive: Team not rolled out)#245
Merged
Merged
Conversation
…nge (CEO directive)
The Team plan ($199 "unlimited") is NOT rolled out and must not be
marketable / claimable / chargeable until its unlimited-resource delivery
is PROVEN built. This reverses the 2026-05-29 (BIZ-1) change that enabled
Team checkout.
- billing.go: reject plan=team on both /billing/checkout and the in-app
plan-change path with a DISTINCT 400 `tier_not_yet_available` (not the
generic `invalid_plan`) so the UI/agents render "contact sales", not
"you made a typo". Self-serve-purchasable set is now exactly
{hobby, hobby_plus, pro}.
- registry-iterating test asserts team can never silently re-enter the
purchasable set (rule 18).
- openapi + plans.yaml: note Team is gated for rollout (no limit changes).
Refs: memory project_team_plan_not_rolled_out_no_payment,
docs/sessions/2026-06-04/TEAM-PLAN-GATE-AND-BUILD.md
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
74a6dd0 to
cac653a
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
HARD CEO directive (2026-06-04): the Team plan ($199 "unlimited") is NOT rolled out and must not be marketable / claimable / chargeable until its unlimited-resource delivery is PROVEN built. This PR reverses the 2026-05-29 (BIZ-1) change that had enabled Team self-serve checkout.
The forum audit (
docs/sessions/2026-06-04/TEAM-PLAN-GATE-AND-BUILD.md) found Team was reachable in checkout with only the external Razorpay block accidentally preventing charges — remove that block and Team was instantly buyable with zero code change. This closes the code-level hole.What
billing.go— rejectplan=teamon both/api/v1/billing/checkoutand the in-app plan-change path with a distinct400 tier_not_yet_available(not the genericinvalid_plan), so the dashboard/agents render "contact sales", not "you made a typo".TestCheckout_SelfServePurchasablePlans_AreExactlyHobbyHobbyPlusPro) so team can never silently re-enter the purchasable set (rule 18).openapi.go+openapi.snapshot.json+plans.yaml— note Team is gated for rollout (no limit changes).Tests
TestCreateCheckout_TeamPlan_Rejected,TestCheckout_SelfServePurchasablePlans_AreExactlyHobbyHobbyPlusPro,TestResidualChangePlan_TeamTier_Rejected(pass standalone) +TestCov2_Checkout_TeamTierRejected/TestCov2_Checkout_TeamTierYearlyRejected/TestCov2_ChangePlan_TeamTierRejected(DB-backed, run in CI). Localgo build+go vetgreen.Refs: memory
project_team_plan_not_rolled_out_no_payment.🤖 Generated with Claude Code