Skip to content

What a run does

A run executes a set of tests against one version of an agent and reports a rate for each. It is started by a pull request, by the nightly schedule or by hand, and it always follows the same five steps.

  1. 1PlanRead the Policy and the connection level. Pick the tests and fix their seeds.
  2. 2SandboxStart the agent's surroundings: generated mocks, synthetic data and Shield recording every call.
  3. 3ExecutePlay each test K times with simulated users.
  4. 4JudgeDecide each execution: code checks for facts, a model for the criteria that need judgment.
  5. 5ScoreScore the four gates, compare with the baseline test by test and publish the result.

The engine is the overmind command. It runs on a developer’s machine, in your CI job or on a hosted runner, and in all three it does the same thing. The repository is read where the command runs; it is not uploaded. A run can also start from the panel, in a hosted sandbox that copies the repository for that run: see Run from the panel.

The plan starts from two inputs: the Policy and the agent’s connection level.

  • From the catalog, it picks the tests for the agent’s type that the connection level can run, minus any an administrator switched off.
  • From the Policy, it generates business cases for every must, never and escalate rule.
  • A test the agent cannot run is recorded as skipped, with its reason. Skipped tests lower coverage, not the score.
  • It fixes K seeds per test.

Each run gets its own network with no route to the outside. Inside it are the simulated users, the agent, Shield and the mocks.

  • Tool calls go to mocks. OverMind generates one mock per MCP server from the schemas of its tools. Mocks never call anything real.
  • Mocks keep state. They start from synthetic records in the agent’s languages: customers, orders, invoices. When the agent calls cancel_order, the order is cancelled in the mock. “The order was cancelled without confirmation” is then a fact the judge reads from the mock’s state, not an opinion about the conversation.
  • Shield sits in front of the mocks. It records the tool trace, injects faults where a test asks for them and measures what it would add in production.
  • Model calls are the one exception to the closed network. The agent still needs its model, so those calls leave through Shield’s gateway, which allows the model hosts named in the Policy and nothing else. Every other outbound attempt is refused and recorded.
  • Limits apply to the run itself: CPU, memory, time and model spend.

A test can attach a scenario to the mocks: records loaded in advance, a hostile tool result such as an instruction hidden in the body of a ticket, or a fault at a given call. To change a fixture or a response yourself, put your version under overmind/mocks/ in the repository.

At connection level 01 there are no mocks, because OverMind does not know the agent’s tools. The run talks to the URL you gave it and judges the answers.

Every conversation in a run is driven by a simulated user with a goal, a language and a limit of turns. There are five profiles: legitimate, confused, malicious, with limited permissions, and trying to bypass a rule. Each business case is played with all five, because a rule that holds for a cooperative user often gives way to an insistent one.

Attacks come from the catalog, written by hand in Spanish and in English. For some families the generator also writes variants. Forbidden content is never generated: those tests use hand-written requests and only check that the agent refuses.

An agent does not answer the same way twice, so one attempt proves little. Each test executes K times, and its result is a rate: “passed 16 of 20”.

A seed is the number that fixes one execution. Every random choice derives from it: who the simulated user is, how they phrase things, what data the mocks hold and when a fault happens. Running the same seed again replays the same execution, as long as the agent gives the same answers.

That is what makes a finding reproducible with one command:

Terminal window
overmind run --level standard --seed 2923588078248863 --only SEC-EXA-002

--seed picks the execution and --only picks the test.

Level K Use it for
smoke 3 A quick first result, and a fast signal while developing. Load is not measured
standard 10 The default gate on pull requests
deep 20 Before a release or an audit

At standard and deep, an adaptive planner spends extra seeds only where the rate is ambiguous: a test whose result is too close to its threshold to call gets up to K more executions. Tests with a clear result get none.

Every run carries a budget for model spend. When it is reached, the planner stops adding seeds and the run says so.

From connection level 02, and at standard and deep, a run also measures load.

  • Virtual users run complete legitimate tasks from start to finish, not single requests.
  • Concurrency rises in steps, up to 1,000 concurrent users, until latency per task passes the Policy’s threshold or the error rate becomes unacceptable.
  • Each step records latency at p50, p95 and p99, the error rate and the cost per task.
  • The capacity factor is the number of users the agent sustained divided by expected_load in the Policy. The deploy criteria ask for 1.5 or more.

Cost is counted, not estimated from an invoice: tokens are counted on every model call and priced from a versioned price table. Attacks that try to run up the bill report what each task cost and whether the agent stopped by itself.

Before anything leaves the machine that ran the tests, a masker replaces personal data, secrets and canary tokens in every piece of evidence. Evidence is then uploaded and identified by its hash, followed by the run with the result of every test. The control plane scores the run, compares it with the baseline, opens findings and raises alerts.

Every request OverMind sends to an agent carries the X-Overmind-Tag header with the run id. Use it to filter test traffic out of your dashboards, or to find the traces of one run.