<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Nilesh Kumar</title>
    <description>The latest articles on DEV Community by Nilesh Kumar (@nilesh_kumar).</description>
    <link>https://dev.to/nilesh_kumar</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3983017%2F0e0d496b-6827-47b2-960b-7ed1136fc20e.png</url>
      <title>DEV Community: Nilesh Kumar</title>
      <link>https://dev.to/nilesh_kumar</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/nilesh_kumar"/>
    <language>en</language>
    <item>
      <title>Semantic Layer vs. Knowledge Graph: Choosing Your AI Data Foundation</title>
      <dc:creator>Nilesh Kumar</dc:creator>
      <pubDate>Fri, 07 Aug 2026 17:18:30 +0000</pubDate>
      <link>https://dev.to/nilesh_kumar/semantic-layer-vs-knowledge-graph-choosing-your-ai-data-foundation-5717</link>
      <guid>https://dev.to/nilesh_kumar/semantic-layer-vs-knowledge-graph-choosing-your-ai-data-foundation-5717</guid>
      <description>&lt;p&gt;Knowledge graph people and semantic layer people keep arguing past each other.&lt;/p&gt;

&lt;p&gt;One models how things relate. The other proves what a number means. You probably need both.&lt;/p&gt;

&lt;h2&gt;
  
  
  The honest division of labour
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;Knowledge graph&lt;/th&gt;
&lt;th&gt;Semantic layer&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Models&lt;/td&gt;
&lt;td&gt;Entities and relationships&lt;/td&gt;
&lt;td&gt;Metrics, grain, filters, policy&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Strong at&lt;/td&gt;
&lt;td&gt;Traversal, inference, causality&lt;/td&gt;
&lt;td&gt;Aggregation, definition, governance&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Weak at&lt;/td&gt;
&lt;td&gt;Math and consistent aggregates&lt;/td&gt;
&lt;td&gt;Anything not modelled as a metric&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Typical failure&lt;/td&gt;
&lt;td&gt;Ontology drifts, nobody notices&lt;/td&gt;
&lt;td&gt;Question falls outside the metric set&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Answers&lt;/td&gt;
&lt;td&gt;"How is X connected to Y?"&lt;/td&gt;
&lt;td&gt;"What is X, exactly, for this person?"&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Ask an agent &lt;em&gt;"why did EMEA churn spike after the pricing change"&lt;/em&gt; and you need both: the causal path through the graph, and a metric definition precise enough that the number is defensible.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where the argument actually goes wrong
&lt;/h2&gt;

&lt;p&gt;Treating them as competing purchases. They operate on different layers of the same problem — one is topology, the other is semantics plus policy.&lt;/p&gt;

&lt;p&gt;The real question is neither. It's &lt;strong&gt;which layer executes&lt;/strong&gt;. A graph and a definition are both inert until something compiles them into governed SQL and runs it against your warehouse.&lt;/p&gt;

&lt;h2&gt;
  
  
  The execution gap
&lt;/h2&gt;

&lt;p&gt;That's the piece most architectures are missing. You can have an immaculate ontology and a complete metric catalogue and still have no answer to:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Does a valid join path exist for this specific question?&lt;/li&gt;
&lt;li&gt;Is this caller entitled to these rows?&lt;/li&gt;
&lt;li&gt;Can I reproduce this answer in six months?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Intent → context resolution → constrained planning → governed execution.&lt;/strong&gt; The graph feeds step two. The semantic layer feeds steps two and four. Neither performs step three.&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;The full breakdown&lt;/strong&gt; — the division of labour in detail, a worked customer-risk example, and how the two compose — is here:&lt;/p&gt;

&lt;p&gt;👉 &lt;strong&gt;&lt;a href="https://colrows.com/blogs/semantic-layer-vs-knowledge-graph/" rel="noopener noreferrer"&gt;Semantic Layer vs. Knowledge Graph: Choosing Your AI Data Foundation&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://colrows.com/blogs/semantic-layer-vs-knowledge-graph/" rel="noopener noreferrer"&gt;colrows.com/blogs/semantic-layer-vs-knowledge-graph&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

</description>
      <category>dataengineering</category>
      <category>database</category>
      <category>ai</category>
      <category>datascience</category>
    </item>
    <item>
      <title>Governing AI Agents: Why Compile-Time Security is Mandatory</title>
      <dc:creator>Nilesh Kumar</dc:creator>
      <pubDate>Wed, 05 Aug 2026 14:28:24 +0000</pubDate>
      <link>https://dev.to/nilesh_kumar/governing-ai-agents-why-compile-time-security-is-mandatory-13a7</link>
      <guid>https://dev.to/nilesh_kumar/governing-ai-agents-why-compile-time-security-is-mandatory-13a7</guid>
      <description>&lt;p&gt;The moment you hand an agent warehouse credentials, your governance model is already obsolete.&lt;/p&gt;

&lt;p&gt;Prompts aren't policy. Output filters aren't controls. Logs aren't proof.&lt;/p&gt;

&lt;h2&gt;
  
  
  Every runtime guardrail shares one flaw
&lt;/h2&gt;

&lt;p&gt;It fires after the query ran. The rows moved. You are not preventing exposure — you're annotating it.&lt;/p&gt;

&lt;p&gt;That ordering problem is not solvable by making the classifier better. It's solvable by moving the decision earlier.&lt;/p&gt;

&lt;h2&gt;
  
  
  What actually governs an agent
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Step&lt;/th&gt;
&lt;th&gt;What happens&lt;/th&gt;
&lt;th&gt;What it prevents&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Intent parsing&lt;/td&gt;
&lt;td&gt;Language → typed intent&lt;/td&gt;
&lt;td&gt;Prompt injection reaching SQL&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Context resolution&lt;/td&gt;
&lt;td&gt;Entities and metrics resolved against a versioned graph&lt;/td&gt;
&lt;td&gt;Guessed column semantics&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Join proof&lt;/td&gt;
&lt;td&gt;Path proven, or compilation fails&lt;/td&gt;
&lt;td&gt;Invented relationships&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Policy injection&lt;/td&gt;
&lt;td&gt;RBAC + ABAC + row/column predicates&lt;/td&gt;
&lt;td&gt;Unauthorised rows ever being read&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Audit emission&lt;/td&gt;
&lt;td&gt;Question → SQL → predicates → result&lt;/td&gt;
&lt;td&gt;An unanswerable post-incident review&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The agent never sees a table it wasn't entitled to. Not because it behaved well — because the query was never compiled.&lt;/p&gt;

&lt;h2&gt;
  
  
  The test to run on any vendor
&lt;/h2&gt;

&lt;p&gt;Ask what happens when a user requests something they're not entitled to.&lt;/p&gt;

&lt;p&gt;If the answer involves filtering the result set, the data already left the warehouse and you're being sold a logging feature as a security control.&lt;/p&gt;

&lt;p&gt;If the answer is "compilation fails," you're looking at governance.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why compile-time is the only defensible position
&lt;/h2&gt;

&lt;p&gt;Regulators don't accept "the model said so" as a control, and they never have. A number that informed a decision has to be reconstructable months later with the definitions that were in force at the time.&lt;/p&gt;

&lt;p&gt;That means policy has to be part of query construction, not a wrapper around it — and the audit artefact has to be the SQL itself, not a description of intent.&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;The full breakdown&lt;/strong&gt; — the governance architecture step by step, policy composition across scopes, and the audit format — is here:&lt;/p&gt;

&lt;p&gt;👉 &lt;strong&gt;&lt;a href="https://colrows.com/blogs/how-to-govern-ai-agents-that-query-enterprise-data/" rel="noopener noreferrer"&gt;Governing AI Agents: Why Compile-Time Security is Mandatory&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://colrows.com/blogs/how-to-govern-ai-agents-that-query-enterprise-data/" rel="noopener noreferrer"&gt;colrows.com/blogs/how-to-govern-ai-agents-that-query-enterprise-data&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>dataengineering</category>
      <category>architecture</category>
      <category>datascience</category>
    </item>
  </channel>
</rss>
