DProvenanceKit (Python)
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 0.10.0 source candidate 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 this checkout.
See the local reasoning history guide.
This functionality is not implied to exist in the published 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. DPK complements these systems; it does not replace production monitoring or evaluation.
Example: protect a legal-document workflow
Imagine a team uses an AI assistant to prepare a first draft of a legal brief. The application instruments three checks before export:
- Confirm that each cited case can be found in the selected legal source.
- Check that cited statutes are current for the relevant jurisdiction.
- 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
- Python installation and API documentation
- Regression-gate GitHub Action
- Self-hosted trace workbench guide — installation and release status for the 0.10.0 multi-database candidate
- 0.10.0 release checklist — scope, validation and publication gates
- Product and release documentation
- DProvenanceKit alongside LangSmith
Release status and license
The latest published Python and Swift SDK releases are 0.9.2. This checkout prepares the coordinated 0.10.0 candidate, which includes the multi-database workbench, opt-in reasoning history and experimental alignment/configuration APIs. The earlier unpublished 0.9.3 preparation is superseded. No 0.10.0 tag or PyPI artifact is published yet; candidate functionality is not implied to be present in the published 0.9.2 wheel. See the release checklist and workbench guide.
DProvenanceKit is released under the Apache License 2.0.
Contributing and support
Metadata
Release files for dprovenancekit 0.10.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| dprovenancekit-0.10.0.tar.gz | 317.8 kB | With provenance | Details for dprovenancekit-0.10.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| dprovenancekit-0.10.0-py3-none-any.whl | Python 3 | none | any | Details for dprovenancekit-0.10.0-py3-none-any.whl |
Total release size: 562.7 kB
Release files / dprovenancekit-0.10.0.tar.gz
| Download URL | dprovenancekit-0.10.0.tar.gz |
|---|---|
| Size | 317.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
dbeb719f71e7dcb0543eccb30af0fb123ebb2a0e828e38d7e9c255a95e1494e0
|
|
BLAKE2b-256 checksum How to use checksums |
3a8446ad6c62f7d838cc5844a610c367d30b5f5d392b96113d775adb8dd4ca74
|
| 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 16, 2026.
Transparency logRelease files / dprovenancekit-0.10.0-py3-none-any.whl
| Download URL | dprovenancekit-0.10.0-py3-none-any.whl |
|---|---|
| Size | 244.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
25854be0ca98d14b8b6a0af4622940452261b5629c2399ef643a739413d3d544
|
|
BLAKE2b-256 checksum How to use checksums |
1c27960df82e00b827c65765285a1fad228ac6c8d583f2aefd8cab90fe047ae4
|
| 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 16, 2026.
Transparency logSecurity for dprovenancekit 0.10.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.
Attestation for dprovenancekit-0.10.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 16, 2026.
Transparency logA 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.