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.1

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.1
File Size Uploaded Provenance Actions
onetrace_explain-0.3.1.tar.gz 30.4 kB Without provenance Details for onetrace_explain-0.3.1.tar.gz

Built distribution (wheel)

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

Total release size: 64.6 kB

Release files / onetrace_explain-0.3.1.tar.gz

Download URL onetrace_explain-0.3.1.tar.gz
Size 30.4 kB
Tags Source
SHA-256 checksum
How to use checksums
55bffc96b377a3e7daae23920a392459fc848c723020d6a4cd85b31387825555
BLAKE2b-256 checksum
How to use checksums
e0bdf6e3a0d49057028b2baf4a2b2f69a31abe5181aa6e39832a573b49e22f3f
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.1-py3-none-any.whl

Download URL onetrace_explain-0.3.1-py3-none-any.whl
Size 34.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
20a506dce8e5c1f19fb70c9054f6f7c1bfab313f71fd59aae3b745eebf81e7b5
BLAKE2b-256 checksum
How to use checksums
fd3b45a050fe1aea6c4d944a4b36f85658d28d5df369d9f88bfa4fc30f6e4264
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.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.

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