AgentKey · Architecture
An AI agent policy engine is the component that stores, evaluates, and versions the rules governing what an AI agent may do, returning an allow, deny, or require-approval decision for each action.
By AgentKey · Last updated 2026-10-08
Policy changes over time. To answer the question 'why was this allowed on Tuesday?' you need to know which policy was in effect on Tuesday and what it said. A policy engine that snapshots policy with each decision makes authorization auditable, not just correct in the moment.
The engine turns stored rules into one of three decisions: allow, deny, or require human approval. Risk can escalate an allow into an ask, and a revoked or quarantined tool can turn an allow into a block regardless of the permission.
AgentKey stores permissions per agent, evaluates conditions at request time, and records a policy hash and version with each evidence event so every decision is tied to the exact rules that produced it.
A policy matches a resource and action and evaluates parameters, but it cannot infer intent. The same call with the same arguments can be produced for different reasons, so a decision records whether the action was permitted, not why the agent chose it.
Conditions enforce only the fields you write. A decision is only as precise as the arguments the caller passed and the operators the policy uses.
Evidence ties a decision to the policy version in force, but it does not by itself stop an agent from changing its behavior later in the session.
The component that stores, evaluates, and versions the rules governing what an agent may do, returning an allow, deny, or require-approval decision per action and recording which rules were in force.
So a past decision can be tied to the exact rules in force at the time. Without versioning, you cannot explain why an action was allowed after the policy later changed.