How maketools-company/datagovernance-as-code works
DGAC is a governance-as-code tool and reference template for data domains and dbt data products. The central workflow is to declare governance and product contracts in repository files, validate them, generate derived dbt and ownership configuration, build domain products, and assemble semantic models or manifests. The README documents these capabilities; sampled implementation is concentrated in dgac/cli.py, so internal command relationships beyond the excerpts are not inferred.
Main entry points: cli.py DGAC CLI · domains Public Interfaces · common.ossie.yaml Common Semantics · schemas Validation Schemas
Components 21
DGAC Tool
- DGAC CLI
dgac/cli.py - Governance Validation
dgac/cli.py - Config Generation
dgac/cli.py - Domain Setup
dgac/cli.py - Product Setup
dgac/cli.py - Validation Schemas
schemas - dbt Build
dgac/cli.py
Central Governance
- Hub Configuration
governance/hub.yml - Sensitivity Levels
governance/classification.yaml - Business Glossaries
governance/glossary - Common Semantics
governance/semantic/common.ossie.yaml
Domain Products
- Domain Governance
domains - Product Cards
domains - Product Models
domains - Public Interfaces
domains - Interface Contracts
domains - Cross-Domain Reads
domains - Product Semantics
domains
Published Outputs
- Semantic Assembly
dgac/cli.py - Governance Manifest
dgac/cli.py
Other components
- Data Teams
Connections 23
- Data Teams → DGAC CLI: runs commands
README.md - DGAC CLI → Governance Validation: dispatches
README.md - Governance Validation → Validation Schemas: checks against
README.md - DGAC CLI → Config Generation: dispatches
README.md - Config Generation → Hub Configuration: reads governance
- Config Generation → Domain Governance: generates config
README.md - DGAC CLI → Domain Setup: dispatches
README.md - Domain Setup → Domain Governance: creates domain
README.md - DGAC CLI → Product Setup: dispatches
README.md - Product Setup → Product Cards: creates card
README.md - dbt Build → Product Models: builds models
README.md - Product Models → Public Interfaces: publishes
README.md - Public Interfaces → Interface Contracts: documented by
README.md - Cross-Domain Reads → Public Interfaces: references interface
README.md - Product Semantics → Common Semantics: derives metrics
README.md - Semantic Assembly → Common Semantics: combines with
README.md - Semantic Assembly → Product Semantics: combines with
README.md - DGAC CLI → dbt Build: dispatches
README.md - DGAC CLI → Semantic Assembly: dispatches
README.md - DGAC CLI → Governance Manifest: dispatches
README.md - Governance Manifest → Domain Governance: reports governance
README.md - Governance Manifest → Public Interfaces: reports interfaces
README.md - Governance Manifest → Cross-Domain Reads: reports consumption
README.md