A customer writes in.
“Order HW-48213 arrived with a cracked lamp base. Can I get my money back?” The agent picks up the ticket and Sextant opens a trace. Two lines in the agent’s code were enough.
import sextant sextant.init(project="refund-agent")
Sextant traces every step your AI agents take, scores each run against the evals you write, and stops regressions before your customers find them.
OpenTelemetry-nativePython, TypeScript and GoCloud or your own VPC
halloway/refund-agent/run_8f3a2c71
Halloway’s support agent handles refunds for an online home goods store. This is one of its 41,000 runs yesterday, as Sextant recorded it.
“Order HW-48213 arrived with a cracked lamp base. Can I get my money back?” The agent picks up the ticket and Sextant opens a trace. Two lines in the agent’s code were enough.
import sextant sextant.init(project="refund-agent")
Every model call lands in the trace with its prompt version, inputs, outputs, tokens and cost. Nothing is sampled away unless you ask for it.
Tool calls and retrievals are spans too, with the exact chunks the model saw. Here, section 3.2 of the refund policy: refunds above $250 need a manager’s approval.
No exception, no error. The payments API returns a 200 and the customer gets a polite reply. To logs and uptime dashboards, this is a perfect run.
Sextant scores every run against the checks your team wrote. This one is a few lines of Python. It failed 530 ms after the run ended and pointed at the span that broke the rule.
@eval(threshold=1.0) def refund_within_policy(run): r = run.tool_call("issue_refund") if not r or r.args.amount <= 250: return True return r.args.approval_id is not None
The same eval runs on live traffic. Ten minutes below 95% and the owning team hears about it, with the deploy that caused the drop and the runs behind every point on the chart. They rolled back in eleven minutes.
The run is now case 118 in the regression set. Every prompt change runs against it in CI, and a pull request that would refund without approval again turns red and can’t merge.
| Eval | main | 7b2d0f5 | Δ |
|---|---|---|---|
| refund_within_policy | 100% | 96.4% | −3.6 |
| grounded_in_sources | 0.971 | 0.974 | +0.003 |
| tone | 0.91 | 0.92 | +0.01 |
| latency p50 | 4.9 s | 4.1 s | −0.8 s |
“We used to learn about agent bugs from support tickets. Now we learn about them from a red check on the pull request.”
In production at
Most teams send their first trace within an hour and gate their first deploy within a week.