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.1, 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.1,<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.
Links
- Source: https://github.com/Atlas-Authorization/pca-python
- Specification and docs: https://github.com/Atlas-Authorization/pca
License: MIT
Metadata
Release files for atlas-pca-pydantic-ai 0.4.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| atlas_pca_pydantic_ai-0.4.1.tar.gz | 11.7 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| atlas_pca_pydantic_ai-0.4.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 23.9 kB
Release files / atlas_pca_pydantic_ai-0.4.1.tar.gz
| Download URL | atlas_pca_pydantic_ai-0.4.1.tar.gz |
|---|---|
| Size | 11.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1f9050d14a5bf97a6c88830e42dd8dba179442cbb31e0d36902570941b3ec1a3
|
|
BLAKE2b-256 checksum How to use checksums |
1eecebbf1953c0b651da6010963f19b42e86a4e8a80e8d49244bc2fa71954623
|
| 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.1-py3-none-any.whl
| Download URL | atlas_pca_pydantic_ai-0.4.1-py3-none-any.whl |
|---|---|
| Size | 12.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
da1eb97b5732e82624047de3b13077fd46948a0a3d2ac138cfa1c2056bfe3dc2
|
|
BLAKE2b-256 checksum How to use checksums |
a9b67adb5e68cbad15fde1668d1ed367c1b545fe36920861bb97b37748d1dd06
|
| 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.1
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.