Documentation
Policy engine
Windows, eligibility, fraud thresholds, and legal-basis routing.
The policy engine decides what happens to every return — automatically, and auditably.
Rules
yaml
rule: auto-approve
when:
- window <= 30d
- reason != final_sale
- fraud_score < 0.3
then:
- approve
- instant_creditLegal basis
Every return carries a legal_basis: withdrawal, goodwill_return, warranty, or recall. The engine applies a different rule set per basis.
Fraud-flagged returns are automatically excluded from the fit-graph to prevent data poisoning.