By NHI Mgmt Group Editorial TeamDomain: AI SecuritySource: IslandPublished August 25, 2026

TL;DR: AI agents can produce syntactically correct but materially wrong answers when they query raw warehouse tables without a semantic layer, because business meaning, edge cases, and metric definitions are missing from the schema, according to Island. The operational lesson is that AI-ready analytics depends on versioned, testable business logic, not just model capability.


At a glance

What this is: Island argues that AI agents connected to warehouses can return wrong metrics even when their SQL is syntactically perfect, because business meaning is missing from raw schema access.

Why it matters: This matters to IAM, data security, and governance teams because AI agents increasingly act as consumers of enterprise data, and their access decisions and outputs are only as reliable as the governed definitions behind them.

👉 Read Island's analysis of why AI agents need a semantic layer for warehouse data


Context

A semantic layer is a governed business-definition layer that sits between raw data and downstream consumers, including dashboards and AI agents. Island’s core point is that an AI agent can write perfect SQL and still produce the wrong answer if the underlying tables do not encode business meaning, data lineage, test-account exclusions, or calendar logic.

For identity and governance teams, the relevance is not limited to analytics. As AI agents become more common enterprise actors, they need controlled access to trusted definitions, not direct exposure to raw data assumptions. That makes the semantic layer a governance boundary as much as a data architecture pattern, especially in programmes where access, auditability, and accountable decision-making matter.


Key questions

Q: How should security teams govern AI agents that can access enterprise systems?

A: Security teams should govern AI agents as non-human identities with explicit ownership, scoped privileges, and continuous monitoring. The control set should include inventory, task-bound credentials, audit trails, and revocation paths. If an agent can call tools or touch production systems, it belongs in the same governance model as service accounts and other machine identities.

Q: Why do AI systems make weak data governance more dangerous?

A: Because they remove the natural limits that used to slow discovery. A person might only see a narrow slice of an estate, but an AI connector can query many sources at once. That means stale permissions, missing lineage, and oversharing no longer stay hidden, and the consequence is broader disclosure.

Q: What breaks when business metrics are defined only in SQL files?

A: What breaks is consistency. Separate SQL files usually encode slightly different filters, calendars, or exclusions, so teams end up with competing answers to the same question. That drift is manageable when humans can spot it, but it becomes risky when AI agents inherit those files as if they were authoritative.

Q: How do organisations know a semantic layer is actually working?

A: A semantic layer is working when downstream tools, analysts, and AI agents all resolve the same metric to the same tested definition, and reconciliation checks confirm the results match business validation. If teams still debate the number after the layer exists, the governance model is incomplete rather than solved.


Technical breakdown

Why raw schema access produces silent analytical errors

Large language models are strong at syntax generation, but they have no inherent understanding of organisational semantics. If a model sees a warehouse schema without definitions, it may choose the wrong table, include test records, misread time periods, or count obsolete entities. The result is not a failed query. It is a plausible answer built on the wrong business logic, which is harder to detect because the system appears to work.

Practical implication: do not let AI agents query warehouse tables without a governed semantic contract.

How a semantic layer turns metrics into versioned code

A semantic layer externalises business meaning into declarative, testable definitions. Metrics such as active users, revenue, or retention become code objects with owners, filters, validation rules, and source references. That makes the definition reviewable, version-controlled, and reusable across BI tools and AI agents. The architectural shift is from implicit tribal knowledge to explicit machine-readable policy, which reduces drift and creates one source of truth for all consumers.

Practical implication: treat high-value metrics as governed assets with tests and ownership, not as ad hoc queries.

Why AI agents depend on governed definitions more than dashboards do

Dashboards usually answer known questions, but AI agents are designed to ask new ones. That means they are more likely to wander into ambiguous business logic, stale tables, and hidden exceptions if the data layer is not curated. A semantic layer limits that drift by forcing every consumer to resolve against the same definitions. In effect, it gives the agent a controlled vocabulary for reasoning over enterprise data.

Practical implication: make semantic coverage a prerequisite for any AI agent that can self-direct analytics queries.


NHI Mgmt Group analysis

Semantic drift is now an AI governance problem, not just a reporting problem. Island’s argument shows that bad definitions can survive every technical test and still produce business damage when AI agents consume them at scale. The issue is not model quality alone. It is the absence of a governed meaning layer that can be reviewed, validated, and reused across systems. For identity and governance practitioners, this is the same class of problem that appears when access policy is technically valid but operationally misaligned. Practitioner conclusion: treat semantics as part of control design.

Agent-ready data requires a policy layer for meaning, not only a permissions layer for access. Traditional access control answers who can reach data. It does not answer what the data means, which records should be excluded, or which calculation should be authoritative. That gap becomes more visible as AI agents begin to consume enterprise data directly. In governance terms, the semantic layer is where business rules become enforceable and auditable. Practitioner conclusion: connect data meaning controls to the same governance discipline used for access and audit.

Metric debt is the named failure mode this article exposes. When three teams maintain three versions of the same business number, the enterprise accumulates unpriced governance debt that eventually surfaces as contradictory reporting and unreliable automation. Island’s example shows why the issue persists: the organisation can be technically correct and operationally inconsistent at the same time. That inconsistency becomes more dangerous once AI agents inherit the ambiguity. Practitioner conclusion: reduce metric debt before delegating data analysis to machines.

AI agents widen the blast radius of unresolved data ambiguity. A human analyst may notice a suspicious result and investigate it. An agent can propagate the same wrong assumption into repeated queries, downstream summaries, and automated decisions. That makes governed definitions a control point, not a convenience. The broader market signal is that data governance and AI governance are converging around the same question: which definitions are trusted enough to automate against? Practitioner conclusion: establish approval and testing gates before agents query production data.

The semantic layer should be read as a trust boundary for autonomous analytics. Once an agent can query production systems, the organisation needs a way to constrain what it is allowed to interpret, not only what it is allowed to access. That requires validation, ownership, and change control over definitions, especially for metrics used in executive reporting or operational automation. Practitioner conclusion: align data governance, AI governance, and audit requirements around the same definition catalog.

What this signals

Metric debt is becoming an AI control issue. As agents start to consume analytics directly, the enterprise needs a trusted definition catalog as much as a permission model. That makes semantic governance part of the control stack, not a downstream documentation exercise. Teams that treat metric definitions as policy objects will be better positioned to support trustworthy automation.

The practical signal for programmes is clear: if a metric is important enough to appear in an executive dashboard, it is important enough to have ownership, lineage, and change control before an agent can query it. That discipline aligns well with NIST AI Risk Management Framework governance expectations and with broader data accountability requirements.


For practitioners

  • Inventory your highest-risk metrics first Start with the small set of business definitions that drive board reporting, automation, or customer-facing decisions. Focus on metrics where inconsistency creates the most governance risk, then document source tables, exclusions, calendar logic, and owners before expanding coverage.
  • Require testable definitions before agent access Do not let AI agents query raw warehouse tables for critical use cases until the metric definitions are versioned, reviewed, and covered by reconciliation tests. The control objective is to make the agent resolve against the same logic every time, not to rely on prompt instructions.
  • Separate definition ownership from validation ownership Assign data teams to maintain the semantic definitions and business stakeholders to validate whether those definitions match operational reality. This split reduces the risk that technical correctness is mistaken for business correctness.
  • Treat semantic coverage as an AI control gate Before enabling autonomous query workflows, confirm that the relevant domain is covered by a semantic layer with lineage, change control, and exception handling. If the definition is not trustworthy, the agent should not be trusted to reason over it.

Key takeaways

  • AI agents can return materially wrong answers even when the SQL they generate is syntactically correct.
  • The scale of the issue is governance, not syntax, because the underlying business definitions are inconsistent or absent.
  • Organisations should treat semantic layers as control infrastructure before they delegate production analytics to AI agents.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

NIST AI RMF, NIST CSF 2.0 and NIST SP 800-53 Rev 5 set the technical controls, while ISO/IEC 27001:2022 define the regulatory obligations.

FrameworkControl / ReferenceRelevance
NIST AI RMFGOVERNThe article is about governance for AI agents consuming enterprise data.
NIST CSF 2.0GV.OV-01Governance oversight is central to making data definitions trustworthy for AI use.
NIST SP 800-53 Rev 5SA-11The article emphasises testing and validation of definitions before use.
ISO/IEC 27001:2022A.5.15Access control must be paired with defined business meaning for governed data use.

Establish accountability, ownership, and validation gates for agent-driven analytics under GOVERN.


Key terms

  • Action Layer: The action layer is the point where an identity moves from asking for access to doing something with that access. For AI agents, this layer matters because tool use can happen faster than human review, and the meaningful risk appears when actions are chained across systems.
  • Runtime Drift: Runtime drift is the gap between an AI agent’s approved authority and its actual behaviour as conditions change. It appears when the agent adapts to new context, new integrations, or new instructions and begins acting outside the scope that governance originally defined.
  • Business Context: Business context is the interpretive layer that explains what a dataset means, who owns it, how trustworthy it is and where it came from. In governance programmes, it turns raw metadata into something practitioners can use for accountability, access decisions and audit evidence.
  • Testable Definition: A testable definition is a metric or business rule encoded so it can be reviewed, versioned, and checked against expected results. This makes the definition repeatable across dashboards, analysts, and AI agents, and reduces the chance that tribal knowledge becomes an unreviewed control gap.

What's in the full article

Island's full blog post covers the operational detail this post intentionally leaves for the source:

  • The worked examples showing how raw warehouse queries can silently return wrong answers despite valid SQL.
  • The specific semantic definitions used for active users, event categories, and audit-log meaning.
  • The Island experiment notes showing how defined behaviour changed what AI agents could infer from browser events.
  • The examples of how the team validated agent outputs against expected answers and real usage patterns.

👉 Island's full post includes the metric examples, agent experiments, and implementation trade-offs behind the semantic layer approach.

Deepen your knowledge

The NHI Foundation Level course, the industry's only accredited NHI security programme, covers NHI governance, machine identity security, and secrets management in a way that helps practitioners build stronger control boundaries. It is useful for teams aligning identity governance with broader automation and AI risk programmes.
NHIMG Editorial Note
Published by the NHIMG editorial team on August 25, 2026.
NHI Mgmt Group — the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org