How Airlock Governs AI Agents: Combining Deterministic Rules with AI Judgment

Airlock uses three-layer governance — deterministic rules, AI judgment, and human approval — for defense-in-depth AI Agent authorization.
As AI Agents gain the ability to call APIs and access databases, controlling their behavior becomes a critical engineering challenge. Airlock proposes a three-layer governance model: deterministic rules handle explicit allow/deny decisions with predictable, auditable results; AI judgment addresses semantic grey areas that rules can't fully enumerate, such as sensitive content detection; and human approval acts as the final backstop for the highest-risk decisions. Each layer plays a distinct role, forming defense-in-depth rather than relying on any single mechanism — a paradigm poised to become the standard for production Agent governance.
The Authorization Challenge for AI Agents
When AI Agents are given the ability to take real actions — whether calling APIs, accessing databases, or initiating transactions — a core question emerges: how do you ensure they only do what they're permitted to do? Traditional software permission models are built on fixed, predictable rules, while AI Agent behavior carries a degree of non-determinism. This tension is precisely what Airlock sets out to solve.
Airlock's answer isn't an either/or choice. Instead, it combines deterministic rules with AI judgment to evaluate and decide on every Agent action at runtime. This mechanism allows Agents to remain flexible without crossing safety boundaries.

Deterministic Rules: Hard Boundaries That Cannot Be Crossed
Deterministic rules form the cornerstone of Airlock's authorization framework. They clearly define which operations are allowed and which are forbidden. The defining characteristic of these rules is predictability and auditability — given the same input, you always get the same verdict.
For high-risk scenarios, this certainty is critical. You don't want an Agent handling financial operations to occasionally overstep its authority due to model randomness. By anchoring these rules in authorization policy, developers can draw a clear red line for Agents: certain operations must never be executed, certain data must never be accessed, no matter what.
This design philosophy borrows from the proven experience of traditional access control, entrusting the parts that matter most to a rules engine rather than leaving them to probabilistic model judgment.
In technical implementation, deterministic rules typically map to well-established models like access control lists (ACL), role-based access control (RBAC), or attribute-based access control (ABAC). In Agent contexts, these rules are encoded as policy files and evaluated synchronously by the rules engine before each tool call or API request is made — no model inference is involved, latency is minimal, and results are idempotent. It's worth noting that the effectiveness of deterministic rules depends heavily on their completeness: the more comprehensive the coverage, the smaller the grey area left for downstream AI judgment or human approval. In engineering practice, teams typically start by mapping out operation categories (e.g., read/write/delete, internal/external data sources), then define explicit whitelists or blacklists for each category — producing a versioned, testable policy baseline.
AI Judgment: Handling the Grey Areas Rules Can't Cover
Pure rule-driven systems have inherent limitations — many real-world decisions can't be exhaustively expressed as simple if-then logic. Determining whether a piece of content involves sensitive information, or whether a request is reasonable in a given context, are exactly the kinds of problems AI excels at.
Airlock introduces AI judgment at runtime to handle these grey areas. When an action can't be directly approved or denied by hard rules, the system can invoke AI to assess its risk and intent. This gives the governance mechanism the ability to reason at the semantic level, rather than merely matching against literal rules.
This division of labor reflects a pragmatic architectural philosophy: hand deterministic problems to rules, and hand problems requiring understanding and reasoning to AI — each playing to its strengths.
Human Approval: The Last Line of Defense at Critical Junctures
For the most sensitive operations, Airlock preserves a human approval step. When an Agent attempts to execute a high-risk action, or when AI judgment can't produce a confident conclusion, the system hands the decision back to a human.
This design principle reflects the prevailing consensus in AI Agent governance: keeping human approval in the critical path is an essential safeguard against the risks of automation. It prevents Agents from causing irreversible consequences without oversight, while also providing accountability and traceability for the entire system.
Human approval introduces a real engineering challenge in system design: how to prevent the approval step from becoming a process bottleneck. A common approach is to asynchronously push high-risk operation approval requests to a human review queue (such as notifications via Slack, email, or a dedicated dashboard), while configuring the Agent with wait timeouts and fallback strategies — allowing it to cancel the operation or escalate an alert on timeout, rather than blocking indefinitely. The granularity of "human approval" itself is also worth designing carefully: not every case requires real-time human intervention. For operations where risk level is quantifiable, post-hoc review is sometimes more practical than upfront approval, striking a better balance between security and execution efficiency.
The Logic Behind the Three-Layer Governance Model
Looking at all three layers together, Airlock constructs a tiered governance model:
- Deterministic rules handle clear allow/deny decisions, ensuring predictability;
- AI judgment handles semantic and contextual problems that rules can't fully enumerate;
- Human approval serves as the backstop for the highest-risk decision points.
The value of this structure lies in the fact that it doesn't place all bets on a single mechanism for AI Agent security. Instead, it creates defense in depth through multiple layers of protection. For teams deploying Agents in production, designing runtime checks — and deciding which operations go through rules, which go through AI, and which require human confirmation — is an unavoidable engineering challenge.
This layered governance architecture is known in the security field as "Defense in Depth," and its core assumption is that no single protection mechanism is perfect. When deterministic rules have gaps, when AI judgment produces hallucinations or misclassifications, the next layer can absorb the risk rather than letting errors propagate directly into the production environment. For Agent systems, this principle is especially important — Agent operations often carry side effects, such as sending emails, writing to databases, or triggering external service calls. These actions, once executed, are often difficult to roll back. The value of multiple layers of protection therefore lies not only in blocking malicious behavior, but in providing redundant safety checkpoints for irreversible operations — reducing the probability that the non-deterministic nature of model behavior leads to real-world losses.
Conclusion
The approach Airlock embodies — the fusion of determinism and AI judgment — is likely to become a general-purpose paradigm for Agent governance. As AI Agents take on more real-world operations, designing authorization policies that are both flexible and controllable will be a challenge every developer building Agent systems must confront. Rules provide the floor, AI provides elasticity, and humans retain final authority. The balance between the three determines whether an Agent can be trusted to deploy in real business environments.
Related articles

Felix Rieseberg Personal Homepage
Felix Rieseberg's personal homepage sparks attention on Hacker News. This article covers the Slack engineer's technical background, the rise and fall of nativefier, and the value of a developer homepage as a tech calling card.

@ai-sdk/vue 3.0.306 Patch Release Syncs with [email protected] Update
@ai-sdk/vue 3.0.306 released, synced with [email protected]. A routine patch release for the Vercel AI SDK ecosystem with no public API changes; the Vue adapter layer stays version-aligned with the core package.

Gemini 4 Argon API Launches: The Era of Million-Token Output Begins
Google launches Gemini 4 Argon with sparse MoE architecture, up to 1M output tokens, and a 68.90% Vals Index score, available across API, AI Studio, and the Gemini app.