Docs
Sign in

Policy Simulator

The Policy Simulator lets you test a policy against sample text to see what it would do. It has four tabs, but the results are not yet dependable, so treat it as a preview.

Screenshot to add: The Policy Simulator with the Single Test tab: input on the left and results on the right.

Open the Simulator

Go to Studio → Governance → Policy Simulator (/governance/simulator). It is titled Policy Simulator: "Test policies against real inputs — single shot, batch, regression suites, or A/B comparisons." Tabs: Single Test, Batch Mode, Test Suites and A/B Compare.

Single Test

  1. Pick a policy

    Under Simulation Input, choose a Policy ("Select a policy…").

  2. Choose the check type

    Pre-LLM (prompt) or Post-LLM (response). This choice does not change the result today.

  3. Enter the input

    Type text, a response or a tool call in Input, or use the quick examples: PII, Injection, Secret, Clean and Medical.

  4. Simulate

    Click Simulate (Clear resets). Before a run the right side says "Results appear here".

Results show a decision (ALLOW, BLOCK, REDACT or HUMAN REVIEW) with the time taken and "N rule(s) triggered", Rule Evaluations (each TRIGGERED or PASSED), a Redaction Diff (Original against Redacted), and Save as Test Case.

The checks are simple text matches for PII patterns, secret patterns and a few prompt-injection phrases. Model, tool, budget and egress policies are not really simulated and return ALLOW.

Batch Mode

Batch Evaluation: choose a Policy and Check Type, paste Inputs (one per line) and click Run Batch. A bar counts Allow, Block, Redact, Review and Errors, followed by a table. Messages: "Select a policy first.", "No inputs found.", "Batch complete: N inputs evaluated."

Test Suites

Suites are meant to be groups of saved test cases you can re-run. Click New Suite, name it and click Create; Run Suite shows PASS or "FAIL (got X)" and a pass-rate bar.

A/B Compare

Pick Policy A and Policy B, a Check Type and an Input, then Compare. The result says "Policies diverge: …" or "Policies agree: both returned X", with both results side by side. Messages: "Select both policies.", "Enter an input.", "Comparison failed."

Known gaps