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.0, 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.0,<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.0

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.0
File Size Uploaded Provenance
atlas_pca_pydantic_ai-0.4.0.tar.gz 11.7 kB Without provenance Details

Built distribution (wheel)

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

Total release size: 23.9 kB

Release files / atlas_pca_pydantic_ai-0.4.0.tar.gz

Download URL atlas_pca_pydantic_ai-0.4.0.tar.gz
Size 11.7 kB
Tags Source
SHA-256 checksum
How to use checksums
09f7da5df57a42b72b0cbf7b3404b24b189feaed4d81364f212f2bd627113b69
BLAKE2b-256 checksum
How to use checksums
5bfe3f27773d3c77e64f4908b58f738a0b4bf62ded7894adc089a2f645d980bb
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.0-py3-none-any.whl

Download URL atlas_pca_pydantic_ai-0.4.0-py3-none-any.whl
Size 12.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1e928ea265bbf74442e0d691a51c7e52f52e5c11a19d90707aad0721d3f4d4cb
BLAKE2b-256 checksum
How to use checksums
5f5e181643933675ce790bc3d4e42aca7a5a0e8575ca2077d66dfa8735b893ee
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.0

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