Paritosh Singh

Case study · P/02 · AI agents · causal measurement

RevenantA payment-recovery agent that proves what it caused

Most recovery tools report how much they recovered. Revenant reports how much it recovered that would not have recovered anyway, and it is willing to say "no evidence of value" about its own work. Built for the Razorpay AI Buildathon 2026, AI Revenue Recovery track.

Read the code ↗
coverage of the true lift over 2,000 runs
93.8%
interval error caught by its own harness
38%
stratified randomised holdout
50/50

The problem

Gross recovery is a vanity metric. It counts payments that customers would have retried on their own, so a recovery tool can look valuable while changing nothing. The only honest number is the incremental lift: recovery with the agent minus recovery without it.

What I built

Keeping the model on a leash

The AI never decides whether money moves. A deterministic policy chooses the recovery action. The LLM only maps unfamiliar decline reasons to a broad failure class, and trusted code resolves that class to a specific action, so a prompt injection cannot target a specific retry. This closed a real injection path found in adversarial testing.

A guardrail layer can veto the agent and every veto is recorded as evidence. Terminal declines are never retried, attempts are capped, and a circuit breaker halts a batch on genuine execution faults.

Results

Stack

More projects

All projects →