Medallion Governance and Implementation Governance (Phase G)
Medallion Governance and Implementation Governance (Phase G)
Design authority
| Role | Who (assumed) | Decides |
|---|---|---|
| Lead Architect | Chair | Architecture conformance, ADR acceptance |
| Data lead | Data/BI team | Silver and Gold contracts, quality tolerances |
| Dev lead | Engineering | Adapter design, code standards |
| DPO | Privacy | Classification register, gate rules, retention, erasure |
| IT Security | Security | Identities, secrets, network |
| Marketing Operations representative | Business | Event catalogue, freshness tiers, campaign mapping |
Meets at each review gate and monthly in operation. Decisions recorded as ADRs (new or superseding).
Layer rules (enforced, not advisory)
| Rule | Bronze | Silver | Gold | Enforcement |
|---|---|---|---|---|
| Writers | Bronze loader only | Silver jobs only | Gold jobs only | Workspace permissions; service identities |
| Readers | Silver jobs, reconciler, erasure | Gold jobs, reconciler, Data Engineering | Everyone with analytics access | Workspace membership |
| Mutation | Append only (erasure acts on the vault and the landing files, never on Bronze rows) | MERGE and SCD2 by version | Partition overwrite | Code review; unit tests on idempotency |
| Schema | Schema-on-read, additive drift logged | Contract in Git; drift blocks | Allow-listed columns; version bump on breaking change | schema_drift table; CI test |
| Personal data | Tokens only; identifiers stop at the gate in the Bronze loader (landing files ≤ 7 days) | Tokens only | Tokens only | Gate hard-fails on identifiers and unclassified columns; PII scan on string columns; classification register |
| Quality gates | Landed manifest matches rows | Key, uniqueness, freshness, delta | Referential integrity, allow-list, delta | Pipeline checks; quarantine |
| Maintenance | VACUUM 7 d | OPTIMIZE weekly, VACUUM 7 d, CDF on | OPTIMIZE after run, V-Order, VACUUM 30 d, CDF on | Scheduled maintenance pipeline |
Naming conventions
- Lakehouses:
lh_restricted(schemasbronze,silver,control) andlh_gold(schemagold);lh_bronzeandlh_silverin these documents denote those schemas (ADR 2). - Bronze tables:
{source}_{object}lower snake (sf_lead,hs_contact,gads_campaign_perf). - Silver tables:
{entity}current state,{entity}_histSCD2,{source}_{object}_eventfor event streams. - Gold tables:
dim_*,fact_*,business_event. - Control:
control.*as in control tables. - Pipelines:
pl_{tier}_{purpose}; notebooks:nb_{layer}_{object_family}; Functions:fn-{source}-{role}.
Review gates
| Gate | When | Checks | Approver |
|---|---|---|---|
| G1 Design review | Before building a work package | ADRs cited; adapter contract honoured; classification entries exist for new objects; tier assigned | Design authority |
| G2 Pre-production | Before deploying to test | Unit and contract tests pass; idempotency test (run twice, same result); quality gates configured; secrets in Key Vault; runbook updated | Dev lead, Data lead |
| G3 Pre-launch | Before production | Reconciliation passing for 7 days in test; Direct Lake fallback check; capacity review; DPO sign-off for any new personal data; erasure runbook tested | Design authority incl. DPO |
| G4 Post-launch | 30 days after | SLOs met; cost within estimate; risks re-scored | Design authority |
Deviations are recorded as ADRs with status Proposed and an expiry; an expired deviation blocks G2.
Compliance checking
The compliance checklist is run at G2 and G3 and attached to the release.
Change control
- New source, new object, new Gold table, or a change to tiers: adding a source.
- Breaking Gold change: schema version bump, consumer notice ≥ 2 weeks, dual-publish period where feasible.
- Emergency change (incident): allowed with a retrospective ADR within 5 working days.