Context Layer for Data Engineering Teams: What You Own and How to Run It

Quick definition: What is a context layer for data engineering teams?

A context layer for data engineering teams is the technical context a data team already maintains (schemas, column-level lineage, freshness, quality signals, and deprecation status), unified in a single governed place, kept current as the stack changes, served to AI agents, and tested with evals. Business definitions, governance policy, and agent runtime all attach to it.

Most of the context AI agents need already exists in your stack: It lives in the catalog, the business glossary, lineage graphs, dbt docs, and the quality checks your team runs every day. So if your data engineering team is tasked with building a context layer, the truth is that you’ve mostly built it already.

But what you haven’t done yet is operate it for a consumer who never asks a follow-up question. An agent acts on whatever context it receives. A renamed column, a retired table, or a definition someone edited on Friday afternoon becomes a confident wrong answer by Monday. Running a context platform for agents comes down to three questions: which part of the context layer your team owns, what happens to agents when you change it, and how you prove it still works.

You already have the context, but it has three problems

Ask a data engineer where the context for an orders table lives, and you’ll get a list. Column descriptions are in the catalog, the revenue definition in the glossary, and transformation logic in dbt docs. A known refunds issue is in Confluence, and the reason nobody uses orders_v2 is in a Slack thread from last spring.

DataHub co-founder John Joyce made the same point in his CONTEXT 2026 keynote: “All of this context already exists within your data ecosystem.” But while the context exists, the problems are fragmentation, drift, and delivery.

1. Fragmentation

Context is spread across tools that were never designed to share it. In the State of Context Management Report 2026, a survey of 250 IT and data leaders conducted by TrendCandy, 57% said they struggle to identify authoritative data sources. A context layer solves that fragmented view. When an answer aggregates data from several systems, the context for every source sits in one place instead of scattered across five tools.

Culture Amp‘s data platform team saw the cost firsthand. “While we already had documentation in GitHub and Confluence, the overhead of keeping it up to date and finding it was growing for both data producers and data consumers,” said Callum Lee, product manager for the data platform. “The goal was a single place to manage and find it.”

2. Drift

Context written once goes stale as the data layer underneath it changes. Before Pinterest rebuilt its governance, roughly 30% of its top tables were owned by people who had left the company.

Drift in one kind of context corrupts another. DataHub’s SQL parsing documentation notes that when the table schemas registered in DataHub are outdated, column-level lineage generated from SQL can be inaccurate.

3. Delivery

Most of this context was written for people browsing, not for agents querying at machine speed. An analyst reading a stale wiki page might notice something is off, because they have the institutional knowledge to spot it. An agent won’t.

Model Context Protocol (MCP) has become the standard delivery route, but it moves whatever context you give it, accurate or not. That’s why MCP context management depends on what sits behind the server. What sits behind it should be a context layer designed for both human users and AI consumers: the same definitions, lineage, and ownership, browsable in a catalog for people and queryable through MCP for agents.

“In every enterprise I talk to, the harder problem isn’t engineering the context. It’s having context worth engineering in the first place.”

Shirshanka DasCo-Founder and CTO, DataHub

The skills that produced this context transfer directly to context engineering. The work now is unifying it, keeping it current, and serving it from one governed place, starting with a data context inventory.

Which part of the context layer does data engineering own?

If you’re a data engineering lead who has been told to own the context layer, the first job is narrowing that down. Context isn’t one artifact, so it doesn’t have one owner. Data engineering owns the technical layer, and everything else attaches to it.

LayerOwnerWhat it includesWhere it comes from
TechnicalData engineeringSchemas, column-level lineage, freshness, quality signals, usage, deprecation statusWarehouse, dbt, orchestration, BI tools, quality checks
BusinessAnalysts and domain expertsMetric definitions, glossary terms, guidance on answering common questionsSemantic layer, BI definitions, documentation, query history
PolicyGovernanceAccess rules, classifications, compliance requirementsGovernance policies, classification tags
RuntimeAgent buildersAgent instructions, tool access, scopeAgent frameworks, MCP configuration

The technical layer comes first because the other three hang off it. A glossary term links to the columns that implement it, a policy applies to a classified table, and an agent’s search ranks candidate tables on technical signals such as lineage, usage, and freshness. That’s how it tells a curated table from the raw data behind it. John Joyce’s CONTEXT 2026 keynote also put the technical layer at the base: the inventory of assets, metrics, columns, and queries that the other layers build on.

When the technical layer is weak, agents route to the wrong table. Even after Miro added a metadata layer between its agent and Snowflake, the agent picked the wrong table in more than 30% of cases. Routing improved once Miro decomposed questions and ranked candidates on trust signals such as schema ranking, Looker lineage, and usage.

Record ownership on the asset itself. DataHub supports typed owners (technical owner, business owner, and data steward) on the same asset, as the post on context ownership explains. Pinterest goes even further and enforces ownership at creation:

“Every table creation gets gated through the DataHub UI, and if you do not provide a tier, owner, retention, and domain, you don’t get a table.”

Aman GairolaEngineering Manager, Pinterest

What happens to agents when the technical layer changes?

Say your team renames cust_id to customer_id in a staging model, or retires a table nobody seemed to query. In a dashboard world, someone spots a broken chart and files a ticket. But an agent doesn’t file tickets. If the old column still looks valid in the catalog, or the retired table still looks like a candidate, the agent keeps using it and returns a plausible answer built on the wrong data.

EMA‘s Context and Consequence research brief (November 2026, 202 data and analytics decision-makers) puts numbers on this: 61% said missing or inconsistent context causes AI to misinterpret data at least occasionally, and 41% took a materially incorrect action based on a wrong AI output in the past six months. The figures are self-reported and show association, but EMA’s conclusion is direct: context “needs the same ongoing management as data quality.”

Before the change: impact analysis

Impact analysis answers one question before a change ships: what depends on this? It traces a table or column downstream through every model, dashboard, and report that reads from it, so you can find what will break and warn the people who own it.

For agents, impact analysis has to meet three conditions:

  • Column-level: A table-level view tells you orders is used downstream. It doesn’t tell you which assets read the cust_id column you’re about to rename.
  • Cross-system: Dependencies don’t stop at the warehouse. A column feeds a dbt model, which feeds a BI dashboard, which an agent may treat as its source of truth.
  • Run before the merge: A check after the change ships is an incident review. Build the check into code review, so a breaking change is caught while it’s still a pull request.

Treat agents as downstream consumers in that check. If an agent’s evals reference the column you’re changing, those evals belong on the list of things to rerun.

Culture Amp catalogs more than 11,000 assets across Redshift, dbt Cloud, Looker, Kafka, and ClickHouse, and cut impact analysis for schema changes from hours to minutes. Its analysts run the same check before they deprecate anything:

“My main use case has been using it as a double check for downstream impacts when I’ve been archiving or deprecating fields, views, and explores in Looker. It’s my final confirmation that I won’t break anything before merging the changes.”

Jill BourkeSenior Product Analyst, Culture Amp

In DataHub, column-level lineage is captured automatically from SQL parsing, native connectors, and OpenLineage. The SQL parser is open source and schema-aware, so your team can test it on its own queries before trusting it. Lineage Impact Analysis runs in the UI and the GraphQL API on both DataHub Core and DataHub Cloud, so the same check works for manual review or an automated step in CI. (Learn more about data lineage for AI.)

In a DataHub-sponsored IDC study (March 2026, five interviewed DataHub Cloud customers), data sets with mapped lineage rose 75%, and data-related outages were resolved 58% faster.

After the change: deprecation and propagation

Marking a table deprecated in a release note or a Slack announcement warns the people who see it. But agents don’t read release notes—they search the context layer, and if a retired table or renamed column still looks like a valid candidate there, they’ll keep using it.

Once a change ships, three things keep agents on track:

  • Mark it where agents look: Record deprecation status on the asset itself, in the same context agents search, and point to the replacement where there is one.
  • Get the signal there fast: A deprecation that reaches agents at next week’s refresh leaves a week of wrong answers.
  • Carry context to what’s derived from it: When a column is renamed or replaced, its description and glossary terms need to follow it to the downstream columns built from it. Otherwise, the new column starts with no context at all.

Miro found that stale columns looked identical to live ones, so its agent kept choosing them. The team tagged deprecated columns explicitly in DataHub so the agent stopped treating them as candidates.

On timing, the 10 Principles of Enterprise Context Platforms guide argues that schema changes, failed quality checks, and deprecations should reach agents within seconds, not at the next scheduled refresh. In DataHub, deprecations and quality results reach agents within seconds of being recorded, and source schema changes arrive with each ingestion run. Documentation propagates through lineage to derived columns, and in DataHub Cloud glossary terms do too, so a definition written once carries downstream.

Operate context like a pipeline

If you’ve debugged a pipeline, you’ve already debugged a context failure. The symptoms just look different, and each one needs a control.

Context failureWhat the agent seesPipeline equivalentControl
Stale contextDocumentation for an issue that was fixed, or a table that was retiredFreshness failureScheduled ingestion and freshness assertions routed to the asset’s owner
Conflicting definitionsTwo sources that define revenue differentlyKey mismatch across joined tablesOwned glossary terms and evals that fail when a definition changes
Missing provenanceAn answer with no traceable sourceIncomplete lineageColumn-level lineage and impact analysis before changes ship

Stale context can do more damage than missing context. In Optiver’s CONTEXT 2026 keynote, an agent found documentation describing a known issue that had been fixed three days earlier. It followed the document correctly and produced exactly the wrong answer. In that case, the keynote noted, stale documentation “was worse than having no documentation.”

Conflicting definitions fail quietly too. Also at CONTEXT 2026, DataHub engineer Chris Collins described a finance team publishing a new document that defined revenue as gross bookings, while the glossary said net of refunds. A revenue eval that had passed for a month failed overnight, and comparing the documents the agent cited before and after pointed straight to the new one.

“For context, a doc edit is basically a deploy that nobody runs tests on.”

Chris CollinsEngineer, DataHub

Keeping context correct is ongoing upkeep, which is the core argument behind context infrastructure for AI agents.

Test context the way you test data

EMA recommends measuring context failure as an operating metric, reviewed alongside incident data. Evals are how you measure it: real business questions with expert-verified answers, checked against what an agent does with your context.

DataHub’s Build a Data Agent guide sets out the practice:

  1. Write 20 to 50 real questions: Pull them from your team’s Slack channel, the analytics request queue, and questions that have caused incidents. Have a data expert write or review each expected answer.
  2. Name the traps: For each question, list the deprecated or look-alike tables a correct answer must not use.
  3. Run a baseline and set a target: Expect the first pass rate to be low. Agree with data experts and stakeholders on the pass rate the agent must reach before broader rollout.
  4. Run evals daily: If a change breaks an answer, you know by the next morning.
  5. Run evals in CI and fail the build when they fail: On DataHub Cloud, the evals CLI supports this with a --fail-on-fail flag.

Optiver splits its evals in two. Capability evals start low on purpose, while regression evals sit near 100%, where any dip is an alarm. On real researcher questions with expert-verified answers, governed context took Optiver’s accuracy from 42% to 74%.

Quick definition: What is a context eval?

A context eval is a business question paired with a pass condition that defines a correct answer, such as referencing a specific certified table. Evals run against agents to measure whether the context they draw on produces accurate answers. Written before context is generated or edited, evals provide a baseline for showing improvement.

Close the loop on gaps agents hit

Evals only cover the questions you thought to write. Context Feedback in DataHub Cloud lets agents and people report gaps as they hit them, such as missing context or two sources that disagree, including when a person corrects the agent’s answer. Owners can turn feedback into a proposed fix and test it against your evals before approving it.

Every gap is also a missing eval. As Chris Collins put it, each item in that queue is “a question you never wrote an eval for.” At Optiver, every correction a person makes becomes a new eval. Learn more about continuous context and common context problems.

Start with one domain, not the whole estate

Implementing a context layer is most efficient when you start with your critical data domains rather than your whole enterprise data estate. Documenting every table before agents go live is the slowest path. The Build a Data Agent guide recommends one domain, or at most three, each with real questions and someone who cares about the answers. When that team trusts the agent, move to the next.

Miro is the clearest example. Its team wrote a 900-question benchmark with data experts and runs it daily. Text-to-SQL accuracy rose from under 40% to over 90% in Miro’s deterministic data product mode, with broad exploration across the full catalog running between 85% and 90%. Wrong-table routing fell from more than 30% of cases to under 10%. Miro deliberately left more than 20,000 datasets out of scope and documented only the data products critical to its AI use cases.

“Analytics accuracy is not a code generation problem. LLMs are good already at writing SQL. The problem is context and routing.”

Ronald AngelLead Product Manager, Miro

Pinterest took the same approach on DataHub Core. Governance tiers cut 400,000 tables to 100,000 curated assets, and AI-generated documentation, join-based lineage propagation, and vector similarity search removed about 70% of the manual documentation work. The Pinterest Engineering blog covers the agent built on that foundation.

For the first domain, start with the warehouse and its query history, then add transformation, BI, and orchestration tools, and finally documentation sources such as Confluence and Notion. Turn on column-level lineage from the start, since impact analysis and propagation both depend on it.

For a phased rollout, see how to implement an enterprise context layer.

Where DataHub Core and DataHub Cloud fit

DataHub is a context platform built on the metadata your team already maintains. It unifies the technical layer from the data systems you run, keeps it current as those systems change, and serves the relevant context to agents from one governed place.

It comes in two editions: DataHub Core, which is open source, and DataHub Cloud, which adds managed services and the tools for testing and maintaining context over time.

  • DataHub Core is open source. It includes ingestion from 150+ systems, including warehouses, dbt, Airflow, and BI tools, plus automatic column-level lineage, impact analysis in the UI and GraphQL API, and the open-source SQL parser. For delivery to agents, the open-source MCP server and the Agent Context Kit (pip install datahub-agent-context) connect agents built with frameworks such as LangChain and Google ADK.
  • DataHub Cloud adds freshness, volume, and custom SQL assertions with alerts routed to owners, a managed MCP server, scoped MCP servers, and Ask DataHub. The Context module covers the operating work: Context Generation from query history, Snowflake semantic views, Looker models, and dbt and Power BI definitions; evals that run daily or from CI; Context Feedback; and domain scoping for agents, MCP servers, evals, and generation. It builds on context documents, which you can write in DataHub or import from Confluence, Notion, Google Drive, and GitHub.

Your team already runs the technical layer agents depend on. To see it working on one domain, from first evals to a live agent, start with the Build a Data Agent guide.

FAQs

Who should own the context layer: data engineering or AI teams?

Neither team owns all of it. Data engineering owns the technical layer: schemas, data lineage, freshness, quality signals, and deprecation status. Analysts and domain experts own business definitions, governance owns policy, and agent builders own the runtime. Typed ownership records each responsibility on the same asset, so it’s clear who fixes what when an agent gets something wrong.

Does a context layer for data engineering teams replace the semantic layer?

No. A semantic layer standardizes metric definitions and business logic for analytics queries, and it ensures consistent calculations across BI tools. A context layer for AI has a broader scope: It delivers metadata, lineage, governance policies, quality signals, documentation, and business definitions to both analytics tools and AI agents. A semantic layer is one component of a complete context layer, but it doesn’t address governance, provenance, or agent-ready access on its own.

How do you test a context layer before agents use it?

Use evals. Write 20 to 50 real business questions with expert-verified answers, including the look-alike tables a correct answer must avoid. Run a baseline, agree a target pass rate before rollout, then run the evals daily and in CI. A failing eval usually points to missing or conflicting context rather than a model problem.

What happens to AI agents when a column is renamed or a table is deprecated?

Unless the change reaches the context layer, agents keep using the old column or table and return plausible but wrong answers. Run impact analysis before the change to find every downstream dependency. After the change, mark deprecated assets in the context layer so agents stop treating them as candidates, and list them in your evals as assets a correct answer must not use.

Is an MCP server the same as a context layer?

No. Model Context Protocol (MCP) is a delivery protocol. It standardizes how context is sent to AI systems, but it doesn’t solve the upstream problems of integration, governance, or quality. Without a context platform behind it, MCP provides a consistent interface to inconsistent data. Backed by a governed context layer, it becomes a reliable way to put trusted context in front of agents.

Can you build a context layer with open-source tools?

Yes. DataHub Core is open source and covers the technical layer: ingestion from 150+ systems, automatic column-level lineage, impact analysis, an open-source SQL parser, an open-source MCP server, and the Agent Context Kit for connecting agents. Pinterest built its analytics agent’s context layer on DataHub Core. DataHub Cloud adds data quality assertions, a managed MCP server, and the Context add-on for evals, context generation, and feedback.