Agent Harness Series — Part 3 of 7

Agents and Ontologies: Why Semantics Matter

A harness can stop an agent breaking the rules. It cannot make the agent understand the business. That's why we need ontologies.

An AI agent navigating your organisation is a lot like a driver navigating a city. The question is what you’ve given it to navigate with.

Turn-by-turn directions will get you to one address. They’re useless the moment the road is closed, because they encode a single route, not an understanding of the city. A map is different. A map tells you what the streets are, how they connect, and where you sit in relation to everything else, so when the unexpected happens you can reason your way to a new route. The difference isn’t detail. It’s meaning.

The first two articles in this series argued that agent harnesses are an enterprise architecture problem, and showed what governed agents look like inside a regulated bank. Both rested on the same mechanism: a harness that enforces controls — risk gates, approval routing, audit capture. Controls are turn-by-turn directions. They tell the agent what it may and may not do. But the moment an agent meets a situation the rules didn’t anticipate — and in any real enterprise that moment arrives daily — a rulebook has nothing left to offer. This article is about what does.

Why rules aren’t enough

Consider an AML agent reviewing transactions for a major bank. A rule-based harness can enforce a clear instruction: flag any transaction over $10,000 to a jurisdiction on the high-risk list. As long as the transaction matches the rule, the agent behaves. But rules are brittle at their edges. A customer makes four transfers of $9,500 over a week to an entity that isn’t on the high-risk list itself, but is a subsidiary of a holding company that is. Is that inside the rule or outside it? The rulebook is silent, and a silent rulebook forces the agent to either refuse everything or guess.

An agent that understands the domain doesn’t guess. It knows that structuring is the deliberate splitting of transactions to avoid reporting thresholds, that beneficial ownership traces through corporate hierarchies, that the subsidiary’s parent triggers the jurisdiction risk, and that the pattern across four transactions is more significant than any single one. None of that was written as a rule. It was derived from meaning — from knowing what these things are and how they relate to each other.

The compliance chatbot in Part 2 could enforce the bank’s published controls. But could it reason about whether a novel transaction pattern constitutes structuring under the bank’s AML obligations? That takes more than rules. It takes meaning.

A rule tells an agent what it may not do. An ontology tells it what things are.

What it means to bind an agent to an ontology

An ontology is a formal model of a business domain: its concepts, the relationships between them, and the constraints that must always hold. It’s the difference between a list of permitted actions and a map of the territory those actions move through. Binding an agent to an ontology means the agent reasons within that model, rather than against a flat list of do’s and don’ts.

This is the same ontology that, elsewhere on the GRL Semantic AI Platform, generates the APIs, the data pipelines, and the application schemas. Define once, generate everything — and govern the agent with the very same definition. The agent isn’t handed a separate, hand-written rulebook that will drift out of step with the systems around it. It’s grounded in the single source of truth for the business, so what the agent understands and what the platform runs are the same thing.

This is the semantic layer argument the first article promised to return to. A general-purpose model learns the rules of language and the world at large. A harness enforces the workflows of one organisation. Neither supplies what sits between them: the meaning of this business — what a “critical data element” is here, why an “SME lending product” triggers particular obligations, how “beneficial ownership” traces through a corporate hierarchy. That meaning is organisational, not general, and no larger model will absorb it, because it isn’t general knowledge. It’s your knowledge.

Three things meaning gives an agent that rules can’t

01 — Concepts

An ontology tells the agent what a thing is. Transaction 4417 isn’t a row in a ledger; it’s a cross-border payment, initiated by a corporate customer, routed through a correspondent bank, subject to a jurisdiction risk classification. When the agent reasons about the transaction, it reasons about all of that, not just the fields it happened to be handed.

02 — Relationships

Meaning lives in connection. The agent knows that the payment originates from a customer, whose beneficial owner is a holding company, which operates in a jurisdiction flagged under the bank’s AML framework, whose obligations are owned by the Financial Crime Compliance team. It can traverse that chain to work out who must be told and what controls apply — a question no isolated rule can answer.

03 — Constraints

The ontology states what must always be true: a reportable transaction must have a completed risk assessment, a credit decision must trace to an authorised decision-maker, a regulatory return must reconcile to its source data. These aren’t permissions the agent checks once and forgets. They’re invariants it can neither propose nor approve a way around.

Together these turn an agent from a compliant rule-follower into a system that can act correctly in situations nobody enumerated in advance — which is the only kind of situation that matters at enterprise scale.

Semantic grounding vs a smarter model

The instinct across the industry is to solve agent reliability by reaching for a better model — bigger context windows, sharper reasoning, fewer hallucinations. Those advances are real and worth having, but they answer a different question. A more capable model reasons more fluently about the world in general. It doesn’t, and can’t, reason about the specific meaning of your business, because that meaning was never in its training data. Your AML jurisdiction classifications, your beneficial ownership chains, your CPS 234 control mappings — none of that is general knowledge. Grounding isn’t something you prompt your way to. It’s an architecture you build.

An ontology-bound agent is that principle applied to autonomy: AI that’s grounded because it reasons within your model, governed because that model carries your constraints, and auditable because every step traces back to a defined concept rather than a black-box inference.

The limits — an ontology is only as good as its modelling

Ontology-binding isn’t free, and it isn’t magic. An agent grounded in a shallow or incorrect model will reason confidently to wrong conclusions, the same way a beautifully drawn map of the wrong city will lead you astray with total conviction. The ontology has to be built, validated, and maintained by people who understand the domain, and that’s genuine work. This is exactly why the harness and the ontology belong to the enterprise architecture function, rather than to a development team improvising in isolation.

But the cost is lower than it first appears, because the ontology isn’t a new artefact created solely to govern the agent. In a Semantic AI Platform it already exists — it’s the model driving the pipelines, the APIs, and the governance records described earlier in this series. Binding the agent to it is reuse, not additional overhead. The organisation defines its meaning once and gets a governed agent as one more thing that meaning drives.

An agent constrained only by rules is following directions. An agent bound to an ontology is reading the map. In banking, healthcare, defence, and government alike, the difference shows up precisely where it matters most: in the situations nobody wrote a rule for, and in the security and accuracy of your agents when solving real business problems.


This is the third in a series on enterprise agent harnesses. The first two articles establish the governance gap and show it inside a regulated bank. Next: provenance, audit, and the agent decision trail — the record that makes a grounded agent accountable.

Worth the tokens?
👍
👎