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.
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 OS | Context layer | Semantic layer | |
|---|---|---|---|
| Built for | AI agents taking actions | AI agents needing context | Analysts and BI tools |
| Answers | May this agent act, now, for this case? | What does this data mean for this decision? | What is this metric and how is it calculated? |
| Governance | Enforced at decision time | Applied to what agents see | Relies on human judgment |
| Decision trace | Every decision | Context used per decision | None |
| Learning | Closed-loop from outcomes | Improves compilation | Static 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.
Related concepts
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.