My contribution
I integrated the team’s fraud engine with FastAPI and the React reviewer console. I mapped rule evidence into the API response and added tests for velocity, amount, geographic and multi-rule checks.
The problem
A fraud model that outputs 0.91 and nothing else cannot be acted on, argued with, or audited. Reviewers need to know which rule fired and why.
The approach
A FastAPI rule engine scores transactions against named rules. Each score carries the rules that produced it, so the output is a reason, not just a number. Flagged transactions route to a React reviewer queue, and every decision is written to an audit trail.
Decisions
- Rules over an opaque model
- For a reviewer-facing tool, a named rule that a human can read and contest beats a marginally better score nobody can explain.
- A human in the loop by design
- The system routes rather than decides. Its output is a prioritised queue for a reviewer, which keeps the accountability where it belongs.