Skip to main content

Agent Authority Chain Python client

Fail-closed authorization for consequential AI-agent actions. Use this package when a principal delegates constrained authority to one or more agents and the protected operation must reject widened, expired, revoked, malformed or unverifiable authority.

AAC is an authority decision layer, not agent identity or authentication alone. It verifies Ed25519-signed delegation chains, constraint narrowing and revocation before returning a signed permit or deny receipt. Network failure, malformed output, authentication failure or an invalid receipt signature never becomes permission.

pip install agentauthoritychain==0.5.1
from aac_client import AACClient, AACDenied, AACError

client = AACClient.from_env()  # reads AAC_API_CREDENTIAL
try:
    result, receipt = client.enforce(signed_scenario, execute_protected_operation)
except (AACDenied, AACError):
    deny_operation()

enforce invokes the protected operation only after AAC returns an exact permit with a valid Ed25519 decision-receipt signature. AACDenied is a verified denial; configuration, authentication, transport, protocol and receipt failures use specific AAC*Error subclasses and remain closed. Async applications use the API-compatible AsyncAACClient.

When this package fits

  • principal-to-agent or multi-hop delegated authority;
  • capabilities with amount, resource, purpose, time or delegation-depth constraints;
  • prevention of authority widening;
  • immediate revocation and expiry checks before execution;
  • auditable signed decision receipts;
  • framework-neutral Python services, workers, APIs and automation.

For JavaScript use @agentauthoritychain/client; for MCP tool handlers use @agentauthoritychain/mcp-guard; other stacks can use the documented HTTP contract without adding Python.

Evaluate before configuration

python -m aac_public_test

All eight credential-free AAC/AACP cases must print PASS. They accept no private key, credential, production payload or caller-supplied authority chain. Then create an organization credential and register only the public issuer key through the Console. Private signing keys stay in your environment.

Requires Python 3.10+. The declared truststore dependency uses the operating-system certificate store on managed Windows systems without disabling TLS verification.

AAC supplies technical verification evidence. It is not legal authority, payment authorization, regulatory certification or independent proof of issuer legitimacy.

Download files

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

Source Distribution

agentauthoritychain-0.5.1.tar.gz (6.0 kB view details)

Uploaded Source

Built Distribution

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

agentauthoritychain-0.5.1-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

Details for the file agentauthoritychain-0.5.1.tar.gz.

File metadata

  • Download URL: agentauthoritychain-0.5.1.tar.gz
  • Upload date:
  • Size: 6.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for agentauthoritychain-0.5.1.tar.gz
Algorithm Hash digest
SHA256 d12d21a52b761698dc036825b2281018068bf4ec402539c6f4a990b599f99b45
MD5 c1f38215a7de00b640154c946faadd42
BLAKE2b-256 5ee4f5cad369a4b5ce4ad72fed0a94f495d1b66ee1e86f93a81ca1b7fc6344e7

See more details on using hashes here.

Provenance

The following attestation bundles were made for agentauthoritychain-0.5.1.tar.gz:

Publisher: release-python.yml on AgentAuthorityChain/aac

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file agentauthoritychain-0.5.1-py3-none-any.whl.

File metadata

File hashes

Hashes for agentauthoritychain-0.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7239b45f0b993bde3db05699c0cb45bf219bab2e1109ccbad562e89134109bbd
MD5 609c94bb5000cb9eb352aba4c51152ad
BLAKE2b-256 127911ae1721a3eeefbd2175ab96b65bd963c16dbbf58acc14aafb9c0051f4f2

See more details on using hashes here.

Provenance

The following attestation bundles were made for agentauthoritychain-0.5.1-py3-none-any.whl:

Publisher: release-python.yml on AgentAuthorityChain/aac

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

0.5.2

2 files

This release

0.5.1 This release

2 files

0.5.0

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page