Skip to main content

sm-arp — Agency Receipt Protocol

The portable, cryptographically signed receipt format AI agents emit when they act on behalf of humans. Runtime-agnostic, vendor-neutral, MIT-licensed.

ARP sits above MCP (tool integration) and A2A (agent-to-agent transport) — the human ↔ agent accountability layer those standards deliberately do not address.

Status

  • WHITEPAPER.md — motivation, design choices, and how ARP fits the portfolio.
  • spec/arp/0.1/spec.md — the canonical normative document (RFC-style).
  • THREATMODEL.md — what a receipt does and does not prove, threats A1–A10, the delegation/transparency trust-rung roadmap, and a verifier checklist.

Use it as a library

ARP ships one canonical Python implementation, sm_arp, so every runtime imports the same build/sign/verify/store code instead of vendoring its own — the receipt envelope cannot drift between them. The library needs nothing but cryptography, base58, and jcs.

from sm_arp import Identity, build_action, issue_receipt, verify_receipt, IssuerLog

me = Identity.generate()
r = issue_receipt(
    me,
    principal_did=me.did,
    action=build_action(category="data_shared", human_summary="shared my calendar"),
)
assert verify_receipt(r).ok  # structure → signature → authority → hash chain
IssuerLog("log.sqlite").append(r)  # SQLite Issuer/Agency Log, hash-chained per issuer

sm_arp's verifier is tested against the canonical 22-vector corpus and asserted byte-for-byte equal to the conformance harness's verdict on every vector — so the library and the spec cannot disagree.

Layout

  • sm_arp/ — the consumable library: identity (Ed25519 + did:key), receipts (build/sign/verify/canonical/chain), store (SQLite Issuer/Agency Log).
  • arp_cli/ — the arp command-line tool (pip install 'sm-arp[cli]').
  • WHITEPAPER.md — design rationale and portfolio positioning.
  • spec/arp/0.1/spec.md — the canonical normative receipt spec (RFC-style).
  • spec/arp/0.1/conformance.md — ARP conformance criteria; points at sm-conformance for the badge.
  • spec/arp/0.1/governance.md — stewardship and the path to public publication.
  • spec/arp/0.1/dat-companion.md — the Delegated Authority Token sketch the authority chain references.
  • schema/arp/0.1/ — JSON Schemas (Draft 2020-12) for the receipt envelope.
  • vectors/arp/0.1/ — 22 language-agnostic receipt vectors.
  • conformance/arp/ — framework-agnostic Python conformance harness for receipts.

The conformance badge lives in sm-conformance

ARP owns what a conformant runtime must do (this repo) and the receipt vectors it is tested against. It does not own the signed-badge mechanism — that is a generic, protocol-neutral substrate that lives in its own primitive, sm-conformance. ARP is its first consumer.

How to claim ARP compliance

  1. Implement the spec in your runtime.
  2. Run pytest conformance/ against the bundled vectors. Every positive vector MUST pass; every negative vector MUST be rejected at the documented stage.
  3. Produce a signed conformance badge with sm-conformance and ship it at your runtime's .nanda/conformance.json — and, if you serve it over HTTP, at the canonical /.well-known/conformance.json (see sm-conformance SPEC §3.2).

The badge is self-signed and independently re-verifiable: anyone can recompute pytest conformance/ against the bundled vectors and check the signature offline.

Implementing ARP

ARP is runtime-agnostic — any agent stack can emit conformant receipts. Implement the spec, pass conformance/, and ship a signed sm-conformance badge. The receipt format depends on nothing but Ed25519, JCS, and the W3C did:key method.

License

MIT — see LICENSE.

Authenticated direct grants (0.3.3)

Use verify_direct_grant(action, grant, at=trusted_aware_datetime) for an explicit single-category grant. It checks both issuer signatures, the ID link, principal, grantee, and validity at the supplied time. A referenced DAT requires its evidence and an injected verifier. Supply an independently trusted grant issuer and policy at the application boundary. For historical checks supply the independently evidenced execution time. The existing verify_authority_chain checks relationships against a caller-provided grant index. Preserve signed receipts as issued; append detached evidence outside them to preserve signatures and chain links.

Metadata

Release files for sm-arp 0.3.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sm-arp 0.3.3
File Size Uploaded Provenance Actions
sm_arp-0.3.3.tar.gz 25.9 kB With provenance Details for sm_arp-0.3.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for sm-arp 0.3.3
File Interpreter ABI Platform Actions
sm_arp-0.3.3-py3-none-any.whl Python 3 none any Details for sm_arp-0.3.3-py3-none-any.whl

Total release size: 48.4 kB

Release files / sm_arp-0.3.3.tar.gz

Download URL sm_arp-0.3.3.tar.gz
Size 25.9 kB
Tags Source
SHA-256 checksum
How to use checksums
29ee279260495d0c026b05fd4c1c14a5acd39112452c38ce16c34802439d7d1a
BLAKE2b-256 checksum
How to use checksums
7dfe35f01757d329f4874f662ec2fa020b480c53e9aff0dd589a8c81051ce2fb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 7, 2026.

Transparency log

Release files / sm_arp-0.3.3-py3-none-any.whl

Download URL sm_arp-0.3.3-py3-none-any.whl
Size 22.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d34dcd6a326e6339ae903092d9dc52bb604c1bfb7d43c920947588d6ad478ca9
BLAKE2b-256 checksum
How to use checksums
3b9245bd1f3d300934d1f4b5f8d887de44ca1d021cfaa90bc9679268de1c8119
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 7, 2026.

Transparency log

Security for sm-arp 0.3.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for sm_arp-0.3.3.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 7, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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