Skip to main content

Decision Trace Reconstructor

DOI

Decision Trace Reconstructor makes agent decisions auditable after the fact: it shows whether the available traces are enough to reconstruct what happened, and names every missing or opaque decision fact.

Instead of generating another narrative, it produces a per-property reconstructability matrix: which decision-event fields are evidenced, partial, structurally absent, or opaque. No synthetic rationale is invented.

Supported Adapters

Full adapter documentation lives in docs/adapters/. Each adapter supports offline file ingest; vendor-backed adapters also support live/network ingest when the optional extra and credentials are available.

# Adapter Extra Covers
01 langsmith [langsmith] LangChain / LangGraph ecosystem
02 otlp [otlp] OpenTelemetry GenAI — one adapter, many backends
03 bedrock [bedrock] AWS Bedrock AgentCore
04 openai-agents [openai-agents] OpenAI Agents SDK + Traces dashboard exports
05 anthropic [anthropic] Anthropic Messages API + Computer Use
06 mcp [mcp] Model Context Protocol transcripts
07 crewai [crewai] CrewAI multi-agent telemetry
08 agentframework [agentframework] Microsoft Agent Framework / AutoGen v0.4
09 pydantic-ai [pydantic-ai] Pydantic AI run records
10 generic-jsonl none Custom JSONL logs via mapping config

Unsupported source systems should use generic-jsonl first. If OpenTelemetry GenAI spans are available, otlp is usually the better long-term integration path.

Quick Start

# 1. Install with the relevant adapter extra
pip install -e '.[langsmith]'   # or [otlp], [bedrock], [openai-agents], ...

# 2. Ingest a trace into a fragments manifest
decision-trace ingest langsmith --from-file traces/agent_run.json \
  --architecture single_agent --stack-tier within_stack \
  --state-mutation-tools "(write|exec|drop|delete|update)" \
  --out fragments.json

# 3. Reconstruct and emit evidence reports
decision-trace reconstruct fragments.json --out report/ --jsonld

Output:

  • report/feasibility.json: per-property reconstructability categories, gap descriptions, and completeness percentage
  • report/trace.jsonld: W3C PROV-O graph, queryable via SPARQL

Ingest can also be piped directly into reconstruction:

decision-trace ingest langsmith --from-file traces/run.json --out - | \
  decision-trace reconstruct /dev/stdin --out report/ --jsonld

Result Shape

The report is intentionally diagnostic, not narrative:

Property Category Gap
inputs fully_fillable none
policy_basis structurally_unfillable active policy was not recorded
reasoning_trace opaque model reasoning is not externally observable

Documentation

Examples

Worked examples live under examples/<adapter>_basic_agent/ and are pinned by integration tests for bit-identical reproduction. The named incident example examples/replit_drop_database/ shows reconstruction from a public-record fragment manifest.

  • Companion papers for the Decision Evidence Maturity Model and related evidence-regime concepts are in preparation. They are intentionally not cited as publications until public identifiers exist.
  • Conceptual dependencies: the Decision Event Schema, the upstream Evidence Collector SDK, and the downstream Governance Benchmark Dataset.

Citation

CITATION.cff, codemeta.json, and ro-crate-metadata.json ship with the package. Version v0.1.0 is archived on Zenodo at https://doi.org/10.5281/zenodo.19851574. That deposit identifies the original fixture evaluation, including the retained results/ files. Version 0.2.0 is prepared for release; its version DOI will be recorded after archival publication. The later live-model study requires a separate replication deposit and must not be cited as part of v0.1.0.

License

Apache-2.0. See LICENSE.

Evidence assessment contracts

The mapper separates topology from evidence visibility and record producers from action issuers. Existing manifests report structural coverage (fragment-coverage-v2). The opt-in decision-evidence-v1 contract checks structured scope, request/receipt binding and independent state observations; it is not a general semantic or authentication verifier. See the contract and examples. Historical v0.1.0 results and frozen V5 assessments remain tied to their preserved instruments.

Replication study

See the replication guide for the immutable run inventory, portable offline reproduction command and local package preparation. Study data are delivered separately from the runtime wheel. The source distribution includes the experiment tools, but cannot recreate frozen model responses unless the replication data are supplied.

Metadata

Release files for decision-trace-reconstructor 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 decision-trace-reconstructor 0.2.0
File Size Uploaded Provenance Actions
decision_trace_reconstructor-0.2.0.tar.gz 372.6 kB With provenance Details for decision_trace_reconstructor-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for decision-trace-reconstructor 0.2.0
File Interpreter ABI Platform Actions
decision_trace_reconstructor-0.2.0-py3-none-any.whl Python 3 none any Details for decision_trace_reconstructor-0.2.0-py3-none-any.whl

Total release size: 581.0 kB

Release files / decision_trace_reconstructor-0.2.0.tar.gz

Download URL decision_trace_reconstructor-0.2.0.tar.gz
Size 372.6 kB
Tags Source
SHA-256 checksum
How to use checksums
32af7ed43fa60c717f05a61e8b16934deb07f9bcb86897c0a2901aebb36c293e
BLAKE2b-256 checksum
How to use checksums
1d90806e5c121cbceaafd249d24cffa1a5f943b4c15f88caf263b055d9d81269
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 Oct 11, 2026.

Transparency log

Release files / decision_trace_reconstructor-0.2.0-py3-none-any.whl

Download URL decision_trace_reconstructor-0.2.0-py3-none-any.whl
Size 208.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0e5b315e9bca187c3c3af5ca856258234aae044017f9a2483eb8286a72479770
BLAKE2b-256 checksum
How to use checksums
0376a19d3fb21820764ca7c8c20146f417eab4ff2bbabc509b440f36652a331b
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 Oct 11, 2026.

Transparency log

Security for decision-trace-reconstructor 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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for decision_trace_reconstructor-0.2.0.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 Oct 11, 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.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files Full provenance

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