DataFocus · Journal
Build vs Buy an Ontology Layer for AI Agents: Own the Definitions, Buy the Control Plane
An ontology layer for AI agents has two parts: business definitions you own anyway, and a control plane (per-user permissions, query receipts, version-bound approvals, audit) that is costly to build and never differentiates you. Buy the controls unless the layer is your product.
Buy the control plane, own the definitions. An ontology layer for AI agents is two deliverables with opposite economics. The business model, meaning object types, relationships, metric definitions and their mappings to source systems, is specific to your company and stays in-house whichever way you go; no vendor knows what "active customer" means in your ERP. The control plane, meaning permissions that follow the real user into every source, a receipt on every query, approvals bound to one plan and one base version, and an audit log of agent actions, is generic, expensive to get right and worth nothing as differentiation. Build the whole layer only if the layer is your product, if you already operate that control plane for other systems, or if a hard constraint survives due diligence against every vendor.
What are you actually committing to build?
The first estimate for an in-house semantic layer usually covers a model of business entities and a query interface that agents can call. The table lists what the layer needs before an agent can act for a named employee against production data. The middle column uses DataFocus OT's public documentation as the reference because it states each control explicitly; the right column is where first builds usually stop.
| Component | What production requires (as DataFocus OT documents it) | Where a first in-house build usually stops |
|---|---|---|
| Permission propagation | The agent sees only what the authorizing user may see; requests outside the grant do not reveal whether the data exists; withdrawn access takes effect at once | A service account that reads everything; "forbidden" and "not found" return different errors; revocation waits for a cache to expire |
| Identity reuse | Existing users, roles and resource permissions are used as they are; agents are granted access one ontology at a time | A parallel role table for the agent, maintained by hand |
| Query receipts | Every query returns the SQL that ran, the tables it used and a data fingerprint; every call records sources, definitions and returned scope | Application logs that record the question asked, not the definition in force |
| Change workflow | Draft, diff, validation, approval, commit, read-back; AI can only submit a draft, which takes effect after a person approves it | A pull request on a configuration file, merged by whoever holds the rights |
| Version-bound approval | Approval applies to one plan against one base version and must be confirmed again when either changes | An approve button that stores a timestamp and a username |
| Audit | Every query has a receipt, every change an approval record, every agent action an entry in an audit log | Reconstruction from several logs after the incident |
| Reuse across environments | Definitions, mappings, required scopes and tests move; customer records, credentials, private documents and source ACLs do not; identities and permissions are remapped per environment | Environment-specific values hardcoded; promotion by copying a database |
The table leaves out the semantic model, the connectors and the agent interface, the parts teams plan for. The seven rows are the parts they discover, usually during the security review.
What does the evidence say about where AI projects stall?
The public numbers are rough, direction rather than measurement, and they point at the same place.
MIT Project NANDA's The GenAI Divide: State of AI in Business 2025 (July 2025) reports that for enterprise-grade GenAI tools, custom-built or vendor-sold, 60% of organizations evaluated them, 20% reached pilot and 5% reached production. The authors blame approach rather than model quality: "most AI tools don't learn and don't integrate well into workflows." The sample was 52 interviews, 153 survey responses and 300+ public initiatives, and they call the figures "directionally accurate" rather than audited.
BCG's September 2025 survey of 1,250 executives (press release, report) found 5% of companies "future-built" for AI and 60% reporting minimal revenue and cost gains. BCG puts AI agents at about 17% of total AI value in 2025 and expects 29% by 2028, so integration will carry more of the value.
Buyers are moving accordingly. Menlo Ventures' 2025 State of Generative AI in the Enterprise (December 2025, 495 U.S. enterprise AI decision-makers) reports that 76% of AI use cases are now purchased rather than built, up from 53% in 2024.
Security data narrows the diagnosis to one row. IBM's Cost of a Data Breach Report 2025 (July 2025) found that 13% of organizations reported a breach involving their AI models or applications, and that 97% of those lacked proper AI access controls. Access control is the first row.
None of these studies measures ontology layers or proves that buying beats building. What they support is narrower: AI efforts stall where they meet real workflows and real permissions, enterprises are increasingly buying their way past that point, and breached AI systems almost always lacked access control. An in-house ontology layer is built on that fault line.
Which three components decide the outcome?
Of the seven rows, three cause most of the trouble. They are invisible in a demo and decisive in an audit.
Permission propagation. A demo agent runs on a service account that can read everything. In production the agent acts for a specific person, and every source behind the ontology has its own ACL model. The requirement is an intersection: the user's rights in each source, narrowed further by the agent's own grant. The refusal must be uninformative: a record the user may not see and a record that does not exist must produce the same answer, or the agent becomes an oracle for probing what the company holds. And revocation must be immediate; a cached permission set that outlives an HR change is an audit finding, not an optimization. The identity has to be the real user's all the way down. The Model Context Protocol's Security Best Practices (as documented in November 2026) forbids "token passthrough" for this reason: when a server forwards tokens it did not validate, downstream logs "may show requests that appear to come from a different source with a different identity," and the audit trail breaks at the first hop.
Approvals bound to versions. An approve button is an afternoon's work. An approval that records which plan was approved against which base version, and becomes void when either changes, is not. Without the binding, a reviewer approves change A, a concurrent edit lands, and change A-prime commits under A's approval; the reviewer signed something that no longer exists. OWASP's LLM06:2025 Excessive Agency lists human approval of high-impact actions as a core mitigation. Version binding is what makes that approval mean something. DataFocus's documentation tells users to check repeated submissions, version conflicts and recovery before relying on the flow, the same failure cases an in-house build must handle.
Receipts and audit. After an incident the questions are specific: which definition of "active customer" did the agent use at 09:40, what scope did it return, and who approved the change it made the week before. Answering them requires the SQL that ran, the tables used, a fingerprint of the data and the definitions in force, captured on every call, plus before-and-after state, the diff and the approver on every change. Adding that after launch means touching every code path that reaches data. Adding it before launch means it was in the estimate, which is the point.
A worked example: three quarters, two paths
Consider a hypothetical mid-size distributor with a CRM and an ERP. This is an illustration, not a case DataFocus observed. Both paths share the first quarter and diverge on the next two.
| Quarter | Build path | Buy path |
|---|---|---|
| Q1 | Forty object types across CRM and ERP, a metric catalog, an agent query API. Pilot runs on a read-all service account. | The same object types and metric catalog, mapped into a purchased layer. Pilot runs under each tester's own identity from day one. |
| Q2 | Security review asks: can the agent return gross margin on an order the sales representative cannot open in the ERP? It can. The quarter goes to per-user scoping across two ACL models, identical responses for "not yours" and "not there", and revocation that keeps pace with the directory. | Acceptance tests for every definition; a named owner for each metric; the first agent scope decided and granted. |
| Q3 | Audit review asks: "active customer" changed on a Tuesday; which answers that week used the old definition, and who approved the new one? The logs hold questions and response times, not definitions or approvers. The quarter goes to receipts on every data path and a draft-diff-approve-commit flow with version binding. | Second business domain begins. Definitions, mappings, scopes and tests are reused; identities and permissions are remapped for the new environment. |
On the build path the business definitions, the part the team set out to improve, receive no attention after the first quarter. On the buy path they receive all of it. The build team is paying for the control plane in the currency of the only work that was specific to its company.
When is building the right call?
Building wins in some situations, and the decision memo should name them.
- The layer is your product. If you sell data or analytics infrastructure, the ontology layer is core IP, and buying it hands your differentiation to a supplier.
- You already run the control plane. A mature authorization service that every system calls, a central audit pipeline, and a change-management system the data platform already uses make the incremental cost of a semantic model small. Most organizations have one of the three. Few have all three.
- A hard constraint survives due diligence. A network isolation regime, a licensing policy (some organizations require open-source cores, and DataFocus's core is closed source), or a data residency rule that no available product satisfies.
- The scope is narrow and stays narrow. A single read-only agent over one well-governed warehouse, with no write-back, may need only curated views and the BI semantic model you already have. Be honest about whether the second agent is already in the backlog.
- You can staff it for years. The layer is not finished at launch. Without a standing team it becomes legacy within a couple of years.
If none of these holds, the default is to buy the control plane.
The split that works: own the definitions, buy the controls
The line runs between what is specific to your business and what is generic control machinery.
Own, regardless of what you buy:
- Object types and relationships: what a "customer", "order" or "deviation" is in your company.
- Metric definitions, each with a named business owner.
- Mappings from those objects to source systems.
- Acceptance tests for every definition.
- The decision of which agent receives which scope.
Buy, if a product meets your constraints:
- Permission propagation across sources, with uninformative refusals and immediate revocation.
- Receipts on every query.
- The draft, diff, validation, approval and commit workflow, with version binding.
- Audit logging of agent actions.
The test of a good purchase is whether the "own" list stays portable. DataFocus documents reuse in these terms: definitions, mappings, required scopes and tests can be reused across environments, while customer records, credentials, private documents and source ACLs stay where they are and identities and permissions are remapped. Its homepage puts the same point under "Migrate": definitions, mappings and policies should be exportable. Whichever vendor you evaluate, ask for that split in writing, and ask how you would export your definitions on the day you leave.
A decision rule for the architecture review
- Put the seven components from the first table on one page.
- Mark each one "in production today", "must build" or "vendor provides".
- If "must build" covers permission propagation, version-bound approvals and audit, and the layer is not your product, buy.
- If all three are already in production and shared by your other systems, building the semantic model on top is reasonable.
- Either way, assign a business owner to every definition before the first agent goes live. No vendor can do this for you, and no in-house build survives without it.
What buying costs you
Buying has its own risks. You adopt the vendor's model of permissions and approvals, which may not match how your organization works. You depend on its release cadence. With a closed-source core you cannot patch it yourself.
DataFocus distributes OT Flash and OT Heavy free for local deployment. The installers and release notes are on the download page and in the GitHub repositories for OT Flash and OT Heavy; each edition's release notes list system requirements and supported platforms. You still pay for servers, model calls and third-party services, and hosting and support follow the included service agreements. A free download lowers the cost of evaluating the control plane; it does not remove lock-in risk, which is why the portable definitions belong in the "own" list.
Next step
Mark the seven-row table in your next architecture review, then compare your marks against one documented implementation: the OT product brief and the permissions documentation.