Skip to content

feat(app): offer the trial at the first summary and at the free cap - #23762

Merged
kodjima33 merged 11 commits into
mainfrom
mux/2026-10-26-aha-trial-offer
Oct 29, 2026
Merged

kodjima33 merged 11 commits into
mainfrom
mux/2026-10-26-aha-trial-offer

Conversation

@kodjima33

@kodjima33 kodjima33 commented Oct 27, 2026 •

Copy link
Copy Markdown
Collaborator

Nik approved this ship on 2026-10-27. Refreshed 2026-10-29 on main @ d60cd2eab6 (includes #23921 "Processing paused" Upgrade and #23924 Daily Recaps hidden by default).

Problem

Free Omi owners are asked to pay at the wrong moment, or never.

  • 64% of free active owners (2,580 of 4,011) saw no paywall in the last 30 days. 936 of them used their Omi on 3+ days. (MUX sessions analysis 2026-10-26, PostHog 302298.)
  • Only 51% of people who had a first conversation ever see a paywall (7-day funnel, Oct 13-19 installs).
  • The cap prompt is legacy-Plus-only (freemium_threshold_tracker.dart). When a free owner runs out of the free allowance, their conversations lock silently (backend/routers/sync.py). Tapping a locked row opens Plan & Usage, which has no offer on it.
  • The sign-up trial placement is closed within 5s by 34-38% of people, before they have felt any value.

Change

The paywall now shows at the two moments a free owner has just felt the value:

  1. AHA (aha_first_summary): they read the summary of their own conversation for 3s or more, then go back. The offer slides up on Home and never interrupts the summary.
  2. CAP (free_cap): a conversation locked by the free allowance appears in their list (today the lock is silent).

Rules:

  • Once per moment per account.
  • At most one paywall per 72h across every placement. Every paywall surface (trial, outline and web pages, plus PlansSheet) records when it appeared (PaywallPacing). A paced moment is not spent; it waits for the next one.
  • Only free (basic) readers who own an Omi: paired on this phone, or the conversation came from one.
  • Never for paying readers or App Review builds (subscription UI hidden). AHA needs a trial left. At CAP, readers with no trial left get the normal plans sheet.
  • Never stacked on a store-review sheet asked for in the same session.
  • It goes through PromptQueue (never over a recording, a call or a firmware update) and PaywallRouter, so the live paywall-variant arm (100% trial) still owns the design. No copy changes.
  • No double prompt with "Processing paused" (fix(app): Upgrade on Processing paused opens plans when storefront flag is off #23921). That Upgrade is a button the reader taps. It opens the plans sheet, which records PaywallPacing, so a CAP offer queued before, during or after it stays away for 72h. The paused card and a locked row also come from different states: sync.py never locks a conversation for usage_budget_exhausted.
  • Analytics: aha_first_summary and free_cap are new source values on Paywall Opened, Paywall Variant Shown and Upgrade Plan Selected. All three pass PostHog's keep rule (paywall / upgrade), so exposure is unsampled.

Prices are unchanged and come from the backend catalog: Omi Pro US$29.99/month or US$269.91/year (live Stripe, read-only key, 2026-10-29). Nothing in this PR computes a price or charges; the trial page opens Stripe Checkout only after a tap, and only for a trial-eligible reader.

Impact estimate

Free→paid (device owners) 32.4% → ~32.9% (range 32.7-33.1%) in the first month. Churn is unchanged. (MODELED; baseline ACTUAL 2,428 of 7,486 observed owners, MUX baseline 2026-10-28.)

Basis: ~700-1,100 offers a month × 6-9% trial start × 50% trial→paid ≈ 21-50 new payers on 7,486 owners (1 pt ≈ 75 payers).

  • AHA reach is measured: only 500 of 3,688 free never-paid owners (13.6%) opened a conversation in 30 days (Conversation List Item Clicked, unsampled).
  • CAP reach is modeled at 450-900. At least 451 free owners tapped a locked row in 30 days.
  • Trial-start rate comes from Omi's own prompted placements (free-cap row 8-13%, Settings trial page 8.5-9.3%, sign-up 5.5-11.4%). Trial→paid is assumed.

Evidence (iPhone 17 Pro simulator, iOS 26.2, local backend, live prices via the offline Stripe stub)

BEFORE = main @ d60cd2eab6. AFTER = this branch @ 1d30d1a589 (the same app code as this head). Same seeded free, trial-eligible owner in both; the trial arm is forced as in prod (OMI_PAYWALL_VARIANT=trial). Scenarios: ~/mobile-ux-agent/pipeline/scenarios/{aha-trial-offer,free-cap,cap-after-upgrade}.sh.

First summary: main vs this PR

On main the second panel shows iOS's own rating ask: that run's read passed 5s, which is when the app asks for a store review. With a shorter read main shows plain Home. This PR never stacks the offer on a rating ask: the moment then waits for a later session.

Long read on this PR: rating ask, no stacked offer

Free cap: main vs this PR

Plans sheet first, then a locked conversation: no second paywall

Dark mode

Videos (this MacBook): ~/mobile-ux-agent/runs/2026-10-29/pr23762/after/{aha-trial-offer-light,free-cap-light,cap-after-upgrade-light,aha-trial-offer-dark,aha-review-collision-light}/demo.mp4; main: .../pr23762/before/{aha-trial-offer-light,free-cap-light}/demo.mp4.

Simulator results (result.txt of each run):

Check main this PR
Back from the first summary (read 3s+) no paywall trial offer (light and dark), live prices: 7 days free, then US$269.91/year
Read a second summary no paywall no paywall (once per moment, 72h pacing)
The free allowance locks a new conversation silent locked row trial offer about 1s later
Relaunch with the locked row on top no paywall no paywall (once per moment)
Reader opens the plans sheet (the one "Processing paused" Upgrade opens), closes it, then a conversation locks n/a no second paywall (72h pacing)
Long read (9s): iOS shows its rating ask, then Back rating ask rating ask, no trial offer stacked on it

Tests

Not verified: a real device with a paired Omi, real Stripe Checkout, and the live PostHog flag. On the simulator the arm comes from the debug override and the owner gate is met by the conversation's source: omi.

UI-Evidence: see the images above (.agent-artifacts/ui-evidence/mux-2026-10-26-aha-trial-offer/).

Product invariants affected

none

Failure class (fixes)

Failure-Class: none

kodjima33 and others added 2 commits October 26, 2026 19:51
Free Omi owners now get the paywall at the two moments they have just felt
the value: back from reading the summary of their own conversation (3s+ on
screen), and when the free allowance locks a conversation they can see
(today that lock is silent). Each moment opens once per account, never
within 72h of any other paywall, never for a paying reader or with the
subscription UI hidden. The first-summary offer needs a trial left; at the
cap anyone else gets the plans sheet.

The offer goes through PromptQueue (never over a recording or a call) and
PaywallRouter, so the live paywall-variant arm still owns the design.
Every paywall surface records when it appeared (PaywallPacing), which is
what the 72h spacing reads. Sources aha_first_summary and free_cap are
appended to the closed source enums of Paywall Opened, Paywall Variant
Shown and Upgrade Plan Selected; all three pass PostHog's keep rule
("paywall"/"upgrade"), so the exposure is unsampled.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@kodjima33 kodjima33 added the mux-proposal Mobile UX improver (MUX) proposal; waits for Nik's ship label Oct 27, 2026
…load

A plans sheet opened while the cap offer waited for the subscription (the
"Processing paused" Upgrade, now live with #23921) no longer gets a second
paywall stacked on it. Omi Pro readers are in the paying-reader test list.
The store review is requested while a summary is read (5s), so the
first-summary offer could open right under the native rating sheet. Both
value moments now wait when a review was requested this app session; the
moment is not spent, so it opens at the next one.
…ap offer

Drives the real held-audio Upgrade opener (openHeldAudioPlans -> plans sheet)
and checks the cap offer is then paced. Fails without PlansSheet's
PaywallPacing.markShown().
Before = main d60cd2e, after = this branch at 1d30d1a (live Omi Pro
prices via the offline Stripe stub). First-summary offer light and dark, the
free-cap offer, and no second paywall after the plans sheet the Processing
paused Upgrade opens.
A 9s read on this branch: iOS shows its rating ask, and after Back the trial
offer is not stacked on it.
@kodjima33
kodjima33 merged commit 92bff3c into main Oct 29, 2026
48 checks passed
@kodjima33
kodjima33 deleted the mux/2026-10-26-aha-trial-offer branch October 29, 2026 04:22
kodjima33 added a commit that referenced this pull request Oct 29, 2026
…arge shown (#23764)

> **Nik approved ("ship 4", 2026-10-27).** Refreshed 2026-10-29 with
live Omi Pro prices: merged main @ `92bff3c2d5` (includes #23762 and
#23921; both PRs' app tests pass together) (OpenAPI clients regenerated
from the merged spec). This PR includes a **backend change** (new `GET
/v1/payments/yearly-switch` plus a `switch_now` option on `POST
/v1/payments/upgrade-subscription`). It needs a **backend deploy before
or with the app release**. Older app builds never send `switch_now` and
never call the new route, so the deploy is safe on its own.

## What changed and why

Monthly plans churn about **9x** faster than annual (17.8% vs 2.0% a
month, MUX baseline 2026-10-28), and "too expensive" is the top cancel
reason (30-32%). Omi Pro is the only plan sold: **US$29.99 a month or
US$269.91 a year**. Twelve months cost US$359.88, so yearly saves
**US$89.97 a year**. Today a monthly payer only reaches yearly through
the plan grid, which schedules the change for the end of the month: 7 of
779 Omi Pro monthly subscriptions have one queued. Source: live Stripe,
read-only key, 2026-10-29 01:35 UTC (prices
`price_1TuIa81F8wnoWYvw0iX0j5M8` = 2999 usd/month,
`price_1TuIap1F8wnoWYvwHWq0EvNU` = 26991 usd/year).

This PR offers Omi Pro monthly payers the existing yearly price. It adds
no new price, coupon or discount.

1. **Plans & Billing:** a "Switch to Yearly · Save US$89.97 a year" row
under "Your plan renews on …".
2. **Home:** one quiet, dismissible row, "Save US$89.97 a year with
yearly", in the same style as the conversation rows. It shows only from
the second paid month, at most once every 30 days. Tapping it opens the
same flow.
3. **Confirm sheet:** Stripe's own invoice preview: the plan ("Omi Pro,
US$269.91 a year"), **what's due today** (yearly price minus credit for
the unused month), and the renewal date. One primary **Switch to
Yearly** and a quiet Cancel. A declined card says so, and the reader
stays on monthly.

Backend:
- `GET /v1/payments/yearly-switch[?preview=true]`
(`utils/yearly_switch.py`) returns eligibility, the saving and, with
preview, `Invoice.create_preview` (amount due today, renewal date,
proration date). Amounts are read from Stripe (the subscription's price
and the configured yearly price), never from config. Only an **active,
renewing, undiscounted USD Omi Pro monthly** subscription on its
configured monthly price qualifies:
- no trial, not past_due, no scheduled cancel (`cancel_at_period_end` or
`cancel_at`)
- no attached schedule or pending update, not paused, charged
automatically (not invoiced)
- one item, quantity 1, and a yearly price that is cheaper in the same
currency
- `POST /v1/payments/upgrade-subscription` gets an opt-in `switch_now`
(+ `proration_date`, `expected_amount_due`). The same-plan
monthly→yearly change then goes through the immediate branch with
`proration_behavior=always_invoice` and
`payment_behavior=error_if_incomplete`, at the date the reader saw.
**The server re-runs the preview at that date and refuses (409) unless
Stripe would charge exactly the amount on screen.** The call carries an
idempotency key bound to that preview, so a double tap charges once.
Without `switch_now` nothing changes: it is still scheduled for the
period end.
- How this path avoids the open billing bugs:
- **#23298** (a trial switch charged the annual price): `switch_now`
refuses trialing subscriptions with 409, and so does any trial_end in
the future. The offer never shows to trials.
- **#23301** (a declined proration dropped a paid user to Free):
`error_if_incomplete` makes Stripe reject the change on a decline. The
endpoint returns 402 before writing anything, so Firestore and Stripe
both stay on monthly.
- **Discounts:** a subscription or customer with a discount (for example
the 50% stay offer) is refused, so a coupon can't carry onto a yearly
invoice. Promotion codes are refused too.

Events (registry, `subscription-funnel` consumer): `Subscription Yearly
Switch Shown / Opened / Confirmed / Succeeded / Failed (reason: declined
| refused | preview_unavailable | error) / Dismissed`, each with
`surface: home | plans`.

**Metric estimate (MODELED):** if 10% of the **540 eligible** Omi Pro
monthly payers switch (~54 people), monthly churn goes **10.5% →
~10.2%** and LTV **$227 → ~$233** (MUX baseline 2026-10-28: churn
10.456% ACTUAL, LTV $227.41 MODELED).
Basis: live Stripe, 2026-10-29: 779 Omi Pro monthly subscriptions
(active, trialing or past_due); 540 (69%) pass every offer rule with the
PR's own `refusal()`; refused: 163 trialing/past_due, 69 cancel
scheduled, 7 change scheduled. 304 of the 540 are past their first month
(the Home row's audience); all 540 see the Plans & Billing row. Each
switcher moves from 17.8% to 2.0% monthly churn: 54 × 15.8 pt over the
2,783 paid subscribers in the baseline window ≈ -0.3 pt. Each switcher's
MRR drops US$7.50 (US$29.99 to US$22.49 a month), so ARPU falls ~0.6%;
LTV = ARPU / churn ≈ $227 × 0.994 × 1.03 ≈ $233. Legacy monthly prices
(for example the $19.99 Unlimited) are out of scope; offering them a
term is a pricing decision.

## Product invariants affected

none

## How it was verified

- **Real Stripe, test mode** (sk_test only, throwaway product with the
live amounts, archived after), driving this PR's `get_offer` preview and
the real `upgrade_subscription_endpoint` (Firestore/Redis mocked). Run
2026-10-28 18:16; the backend money code is byte-identical at this head
(`git diff a483d9c HEAD -- backend/utils/yearly_switch.py
backend/routers/payment.py` is empty):
- switch: preview **US$239.92 due = invoice paid US$239.92**, renews in
365 days, `metadata.omi_yearly_switch=in_app`
  - same request again after success: 400, still one invoice
- declined card (`pm_card_chargeCustomerFail`): **402**, still monthly,
no paid switch invoice, **no Firestore write**
  - trialing subscription: offer refused, switch 409, still trialing
  - amount moved since the preview: 409, no invoice
  - two confirms at once: one 200 + one error, **one charge**
- **Simulator** (iPhone 17 Pro, iOS 26.2, dev flavor): seeded Omi Pro
monthly subscriber in their second billing month; this branch's backend
on the local harness; the offline Stripe stub answers the subscription,
`Invoice.create_preview` (prorated like Stripe), the price swap, or
Stripe's `card_declined` error. Paths run: Home row → preview → Switch →
success → Done, after which the row is gone (the stub's subscription is
now on the yearly price, 365-day period). Plans & Billing row → preview
→ declined card → "Payment declined. You're still on monthly." (the
stub's subscription stays on the monthly price). Light and dark. Shot at
`0ad7aeb3ff` (this PR on main @ `d60cd2eab6`); the later merge of main
changed no file of this PR outside the regenerated OpenAPI clients.
BEFORE is main @ `d60cd2eab6`, same seed and same screens.

## UI evidence

Simulator (iPhone 17 Pro, iOS 26.2), seeded Omi Pro monthly subscriber
in their 2nd paid month. Before = main.

![Home: main vs this
PR](https://raw.githubusercontent.com/BasedHardware/omi/e14a71f57098d8ced3fd9c6d8f31e07be6ac2280/.agent-artifacts/ui-evidence/yearly-switch/001-mobile-ios-yearly-switch-home-row.png)

![Plans & Billing: main vs this
PR](https://raw.githubusercontent.com/BasedHardware/omi/e14a71f57098d8ced3fd9c6d8f31e07be6ac2280/.agent-artifacts/ui-evidence/yearly-switch/002-mobile-ios-yearly-switch-plans-row.png)

![Confirm, switched, Home
after](https://raw.githubusercontent.com/BasedHardware/omi/e14a71f57098d8ced3fd9c6d8f31e07be6ac2280/.agent-artifacts/ui-evidence/yearly-switch/003-mobile-ios-yearly-switch-confirm-switched.png)

![Declined card: still
monthly](https://raw.githubusercontent.com/BasedHardware/omi/e14a71f57098d8ced3fd9c6d8f31e07be6ac2280/.agent-artifacts/ui-evidence/yearly-switch/004-mobile-ios-yearly-switch-declined.png)

![Dark
mode](https://raw.githubusercontent.com/BasedHardware/omi/e14a71f57098d8ced3fd9c6d8f31e07be6ac2280/.agent-artifacts/ui-evidence/yearly-switch/005-mobile-ios-yearly-switch-dark.png)

What the stub (standing in for Stripe) recorded on the Home run: the
preview at proration date `1793239498` (the sheet's US$244.92), the
server re-running that same preview at confirm, then one
`Subscription.modify` with `always_invoice`, `error_if_incomplete`, the
same proration date and `metadata.omi_yearly_switch=in_app`. Its
subscription moved from `price_1TuIa81F8wnoWYvw0iX0j5M8` (30-day period)
to `price_1TuIap1F8wnoWYvwHWq0EvNU` (365-day period). On the declined
run it stayed on the monthly price.

Videos (this MacBook):
`~/mobile-ux-agent/runs/2026-10-29/pr23764/after/yearly-switch-home-light/demo.mp4`,
`.../yearly-switch-plans-light/demo.mp4`,
`.../yearly-switch-home-dark/demo.mp4`; main:
`.../pr23764/before/yearly-switch-light/demo.mp4`.

UI-Evidence: see the images above
(`.agent-artifacts/ui-evidence/yearly-switch/`).

## Tests

- Backend: `test_yearly_switch.py` 58 passed,
`test_payment_declined_proration.py` 26 passed. Every payment,
subscription, billing, storefront, plan-catalog, checkout, OpenAPI and
route-policy test file passes when run on its own (55 files, 0 failures;
the repo runs backend files isolated).
- App: `yearly_switch_test.dart` + plans sheet, contextual plans
fallback, Home daily recaps toggle (#23924) and navigation, storefront
API, plans l10n, analytics registry and spine B1
home/conversations/settings: 197 passed (Flutter 3.44.5). `dart analyze`
on changed files: no issues. `l10n.py check` ok (49 locales, 4321 keys).
Pre-push preflight passed.
- Merges cleanly with #23762; the generated event registry stays current
on the combined tree.

## At ship

- **Backend deploy:** `gh workflow run gcp_backend.yml -f
environment=prod -f release_sha=<merged-main-SHA>`. The app shows
nothing until the backend serves `GET /v1/payments/yearly-switch`: a 404
hides both rows.
- **Events:** named like the kept `Subscription Cancel …` events;
confirm the PostHog keep rule (`subscri`) matches them before reading
the funnel.
- **Stripe metadata:** switched subscriptions carry
`metadata.omi_yearly_switch=in_app`, so switchers can be counted in
Stripe.

## Failure class (fixes)

Failure-Class: none

Line-Count-Exception: app/lib/backend/preferences.dart | 1630 -> 1635 |
one typed accessor for the Home row's 30-day window, beside its
neighbours
Line-Count-Exception: backend/routers/payment.py | 1967 -> 1981 |
switch_now request fields and the guard on the existing plan-change
endpoint; the rules live in utils/yearly_switch.py
kodjima33 added a commit that referenced this pull request Nov 5, 2026
Draft blocker: the existing catalog does not expose trial duration. This
change reuses the yearly paywall's seven-day constant; backend-sourced
duration remains required by the brief.

## Problem

Yearly is preselected on the trial paywall. Returning from its checkout
without buying currently leaves the reader on the same paywall.

## Change

Show the approved "Not ready for a year?" sheet once per paywall session
after a yearly checkout returns cancelled. Refetch the subscription
first; skip the offer for paid or hidden-billing accounts, lost trial
eligibility, missing data, failed requests and timeouts. Monthly
checkout and failed yearly checkout do not trigger it.

The monthly price comes from the existing catalog object. Trial
eligibility comes from the subscription response; duration reuses the
yearly paywall's existing `TrialPaywallPage.trialDays` (7), so both
checkout requests and copy agree. The catalog does not currently expose
a trial duration. "Try monthly free" selects Monthly and calls the same
checkout helper as the Monthly card. If eligibility is lost while yearly
checkout is open, show nothing. Every checkout from this page requires
trial eligibility and sends the same seven trial days. There is no
full-price fallback path. Not now, scrim, swipe and back dismiss without
buying. All 49 locales are translated.

## Checkout completion

`app/lib/pages/settings/payment_webview_page.dart:63` recognizes the
existing success URL and pops true; cancel/back pop false.
`app/lib/pages/paywall/paywall_checkout.dart:86` awaits that result, and
`:87` treats any non-true result as cancelled.
`app/lib/pages/paywall/trial_paywall_page.dart:103` gates the offer on
yearly plus cancelled; `:149` refetches the server subscription before
offering another plan. Stripe webhook persistence remains authoritative.
No backend or payment-rail changes.

## Impact estimate

Owners who pay 32.4% → ~33% (modeled; yearly is preselected and
abandoned yearly checkouts get no fallback today; the new Shown/Accepted
events will measure it)

The estimate is supplied by the proposal, not an observed experiment
result. Shown, Accepted (with checkout outcome) and Dismissed are typed
registry events whose names match the existing 100% paywall keep-list.

## Money review

Round 1 found a double-subscription risk in the full-price fallback: a
completed yearly trial can save its Stripe customer before the
subscription row, making a still-basic account lose trial eligibility.
This change now suppresses the sheet in that state
(`trial_paywall_page.dart:155-161`), removes the full-price fallback,
and always requests `trial_days: 7` (`:127`). The backend refuses trial
requests for existing customers (`backend/routers/payment.py:767-769`).
Its separate active-only duplicate-subscription lookups do not cover
trialing subscriptions; this PR does not rely on them and does not
change the backend. Independent re-review remains pending. No real
purchase was completed; native checks use the loopback Stripe stub
without a payment-confirmation control.

## Evidence

![Before and
after](https://raw.githubusercontent.com/BasedHardware/omi/865529a0ecb0f269daec663948f2f07eb6f24c3c/.agent-artifacts/ui-evidence/mux-2026-10-29-yearly-abandon-monthly/001-mobile-ios-yearly-return-before-after.png)
![Monthly
offer](https://raw.githubusercontent.com/BasedHardware/omi/865529a0ecb0f269daec663948f2f07eb6f24c3c/.agent-artifacts/ui-evidence/mux-2026-10-29-yearly-abandon-monthly/002-mobile-ios-monthly-offer-light.png)
![Monthly
checkout](https://raw.githubusercontent.com/BasedHardware/omi/865529a0ecb0f269daec663948f2f07eb6f24c3c/.agent-artifacts/ui-evidence/mux-2026-10-29-yearly-abandon-monthly/003-mobile-ios-monthly-checkout.png)
![Dark
appearance](https://raw.githubusercontent.com/BasedHardware/omi/865529a0ecb0f269daec663948f2f07eb6f24c3c/.agent-artifacts/ui-evidence/mux-2026-10-29-yearly-abandon-monthly/004-mobile-ios-monthly-offer-dark.png)
![Third return after Not
now](https://raw.githubusercontent.com/BasedHardware/omi/865529a0ecb0f269daec663948f2f07eb6f24c3c/.agent-artifacts/ui-evidence/mux-2026-10-29-yearly-abandon-monthly/005-mobile-ios-decline-repeat.png)
![Largest text size; sheet
scrolls](https://raw.githubusercontent.com/BasedHardware/omi/865529a0ecb0f269daec663948f2f07eb6f24c3c/.agent-artifacts/ui-evidence/mux-2026-10-29-yearly-abandon-monthly/006-mobile-ios-monthly-offer-large-text.png)
![German, Japanese,
Arabic](https://raw.githubusercontent.com/BasedHardware/omi/865529a0ecb0f269daec663948f2f07eb6f24c3c/.agent-artifacts/ui-evidence/mux-2026-10-29-yearly-abandon-monthly/007-mobile-ios-monthly-offer-locales.png)
![Eligibility lost: no monthly
offer](https://raw.githubusercontent.com/BasedHardware/omi/865529a0ecb0f269daec663948f2f07eb6f24c3c/.agent-artifacts/ui-evidence/mux-2026-10-29-yearly-abandon-monthly/008-mobile-ios-eligibility-lost-no-offer.png)

| Real iPhone simulator check | Result |
| --- | --- |
| Main `2a592bf296`: yearly checkout, then back | No offer |
| Branch source `188754c461`: yearly checkout, then back | Monthly sheet
|
| Try monthly free | Monthly checkout, same price ID, 7-day trial |
| Not now; second and third yearly returns | No repeat; Yearly stays
selected |
| Relaunch and open a new paywall session | May offer once again |
| Light, dark, largest text | Offer and monthly handoff exercised |
| German, Japanese, Arabic | Translated sheet captured and inspected |
| Round 1, source `14c889c7a4`: basic plan + customer saved during
yearly checkout | Trial eligibility becomes false; no sheet |
| Second and third taps after eligibility loss | No checkout; session
snapshot unchanged |

The stub recorded `year:26991usd:trial=7` then `month:2999usd:trial=7`.
Full local proof: `/Users/nik/mobile-ux-agent/runs/2026-10-29/p5/`.
Video: `demo.mp4` (20.9 seconds); `demo.gif` and `before-after.png` are
in the same folder. Those initial captures used source `188754c461`.
Round 1 removes the full-price branch in `14c889c7a4`; the trial sheet
layout is unchanged. Round 1 was rebuilt and exercised on source
`14c889c7a4` in canonical pipeline lane `sim.2`. Its app/test/changelog
sources are identical to the current evidence-only head. The eligible
flow still opens monthly checkout with seven trial days. Saving a local
customer while the plan remains basic makes the real subscription
endpoint return `trial_eligible=false`; leaving yearly then shows no
sheet, and the next two taps create no checkout. The three stub sessions
remain year/month/year, all with seven trial days. Fresh proof:
`/Users/nik/mobile-ux-agent/runs/2026-10-29/p5/round1/native/`
(`run.json`, `eligibility-lost.json`, both session snapshots and five
inspected screenshots). The pipeline shut down the simulator and
released `sim.2`.

## Tests

- **37/37 widget tests passed after the round-1 money guard fix**, one
file at a time, Flutter 3.44.5: `trial_paywall_monthly_offer_test.dart`,
`trial_paywall_navigation_test.dart`, `trial_paywall_page_test.dart`,
`value_moment_paywall_test.dart`, `contextual_plans_fallback_test.dart`.
- The 12 fallback tests passed again after preserving the existing
analytics expression; the changed file has no analyzer errors or new
hints.
- Lost-eligibility regression: fails on the prior code because the sheet
appears; passes after the guard, including no events or second/third
checkout. Logs: `/Users/nik/mobile-ux-agent/runs/2026-10-29/p5/round1/`.
- `scripts/l10n.py check`: 49 locales and 4,336 keys; generated output
current.
- Round-1 `make preflight`: 27 checks passed in 589 seconds, including
UI evidence, mobile UX, UI-isolate, brand, catalog and typed-event
registry guards.
- Main and branch built through the guarded pipeline and exercised
headlessly on an owned iPhone 17 Pro simulator. No Mac foreground/cursor
use.

## At ship

Draft only. No merge, release, flag or live-state changes. Preserve
#23762's routing/pacing. After approval and release, measure Shown →
Accepted → purchased.

## Not verified

- Known requirement gap: trial duration is inherited from the existing
seven-day paywall constant, not live plan data. Prices and eligibility
are live-backed. Exposing duration from the backend remains required to
satisfy that part of the brief.
- Largest-text BEFORE capture on main. Largest-text AFTER acceptance was
exercised.
- Live payment confirmation, physical-device billing, TestFlight/App
Store builds and production analytics delivery. Purchases are
deliberately never completed.

## Product invariants affected

none

## Failure class (fixes)

Failure-Class: FC-checkout-falls-through-unverified-subscription

The app now blocks another checkout after trial eligibility is lost,
even while the entitlement projection is still basic. The regression
test covers that pending-sync state and repeat taps. Backend admission
follow-ups remain outside this PR.

UI-Evidence: see the images above
(.agent-artifacts/ui-evidence/mux-2026-10-29-yearly-abandon-monthly/)


<!-- This is an auto-generated description by cubic. -->
<a
href="https://cubic.dev/pr/BasedHardware/omi/pull/23950?utm_source=github"
target="_blank" rel="noopener noreferrer"
data-no-image-dialog="true"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"><source
media="(prefers-color-scheme: light)"
srcset="https://www.cubic.dev/buttons/review-in-cubic-light.svg"><img
alt="View guided diff"
src="https://www.cubic.dev/buttons/review-in-cubic-light.svg"></picture></a>
<a
href="https://www.cubic.dev/action/auto-fix/pr/BasedHardware/omi/23950?returnTo=https%3A%2F%2Fgithub.com%2FBasedHardware%2Fomi%2Fpull%2F23950&source=description"
target="_blank" rel="noopener noreferrer"
data-no-image-dialog="true"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://www.cubic.dev/buttons/turn-on-auto-fix-dark.svg"><source
media="(prefers-color-scheme: light)"
srcset="https://www.cubic.dev/buttons/turn-on-auto-fix-light.svg"><img
alt="Turn on auto-fix"
src="https://www.cubic.dev/buttons/turn-on-auto-fix-light.svg"></picture></a>
<!-- End of auto-generated description by cubic. -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

mux-proposal Mobile UX improver (MUX) proposal; waits for Nik's ship

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant