Back to Articles
Article
agentsmodelsarchitecture

Why the Rules That Constrain an Agent Should Live in a Deterministic Layer It Never Sees

ChatGPT Image Jun 21, 2026, 08_54_15 PM.png

For two years the field treated agent safety as a property of the model. We wrote longer system prompts. We fine-tuned for refusal. We red-teamed the weights and shipped the ones that behaved. The implicit theory was that a sufficiently well-trained model would, when handed a tool and a goal, choose correctly on its own. A quieter line of work through 2025 and into this year has reached a different conclusion, and it has reached it from several directions at once.

You do not govern an agent by asking the model to behave. You govern it with a deterministic layer that sits outside the model, evaluates what the agent is about to do against a set of obligations and prohibitions, and renders a verdict the model cannot argue with. The rules live where the model cannot reach them. That is the design decision that actually matters for anyone shipping agents that invoke tools and cross organizational boundaries, and a cluster of recent papers and releases now points squarely at it.

The Permit/Prohibit Engine Was Never Enough

Start with the gap, because the most useful of the new work begins by naming it precisely. In Deontic Policies for Runtime Governance of Agentic AI Systems, Anupam Joshi, Tim Finin, Karuna Pande Joshi, and Lalana Kagal argue that the policy engines we already trust for access control were built for the wrong question (Joshi et al., 2026). XACML, Rego, and Cedar answer "is this action permitted or prohibited?" That covers a real and important subset of governance. It does not cover the rest of it.

Enterprise governance has a richer structure. It specifies what an agent is obliged to do after it acts, for instance notify the CISO once a particular threshold is crossed. It specifies the conditions under which a standing obligation may be waived. It specifies which rule wins when two policies collide. None of that fits inside permit-or-prohibit, which is why the authors reach for deontic logic, the formal logic of obligation, permission, and prohibition that ethics and law have used for a long time before software borrowed it.

Their system, AgenticRei, expresses these policies in OWL on top of the Rei framework and evaluates them at runtime through a high-performance logic engine that runs, in their words, "entirely outside the LLM." The same pipeline governs both the agent's tool calls and the messages it sends to other agents. The choice of vocabulary is the tell. Obligation, dispensation, precedence: these are the categories of an institution, not of a code review.

ChatGPT Image Jun 21, 2026, 08_58_10 PM.png

Why the Rules Live Where the Model Cannot Reach

The phrase "entirely outside the LLM" carries the weight of the whole argument, and the load-bearing word is outside.

Anything you place inside the model inherits the model's surface. It is probabilistic, it is sensitive to phrasing, and it can be talked out of its commitments by a sufficiently clever context. A guardrail expressed as a system prompt is a guardrail the next prompt can erode. A refusal learned in training is a refusal that some distribution of inputs will fail to trigger. We have spent considerable effort discovering, empirically, that the model's own judgment is exactly the wrong place to put a constraint you actually need to hold.

A deterministic engine does not have that surface. It does not weigh the agent's justification, it does not find the request reasonable under the circumstances, and it cannot be flattered. It checks the proposed action against the policy and returns a decision. AgentSpec, from Haoyu Wang, Christopher M. Poskitt, and Jun Sun, makes the case in numbers (Wang et al., 2025). Their lightweight rule language, where each rule is a triggering event, a predicate, and an enforcement mechanism, prevented unsafe executions in over 90% of code-agent cases, eliminated every hazardous action in their embodied-agent tasks, and enforced full compliance from simulated autonomous vehicles. The overhead was measured in milliseconds. A rule that lives outside the model costs almost nothing to check and does not negotiate.

There is a subtlety worth keeping. AgentSpec also used an LLM to generate candidate rules, and there the numbers loosened, with recall around 71% for embodied agents. Writing the policy is a model-assisted, fallible act. Enforcing it is not. The discipline is to keep those two jobs apart.

ChatGPT Image Jun 21, 2026, 08_59_21 PM.png

Governance as Observation, Not Only Permission

A gate decides one action at a time. It does not notice that an agent's behavior is drifting, episode over episode, away from the goal it was given. Some of the more ambitious recent work treats governance as a continuous act of observation rather than a sequence of yes-or-no checks at the tool boundary.

MI9, from Charles L. Wang and colleagues, is the clearest example (Wang et al., 2025). It coordinates six runtime components, among them an agency-risk index, continuous authorization monitoring, goal-conditioned drift detection, and graduated containment strategies that escalate as an agent's behavior leaves its expected envelope. The premise is that agentic systems produce emergent behavior at runtime that no pre-deployment review could have anticipated, so governance has to live in production, watching, rather than in the lab, certifying. Conformance is checked against finite-state models of what the agent is supposed to be doing. When the agent wanders, the system narrows what it is allowed to touch.

This is a different shape from the permit/prohibit engine, and the two are complementary. One adjudicates the next action. The other watches the trajectory. Both sit outside the model, and neither asks the model whether it thinks it is behaving.

Borrowed From the Kernel

The convergence became hard to ignore when Microsoft shipped an open-source toolkit built on exactly this premise, and described its lineage without embarrassment (Siddique, 2026). The Agent Governance Toolkit's central component, Agent OS, is a stateless policy engine that intercepts every action an agent attempts before it executes, at a 99th-percentile latency under a tenth of a millisecond. The blog post calls it, plainly, "the kernel for AI agents."

The analogy is the argument. Operating systems faced a structurally identical problem decades ago: multiple untrusted programs sharing resources and acting on the world, with no individual program trustworthy enough to police itself. The answer was not to make each program virtuous. It was kernels, privilege rings, and process isolation, a mediating layer that every action passes through and none can bypass. Service meshes solved the same problem for microservices with enforced identity. Microsoft's wager is that agents are the next instance of the pattern, and that the mediating layer should speak the policy languages operators already know, which is why Agent OS accepts YAML, OPA Rego, and Cedar.

The timing is not incidental. OWASP published its first Top 10 for agentic applications in December 2025, naming goal hijacking, tool misuse, and rogue agents as distinct risk classes. The European Union's high-risk obligations under the AI Act take effect in August 2026, and the Colorado AI Act becomes enforceable this month. A deterministic enforcement layer is, among other things, the thing that can produce an audit trail a regulator will accept. Virtue does not log.

ChatGPT Image Jun 21, 2026, 09_01_00 PM.png

The Model as Citizen, Not Sovereign

Step back from the engineering and the shape of the idea is older than any of these systems. We do not build functioning institutions by selecting only virtuous people and trusting them to act well unsupervised. We write laws external to the individual, we adjudicate them in venues the individual does not control, and we enforce the outcomes regardless of how persuasively the individual explains themselves. The competence of the person and the legitimacy of the constraint are kept deliberately separate. That separation is what lets us extend real autonomy to people whose every future decision we cannot predict.

The agentic-governance work is the same separation, rendered in software. The model reasons, plans, and proposes. The layer adjudicates. The model is a citizen of the system, not its sovereign. Berkeley's recent operating-model framing makes the organizational version explicit, placing a distinct governance layer alongside the cognitive and coordination layers of an autonomous enterprise rather than folding governance into the agents themselves (California Management Review, 2026).

The reason it is now plausible to deploy genuinely autonomous agents into consequential work is precisely that their good behavior no longer has to be guaranteed by the model. It can be guaranteed, at the boundary, by a layer that is deterministic, auditable, and indifferent to argument. We do not need a perfectly aligned model to ship responsibly. We need a model good enough to be useful and a governance layer rigorous enough to be trusted, and those are two separable engineering problems, which is far better news than one impossible one. The path to more autonomy runs through better external governance, not through waiting for a model we can finally take at its word.

ChatGPT Image Jun 21, 2026, 09_01_59 PM.png

Conclusion and Open Questions

The builders who internalize this will treat the policy layer as a first-class component with its own language, its own tests, and its own owner. They will keep policy authorship, which is fallible and model-assisted, strictly apart from policy enforcement, which is not. They will assume that what cannot be intercepted cannot be governed, and design their boundaries accordingly.

That last assumption is also where the open questions begin.

  1. The interception boundary defines the governance. The layer can only adjudicate actions that cross it, which means tool calls and inter-agent messages are covered while the agent's private reasoning, planning, and any persuasion of the humans in the loop are not. How much of the risk actually lives at the boundary, and how much lives upstream of it?
  2. Obligations require the layer to observe outcomes over time, not just to gate a single action. Who owns the lifecycle of a standing obligation, and how does the system know when one has been discharged or quietly abandoned?
  3. Policy authorship becomes the new bottleneck. If rules are written in OWL, Rego, Cedar, and a half-dozen toolkit-specific dialects, who reconciles them, and what happens when two correctly written policies from two teams contradict each other in production?
  4. Deterministic enforcement produces clean audit trails, which regulators will want. Does the existence of a perfect log change how much autonomy organizations are willing to grant, in either direction?
  5. If the governance layer becomes the real locus of control, it also becomes the highest-value target. What governs the layer that governs the agents?

References

  1. arXiv. "Deontic Policies for Runtime Governance of Agentic AI Systems" (Jun 17, 2026). https://arxiv.org/abs/2606.19464
  2. arXiv. "AgentSpec: Customizable Runtime Enforcement for Safe and Reliable LLM Agents" (Mar 24, 2025). https://arxiv.org/abs/2503.18666
  3. arXiv. "MI9: An Integrated Runtime Governance Framework for Agentic AI" (Aug 5, 2025). https://arxiv.org/abs/2508.03858
  4. Opensource. "Introducing the Agent Governance Toolkit: Open-source runtime security for AI agents" (Apr 2, 2026). https://opensource.microsoft.com/blog/2026/04/02/introducing-the-agent-governance-toolkit-open-source-runtime-security-for-ai-agents
  5. Cmr. "Governing the Agentic Enterprise: A New Operating Model for Autonomous AI at Scale" (Mar 2026). https://cmr.berkeley.edu/2026/03/governing-the-agentic-enterprise-a-new-operating-model-for-autonomous-ai-at-scale
  6. arXiv. https://arxiv.org/abs/2606.19464](https://arxiv.org/abs/2606.19464)
  7. arXiv. https://arxiv.org/abs/2503.18666](https://arxiv.org/abs/2503.18666)
  8. arXiv. https://arxiv.org/abs/2508.03858](https://arxiv.org/abs/2508.03858)
  9. Opensource. https://opensource.microsoft.com/blog/2026/04/02/introducing-the-agent-governance-toolkit-open-source-runtime-security-for-ai-agents/](https://opensource.microsoft.com/blog/2026/04/02/introducing-the-agent-governance-toolkit-open-source-runtime-security-for-ai-agents/)
  10. Cmr. https://cmr.berkeley.edu/2026/03/governing-the-agentic-enterprise-a-new-operating-model-for-autonomous-ai-at-scale/](https://cmr.berkeley.edu/2026/03/governing-the-agentic-enterprise-a-new-operating-model-for-autonomous-ai-at-scale/)