The evals we run before any agent touches production
Replay testing, adversarial invoices, and a fake ERP with a grudge.
Every agent framework on earth markets the same fantasy: press a button, disappear, come back to finished work. We spent two years running agents in production at 300+ companies, and the data says something different. The deployments that succeed aren't the ones where the agent never asks a question — they're the ones where the agent asks exactly the right questions, at exactly the right moments.
This is the design story behind that conclusion.
Our first invoice agent, in 2022, was maximally autonomous. It extracted, matched, posted, and reported — no human in the loop, by design. In week one it processed 340 invoices flawlessly. In week two it confidently posted the same invoice twice, because the vendor had re-sent it with a corrected due date, and our dedup logic saw two different documents.
The error rate was 0.6%. For a demo, that's a rounding error. For a finance team, it's an incident report. The customer didn't ask us to make the agent smarter — they asked us to make it stop at exactly the moment it was about to be usefully dangerous.
The question was never "can the agent do the task?" It was "does the agent know when it shouldn't?"
So we inverted the architecture. Instead of a confidence score that silently gates actions, every workflow step now declares its own escalation contract: what the agent should do when confidence drops, when the input looks weird, or when the cost of being wrong exceeds the value of being fast.
In practice, that contract looks like this:
step: post_to_erp
on:
confidence < 0.94 → escalate(reason, evidence, best_guess)
duplicate_suspected → escalate("po-match", block: true)
amount > $10_000 → require_approval(finance)
default: act
Three things happen when an agent escalates well. The human gets context, not a question — the invoice, the mismatch, the agent's best guess, one click to resolve. The team gets a signal — every escalation is a named, countable exception. And the agent gets a lesson — resolved escalations feed back into guardrails, so the same question rarely comes back.
Across finance, support, and supply-chain deployments, three patterns held:
Autonomy is not a percentage you maximize. It's a budget you spend, workflow by workflow, and the market sets the exchange rate. A payment-chasing agent can act alone at 90% confidence because a polite email is reversible. A wire-transfer agent shouldn't act alone at 99%, because wires aren't.
Pi Agents 2.0 ships with this thinking baked in: escalation contracts on every step, evidence bundles on every hand-off, and a feedback loop that makes questions rarer over time. The agents still do the work. They're just honest about the edges.
If you run an operations team and this matches your reality more than the "full autonomy" demos do — we'd like to meet your worst workflow. Book a demo.
Replay testing, adversarial invoices, and a fake ERP with a grudge.
Find the highest-ROI workflow to automate first — no consultants.
Agents that plan 10+ step workflows and know when to stop and ask.