Step 5 of 7: Test decisions¶
Before an agent relies on the model, ask it the question an agent will ask: may this go there? Use text and records that look like your real traffic.
opp-engine check acme.opp.yaml --dest external_ai \
"Email [email protected] about matter M-2026-0042 and the special discount."
Records work too, as JSON:
opp-engine check acme.opp.yaml --dest partner --dataset public.customers \
'{"email": "[email protected]", "plan": "pro"}'
Read the answer¶
| Field | Meaning |
|---|---|
verdict |
The strictest action over all findings: allow, generalize, pseudonymize, redact, review or block |
findings |
What was found, where, its class and sensitivity, the action and the rule that decided it |
safe_content |
The text to send instead; empty when the verdict is block or review |
decision |
A record without data values: id and expiry, destination and how it processes content, digests of the content and the model, the rules applied, and any obligations |
--dest is one of internal, partner, external_ai or public. The command exits with code 2 when the
verdict is block, so you can use it in scripts.
Tune¶
If a decision is wrong, fix the model, not the agent: certify or correct the finding, add a concept or identifier, or add a rule override with a reason. Then validate and check again.
Check that it worked¶
Write down five or ten checks your organization cares about, with the verdict you expect, and confirm each one. Keep them; they are your regression tests when the model changes.