FA-59802 / Subscription proration billing / Member archive
Renewal price with lock and increase cap: lock never raises price · case 02
When list prices drop below the locked price, locked customers pay more than new customers.
Case contract
Input {last_paid, list_price, locked|None, lock_until, renewal_day, cap_pct}. While the lock is active (renewal_day <= lock_until) the target is min(list_price, locked); otherwise list_price. The renewal price is min(target, last_paid*(100+cap_pct)//100). Return cents.
Why this case matters
Grandfathered prices and increase caps protect renewing subscribers; their interplay sets the renewal amount.
One recorded failure
Sample boundary fixtureThis sample comes from the broken implementation of a controlled reproducer.
| Boundary fixture | Actual | Expected | Outcome |
|---|---|---|---|
| regression 0 | 2200 | 2000 | Failed |
MEMBER ARCHIVE
The complete case is available to members.
This record includes three runnable implementations, regression fixtures, execution results, and source hashes.
Member access is invitation-based. Sign in with your invited account to inspect the sources.
Sign in to the archive ↗