Can I trust order_history for production_ml?
TrustGate investigates DataHub metadata, reconciles conflicting dbt/Snowflake evidence, proposes a fix, waits for human approval, writes back to DataHub, re-fetches, and reassesses the asset.
- Asset
- order_history
- Purpose
- production_ml
- Sources
- dbt · snowflake
- Mode
- demo (captured run)
Demo Mode uses captured outputs from a real TrustGate run against DataHub OSS. The full MCP investigation and DataHub writeback workflow can be run locally from the public repository.
- Asset
- order_history
- Purpose
- production_ml
- Sources
- dbt + snowflake (siblings)
- Platform
- datahub oss
- 01Investigate via MCP
- 02Reconcile dbt vs Snowflake
- 03Verdict: BLOCKED (PII contradiction)
- 04Human approves mutation
- 05Writeback to DataHub
- 06Re-fetch metadata
- 07New verdict: approved_with_conditions
Awaiting investigation
Run it to see the blocked verdict, the proposed fix, the human approval gate, and the DataHub writeback that changes the verdict.
How it works
Why this is an agent that does real work
Reads Context
Uses DataHub MCP to investigate metadata, schema, glossary terms, lineage and sibling assets.
Reasons Over Conflicting Evidence
Builds a canonical profile while preserving source disagreement and missing evidence.
Takes Governance Action
Generates and executes an approved metadata remediation rather than stopping at recommendations.
Contributes Context Back
Writes TrustGate assessment and remediation context back to DataHub so the next human or agent inherits the result.
Architecture
How the pieces fit together
TrustGate reads the DataHub context graph through the MCP server, builds a canonical profile, applies purpose-aware policy, and — only with human approval — writes back and verifies.
read: search + metadata retrieval · write: approved property mutation
Artifacts
Outputs from the run
Representative outputs stored in the public repository.
Verified Run Artifacts
Before
blocked
- Human-approved remediation
- DataHub writeback
- Live metadata re-fetch
After
approved_with_conditions
Testing
Built to be inspectable
41 / 41
tests passing
2
sibling platforms reconciled
5
schema fields evaluated
11 → 10
conflicts after remediation
83.33%
evidence coverage
Required
human approval for mutation
TrustGate separates confirmed facts, assumptions, conflicts and missing evidence rather than fabricating certainty.
Run it yourself
How to run locally
git clone https://github.com/SwavnaSahoo/trustgate-ai.git cd trustgate-ai python3 -m venv .venv source .venv/bin/activate python -m pip install -e ".[dev]" export DATAHUB_GMS_TOKEN="<YOUR_TOKEN>"
.venv/bin/python -m src.cli live-assess \ order_history \ --purpose production_ml
.venv/bin/python -m src.cli remediate \ order_history \ --purpose production_ml
.venv/bin/python -m src.cli remediate \ order_history \ --purpose production_ml \ --approve