Skip to main content

DProvenanceKit (Python)

CI PyPI License Listed in the official OpenAI Agents SDK docs

Catch AI agent workflow regressions in CI

DProvenanceKit records the execution steps your application instruments, compares candidate runs with a known-good baseline, and can fail CI when a required step disappears or changes. It is a local-first, Apache-2.0 SDK that adds a regression gate alongside your existing tracing and observability tools.

Try it in 60 seconds

The published 0.10.0 release includes an opt-in reasoning repository v1: immutable workflow/run commits, branches, baseline promotion, read-only history browsing, and verified offline bundles. Run dpk repo demo --output-dir history-demo after installing 0.10.0. See the local reasoning history guide. This functionality requires 0.10.0 or later; it is absent from the older 0.9.2 wheel.

Install the published Python package and run the self-contained demo:

python -m pip install dprovenancekit
dpk demo

The demo uses sample traces—no model, API key, or network service is required. It deliberately removes a verification step, then demonstrates DPK detecting that regression. The demo exits successfully when it confirms the expected failure.

Want to see the gate on a pull request? Explore the dpk-gate-demo repository and its CI run.

How DPK fits your existing stack

Keep the tools you already use:

  • LangSmith and Langfuse help inspect and evaluate application traces.
  • OpenTelemetry provides vendor-neutral telemetry collection and transport.
  • DProvenanceKit records the instrumented workflow structure, compares it with a baseline, and applies a CI policy to decide whether a change should block release.

The distinction is the question each tool answers:

Observability and tracing DProvenanceKit
Primary question What happened during this run? Did the instrumented workflow regress against its baseline?
Main use Inspect, monitor, and investigate executions Compare recorded paths and enforce regression policy in CI
Data flow Your existing collectors and platforms Local recording and comparison; optional OpenTelemetry ingestion
Relationship Keep using your current stack Add DPK alongside it

Python integrations include LangChain/LangGraph, OpenAI Agents, LlamaIndex, CrewAI, and OpenTelemetry ingestion. Starting with 0.11.0 you can also start from traces you already have with dpk init --from-otel or --from-langsmith, and send gate verdicts back to OpenTelemetry, LangSmith, Langfuse, Arize Phoenix or Datadog with dprovenancekit.exporters. These are not in the published 0.10.0 package; until 0.11.0 is on PyPI, install from main to try them (pip install "git+https://github.com/Therealdk8890/DProvenanceKitPython.git"). DPK complements these systems; it does not replace production monitoring or evaluation.

Imagine a team uses an AI assistant to prepare a first draft of a legal brief. The application instruments three checks before export:

  1. Confirm that each cited case can be found in the selected legal source.
  2. Check that cited statutes are current for the relevant jurisdiction.
  3. Compare quoted passages with the source text.

The team records a known-good run and makes the required checks part of its regression policy. Later, a prompt, model, or application change accidentally removes the statute-currentness check. DPK can identify the missing instrumented step and fail the CI gate before that change ships.

The resulting record helps the team review which checks were captured and how the candidate path differed from its baseline. It does not independently validate the legal sources or establish that the brief is legally correct.

Python and Swift capabilities

The SDKs share a product and trace model, but their language-specific capabilities differ. Python has a broader set of framework integrations; Swift provides Apple-platform signing and proof-pack capabilities.

Capability Python SDK Swift SDK
Record, query, and diff instrumented paths Yes Yes
Golden-baseline regression gate Yes Yes
Framework and telemetry integrations LangChain/LangGraph, OpenAI Agents, LlamaIndex, CrewAI, OpenTelemetry ingest Foundation Models adapter; OpenTelemetry bridge
DPK-BINARY-V1 trace attestation Yes; optional [crypto] extra, software P-256 keys Yes; CryptoKit and P-256
Proof packs Not currently available Yes
Secure Enclave-backed keys Not available Supported Apple hardware
Portable reasoning-history objects and bundle verification Yes Yes; read-only verification
Local reasoning-history operations and web workbench Yes; opt-in Not available
Structural Alignment v1 and signed configuration manifests Experimental, opt-in Experimental, opt-in

Python's optional cryptographic extra is installed separately:

python -m pip install "dprovenancekit[crypto]"

For Swift and Apple on-device AI, see the DProvenanceKit Swift SDK. For the exact cross-language contract, see TRACE_SPEC_v1 and the release policy.

Scope and limits

DPK evaluates the execution data your application chooses to instrument and the regression policies you configure.

  • A recorded or matching path does not prove that model reasoning was sound or that a claim, citation, or decision is true.
  • A missing event means it was not present in the recorded instrumented path; it does not prove that an uninstrumented action never occurred.
  • Cryptographic attestation verifies the integrity of the artifact against its signature. It does not, by itself, establish signer identity, trusted time, or regulatory acceptance.
  • DPK is not a certification, compliance determination, or substitute for domain review.

These boundaries are intentional. See the attestation threat model and limitations.

Documentation

Release status and license

The latest published Python and Swift SDK releases are 0.10.0: Python GitHub Release, PyPI and Swift GitHub Release. This release includes the multi-database workbench and opt-in reasoning history; Structural Alignment v1/configuration authorization remain experimental. The earlier unpublished 0.9.3 preparation is superseded. See the publication record and workbench guide.

Source on main is prepared as 0.11.0 (trace bootstrap with dpk init --from-otel / --from-langsmith, dprovenancekit.exporters, dpk gate --otlp-out). 0.11.0 is not published yet; see the 0.11.0 release checklist.

DProvenanceKit is released under the Apache License 2.0.

Contributing and support

Metadata

Release files for dprovenancekit 0.11.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 dprovenancekit 0.11.0
File Size Uploaded Provenance Actions
dprovenancekit-0.11.0.tar.gz 356.3 kB With provenance Details for dprovenancekit-0.11.0.tar.gz

Built distribution (wheel)

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

Total release size: 626.2 kB

Release files / dprovenancekit-0.11.0.tar.gz

Download URL dprovenancekit-0.11.0.tar.gz
Size 356.3 kB
Tags Source
SHA-256 checksum
How to use checksums
b9cc3449e8f5f7dfad5e1bfeb4f72df86c12c56269decf1f19268f7e58d4855f
BLAKE2b-256 checksum
How to use checksums
d55225659cc121fe61c3291bebd51a886401dc1be03ad6b3a4f3ec8a25367f97
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 Nov 25, 2026.

Transparency log

Release files / dprovenancekit-0.11.0-py3-none-any.whl

Download URL dprovenancekit-0.11.0-py3-none-any.whl
Size 269.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
06e51796050a228c584a16e82ad38a3ccab5e6cb8d54b2c384e61b096e888ea1
BLAKE2b-256 checksum
How to use checksums
4fe3a55262dc018338ce40700373849ab34dea332da90d8ef9328cf44a2f55e8
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 Nov 25, 2026.

Transparency log

Security for dprovenancekit 0.11.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 dprovenancekit-0.11.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 Nov 25, 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