campaign-icon

The Context OS for Agentic Intelligence

Book a Context Workshop

Concepts / Semantic Layer

Concept guide · Updated November 2026

What is a semantic layer? And why AI agents need more than metric definitions

A semantic layer is a shared set of business definitions, including metric names, calculations, dimensions and relationships, that sits between raw data and the tools that use it, so “revenue” means the same thing in every dashboard. For AI agents, a semantic layer explains what things are called. It does not say when a metric applies, where it came from or who may act on it.

By Navay Gill, Founder & CEO, XenonStack · Reviewed by the ElixirData product team · Last updated · 7 min read

Key takeaways

  • A semantic layer defines metrics once so every tool calculates them the same way.
  • It was built for dashboards and human analysts, who supply judgment themselves.
  • Agents also need applicability, provenance, policy, confidence and decision history.
  • A governed semantic layer for agents enriches definitions at the moment of use.
  • ElixirData sits above your existing semantic layer and consumes its definitions.

How does a semantic layer work?

A semantic layer works by defining each metric, dimension and relationship once, in one place, and letting every BI tool reuse that definition. It ends the problem of two dashboards showing two different revenue numbers.

Before semantic layers, every dashboard calculated metrics its own way, and two reports could show two different revenue numbers. A semantic layer fixes this by defining each metric, dimension and relationship once, in one place, and letting every BI tool reuse it.

Tools such as LookML, the dbt Semantic Layer, Cube and AtScale do this well. They were designed for analysts building dashboards, who bring their own judgment about when a number is appropriate to use.

What is a semantic layer for AI agents?

A semantic layer for AI agents is a governed context layer that takes metric definitions and enriches them, at the moment of use, with applicability, provenance, policy, confidence and decision history. ElixirData calls this a semantic substrate: governance is applied when an agent consumes a metric, and every use is recorded as a decision trace.

Why is a semantic layer not enough for AI agents?

A traditional semantic layer leaves AI agents with five gaps: applicability, provenance, policy, confidence and decision history. Analysts fill these gaps with their own judgment; agents cannot, so they need the gaps filled for them at the moment they use a metric.

Applicability
“Monthly active users” is a poor measure for enterprise products sold on annual contracts. Today’s semantic layers don’t encode that.
Provenance
Agents can’t see where a value came from or how it was derived.
Policy
Nothing tells an agent which rules govern using this metric for this decision.
Confidence
There is no signal for data quality, so agents can’t tell when to escalate.
Decision history
Past decisions made with the metric, and their outcomes, are invisible.

What does an agent get from a governed semantic layer?

An agent asks for “customer acquisition cost for the enterprise segment, Q3”.

Traditional semantic layer returns

  • The value
  • The metric definition

Context OS returns

  • The value and its definition
  • Provenance: sources and how it was derived
  • A quality confidence score
  • The policies that apply to this use
  • Decision history: past decisions made with it

What is the difference between a semantic layer, a context layer and Context OS?

A semantic layer says what a metric is. A context layer says what data means for a specific decision. Context OS adds enforcement: it decides whether an agent may act, now, for this case, and records why.

Context OSContext layerSemantic layer
Built forAI agents taking actionsAI agents needing contextAnalysts and BI tools
AnswersMay this agent act, now, for this case?What does this data mean for this decision?What is this metric and how is it calculated?
GovernanceEnforced at decision timeApplied to what agents seeRelies on human judgment
Decision traceEvery decisionContext used per decisionNone
LearningClosed-loop from outcomesImproves compilationStatic definitions

Do you need to replace your semantic layer?

No. Keep LookML, dbt, Cube, AtScale or Snowflake semantic views as the source of metric truth. ElixirData Context OS consumes those definitions and adds what agents need on top, so dashboards and agents use the same numbers and agents use them within policy.

Frequently asked questions

What is a semantic layer in simple terms?

It is a shared dictionary for business data. It defines metrics such as revenue or churn once, so every dashboard and tool calculates them the same way.

What are examples of semantic layers?

Common ones include LookML in Looker, the dbt Semantic Layer, Cube, AtScale and semantic views in Snowflake.

Is a semantic layer enough for AI agents?

Not on its own. It tells agents what a metric is called and how it is calculated, but not when it applies, how trustworthy it is right now, which policies govern its use or what was decided with it before.

What is the difference between a semantic layer and a data catalog?

A semantic layer defines how metrics are calculated. A data catalog helps people find data and understand its ownership and lineage. Both are useful inputs to a context layer.

Do I need to replace my semantic layer to use ElixirData?

No. ElixirData Context OS sits above your existing semantic layer, consumes its definitions and adds the governance agents need at decision time.

See where governed agents fit in your stack

A half-day Context Workshop, at no cost. We map one decision your agents should own, the context it needs and the policies that must hold.