How the score is built, and how it is checked

The rules and tests described here are in the code. Where something is untested or unproven, this page says so.

One score, three inputs

InputWeight, all three presentWho supplies it
Transaction record: settled transactions, fraud reports, disputes, refunds, volume57%The processor's ledger, or a merchant's own figures
Monthly answers: fulfilment, refunds, support, fraud tools, what is changing28%The merchant, each month
Business profile: product, ticket, recurring share, history, policies15%The merchant, once

100 is cleanest. 70 and above is Healthy, 40 to 69 is Watch, below 40 is High risk. Every score lists up to three things that cost the most points and, when something does, one next step.

Rules nothing can override

How it is tested

The engine

  • Automated tests include 1,000 generated merchants checking that more disputes never raise a score, and 1,000 checking that answers never raise one.
  • The check-in rule has its own guarantees, each run on 1,500 generated histories: answers never earn a month the record did not, a caught lie is never better than the truth, a failed check counts even when the check-in was skipped, and a review never clears itself.
  • The design was attacked before it was built. Each counterexample found is now a test.
  • Bugs planted on purpose are caught by the tests.

The backtest

  • Each month is scored from that month and earlier ones only. Changing later months does not change an earlier score.
  • Outcomes come only from the following two months.
  • A merchant's first three months are scored but kept out of the results.

The trained AI model and the learning pipeline

Beside the live rule score sit a trained XGBoost model (December 2025, trained on generated data, shipped with the code) and a pipeline that fits new models on a processor's own outcomes. A model trained on real outcomes is only fitted when a file holds 50 or more events. Merchants are split into three groups so no outcome is used twice. It is tested on later months, after a two-month gap, on merchants it never saw. It is used only if it beats the rules there and its probabilities are better than a flat guess.

Generated merchants

Ranked byEvents caught, of 77Ranking quality
Dispute ratio alone510.202
GuardScore rule score500.180
Learned model, four inputs510.186
Learned model, 43 inputs510.174
GuardScore v2 model (December 2025)520.245

This is the last four months of Portfolio B: the latest 4 months, two months after fitting ends, on merchants never used for training or calibration. Dispute ratio alone is the month's disputes divided by its settled transactions. Events caught is at each month's worst 5%; ranking quality is average precision. The learned models trained on 362 events. Every row is within a few events of the others, which is noise at this size: on generated data no model is clearly ahead of the rule score, and on the two longer portfolios the rule score is only narrowly ahead of the plain ratio. The December 2025 GuardScore model had the best ranking quality on this portfolio and was level with the rules on the other one it was run on. It was built to reproduce a formula and is run here on the fields a processor file holds, with its other inputs on defaults.

What this does and does not show: the machinery for training and judging a model is built, has been run on generated data, and refuses to claim a win it has not earned. Whether a model beats the rules on real merchants can only be answered with a real file.

What is not proven