Skip to main content

atlas-pca-pydantic-ai

Pydantic AI guard for Proof-Carrying Authority (PCA): make every Pydantic AI tool call proof-carrying and policy-gated. A tool only runs when the agent carries a valid, in-plan, resource-correct proof for exactly that action. The adapter delegates all verification to atlas-pca and reimplements no cryptography.

Status: 0.4.2, unaudited.

What is tested

The default test suite runs without the framework, against the shared conformance proofs. A second suite, make test-real (needs the framework installed), runs against the real framework and is pinned to Pydantic AI 2.54.0 (pydantic-ai-slim). It covers a real Agent with a scripted offline model: proofs on RunContext.deps (encoded and inline), sync and async tools, Tool(...) wrapping, and the refusal reaching the model as a retry prompt with the reason (missing, undecodable, tampered, wrong audience, insufficient capability). Each denial test checks that the tool body never ran, and checks the refusal reason wherever the framework surfaces it.

Not covered: other framework versions (only the pinned one is exercised), live model providers (the models are scripted and offline), and any property of the underlying atlas-pca verifier beyond what it already documents. This package has not been independently audited.

Install

pip install atlas-pca-pydantic-ai

This installs atlas-pca>=0.4.2,<0.5 as a dependency.

Use

Entry points: pca_tool / PCAGuard.

from atlas_pca_pydantic_ai import pca_tool

See the module docstrings in atlas_pca_pydantic_ai for the full API, and the PCA specification for the model. The verifier applies the full check order, including grant_ref_bound (the signed grant_ref must equal the root capability id), as of atlas-pca 0.2.0.

License: MIT

Metadata

Release files for atlas-pca-pydantic-ai 0.4.2

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

Source distribution (sdist)

Source distribution for atlas-pca-pydantic-ai 0.4.2
File Size Uploaded Provenance
atlas_pca_pydantic_ai-0.4.2.tar.gz 11.5 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for atlas-pca-pydantic-ai 0.4.2
File Interpreter ABI Platform
atlas_pca_pydantic_ai-0.4.2-py3-none-any.whl Python 3 none any Details

Total release size: 23.7 kB

Release files / atlas_pca_pydantic_ai-0.4.2.tar.gz

Download URL atlas_pca_pydantic_ai-0.4.2.tar.gz
Size 11.5 kB
Tags Source
SHA-256 checksum
How to use checksums
3dcdf67758adb6bd6975687ac4c4bf56f72c99d73570f9f258dddd8f08156dde
BLAKE2b-256 checksum
How to use checksums
07b328c4d3fcca3bfd0d8fea73efceccfd457838e8a4faeb30c5cb872654f851
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.23 {"installer":{"name":"uv","version":"0.12.23","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / atlas_pca_pydantic_ai-0.4.2-py3-none-any.whl

Download URL atlas_pca_pydantic_ai-0.4.2-py3-none-any.whl
Size 12.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bf935b3e0ca5bc430c61fa8dc11265efa3048e4ecfc6ef28c4f60d2444c90dff
BLAKE2b-256 checksum
How to use checksums
ac545522448d02ad64cd253ba3137a8d59751ecf13119b60915534064d70c5cd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.23 {"installer":{"name":"uv","version":"0.12.23","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for atlas-pca-pydantic-ai 0.4.2

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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