What is Batch Simulation?
A Batch Simulation runs a policy version against a large set of historical execution data, then compares the results against a baseline version. Think of it as a regression test suite — before deploying a new version, you can see exactly how it would have performed on past traffic.Batch Simulation vs Dry Run: A Dry Run tests one input at a time for quick iteration. A batch simulation tests hundreds or thousands of inputs at once and produces aggregate metrics (match rate, metric deltas, per-rule statistics). Use dry runs during development; use batch simulation before deployment.
What You Get
| Metric | Description |
|---|---|
| Match Rate | Percentage of inputs where at least one rule matched |
| Per-Rule Stats | How many times each rule matched and its metric contribution |
| Metric Delta | Difference in aggregate output between baseline and candidate |
| Policy Impact | Matched count delta, match rate delta, metric value delta |
Running a Simulation
Console
Navigate to a policy group → Simulation tab → select candidate version, baseline version, date range → click Start.CLI
COMPLETED or FAILED:
Dataset Types
| Type | Source | Description |
|---|---|---|
HISTORICAL | EXECUTION_LOGS | Re-run past execution inputs from the specified date range |
MANUAL | REQUEST_BODY | Provide inputs directly in the request body |
UPLOADED | S3_BUCKET | Use a pre-uploaded CSV or JSON dataset from S3 |
File Upload Dataset
Upload a CSV or JSON file to use as simulation input. This is useful when you have custom test data that doesn’t come from execution history.Supported Formats
- CSV
- JSON
First row must be a header with fact keys. Each subsequent row is one test record.Type inference: Numbers, booleans (
true/false), and strings are automatically detected. Empty values become null. Quoted fields with commas are supported.Download a Template
Don’t know the expected columns? Download a template pre-filled with example values based on the version’s required facts:- Console
- CLI
- API
In the New Simulation dialog, select File Upload (CSV / JSON) as dataset type. Click CSV or JSON under “Download template.”
Upload & Run Simulation
- Console
- CLI
- MCP
- Go to Batch Simulations → New Simulation
- Select policy group and target version
- Set Dataset Type to File Upload (CSV / JSON)
- Drag & drop your file or click to select
- Wait for the Uploaded badge
- Click Start Simulation
Managing Simulations
Best Practices
- Always set a baseline. Without a baseline version, you only see absolute numbers — no deltas.
- Use a meaningful date range. At least 7 days of data for statistically significant results.
- Check
maxRecords. Start with 5,000–10,000 for quick validation. - Run simulation before every production deployment.
Next Steps
Dry Run
Quick single-input validation during development.
A/B Testing
Compare versions with live production traffic.

