Skip to content
MaxLTV Docs

Docs / Recharge

AI, testing and the human in the loop

How MaxLTV decides when to retry a failed charge, where a model contributes, and why nothing it suggests takes effect in your store without a person enabling it.

This page is about retry handling on Recharge, where MaxLTV manages the charges. On Ordergroove, Ordergroove keeps managing retries — see Ordergroove getting started.

The rule table is the product

What happens after a charge fails is decided by a table of rules, and that table is yours. It lives on the Retries page.

Each rule matches against the decline and says what kind of failure it is and how it should be handled. Rules are matched in priority order and the first match decides, so the order of the table is itself a decision. Your store starts with a sensible default table rather than an empty one, and you change it from there.

Everything below is about how that table gets better over time. None of it replaces the table as the thing in charge.

Where the model contributes

Two places, both of which produce suggestions rather than changes.

1. Declines no rule has seen before

Payment processors invent new decline messages constantly, and a table that only knows the ones it was built with slowly goes stale. When a failure matches no rule, the decline is sent to a model, which answers in a fixed structure: what kind of failure this looks like and roughly when a retry could authorise.

That answer is written back into your table as a suggested rule, marked as coming from the model — and by default it is created disabled. It does not take part in matching until a person enables it.

Nothing waits for a person, though. While a suggestion sits unreviewed, that decline is still handled — just cautiously. It runs on the suggested timing at full price, with no discount, and if the suggestion is that the card is dead it waits for a card update instead of retrying. So an unreviewed suggestion can only ever be more conservative than a reviewed one. The subscriber is not stuck waiting for a human, and the model cannot spend your margin before anyone has looked at it.

If the model is unavailable, the decline is simply treated as unknown and handled conservatively. There is no fallback that invents a classification.

2. The monthly review

On your policy's cadence — or whenever you press Run a review now — a model reads the period's retry results, your live policy and rule table, and how your past experiments turned out. It writes a short summary, a few observations, and experiments worth running.

Each suggested experiment is validated before it is stored. It cannot change a rule's category or whether a rule is enabled, and it cannot touch a hard-decline rule at all. Anything that fails validation is not offered.

What survives is filed as a proposed experiment, waiting for a person to approve or reject it. The review only runs when there is enough closed history to read, so it does not produce confident-sounding suggestions from a thin month.

How an experiment runs

An experiment is a change set against your live configuration, not a separate configuration. New failed charges are split: the control arm is planned with your live settings, the variant arm with the changes applied. Everything else is identical, so the readout compares one thing.

  1. Proposed — by the monthly review, or by a person. A proposal carries a hypothesis and a rationale, not just a diff.
  2. Approved — a person starts it. Until then nothing is split and nothing changes.
  3. Running — new failures are allocated between the arms. A person can stop it at any point, with a reason.
  4. Completed — when both arms reach the required sample, or the window runs out.
  5. Adopted or discarded — a person decides. Adopting writes the change set into your live policy and rules. Discarding leaves them untouched.

Every one of those transitions records who made it. Completing is the only state an experiment reaches on its own.

Only one experiment runs per store at a time. Overlapping tests contaminate each other, and the second one is rarely worth the ambiguity it introduces into the first.

What an experiment may change

Timing, delays, discount eligibility, discount schedules and attempt caps, plus the policy's own numbers and window.

What it may never change

  • A rule's category. A hard decline stays a hard decline. No test can reclassify what a failure is.
  • Whether a rule is on. Tests tune rules; they do not switch them off.
  • The order of the table. Precedence is a structural decision, not a variable.
Those three are a person's edits, made directly on the rule table, and the restriction is enforced in code rather than left to convention. The distinction is between tuning, which a test may do within a boundary, and reclassifying, which changes what the system believes a failure is. The second is never settled by a win on a sample.

Why it is built this way

A system that proposed, tested and adopted on its own would be easier to build and harder to trust. Three problems come with it:

  • A metric can improve while the outcome gets worse. More aggressive retrying lifts recovery rate and can cost you in processor fees and subscriber goodwill at the same time. Which number matters is a question about your business, not about the data.
  • Significance is not sufficiency. A result can be real and still not worth adopting — too small to matter, too narrow to generalise, or at odds with how you want to treat people whose payment just failed.
  • Automatic adoption compounds errors. A system that adopts its own wins drifts in whatever direction its metric points, and nobody notices until the direction is obviously wrong.

So the division is deliberate. The model is good at reading a decline it has not seen, noticing patterns across a period, and proposing something specific to try. It is not asked to decide what is worth doing to your subscribers.

What this means for you

  • Nothing changes without approval. Not a new rule, not a retry setting, not a discount schedule.
  • An unreviewed suggestion is always the cautious option. Full price, or waiting for a card update. It cannot be the expensive one.
  • You can see what changed and who changed it. Every adoption and rejection is recorded against a person.
  • You do not have to run any of this. We review, propose and read the tests as part of the service. Where you would rather be the approver, say so and you will be.

Related