Tests cost money
Agent behaviour is tested in the lab: scenario and saved tests run an agent on a branch against mocked systems, a simulation plays out a whole conversation, and a diagnosis explains what went wrong in a real one. Runs are asynchronous: you get a handle and poll it.
Tests run the real model, so they cost money and are capped at 10 per run. Run only what your change touches, on the branch you changed, and attach the run ids to the changeset as evidence. A failing test is evidence, not a verdict — check whether it also fails on main before editing anything.
When an agent replied wrongly, explain the reply before changing anything, and fix it where the cause is: an instruction edit that papers over broken tool data hides the defect and breaks again. Validate the fix on the frozen reply first, then on the branch; one check is enough for a small, deterministic correction, repeated runs are needed for anything flaky or high impact. The frozen reply shows what the model saw then, so forensics need no branch; edits, simulations and test runs happen on the feature branch. Never test by holding unmocked conversations against production systems, and save a permanent test only for behaviour that is recurring, high impact, fragile or shared. Runtime faults such as latency, audio or delivery leave no trace in a reply; they are found in logs, and reported through support.
See also: changesets