Why Subscription AI Promotions Keep Failing at Launch Time

    This article examines a common failure pattern in subscription-based AI service promotions: a publicly announced discount wave that never actually opens. Using a Black Friday incident as the starting point, it walks through a reusable engineering approach covering campaign modeling, real-time eligibility checks, feature flags and gradual rollout, idempotent grant processing, observability, and release governance. The goal is to show how teams can turn promotional promises into configurable, auditable, and deliverable systems.

    1. What Happened: A Promotion That Was Announced but Never Delivered

    A subscription-based AI coding and large language model service ran into a classic incident during Black Friday. A company representative publicly announced two promotional waves on social media: the first for existing paid subscribers, and the second for new users who had not yet subscribed, scheduled to open on Black Friday itself. When the first wave ended, the banner and discount entry point were taken offline on schedule. On Black Friday, however, new users who refreshed the subscription page still saw the original price. The community quickly filled with complaints about a broken promise.

    From an engineering perspective, this cannot be dismissed as a simple operational mistake. It exposes at least three underlying problems:

    1. The public commitment was disconnected from system capability: The time announced in the comments was a hard commitment, but there was no technical confirmation that the grant pipeline could open in waves by user segment.
    2. The audience definition was never productized: A “new user” is a dynamic predicate in engineering terms (whether they have subscribed, whether the subscription expired, whether they already claimed a benefit), not a static label.
    3. There was no fallback or reconciliation: No automated check compared the list of users who should have received the benefit against those who did not, so the issue could only be discovered through community feedback.

    The rest of this article abstracts this class of problem into a reusable technical design.

    2. Translating a Promotional Promise into an Executable Domain Model

    Nearly all of the complexity in promotional benefit distribution comes down to four questions: who is eligible, how much they get, when they get it, and whether they can claim it more than once. It helps to converge the concepts into four entities:

    • Campaign: Has a unique ID, an active window, supports gradual rollout, and can be shut down with a single action.
    • Segment: Defined by a rule expression rather than a manually imported list.
    • Benefit: Discount rate, bonus credits, duration, and so on; must be versioned.
    • Grant: An idempotency key plus a state machine; this is the single source of truth for later reconciliation.

    A minimal rule example (pseudocode, expressing semantics only):

    1. campaign:
    2. id: bf_2026_new_user
    3. windows:
    4. - {name: wave1, start: "2026-11-20T00:00:00Z", end: "2026-11-26T23:59:59Z", segment: existing_paid}
    5. - {name: wave2, start: "2026-11-27T00:00:00Z", end: "2026-11-30T23:59:59Z", segment: never_paid}
    6. benefit:
    7. type: percent_off
    8. value: 0.5
    9. scope: [ai_plus, pro_annual]
    10. exclude: [ultra]
    11. rollout:
    12. default: disabled # Critical: disabled by default
    13. allowlist: [qa, ops]
    14. percentage: 0

    The most important line here is default: disabled. Any wave that has been publicly announced must first ship in a disabled state and then be turned on by the flag platform at the designated time, rather than relying on it “taking effect automatically when the clock hits zero.”

    3. Eligibility Checks: Why “New User” Is the Easiest Thing to Get Wrong

    “Has never subscribed to a paid plan” is commonly implemented in three different ways, and they are not equivalent:

    • Definition A: No active subscription right now.
    • Definition B: Has never had a successful payment in the past.
    • Definition C: Has never claimed any promotional benefit.

    In the incident, a new user most likely had to satisfy both B and C. If the code only checks A, expired former subscribers can also claim the offer. Conversely, if it only checks C, people who once claimed a coupon but never paid get wrongly excluded. The engineering recommendation is:

    1. Push the decision down into a dedicated Eligibility Service that exposes only “eligible / not eligible + reason code.”
    2. Make reason codes observable, for example NOT_ELIGIBLE_ALREADY_SUBSCRIBED, NOT_ELIGIBLE_ALREADY_GRANTED, WINDOW_NOT_OPEN, so support and incident investigation can pinpoint the cause directly.
    3. The decision must be recomputable in real time, because a user may complete their first subscription at any point during the window, which flips their eligibility.
    1. public Eligibility check(UserId uid, CampaignId cid) {
    2. if (!campaignRepo.isOpen(cid, clock.now())) return Eligibility.no("WINDOW_NOT_OPEN");
    3. if (subRepo.hasSuccessfulPayment(uid)) return Eligibility.no("ALREADY_SUBSCRIBED");
    4. if (grantRepo.exists(uid, cid)) return Eligibility.no("ALREADY_GRANTED");
    5. return Eligibility.yes(cid.benefit());
    6. }

    4. Feature Flags and Gradual Rollout: Making “Open at the Announced Time” a Deterministic Event

    Traffic on promotion day is spiky, and the moment a wave opens there is a burst of concurrent refreshes. If “takes effect at the scheduled time” depends on a batch job that updates data, delays and jitter are inevitable. A more reliable approach is read-time evaluation plus a time window: the Eligibility Service checks whether the window is open on every request using a trusted server-side clock, without depending on the progress of any batch process.

    Three types of flags should be prepared, in descending order of priority:

    1. Kill switch: Sends all entry points back to the original price in one action, for damage control.
    2. Rollout percentage: Ramps traffic by hashing the user, avoiding a full-scale failure.
    3. Allowlist: Internal and support accounts validate first.

    Illustrative logic:

    1. if (killSwitch.isOn(cid)) return Price.original();
    2. int bucket = Math.floorMod(uid.hash(), 100);
    3. if (bucket >= rollout.percentage()) return Price.original();

    Note that all prices and discounts should be calculated and signed on the server and then delivered to the client, which is only responsible for rendering. Putting discount logic on the client amounts to handing pricing control to the user.

    5. Consistency and Idempotency: Don’t Let Duplicate Claims Become a Second Incident

    The grant action must satisfy two constraints: no duplicates and no losses. The recommended combination is an idempotency key, a state machine, and transactional messaging:

    • Idempotency key: uid + campaignId + wave, backed by a unique index.
    • State machine: INIT → GRANTED → EFFECTIVE → EXPIRED; failures move to FAILED and enter a retry queue.
    • The billing side records asynchronously through a message queue, and the consumer deduplicates using the same idempotency key.
    1. CREATE UNIQUE INDEX uk_grant ON grant(uid, campaign_id, wave);
    1. try {
    2. grantRepo.insertIfAbsent(g); // A unique index conflict is treated as already granted
    3. mq.send(new GrantEvent(g.id())); // Transactional message ensures eventual consistency downstream
    4. } catch (DuplicateKeyException e) {
    5. return grantRepo.get(uid, cid); // Idempotent return; do not surface an error to the user
    6. }

    6. Observability and Fast Mitigation: Turning Community Discovery into Metric Discovery

    The most painful part of the incident was that it was discovered through the community. A mature system turns key metrics into dashboards and alerts:

    • Eligibility distribution: a sudden spike in the share of WINDOW_NOT_OPEN indicates a problem with the window configuration or the clock.
    • Grant success rate and the backlog of FAILED records.
    • Deviation rate between the price snapshot on the order page and the expected price.
    • Conversion rate comparison by segment (existing users vs. new users).

    Three mitigation plans should be in place: close the entry point, roll back the campaign configuration version, and bulk re-grant to affected users (re-grants also go through the idempotency key to avoid a second duplication).

    7. Process Governance: Public Commitments Must Pass Technical Confirmation

    No matter how complete the technology is, it cannot stop an unconfirmed public promise. It is worth bringing promotional messaging into the release process:

    1. Any commitment about timing must be confirmed by the on-call engineer that the flags and windows are configured.
    2. Campaign configuration changes go through versioned releases with an audit log (who, when, what changed).
    3. Prepare a unified external message and compensation plan for a “delayed opening,” rather than leaving users to refresh repeatedly.

    8. Broader Practice from a Baidu AI Cloud Perspective

    For similar promotions in China, the reusable general capabilities include a container platform to handle spiky traffic, a message queue for asynchronous granting, object storage to archive campaign configurations and audit files, and logging plus monitoring and alerting to build the eligibility distribution dashboard. Baidu AI Cloud offers corresponding products in these general categories; specific selection should be based on the official documentation and results from your own load testing. This article does not assume any undisclosed parameters.

    9. Summary

    “New users can’t see the discount” looks like an operational problem on the surface, but it is essentially a gap in four capabilities of the benefits system: configurability, rigor in eligibility decisions, idempotency in the grant pipeline, and observability. Turning promises into configuration, audiences into rules, and grants into a reconcilable state machine is what moves a major promotion from “depending on luck” to “deliverable.”