GO TO A SECTION

↑ ↓ to navigate · Enter to openExplore all sections →
FDEInterviews logo

EvoOntology Explained: Evolving a Semantic Layer for Data Agents

How EvoOntology updates the meaning layer between an agent and customer data, and how an FDE can test mappings, prevent semantic regressions and roll back safely.

BY MEI LIN · FDEINTERVIEWS EDITORIAL · UPDATED NOVEMBER 25, 2026 · 4 MIN READ

PRACTICE THIS:Understand semantic layers ·Evaluate a generated ontology ·Practice data engineering decisions

EvoOntology treats an agent's understanding of customer data as a versioned component that can improve through testing. For a forward deployed engineer, the useful idea is to evaluate changes to data meaning as carefully as changes to code. A mapping that helps one question can silently change the answer to another.

The EvoOntology paper describes a layer between an agent and heterogeneous data sources. It stores terms, mappings, constraints and supporting evidence, exposes them through MCP, and proposes changes from execution trajectories. Its contribution is the evaluated update loop around that layer. This article translates that idea into a customer-facing delivery workflow; the examples below are our own.

What changes between the question and the query

A semantic layer for AI agents connects business language to physical data. Imagine a customer asking, “How many active customers did we have last month?” The database offers accounts, invoices, trial events and subscriptions. None of those tables alone specifies what “active” means.

For this synthetic example, the agreed definition is: an account with at least one paid invoice during the calendar month, excluding internal test accounts. The mapping needs an account identifier, an invoice state, a timestamp with a timezone rule, and a test-account exclusion. It must also specify the counting grain: accounts, not invoices.

Meaning and access are separate checksQuestion + caller identity: Which accounts qualify? What sources may this caller use?. Versioned meaning: Definition, join grain, time rule and source evidence.. Current authorization: Trusted policy narrows the permitted data and fields.. Execute and retain evidence: Count unique account IDs. Record the ontology version, query and authorized source references.. The question supplies business intent and caller identity to separate meaning and authorization checks. Both constrain execution. The trace retains the ontology version and source references. Meaning and access are separate checks Proposed customer query path. Example: count distinct accounts with a paid invoice this month. Question + caller identity Which accounts qualify? What sources may this caller use? Versioned meaning Definition, join grain, time rule and source evidence. Current authorization Trusted policy narrows the permitted data and fields. Execute and retain evidence Count unique account IDs. Record the ontology version, query and authorized source references. A relevant mapping does not grant permission to read its source.

The arrows represent our proposed query path. Authorization is checked against the caller independently of whether the ontology says a field is relevant. Relevant information can still be forbidden information.

This distinction matters during discovery. Ask the customer for a small set of records they can classify confidently. Include a canceled subscription with a paid invoice, a trial account without payment, and an account with several invoices. Those cases expose disagreements faster than debating a polished natural-language definition.

How EvoOntology evaluates an update

The paper separates ontology content, schema and tools. A compact manifest enters the prompt; browse and resolve operations retrieve details when needed. Proposed edits target a layer, and parent and candidate versions run against the same validation cases with the same backbone and interaction budget. A sufficient score improvement permits retention. The evaluation freezes the layer before testing on the other data split. These are mechanisms described by the authors, not measurements from our deployment. Paper, method and experimental setup.

The project repository contains the implementation inspected for this review. We did not run its model-backed benchmark. For a production pilot, record the repository revision, model configuration and dataset version before comparing candidates.

An FDE should add business-specific release conditions. Average improvement alone can hide a regression in a critical metric. “Revenue is correct for every approved finance fixture” can be a required condition even when the overall task score rises. See our ontology evaluation question for the broader evaluation problem.

A promotion decision you can inspect

Suppose a candidate changes “active customer” from subscription status to paid invoices. Before accepting it, produce this evidence:

CheckEvidence to retainReason it can block promotion
MeaningApproved definition, owner and effective dateTwo teams use the same term differently
Physical mappingSource table, column and join grainA join duplicates account rows
TimeMonth boundary and source availabilityA late update changes historical answers
RegressionParent and candidate answers on identical fixturesAn unrelated billing question deteriorates
AccessCaller-specific permitted sourcesThe new mapping reaches restricted fields
RecoveryPrevious version and affected consumersA rollback would leave stale cached answers

The text-to-SQL golden-set exercise is useful here: execution success answers a narrower question than business correctness. Store expected result sets or invariants as well as SQL where possible. Equivalent SQL can be valid; identical-looking totals can hide different populations.

Make each semantic change earn its releaseEvidence of a failure: A definition, mapping or interface produces a wrong result.. Candidate version: One documented hypothesis; keep the parent version.. Paired comparison: Same cases, model and budget. Inspect critical regressions.. Promotion decision: Pass business invariants and a final held-out check; otherwise retain parent.. After release: record the version in traces and invalidate affected cached answers when rolling back.. Failure evidence leads to a versioned candidate, then a paired comparison. A candidate can be promoted only after required invariants and the final holdout pass; failure keeps the parent. This is our proposed customer release process. Make each semantic change earn its release Recommended delivery process. Repeated validation guides edits; final holdout stays separate. Evidence of a failure A definition, mapping or interface produces a wrong result. Candidate version One documented hypothesis; keep the parent version. Paired comparison Same cases, model and budget. Inspect critical regressions. Promotion decision Pass business invariants and a final held-out check; otherwise retain parent. After release: record the version in traces and invalidate affected cached answers when rolling back.

This is our recommended promotion process, not a diagram of additional features supplied by EvoOntology. Validation may guide repeated edits; the final held-out set should remain outside that loop. Otherwise the ontology can overfit its examiner.

Try the failure before automating the fix

This original Python exercise runs locally with the standard library. Predict both printed counts before executing it. The fixture represents already-authorized, in-month records with non-test accounts; production code must establish those conditions first.

python
invoices = [
    {"account": "a", "state": "paid"},
    {"account": "a", "state": "paid"},
    {"account": "b", "state": "draft"},
    {"account": "c", "state": "paid"},
]

invoice_count = sum(row["state"] == "paid" for row in invoices)
active_accounts = {
    row["account"] for row in invoices if row["state"] == "paid"
}
assert invoice_count == 3
assert active_accounts == {"a", "c"}
print("paid invoices:", invoice_count)
print("active accounts:", len(active_accounts))

The output is three paid invoices but two active accounts. A layer that maps “active customer count” to paid-invoice count passes a syntax check and produces a plausible number. It fails the business question.

Now change the definition to “an account with an active subscription on the month's final day.” The fixture no longer contains enough information. The correct response is to request subscription history and its effective timestamps, not to rename the existing calculation. That is a useful acceptance test for the agent: can it recognize when its available evidence cannot support the requested meaning?

Deliver a versioned contract, then monitor it

Start with one consequential workflow and a small approved vocabulary. Preserve the original question, ontology version, retrieved records, generated query and result provenance in its trace. Redact or restrict sensitive values according to the customer's access policy. A reusable semantic layer is not a reason to broaden data permissions.

After release, classify failures before editing the layer. A stale source requires a freshness fix. A missing join rule may require a mapping change. A correct query followed by a misleading explanation requires a different test. Sending every failure into ontology evolution risks encoding workarounds for unrelated defects.

Our auto-ontology review covers constructing a layer from existing data. EvoOntology adds a useful next question: how will a proposed change earn its place? The handover should let the customer's engineer answer that question from a definition, a comparison and a rollback record, without needing to trust the agent's confidence.

PRACTICE THIS

Turn it into offers. Work the real questions and concepts this maps to:

FAQ

EvoOntology is a research system that maintains a versioned ontology for data agents. It exposes relevant knowledge through MCP tools and uses execution evidence to propose and evaluate changes to that layer.

Discussion (3)

Emily CarterEditor

A useful regression case is a query whose SQL still executes after a mapping changes but whose business meaning has shifted. Those errors can survive an execution-only evaluator.

Lukas HoffmannEditor

Keep the ontology version in the query trace. Otherwise a later investigation cannot distinguish changed data from changed interpretation.

Arjun MehtaEditor

The join grain belongs in the contract. A correct column name does not prevent a many-to-many join from inflating revenue.