Skip to main content

Tracevity CLI

Did this agent post the GitHub comment it promised?

Check my workflow has the current read-only command for a GitHub Actions run URL and the instructions for replaying a local evidence folder.

The standalone Python 3.11+ comment kit follows one selected gh-aw add-comment request through its execution and item receipts to the exact top-level PR comment. Its agent JSON, maintainer note and separate checklist receipt describe the evidence for that request. The offline path uses the standard library. Installing this CLI is optional for that check.

The example qualified with CLI 0.5.14 is v1.3.1. Download the official offline example · Release and checksum

Tracevity Inspect checks record-to-span association for a named requirement. Gate checks regression against a baseline. A workflow that reports completion of a particular write needs the separate request-to-record linkage check above. Inspect and Gate run locally.

Install

Use an isolated tool environment when possible:

pipx install tracevity==0.5.14

or:

uv tool install tracevity==0.5.14

Conventional installation is also supported:

python -m pip install tracevity==0.5.14

Tracevity 0.5.14 supports CPython 3.11, 3.12, 3.13, and 3.14. Its operational dependency closure is limited to pinned OTLP protobuf definitions and protobuf itself.

The CLI distribution is version 0.5.14. Its Inspector and Gate engines retain their 0.5.10 identities and v0.2 report formats so existing reports and sealed baselines can be evaluated under their original policy. The CLI distribution registry identifies the installable package version and its engine version. The frozen engine contracts list the Inspector and Gate versions and the schemas they evaluate.

Quickstart

Download, verify, and extract the safe synthetic example bundle from tracevity.com/cli, then run these commands from the extracted bundle directory. No production trace is needed.

tracevity --version

tracevity traces list --manifest inspect/manifest.json

tracevity inspect \
  --manifest inspect/manifest.json \
  --requirements inspect/requirements.json \
  --out reconstruction-report.json

tracevity gate \
  --suite gate/tracevity-gate.json \
  --out tracevity-gate-report.json

traces list returns bounded structural information for explicit target selection. It does not print prompts, outputs, tool arguments, tool results, or arbitrary captured attributes.

For candidate span names, IDs, parents and indexed fields, run the same Inspect command with --explain. It prints bounded identifiers to the local terminal. When several spans share a tool-call ID, provide the independently identified span_id in the evidence correlation keys.

Capture and destination evidence

Start the bounded loopback receiver before running an OTLP HTTP/protobuf exporter:

tracevity capture otlp \
  --listen 127.0.0.1:4318 \
  --out trace.otlp.pb \
  --receipt capture-receipt.json

The receiver accepts only /v1/traces on IPv4 loopback, enforces request, byte, span, and idle-time bounds, combines valid batches, and never uploads or prints captured values.

Tracevity ships one deliberately narrow, read-only destination adapter:

tracevity evidence github issue-comment \
  --repo OWNER/REPOSITORY \
  --comment-id COMMENT_ID \
  --out github-evidence.json

The comment kit's fixtures/result-comment.json is a minimal saved identity from PR 12481. It contains the comment ID, API URL, issue URL and permalink. The kit can compare those fields to the selected receipt chain. This snapshot alone cannot establish the comment body or its visibility now.

The installed CLI imports a fuller saved REST record. It also requires the comment node ID, creation and update timestamps, body, and the author's login, ID, node ID and type. From the extracted comment kit, import its synthetic example with:

tracevity evidence github issue-comment --repo example/maintenance --issue-number 7 \
  --comment-id 101 --from-file fixtures/synthetic-full-comment.json --out snapshot-evidence.json

This records the file digest and USER_PROVIDED provenance. A policy that requires a provider read remains unsatisfied. The following network behavior applies to the live adapter.

It reads exactly one existing issue or pull-request comment from api.github.com. Public comments can be read without authentication. For private repositories or higher rate limits, set TRACEVITY_GITHUB_TOKEN in the environment; command-line tokens and custom API origins are not accepted. The envelope stores a body SHA-256, not the comment body. Provider API retrieval is external-system evidence with unverified record authenticity; HTTPS, ETags, and request IDs are not cryptographic proof.

Render either report locally as inert HTML and/or Markdown:

tracevity report render reconstruction-report.json \
  --html reconstruction-report.html \
  --markdown reconstruction-report.md

Supported trace declarations

The Inspector accepts OTLP trace protobuf for four exact declared representations:

Declaration Supported version Evidence binding
OpenTelemetry GenAI 67dff024110be5bd9f318006e733f4078e0f4c97 binding-otel-genai-to-otlp
OpenInference 0.1.33 binding-openinference-to-otlp
MLflow native tracing 3.15.2 binding-mlflow-native-to-otlp
MLflow GenAI-transformed tracing 3.15.2 binding-mlflow-native-to-genai

OTLP logs and metrics are recognized but unsupported as primary trace inputs. A structurally valid OTLP payload does not prove producer identity, complete capture, or semantic sufficiency.

Gate exits

Exit Meaning
0 No policy-blocking reconstruction regression
2 Blocking reconstruction regression
3 Required result became indeterminate, or a sealed baseline is incomparable
4 Invalid suite, policy, baseline, manifest, evidence, or input
5 Unsupported signal, dialect, version, or representation
70 Internal invariant or prohibited-network failure

Gate compares reconstruction consequences for named requirements, not raw span counts or field sets. Replayable baseline and candidate inputs run through the same current Inspector. An incompatible sealed report yields INCOMPARABLE_REQUIRES_REBASE; it is never silently accepted.

Privacy, network, and semantic limits

inspect, gate, traces list, and report render make no network requests. capture otlp opens only the loopback listener the operator requests. The GitHub evidence adapter makes one explicit, bounded outbound read to the official GitHub REST API. No command contacts a Tracevity service, emits Tracevity analytics, calls a model, uploads a trace, creates an account, performs an update check, sends a crash report, or keeps a hidden input cache. Trace contents remain local and are never executed.

Keep these boundaries explicit:

tool success != external settlement
agent identity != initiating principal
valid OTLP != sufficient reconstruction
recorded rationale != hidden reasoning
Gate pass != certification

Tracevity reports what supplied evidence establishes for a named use case. An exactly correlated provider record can corroborate destination state without becoming cryptographically authenticated. Tracevity does not reveal true latent motivation, prove omitted evidence never existed, certify an arbitrary producer, or turn a tool-reported result into independently verified external state.

Documentation and feedback

Never post production traces, prompts, outputs, credentials, secrets, customer data, or private logs to a public issue.

License

Files included in the public Python distribution and its bundled public runtime resources are licensed under Apache-2.0. See LICENSE-CLI in the distribution. That scoped license does not relicense the private Tracevity monorepo or material not included in the wheel/source distribution.

Metadata

Release files for tracevity 0.5.14

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tracevity 0.5.14
File Size Uploaded Provenance Actions
tracevity-0.5.14.tar.gz 91.7 kB With provenance Details for tracevity-0.5.14.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for tracevity 0.5.14
File Interpreter ABI Platform Actions
tracevity-0.5.14-py3-none-any.whl Python 3 none any Details for tracevity-0.5.14-py3-none-any.whl

Total release size: 203.8 kB

Release files / tracevity-0.5.14.tar.gz

Download URL tracevity-0.5.14.tar.gz
Size 91.7 kB
Tags Source
SHA-256 checksum
How to use checksums
b1d2df48fc469ac9e1c817457202a4dc1e3237cc84219dc95da119beabcd1cc1
BLAKE2b-256 checksum
How to use checksums
8481f141df6f07d1565623a281bffe8388c7321f73e9b02b437878623b403ba3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Dec 3, 2026.

Transparency log

Release files / tracevity-0.5.14-py3-none-any.whl

Download URL tracevity-0.5.14-py3-none-any.whl
Size 112.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
31ee0290eff67fb5a215a1c552629e7218e3b7eea683a43567affc6138c88521
BLAKE2b-256 checksum
How to use checksums
a05760852779e347af25a526de542b1009f33530fdfd88c6f5ee906b9276e246
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Dec 3, 2026.

Transparency log

Security for tracevity 0.5.14

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 tracevity-0.5.14.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 Dec 3, 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