Skip to content

What is APS?

Agent Policy Specification (APS) is a vendor-neutral standard for enforcing policies on AI agent interactions.

APS defines a standard interception layer that sits between an agent and its underlying LLM. It gives operators, developers, and platform teams a consistent way to express, evaluate, and enforce policies on every message, tool call, and model response, before any side effect occurs.

The Problem

AI agents act on behalf of users and systems. They call tools, read data, and produce outputs, often with little or no enforcement boundary between an instruction and its consequences.

Current approaches to safety and control are fragmented: guardrails are baked into individual agent frameworks, applied inconsistently across environments, and difficult to audit or reason about independently from application logic.

What APS Defines

APS specifies three interception points in the agent–LLM interaction lifecycle:

For each interception point, APS defines:

  • A data model — the schema of what is evaluated
  • A policy interface — how policies are declared, composed, and resolved
  • An enforcement contract — what actions a compliant runtime must take on a policy decision

Policy Authoring

APS is extensible by design. The specification defines the interception contract — not the policy language. Any engine that can receive a context and return a decision can back an APS policy.

ModelHow it works
Rego (WASM)Declarative OPA policies compiled to WebAssembly, evaluated in-process
OPA (REST)Policies evaluated by a running OPA server via its HTTP API
RuntimeTyped interfaces in TypeScript or Java for policies requiring imperative logic or I/O
DSLCustom domain-specific languages backed by any evaluator you choose

New authoring models can be added without changes to the core specification.

Status

APS is in the concept and specification design phase.

ArtifactStatus
Core specificationIn progress
Reference implementation (TypeScript)Pre-release
Reference implementation (Java)Planned
Conformance test suitePlanned

Get Involved

Released under the Apache 2.0 License.