Promotional Rollout and Eligibility Logic: A Technical Breakdown of Subscription Discount Failures
This article analyzes a real-world subscription promotion incident where most target users never saw the promised discount. It breaks the failure into four engineering layers—eligibility evaluation, gradual rollout, state consistency, and observability—and offers actionable design recommendations, including modeling new-user eligibility as a versioned state machine, running explainable and rollback-ready experiments, sharing one configuration source across price display and checkout, and maintaining an audit trail for public commitments. The goal is to preserve both system stability and user trust during high-traffic campaigns.
1. Abstracting the Incident: A “Promise Not Delivered” Promotion Failure
An overseas subscription-based intelligent service ran into a typical engineering problem during a major sale. Official channels announced in advance that a second wave of discounts would be opened to unpaid users. When the event day arrived, however, the vast majority of target users refreshed the page and still saw the original price. Only a very small number of accounts saw a new-customer offer with a deadline. The official public promise was then deleted, with no supplementary explanation.
Setting the specific product aside, this was a reusable “marketing issuance pipeline incident.” It contains four technical layers that can be analyzed independently:
- Promotion eligibility: what counts as a “new user,” who decides, and when;
- Gradual rollout: why only some accounts could see the offer, and how to make rollout controllable and explainable;
- State consistency: whether price, banners, and eligibility caches expired in sync between the early-bird period and the event day;
- User communication and observability: whether promises, logs, and support scripts were traceable.
Each layer is expanded below, with directly actionable design recommendations.
2. Eligibility: Model “New User” as a State Machine, Not a Boolean
Most teams implement eligibility as a boolean field, is_new_user, which is the root of this incident. In real business, “new customer” covers at least the following dimensions:
- Subscription history: never subscribed, previously subscribed but expired, previously received a trial, previously participated in an event;
- Account status: risk-control flags, region assignment, payment instrument validity;
- Time windows: registration time, last payment time, last coupon claim time;
- Channel source: official website, in-app, partner channels.
The recommendation is to switch to an explicit state machine with recorded state transitions:
NEVER_SUBSCRIBED --registration complete--> ELIGIBLE_PENDINGELIGIBLE_PENDING --event starts and hits rollout--> OFFER_GRANTEDOFFER_GRANTED --payment succeeds--> PAIDOFFER_GRANTED --payment times out--> OFFER_EXPIREDPAID --subscription terminated--> CHURNED (whether re-eligible is policy-driven)
Engineering essentials:
- Separate the evaluation service from the display service; write evaluation results into a versioned eligibility snapshot, and let the page read only the snapshot;
- Write all transitions to an audit log (account identifier, rule version, matched experiment bucket, timestamp) for post-mortem analysis;
- Publish rules as configuration; never hardcode discount logic in the frontend.
3. Gradual Rollout: Controllable, Rollback-Ready, Explainable
“Only a few accounts saw the offer” is usually not random. It is typically the result of gradual rollout or risk-control filtering. A proper rollout has four elements:
- Bucketing key: hash by account to assign buckets, ensuring the same account gets a stable result across visits;
- Ramp schedule: 1% → 10% → 50% → 100%, with an observation window at each stage;
- Mutual exclusion and orthogonality: layer the promotion experiment separately from recommendation and pricing experiments to avoid cross-contamination;
- Circuit-breaker conditions: automatically roll back if conversion rate anomalies, rising complaint rates, or higher payment failure rates appear.
Illustrative bucketing logic:
def in_bucket(account_id: str, salt: str, ratio: float) -> bool:h = hashlib.sha256(f"{salt}:{account_id}".encode()).hexdigest()return (int(h[:8], 16) / 0xFFFFFFFF) < ratio
The key is “explainability”: support and engineering must be able to answer “why did this account not get the offer” through the same interface—input the account and time, output the matched rule version and experiment bucket.
4. State Consistency: Caches and Banners at Early-Bird End
The original case—“banners and discounts disappeared on time, but new users still got no offer”—points to a classic cache and release desynchronization problem. A consistency checklist is recommended:
- The price display layer, checkout layer, and event announcement layer should use the same event configuration source, avoiding three separately maintained copies;
- Event start/end should use a unified time source and idempotent scheduled jobs; the end event must be broadcast to all edge nodes;
- Set real-time reconciliation alerts for “page shows a discounted price but checkout charges the original price”—this is the most reputation-damaging failure;
- The frontend must not decide participation locally; everything is based on the eligibility snapshot delivered by the server.
A post-release self-check can be expressed as pseudocode:
for region in all_regions:assert config.version(region) == expected_versionassert price.quote(region, sample_account) == price.settle(region, sample_account)
5. Observability and Communication Standards
Observability metrics for a promotion should include at least: eligibility evaluation failure rate, offer impression volume, add-to-cart and payment conversion rates, count of checkout-display price mismatches, and complaint category distribution. It is recommended to build a “commitment ledger” for each event: every externally published benefit statement is registered with its effective time, covered population, and rule version; changes must leave a trace rather than being deleted. Deleting a public promise is technically equivalent to destroying audit evidence and directly amplifies trust costs.
When implementing on Baidu AI Cloud, you can use the container platform to host the evaluation and display services, a message queue to distribute event start/end signals, logging and monitoring/alerting services for reconciliation and circuit breaking, and object storage to save rule version snapshots, achieving full-pipeline traceability.
6. Conclusion
“New-user offer never arrived” is not merely a marketing misstep. It is the combined result of a missing eligibility state machine, unexplainable rollout, insufficient cache consistency, and absent audit trails. Only by modeling new-customer evaluation as a versioned state machine, making rollout a rollback-ready experiment, binding price display and checkout to the same configuration source, and bringing external commitments into ledger management can you defend both system stability and user trust under high-pressure scenarios like major sales.
