Skip to content

fix(billing): consistently name the current subscription Omi Pro - #24367

Merged
kodjima33 merged 1 commit into
mainfrom
fix/shopify-code-onboarding-20261102
Nov 2, 2026
Merged

kodjima33 merged 1 commit into
mainfrom
fix/shopify-code-onboarding-20261102

Conversation

@kodjima33

@kodjima33 kodjima33 commented Nov 2, 2026 •

Copy link
Copy Markdown
Collaborator

Current Omi Pro subscriptions still receive the retired Unlimited label from the backend catalog and two admin reporting mappings. Use Omi Pro consistently, regenerate the canonical catalog projection, and retain existing billed IDs and entitlements.

Validation: 71 backend subscription/catalog tests and 49 admin service tests passed. Catalog compatibility/freshness checks and make preflight passed. Mobile and web customer-facing name helpers already render Omi Pro. Stripe's current product name was independently corrected and read back in production; this PR carries the matching source labels.

Failure-Class: none

This is a display-name correction. It does not alter billing, permissions, prices, checkout flow, or plan identifiers.

View guided diff Turn on auto-fix

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

1 issue found across 7 files

Confidence score: 3/5

  • The catalog rename leaves plan_name() resolving unlimited_v2 as “Unlimited” from storefront_copy_v1.json, so offer and current-subscription responses can show inconsistent plan names. Update the v2 storefront copy to match the catalog.
Prompt for AI agents (unresolved issues)

Check if these issues are valid — if so, understand the root cause of each and fix them. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. If appropriate, use sub-agents to investigate and fix each issue separately.


<file name="backend/config/plan_catalog.json">

<violation number="1" location="backend/config/plan_catalog.json:482">
P1: This catalog rename does not update the v2 storefront: `plan_name()` still resolves `unlimited_v2` to `Unlimited` from `storefront_copy_v1.json`, so offer and current-subscription responses remain inconsistent. Update that override to `Omi Pro` as part of this change.</violation>
</file>

Reply with feedback, questions, or to request a fix.

View guided diff | Turn on auto-fix | Re-trigger cubic

{
"id": "unlimited_v2",
"display_name": "Unlimited",
"display_name": "Omi Pro",

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1: This catalog rename does not update the v2 storefront: plan_name() still resolves unlimited_v2 to Unlimited from storefront_copy_v1.json, so offer and current-subscription responses remain inconsistent. Update that override to Omi Pro as part of this change.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. At backend/config/plan_catalog.json, line 482:

<comment>This catalog rename does not update the v2 storefront: `plan_name()` still resolves `unlimited_v2` to `Unlimited` from `storefront_copy_v1.json`, so offer and current-subscription responses remain inconsistent. Update that override to `Omi Pro` as part of this change.</comment>

<file context>
@@ -479,7 +479,7 @@
     {
       "id": "unlimited_v2",
-      "display_name": "Unlimited",
+      "display_name": "Omi Pro",
       "wire_aliases": [],
       "wire_fallback_plan": "unlimited",
</file context>

@kodjima33
kodjima33 merged commit 60bf90f into main Nov 2, 2026
64 checks passed
@kodjima33
kodjima33 deleted the fix/shopify-code-onboarding-20261102 branch November 2, 2026 08:33
Git-on-my-level added a commit that referenced this pull request Nov 2, 2026
…ame (#24378)

Backend shard 4 rejects #24367's approved Unlimited → Omi Pro display
rename because the legacy entitlement snapshot includes
`definition.display_name`. The complete catalog diff in that PR is
revision 12 → 13 and the `unlimited_v2` display name; its runtime change
is the matching plan-card title. No price identity, allocation, feature,
access rule, or billing behavior changed.

Keep the original historical golden untouched and apply only the exact
`unlimited_v2` / Unlimited → Omi Pro rename to the expected snapshot.
The byte comparison still pins all fields, including the new display
name, and each price's runtime resolver policy is compared against the
same adjusted expectation. Arbitrary display-name changes still fail.

Validation: `omi-heavy run -- nice -n 19 env
BACKEND_UNIT_TEST_FILE_LIST=<entitlement-tests.txt>
BACKEND_PYTEST_WORKERS=1 bash backend/test.sh` passed all 58
entitlement-version tests. A separate subscription-restructure shard
with `BACKEND_PYTEST_MARK_EXPR='not integration'` passed all 36 tests,
including the Omi Pro catalog title assertions. The complete standard
pre-push gate passed, including the shared repository preflight, catalog
compiler contract, Pyright, and the 58-test changed shard again. Luna
round 1 returned SHIP with no findings. Exact head
`2580a5913ebf0068a2694f0fda2c09f9197b28e9` reached terminal CI: 39
success, 25 skipped, 1 neutral in the full check rollup; no failures,
pending or cancelled checks. No reruns were needed. This changes tests
only; no endpoint or deployment is needed.

Failure-Class: none

This repairs a test expectation for an approved display-name change; it
changes no product behavior or entitlement contract and preserves the
complete legacy runtime snapshot guard.
Git-on-my-level added a commit that referenced this pull request Nov 2, 2026
#24367 bumped backend/config/plan_catalog.json to catalog_revision 13 and
left the storefront_v2 goldens at 12, so test_storefront_presentation
fails on main. Regenerated with UPDATE_STOREFRONT_GOLDENS=1; the only
change in all 52 files is catalog_revision 12 -> 13.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Git-on-my-level added a commit that referenced this pull request Nov 2, 2026
## What changed and why

Refresh storefront snapshots from catalog revision 12 to 13 after
#24367's approved Unlimited → Omi Pro display-name change. Update the
Flutter fixture consumer's matching revision assertion so the mirrored
fixtures keep parsing successfully.

All 52 fixture payloads differ only in `catalog_revision`; every price,
entitlement, policy and copy byte is unchanged. Add the required `kind:
none` mobile changelog fragment for this internal test correction.

## Product invariants affected

none

## How it was verified

- A recursive comparison of #24367's canonical catalog found exactly the
revision bump and display-name change. A separate byte audit pins every
fixture change to `catalog_revision: 12 → 13`, permitting only the
matching Dart assertion and internal-only fragment alongside it.
- `BACKEND_UNIT_TEST_FILE_LIST=<storefront-list>
BACKEND_PYTEST_WORKERS=4 bash backend/test.sh`: 345 passed.
- `flutter test --concurrency=1 test/models/plan_storefront_test.dart`:
19 passed.
- Local shard 4 was stopped after 65 files by the release coordinator's
explicit ruling; it found an unchanged cap-snapshot concurrency
assertion failure. Its one-worker retry through `backend/test.sh` passed
all 38 tests. No cap-hold code, assertions or timing budgets were
changed.
- Full backend proof is the exact-head six-shard CI run. All six passed
before the one-line Flutter assertion correction; the backend tree is
identical, and the final-head full run remains the merge gate.

Local tests ran serially through `omi-heavy` and `nice -n 19`. Normal
push hooks remain enabled.

## Tests

Existing regression checks: `test_golden_storefront_scenarios`,
`test_localized_storefront_goldens`, and the Flutter storefront model
suite. Complete payload, pricing, entitlement and parser rejection
assertions remain intact.

## UI evidence

UI-Evidence: none -- fixture metadata and a matching test assertion; no
runtime UI change.

## Failure class (fixes)

Failure-Class: none
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.

1 participant