Skip to main content

Agent Approval Interchange Specification (AAIS)

A transport-neutral contract for asking a human to authorize an exact agent action.

Specification 1.0 release candidate · support libraries 0.1.0 · Draft

Specification · Security · Conformance · Integration guide

AAIS lets a harness pause any chat, bot, subagent, or graph node and hand a portable approval request to a CLI, web UI, desktop app, policy service, or other trusted decision surface. The response is cryptographically bound to the exact action shown to the user, is idempotent, expires predictably, and cannot grant a broader scope than the harness offered.

{
  "aais": "1.0",
  "type": "approval.requested",
  "id": "evt_01JQ8QH80E4M7KJ6J7J7Y2RKSC",
  "occurred_at": "2026-08-30T18:00:00Z",
  "sequence": 41,
  "request": {
    "id": "apr_01JQ8QH80E4M7KJ6J7J7Y2RKSC",
    "created_at": "2026-08-30T18:00:00Z",
    "expires_at": "2026-08-30T18:10:00Z",
    "status": "pending",
    "origin": {"harness": "example", "session_id": "s-1", "run_id": "r-7"},
    "action": {
      "kind": "tool.call",
      "name": "shell.exec",
      "summary": "Run the JavaScript syntax check",
      "arguments": {"command": "node --check script.js"}
    },
    "action_digest": "sha256:...",
    "risk": {"level": "medium", "reasons": ["executes a local process"]},
    "choices": [
      {"decision": "approve", "scope": "once", "label": "Allow once"},
      {"decision": "approve", "scope": "session", "label": "Allow for this session",
       "scope_constraints": {"action_name": "shell.exec"}},
      {"decision": "deny", "scope": "once", "label": "Deny"}
    ]
  }
}

Scope

AAIS standardizes the authority-bearing boundary only:

  • exact-action requests, human-readable presentation, risk, and provenance;
  • explicit approve, deny, and cancel decisions with bounded scopes;
  • action digests, expiry, idempotency, stale-decision rejection, and receipts;
  • durable snapshots and ordered events for reconnecting clients;
  • adapter mappings for AG-UI interrupts, MCP hosts, HTTP/SSE, WebSocket, and stdio.

It does not define chat messages, model reasoning, tool discovery, agent profiles, workflow graphs, authentication, or a network transport. Those remain the responsibility of AG-UI, MCP, OAP, AGS, the host application, or another runtime protocol.

Support libraries

The repository contains release-candidate libraries with a shared API and conformance corpus for Python, TypeScript, Go, Rust, and Java. Each library can:

  • validate AAIS envelopes;
  • compute RFC 8785 / SHA-256 action digests;
  • create approval requests and decisions;
  • maintain a fail-closed, replay-safe pending-approval store;
  • emit and restore durable snapshots.

No package has been published yet. See release preparation.

Repository layout

Path Contents
spec/v1/ Normative specification, security, and conformance rules
schema/v1/ JSON Schema Draft 2020-12 envelope schema
conformance/ Shared valid and invalid fixtures
python/ Python 3.10+ support package
typescript/ Node.js 20+ TypeScript package
go/ Go 1.23+ module
rust/ Rust 1.85+ crate
java/ Java 17+ Maven library

Design principles

  1. The harness remains the authority. A UI conveys a decision; the harness revalidates it against current policy and current action state.
  2. Approval is exact by default. Every approval carries the digest of the canonical action reviewed by the user.
  3. Scopes are offered, never invented. A client may select only a choice present in the request.
  4. Reconnect is normal. Pending approvals are durable state, not a terminal prompt waiting on stdin.
  5. No hidden reasoning is required. AAIS carries concise activity, provenance, and risk explanations—not private chain-of-thought.

License

Apache License 2.0. See LICENSE.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

agent_approval_interchange-0.1.0.tar.gz (46.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

agent_approval_interchange-0.1.0-py3-none-any.whl (13.7 kB view details)

Uploaded Python 3

File details

Details for the file agent_approval_interchange-0.1.0.tar.gz.

File metadata

File hashes

Hashes for agent_approval_interchange-0.1.0.tar.gz
Algorithm Hash digest
SHA256 d3326b78be10a0e16519ce31a53ff25d5aa28350b4c3614a7e7c73f9710f1b81
MD5 84fcd4643b0695995cd66c3bb99780d4
BLAKE2b-256 56b8147fb66143fa944e9352355dbaf5c87dd781186615b888677d03f3bd5a70

See more details on using hashes here.

File details

Details for the file agent_approval_interchange-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for agent_approval_interchange-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a0f543a1979e26b88cd585f195bd22b2150fba9bc3a8c98581d9f13f944456a4
MD5 29452ccefe4e54522f55da12877cafc5
BLAKE2b-256 de7fceeaf2a3d02bc901f047548d9bf9fba011fdd0406db0b71fbde6ec8f0a77

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page