Skip to main content

MAP (Model Action Protocol) — verifiable provenance, self-healing critique, and state rollback for autonomous AI agents

Project description

model-action-protocol (Python)

Python implementation of the Model Action Protocol. Cryptographic provenance, self-healing, and state rollback for autonomous AI agents.

This package conforms to MAP spec version 0.1.0. Both this implementation and the TypeScript reference implementation produce byte-identical hashes for the same inputs, verified by the shared conformance fixtures in ../spec/fixtures/v0.1/.

Install

pip install model-action-protocol

Optional extras:

pip install "model-action-protocol[anthropic]"   # LLM critic via Anthropic SDK
pip install "model-action-protocol[sqlite]"      # async SQLite store
pip install "model-action-protocol[postgres]"    # async Postgres store
pip install "model-action-protocol[fastapi]"     # FastAPI demo deps
pip install "model-action-protocol[all]"

Quickstart

See examples/quickstart.ipynb for the full Jupyter walkthrough and examples/fastapi_app/ for an HTTP service template.

Specification

The wire format, canonicalization rule (RFC 8785), hash inputs, and chain verification algorithm are defined in spec/SPEC.md. Implementation details (Pydantic models, async I/O patterns, anthropic SDK integration) are not part of the spec — they are this implementation's choices.

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

model_action_protocol-0.1.2.tar.gz (63.6 kB view details)

Uploaded Source

Built Distribution

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

model_action_protocol-0.1.2-py3-none-any.whl (35.2 kB view details)

Uploaded Python 3

File details

Details for the file model_action_protocol-0.1.2.tar.gz.

File metadata

  • Download URL: model_action_protocol-0.1.2.tar.gz
  • Upload date:
  • Size: 63.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for model_action_protocol-0.1.2.tar.gz
Algorithm Hash digest
SHA256 2f25b43423f3a6c2106917827127c00258431b2d0ae02e208f390e61928bba13
MD5 8b4e2cef753af39d9af229bf721b7a2a
BLAKE2b-256 882faf1ee16b5b85fcf0697ccded24b1dfb868d3c09d52d7cdb5dfb75651886c

See more details on using hashes here.

File details

Details for the file model_action_protocol-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for model_action_protocol-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 27446d6e881e3141ced08803cb1111ede3cdf27be6a4eccaa36b63550c7e6220
MD5 7fdb4a2879f265654f62c147e4ad4085
BLAKE2b-256 a6e7866bf77774c606d10666957457a53e2b207efed66145f3dd6a7505af03be

See more details on using hashes here.

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