Skip to main content

What is Impact Simulation?

An Impact 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.
Impact Simulation vs Dry Run: A Dry Run tests one input at a time for quick iteration. An Impact 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 Impact Simulation before deployment.

What You Get

Running a Simulation

Console

Navigate to a policy group → Simulation tab → select candidate version, baseline version, date range → click Start.

CLI

metricConfig.targetVariable points at any key in the response — input facts, mutated facts, or generatedVariables (including {key}__delta keys produced by MUTATE_FACT and INCREMENT_FACT). Pick the variable whose aggregate behavior you want to compare across versions.
Simulations run asynchronously. Poll until status is COMPLETED or FAILED:

Dataset Types

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

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.
Max file size: 10 MB

Download a Template

Don’t know the expected columns? Download a template pre-filled with example values based on the version’s required facts:
In the New Simulation dialog, select File Upload (CSV / JSON) as dataset type. Click CSV or JSON under “Download template.”

Upload & Run Simulation

  1. Go to Impact SimulationsNew Simulation
  2. Select policy group and target version
  3. Set Dataset Type to File Upload (CSV / JSON)
  4. Drag & drop your file or click to select
  5. Wait for the Uploaded badge
  6. Click Start Simulation

Managing Simulations

Best Practices

  1. Always set a baseline. Without a baseline version, you only see absolute numbers — no deltas.
  2. Use a meaningful date range. At least 7 days of data for statistically significant results.
  3. Check maxRecords. Start with 5,000–10,000 for quick validation.
  4. Run simulation before every production deployment.
Impact Simulation re-executes rules against historical input facts — it does not replay external side effects (webhooks, notifications). Integration calls are always mocked during simulation, and Decision Replay carries the same guarantee.

Next Steps

Dry Run

Quick single-input validation during development.

A/B Testing

Compare versions with live production traffic.