Catalog PyPI
PACKAGE EXPLORERView in registry

agentrust-trace-tests

PyPI

TRACE conformance test suite

ai-agentsattestationconformanceprovenancetrace
Versions collected1
Direct dependencies10From release 0.6.2
Last observed20 Oct, 23:15 UTC

README

Version 0.6.2 documentation

TRACE Tests

TRACE Conformance Test Suite

Community updates and contributor highlights: AgenTrust on LinkedIn.

Check a TRACE record and see which conformance level it reaches

Full Documentation

Quick Start  |  Test Modules  |  Conformance Levels  |  Changelog

License: Apache 2.0 TRACE Spec Tests CI Discord

Tracks TRACE Spec v0.2.

Check a TRACE record, inspect the findings, and produce a reproducible conformance report. The suite checks the record and supplied evidence; a passing report does not establish that an entire implementation meets every specification requirement.

Eight modules cover envelope, signature, runtime, policy, appraisal, transcript, transparency, and provenance checks. Read the limitations to interpret their results.

Quick start

pip install agentrust-trace-tests
trace-tests verify --record path/to/trust-record.jwt --level 1 \
  --expected-nonce "$VERIFIER_CHALLENGE"

A report you can hand to someone else

verify answers a question for the person running it. report produces an artifact for somebody who was not there: an auditor, a counterparty, an acquirer.

trace-tests report --record trust-record.json   --html report.html --json report.json --badge trace.svg

It runs every level up to --max-level rather than one, because the useful answer for a reader is the highest level the record reaches, not whether it cleared the level someone happened to pick. The HTML is self-contained: no scripts, no fonts, no external CSS, no badge service, nothing fetched at open time.

Use --fail-under 1 to gate CI on a level. Without it the command always exits 0, which is what you want when you are producing an artifact rather than enforcing a threshold.

The report is not evidence, and it says so on its face. It is unsigned HTML describing one run of one suite version, and anybody can edit it. So it carries the record's digest, the suite and library versions, and the exact command to reproduce the result. A reader who does not trust the sender is told, in the artifact, to go check the record instead. A conformance report that looks authoritative and cannot be checked is the same shape of thing as a control plane writing its own log.

report.json is stable under schema: agentrust-io/trace-tests/report/1 for dashboards and CI. Reports produced by the CLI include an additive, version-tagged obligation_accounting object for the bounded TR-APR-001, TR-POL-003, and TR-SCA-002 pilot. During supported report construction, its rows are reconciled against the executable registry identified by registry_id and registry_sha256. The operational TR-POL-003 rule is identified separately from schema fragments that support its field shape. Every source locator carries a digest of the exact resolved value so a reader holding the pinned trace-spec bytes can re-resolve and compare it. Accounted JSON, HTML, badge, and verdict projections consume one immutable execution-derived snapshot. A JSON-only request does not pre-render unrequested formats; when multiple formats are requested, they are emitted in the CLI's existing order. The existing contribution policy continues to determine the report verdict. The tag identifies this emitted object shape; the repository does not currently ship a separate formal JSON Schema for it.

This treats report/1 as additively extensible: existing members retain their meaning, and obligation_accounting is the sole new top-level member. Compatibility with consumers that require the exact historical key set is not established. The report remains an unsigned self-report; see Known Limitations.

Test modules

ModuleIDTests
EnvelopeTR-ENVEAT structure, required fields, iat validity
SignatureTR-SIGES256/ES384/EdDSA, key binding, chain
RuntimeTR-RTETEE platform, measurement format, RIM URI
PolicyTR-POLBundle hash, enforcement mode, TEE binding
TranscriptTR-TXNTool-call transcript hash binding (Phase 2+)
TransparencyTR-ANCSCITT receipt URI, inclusion proof
ProvenanceTR-SCASLSA level, builder URI, digest format

Resources

📖 Full documentationtrace.agentrust-io.com/conformance/
📄 TRACE Specificationtrace-spec
🗂 Test schemasschemas/
💬 DiscussionsGitHub Discussions
📋 ChangelogCHANGELOG.md
⚠️ Known limitationsLIMITATIONS.md

Contributing

See CONTRIBUTING.md. New test cases must include a normative spec reference, a positive case, and a negative case with a structured error code (TR-<MODULE>-<NNN>).

From a source checkout

git clone https://github.com/agentrust-io/trace-spec.git
cd trace-spec/conformance
pip install --require-hashes -r requirements/test.txt
pip install --no-deps -e .
python -m pytest

The package name and CLI remain unchanged. The original repository retains historical commits used by obligation-accounting source locators. See the migration record for publishing and documentation cutover work.

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
0.6.23 Oct 202610

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

ACCESSIBLE
agentrust-io/trace-spec

Shared repository data · GitHub

License detected in repository
NOASSERTION
License branch / ref
main
Last push
20 Oct 2026
Archived
No
Contributor identities
— · partial collection

Public sponsor counts have not been collected. These signals belong to the repository owner.

Downloads & popularity

39count
Gauge · observed snapshots21 Oct 2026
3919.50
2026-10-21: 39 · observed 2026-10-21T19:22:34.6147003Z
21 Oct21 Oct

github · 1 observations shown. Missing days are unknown.

View observed values
Date / source periodValueObserved at
2026-10-21392026-10-21T19:22:34.6147003Z

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 23:15 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:0d23bbef6801ce05cb53c6cb9dca944d5d1ed61125a93ac4b5425ec8d5c44b54