How it works · 34 of 49 Advanced

What is a control layer for AI agent actions?

Checks on actions, outside the model

The control layer: An agent's model proposes actions; a control layer decides which ones run. It sits between the model and its tools, outside the model, and is ordinary code: each tool limited to what the task needs (read-only where possible), rules checked on every call (a refund limit, only the customer's own account, private data never to a public place), irreversible actions held for a named person, every decision logged, and a switch that stops the agent at once. The rules trust records, not words: text in a document or the model's own claim that something was "already approved" counts for nothing. A prompt that asks the model to follow the policy is not a control; it is a request.

Loading the animation…

Say it like this A control layer is code between an agent's model and its tools that decides which proposed actions run: tools limited to the task, rules checked on every call against real records, irreversible actions held for a named person, everything logged and a stop switch; asking the model nicely in the prompt is not a control.

Under the hood — for builders
The source, in its words
OWASP ("LLM06:2025 Excessive Agency"): root causes "excessive functionality", "excessive permissions", "excessive autonomy". "Implement authorization in downstream systems rather than relying on an LLM to decide if an action is allowed or not."
Terms
Control layer: code between the model and its tools. Deterministic: the same input always gets the same decision, no AI call. Human-in-the-loop: a person approves before it runs.
In our papers: rules outside the model
nomos-policy-checker-for-ai-agents: each policy sentence becomes a rule checked "in millionths of a second, with no AI call"; claims in text are not facts.
Run here: 10,000 actions
Read 60%, draft 20%, refund 15%, delete 5%. 3% of refunds and 4% of deletes are wrong. A prompt-only policy stops half; Priya catches 90%. Rates are ours.
In our papers: who asks
mcp-tools-each-side-expects-the-other-to-ask: in 32 of 41 apps a tool can act with nobody asked; of 168 tools that ask, 130 go ahead if the question is never shown.
In our papers: gates and reach
openappa-deterministic-gate-for-ai-agents: "may this data go to this destination?" before every call. ncsc-ai-agent-safety-checklist: shrink the "blast radius", log, and halt at once.
Measure it
Actions blocked by each rule · approvals per day and time to approve · actions run with no check · time from stop switch to stopped.
Watch out
Approval fatigue: too many asks get rubber-stamped. Rules can block real work; test them on past traffic first. Our run is a toy.
Sources
OWASP GenAI Security Project, "LLM06:2025 Excessive Agency", read in session · papers mcp-tools-each-side-expects-the-other-to-ask, nomos-policy-checker-for-ai-agents, openappa-deterministic-gate-for-ai-agents, ncsc-ai-agent-safety-checklist, checked 19 Nov · action simulation, Python, 19 Nov 2026.

What happens in the the control layer animation, step by step?

  1. An agent cleaning up test data. Its tools can read, draft, refund and delete. What stops a wrong delete? Not the model's good intentions.
  2. With no control layer the model's choice is final. In our papers: in 32 of 41 assistant apps a tool can delete, pay or send with nobody asked.
  3. Your turn: tap each action on the console to see what checks it.
  4. With a glass cover the same reach stops at a check outside the model. A named person sees the request names the live table, not the test one.
  5. Rules run as code on every action and trust records, not words. In the NOMOS tests, policy breaks fell from 66 in 100 to 3 in 116, and fake approvals from 35 in 100 to 0.
  6. Then shrink what the agent can reach, log every action and keep a stop switch. The model proposes; code and people decide. Next: famous architectures.

What everyday example explains the control layer?

A glass cover over the red button: the hand can reach it, only a named person's key can lift it.

Why should a team care about the control layer?

Once an agent can change data, its worst action is the risk, not its average answer. Where the checks live, in the prompt or in code, decides whether a mistake or a planted line becomes an incident.