Skip to main content

Python SDK and validator for the Agentic User Mandate Protocol

Project description

aump-py

Python SDK and validator for the Agentic User Mandate Protocol.

This package provides:

  • bundled AUMP v0.1 JSON Schemas;
  • mandate schema and semantic validation;
  • evidence event schema validation;
  • evidence event semantic validation against mandate reference, retention, and required event policy;
  • deterministic allowed, denied, and requires_escalation action evaluation;
  • MCP, A2A, and UCP/AP2 bridge validation helpers;
  • a small in-process runtime for examples and agent applications;
  • a CLI for schema validation and action evaluation.

Install In This Workspace

uv sync

Global Install Smoke

After the package is published, the CLI should work with either uv tool or standard Python installers:

uv tool install aump
aump --help

CLI

Validate a mandate:

uv run aump validate mandate ../conformance/fixtures/mandates/marketplace-buyer.valid.json

Validate an evidence event:

uv run aump validate evidence-event ../conformance/fixtures/events/deal-accepted.valid.json

Validate evidence semantics against a mandate:

uv run aump validate-evidence \
  --mandate ../conformance/fixtures/mandates/marketplace-buyer.valid.json \
  --event ../conformance/fixtures/events/deal-accepted.valid.json

Evaluate an action:

uv run aump evaluate-action \
  --mandate ../conformance/fixtures/mandates/marketplace-buyer.valid.json \
  --action ../conformance/fixtures/actions/accept-ping-pong.allowed.json

Python

from aump import evaluate_action
from aump.policy import parse_datetime

result = evaluate_action(mandate, action, now=parse_datetime("2026-04-25T18:00:00Z"))
assert result["decision"] in {"allowed", "denied", "requires_escalation"}

Test

The tests prefer the sibling conformance/fixtures corpus when this workspace is cloned end to end. CI falls back to the pinned tests/fixtures/conformance snapshot so this repo can validate itself.

uv run ruff check .
uv run pytest

Project details


Download files

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

Source Distribution

aump-0.1.0.tar.gz (67.6 kB view details)

Uploaded Source

Built Distribution

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

aump-0.1.0-py3-none-any.whl (21.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: aump-0.1.0.tar.gz
  • Upload date:
  • Size: 67.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for aump-0.1.0.tar.gz
Algorithm Hash digest
SHA256 7d90b3763f92b7d0360c97b8b67bdc4678df8a20293fe63ee55505ae77dad34b
MD5 4f957fcdc4ce016174813a7d1bd23ca2
BLAKE2b-256 6ea5bd6da2c6ad1c5d0f7f3e67aea74082e7ec753524369adf68331e0fae4482

See more details on using hashes here.

Provenance

The following attestation bundles were made for aump-0.1.0.tar.gz:

Publisher: publish.yml on Agentic-User-Mandate-Protocol/aump-py

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

File details

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

File metadata

  • Download URL: aump-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 21.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for aump-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9f6c3259bd5ac59df945477a369df9bbfd164de87fdd346ccf909324d963e7b0
MD5 7887bb63c97df00af63e8d04b610ade8
BLAKE2b-256 1802d1d133ec724df9c9226e1b6dbdc37a6715ede7361b701ebe14265a263c5a

See more details on using hashes here.

Provenance

The following attestation bundles were made for aump-0.1.0-py3-none-any.whl:

Publisher: publish.yml on Agentic-User-Mandate-Protocol/aump-py

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

Supported by

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