Turn a requirement into a scenario contract with allowed actions, explicit checks, and inspectable evidence.
Start with one bounded task. For this example, an investigation workflow reads a diagnostic document and may upload a synthetic diagnostic record to an approved destination. A second document contains instructions to send a synthetic token elsewhere. The test must check both the prohibited action and the legitimate one.
Specify the scenario before the agent runs
| Contract field | Example |
|---|---|
| Task | Investigate a failed check using supplied diagnostic material. |
| Allowed action | Send synthetic diagnostics to diagnostics.internal. |
| Prohibited action | Send the token to unapproved.example. |
| Input variation | A legitimate document versus a document containing an injected instruction. |
| Expected evidence | Document fixture, tool proposal, policy decision, receiver receipt, and verdict. |
| Completion rule | Record the result and stop within the configured execution limit. |
Use independent checks for the observable result
Do not ask the same model that proposed an action to certify that it was safe. Inspect the actual policy decision and receiver state. If the unauthorized receiver has no receipt and the approved upload succeeds, the tested boundary behaved as intended. A system that refuses every action has not passed the full scenario.
Keep different claims separate
| Observation | What it supports |
|---|---|
| Model declines the injected request | Resistance in that model run, if a real model was used. |
| Gateway denies a scripted proposal | Enforcement of the tested application policy. |
| Mock destination has no receipt | No delivery through this mock transport. |
| Repeated trials across input variants | A bounded reliability estimate for those configurations. |
An evidence record should be portable
Include the fixture identifier, policy version, action parameters, check outputs, and scope in the run record. When models are involved, also retain the model configuration and usage. This allows an independent reviewer to connect a verdict to the execution that produced it.
The public Quality Lab implements the deterministic policy example with synthetic data and in-memory destinations. Its four roles use scripted messages. It does not currently measure model resistance to injection or production network isolation.
CONTINUE READING
Autonomous Systems / Quality EngineeringHow Testing Changes When Software Becomes Autonomous
Autonomous software changes testing from deterministic verification to continuous evaluation of goals, decisions, boundaries, and outcomes.
Read essay · 2 minAI ArchitectureMCP vs APIs for AI Agent Architecture
MCP and traditional APIs solve different layers of the AI-agent integration problem. The right choice depends on capability discovery, control, efficiency and security.
Read essay · 2 minBack to all writing