onetrace-verify
The reference verifier for stage-receipt records, packaged as its own distribution. Standard
library only -- no dependency on onetrace, or on anything else.
That independence is not a packaging convenience. onetrace's own README states plainly that
the verifier does not trust the SDK that emitted a record -- a dependency edge from this package
to onetrace would contradict that sentence. A stranger must be able to install this alone and
check a record produced by anything.
Install
pip install onetrace-verify
Use
onetrace-verify <run-folder>
or, pointed at a manifest directly:
onetrace-verify <run-folder>/MANIFEST.json
Every outcome is PASS, FAIL, or NOT-RUN-with-a-reason -- never silence. Exit status 0 means every check that ran passed; 1 means at least one failed; 2 means NOT VERIFIED (a receipt's own format is not implemented, and nothing failed) or refused (the manifest cannot be read, or its chain format is not implemented), or a usage error.
For a CI gate, three options turn a missing guarantee into a FAIL (exit 1); without them nothing changes:
onetrace-verify --require-signature <run-folder> # a valid signature, by any key
onetrace-verify --require-trusted --trust trust.json <run-folder> # a valid signature by a key you trust
onetrace-verify --require-complete <run-folder> # every declared stage emitted
An option the verifier doesn't know, a typo such as --require-signatures or one from a later
version, is a usage error, exit 2, from 0.3.0. Versions before 0.3.0 ignore options they don't know
and have no gates, so a run would pass them unchecked: in CI, pin onetrace-verify>=0.3.0 or check
onetrace-verify --version first.
onetrace-verify --help lists every option.
What this is
This is verify.py and canonicalize.py from the onetrace project's own bench
(verifier/), repackaged under this distribution's own name and entry point -- not a rewrite,
not a copy that can drift. The check this distribution's own build verifies: installed alone,
in an environment with no onetrace present, it verifies the golden example run and refuses
every rejection vector, row for row identical to running verifier/verify.py directly from the
source repository. On a run whose manifest records edges, onetrace-verify adds rows of its own
after the bench's, each named in its output; every other row is the bench's own.
What this package does not claim
This sdist ships no test suite of its own. The behaviour that matters most for a package
this small and this static -- that the vendored verify.py/canonicalize.py stay byte-identical
to their bench originals, and that an unknown manifest-level format is refused rather than
silently accepted -- is exercised thoroughly from onetrace's own test suite, which imports and
runs this code directly. A separate, parallel test harness inside this package's own sdist would
duplicate that coverage without adding an independent check: both suites would be asserting the
same thing against the same file. If that duplication ever stops being true -- if this package
diverges from onetrace's own tests of it, or ships logic onetrace's suite does not exercise --
its own tests belong here at that point, not before.
Metadata
Release files for onetrace-verify 0.8.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 | Actions |
|---|---|---|---|---|
| onetrace_verify-0.8.1.tar.gz | 122.6 kB | Without provenance | Details for onetrace_verify-0.8.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| onetrace_verify-0.8.1-py3-none-any.whl | Python 3 | none | any | Details for onetrace_verify-0.8.1-py3-none-any.whl |
Total release size: 252.2 kB
Release files / onetrace_verify-0.8.1.tar.gz
| Download URL | onetrace_verify-0.8.1.tar.gz |
|---|---|
| Size | 122.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
372cc9e92756079f450607cb52e4b904dd2370f31a61d206ff97f64397c3634e
|
|
BLAKE2b-256 checksum How to use checksums |
e661d24daf6a8305c2b6fafd3a3c5a9a41424dde3db1ecb440eccc9edb0bd817
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.10
|
Release files / onetrace_verify-0.8.1-py3-none-any.whl
| Download URL | onetrace_verify-0.8.1-py3-none-any.whl |
|---|---|
| Size | 129.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
06e4b474f133f7ff5f98d16e4418b518323a2081ab129d5b19528c8f59743eb1
|
|
BLAKE2b-256 checksum How to use checksums |
82fdd916efc401a808d927c9fed664813960c53f857ae50b71399abd4fcf77f5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.10
|
Security for onetrace-verify 0.8.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.