Architecture
OverMind has two halves. Whatever touches your agent runs in your network: the engine that tests it, Shield, which governs it in production, and the Builder that proposes fixes. Whatever stores and shows results is the control plane: one API, one database and the panel. This page is about the line between the two, because that line decides what OverMind can ever see.
Your network: testing
A laptop or a CI job
- Engine and CLI
- Agent under test
- Shield, recording calls
- Generated mocks
- Builder
Your network: production
Only if you enable Shield
- Agent
- Shield
- Your MCP servers
- Your model providers
Control plane
Renaiss, your cloud account or your servers
- OverMind API and worker
- PostgreSQL 18
- Email (SMTP)
- Panel: web and desktop
Models
One endpoint per role
- Judge
- Decision model
- Second opinion
- Attack and user generator
Components
Section titled “Components”| Component | What it does | Where it runs |
|---|---|---|
| Panel | Shows agents, runs, findings, alerts and Shield. A static web application, also packaged as a desktop application | Your browser or desktop |
| Control plane | The API for the panel, the CLI, Shield and integrations. Scores runs, compares them with the baseline, opens findings, raises alerts, schedules nightlies, routes judge calls and signs the policy bundles Shield loads | Renaiss, your cloud account or your servers. See Deployment |
| Engine and CLI | Plans the tests, starts the sandbox, drives simulated users against the agent, judges each execution, masks the evidence and uploads it | Your laptop and your CI. Hosted runners cover endpoints the control plane can reach, scheduled nightlies and runs from the panel |
| Shield | The proxy between an agent and its tools and models | Next to the agent: inside the sandbox during tests, in your network in production |
| Builder | Turns a finding or a request to enable Shield into a pull request. It never merges | Your CI by default. A hosted sandbox if you opt in |
| Catalog | The attack tests, the repository checks and the Policy templates, written in Spanish and in English | Embedded in the binary and versioned with it |
The control plane, the engine and the CLI are one binary, overmind. It ships as signed static
binaries per platform, as a container image and through npx @renaiss/overmind, a launcher
that downloads the binary for your platform. Shield is a second static binary with its own
image.
The control plane needs PostgreSQL 18 and nothing else: no message broker, no cache server and no object store. Background jobs are rows in the database, and so is evidence. An S3-compatible store for evidence is optional, for large installations.
The path of a run
Section titled “The path of a run”A run happens where the CLI runs. The control plane only hears about it at the end.
- Plan. The engine reads the Policy from the repository, the agent’s connection level and the catalog, and picks the tests and their seeds.
- Sandbox. It starts a network with no route outside. Mocks are generated from the schema of each MCP tool; they keep state and are deterministic per seed, so “the customer record was deleted” is a fact read from the mock, not an opinion about a transcript.
- Execute. Simulated users talk to the agent. Its tool calls go through Shield to the mocks, which is where the tool trace is recorded and where faults are injected: errors, timeouts, hostile tool results. The agent’s own model calls are the one thing that leaves the sandbox, through Shield, to the model hosts the Policy names.
- Judge. Code checks decide whatever is a fact. Rubrics go to the judge model, one criterion per call. See Judge and review.
- Mask and upload. Personal data, secrets and canary tokens are replaced in every piece of evidence before it leaves the runner. Then the evidence and the results are uploaded.
- Score. The control plane scores the four gates, compares the run with its baseline test by test, opens findings and raises alerts.
| Stays where the CLI runs | Reaches the control plane |
|---|---|
| The repository and everything read from it | Test results: passed n of K, per test |
| Credentials. They are passed by reference and resolved locally | Evidence after masking: transcript, tool trace, mock state, configuration |
| Evidence before masking | Capacity and cost measurements |
| The sandbox, the mocks and their synthetic data | Branch, commit, pull request number and the versions of Policy, catalog and judge |
Every request OverMind sends to an agent carries the header X-Overmind-Tag with the run id,
so test traffic can be told apart in your monitoring. What the data pages add to this table is
in What leaves your network.
The path of a Shield decision
Section titled “The path of a Shield decision”In production Shield sits in the request path of your agent, so it decides alone.
- A decision uses local state only: the compiled policy, the trajectory of the session and its counters. Nothing in the request path calls the control plane.
- Policy comes in as a signed bundle. The control plane compiles the Policy file, signs the result, and Shield pulls it. Shield verifies the signature before loading a bundle and keeps the last good one.
- Telemetry goes out. Shield sends decisions, counters and masked evidence of violations to the control plane, and exports traces and metrics with OpenTelemetry. The traffic itself stays in your network.
- Without the control plane, Shield keeps working with its last bundle and buffers its telemetry.
- When Shield itself cannot decide, the risk of the tool settles it: reads fail open, writes and destructive actions fail closed. Both are configurable.
Shield intercepts three things: MCP traffic, model calls and outbound connections. What it does with them is in What Shield is and Rules and guards.
The Builder
Section titled “The Builder”A Builder job takes a finding, or a request to route an agent through Shield, and returns a branch and a pull request. It works in an ephemeral container with the repository, an edit tool and a test tool, with no secrets and no network beyond its model endpoint. Changes are limited to an allowlist of paths (agent configuration, prompts, the Policy, deployment manifests) and to a maximum size; anything outside becomes a suggested patch on the finding. The pull request opens only when the detecting test passes K of K on the patch. See Findings and fixes.
| From | To | How | Purpose |
|---|---|---|---|
| Panel | API | HTTPS, session | Everything a member does |
| CLI or CI job | API | HTTPS, API key with scopes | Read the baseline and the catalog; upload masked evidence and results |
| Engine | Judge model | HTTPS, routed by the control plane | Rubric calls |
| Agent | Shield | MCP and model API calls | Every tool call and model call of an agent behind Shield |
| Shield | MCP servers and model providers | The same protocols | The calls the Policy allows |
| Shield | API | HTTPS | Pull signed bundles; send decisions, counters and masked violations |
| API | PostgreSQL | Database connection | All stored data |
| API and worker | SMTP server | SMTP | Sign-in codes and alert emails |
| Worker | Slack and webhooks | HTTPS | Alert delivery |
| GitHub or GitLab | Your CI | Their own mechanism | Trigger overmind ci --gate on a pull request |
Threats to OverMind itself
Section titled “Threats to OverMind itself”A testing tool handles hostile input by design, and a proxy in the request path is a new thing that can fail. These are the cases we designed against.
| Threat | Answer |
|---|---|
| An agent under test tries to leave the sandbox or attack the runner | The sandbox has no route outside. The agent’s output is treated as data and never executed. Each run has resource limits |
| Instructions hidden in your repository steer the Builder | The Builder holds no secrets. The path allowlist and the size limit are checked by code, not by the model. A person merges |
| One organization reads another’s findings or evidence | Every row of customer data carries its organization, and every query made for a session or an API key filters by it. Each resource has a test that proves it. Evidence is encrypted per organization |
| Evidence is altered after the fact | Evidence is addressed by its hash. Evidence Packs are signed. Shield’s decision log is hash-chained |
| A forged policy bundle reaches Shield | Bundles are signed. Shield verifies before loading and keeps the last good one |
| Shield becomes the outage | Decisions are local, the last good bundle stays loaded, the fail mode follows the risk of each tool, and the latency Shield adds is measured in every run |