AI Data Governance Platform
May 9, 2026 · View on GitHub
Analytics Reliability System for Monitoring Data Quality, Detecting Incidents, and Explaining Failures
An end-to-end data governance platform built using PostgreSQL, dbt, Python, and Power BI. This system enables analytics teams to proactively monitor dataset health, detect failures, and understand root causes using AI-assisted explanations.
Live Demo
→ AI Data Reliability Control Center
No setup needed. Choose an agent, action, and dataset to see whether access is allowed or blocked.
Business Problem
Modern data stacks rely on multiple pipelines and derived datasets. Without governance controls, data quality issues can silently propagate and break downstream dashboards, ML models, and decision-making.
When data quality breaks:
Dashboards show incorrect metrics ML models degrade silently Stakeholders lose trust
Most teams detect issues after damage is done.
System Architecture
The system follows a layered data platform architecture.

Data Flow
GitHub Archive Dataset
↓
Python Ingestion Pipeline
↓
PostgreSQL Raw Storage
↓
dbt Transformation Layer
↓
Analytics Layer (fact & dimension tables)
↓
Governance Engine (rules, incidents, health scoring)
↓
AI Explanation Layer
↓
Power BI Monitoring Dashboard
Core Features
Data Ingestion
- Python pipeline ingests GitHub Archive events into PostgreSQL
- Handles large-scale event data for analytics processing
Analytics Modeling (dbt)
Structured transformation layer with fact and dimension models:
fact_commitsfact_pull_requestsfact_issuesdim_repositorydim_userdim_date
Governance Metadata Layer
Central system to track datasets, rules, and incidents.
Core Tables:
dataset_registryrule_catalogrule_runsdataset_health_scoresincidents
Automated Rule Engine
Python-based rule execution framework:
- Runs data quality checks across datasets
- Logs rule outcomes and failures
- Enables scalable rule definitions
Example rules include:
- Duplicate commit detection
- Null commit checks
- Foreign key validation
- Duplicate issue detection
Dataset Health Scoring
Each dataset is assigned a reliability score:
health_score = 1 - (failed_rules / total_rules)
Enables quick identification of unstable datasets.
Incident Detection
- Rule failures automatically generate incidents
- Tracks severity, status, and timestamps
- Provides structured monitoring of data issues Example:
incident_id | rule_id | severity | status | opened_at
AI Incident Explanation
- Uses LLM-based scripts to explain data quality failures
- Converts technical errors into interpretable insights
- Reduces debugging time for analysts and engineers
Governance Monitoring Dashboard
Power BI dashboard visualizes:
- Dataset health trends
- Rule failure patterns
- Active governance incidents
- System reliability metrics
Tech Stack
| Component | Technology |
|---|---|
| Data Source | GitHub Archive |
| Ingestion | Python |
| Storage | PostgreSQL |
| Transformation | dbt |
| Governance Engine | Python + SQL |
| AI Layer | OpenAI API |
| Monitoring | Power BI |
Project Structure
ai-data-governance-platform
│
├── dashboard
│ └── governance_dashboard.png
│
├── docs
│ ├── architecture_diagram.png
│ ├── governance_architecture.md
│ ├── rule_dictionary.md
│ ├── scalability.md
│ └── incident_explanations
│
├── github_governance_dbt
│ ├── models
│ ├── macros
│ ├── seeds
│ └── dbt_project.yml
│
├── python
│ ├── ingest_github_archive.py
│ ├── rule_runner.py
│ ├── incident_explainer.py
│ ├── governance_assistant.py
│ └── rag_assistant.py
│
├── sql
│ └── governance_schema.sql
│
├── requirements.txt
└── README.md
Example Governance Rule
Ensuring commit SHA uniqueness:
SELECT commit_sha FROM mart_mart.fact_commits GROUP BY commit_sha HAVING COUNT(*) > 1
Example Incident Output
When a rule fails, the system logs an incident:
incident_id | rule_id | severity | status | opened_at
This enables teams to track governance issues and prioritize fixes.
Why This Project Matters
This project shifts governance from manual debugging → automated monitoring.
It demonstrates how analytics teams can:
- Treat datasets as production systems
- Detect failures early
- Quantify data reliability
- Improve trust in analytics outputs
Extended Work: Agent Governance Layer
This platform focuses on making data trustworthy, validating quality, tracking metadata, and building governance-ready reporting layers.
A natural next question is: what happens when an AI agent tries to act on that data? An agent might have full permission to query a dataset, but the dataset failed freshness checks that morning. The policy engine says allowed. The data quality system says do not trust this. Without a shared decision point, the agent proceeds anyway.
I built a follow-on prototype that connects both layers:
→ Data Quality-Aware Agent Governance
It combines Microsoft's Agent Governance Toolkit with the kind of data quality signals this platform produces, so agent actions are blocked when the underlying data is untrustworthy, not only when the agent lacks permission.
Future Improvements
Potential enhancements:
- Workflow orchestration (Airflow / Dagster)
- Real-time anomaly detection
- Alerting system (Slack / email)
- Integration with data catalogs
- RAG-based governance assistant
License
For portfolio and educational use.