Skip to main content

onetrace-explain

A suggested explanation of a onetrace comparison: AI-generated, may be wrong, and checked against the record before anyone reads it. Never a verdict: onetrace's verdicts and exit codes are what they are without it, and its exit codes say nothing about the runs. Don't use it as a CI gate.

onetrace-explain runs/a runs/b --no-model  # what changed, and the evidence; nothing sent (0.2)
onetrace-explain runs/a runs/b             # the four parts, with your configured model (0.2)
onetrace localize runs/a runs/b --for answer --out report
onetrace-explain report --dry-run          # the packet exactly as it would be sent; nothing sent
onetrace-explain report --model anthropic:<model name>

Two runs (0.2). onetrace-explain RUN_A RUN_B compares them itself and prints four parts:

  1. what changed, checked from the records, printed always;
  2. the evidence of read-only probes (variation, mask, model_call), each with its sample, and not run: <why> for any whose needs are missing;
  3. what may have happened, AI-generated, may be wrong, each claim citing a probe or a record item;
  4. checks a human could run, never run here.

Its exit code is onetrace diff's. --json gives the four parts in four keys, never mixed. The explanation is recorded as a run of its own. docs/explain-format.md says what each part holds.

  • What is sent: a packet built from the report and the two runs' receipts: verdicts, stage names and edges, outcome classes, digests and sizes, instrument names and versions, and the constants that differ with both values (--redact NAME sends a name and digest only). Kept text only with --include-text. A constant's value goes as the run recorded it, a path or a token included; --redact NAME keeps it out. Never this machine's own paths, an environment variable, the model key, a signing key or an anchor's proof. The first send of a kind of item to an endpoint asks first (--yes for scripts).

  • The model: yours, named in ~/.config/onetrace/explain.toml:

    [model]
    provider = "anthropic"          # or "openai" (any OpenAI-compatible endpoint, local ones too)
    name = "<model name>"
    key_env = "ANTHROPIC_API_KEY"   # the variable holding the key; the key is never written anywhere
    # key_source = "keyring"        # or read the key from the OS keychain: pip install "onetrace-explain[keyring]"
    # base_url = "http://localhost:8000/v1"   # for an openai-compatible server
    
  • The post-check, with no model: a claim is dropped when it cites nothing, cites what the packet doesn't hold, quotes a value its cites don't hold, or says what caused a difference. What's shown says how many were dropped, and why.

  • Checks, not conclusions: each suggestion comes with onetrace commands to run. A lead is confirmed or ruled out only by what those report.

  • Recorded: every explanation is a onetrace run of its own, under <out>/explain/<run id>/, which onetrace-verify checks like any run.

Metadata

Release files for onetrace-explain 0.3.2

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

Source distribution (sdist)

Source distribution for onetrace-explain 0.3.2
File Size Uploaded Provenance Actions
onetrace_explain-0.3.2.tar.gz 31.6 kB Without provenance Details for onetrace_explain-0.3.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for onetrace-explain 0.3.2
File Interpreter ABI Platform Actions
onetrace_explain-0.3.2-py3-none-any.whl Python 3 none any Details for onetrace_explain-0.3.2-py3-none-any.whl

Total release size: 65.8 kB

Release files / onetrace_explain-0.3.2.tar.gz

Download URL onetrace_explain-0.3.2.tar.gz
Size 31.6 kB
Tags Source
SHA-256 checksum
How to use checksums
3a345e0d1082e913b282e593cc3bebb4f4df050b63ae36aadcf289ec5165801c
BLAKE2b-256 checksum
How to use checksums
31896600989ba94633350f84fb29704a1f114db73e48403ebd820df3e19cc07c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.10

Release files / onetrace_explain-0.3.2-py3-none-any.whl

Download URL onetrace_explain-0.3.2-py3-none-any.whl
Size 34.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
50988bd1cf761a7c3730b8b04eb13a7e0715cece56402c568d5b4e5ab3011d2f
BLAKE2b-256 checksum
How to use checksums
f605589c23b67af8bc31a55f9601425bb2b17dc07f465b894d192a22f9e1353b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.10

Security for onetrace-explain 0.3.2

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.

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