An AI agent that takes a complaint from “where is my refund?” to a verified outcome, plus an evaluation platform that measures whether it can be trusted with money.
Built for a fictional electronics store: order status, refund request and damaged item.
The run pauses with LangGraph interrupt() and a PostgreSQL checkpointer, survives restarts, and only updates the ticket with the status the payment provider confirmed.
Identity comes from auth, never the model. Proposals are immutable and hashed, and the reviewer's decision is re-checked against the hash before execution.
Each attempt gets a clean world with injected faults, and four deterministic evaluators score the business state: outcome, policy, trajectory and response. No LLM judge decides whether money moved correctly.
Complaint → evidence → reviewer approves → exactly one provider refund.
An ineligible refund is explained with policy, and no money moves.
The provider accepts but the reply is lost; reconciled by key, still one refund.
The reply says refund issued while the provider holds none; the evaluators catch it.
Which tasks improved or regressed between prompt v1 and v2.