Skip to main content

agent-evidence-admission

Checks that an artifact has the digest its document names: a TEA artifact, a CycloneDX SBOM or VEX, or an in-toto statement.

It is for manufacturers, integrators and admission controllers that receive a compliance document for a release and need to know the document covers the bytes they actually hold.

Install

Start in a new directory with Python 3.10 or newer and uv. Install the checker in its own environment:

uv venv admission-env
uv pip install --python admission-env/bin/python agent-evidence-admission==0.3.0

Example

Create three known bytes and a synthetic in-toto statement that names their digest:

printf 'abc' > artifact.txt
cat > statement.json <<'JSON'
{
  "_type": "https://in-toto.io/Statement/v1",
  "subject": [{"name": "artifact.txt", "digest": {"sha256": "ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad"}}],
  "predicateType": "https://example.org/digest-demo/v1",
  "predicate": {}
}
JSON
admission-env/bin/agent-evidence-admission digest-check statement.json artifact.txt

It prints:

PASS artifact.txt has sha256:ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad, named in statement.json

A match binds the document to bytes. It does not verify a signature or admit a workload.

For an existing CycloneDX SBOM and JAR, provide both files in your working directory:

uvx agent-evidence-admission==0.3.0 digest-check bom.json log4j-core-2.26.1.jar

The check runs three steps: read the document (a path or an https URL), recompute the artifact's digest with every algorithm the document names, and compare. It prints one line and exits 0 when a named digest matches:

PASS log4j-core-2.26.1.jar has sha512:..., named in bom.json

It exits 1 with FAIL digest-mismatch when the bytes differ, or FAIL no-digest-named when the document names no digest at all, and 2 when the document or the artifact could not be read. Plain http URLs are refused.

Coverage check

agent-evidence-admission coverage-check bom.json --require library,service,machine-learning-model reports, for each class a buyer requires, whether a CycloneDX BOM or an SPDX 3 document assessed it, marked it not assessed with a reason (unknown or withheld), points at a covering document, or says nothing. It exits 1 on a missing or doubly selected class and on a not-assessed entry with no reason and no covering reference. --required reads the list from a file, --json prints the report. The vectors are its positive and negative cases.

Client MCP allowlists

agent-evidence-admission generate admit-list.json --out generated turns one list of admitted MCP servers into the allowlist that Claude Code, Cursor and Windsurf each enforce, plus a static MCP registry for the GitHub Copilot registry-only policy. Each server is written as its exact command and arguments or its exact URL. The report names, for each server, what each client matches. No client hashes the bytes it starts, so the admitted digest is listed as unbound. A server a client cannot express exactly is refused for that client (exit 1), not widened. See the guide and the vectors.

Rule sets

agent-evidence-admission admit <rule-set> <record> refuses a record before any verifier judges it, and names the rule and the JSON Pointer of every refusal. ijson and ijson-integer-only refuse the byte strings two decoders read as two documents (a repeated member at any depth, names equal under case folding, a lone surrogate, an integer past 2^53, -0); audit-freshness holds audit-record time members to asymmetric bounds; catalog-attestations refuses an ARD or AI Catalog attestation not bound to the entry it sits in; mcp-authz makes an MCP server's audience, issuer, lifetime and binding decision on a decoded token; co-signed-receipt refuses a receipt whose signature can still verify over malformed members. It exits 0 when admitted, 1 when refused, 2 when an input could not be read. rule-sets lists them, and ablate <manifest> shows which check each vector needs. See the rule sets.

Conformance result records

agent-evidence-admission resolve-verdicts answers.json resolves the verdicts several policies gave one action to the strictest (allow < constrain < require_approval < block < halt) and exits 2 when there is nothing to resolve. The vectors are its conflict cases, and the rule is normative.

agent-evidence-admission conformance run|replay|verify runs a corpus against an implementation, signs the score as a DSSE-wrapped in-toto statement, files it in a public run registry, and checks records another party signed. replay turns the rows of the vectors' docs/INDEPENDENT-RUNS.json into records. See the result format.

Status

Version 0.3.0. The Kubernetes admission policies (Rego, Kyverno, policy-controller) live in the same repository; see the repository README.

Build packages

From the repository root, check the license copy, build both archives and check their license text and metadata:

python scripts/python-license-gate.py
python -m build python --outdir dist
python scripts/python-license-gate.py --dist dist

The repository LICENSE is the source of the existing Apache-2.0 grant. python/LICENSE is its byte-for-byte distribution copy because license-file paths must stay within the Python project. Copy the root file when it changes; the gate refuses drift. Both the wheel and source archive include that text, and the source archive can build without the repository parent.

Verify the release

Every file of a release carries a PEP 740 attestation naming the GitHub repository and workflow that built it. Read one:

curl -s https://pypi.org/integrity/agent-evidence-admission/<version>/<file name>/provenance

Metadata

Release files for agent-evidence-admission 0.3.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 agent-evidence-admission 0.3.0
File Size Uploaded Provenance Actions
agent_evidence_admission-0.3.0.tar.gz 120.1 kB With provenance Details for agent_evidence_admission-0.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for agent-evidence-admission 0.3.0
File Interpreter ABI Platform Actions
agent_evidence_admission-0.3.0-py3-none-any.whl Python 3 none any Details for agent_evidence_admission-0.3.0-py3-none-any.whl

Total release size: 194.2 kB

Release files / agent_evidence_admission-0.3.0.tar.gz

Download URL agent_evidence_admission-0.3.0.tar.gz
Size 120.1 kB
Tags Source
SHA-256 checksum
How to use checksums
5d045d5d9519b7cf1555a49fb7b4c36f07fbb9450849b99f7affc4ff4caf066d
BLAKE2b-256 checksum
How to use checksums
d813daa8c7512e634dd194d09eca7ec88bb3acb7dbe0f51b5e0cace471738b4a
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 22, 2026.

Transparency log

Release files / agent_evidence_admission-0.3.0-py3-none-any.whl

Download URL agent_evidence_admission-0.3.0-py3-none-any.whl
Size 74.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a6326923581db1984e05a1c6384b0b778ca612d63ff85bc386427b9ec319e7d0
BLAKE2b-256 checksum
How to use checksums
b4a3b201455b2730a26533d77175b41cb0adaa0175a199f63eecda2025066e54
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 22, 2026.

Transparency log

Security for agent-evidence-admission 0.3.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.

Full provenance

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

Select from 2 files

Attestation for agent_evidence_admission-0.3.0.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 22, 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