ODD-min AI Workflow Engine — make AI accountable, auditable, and governable
Project description
DeepFlow Python
ODD-min AI Workflow Engine — make AI accountable, auditable, and governable.
The Python implementation of DeepFlow (UniFlow), grounded in ODD (Output-Driven Development) methodology.
What Is This
DeepFlow Python is a workflow engine for AI-generated artifacts. It answers a question no other framework answers:
How do I know what the AI produced is what I asked for, who authorized it, and can I take it back?
Three capabilities make this concrete:
| Capability | What It Does |
|---|---|
| Contract | Define what a valid artifact looks like before the AI produces it |
| Evidence | Every run records what was asked, what was produced, and who (or what) approved it |
| Seal / Rollback | Lock approved outputs in place; if something goes wrong, roll back to a known-good state |
This is not a wrapper around LangChain. It sits on a different layer: governance over execution.
Install
pip install deepflow
Requires Python 3.11+.
Quick Start
from deepflow import Workflow, Contract, LLMAdapter
# 1. Define what "good output" means
contract = Contract(
name="summary",
schema={"text": str, "confidence": float},
must_not_change=["system_prompt"],
)
# 2. Build a workflow that enforces it
wf = Workflow("summarize")
wf.add_step("call_llm", action="llm", prompt="Summarize: {{input.text}}")
wf.add_step("validate", guard=contract) # rejects if contract is violated
wf.add_step("seal", seal=True) # locks the result with evidence
# 3. Run
result = wf.run(
{"text": "..."},
llm=LLMAdapter.openai(api_key="..."),
)
print(result.output) # the artifact
print(result.evidence) # full audit trail
print(result.seal_id) # immutable reference to this version
What It Is Not
- Not a LangChain/CrewAI competitor — different layer
- Not a replacement for code review — it governs AI outputs, not human code
- Not a general-purpose workflow engine — it is designed for AI-native, high-throughput artifact production
Relationship to the Delphi Version
The original DeepFlow is a 112K LOC Delphi application (v1.0.0, December 2025) that has passed M1–M6 verification milestones. This Python version is a full rewrite targeting the Python ecosystem, with an identical ODD-min 5-field ABI:
| Delphi | Python |
|---|---|
DeepFlow.Workflow.Definition |
deepflow.workflow.definition |
DeepFlow.Workflow.Executor |
deepflow.workflow.executor |
DeepFlow.Audit.* |
deepflow.security.audit |
DeepFlow.Skill.* |
deepflow.skill.* |
DeepFlow.EventSourcing.* |
deepflow.events.* |
Methodology
Built on ODD (Output-Driven Development) — an engineering governance protocol for AI-produced artifacts. ODD's core claim:
In AI-assisted engineering, what needs governing is not "what the model said" but "which artifacts are allowed into the system, and whether they can be verified, sealed, and recalled."
ODD is published on Zenodo (DOI: 10.5281/zenodo.20024964) and has been publicly reviewed.
License
MIT (code). CC-BY-4.0 (documentation and academic materials).
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file deepflow_py-0.1.0.tar.gz.
File metadata
- Download URL: deepflow_py-0.1.0.tar.gz
- Upload date:
- Size: 65.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
644f812731a6e282b8d9f5ae2dfbae2223f9fbe4134843ca34a4fdb6c86b69b2
|
|
| MD5 |
3ab469dfdd0c848ba952c73db899abd9
|
|
| BLAKE2b-256 |
813035709fc23f7b0f68b78de3d530ad1f51230e72ddd187491b37185f770d4a
|
File details
Details for the file deepflow_py-0.1.0-py3-none-any.whl.
File metadata
- Download URL: deepflow_py-0.1.0-py3-none-any.whl
- Upload date:
- Size: 57.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
50e629708ef63e91320a43eab9a3a77a27e6719340462f5ca24d6faa69d9f7cc
|
|
| MD5 |
4c356078cfa0b47afbe3217c748bd7bd
|
|
| BLAKE2b-256 |
9eab7f8bb0a2e767e6c98dd8b6e390b4fc71b2d3d0045ded7b99aa99a494a052
|