What goes into a context layer
- Business definitions and metrics, often from a semantic layer
- Descriptions of tables and columns, and glossary terms
- Ownership and quality signals
- Access and usage rules
- Lineage showing where data comes from and where it goes
Context layer vs semantic layer
A semantic layer defines metrics. A context layer usually includes those definitions and adds the meaning and rules around the rest of the data. Compare context layers, semantic layers and code and data graphs.
Context layers for coding agents
Most context layers are built for agents that answer questions about data. Agents that change code need one more piece: what reads and writes each table and column across repositories. That comes from analyzing source code rather than metadata, often as a context graph the agent queries over MCP. Read about context engineering for AI coding agents.
How to build a context layer
- Start from the questions your agents need to answer and the datasets they touch.
- Pull in existing definitions from your semantic layer, catalog and documentation.
- Add ownership, quality signals and access rules, so agents know which data they may use.
- Connect lineage, so agents can see where data comes from and what depends on it.
- Serve it to agents through a standard interface such as MCP, and keep it updated automatically.
Context layer FAQ
What is a context layer?
A context layer is a shared layer of meaning between your data and the AI agents that use it. It holds business definitions, descriptions, ownership, quality signals and access rules, so agents pick the right data and use it correctly.
What is a data context layer?
It is the same idea applied to a data platform: the definitions, ownership, quality and lineage around tables and columns, packaged so analytics and AI agents can use them.
Is a context layer the same as a data catalog?
Not quite. A catalog is one common source for a context layer. The context layer packages catalog metadata together with semantic definitions, rules and lineage for agents to consume.
Do coding agents need a context layer?
They need more than metadata. To change code safely, an agent needs to know what reads and writes each table and column across repositories, which comes from analyzing source code.
Related terms
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.8.0/gsap.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.8.0/ScrollTrigger.min.js"></script>
<script>
// © Code by T.RICKS, https://www.timothyricks.com/
// Copyright 2021, T.RICKS, All rights reserved.
// You have the license to use this code in your projects but not to redistribute it to others
gsap.registerPlugin(ScrollTrigger);
let horizontalItem = $(".horizontal-item");
let horizontalSection = $(".horizontal-section");
let moveDistance;
function calculateScroll() {
// Desktop
let itemsInView = 3;
let scrollSpeed = 1.2; if (window.matchMedia("(max-width: 479px)").matches) {
// Mobile Portrait
itemsInView = 1;
scrollSpeed = 1.2;
} else if (window.matchMedia("(max-width: 767px)").matches) {
// Mobile Landscape
itemsInView = 1;
scrollSpeed = 1.2;
} else if (window.matchMedia("(max-width: 991px)").matches) {
// Tablet
itemsInView = 2;
scrollSpeed = 1.2;
}
let moveAmount = horizontalItem.length - itemsInView;
let minHeight =
scrollSpeed * horizontalItem.outerWidth() * horizontalItem.length;
if (moveAmount <= 0) {
moveAmount = 0;
minHeight = 0;
// horizontalSection.css('height', '100vh');
} else {
horizontalSection.css("height", "200vh");
}
moveDistance = horizontalItem.outerWidth() * moveAmount;
horizontalSection.css("min-height", minHeight + "px");
}
calculateScroll();
window.onresize = function () {
calculateScroll();
};let tl = gsap.timeline({
scrollTrigger: {
trigger: ".horizontal-trigger",
// trigger element - viewport
start: "top top",
end: "bottom top",
invalidateOnRefresh: true,
scrub: 1
}
});
tl.to(".horizontal-section .list", {
x: () => -moveDistance,
duration: 1
});
</script>
Add the Code-Derived Piece of Your Context Layer
Request a demo to see how Foundational shows coding agents what reads and writes each table and column.
Add the Code-Derived Piece of Your Context Layer
Request a demo to see how Foundational shows coding agents what reads and writes each table and column.
Add the Code-Derived Piece of Your Context Layer
Request a demo to see how Foundational shows coding agents what reads and writes each table and column.