Rules and guards
What a rule can see
Section titled “What a rule can see”Shield’s rules follow the Principal, Action, Resource, Context model.
| Element | What it holds |
|---|---|
| Principal | The agent, its version and its environment, and the end user or service it acts for, taken from the token it presents |
| Action | A tool call, a model call or an outbound request |
| Resource | The tool or MCP server, the model, the destination domain, the data class |
| Context | The arguments (an amount, a recipient), the time, and the trajectory so far: steps taken, money spent, data classes read, whether untrusted content has entered |
You do not write these rules by hand. The control plane compiles them from the structural
sections of the Policy (tools, data, limits, approvals),
and the panel shows the rule each line of the Policy became. A line that cannot be compiled
fails the run with its line number and the reason.
Where Shield intercepts
Section titled “Where Shield intercepts”| Point | How the agent reaches it | What Shield sees |
|---|---|---|
| MCP proxy | Streamable HTTP, and a wrapper for local servers that speak over stdio | The list of tools a server offers, every tool call and every result |
| Model gateway | The agent’s base URL for its model provider points at Shield. OpenAI-compatible and Anthropic-format APIs | Tokens and cost, the model requested, the tool calls the model plans. Streamed answers pass through without being buffered |
| Egress allowlist | A forward proxy for outbound connections | The destination domain of each connection |
On the list of tools, Shield checks the descriptions and pins them. On a tool call, it takes the decision. On a result, it labels the data class, marks untrusted content, looks for injected instructions and masks where a rule says so.
How a decision is taken
Section titled “How a decision is taken”A decision uses only what Shield holds locally: the compiled policy, the trajectory of the session and its counters. Nothing in the path of a request calls the control plane, so the control plane being slow or down does not slow or stop the agent.
The answer to an action is one of five: allow, deny, require approval, transform (mask part of it, for instance) or throttle.
Guards
Section titled “Guards”| Guard | What it does |
|---|---|
| Permission | Blocks tools, arguments and destinations the Policy does not allow, before the call happens |
| Data | Stops personal data, secrets and classified data from leaving in a tool call or an answer; masks where the rule says so |
| Budget | Stops a task or an agent that exceeds its cost, tokens, steps or tool calls |
| Rate and loop | Limits frequency and concurrency; cuts repeated identical calls and retry storms |
| Trajectory | Decides on the whole session instead of on one call |
| Manifest pinning | Detects an MCP server whose tool descriptions or schemas changed after it was approved, and holds the new version until someone approves it |
| Approval | Holds an action and asks a person, with the trajectory attached |
| Kill switch | Stops an agent, a version, a tool, a connector or an environment |
Approval and the kill switch have their own page: Approvals, budgets and the kill switch.
The built-in trajectory rule
Section titled “The built-in trajectory rule”One trajectory rule comes with Shield: once untrusted content has entered the session and private data has been read, sending anything outside needs approval.
Each of the three steps is harmless alone. An agent reads a web page, looks up a customer record and sends an email many times a day. The combination is the shape of an exfiltration through injected instructions, and it is only visible to a rule that looks at the whole session.
Manifest pinning
Section titled “Manifest pinning”When an administrator authorizes an MCP server in the panel, OverMind stores a fingerprint of its tools: names, descriptions and schemas. In production Shield compares what the server announces with that fingerprint. A difference holds the new version and raises the Tools changed alert, which clears when the change is approved or reverted.
A denial the agent can read
Section titled “A denial the agent can read”A denied action comes back to the agent as a structured tool error that says why: needs approval, over budget, destination not allowed. The agent can tell the user what happened and offer the next step, instead of failing blindly or retrying the same call.
Detectors
Section titled “Detectors”Detectors look at content. Rules decide; detectors only give rules something to read.
| Detector | When it runs | Effect |
|---|---|---|
| Deterministic checks: patterns, secrets, formats of personal data, canary tokens, schema validation | Inline, on every call and result | Their result is a fact a rule can decide on |
| Classifier for injected instructions | Only where untrusted content enters the context, within its own time budget | Sets a taint label on the session. It never blocks by itself |
The taint label is what the trajectory rule reads when it asks whether untrusted content has entered. A classifier that misses an injection does not open the door: the permission, data and budget guards still apply to whatever the agent tries next.
The definitions of personal data cover Spanish and Mexican identifiers as well as the common international ones. The list is in What leaves your network.