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
    # 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.2.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 onetrace-explain 0.2.0
File Size Uploaded Provenance Actions
onetrace_explain-0.2.0.tar.gz 28.3 kB Without provenance Details for onetrace_explain-0.2.0.tar.gz

Built distribution (wheel)

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

Total release size: 60.4 kB

Release files / onetrace_explain-0.2.0.tar.gz

Download URL onetrace_explain-0.2.0.tar.gz
Size 28.3 kB
Tags Source
SHA-256 checksum
How to use checksums
2710e54a6bec26bf8e5a22e40d4c5988f736b75e700e5646093bf2916514fad5
BLAKE2b-256 checksum
How to use checksums
200259a618f16a5c06c5ca738ebe70d6dc20e6c986912e01fd64b58077e1adff
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.2.0-py3-none-any.whl

Download URL onetrace_explain-0.2.0-py3-none-any.whl
Size 32.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
26dfc48ae99b22062d3073cfab8938959af6c601e6d49ae926f9debbaa9b6f75
BLAKE2b-256 checksum
How to use checksums
f7f2aa7055df131ce5fd9fe759a859661d8fae65b3a43478c66c8cb5d6361ae0
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.2.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.

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