Praxis
The server provides evidence-bound remediation for dbt schema drift incidents (e.g., renamed source fields). It allows you to:
Prepare a remediation: from a DataHub source URN and old/new field names, it generates minimal dbt compatibility patches, runs fail-closed verification, and returns a run ID with risk score.
Inspect remediation runs: retrieve full run records with evidence, artifacts (diffs, hashes), verification results, and a chained ledger.
Read generated artifacts: fetch the exact content, unified diff, and SHA-256 of any candidate file.
Record human approval or rejection: only explicit human decisions are accepted; upon approval, it re-verifies and publishes outputs to DataHub and/or GitHub.
Check integration status: see which integrations (DataHub, GitHub, dbt, target repo) are configured and optionally probe live connectivity.
Provides remediation for dbt projects by detecting schema-drift incidents against DataHub lineage, generating minimal dbt compatibility patches, and verifying them with dbt parse before human approval.
Allows publishing approved remediation bundles as a single Git tree, commit, and draft pull request on a GitHub repository using the Git database API.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Praxis fix schema drift in the customers model"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Praxis
The evidence-bound remediation agent for DataHub-governed data products.
Praxis takes one narrow but expensive incident all the way to a mergeable fix: a source field was renamed, a dbt model still projects the old field, and the break can propagate into a production ML path. It reads the exact DataHub schema and lineage, inspects the real dbt files, generates a minimal compatibility patch, verifies it in isolation, pauses for a named human decision, and publishes only confirmed outputs.
The differentiator is not another incident summary. It is a proof-carrying change set. Every candidate contains DataHub evidence URNs, before/after SHA-256 hashes, validation results, and a rollback instruction. Praxis re-reads the repository and repeats verification after approval, so a stale review can never be applied.
It runs three ways: a web UI for the human at the gate, an MCP server so an agent can drive it, and a DataHub Skill that composes DataHub's own MCP server for discovery with Praxis for the verified fix.

▶ Watch the 2-minute demo — one incident, from DataHub evidence to a verified change set at the human gate.
Three ways in
Command | Needs | |
Sandbox UI, no credentials |
| Python 3.10+ |
Live DataHub, one command |
| Docker |
As agent tools over MCP |
| an MCP-capable agent host |
Related MCP server: safe-runbook-mcp
Try it in 60 seconds
Python 3.10+ is the only requirement for the sandbox's structural verification path.
python -m praxisFor the same real dbt parse gate used in the Docker image:
pip install -r requirements-dbt.txt
python -m praxisOpen http://127.0.0.1:8787, select Resolve evidence & verify, inspect the Evidence and Candidate tabs, and approve or reject the bundle. No credentials are required.
The sandbox is not a prerecorded UI. The backend loads a packaged DataHub-shaped
incident fixture, reads the intentionally broken dbt project under
sandbox/dbt_project, generates new files, validates them, persists a chained
ledger, and serves the resulting artifacts. The source project is deliberately
left unchanged; the approved bundle is written under .runtime/artifacts.
Packaged incident in the intake form switches between three of them, so the engine can be judged on more than one input:
Incident | Blast radius | Outcome |
Encounters rename | dbt → Feast → MLflow → SageMaker → Looker | risk 95, |
Medications rename | dbt → dbt mart → Looker | risk 65 — the score is composed from evidence, not fixed |
Lab results rename | dbt → Looker | refused: the column is wrapped in a |
The third one is the point. Praxis stops before generating anything rather than guess which part of an expression to rewrite, and the UI reports it as stopped safely rather than as a result.
Docker is equally self-contained and includes the pinned DataHub SDK plus dbt/DuckDB parser. Sandbox needs no credentials; the same image supports live column-lineage and deployment evidence when DataHub is configured:
docker compose up --buildWhat the agent proves
The old source field is absent and its replacement is present.
At least one DataHub column-lineage path confirms downstream field impact.
DataHub entity lineage identifies the wider data/ML/dashboard blast radius.
The dbt repository contains exactly one safe projection to repair.
The candidate preserves every projected output in an enforced contract.
The SQL has no destructive operations and input hashes are still current.
dbt parsepasses when dbt is installed; otherwise the UI saysstructurally verifiedand records the skipped check.The exact candidate hashes still match immediately after human approval.
If any required proof is missing, Praxis stops before offering approval.
Outputs
Each successful sandbox run produces four inspectable artifacts:
a one-line dbt compatibility repair;
the existing dbt contract with enforcement enabled;
a provenance manifest with DataHub URNs and input/output hashes;
a complete verification report, including skipped checks.
The checked-in sample bundle is generated
from the same code path by examples/regenerate.py.
examples/README.md walks through each file and shows the
one-line diff, so the output can be judged without running anything.
What it looks like
|
|
The human gate: tier, external systems, rollback, named approver. | Exact DataHub schema, ownership, failed assertion, column path. |
|
|
Generated files, unified diffs, hashes, every verification check. | The SHA-256 chained ledger for the run. |
Every screenshot in docs/screenshots/ is produced by
demo-video/scripts/capture-ui.py, which drives the shipped server in a real
browser rather than being posed by hand.
Demo film
https://youtu.be/tqZr-XEIfV8 (2:13)
demo-video/ builds the submission film with
Remotion and Edge neural TTS. It is data-driven: demo-video/scripts/capture-trace.py
drives this engine headlessly and every number, URN, hash and generated line on
screen is read from that capture; the human-gate scene is a real screen
recording of the product, not a mock-up. Render it with
demo-video\render-final.ps1.
Live DataHub and GitHub
Install the official DataHub SDK only for live column-level lineage:
pip install -r requirements-datahub.txtSet the integrations you want:
PRAXIS_TARGET_REPO=/absolute/path/to/your/dbt-project
PRAXIS_DBT_COMMAND=dbt
DATAHUB_GMS_URL=http://localhost:8080
DATAHUB_TOKEN=...
DATAHUB_UI_URL=http://localhost:9002
GITHUB_REPOSITORY=owner/repository
GITHUB_TOKEN=...
GITHUB_BASE_BRANCH=main
# Required for live integrations on a public/non-loopback bind.
PRAXIS_APPROVAL_TOKEN=...In live mode Praxis uses DataHub GraphQL for the exact dataset schema,
ownership, description, and entity blast radius, and the official lineage SDK
for field paths. After approval it adds praxis.verified-impact only to URNs
that DataHub confirms and appends a hash-bound memory note to the source
dataset. It never reports an attempted write as a successful graph delta.
When GitHub is configured, Praxis creates one Git tree, one commit, and one draft pull request through the Git database API. Existing files are updated atomically; it does not make one commit per file. Without GitHub credentials, the local bundle remains the only repository output.
One command to a live graph
python setup/live_quickstart.pyInstalls the pinned SDK, brings up DataHub Core 1.6.0, waits for GMS to answer
GraphQL, and seeds a self-contained nine-entity graph: the post-rename source
schema, two-hop column lineage, three ML features, a production model, its model
group, its SageMaker deployment and a business-critical dashboard. No warehouse
and no datapack. --serve starts Praxis on it, --stop tears it down.
Quickstart publishes GMS on host port 8080, which is a popular port. If something else already holds it the script says so in seconds rather than failing several minutes into container startup, and moves DataHub out of the way on request:
python setup/live_quickstart.py --gms-port 58080The equivalent by hand:
datahub docker quickstart --version v1.6.0
DATAHUB_GMS_URL=http://localhost:8080 python setup/seed_ml_lineage.pySee credential boundaries before connecting a
non-disposable deployment. In particular, the Quickstart datahub:datahub login
is not a DataHub API token.
Drive it from an agent (MCP)
Praxis is also an MCP server, so an agent can resolve an incident, read the diff and the verification result, and put the decision in front of a human:
python -m praxis.mcp # stdio JSON-RPC; --list-tools to inspectFive tools: praxis_prepare_remediation, praxis_get_run, praxis_get_artifact,
praxis_approve_remediation, praxis_integration_status.
.mcp.json registers Praxis alongside DataHub's own MCP server,
which is the intended pairing — DataHub does discovery and lineage, Praxis does the
part a conversational surface cannot: generate a change and refuse to hand it over
unverified.
The agent cannot approve. praxis_approve_remediation requires a named human
identity and an explicit human_approved flag that an agent is instructed never to
set on a person's behalf. A refused approval leaves the run in waiting with
nothing applied, and the tests assert it.
contrib/skills/datahub-verified-remediation/
is a DataHub Skill in the upstream datahub-skills layout that drives this whole
workflow, plus an RFC for the append-only
agent-memory aspect DataHub currently lacks. See contrib/.
References:
Truth matrix
Mode | Reads | Writes after approval | Never does |
Sandbox | Packaged evidence + local dbt project | Local review bundle | DataHub, GitHub, or source-repo mutation |
Live DataHub | Exact DataHub schema + lineage + local dbt project | Confirmed DataHub tags/note; local bundle | Production traffic changes |
Live + GitHub | Same as live | One atomic draft PR plus confirmed DataHub writes | Automatic merge or deployment |
Agent over MCP | Same as the mode it is configured for | Nothing — an agent may prepare and inspect only | Approve on a human's behalf |
Test and audit
python -m compileall -q praxis tests
python -m unittest discover -s tests -v
node --check praxis/public/app.jsThe tests cover the DataHub 1.6 GraphQL schema, two approval races (at worker handoff and during the preparation slot release), restart-safe state, rejection safety, candidate generation, verification, path traversal, API authorization, SQLite migration, connector truthfulness, tamper detection, and the MCP surface — protocol handshake, stdio framing, path redaction, and the refusal that stops an agent approving its own work. See the architecture and contest audit for the detailed boundaries and remaining deployment checks.
Apache 2.0 licensed.
Available Tools
5 toolspraxis_approve_remediationRecord a human decisionA
Record an approval or rejection for a run that passed verification. APPROVAL IS A HUMAN ACT: you must not call this on your own judgement. Only call it when a person has seen the diff and the verification result and told you their decision, and pass the identity they gave you. On approval Praxis re-reads the repository, re-verifies, compares the candidate hashes, and publishes only outputs an external system confirms.
Inputs: run_id (required), approver (required), decision (required), human_approved (required).
praxis_get_artifactRead generated file contentARead-onlyIdempotent
Exact content of one generated candidate file, with its unified diff against what is in the repository today and its SHA-256. Use this to show a reviewer the change rather than describing it.
Inputs: run_id (required), path.
praxis_get_runRead a remediation runARead-onlyIdempotent
The full record for a run: DataHub evidence with URNs, the blast radius, repository input hashes, every generated artifact with its unified diff and SHA-256, the verification result including skipped checks, and the chained ledger. Operator filesystem paths are removed.
Inputs: run_id, include_events.
praxis_integration_statusReport configured integrationsARead-onlyIdempotent
Whether DataHub, GitHub, the target repository and dbt are configured, and therefore which evidence modes and outputs are available. Call this before choosing 'live' mode.
Inputs: probe.
praxis_prepare_remediationPrepare a verified remediationARead-only
Resolve DataHub evidence for a schema-drift incident, generate the smallest safe dbt compatibility patch against the real repository, and run fail-closed verification. Returns the run id, the risk score, the verification tier and every check. Blocks on nothing and mutates nothing: the target repository, DataHub and GitHub are untouched. Waits for the run to reach its human gate before returning.
Inputs: source_urn (required), source_field (required), replacement_field (required), mode, +2 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 5 tools
Each tool has a clearly distinct role: initiating remediation, retrieving run records, fetching artifact diffs, approving/rejecting, and checking integration status. No overlap in functionality.
All tool names follow the consistent pattern 'praxis_verb_noun' using snake_case, e.g., praxis_prepare_remediation, praxis_get_run. No deviations.
Five tools is well-scoped for a remediation workflow server covering initiation, status retrieval, artifact access, approval, and integration checks. Each tool earns its place.
Covers the core workflow end-to-end (prepare, retrieve, approve, check status). Minor gap: no listing or searching runs; agents must know the run ID, but this is acceptable for the focused domain.
Maintenance
Related MCP Connectors
Human-in-the-loop review and approval for AI agents. Audit trail, approval policies, native MCP.
Verified AI-agent outcomes: secret scanning, JSON cleanup, dedupe, anomaly and schema checks.
Autonomous and governed SRE & MLOps control plane for AI agent platforms.
AI-native GRC: compliance scores, security findings, tickets and agent trust tiers.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceAn MCP-native AI incident response system that empowers agents to investigate production incidents, collect evidence, hypothesize root causes, and drive controlled remediation and recovery verification.1-
- AlicenseAqualityCmaintenanceEnables AI agents to safely inspect and execute version-controlled operational runbooks with policy checks, dry-run planning, and out-of-band approvals.3MIT
- FlicenseNot gradedqualityCmaintenanceEnables users to investigate infrastructure incidents in plain English, correlate observability and deploy data with runbooks, and get evidence-backed root-cause proposals with approval-gated remediation.5-
- AlicenseNot gradedqualityCmaintenanceEnables cloud and platform engineers to investigate AWS incidents by grounding responses in approved runbooks and operational evidence, with authenticated access, citations, observability, and human approval before any write action.1MIT



