<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Jefferson Bonamim on Medium]]></title>
        <description><![CDATA[Stories by Jefferson Bonamim on Medium]]></description>
        <link>https://medium.com/@bonamim?source=rss-d1602f829011------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*SCCz94JVqykvjNKHBdGwqw.png</url>
            <title>Stories by Jefferson Bonamim on Medium</title>
            <link>https://medium.com/@bonamim?source=rss-d1602f829011------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 20:56:25 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@bonamim/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[The landing zone, from a partner’s upload to the warehouse]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://blog.dataengineerthings.org/the-landing-zone-from-a-partners-upload-to-the-warehouse-8acaff08b591?source=rss-d1602f829011------2"><img src="https://cdn-images-1.medium.com/max/1400/1*5DB602cZhap50Q2D6mkVog.png" width="1400"></a></p><p class="medium-feed-snippet">Governance as code, part 4. Where a partner&#x2019;s file goes, who can touch it, how one upload runs the pipeline, and what happens when a&#x2026;</p><p class="medium-feed-link"><a href="https://blog.dataengineerthings.org/the-landing-zone-from-a-partners-upload-to-the-warehouse-8acaff08b591?source=rss-d1602f829011------2">Continue reading on Data Engineer Things »</a></p></div>]]></description>
            <link>https://blog.dataengineerthings.org/the-landing-zone-from-a-partners-upload-to-the-warehouse-8acaff08b591?source=rss-d1602f829011------2</link>
            <guid isPermaLink="false">https://medium.com/p/8acaff08b591</guid>
            <category><![CDATA[data-contract]]></category>
            <category><![CDATA[data-governance]]></category>
            <category><![CDATA[apache-airflow]]></category>
            <category><![CDATA[data-quality]]></category>
            <category><![CDATA[data-engineering]]></category>
            <dc:creator><![CDATA[Jefferson Bonamim]]></dc:creator>
            <pubDate>Thu, 03 Dec 2026 13:02:14 GMT</pubDate>
            <atom:updated>2026-12-03T13:02:14.529Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Contracts only where they matter]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://blog.dataengineerthings.org/contracts-only-where-they-matter-2fa65be16bdb?source=rss-d1602f829011------2"><img src="https://cdn-images-1.medium.com/max/1400/1*cgFl1WVS-nqXaPBa7j4eCw.png" width="1400"></a></p><p class="medium-feed-snippet">Governance as code, part 3. Data contracts at the two places data changes hands, a gate that checks them before anything loads, and the&#x2026;</p><p class="medium-feed-link"><a href="https://blog.dataengineerthings.org/contracts-only-where-they-matter-2fa65be16bdb?source=rss-d1602f829011------2">Continue reading on Data Engineer Things »</a></p></div>]]></description>
            <link>https://blog.dataengineerthings.org/contracts-only-where-they-matter-2fa65be16bdb?source=rss-d1602f829011------2</link>
            <guid isPermaLink="false">https://medium.com/p/2fa65be16bdb</guid>
            <category><![CDATA[data-engineering]]></category>
            <category><![CDATA[data-quality]]></category>
            <category><![CDATA[data-contract]]></category>
            <category><![CDATA[data-governance]]></category>
            <category><![CDATA[data-mesh]]></category>
            <dc:creator><![CDATA[Jefferson Bonamim]]></dc:creator>
            <pubDate>Sat, 28 Nov 2026 15:04:02 GMT</pubDate>
            <atom:updated>2026-11-28T15:04:02.748Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Who owns the data? Five domains, one owner each, and checks that keep them apart]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://blog.dataengineerthings.org/who-owns-the-data-five-domains-one-owner-each-and-checks-that-keep-them-apart-233b9c2f06b3?source=rss-d1602f829011------2"><img src="https://cdn-images-1.medium.com/max/1400/1*zFok0PiiNgY-dwTFEXYaOA.png" width="1400"></a></p><p class="medium-feed-snippet">Governance as code, part 2. Data ownership written as code, from shared reference data to a domain that breaks without taking the others&#x2026;</p><p class="medium-feed-link"><a href="https://blog.dataengineerthings.org/who-owns-the-data-five-domains-one-owner-each-and-checks-that-keep-them-apart-233b9c2f06b3?source=rss-d1602f829011------2">Continue reading on Data Engineer Things »</a></p></div>]]></description>
            <link>https://blog.dataengineerthings.org/who-owns-the-data-five-domains-one-owner-each-and-checks-that-keep-them-apart-233b9c2f06b3?source=rss-d1602f829011------2</link>
            <guid isPermaLink="false">https://medium.com/p/233b9c2f06b3</guid>
            <category><![CDATA[data-architecture]]></category>
            <category><![CDATA[data-governance]]></category>
            <category><![CDATA[data-engineering]]></category>
            <category><![CDATA[software-architecture]]></category>
            <category><![CDATA[data-mesh]]></category>
            <dc:creator><![CDATA[Jefferson Bonamim]]></dc:creator>
            <pubDate>Mon, 16 Nov 2026 16:54:28 GMT</pubDate>
            <atom:updated>2026-11-30T09:56:05.529Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Data governance that actually runs]]></title>
            <link>https://blog.dataengineerthings.org/data-governance-that-actually-runs-103e4e916dd1?source=rss-d1602f829011------2</link>
            <guid isPermaLink="false">https://medium.com/p/103e4e916dd1</guid>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[data-mesh]]></category>
            <category><![CDATA[data-governance]]></category>
            <category><![CDATA[data-contract]]></category>
            <category><![CDATA[data-engineering]]></category>
            <dc:creator><![CDATA[Jefferson Bonamim]]></dc:creator>
            <pubDate>Thu, 12 Nov 2026 15:12:13 GMT</pubDate>
            <atom:updated>2026-11-30T09:56:41.175Z</atom:updated>
            <content:encoded><![CDATA[<h4>Governance as code, part 1. Data mesh policies written as code, a platform built to test them, and a command next to every claim</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1ufZ6pfdHrVbq6K-qlvyuA.png" /><figcaption>Image by the author</figcaption></figure><p>This is the first article in Governance as code, a series about data governance written as code and tested end to end. Each article takes one area, the rules for it, and the commands that prove them. You can read each one on its own<em>.</em></p><p>Most data governance lives in a document nobody opens.</p><p>The rules in that document are usually fine. Mask personal data. Tell the other teams before you change a table they read. Every dataset has an owner. Nobody argues with any of it. The trouble is that nothing checks it. So the first busy Friday wins, and over time the document ends up describing a platform that no longer exists.</p><p>For the past few weeks I’ve been trying the opposite. I write the governance policies as code, and I built a data platform around them so I can test them end to end, from a file a partner drops in a bucket to the answer an AI assistant gives. If a change breaks a policy, CI says no and says why.</p><p>This article is the why and the map.</p><h3>What I’m building</h3><p>The subject is the policies. The platform is there so the rules have something real to check.</p><p>Everything runs in Docker on my laptop, on open-source tools. MinIO stands in for S3 and holds the partner files. Postgres holds the operational database and the warehouse. Airflow 3 runs the pipelines, dbt builds the models, DataHub is the catalog, Apache Ossie is the semantic layer and Superset draws the dashboards. AI assistants connect through MCP.</p><p>The data is the public Olist Brazilian e-commerce dataset, with orders, customers, sellers, reviews and geolocation. I picked it because it’s real, so it comes with real mess.</p><p>It isn’t a production system. I built it so it could be promoted, and every component has a documented production configuration and a disaster-recovery plan. But today it runs on one machine, and that’s the honest scope. It’s also a work in progress, and I’m writing about it as I go, including the parts that broke.</p><h3>What the rules do</h3><p>In practice, “governance as code” means a few concrete things. A partner file that doesn’t match its contract stops at the door and never reaches the warehouse. If my pull request would break another team’s report, the check fails and names the team. The masking rule is written once, on the column, and the database enforces it for each role. And the AI assistant can only answer from governed definitions, connecting with the least access it needs.</p><p>None of these is a review step. Each one is a check that runs on every change.</p><h3>Four principles, as folders</h3><p>Data mesh has four principles, set out by Zhamak Dehghani. Almost every explanation of them stops at the same four-box diagram. I wanted to see what they look like once you have to create the folders.</p><p>Each principle, in Zhamak Dehghani’s words they are domain-oriented decentralized data ownership and architecture, which lives in domains/, data as a product, in data_products/, self-serve data infrastructure as a platform, in platform/, and federated computational governance, in governance/.</p><p>There are five domains, Sales, Customer, Marketplace, Customer Experience and Reference. Each owns its source files and the contracts for them. Three of them also build data products for the others. Every dataset names exactly one owner.</p><p>That last rule is where I made my first real mistake. For the first eleven days, reference data (zip codes, geolocation) belonged to “the platform”. In practice that meant nobody owned what it meant. Three contracts had a zip code prefix column. One described it, the other two didn’t. Reference is a domain now, with its own team, like the other four. That removed nine special cases from the checks, and zip codes, cities and states now have one definition that the other domains’ contracts link to.</p><p>Then the data products. A data product can’t be published without a purpose, an owner and a named consumer with a use case. This is a real one from the repo, trimmed a little.</p><pre>name: sales_performance<br>purpose: &quot;Report order and revenue performance by customer location and seller.&quot;<br>owner:<br>  team: sales<br>consumers:<br>  - team: marketing<br>    use_case: &quot;Target campaigns by region performance.&quot;</pre><p>If I can’t say who reads it and why, CI won’t let me publish it. The rule comes from Stefan Negele’s data product heuristics, which put it better than I could.</p><p>The platform gives defaults, and the domain decides the rest. The whole Airflow DAG for Sales is one line.</p><pre>dag = build_transform_dag(&quot;sales&quot;)</pre><p>Any default can be overridden where a domain needs it, for example build_transform_dag(&quot;sales&quot;, retries=3). The domain also owns its transformations, its quality rules, whether a product is audited before it&#39;s published, and how a partner signals that a delivery is complete. Where I drew the line is that a domain can change how things run, but it can&#39;t skip the rules. For now it also can&#39;t bring its own loader. Maybe it should.</p><p>The governance folder is the one the whole project is really about. The rules are files, and CI runs them on every pull request. A partner file has to match its contract before it loads. Every dataset names exactly one owner. A change that breaks someone’s report has to name them and get their approval. Business words like “customer” have one written, shared definition. Each AI agent only reaches what it’s allowed to.</p><p>The defaults and overrides are my way of doing it, not something the data mesh principles prescribe. Zhamak Dehghani’s point is that the platform exists to enable domain autonomy. How much autonomy, and where the limits are, is a design choice, and I’m still not sure I drew the line in the right place.</p><h3>From a partner’s file to a chart</h3><p>Put together, a piece of data travels like this. A partner drops a file in the landing zone, or a row lands in the operational database. Files go through a contract gate first, and a bad file stops there. What passes is loaded into a raw layer, then refined through bronze, silver and gold by each domain’s own dbt project. What other domains may read is published as an output port, with a contract. The semantic layer defines the metrics on top of the ports, and both the dashboards and the AI assistants get their numbers from it.</p><p>Every step shows up in DataHub, so a number on a dashboard can be traced back to the file it came from.</p><h3>A command next to every claim</h3><p>I don’t trust my own architecture diagrams. A diagram can’t fail, so it can’t tell me when I’m wrong.</p><p>So every claim in the project has a command next to it. You run it, and the claim either holds or it doesn’t. make prove-p2 feeds the landing gate a file that breaks its contract, and the file stops there. make prove-p5 removes a column from the customer contract, and the check fails and names Sales as the team that would break. make prove-p8 runs the same query as a regular consumer and as compliance, so you can see what each one is allowed to see.</p><p>Two of them go further. make prove-p10 asks the AI and the dashboard for every metric and checks they get the same number. make prove-p9 restores everything into an isolated sandbox and checks each recovery time against its target.</p><p>There are twenty proofs in all. Four run anywhere, with no platform at all (make prove-all runs them). The rest need the platform up.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WV6xfWo_dzGj4sWDfEyaMg.png" /><figcaption>Image by the author</figcaption></figure><h3>What the proofs found</h3><p>Writing the proofs found bugs that the unit tests had missed, which I didn’t expect.</p><p>The first was in orchestration. Each domain’s transform was scheduled on a list of its inputs, and Airflow reads a list as “wait for all of them”. So a new version of the customer data, on its own, never rebuilt the sales report that depends on it. The fix was one line, to rebuild when any input changes.</p><p>The second was worse. Rebuilding one view quietly dropped every view built on it, including the masking views that hide personal data, along with their grants. The unit tests passed both times, because each piece did what it was told. Only running the whole path showed what happened between the pieces. Neither bug would have been fun to find in production.</p><p>That’s the main reason I keep writing proofs instead of more unit tests. A unit test checks that a piece does what I meant. A proof checks that the policy still holds when all the pieces run together.</p><h3>The trade-offs so far</h3><p>This approach has costs, and I’d rather name them.</p><p>It’s more code. Every policy is now something to maintain, test and keep in step with the tools it checks. Some proofs need the whole platform running, so they’re slower and can’t run on every pull request.</p><p>A proof also only helps if something runs it. One of mine checks that nothing is published with an undocumented column. When I changed how columns inherit their descriptions, that proof stopped matching the code, and nothing complained until I ran every proof again during a cleanup. A rule that isn’t run goes stale quietly, even when you wrote it yourself. And it only covers what I thought to write a rule for. A policy nobody wrote down is still unchecked.</p><p>The catalog cost more than I expected. In October a cleanup job meant to remove stale file entries from DataHub removed 37 real datasets, because the search it relied on quietly ignored the platform filter I gave it. I restored them, and the catalog code now checks every name itself before it deletes anything.</p><h3>Where it stands</h3><p>The repository is public, and the proofs page in the docs folder is the place to start.</p><p>The series continues one area at a time. Part 2 is about ownership, with five domains, one owner per dataset, and the checks that keep them apart. Part 3 is about putting contracts only where they matter, and the time the contract turned out to be wrong and the data was fine. Part 4 follows a partner’s file through the landing zone, from the upload to the warehouse.</p><p>The whole series is in the Governance as code list on my profile, and each part links to the others as it comes out.</p><p>If you run a proof and it fails, please tell me. And if your team has a rule that only exists on paper, I’d like to hear which one.</p><h3><strong>Resources</strong></h3><ul><li>The repository: <a href="https://github.com/bonamim/data-governance-portfolio/tree/article-01">https://github.com/bonamim/data-governance-portfolio/tree/article-01</a></li><li>The list of proofs: <a href="https://github.com/bonamim/data-governance-portfolio/blob/article-01/docs/proofs.md">https://github.com/bonamim/data-governance-portfolio/blob/article-01/docs/proofs.md</a></li><li>Zhamak Dehghani, “Data Mesh Principles and Logical Architecture”, martinfowler.com, 2020: <a href="https://martinfowler.com/articles/data-mesh-principles.html">https://martinfowler.com/articles/data-mesh-principles.html</a></li><li>Stefan Negele, “Data Product Heuristics”: <a href="https://www.datamesh-architecture.com/data-product-heuristics">https://www.datamesh-architecture.com/data-product-heuristics</a></li><li>The whole series, the Governance as code list: <a href="https://medium.com/@bonamim/list/governance-as-code-edb43a6e5f01">https://medium.com/@bonamim/list/governance-as-code-edb43a6e5f01</a></li><li>I post the short version of each part on LinkedIn: <a href="https://www.linkedin.com/in/bonamim/">https://www.linkedin.com/in/bonamim/</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=103e4e916dd1" width="1" height="1" alt=""><hr><p><a href="https://blog.dataengineerthings.org/data-governance-that-actually-runs-103e4e916dd1">Data governance that actually runs</a> was originally published in <a href="https://blog.dataengineerthings.org/">Data Engineer Things</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>