Demo · Context Layer for AI Agents

The same agent, the same data. A different answer once it knows the company's definitions.

I built a demo that measures this. An AI agent answers 40 questions about a fictional bank's data in two modes: the way companies connect agents today, and with a context layer. The model, the prompt and the data are the same. The only difference is whether the agent can read the company's definitions.

Fictional Bank (Fikcyjny Bank S.A.) · synthetic data · fictional company

One question, two answers

“How many customers were active at the end of August 2026?”

Screen recording of the demo at 3× speed, no sound. The demo interface is in Polish. This is a saved run from 21 October 2026 on Claude Opus 5.5. On the left (as-is) the agent explores the database and assumes its own definition. On the right (with the context layer) it fetches the definition from the catalogue first.

Without context the agent answers 4,584: it counts customers with an open account, the way an old reporting view does. With context it answers 3,035 and cites its source: the “Active customer” definition, version 2, in force from 1 July 2026, owned by the Management Reporting Department.

Both SQL queries are technically correct. The first number is half as high again as it should be, because in this bank “active” means a customer who initiated a transaction in the last 90 days, and since July transfers between the customer’s own accounts no longer count. None of this is in the database schema. The agent without context noted that it had found no definition and assumed one of its own.

Result

Share of correct answers on the 14 questions I did not use while building the context:

ModelAs-isWith the context layer
Claude Fable 5.221.4%100%
Claude Opus 5.523.8%100%
Claude Sonnet 5.530.2%99.2%
Claude Haiku 5.523.8%100%

Four measurement sessions between 21 October and 16 November 2026, each question asked 3 times in each mode.

  • A stronger model does not replace context. The strongest model without the catalogue (21.4%) does worse than the cheapest one with it (100%).
  • The agent is not short of skill, only of knowledge about the company. On control questions, which have no semantic trap, both modes are 100% correct.
  • With context the agent takes a shorter route to the answer. In the first session: 3–4 tool calls instead of 6–7, and 12–17 s instead of 17–24 s. Token cost goes up by 50–90%, because the agent reads more.

What a model cannot guess

  • A definition, its version and its owner. At the end of June 2026 version 1 of the active customer definition was still in force, so the correct answer is 3,495. The agent without context does not know the definition has versions: 0 correct answers in 27 runs. The same goes for the question of who owns the definition: 0 in 27.
  • Which date, which exchange rate, what to do with reversals. Card payments in August 2026: PLN 1,746,489 by transaction date, PLN 1,571,954 by the bank’s reporting rules (posting date, without reversals, after corrections). An 11% difference.
  • What the agent must not do. Asked for the average declared income of premium customers, the agent without context returned the amount in 27 runs out of 27, because the database allows it. With context it refused every time and named the owner of the data.
  • Which source is right, and whether the data is fresh. The premium segment is 583 customers in the transaction system and 653 in the CRM, which is the source of truth. The turnover table is described in the database as “loaded daily”, and its last load was a month earlier.
Demo screen: asked for the average declared income of premium customers, the as-is mode returns an amount in PLN and the context-layer mode refuses.
The question about the average income of premium customers (demo interface in Polish). Without context the agent returns an amount. With context it refuses (“Odmowa”) and cites the access rule for sensitive data.

The owner changes a definition, not a developer

A new version of the “high-risk customer” definition is waiting in the catalogue. Until its owner approves it, the agent counts the old way: 239, and notes that version 2 is awaiting approval. The owner approves it in the catalogue. The same question asked less than a second later gets an answer by the new version: 315. Nobody changes the prompt or the code. I checked this on two models, three times each. I show this scene live.

Demo screen before approval: 239 customers by version 1 of the “High-risk customer” definition.
Before approval: version 1, 239 customers.
Demo screen after approval: 315 customers by version 2 of the “High-risk customer” definition.
After approval: version 2, 315 customers.

What the agent was given

  • 9 business definitions with versions, effective dates and owners (5 teams);
  • descriptions of 10 tables and their columns, data lineage and the date of the last load;
  • a sensitivity tag on 3 columns and a deprecation mark on one view;
  • 2 working procedures for the agent: how to pick the definition version in force, and what to do about sensitive data, conflicting sources and stale tables.

All of it sits in an open-source data catalogue (OpenMetadata). The agent reads it through the standard MCP interface and cannot change anything. Because the catalogue sits behind a standard interface, I choose the tool to fit the company. If you already have a data catalogue or a semantic layer, I start from it.

See how the demo is built: architecture, data, catalogue and how the agent works

Why this result can be trusted

  • I froze the questions, the expected answers and the scoring rules in the repository before the first line of context existed. The Git history confirms the order.
  • I drew 14 of the 40 questions at random into a held-out set. They were not run until the context was frozen. They give the result above.
  • The as-is mode has accurate technical descriptions of tables and columns. It lacks only business knowledge, like most data warehouses.
  • Scoring is automatic and binary, by the same rules for both modes and all models.
  • I also show the errors that remain: 2 in 966 runs with context. Once a model picked the wrong version of a definition, once it gave the right answer in the wrong format.

What this result does not say

  • This is a fictional company, synthetic data and my own set of questions. The result shows the direction and scale of the difference. It is not a promise for your data.
  • The sample is small: 14 held-out questions. One wrong answer in a session is 2.4 percentage points.
  • In the demo the agent enforces the access rules for sensitive data. In a real deployment I also recommend permissions or masking in the database.
  • The demo covers one domain and four Claude models. It is not a data catalogue rollout for a whole company.

Let's check your agent's context

You do not have to start with the whole module. There are two shorter ways in:

  • Agent Review (Pre-Flight), 1–2 weeks, from PLN 8,400. As part of the review I ask the agent 10–15 questions that require one of your definitions and check where it took it from. You get a list of context gaps.
  • Context map, 1–2 weeks, from PLN 11,200. Terms, definitions and owners in one domain, definition conflicts to be resolved, and a baseline measurement of the agent’s accuracy.

I also show the demo live in 10–15 minutes, including a definition change during the call.

Fikcyjny Bank S.A. (“Fictional Bank”) does not exist. All data in the demo is synthetic and the demo itself is in Polish. Models: Claude Fable 5.2, Opus 5.5, Sonnet 5.5 and Haiku 5.5. Catalogue: OpenMetadata 2.0.5. Prices are net.