AWS Builder Center

Semantic Layer for Agentic AI-Ready Enterprises

A practical architecture for making enterprise data AI-ready: why multi-agent systems break without governed business meaning, and how a semantic layer on AWS delivers canonical definitions, permission-aware context, and auditability that agents can act on.

Semantic Layer for Agentic AI-Ready Enterprises

AWS Prescriptive Guidance
Co-authored with Kiran Lakkireddy. Reviewed by Subrata Mukherjee.

About This Guidance

This document provides architectural guidance for making enterprise data AI-ready through a semantic layer. It is written for CDOs, CAIOs, CIOs, CISOs, and the engineering leaders who partner with them — the leaders accountable for turning AI investment into governed, production-grade outcomes.
It presents the business case and the reference architecture in the main body. Deeper implementation patterns — grounding protocols, anti-patterns, decision frameworks, and detailed service composition — are preserved in the Appendix for architects who take the design forward.
When this guidance applies: Any organization building AI agents that need to interpret, reason over, or act on business data benefits from a semantic layer. The value is not tied to agent count — it is tied to data complexity. If your enterprise has multiple data domains, context-dependent business definitions, or regulatory requirements for auditability, this architecture applies from day one.
Start with the readiness question. Before designing a semantic layer, the first question to answer is: is your data context-ready? A semantic layer reasons over curated business context — glossary terms, definitions, and metadata. If that foundation is missing, the priority is to establish it first. The semantic layer amplifies good context; it equally amplifies the absence of it.
Alignment with AWS Context. This guidance is consistent with the direction of AWS Context — AWS's approach for making enterprise data consumable by AI agents. AWS Context (announced at AWS Summit New York City, June 2026) is not yet generally available; check the AWS What's New page for current availability. The semantic layer described here is how that context is operationalized: the governed component that turns raw data into shared business meaning agents can act on. As AWS Context becomes available, it fits into this architecture rather than replacing it.
How to read this document: Sections 1–3 establish why the problem exists and what a semantic layer is. Section 4 presents the reference architecture. Sections 5–6 cover governance and how agents interact with the layer. Sections 7–9 cover scaling, adoption, and success metrics. The Appendix holds the reference patterns for architects.

1. Executive Summary

The Problem

Enterprises are investing heavily in AI — and failing to scale it. The pattern is consistent: individual AI agents work in isolation, but the moment organizations deploy multiple agents across business functions, the system breaks.
Four symptoms appear repeatedly:
1/ Ambiguous business vocabulary. "Revenue" is legitimately calculated differently by Finance, Sales, and Operations — each valid in its own business context. Humans navigate this ambiguity through institutional knowledge and conversation. AI agents cannot. They receive a query, pick an interpretation, and execute — often choosing the wrong context without knowing they've done so.
2/ Ungoverned data access. Agents query, combine, and act on data without lineage tracking, permission boundaries, or audit trails. Each new agent deployed increases regulatory and operational exposure.
3/ Unsustainable integration cost. Each agent requires its own data plumbing. With N agents connecting to M data sources, maintenance grows as N×M — not N+M. For example: 20 agents connecting to 10 data sources means 200 custom integrations that each must be built and maintained separately.
4/ Systematic errors at machine speed. When an agent lacks a governed definition and must infer meaning from context, the resulting answer is not a random hallucination — it is a consistently wrong interpretation applied at scale. This is an architecture gap, not a model quality problem.

The Opportunity

Gartner predicts 40% of enterprise applications will embed task-specific AI agents by end of 2026 , up from less than 5% in 2025. Yet more than 40% of those projects will be canceled by end of 2027  — not because models failed, but because the data architecture underneath them could not support autonomous decision-making at scale.
Industry benchmarks bear this out. On Spider 2.0 (2025), top foundation models score ~86% on academic SQL tasks but drop to 40–59% on real enterprise schemas without semantic grounding. Gartner (May 2026) projects that organizations prioritizing context and semantics will improve agentic AI accuracy by up to 80% and reduce costs by up to 60% — a gap a better foundation model alone cannot close. The differentiator is governed context, not model choice.

Why Traditional Approaches Fail

Organizations have tried two workarounds, and both create more problems than they solve:
·       Prompt-level governance. Encoding access rules or metric definitions inside system prompts is fragile. It fails under model updates, jailbreaks, and multi-step agent retries. Prompts are advisory — they are not enforceable architectural boundaries.
·       Bespoke integration per agent. Hardcoding data access logic inside each agent's tooling creates immediate technical debt. When a metric definition changes, every agent that references it must be found and updated independently.

The Solution

A unified semantic layer — the architectural component that translates raw enterprise data into shared, governed business meaning. It sits between your data platform and your AI agents, providing:
·       Canonical definitions — one governed formula per metric per business context
·       Permission boundaries — agents know what they can access before they query
·       Ontology and relationships — business entities connected with explicit rules
·       Auditability — every agent decision traces back to a certified definition
·       Agent-consumable interface — definitions exposed via MCP for any agent runtime
The rest of this document explains what a semantic layer is, how to architect it on AWS, how agents interact with it, and how to get there from where you are today.

2. What Is a Semantic Layer?

The previous section identified the problem: AI agents at enterprise scale need governed business meaning, not just raw data access. This section defines the component that provides it.
A data lake stores data. A lakehouse adds structure. A semantic layer adds meaning — and meaning is what agents need to act.
A semantic layer is the architectural component that translates source data into shared business meaning. It is not a database, not a BI tool, and not a prompt template. It is a governed abstraction that answers the question every agent must resolve before acting: "What does this data mean in this context?"

What It Provides

CapabilityWhat It Means for Agents
Canonical metric
definitions
Every KPI has ONE governed formula per business context — no inference required
Business glossary and
synonyms
Agents resolve ambiguous terms to precise definitions before querying
Ontology and entity
relationships
Agents understand how Customer, Order, Product, and Region relate
Permission-aware contextAgents know their access boundaries before attempting a query
NL-to-query groundingNatural language maps to governed SQL — not LLM-generated guesses
Lineage and auditabilityEvery answer traces to source data through certified transformations

Why Existing Platforms Are Not Enough

Most enterprises already have a data lake or lakehouse. The question is: why isn't that enough?
CapabilityData LakeLakehouseSemantic Layer
Stores raw dataYesYesYes (via underlying platform)
Schema enforcementNoYesYes
Business definitionsNoLimited / proprietaryYes — governed and versioned
Canonical metricsNoNoYes
Agent-consumable contextNoNoYes — via MCP
Permission-aware reasoningNoPartialYes — before query execution
Ontology &
relationships
NoNoYes
A lakehouse gives governed storage. A semantic layer gives agents the ability to understand what the data means. Without it, every agent independently solves the interpretation problem — and at scale, that does not work.
With the semantic layer defined, the next question is: where does it sit in the broader enterprise data platform?

3. Where Semantic Layer Fits

The semantic layer does not exist in isolation. It is one component within a unified data platform — a governed access surface that spans all enterprise data stores. This section establishes the vocabulary for the architecture that follows in Section 4.
A unified data platform must support three sub-layers:
Sub-LayerPurposeKey Components
SemanticTranslate raw data into shared business meaning agents can reason overBusiness glossary, canonical metric catalog, ontology, NL-to-query grounding
FederationConsistent queries across multiple engines without physical consolidationCross-engine query,
caching, materialization, conflict resolution
IntegrationReliable data ingestion from systems of record with contractsConnectors, CDC, event
streams, API adapters, data contracts
The design principle: unified does not mean centralized — federate, don't consolidate. Most enterprises cannot (and should not) move all data into one store. The semantic layer makes the data behave as if it were unified, even when it physically is not.
This three-layer model maps directly to the reference architecture in the next section.

How the Semantic Layer Composes

A complete semantic layer is built from six capability components. Together they take an agent from an ambiguous natural-language question to a governed, accurate answer — the sequence below mirrors the AWS Context concept model:
ComponentWhat It DoesWhere It Lives in This Architecture
Business ContextCurated glossary terms, definitions, column descriptions, documentation — the map of how the business
operates
Semantic sub-layer
(DataZone / Glue business catalog)
Ontology & KnowledgeBusiness relationships between entities (a customer holds accounts) — not technical joinsSemantic sub-layer
(Neptune)
DisambiguationResolves which definition applies when a term (e.g. "active") has several valid meaningsSemantic sub-layer
(glossary + ontology rules)
MetricsCertified, standardized
formulas for KPIs so every agent computes the same number
Semantic sub-layer (metric catalog)
Relationships & Join PathsGoverned, efficient paths for combining data across enginesFederation sub-layer
Verified ExamplesApproved queries the layer reuses instead of rebuilding — improving accuracy and reducing cost over timeSemantic sub-layer
(feedback loop)
The first four components establish meaning; the last two make consumption efficient and self-improving. Metrics is the component most directly responsible for accuracy on complex questions — an agent without certified metrics is like asking a poet to do your taxes: the prose is fine, the numbers are not.

4. Reference Architecture

With the problem established (Section 1), the semantic layer defined (Section 2), and the platform vocabulary set (Section 3), this section shows what the complete architecture looks like end-to-end on AWS.

The Enterprise Agentic AI Framework

The framework is a 6-layer stack with 4 cross-cutting pillars (Security, Compliance, Governance, Responsible AI). Each layer has a single responsibility, communicates through well-defined interfaces, and can be implemented independently.
Enterprise Agentic AI Framework
The layers, top to bottom:
1. User Interaction — where humans and systems initiate requests (chat, voice, embedded UI, API)
2. Agent Orchestration — where agents plan, decompose tasks, and coordinate with other agents
3. Tool & Action — where agents execute discrete operations via MCP servers and action groups
4. Knowledge & Context — where agents retrieve grounded context (RAG, knowledge graphs, memory)
5. Unified Data Layer — the semantic + federation + integration stack. The single source of business truth.
6. Systems of Record — customer-specific backends (ERP, CRM, SaaS, databases)
The semantic layer lives at Layer 5. It is consumed by Layers 2–4. Every agent query that touches business data passes through it.
This framework is vendor-neutral — the six layers describe what any agentic system needs, not which products provide it. The next view grounds that framework in concrete AWS services, showing which service delivers each layer's responsibility.

AWS Services at a Glance

Each layer of the framework maps to purpose-built AWS services. The diagram below shows that mapping end-to-end — the same six layers, now expressed as an AWS implementation.
The detailed service mapping and the composition of the semantic sub-layer are provided in Appendix A for architects taking the design forward.
The architecture is now defined. But architecture alone is not enough — ungoverned agents operating within a perfect architecture still create risk. The next section addresses governance.

5. Data Governance for Agentic AI

Governance is a prerequisite, not a feature. An architecture without governance is a liability accelerator — it makes agents faster at doing the wrong thing. This section defines how governance manifests specifically for agent-to-semantic-layer interactions.

Governance Tiers

Not all agent actions carry the same risk. Governance controls should scale with consequence:
TierRiskAgent ActionsControlsHuman Role
ObserveLowRead metrics, browse definitions, query aggregatesAudit logging, rate
limiting
None (post-hoc review)
AnalyzeMediumCross-domain queries, trend
analysis, anomaly detection
Pre-validation, data
masking, session audit
Alert on anomaly
ActHighWrite-back, trigger
workflows, modify records
Full grounding protocol,
human approval gate, rollback plan
Approval required
Act (Regulated)CriticalPatient safety, financial
commits, compliance decisions
Dual-approval, circuit
breakers, continuous evaluation
Mandatory oversight

Governance Principles

·       Agents are principals. Every agent has a scoped IAM role. No shared credentials. No "service account that all agents use."
·       Deterministic before probabilistic. Hard-coded safety boundaries execute before any LLM reasoning. Non-negotiable.
·       Every write is idempotent and reversible. Agent actions must be safely retriable. No "fire and forget" writes.
·       Audit everything. Full decision trail: what was asked, what context was retrieved, what action was taken, by which agent, authorized by whom.
The detailed governance service architecture (Lake Formation, CloudTrail, Bedrock Guardrails, and lineage services) is provided in Appendix A.
With the architecture and governance model established, the next question is: how do agents actually interact with the semantic layer at runtime?

6. How Agents Interact with the Semantic Layer

This section moves from "what to build" to "how agents use it." Just as UX design ensures humans can navigate systems effectively, Agent Experience (AX) ensures AI agents can reliably discover, interpret, and act on enterprise data. The semantic layer IS the AX layer.
At a principle level, good Agent Experience means agents discover definitions through a governed catalog rather than inferring them, resolve every term to one canonical meaning, know their permission boundaries before querying, and degrade gracefully — returning "not found" rather than fabricating a definition when one is missing. Every interaction is logged for full traceability.
Operationally, this is enforced through a grounding protocol: before acting on business data, an agent scopes what it can access, grounds against canonical definitions, validates its plan, and only then executes — with every step audited. The full AX principles, the step-by-step grounding pattern, common anti-patterns, and the architecture decision framework are detailed in Appendix B.
With the interaction model defined, the next question is: what happens when many agents share the semantic layer?

7. Multi-Agent Scaling

The semantic layer's value compounds with every agent added. This section explains why — and what architectural decision enables it.

The Shared-Layer Principle

Critical design decision: The semantic layer MUST be shared across all agents. Domain agents have different permission scopes and metric access, but they ALL ground against the SAME canonical definitions. This prevents the #1 multi-agent failure: two agents giving contradictory answers because they resolved the same term differently.

The Economics

Without a shared semantic layer, every new agent-source pair requires bespoke integration — maintenance scales as N (agents) × M (data sources). With a semantic layer as intermediary, cost drops to N + M. At enterprise scale (20+ agents, 10+ data sources), this is the difference between 200 custom integrations and 30 shared connections. The semantic layer is a cost-control mechanism as much as an architecture pattern.

When to Use Multi-Agent vs. Single Agent

SignalSingle AgentMulti-Agent
Data domains1–23+ distinct
Metric conflictsNoneSame term, different
meaning by department
Cross-domain questionsRareFrequent
Regulatory boundariesSingle regimeMultiple (HIPAA + SOX +
GDPR)
Team ownershipCentralizedFederated domain teams

8. Adoption Path

The architecture is defined. The governance model is clear. The remaining question is: how does an organization get there from where it is today?

Maturity Stages

Rather than a rigid timeline, adoption follows a maturity model. Each stage has clear entry criteria and a decision gate before proceeding:
StageFocusEntry CriteriaDecision Gate
FoundationGoverned metadata + 10-15
canonical metrics
Executive sponsor
identified, data steward assigned, existing data platform
Can agents discover and
retrieve governed definitions?
EnrichmentKnowledge graph, full
glossary, synonym resolution
Foundation complete, agent
prototype working
Do agents consistently
resolve ambiguous terms correctly?
Agentic EnablementProduction agents grounding
via MCP
Enrichment complete,
governance tiers defined
Are agents making
auditable, governed decisions?
Enterprise ScaleMulti-agent orchestration,
continuous optimization
Enablement proven in one
domain
Can you add a new domain in
<2 weeks with existing infrastructure?

Organizational Prerequisites

RoleResponsibility
Data Product ManagerOwns metric definitions, certifies accuracy
Ontologist / Knowledge
Engineer
Designs entity relationships and domain hierarchies
Platform EngineerBuilds and operates the semantic layer infrastructure
Agent DeveloperIntegrates agents with the semantic MCP server
Governance LeadDefines tiers, reviews audit logs, manages access policies

Coexistence with Existing Investments

Most enterprises have existing semantic tooling. The architecture accommodates this:
·       Existing dbt Semantic Layer — keep dbt for metric definitions; expose via MCP; Amazon SageMaker Catalog (built on Amazon DataZone) catalogs the dbt-defined metrics
·       Existing Databricks Unity Catalog — federate via Lake Formation + SageMaker Lakehouse; semantic layer composes across both estates
·       Existing Collibra / Alation — use as the governance UI; Neptune provides the agent-facing ontology; sync governance metadata bidirectionally

Build, Accelerate, or Adopt

Organizations have three routes to a semantic layer, depending on urgency and maturity:
·       Adopt the managed direction (AWS Context). AWS announced AWS Context at AWS Summit New York City (June 2026) as its managed approach for making enterprise data consumable by agents. AWS Context is not yet generally available; check the AWS What's New page (https://aws.amazon.com/about-aws/whats-new/) for current availability. For organizations that can align to the roadmap, designing to this architecture today positions them to adopt AWS Context capabilities as they become available.
·       Accelerate with the Context Ontology Accelerator. For teams that need a semantic layer now, Context Ontology Accelerator — an AWS ProServe-built, open-source accelerator (Apache 2.0, on GitHub), generally available since July 2026 — provides a working semantic layer — including formal ontology support (OWL, with HermiT/ELK reasoners) and SPARQL-based virtual knowledge graph access — that runs in the customer's own account and exposes ontologies to agents via an included MCP server. Ontologies created with it can later be managed by AWS Context, so it is not a throwaway investment. It is a strong fit for customers who want to prove value quickly or who have deep ontology requirements.
·       Build on AWS services. Customers can assemble the layer directly from the services in Appendix A. This offers maximum control but requires the customer to operate and maintain it — most enterprises prefer a managed or accelerator-based path.
 

9. Success Metrics

How does leadership know the semantic layer is working?
KPITargetHow to Measure
Agent grounding rate>95% of queries grounded
before execution
MCP server logs: queries
that hit semantic layer vs. direct data access
Definition coverage>80% of queried metrics
have governed definitions
DataZone catalog
completeness vs. agent query patterns
Consistency scoreSame question → same answer
regardless of agent
Cross-agent query audit:
compare results for identical inputs
Time-to-new-agent<2 weeks from concept to
production
Deployment log: time from
agent dev start to first governed query
Audit completeness100% of Act-tier decisions
auditable
CloudTrail coverage:
decisions without lineage = audit gap

Appendix A: AWS Service Reference

For architects taking the design forward. This appendix details the service mapping summarized in Section 4.

Full AWS Services Mapping

LayerAWS Services
User InteractionAmazon Lex, AWS AppSync, Amazon
API Gateway
Agent OrchestrationAmazon Bedrock Agents, AWS Step Functions, Strands Agents SDK
Tool & ActionMCP Servers (AWS Lambda), Bedrock Action Groups, Amazon EventBridge
Knowledge & ContextBedrock Knowledge Bases, Amazon
OpenSearch, Amazon Neptune, Amazon MemoryDB
Unified Data — SemanticAmazon DataZone / SageMaker Catalog, AWS Glue Data Catalog, Amazon Neptune, AWS Lake Formation
Unified Data — FederationAmazon Athena, Amazon Redshift Serverless, Amazon SageMaker Lakehouse
Unified Data — IntegrationAWS Glue ETL, Amazon AppFlow, Amazon Kinesis, AWS DMS
Cross-cuttingIAM, CloudTrail, Bedrock Guardrails,
Amazon CloudWatch, AWS Config

The Semantic Layer Service Composition

Within Layer 5, the semantic sub-layer is composed of specific AWS services working together:

Governance Service Architecture

ConcernAWS ServiceFunction
Access controlLake FormationColumn/row-level
permissions, tag-based access
Audit trailCloudTrailImmutable log of every
agent action
AI safetyBedrock GuardrailsContent filtering, topic
denial, PII redaction
Data qualityGlue Data QualityAutomated quality rules on semantic definitions
LineageDataZone + NeptuneEnd-to-end: source →
transformation → agent decision
Policy enforcementIAM + Lake FormationLeast-privilege identities
scoped per governance tier

Appendix B: Reference Patterns for Architects

The application patterns that define how agents interact with the semantic layer at runtime.

Agent Experience (AX) Principles

PrincipleWhat It MeansAnti-Pattern
Deterministic DiscoveryAgents find metrics through
a structured catalog — never by inference
Agent guesses
"revenue" means gross revenue from training data
Unambiguous ResolutionEvery term resolves to ONE
canonical formula per context
Same term returns different
calculations for different agents
Permission-Aware ContextAgents know boundaries
before querying — no "try and fail"
Agent gets access-denied,
retries with unpredictable workaround
Graceful DegradationMissing definitions return
explicit "not found" — never fabricated
Agent invents a KPI formula
because one wasn't defined
Traceable ReasoningEvery lookup is logged with
full provenance
Impossible to trace where
an agent's number came from
ComposabilityAgents combine definitions
using the layer's composition rules
Agent invents its own JOIN
logic between metrics

The Agent Grounding Pattern

Before acting on business data, every agent follows a grounding protocol:
1. Scope — agent declares intent; semantic layer returns what it can access (hard gate — fail = stop)
2. Ground — agent retrieves canonical definitions, vocabulary, ontology, and business rules
3. Validate — semantic layer checks the query plan against definitions and boundaries
4. Execute & Audit — governed query runs; results include lineage; immutable audit record created

Anti-Patterns to Avoid

Anti-PatternWhat HappensDo This Instead
Prompt-as-governanceDefinitions in system
prompts drift, conflict, and can be jailbroken
Externalize all definitions
in the semantic layer; agents query, not memorize
Skip-the-layerAgent queries raw tables
directly, bypassing semantic governance
All agent data paths route
through the semantic MCP server
Monolithic agentOne agent tries to
understand all domains
Supervisor + domain agents, each with scoped semantic access
Static definitionsMetrics defined once and
never updated
Version-controlled
definitions with change management and agent re-grounding

Architecture Decision Framework

PatternChoose WhenAWS ServicesTime to Value
Glue-CentricSingle engine,
straightforward metrics, one compliance regime
Glue Catalog + Lake
Formation + Bedrock KB
4-8 weeks
Neptune-CentricRich entity relationships,
business rules requiring graph traversal
Neptune + Glue + OpenSearch
+ Lake Formation
8-16 weeks
Semantic HubMultiple platforms
(Redshift + Databricks + Snowflake), federated teams
Neptune + Glue + SageMaker
Lakehouse + Lake Formation
12-24 weeks
Partner-AugmentedExisting dbt, AtScale, or
Cube.js investment
Partner tool + Neptune
(extended) + Lake Formation
6-12 weeks

References

AWS Service Documentation

·       Amazon Neptune 
·       AWS Lake Formation 
·       Amazon DataZone 
·       Amazon OpenSearch 
·       Strands Agents SDK 

Standards and Protocols

·       dbt Semantic Layer 

Industry Research

Planned for next version: TCO modeling, detailed success-metric instrumentation, failure-mode analysis, Responsible AI integration.
Any opinions in this article are those of the individual author and may not reflect the opinions of AWS.
Enjoyed reading this content? Let the author know!

Your likes, comments, shares, and saves help creators reach more builders.

Loading recommendations

Loading article