> ## Documentation Index
> Fetch the complete documentation index at: https://docs.pyai.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Sim private pilot

> Replay synthetic callers against an approved agent and gate a candidate release.

Use an approved synthetic caller to test a specific agent revision. A scenario names an 8 kHz voice fixture, when it starts speaking, the background noise level and the phrase the agent must say. These paths belong to the private pilot instance.

| Operation | Result |
| - | - |
| `POST /v1/sim/suites` | Save an immutable suite of synthetic callers and expected phrases. |
| `POST /v1/sim/suites/from-call/{call_id}` | Match a reported Trace rule to an approved synthetic scenario. Caller quotations stay out of the test. |
| `POST /v1/sim/runs` | Run the suite against a registered candidate build and target. Use an idempotency key for every logical run. |
| `GET /v1/sim/runs/{id}` | Inspect the recorded assertions and candidate revision. |
| `POST /v1/sim/ci/gate` | Check the run against the expected suite, target and revision. HTTP 409 blocks release. |

For example, the expected opening phrase is “this call is recorded.” If a candidate greets the caller and goes straight to scheduling, the assertion fails. A completed test only covers the assertions in that suite.

The runtime includes an Omni-compatible WebSocket driver and a Twilio driver for registered QA numbers. Both need workspace-specific qualification. A WebSocket run transcribes the captured agent audio. A phone run uses a signed carrier speech result. The CI client exits unsuccessfully for missing evidence, a failed assertion or a different release revision.

[Inspect a Trace finding](https://docs.pyai.com/guides/trace-guardrails.md), [see the example](https://pyai.com/sim#sim-sample) or [request pilot access](https://pyai.com/contact?topic=Sim).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.