ontoloji.orgOpen Reference Hub
Agent Engineering8 min read·Updated: 2026-12-02·Türkçe sürüm →

Agent Harness vs. Ontology: Separating Execution Loops from Business Meaning

In software engineering, Agent = Model + Harness. In enterprise production, Enterprise Agent = Model + Harness + Ontology.

Executive Summary — Key Takeaways
  • 01The agent harness governs HOW an agent runs: tool loops, context compaction, retries, sub-agents, and streaming.
  • 02The ontology governs WHAT your business means and WHAT is permitted: entity resolution, joins, status codes, RBAC, and write-gates.
  • 03Embedding SQL rules and permission warnings inside harness system prompts creates multi-agent drift and security holes.

1. Why Coding Harnesses Look Self-Sufficient—Until They Hit ERP Data

Modern agent harnesses navigate 100,000-line codebases impressively because source code carries explicit names and a compiler or test suite immediately flags mistakes. Enterprise databases offer neither: cryptic column names carry no inline explanation, and a wrong LEFT JOIN returns plausible-looking inflated revenue with zero errors.

2. Clean Architectural Separation Over MCP

Keeping business semantics out of harness prompts makes your entire stack model-agnostic and harness-agnostic:

Anti-pattern (rules in prompt) vs. Governed Ontology over MCP
// ANTI-PATTERN: Stuffing domain logic into harness prompts
systemPrompt = "Remember: STAT=9 is cancelled, never join ORD_HDR directly to PAYMENTS,
and hide UNIT_COST unless the user says they are in Finance..."

// CLEAN ARCHITECTURE: Harness runs loop; Ontology enforces semantics & RBAC
const observation = await mcpClient.callTool("ontology.sales_backlog", {
  segment: "STRATEGIC",
}); // Principal identity, chasm-trap prevention & field masking enforced server-side
Litmus Test

If changing your company’s definition of "Active Customer" requires editing more than one prompt file, business semantics have leaked into your harness layer.

Glossary Concepts Referenced in This Guide

Open License (CC BY 4.0) · Cite This Page

Free to reference in engineering docs, ADRs, articles, and course syllabi with attribution.

[Agent Harness vs. Ontology: Separating Execution Loops from Business Meaning — Ontoloji.org](https://ontoloji.org/en/guides/agent-harness-vs-ontology-architecture)

More Guides in This Series

Core Architecture
How AI Uses an Ontology
9 min read
Data Engineering
ERP, CRM & MES Patterns
10 min read
Strategy & Governance
30-Day Ontology Strategy
7 min read
ERP Integration
ERP Ontology Integration Guide
11 min read
ERP Data Engineering
Logo Tiger, Nebim V3 & Turkish Unicode Traps
14 min read
Agent Governance
Adversarial Verification, Permissions & Compaction
13 min read
Verification Engineering
Absence-Aware Gates & Ratio Reconstruction
13 min read
Provenance & Governance
Draft vs. Normative Provenance Hygiene
12 min read
SAP & Protocol Architecture
SAP BTP, Cloud Connector & ORD Ontology
11 min read
ERP Write-Safety
Logo REST, Nebim Integrator & UBL-TR Safety
12 min read
Platform Architecture Comparison
Cortex, Genie, dbt & Cube vs. Ontology
12 min read
Systems Engineering & Forensics
ERP Integrator Anti-Patterns & Forensics
13 min read
Platform Architecture Comparison
Fabric IQ, D365 MCP & SAP Joule vs. Ontology
12 min read
Retrieval & RAG Architecture
PageIndex Vectorless Tree RAG vs. Vector DBs
11 min read
Platform Architecture Comparison
Atlan, Stardog & Neo4j vs. Ontology
12 min read
Statutory & Financial Governance
GİB UBL-TR, VUK/TMS 29 & KVKK Ontology
13 min read
Agent Memory & Ontology Architecture
Cognee & Zep Graphiti vs. Ontology
11 min read
Protocol & Multi-Agent Architecture
MCP vs. OpenAPI & Specialist Agents
12 min read
Protocols & Standards
MCP 2026-07-28: Tasks, Events & Apps
13 min read
Agent Architecture & Governance
Agent Harness Engineering Rubric
12 min read
Agent Architecture & Governance
Multi-Agent Task Boards & Mailboxes
12 min read
Verification & Security
Generate-Evaluate-Repair & Observers
12 min read
Verification & Security
NSA MCP Security & CIMD vs. DCR
13 min read
Agent Architecture & Governance
OpenTelemetry for AI Agents & MCP
11 min read