<?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 Narendra Loganathan on Medium]]></title>
        <description><![CDATA[Stories by Narendra Loganathan on Medium]]></description>
        <link>https://medium.com/@narendra.loganathan?source=rss-9c5fc2c3248e------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*dvw1axfCb74GA_FV</url>
            <title>Stories by Narendra Loganathan on Medium</title>
            <link>https://medium.com/@narendra.loganathan?source=rss-9c5fc2c3248e------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 07:11:46 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@narendra.loganathan/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[Federated Governance Is a Trust Problem, Not a Policy Document]]></title>
            <link>https://medium.com/@narendra.loganathan/federated-governance-is-a-trust-problem-not-a-policy-document-e17d451fa345?source=rss-9c5fc2c3248e------2</link>
            <guid isPermaLink="false">https://medium.com/p/e17d451fa345</guid>
            <category><![CDATA[zero-trust]]></category>
            <category><![CDATA[agentic-ai-architecture]]></category>
            <category><![CDATA[data-governance]]></category>
            <category><![CDATA[data-mesh]]></category>
            <category><![CDATA[agentic-governance]]></category>
            <dc:creator><![CDATA[Narendra Loganathan]]></dc:creator>
            <pubDate>Sat, 14 Nov 2026 19:08:59 GMT</pubDate>
            <atom:updated>2026-11-14T19:08:59.536Z</atom:updated>
            <content:encoded><![CDATA[<h3>My data mesh’s access policy was correct, tested and fail-closed. It also believed whatever it was told about who was asking.</h3><p><em>By Narendra Loganathan</em></p><p>This is the request that broke my confidence in my own governance:</p><pre>POST /api/access-requests              &lt;- no token, no login required<br>{<br>  &quot;user_id&quot;:   &quot;anyone@example.com&quot;,   &lt;- any name will do<br>  &quot;user_role&quot;: &quot;risk_analyst&quot;,         &lt;- typed by the caller, never checked<br>  &quot;data_product_id&quot;: &quot;risk-compliance.risk-scores&quot;,<br>  &quot;action&quot;: &quot;read&quot;,<br>  &quot;justification&quot;: &quot;testing&quot;<br>}</pre><pre>200 OK<br>{&quot;id&quot;: &quot;req_1&quot;, &quot;status&quot;: &quot;approved&quot;,  &lt;- no human reviewed it<br> &quot;message&quot;: &quot;Access granted&quot;}</pre><p>The risk scores in my reference data mesh are classified sensitive. The access policy says a risk analyst may read sensitive data without a human approving it. The policy is written in Rego, versioned, covered by tests, and fails closed if the policy engine is unreachable. It did exactly what it was written to do.</p><p>The problem is the words “risk analyst”. They came from the request body, typed by whoever sent it. Nothing checked them. The policy was evaluating a claim.</p><p>In the <a href="https://medium.com/@narendra.loganathan/i-built-a-data-mesh-for-humans-then-i-put-an-agent-in-front-of-it-593198088dd5">first article of this series</a> I argued that federated governance breaks at “who” once the consumer is an agent, because nothing in it can say which machine is acting for which person. When I went back to the code to write this article, I found it could not say which <em>person</em> was acting, either. This article is about why, and how I fixed it.</p><h3>What the industry has right</h3><p>Start with what is not in dispute. Federated computational governance, the fourth principle of data mesh, has matured from a slogan into a practice. Policy as code is the right move: rules that are versioned, reviewed, tested and evaluated by machines, instead of PDFs that someone reads once. OPA is widely used for it, and OpenCredo and Starburst have both written well about putting it at the heart of a mesh. Thoughtworks’ Looking Glass 2026 puts it plainly: governance “moves from committees to real-time controls and auditability”, and should be treated “as code and product”. The academic side is catching up too: a paper at ICSA 2026 distills 49 industry sources and six practitioner interviews into a framework of eight design decisions and 104 options for building such governance.</p><p>All of that work is about the policy. It is good work, and my own mesh followed it. But it mostly takes the policy’s inputs on trust: who is asking, through which software, and by which door. That is not a policy question. It is a trust question, and zero trust has been answering it for workloads for a decade.</p><h3>The audit: what my governance actually trusted</h3><p>My fintech mesh has five domains on an Iceberg lakehouse, a discovery portal where consumers request access, OPA for decisions, column masking, and an audit log. A few weeks before this audit, I had fixed its policy: OPA 1.0 with the current Rego syntax, default deny, fail-closed masking, an audit write that blocks the read if it fails. I read it again as a zero-trust reviewer would, asking of every decision “how do you know?” Seven answers were “we don’t”.</p><p><strong>The person was a claim.</strong> The access-request API took user_id and user_role from the JSON body. Nothing authenticated the caller. That is the request at the top of this article.</p><p><strong>The masking never ran.</strong> The function that masks columns and writes the audit record was real, tested code. Its only callers were its unit tests. No read path in the repository used it.</p><p><strong>An approval went nowhere.</strong> When a request needed a human, the approval became a record in memory. Nothing checked it when data was read, it never expired, and a restart erased it.</p><p><strong>Every door below the policy was open.</strong> Object storage ran with its default credentials. The Iceberg catalog had no authentication. The three domains’ SPARQL endpoints, which I added for the semantic layer in <a href="https://medium.com/@narendra.loganathan/data-products-need-meaning-not-just-schemas-b09d1601aa4d">the previous article</a>, accepted queries, updates and graph writes from anyone who could reach them, and served customer names and emails unmasked. The policy guarded a front door in a building with no walls.</p><p><strong>The workload was invisible.</strong> Every policy input described a person. Nothing identified the software making the request, so the policy could not tell an analyst’s notebook from a nightly batch job from an AI agent acting for that analyst.</p><p><strong>Lineage was an empty module.</strong> One line, a comment. Nothing recorded which code, which inputs and which workload produced a data product.</p><p><strong>“Federated” was one central file.</strong> Every product was governed by a single policy file written by the platform team. A domain had nowhere to express rules for its own product.</p><p>None of this is exotic. Each is the kind of gap a careful team ships, because each hides behind a component that looks finished. The common cause is the point of this article: <strong>I had built governance as a decision service, not as a trust boundary.</strong> It answered “should this role see this column?” correctly, and never established who was asking, through which workload, by which door, or about data from where.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*T_0bZhVJYml2X0k0p8zzwg.png" /><figcaption><em>Before, the policy was fed a claim, and the data sat beside it with its own doors open. After, both parties prove who they are, and every door is behind one boundary per product.</em></figcaption></figure><h3>The fix: zero-trust primitives at the data product’s boundary</h3><p>I fixed it in the repository and, as with the semantic drift, kept the before beside the after. The old state is tagged <a href="https://github.com/naren-chakraview/chakraview-fintech-data-mesh/tree/trust-before">trust-before</a>, the frozen code sits under examples/trust-gaps/before/, and five demos print the before and after. The design has six parts, and none of them is new. They are the primitives from my <a href="https://medium.com/@narendra.loganathan/zero-trust-for-the-workloads-you-dont-control-07b9e52289d5">zero-trust article</a>, applied to data.</p><p><strong>Prove both parties.</strong> Every request carries two identities, and both are verified. The person presents a signed token from the identity provider; the boundary checks its signature, issuer, audience and expiry, and takes the subject and roles from the verified claims only. The software presents a client certificate with a SPIFFE ID, checked by the gateway against the certificate authority. A request body that still tries to name a role is rejected outright, so an old client fails loudly instead of having its claim silently dropped. The request from the top of this article now gets a 401, and with a valid analyst token it gets a 400: “identity comes from the verified token; remove: user_role”.</p><p><strong>One enforcement point per data product, in front of every door.</strong> A boundary service is now the only network path to product data, for table reads and for SPARQL alike. Storage, the catalog, the SPARQL servers and the policy engine sit on an internal network with no published ports, and the gateway reaches the boundary over mutual TLS. The SPARQL servers lost their update and graph-write endpoints. Every step fails closed: no token, no certificate, no policy decision or no audit write means no data. And the masking function finally has a caller.</p><p><strong>Federated means layered.</strong> The platform team owns guardrails that no domain can override: a verified person and workload on every request, approval for personal data, a masking floor, and an audit record. Each domain owns a policy file for each of its products: who may read it, whether reads need approval, and how each column is shown. A read needs both the guardrails and the domain policy to allow it, and the stricter masking wins. The test that convinced me: a domain policy that tries to show personal data in the clear gets overruled by the guardrail, and the audit shows partial masking on every column.</p><p><strong>Grants, not approvals.</strong> An approval, made by an authenticated product owner, becomes a stored grant scoped to the person, the workload, the product, the columns and the purpose, with an expiry. The boundary checks it at read time and records its id in the audit. Without a grant the read is refused; with one it succeeds; two days later, when it has expired, it is refused again.</p><p><strong>Lineage as attestation.</strong> When a producer publishes a snapshot, it signs a record in the format the software supply chain already uses (an in-toto statement in a DSSE envelope): the snapshot’s SHA-256 digest, the producing workload’s SPIFFE ID, the code commit and the input snapshots. Each producer has its own key, and the boundary keeps a separate, read-only record of which producer and key each product expects, so whoever can write an attestation cannot also change what verifies it. Every read reports whether the snapshot’s lineage verified. Change one byte of the snapshot and it reports false. A product can go further and declare in its contract that it must not be read without verified lineage, and the guardrail enforces that.</p><p><strong>Audit as evidence.</strong> Every decision, allowed or denied, records the person, their roles, the workload, the product, the columns, the masking applied, the policy revisions, the grant, the lineage result and, for SPARQL, a hash of the query. “Who saw this, through what, and why was it allowed?” now has a record, not a reconstruction.</p><p>Here is a read of customer data after the fix, annotated with what is checked, and where:</p><pre>GET /products/accounts.account-master/rows<br>    ?columns=account_id,customer_name&amp;purpose=fraud-review</pre><pre>TLS client certificate              &lt;- gateway: signed by the trusted CA<br>  spiffe://chakracommerce.com/ns/analytics/sa/notebook<br>                                    &lt;- boundary: exactly one SPIFFE ID<br>Authorization: Bearer eyJhbGci...   &lt;- boundary: signature, issuer,<br>                                       audience, expiry; roles from claims<br>                                    &lt;- OPA: platform guardrails AND the<br>                                       accounts team&#39;s product policy<br>                                    &lt;- grant: this person and workload,<br>                                       these columns and purpose, unexpired<br>                                    &lt;- lineage: signed by the producer<br>                                       this product expects</pre><pre>200 OK<br>{&quot;rows&quot;: [{&quot;account_id&quot;: &quot;AC****01&quot;, &lt;- masked to the guardrail&#39;s floor<br>           &quot;customer_name&quot;: &quot;Jo****oe&quot;}],<br> &quot;lineage_verified&quot;: true,<br> &quot;grant_id&quot;: &quot;grant_9f5a1f3216b8&quot;}  &lt;- and recorded in the audit</pre><p>Take away the certificate and the gateway rejects the request with a 400. Take away the token and the boundary returns 401. Take away the grant, or let it expire, and it returns 403.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FOEPtdcTjouqryTPU59uaw.png" /><figcaption><em>The data product boundary. Both parties are proven before any policy runs, the platform’s guardrails and the domain’s policy must both allow, and every read leaves evidence.</em></figcaption></figure><h3>The side door was harder than the front door</h3><p>The SPARQL endpoint is worth its own section, because it taught me the most. Putting it behind the boundary was easy. Making the boundary’s masking hold for an arbitrary query was not, and each review of the fix found another hole.</p><p>The first version masked each result by the name of its variable. So a query could read an email and rename it after a harmless column: BIND(?email AS ?amount) came back in the clear to someone granted only amount. The fix was to classify each result by the predicate its value is read from, never by its name, and to refuse the constructs that can compute or rename a value: BIND, expressions in SELECT, aggregates, subqueries and VALUES. The same pass refused SERVICE, which would otherwise have let a query authorized for one product ask its SPARQL server to fetch another domain&#39;s data over the internal network, under the wrong product&#39;s grant.</p><p>The second version checked only the predicates behind the columns a query returned. A query could still <em>match</em> on data it could not read, ?c f:amount ?amount ; f:customerEmail &quot;john@acme.com&quot;, and the presence of rows answered &quot;does this person have transactions?&quot;. Now every predicate in the query, returned or only matched, must be in the product&#39;s contract and covered by the caller&#39;s grant. A third review found the same test hiding inside FILTER EXISTS, where the check could not see it, so the boundary now refuses EXISTS and NOT EXISTS too.</p><p>The lesson generalizes. A query language is a door with a lock that has to understand everything the language can say. If you expose one, either keep it to a small, analyzable subset, as I did, or allow only named, reviewed queries per product. And accept that row counts and timing can still leak a little through any query interface, which is why the audit records a hash of every query.</p><h3>Where zero-trust-rs fits</h3><p>The boundary here is a small Python service behind nginx, because the point of the repository is to be read. In production, that role suits a gateway like zero-trust-rs, the Rust reference gateway I built alongside the <a href="https://medium.com/@narendra.loganathan/zero-trust-for-the-workloads-you-dont-control-07b9e52289d5">zero-trust article</a>: mutual TLS between SPIFFE identities, verified tokens, and capability policy checked at every hop against the workload making that hop.</p><p>There is one thing this article deliberately leaves out: an agent acting for a person. The policy input already carries the person and the workload separately, so a delegation chain, the record that this agent acted for that analyst through these services, can be added without redesign. That is the subject of the next article.</p><h3>What it costs</h3><p>Running an identity plane is real work. In the repository, a development identity provider and certificate authority stand in for a company’s identity provider and SPIRE; in production, both need operating, rotating and monitoring. Every read now makes policy calls. For scale: in zero-trust-rs, verifying a signed token takes about 15 microseconds, and a full hop through the gateway about 0.2 to 0.3 milliseconds, on a desktop machine. I have not measured the mesh’s policy calls, and you should measure your own. Signing keys for lineage need the same care as any other key, which in production means a key management service or Sigstore. Layered policy can sprawl, and computational policy cannot capture judgment; some decisions stay with a human, which is what grants are for.</p><p>What I built also has limits. The boundary reads fixture snapshots, not live Iceberg tables. The SPARQL servers still answer anyone on the internal network, because the stock image has no per-user query authentication; the boundary is their only route in from outside. And a grant’s purpose is a string the caller sends, recorded and checked against the grant but not against a register of allowed purposes. All of these are listed on the <a href="https://naren-chakraview.github.io/fintech-data-mesh/case-study/fintech-governance/trust-gaps/">trust gaps page</a>, with the demos.</p><p>Most of the value came from the unglamorous part: closing the doors. Authenticated storage, no published ports, a read-only query endpoint behind the boundary. If you do nothing else after reading this, find every way into your data products that does not pass through your policy.</p><h3>Trust before policy</h3><p>A policy is only as trustworthy as the identity it evaluates and the doors it guards. Federated governance gave the mesh a way to write rules once and apply them everywhere. Zero trust gives it the other half: proof of who is asking, through what, and about data from where, at every product’s boundary.</p><p>That raises a fair question. If trust is enforced at every product’s boundary, why keep a mesh at all, rather than one central platform that enforces it once? I will answer it in the fifth article. First, the consumer this series has been building toward: an AI agent, acting for a person, that reads and writes data products.</p><p>I would value pushback, especially from teams running policy as code in a mesh. Where does your policy’s identity come from, and how many ways into your data skip the policy entirely?</p><h3>The series</h3><p>Each article stands on its own, but they build in order, and each one is anchored in an architecture I have already published.</p><ol><li><a href="https://medium.com/@narendra.loganathan/i-built-a-data-mesh-for-humans-then-i-put-an-agent-in-front-of-it-593198088dd5"><strong>Data mesh was built for human consumers. AI changed the consumer.</strong></a> Where an autonomous, machine-speed consumer breaks the mesh, and the three threads that follow from it.</li><li><a href="https://medium.com/@narendra.loganathan/data-products-need-meaning-not-just-schemas-b09d1601aa4d"><strong>Data products need meaning, not just schemas.</strong></a> Shared semantics across domains, the drift I found in my own mesh, and the contract that now catches it.</li><li><strong>Federated governance is a trust problem, not a policy document.</strong> This article: verified identity for people and workloads, one boundary per data product, grants instead of approvals, and lineage treated as attestation.</li><li><strong>When the data consumer is an autonomous agent.</strong> The convergence: agents that read and write data products, interpreted through RDF semantics and bounded by on-behalf-of delegation and capability policy at the product boundary. Includes what the agent owns when it produces data.</li><li><strong>The AI-era data mesh.</strong> The three threads assembled into one reference architecture, with the full diagram set: domains, semantics, trust and agents as one design.</li><li><strong>Adopting it without boiling the ocean</strong> (coda). Where to start, what it costs, and what to skip, for teams that cannot rebuild their mesh at once.</li></ol><h3>References and further reading</h3><p><strong>Federated governance and policy as code</strong></p><ul><li>Marco Tonnarelli, Tom van Eijk, Indika Kumara, Dario Di Nucci, Damian Andrew Tamburri and Willem-Jan van den Heuvel, <a href="https://conf.researchr.org/details/icsa-2026/icsa-2026-papers/14/Architectural-Design-Decisions-for-Federated-Computational-Governance-in-Data-Meshes">Architectural Design Decisions for Federated Computational Governance in Data Meshes</a>, ICSA 2026.</li><li>OpenCredo, <a href="https://opencredo.com/blogs/tldr-computational-governance-in-data-mesh-with-opa/">Computational governance in data mesh with OPA</a>.</li><li>Starburst, <a href="https://starburst.io/blog/practical-security-policy-governance-data-mesh">Practical security and policy-based governance in a data mesh</a>.</li><li>Thoughtworks, <a href="https://www.thoughtworks.com/insights/looking-glass/looking-glass-2026/from-data-platforms-to-AI-ready-data-ecosystems">Looking Glass 2026: From data platforms to AI-ready data ecosystems</a>.</li></ul><p><strong>Identity and provenance</strong></p><ul><li><a href="https://spiffe.io/">SPIFFE</a> and <a href="https://spiffe.io/docs/latest/spire-about/">SPIRE</a>: workload identity.</li><li><a href="https://github.com/in-toto/attestation">in-toto attestation framework</a> and <a href="https://github.com/secure-systems-lab/dsse">DSSE</a>: signed statements about artifacts.</li><li><a href="https://slsa.dev/">SLSA</a>: supply-chain levels and provenance for software, the model for treating data lineage as attestation.</li><li><a href="https://www.openpolicyagent.org/">Open Policy Agent</a>.</li></ul><p><strong>My reference architectures</strong></p><ul><li><a href="https://naren-chakraview.github.io/fintech-data-mesh/case-study/fintech-governance/trust-gaps/">Trust gaps: before and after</a>: every gap in this article, its fix, the demos and the known residuals.</li><li><a href="https://github.com/naren-chakraview/chakraview-fintech-data-mesh/tree/trust-before">The before state</a>, tagged trust-before, and the <a href="https://github.com/naren-chakraview/chakraview-fintech-data-mesh">fixed repository</a>.</li><li><a href="https://medium.com/@narendra.loganathan/zero-trust-for-the-workloads-you-dont-control-07b9e52289d5">Zero Trust for the Workloads You Don’t Control</a>: the identity, delegation and capability primitives this article applies to data.</li><li><a href="https://naren-chakraview.github.io/zero-trust-blueprint/">Zero-trust blueprint</a>: attested workload identity, mTLS and policy as code on Kubernetes.</li></ul><p><em>I am a software engineer at heart. With 25 years building distributed systems, I treat every part of software development, whether microservices, data engineering, agentic workloads or security, with the intense rigor of a complete engineer. No layer is someone else’s problem, and no detail is beneath attention. I have published open reference architectures at </em><a href="https://naren-chakraview.github.io/"><em>naren-chakraview.github.io</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e17d451fa345" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Data Products Need Meaning, Not Just Schemas]]></title>
            <link>https://medium.com/@narendra.loganathan/data-products-need-meaning-not-just-schemas-b09d1601aa4d?source=rss-9c5fc2c3248e------2</link>
            <guid isPermaLink="false">https://medium.com/p/b09d1601aa4d</guid>
            <category><![CDATA[semantic-layer]]></category>
            <category><![CDATA[data-mesh-architecture]]></category>
            <category><![CDATA[agentic-ai]]></category>
            <category><![CDATA[data-engineering]]></category>
            <category><![CDATA[data-mesh]]></category>
            <dc:creator><![CDATA[Narendra Loganathan]]></dc:creator>
            <pubDate>Fri, 06 Nov 2026 14:29:44 GMT</pubDate>
            <atom:updated>2026-11-14T19:35:36.843Z</atom:updated>
            <content:encoded><![CDATA[<h3>Everyone is building a semantic layer for AI agents. Almost none of them answer the question a data mesh actually has: is this the same customer?</h3><p><em>By Narendra Loganathan</em></p><p>An agent is asked a simple question: which high-risk customers had a failed payment this month?</p><p>It does everything right. It reads the shared ontology published by the data mesh, finds the property that links a risk profile to its customer, and writes a federated SPARQL query across three domains: Accounts for the customer, Transactions for the failed payments, Risk and Compliance for the scores. It is, in effect, the churn-analysis query my mesh ships as an example. The query is well formed. It runs. It returns nothing, and the agent reports that no high-risk customer had a failed payment.</p><p>The answer is wrong. The published ontology said the link was fintech:riskCustomer. The Risk domain actually publishes fintech:forCustomer. Nothing failed, nothing warned, and an empty result is indistinguishable from good news.</p><p>I did not make this up for effect. I found it in my own reference data mesh while preparing this article. In the <a href="https://medium.com/@narendra.loganathan/i-built-a-data-mesh-for-humans-then-i-put-an-agent-in-front-of-it-593198088dd5">first article of this series</a> I argued that data as a product breaks at “understandable” once the consumer is an agent, because meaning used to live in the reader’s head. This is what that looks like in code, and how I fixed it.</p><h3>What the industry is building</h3><p>Credit first, because the semantic layer is having a real moment, and most of the attention is deserved.</p><p>The evidence that agents need more than a schema is solid. In 2023, Juan Sequeda, Dean Allemang and Bryon Jacob measured GPT-4 answering business questions over an insurance database: 16.7% accuracy writing SQL against the raw schema, 54.2% querying a knowledge graph over the same data. A 2026 benchmark from Cube found the same shape with three current frontier models: accuracy rose from 46 to 51% to 68 to 69% when the models were given a semantic layer document.</p><p>The industry has responded. The Open Semantic Interchange specification, backed by Snowflake, Databricks, dbt Labs, Salesforce and others, was finalized in January 2026 as a vendor-neutral way to describe datasets, metrics, dimensions and relationships. Snowflake mines query logs to propose metric definitions, Databricks moves business semantics into Unity Catalog, Microsoft’s Fabric IQ builds an ontology of entities and relationships, and catalog vendors wrap all of it in context for agents.</p><p>All of that solves a real problem: measurement. What “revenue” means, how to compute it, which table to trust. If you have one platform and one team that owns the definitions, it may be all you need.</p><h3>What a mesh needs that a semantic layer does not give</h3><p>A data mesh has a different problem. Meaning is owned by several domains, and the hardest question is not “how do I compute this?” but “is this the same thing?”</p><p>Look at what the current work assumes. The OSI specification describes metrics and relationships, but it does not address how two independent producers agree that a record is the same real-world customer. The Cube benchmark ran on a single warehouse and a single retail dataset; its joins stay inside one domain, and it does not test entity resolution. Even the vendors’ critiques of one another are about cross-platform reach and graph traversal, not identity or ownership.</p><p>A mesh needs four things from its semantics:</p><ol><li><strong>One identity per real-world entity</strong>, computed the same way by every domain that refers to it.</li><li><strong>A small shared core plus domain-owned extensions</strong>, so the vocabulary that crosses domains has one definition and everything else stays with its owner.</li><li><strong>Values a machine can compute with</strong>, typed so that a sum is a sum.</li><li><strong>Validation at the producer</strong>, so drift fails a build instead of reaching a consumer as an empty result.</li></ol><p>You could get all four by handing meaning to a central semantic team. That is the trap. It quietly recentralizes the mesh, which is the failure I wrote about when I argued for <a href="https://naren-chakraview.github.io/fintech-data-mesh/case-study/fintech-semantic-integration/BLOG-SHIFT-LEFT-SEMANTICS/">shift-left semantics</a>: domains own their data, but a central team owns what it means, so every new concept waits in that team’s queue. The question is how to keep meaning with the domains and still keep it consistent.</p><h3>The audit: what had drifted in my own mesh</h3><p>My fintech mesh has five domains on an Apache Iceberg lakehouse. Three of them (Accounts, Transactions, Risk and Compliance) publish RDF, mint their own identifiers, serve SPARQL endpoints and share an ontology, so consumers can join across domains with federated queries. I designed it to be the shift-left pattern done properly. When I read the code rather than the docs, five things had drifted.</p><p><strong>Competing names for the same link.</strong> The published shared ontology linked a risk profile to its customer with riskCustomer. The Risk domain&#39;s own extension, its RDF producer and the federated query all used forCustomer. The same split existed for email and customerEmail, name and customerName, and accountCustomer and accountOwner. The producers and the existing query agreed with each other, so everything I had tested worked. Only a consumer who trusted the published contract got burned, and that consumer is exactly the agent.</p><p><strong>Four “shared” ontologies.</strong> The documentation carried one copy of the shared ontology, and each domain’s tests carried its own. All four differed, from 70 lines to 365.</p><p><strong>An identity rule copied three times.</strong> A customer’s identifier is a hash of the normalized email and KYC ID, minted by Accounts. Transactions and Risk need the same identifier to link their records, so each had its own copy of the rule. Each copy’s tests checked that copy against itself, never against Accounts. If one domain changed its normalization, every test would still pass, and the join would quietly stop matching.</p><p><strong>Identifiers that collide.</strong> The hash was truncated to 8 hex characters, which is 32 bits. By the birthday bound, that gives a 50% chance of two customers sharing an identifier at about 77,000 customers, and 69% at 100,000. I generated synthetic customers until it happened: customer111830@example.com and customer130865@example.com both minted customer#15e5a0c2. In a graph, a collision does not raise an error. It merges two people into one.</p><p><strong>Numbers that are not numbers.</strong> Account balances and transaction amounts were typed with fintech:decimal, a datatype defined nowhere, instead of xsd:decimal. To a human reading the triples they look like amounts. To SPARQL they are literals of an unknown type: SUM over them raises a type error, and a strict engine drops numeric filters on them.</p><p>None of these would trouble an analyst who knows the data. She would notice an empty churn report, recognize the amounts, and never meet two customers with the same hash in a sample. Every one of them is fatal to an agent, which only has what the product declares. And they share a cause: <strong>the shared parts of meaning were copied, not referenced, and nothing machine-checked them.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*v0Th5DAWDVPCCCq4dgwDUg.png" /><figcaption><em>Where drift gets caught. Before, the consumer finds it, if anyone does. After, the producer’s build or a contract test finds it first.</em></figcaption></figure><h3>The fix: meaning as part of the data product contract</h3><p>I fixed it in the repository and kept the drifted version beside the fix, because the before is as instructive as the after. The old state is tagged <a href="https://github.com/naren-chakraview/chakraview-fintech-data-mesh/tree/semantic-drift-before">semantic-drift-before</a>, the drifted files are frozen under examples/semantic-drift/before/, and four small demos print the before and after of the main drifts. The design has five parts.</p><p><strong>One shared core, versioned and never copied.</strong> The core is a single file with a version IRI. It holds only what crosses domains: the entity classes, the link properties, provenance, and the identity rules. Each competing pair was resolved once, keeping the name producers already used, and the loser was marked deprecated with a pointer to the winner, so old queries can be migrated rather than silently broken. Attribute properties, such as a customer’s name and email, moved to the domain that owns them. Every domain extension imports the core by version, and the copies are gone.</p><p><strong>Identity owned by the entity’s domain.</strong> The customer identity rule now lives in one library, owned by Accounts, that every other domain imports. It uses HMAC-SHA256 with the full 64-character digest, keyed by a secret that every producer receives. The key matters as much as the length: an unkeyed hash of an email address can be reversed by anyone who can guess emails. Accounts also publishes golden test vectors, including the collision pair above, and every domain runs them in CI. A domain that drifts now fails its build.</p><p><strong>Values typed for machines.</strong> Amounts and balances are xsd:decimal, built from exact decimals rather than floats, and dates are xsd:dateTime. The SUM that used to raise a type error now returns the total.</p><p><strong>Producers validate before they publish.</strong> The contract now includes SHACL shapes, which are machine-checkable constraints on the graph a producer may publish. They check that customer identifiers are full-length digests from the identity library, that link properties point at an identifier the library minted, that amounts are decimals, that provenance is present, and that deprecated names are absent:</p><pre>fintech:NoDeprecatedTermsShape<br>  a sh:NodeShape ;<br>  sh:targetSubjectsOf fintech:riskCustomer, fintech:accountCustomer ;<br>  sh:property [<br>    sh:path fintech:riskCustomer ; sh:maxCount 0 ;<br>    sh:message &quot;fintech:riskCustomer is deprecated. Use fintech:forCustomer.&quot;<br>  ] .</pre><p>Accounts and Transactions validate their graphs before writing and refuse to publish on a violation. Risk has no writer yet, so its output is checked in CI, where every domain’s output is validated against the shapes. This is shift-left semantics made executable: the domain still owns its meaning, but it can no longer publish meaning that contradicts the core.</p><p><strong>Consumers’ queries are contracts too.</strong> Here the audit taught me something. Run against the drifted output, the new shapes caught the short identifiers and the untyped amounts, but they found nothing wrong with the link. The producers had been publishing forCustomer all along; the drift was in the published core that consumers read. Validating producers cannot catch that. What catches it is a single core plus a contract test that runs the federated churn query against every domain&#39;s output and requires the known high-risk customer to come back. Producer drift and contract drift need different guards, and a mesh needs both.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nyWNmQ3jJkoiiVUORBA_Mg.png" /><figcaption><em>Domain-owned semantics. The core and the identity rule are referenced by version, never copied, and every producer passes the same shapes before anything reaches a consumer.</em></figcaption></figure><h3>What the agent gets</h3><p>The point of all this is not tidier RDF. It is that the agent’s two hardest questions now have machine-checkable answers. “What does this mean?” is answered by a versioned core with one name per concept. “Is this the same customer?” is answered by one identity rule, owned by one domain, tested by all of them. The agent no longer has to carry meaning in its head, because the product carries it, and a contradiction now fails a build instead of reaching the agent.</p><p>That is the foundation the fourth article in this series builds on, when the agent stops only reading data products and starts producing them.</p><h3>RDF and metrics layers are complements</h3><p>None of this argues against a metrics layer. The two do different jobs, and they meet at the identifier. A metrics layer is the right place to define how revenue is calculated. RDF is the right place to say that the customer in Accounts and the debtor in Transactions are the same entity, and how a risk profile relates to both. A mesh that has both can let a metric be defined once and computed over entities whose identity every domain agrees on.</p><p>If you have a single domain, a single warehouse and one team that owns definitions, you may not need RDF at all. The case for it grows with the number of owners.</p><h3>What it costs</h3><p>Taking meaning seriously is not free, and the costs are worth naming.</p><p>Ontology work is slow and political. Getting domains to agree on the handful of terms in a shared core can take longer than building the pipelines, and the negotiation repeats with every new domain. RDF and SHACL are skills most data teams do not have yet. Federated SPARQL, where each query fans out to every domain’s endpoint and joins the answers at query time, is good for exploration but slows down as the graphs grow. My case study’s guideline is to federate while each domain holds under about a million facts (RDF calls them triples), and beyond that to materialize: copy the data production queries need into one store ahead of time, trading some freshness for speed. A keyed identity hash needs the key distributed to every producer and a plan for rotating it, which re-mints every customer identifier.</p><p>And semantics creates a second read path. The SPARQL endpoints in my mesh serve customer names and email addresses, and their update endpoints are open. The access policy that masks and audits reads of the Iceberg tables does not see them. A mesh that adds meaning has to extend governance to wherever that meaning is served, and that is the subject of the next article.</p><p>The data mesh asked domains to own their data as a product. In the agent era, they have to own what it means too, in a form a machine can check.</p><p>I would value pushback, particularly from teams running a semantic layer for agents across more than one domain. Who owns your entity identifiers, and what fails when two domains disagree?</p><h3>The series</h3><p>Each article stands on its own, but they build in order, and each one is anchored in an architecture I have already published.</p><ol><li><a href="https://medium.com/@narendra.loganathan/i-built-a-data-mesh-for-humans-then-i-put-an-agent-in-front-of-it-593198088dd5"><strong>Data mesh was built for human consumers. AI changed the consumer.</strong></a> Where an autonomous, machine-speed consumer breaks the mesh, and the three threads that follow from it.</li><li><strong>Data products need meaning, not just schemas.</strong> This article: shared semantics across domains, the drift I found in my own mesh, and the contract that now catches it.</li><li><a href="https://medium.com/@narendra.loganathan/federated-governance-is-a-trust-problem-not-a-policy-document-e17d451fa345"><strong>Federated governance is a trust problem, not a policy document</strong></a><strong>.</strong> Making the mesh’s softest principle concrete with zero-trust primitives: attested identity for data products and their consumers, policy at the data product’s boundary, least-privilege access, and lineage treated as attestation.</li><li><strong>When the data consumer is an autonomous agent.</strong> The convergence: agents that read and write data products, interpreted through RDF semantics and bounded by on-behalf-of delegation and capability policy at the product boundary. Includes what the agent owns when it produces data.</li><li><strong>The AI-era data mesh.</strong> The three threads assembled into one reference architecture, with the full diagram set: domains, semantics, trust and agents as one design.</li><li><strong>Adopting it without boiling the ocean</strong> (coda). Where to start, what it costs, and what to skip, for teams that cannot rebuild their mesh at once.</li></ol><h3>References and further reading</h3><p><strong>The evidence for semantics</strong></p><ul><li>Juan Sequeda, Dean Allemang and Bryon Jacob, <a href="https://data.world/mstatic/assets/pdf/kg_llm_accuracy_benchmark_11132023_public.pdf">A Benchmark to Understand the Role of Knowledge Graphs on Large Language Model’s Accuracy for Question Answering on Enterprise SQL Databases</a>, data.world, 2023.</li><li>Michael Rumiantsau and Ivan Fokeev, <a href="https://arxiv.org/pdf/2604.25149">Semantic Layers for Reliable LLM-Powered Data Analytics: A Paired Benchmark of Accuracy and Hallucination Across Three Frontier Models</a>, Cube, arXiv, 2026.</li></ul><p><strong>The current semantic layer landscape</strong></p><ul><li>Snowflake, <a href="https://www.snowflake.com/en/blog/open-semantic-interchanges-specs-finalized/">Open Semantic Interchange specs finalized</a>, January 2026.</li><li>Timbr, <a href="https://timbr.ai/blog/every-vendor-is-automating-the-semantic-layer-for-ai-agents-heres-what-theyre-missing/">Every vendor is automating the semantic layer for AI agents. Here’s what they’re missing.</a>, May 2026.</li><li>Atlan, <a href="https://atlan.com/know/ontology-vs-semantic-layer/">Ontology vs. semantic layer</a>, 2026.</li></ul><p><strong>Standards</strong></p><ul><li>W3C, <a href="https://www.w3.org/TR/rdf11-primer/">RDF 1.1 Primer</a>, <a href="https://www.w3.org/TR/sparql11-overview/">SPARQL 1.1 Overview</a> and <a href="https://www.w3.org/TR/shacl/">SHACL</a>.</li><li>IETF, <a href="https://www.rfc-editor.org/rfc/rfc2104">RFC 2104: HMAC</a>.</li></ul><p><strong>My reference architectures</strong></p><ul><li><a href="https://naren-chakraview.github.io/fintech-data-mesh/case-study/fintech-semantic-integration/semantic-drift/">Semantic drift: before and after</a>: every drift in this article, its fix, and the demos that reproduce both.</li><li><a href="https://github.com/naren-chakraview/chakraview-fintech-data-mesh/tree/semantic-drift-before">The drifted design</a>, tagged semantic-drift-before, and the <a href="https://github.com/naren-chakraview/chakraview-fintech-data-mesh">fixed repository</a>.</li><li><a href="https://naren-chakraview.github.io/fintech-data-mesh/case-study/fintech-semantic-integration/BLOG-SHIFT-LEFT-SEMANTICS/">Shift-left semantics</a>: domain-owned RDF, and why a central semantic team recentralizes the mesh.</li><li><a href="https://naren-chakraview.github.io/data-engineering-patterns/">Data Engineering Patterns</a>: nine patterns across 22 stack variants, including semantic RDF.</li></ul><p><em>I am a software engineer at heart. With 25 years building distributed systems, I treat every part of software development, whether microservices, data engineering, agentic workloads or security, with the intense rigor of a complete engineer. No layer is someone else’s problem, and no detail is beneath attention. I have published open reference architectures at </em><a href="https://naren-chakraview.github.io/"><em>naren-chakraview.github.io</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b09d1601aa4d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[I Built a Data Mesh for Humans. Then I Put an Agent in Front of It.]]></title>
            <link>https://medium.com/@narendra.loganathan/i-built-a-data-mesh-for-humans-then-i-put-an-agent-in-front-of-it-593198088dd5?source=rss-9c5fc2c3248e------2</link>
            <guid isPermaLink="false">https://medium.com/p/593198088dd5</guid>
            <category><![CDATA[data-mesh]]></category>
            <category><![CDATA[data-engineering]]></category>
            <category><![CDATA[agentic-data-engineering]]></category>
            <category><![CDATA[data-mesh-architecture]]></category>
            <dc:creator><![CDATA[Narendra Loganathan]]></dc:creator>
            <pubDate>Thu, 22 Oct 2026 23:51:19 GMT</pubDate>
            <atom:updated>2026-11-14T19:34:42.984Z</atom:updated>
            <content:encoded><![CDATA[<h3>The four principles of data mesh still hold. Two of them were quietly assuming a person on the other end.</h3><p><em>By Narendra Loganathan</em></p><p>Here is an ordinary request in a data mesh I designed.</p><p>A fraud analyst wants the fraud scores owned by the Risk and Compliance domain, the risk_compliance.fraud_scores table. She finds the product in the discovery portal, reads its contract (schema, freshness SLA, column classifications, approval rules, retention), and submits an access request with a sentence of justification. Policy evaluates the request and, because her role needs the owner&#39;s sign-off for sensitive data, routes it to the owning domain with a two-hour approval SLA. Every governed read then goes through a masking step that asks policy, column by column, how to mask for her role, and writes an audit record before any rows come back. The table itself falls under ten-year AML retention.</p><p>Now look at what the policy engine actually received. A user ID. A role, fraud_analyst, from the same short list as analyst and risk_analyst. An action. The classification of the data. The justification went to a human approver as free text; the policy never read it.</p><p>Every one of those inputs describes a person.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*g77fDaa1FqUQR1-8ySorpg.png" /><figcaption><em>The access request as designed. Each note marks the assumption an agent consumer breaks.</em></figcaption></figure><p>Now run the same request from an AI agent acting for that analyst, at three in the morning, issuing a few hundred queries a minute across three domains because it decided that was the fastest way to answer her question. Which value goes in user_role? Who reads the justification? What happens to the two-hour SLA?</p><p>That question is where this series starts: five articles, plus a short practical coda, that take the data mesh from human consumers to AI agents. The full lineup is below. I build and govern distributed data platforms for a living, and I have published a reference implementation of the mesh above. This piece is an audit of my own design against a consumer it was not built for. It is not a report from running production LLM agents on it. The point is architectural, and the evidence is the design itself.</p><h3>What the mesh got right</h3><p>Data mesh got the hard part right, and it is worth saying so before taking it apart. Its four principles are domain ownership, data as a product, a self-serve platform, and federated computational governance. Together they solved a real organizational failure: a central data team that becomes the bottleneck for every question the business asks.</p><p>My fintech mesh follows them closely. Five domains (Transactions, Accounts, Risk and Compliance, Counterparties, Market Data) each own their data end to end, on an Apache Iceberg lakehouse fed by Kafka. Every data product ships a contract. Governance is policy as code in OPA, and the decision record for that choice explicitly rejected plain role-based access because roles multiply out of control at scale. Attributes were supposed to fix that.</p><p>Underneath all four principles sits an assumption the original formulation never had to state, because it was always true: <strong>the consumer is a person.</strong> A person reads the documentation. A person resolves ambiguity in their head. A person carries a role, a manager and accountability. A person works at human speed, so an approval queue measured in hours is a reasonable control.</p><p>The consumer that is arriving now breaks that assumption in three specific ways:</p><ul><li><strong>It is autonomous.</strong> No human approves each query; the agent decides what to read next.</li><li><strong>It is non-deterministic.</strong> The same question can produce a different plan, a different query, a different join, and its behavior can be steered by whatever lands in its context.</li><li><strong>It runs at machine speed.</strong> Hundreds of queries, fanned out across domains, in the time a person would take to read one contract.</li></ul><p>Put that consumer in front of the four principles and they do not all fail. Two of them hold, and two break.</p><h3>Principle by principle</h3><p><strong>Domain ownership holds.</strong> Nothing about an agent consumer changes who should own the transactions data or who gets paged when it goes stale. If anything, clear ownership matters more, because an agent needs someone accountable for the meaning it is relying on.</p><p><strong>The self-serve platform holds, and matters more.</strong> Agents are the most demanding self-serve users there are. A platform that already exposes discovery, contracts and health through APIs is in a much better position than one that runs on tickets and tribal knowledge.</p><p><strong>Data as a product breaks at “understandable.”</strong> A data product is supposed to be discoverable, addressable, trustworthy and understandable. My contracts carry the schema, SLAs, quality rules, masking and retention. What they do not carry is meaning. Meaning lived in the reader.</p><p>Take “customer,” which means something slightly different in Accounts, Transactions and Risk. My mesh links them through RDF with a deterministic identifier. Each domain mints the same customer IRI from the same two fields, so a federated query can join accounts, transactions and risk scores without a central lookup. It works, and I would build it again. But my own documentation shows the failure mode: if one domain computes the identifier from the email alone while another uses the email plus the KYC ID, the IRIs never match. The federated join does not fail. It returns nothing, quietly.</p><p>A human analyst looking at a churn report with zero high-risk customers in it senses something is off and goes to ask. An agent reports the empty result as the answer. The difference between those two outcomes is not intelligence. It is that the human was carrying the meaning in her head, and the agent can only carry what the product actually declares.</p><p><strong>Federated computational governance breaks at “who.”</strong> The computational part is real: my policies are versioned, tested in CI, and evaluated on every access request and every governed read. But everything they compute over is an attribute of a person. There is no workload identity in the input. There is no notion of acting on behalf of someone. There is no machine-readable purpose; the justification is a sentence for a human approver.</p><p>So when an agent shows up, a team has three options, and all three are bad:</p><ol><li><strong>Lend it the analyst’s identity.</strong> Now the audit log says she ran four hundred queries at 3 a.m. It is accurate about whose authority was used and silent about what actually acted.</li><li><strong>Give it a service account with a broad role.</strong> The approval queue disappears, and so does least privilege. The agent can now read whatever that role can read, for whichever user it happens to be serving.</li><li><strong>Put it in the approval queue.</strong> Two hours per new product, for a consumer that wanted the answer in two seconds. Nobody keeps this option for long, which is how teams end up at option 2.</li></ol><p>This is not hypothetical. A recent academic prototype that connects LLM agents to an enterprise data product marketplace through MCP authenticated the agent with role-linked API keys. When the authors showed it to practitioners, the experts asked for exactly what the mesh lacks: separate identities for humans and AI, tighter limits on what the AI may do, and no security decisions delegated to the model.</p><h3>The part the mesh has no word for</h3><p>There is a third problem, and it is the one most writing on this topic skips. Agents do not only read.</p><p>They summarize, derive features, flag records and write results back. In my mesh, a producer is a domain team: it has an on-call rotation, a contract, a retention policy and a name in the ownership column. An agent that writes a derived risk summary has none of those. Who owns that output? What lineage does it carry? Which retention rule applies to a summary derived from a table that AML rules require us to keep for ten years? If the summary is wrong, who gets paged?</p><p>The original mesh has two kinds of participant: domains that produce and people who consume. The agent is a third kind, and it needs to be governed as a participant, not just tolerated as a client.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZclQSWyi4Zim8cCPSGUs4w.png" /><figcaption><em>One data product, two consumers. The three gaps map to the three threads of this series.</em></figcaption></figure><h3>Three threads</h3><p>Pull those failures apart and three threads come out. Each one is something the original formulation left soft, because a human consumer used to absorb it.</p><ol><li><strong>Meaning has to be machine-interpretable.</strong> If the consumer cannot carry meaning in its head, the product has to carry it, in a form a machine can check. That means domain-owned semantics, which in my work means RDF and shared ontologies rather than column descriptions. That is the next article.</li><li><strong>Trust has to be computed from identity, not inferred from a role.</strong> Every consumer needs an attested identity, every delegation needs to be explicit, and policy has to evaluate both at the data product’s boundary. I made the case for those primitives, in a security context, in <a href="https://medium.com/@narendra.loganathan/zero-trust-for-the-workloads-you-dont-control-07b9e52289d5">Zero Trust for the Workloads You Don’t Control</a>. The third article applies them to the mesh.</li><li><strong>The agent has to be a governed participant.</strong> It consumes and produces, so it needs an identity, bounded capabilities and an owner, like any other participant. That is the fourth article.</li></ol><h3>The series</h3><p>Each article stands on its own, but they build in order, and each one is anchored in an architecture I have already published.</p><ol><li><strong>Data mesh was built for human consumers. AI changed the consumer.</strong> This article: where an autonomous, machine-speed consumer breaks the mesh, and the three threads that follow from it.</li><li><a href="https://medium.com/@narendra.loganathan/data-products-need-meaning-not-just-schemas-b09d1601aa4d?sharedUserId=narendra.loganathan"><strong>Data products need meaning, not just schemas</strong></a><strong>.</strong> Why data as a product falls apart across domains without shared semantics, and why RDF, knowledge graphs and SPARQL are the federated semantic layer the mesh always needed but rarely specified. Domain-owned ontologies, shift-left semantic integration, and the identifier-drift failure above, worked through from my fintech mesh’s semantic integration case study.</li><li><a href="https://medium.com/@narendra.loganathan/federated-governance-is-a-trust-problem-not-a-policy-document-e17d451fa345"><strong>Federated governance is a trust problem, not a policy document</strong></a><strong>.</strong> Making the mesh’s softest principle concrete with zero-trust primitives: attested identity for data products and their consumers, policy at the data product’s boundary, least-privilege access, and lineage treated as attestation.</li><li><strong>When the data consumer is an autonomous agent.</strong> The convergence: agents that read and write data products, interpreted through RDF semantics and bounded by on-behalf-of delegation and capability policy at the product boundary. Includes what the agent owns when it produces data.</li><li><strong>The AI-era data mesh.</strong> The three threads assembled into one reference architecture, with the full diagram set: domains, semantics, trust and agents as one design.</li><li><strong>Adopting it without boiling the ocean</strong> (coda). Where to start, what it costs, and what to skip, for teams that cannot rebuild their mesh at once.</li></ol><h3>Where this sits in the conversation</h3><p>I am not the first to notice that agents change the consumer. Zhamak Dehghani, who defined data mesh, has been building toward “autonomous data products” at Nextdata: products that carry embedded semantics, enforce policy at runtime and support discovery by agents. Thoughtworks’ review of the state of data mesh this year describes “dual-use” products that serve analytics and AI from the same contract. I agree with both diagnoses.</p><p>Where I differ is on mechanism, and on what I think is still missing. Most of the current writing says agents need semantics and governance. Very little says what identity an agent carries when it reaches a data product, or what the semantic layer actually is in standards terms. My bet is on open standards I have already shipped: RDF and SPARQL for meaning, SPIFFE workload identity and OPA policy for trust. These are not a new platform. They are pieces most enterprises can already run.</p><h3>What it costs</h3><p>Taking this seriously is not free, and the costs are worth naming up front.</p><p>Shared semantics is slow and political. Getting domains to agree on what “customer” means is usually slower than building the pipelines, and the negotiation repeats with every new domain. Workload identity is real plumbing: certificate issuance, rotation, and a policy engine that now evaluates delegation as well as roles. Every query pays for an extra policy decision, and every team has to learn to write policies about machines, not just people.</p><p>And it is not always worth it. If your only consumers are dashboards and analysts, the human assumption still holds, and the original mesh is still the right design. The case for this series rests on one condition: autonomous agents are reading, and soon writing, your data products. For a growing number of organizations, that condition is already true or about to be.</p><p>The four principles still hold. They just need a fifth assumption made explicit: the consumer may not be a person, and the mesh has to know the difference.</p><p>I would value pushback, especially from anyone running agents against governed data today. Did you lend them a person’s identity, give them a service account, or find a fourth option?</p><h3>References and further reading</h3><p><strong>Data mesh, from the source</strong></p><ul><li>Zhamak Dehghani, <a href="https://martinfowler.com/articles/data-monolith-to-mesh.html">How to Move Beyond a Monolithic Data Lake to a Distributed Data Mesh</a>, martinfowler.com, 2019. The article that introduced data mesh.</li><li>Zhamak Dehghani, <a href="https://martinfowler.com/articles/data-mesh-principles.html">Data Mesh Principles and Logical Architecture</a>, martinfowler.com, 2020. The four principles this piece audits.</li><li>Zhamak Dehghani, <a href="https://www.oreilly.com/library/view/data-mesh/9781492092384/">Data Mesh: Delivering Data-Driven Value at Scale</a>, O’Reilly, 2022.</li></ul><p><strong>The current conversation about agents and data mesh</strong></p><ul><li>Nextdata, <a href="https://www.nextdata.com/our-pov/building-an-ai-ready-data-foundation-how-autonomous-data-products-enable-safe-scalable-agent-consumption">How to build an AI-ready data foundation: autonomous data products for safe, scalable agent consumption</a>, 2025.</li><li>Thoughtworks, <a href="https://www.thoughtworks.com/insights/blog/data-strategy/the-state-of-data-mesh-in-2026-from-hype-to-hard-won-maturity">The state of data mesh in 2026: from hype to hard-won maturity</a>, 2026.</li><li>Tonnarelli, Scaramuzza, Harrer and Dietz, <a href="https://arxiv.org/html/2601.08687v1">Data Product MCP: Chat with your Enterprise Data</a>, arXiv, 2026. The prototype and practitioner feedback cited above.</li><li>Atlan, <a href="https://atlan.com/know/ai-agent/data-for-ai/data-mesh-and-ai/">Data Mesh and AI: How Decentralized Architecture Affects Agents</a>, 2026.</li></ul><p><strong>Standards this series builds on</strong></p><ul><li>W3C, <a href="https://www.w3.org/TR/rdf11-primer/">RDF 1.1 Primer</a> and <a href="https://www.w3.org/TR/sparql11-overview/">SPARQL 1.1 Overview</a>.</li><li><a href="https://spiffe.io/docs/latest/spiffe-about/overview/">SPIFFE</a>, the standard for attested workload identity.</li><li><a href="https://www.openpolicyagent.org/docs/latest/">Open Policy Agent</a>, policy as code.</li></ul><p><strong>My reference architectures</strong></p><ul><li><a href="https://naren-chakraview.github.io/fintech-data-mesh/">Fintech Data Mesh</a>: the mesh audited in this article, including its <a href="https://naren-chakraview.github.io/fintech-data-mesh/platform/governance/">governance design</a>, <a href="https://naren-chakraview.github.io/fintech-data-mesh/platform/discovery/">discovery portal</a> and <a href="https://naren-chakraview.github.io/fintech-data-mesh/adrs/ADR-0003-governance/">governance decision record</a>.</li><li><a href="https://naren-chakraview.github.io/fintech-data-mesh/case-study/fintech-semantic-integration/BLOG-SHIFT-LEFT-SEMANTICS/">Shift-left semantics</a>: domain-owned RDF and the identifier-drift failure mode.</li><li><a href="https://naren-chakraview.github.io/data-engineering-patterns/">Data Engineering Patterns</a>: nine patterns across 22 stack variants, including semantic RDF.</li><li><a href="https://naren-chakraview.github.io/zero-trust-blueprint/">Zero-trust blueprint</a> and the article <a href="https://medium.com/@narendra.loganathan/zero-trust-for-the-workloads-you-dont-control-07b9e52289d5">Zero Trust for the Workloads You Don’t Control</a>.</li></ul><p><em>I am a software engineer at heart. With 25 years building distributed systems, I treat every part of software development, whether microservices, data engineering, agentic workloads or security, with the intense rigor of a complete engineer. No layer is someone else’s problem, and no detail is beneath attention. I have published open reference architectures at </em><a href="https://naren-chakraview.github.io/"><em>naren-chakraview.github.io</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=593198088dd5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Zero Trust for the Workloads You Don’t Control]]></title>
            <link>https://medium.com/@narendra.loganathan/zero-trust-for-the-workloads-you-dont-control-07b9e52289d5?source=rss-9c5fc2c3248e------2</link>
            <guid isPermaLink="false">https://medium.com/p/07b9e52289d5</guid>
            <category><![CDATA[zero-trust-architecture]]></category>
            <category><![CDATA[zero-trust]]></category>
            <category><![CDATA[agentic-security]]></category>
            <category><![CDATA[legacy]]></category>
            <dc:creator><![CDATA[Narendra Loganathan]]></dc:creator>
            <pubDate>Fri, 02 Oct 2026 04:23:32 GMT</pubDate>
            <atom:updated>2026-10-02T04:23:32.212Z</atom:updated>
            <content:encoded><![CDATA[<h3>The same primitives that pull a legacy app into a zero-trust mesh without touching its code are the ones that govern an AI agent you can’t fully predict. Here’s the architecture that covers both.</h3><p><em>By Narendra Loganathan</em></p><p>Most zero-trust writing quietly assumes a greenfield. New services, a service mesh from day one, every workload issued a cryptographic identity at birth. That world is lovely, and almost nobody lives in it.</p><p>The real enterprise is a sediment of a decade of decisions: a Java service that hasn’t been redeployed since the last reorg, an internal API that three teams depend on and no team owns, a batch job authenticating with a shared secret in an environment variable. And now, bolted onto all of it, a new kind of workload that’s stranger than any of them: <strong>an AI agent that acts on a user’s behalf, calls tools and services autonomously, and whose next move you cannot fully predict.</strong></p><p>These look like opposite problems. They are the same problem. Zero trust was never really about trusting the code you wrote; it’s about <strong>governing the workloads you don’t control</strong>, whether that’s a legacy binary you can’t modify or an autonomous agent you can’t anticipate. I built an open-source reference implementation around exactly this, in regulated environments, and the punchline is worth writing down: the identity, policy, and delegation primitives that onboard a legacy app without changing a line of it are the <em>same</em> primitives that keep an AI agent inside its lane. Here’s the architecture.</p><h3>Three planes, independently replaceable</h3><p>The foundation is a separation most teams collapse by accident: identity, network, and policy are three different concerns, and they should fail independently.</p><ul><li><strong>Identity plane: SPIFFE/SPIRE.</strong> Every workload gets a cryptographic identity (a short-TTL, auto-rotated X.509 SVID, plus a JWT SVID for request-level proofs). No shared secrets, no long-lived credentials to leak. Identity is <em>attested</em> from workload properties, not handed out in a config file. Crucially, “workload” here is species-agnostic: a microservice, a legacy app’s sidecar, or an AI agent process all get identity the same way.</li><li><strong>Network plane: service mesh mTLS.</strong> Strict peer authentication cluster-wide, default-deny authorization, L3/L4 policy. Nothing talks to anything unless both ends present a valid identity and policy allows it.</li><li><strong>Policy plane: OPA.</strong> Admission control at deploy time and authorization at request time, from a single policy store so the mesh and the gateway can’t drift into disagreeing.</li></ul><p>The principle that matters: <strong>each plane is independently replaceable.</strong> Swap the mesh for Cilium or OPA for Kyverno, and the architecture doesn’t collapse, because no plane is load-bearing for another’s guarantees. A failure at the gateway doesn’t bypass the mesh; a mesh failure doesn’t bypass admission control. Defense in depth isn’t a slogan here; it’s the topology.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*02Lpzoa9Qzm4aymwZ7A10w.png" /><figcaption><em>The three planes fail independently. Legacy apps join via the gateway without code changes; AI agents join as first-class but policy-bounded workloads.</em></figcaption></figure><p>That’s table stakes. The interesting part is what you do with the workloads that can’t, or shouldn’t, be trusted to behave.</p><h3>The onboarding gateway: zero trust without touching the app</h3><p>A legacy app can’t fetch an SVID, terminate mTLS, or call OPA. So you put something in front of it that can: a gateway that <em>is</em> the workload’s zero-trust citizen while the app stays blissfully unaware. Two topologies cover most of the estate:</p><p><strong>Same-pod (sidecar) topology.</strong> The gateway runs as a container in the app’s pod. The app binds only to 127.0.0.1:8080, unreachable from outside the pod. The gateway exposes the mTLS endpoint, receives its SVID via the SPIRE SDS API, enforces the OPA check, and only then proxies down to localhost. The app sees plain HTTP from loopback and never knows it&#39;s inside a zero-trust mesh. Nothing in its code changes.</p><p><strong>Dedicated gateway topology.</strong> One horizontally-scaled gateway fronts many legacy pods that expose no external ports at all; NetworkPolicy restricts ingress to the gateway alone. This fits a fleet of legacy services sharing gateway infrastructure rather than paying a sidecar per pod.</p><p>The choice between them is a real tradeoff (per-pod isolation and blast-radius containment versus operational economy at fleet scale), and it’s worth recording explicitly rather than defaulting into. Either way, a workload that could never speak zero trust is now a full participant, enforced from the outside in.</p><h3>The harder problem: who is actually calling?</h3><p>Here’s where most implementations quietly cheat. Once service A calls B calls C, the original user’s identity is usually lost at the first hop. Worse, some designs preserve it by forwarding the user’s session token downstream, so every service ends up holding a credential it has no business holding.</p><p>The better model is <strong>On-Behalf-Of (OBO) delegation.</strong> Each service has its <em>own</em> SPIFFE identity. When it calls downstream it doesn’t pass the user’s token; it presents a short-lived JWT SVID proving <em>it</em> is authorized to act, plus headers carrying delegation proof and the original principal’s identity. OPA validates the chain at every hop (depth, audience, TTL) before allowing transit.</p><p>What you get is an auditable delegation trail that reads like a sentence:</p><pre>user@corp.internal → API Gateway → Orders Service → Inventory Service</pre><p>Every hop is cryptographically attested; no service holds a credential it shouldn’t. When a regulator or an incident responder asks “who actually triggered this write, and through what path?”, the answer is in the trace, not in a reconstruction. Hold onto that delegation trail; it’s about to matter even more.</p><h3>The same problem, wearing a new face: AI agents</h3><p>An AI agent is, architecturally, the most dangerous workload in your cluster. It’s non-human, it acts on a user’s behalf, it calls tools and other services, it chains those calls several deep. And, uniquely, <strong>its behavior is non-deterministic and steerable by its input.</strong> A prompt-injected agent will try to do things its author never intended. “Trust the code” was always shaky; for an agent, it’s meaningless, because the code’s job is to decide what to do at runtime.</p><p>Which is exactly why the primitives above fit agents better than they fit anything else:</p><ul><li><strong>Agent identity.</strong> An agent is just another workload, so it gets a SPIFFE SVID like any other, not a shared API key passed around a codebase. Its identity is attested and short-lived. When it calls a tool or a downstream service, mTLS and OPA apply with no special casing.</li><li><strong>Capability policy.</strong> This is the agent-specific piece. OPA doesn’t just answer “can this identity call that service?” It enforces <em>what this agent is allowed to do</em>: which tools, which data scopes, which actions. The agent’s autonomy is bounded by policy it cannot edit. A compromised or confused agent can only ever do what its capability policy permits, no matter what its context window tells it to attempt.</li><li><strong>Delegation chains / OBO for agents.</strong> This is where the OBO trail pays off. When a user asks an agent to act, and that agent calls a second agent, which calls a service, the chain user → agent → sub-agent → service is cryptographically attested and auditable end to end, the same mechanism as the microservice chain, now spanning autonomous actors. You can answer &quot;which agent, acting for which user, triggered this?&quot; with a trace, not a guess. In my blueprint this is captured directly as <strong>Zero-Trust Agent Identities (ADR-0002)</strong>: agent identity, capability policy, delegation chains, and OBO tokens as one coherent model.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*amUF29HBkcg8AAM2JO_qHw.png" /><figcaption><em>Every hop carries the agent’s own identity and the original user’s principal. A prompt-injected agent still can’t exceed its capability policy, and the whole chain is auditable from the trace.</em></figcaption></figure><p>The reframe is the whole point: <strong>you do not need a separate, bolted-on “AI security” product to govern agents.</strong> If your zero-trust foundation already treats identity, capability, and delegation as first-class, agents slot into it as just another workload, admittedly a stranger one. The organizations that will struggle with agent security in the next few years are the ones treating it as a net-new problem instead of the newest instance of an old one.</p><h3>Making it observable, human or machine</h3><p>Identity and policy are worthless if you can’t see them. OpenTelemetry runs through all three planes: traces from gateway and sidecars, structured logs from every OPA decision, metrics on SVID rotation. A collector-side step promotes the OBO delegation headers into span attributes (caller principal, full chain), so you can search <em>authorization decisions</em> by trace without instrumenting the workload. That works identically whether the caller is a legacy app or an agent, which means your agent’s every tool call is as auditable as any human-initiated request.</p><h3>What this is really about</h3><p>Zero trust is not a greenfield architecture you migrate to. It’s an <strong>enforcement layer you wrap around the workloads you don’t control.</strong> The legacy app you can’t rewrite and the AI agent you can’t predict are the same architectural problem, and they take the same answer: attested identity, policy the workload can’t edit, and delegation that preserves the originator across the whole chain.</p><p>There’s a cost, and it’s honest to name it: OBO adds a JWT generation per request and chain-validation logic that isn’t free, and capability policy for agents is only as good as the policies you actually write. You’re buying auditability and bounded autonomy with latency and operational discipline. In a regulated, high-value system, or anywhere you’re putting autonomous agents near real data, that trade is worth making.</p><p>The full blueprint is open source, with production-ready manifests for all three planes, both gateway topologies, the OBO policy logic, the agent identity and capability model, and the architecture decision records explaining <em>why</em> each choice was made:</p><p><strong>→ </strong><a href="https://naren-chakraview.github.io/zero-trust-blueprint/"><strong>naren-chakraview.github.io/zero-trust-blueprint</strong></a> · agent patterns at <a href="https://naren-chakraview.github.io/distributed-systems-patterns/"><strong>distributed-systems-patterns</strong></a></p><p>I’d genuinely value sharp disagreement, especially on where capability policy should live for agents, and on the OBO latency tradeoff at agent-chain depth. That’s the conversation worth having.</p><p>I am a software engineer at heart. With 25 years building distributed systems, I treat every part of software development, whether microservices, data engineering, agentic workloads or security, with the intense rigor of a complete engineer. No layer is someone else’s problem, and no detail is beneath attention. <em>I have published open reference architectures at </em><a href="https://naren-chakraview.github.io/"><em>naren-chakraview.github.io</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=07b9e52289d5" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>