attribution_method field records which — so you always know whether a number came from a machine score or a human judgment.
Shape
Creating a link from code
Attribution methods
The engine’s scoring combines temporal decay, Jaccard metadata overlap, a Bayesian agent-pattern prior, and amount plausibility. Links with a score in the
ml_suggested band appear in the dashboard review queue rather than being applied automatically.
Confirming or rejecting ML-suggested links
When the attribution engine surfaces a suggested link, you confirm or reject it from the Links tab in the dashboard. Confirming promotes theattribution_method to manual and makes the link active. Rejecting soft-deletes the link — it is excluded from P&L queries but remains in forensic exports so an external reviewer can see the prior suggestion was retracted.
Soft-deleted links are never hard-deleted. The audit trail is always intact, even after a rejection.
Link types
revenue
The decision drove positive revenue — a successful upsell, a completed checkout.
cost
The decision drove a cost you would not otherwise have incurred — extra API calls, ops labour.
liability
The decision created legal or compliance exposure — an erroneous claim denial, a regulated miscommunication.
neutral
Attribution matters for the audit trail but the dollar sign is zero — for example, a canceled transaction.
LIABILITY and NEUTRAL link types are excluded from the revenue and cost sums in the AI P&L — liability flows into the exposure column only, and neutral links are audit metadata with no P&L effect.