Beyond Semantic Models: A Composable Metrics Layer for AI Agents

Semantic models aren't obsolete, but they must evolve into composable, verifiable, traceable metrics layers for AI agents.
The article notes that traditional semantic models assume consumers already know their requirements, while AI agents rely on exploratory, multi-step reasoning—a structural misalignment. The author argues semantic models should remain the source of truth while adding a composable metrics layer as an agent adaptation layer: metrics decompose into base measures and dimensions, composed on demand by agents within controlled boundaries, with base definitions still human-maintained. Key changes include upgrading metric dependencies from human-readable lineage docs to machine-consumable structures, and exposing fine-grained interfaces for definition queries, composition requests, validation, and source tracing. The article also flags combinatorial explosion and performance costs from accumulated fine-grained requests, noting boundary constraints remain open.
Title
Beyond Semantic Models: A Composable Metrics Layer for AI Agents
Meta Description
Traditional semantic models are designed for human analysts and struggle to match AI agents' exploratory querying. This article unpacks the core ideas behind composable metrics: decomposing metrics into base measures, making dependencies explicit, designing interface contracts for agents, and the composition boundaries and performance costs encountered in implementation.
Article Content
Traditional semantic models centralize tables, relationships, and metrics in one place, providing BI tools with a stable query foundation. But when the querier shifts from fixed reports to AI agents that reason autonomously, plan in multiple steps, and iterate through trial and error, this structure starts to feel cumbersome. The core judgment from the original material is: semantic models haven't become obsolete—the issue lies in how they're organized. Metrics need to transform from a passive set of definitions into composable units that agents can assemble, validate, and reuse on demand.

Where Semantic Models Hit Their Limits
The value of semantic models lies in eliminating ambiguity: field meanings are unified, definitions are fixed, and relationships are explicitly declared. For human analysts, this is a productivity tool, but for agents, it's more like a read-only contract. What agents truly need isn't a complete list of metrics, but the ability to judge "is this metric applicable to the current problem," "what upstream definitions does it depend on," and "who will be affected if I change it."
The viewpoint in the material can be summarized as: traditional semantic models assume the consumer already knows what they want, whereas an agent's first move is often exploration. This misalignment is the direct motivation behind composable metrics.
A semantic model typically refers to a logical abstraction layer built on top of a data warehouse that maps physical table structures into business-friendly entities, dimensions, and measures, while centrally managing metric definitions, calculation logic, and inter-table relationships. Common implementations include dbt Semantic Layer, Looker's LookML, AtScale, and logical models in various OLAP engines. Its core value is "define once, reuse everywhere," so BI tools don't have to repeatedly interpret the same field. But this centralized contract carries an implicit premise: the consumer already knows exactly which metric and which granularity they want before initiating a query. This is precisely the root of its limitations when facing exploratory consumers.
Key Characteristics of Composable Metrics
Metrics as Building Blocks, Not Endpoints
Composability means every metric can be decomposed into more fundamental measures and dimensions, allowing agents to compose ad-hoc definitions at runtime. What the original material emphasizes isn't letting agents invent metrics arbitrarily, but ensuring composition happens within controlled, traceable boundaries: base definitions are still maintained by humans, the composition process is carried out by agents, and composition results can be replayed and audited.
Dependencies Must Be Explicit
When metrics can reference each other, the propagation path of changes becomes a core risk. The material points out that the lineage information in semantic models needs to be upgraded from "documentation for humans to read" to "a structure for agents to consume," so agents can assess downstream impact before selecting a metric, avoiding silent definition drift in long-chain reasoning.
Data lineage describes where a data artifact comes from and what processing steps it went through, typically divided into table-level lineage and column-level lineage. Traditional lineage tools (such as Apache Atlas, OpenLineage, and dbt's documentation graphs) are mainly designed for human troubleshooting and compliance auditing, with outputs in the form of visual graphs or static documents. For agents to consume, lineage needs to be exposed through structured, programmatically queryable interfaces—for example, returning all upstream dependencies and downstream impact scope of a metric in DAG form. This way, agents can perform an impact assessment before selecting a metric in a reasoning chain, rather than tracing back only after results turn out abnormal.
Interface Contracts for Agents
Agents don't pull wide tables in one go like BI frontends do; they request data in a conversational, incremental manner. A composable metrics layer therefore needs to expose finer-grained operations: query definitions, request composition, validate results, trace sources. This is fundamentally different from the interface form of traditional semantic layers, which only expose "query results."
The interaction between traditional BI frontends and semantic layers follows a one-shot "request—wide table result" pattern: given a combination of dimensions and measures, return an aggregated result set. Agents work iteratively—first exploring what metrics are available, then trying small samples, validating, and then expanding scope. This requires interfaces to support metadata discovery (listing metrics and their definitions), definition queries (retrieving calculation logic without executing), composition requests (deriving new definitions based on existing metrics), and source tracing. Protocols like MCP (Model Context Protocol) are attempts to provide standardized interfaces for this kind of "toolified" consumption. If semantic layers can't expose their capabilities as fine-grained tools, agents are left to guess.
Impact on Implementation Paths
Making metrics composable isn't just a modeling adjustment—it also changes team division of labor. Metric ownership still needs to be delineated between data teams and business stakeholders, but agents have become a new consumer, which means documentation, testing, and permission models all need to account for a user who won't read the instructions.
The material doesn't provide a complete implementation plan; it's more of a structural proposition: semantic models continue to play the role of "source of truth," while composable metrics serve as an "adaptation layer for agents." The relationship is additive, not substitutive.
Points Worth Watching Out For
Composability naturally brings combinatorial explosion. Without constraints on the allowed composition scope, agents may generate large numbers of low-value or even misleading ad-hoc metrics. The material mentions traceability as a countermeasure, but how to set composition boundaries without sacrificing flexibility remains an open question. Another unexpanded point is the performance cost of composed metrics: multiple fine-grained requests quickly accumulate within an agent's loop.
Combinatorial explosion refers to the exponential growth in the number of potential derived metrics when n base metrics allow arbitrary pairwise or multi-level composition, the vast majority of which are meaningless to the business. In agent scenarios, this problem is amplified because agents actively try multiple composition paths. Common constraints include: limiting the set of composable operators, setting expiration and scope for composition results, requiring explicit naming and registration for derived metrics, and performing cost estimation before execution. Cost estimation can also mitigate another problem—the latency and computation overhead accumulated from fine-grained requests across multiple agent loops, which is often several times higher than a single wide-table query.
Summary
The conclusion of this article isn't radical: it doesn't claim semantic models are outdated, but points out that agents' interaction patterns require the metrics layer to shift from static definitions to a composable, verifiable, and traceable structure. For those building data foundations for agents, this perspective offers a concrete direction for transformation—first make metric dependencies machine-readable, then discuss the freedom of composition.
One-line Summary
Semantic models aren't obsolete, but they need to evolve into a composable, verifiable, and traceable metrics layer for AI agents.
Paragraph Summary
The article points out that traditional semantic models assume consumers already know their requirements, while AI agents rely primarily on exploratory, multi-step reasoning—creating a structural misalignment. The author argues that semantic models should continue as the source of truth while adding a composable metrics layer as an adaptation layer for agents: metrics can be decomposed into base measures and dimensions, composed on demand by agents within controlled boundaries, with base definitions still maintained by humans. Key transformations include upgrading metric dependencies from human-readable lineage documentation to machine-consumable structures, and exposing fine-grained interfaces for definition queries, composition requests, result validation, and source tracing. The article also flags combinatorial explosion and the performance costs of accumulated fine-grained requests, noting that boundary constraints remain an open question.
Related articles

Building Apps Fast with AI Coding Agents in 2026: Terminal and Editor Paths
Explore how to build apps fast with AI coding agents in 2026: the Clawed Code terminal tool and Cursor editor paths, from natural language to deployment, with a hands-on React task tracker demo.

Stanford CS336 Explained: The Five Pillars and Efficiency Laws of Building an LLM from Scratch
A deep dive into Stanford CS336 'Building an LLM from Scratch': the five-pillar curriculum, the efficiency equation, the memory wall and five types of parallelism, Chinchilla scaling laws, data refinement, and BPE tokenizer failure cases—revealing how small-scale training transfers to frontier scale.

World of Warcraft Infinite Open Beta Review: How Does Slow-Paced Design Satisfy Millions of Players?
World of Warcraft Infinite's open beta drew a million players. We analyze its slow-paced design philosophy, the new Skywing race's leveling advantages, and class changes.