Ontology in FDE Interviews: The Domain Business Contract Layer
Learn how ontology serves as a domain business contract layer in FDE delivery, connecting business semantics, entity relationships, rules, and permissions. This article explains its distinction from database schemas and knowledge graphs, its role in a five-step delivery loop, and a contract-driven approach to implementing and validating agent operations.
In FDE interviews and architecture discussions, ontology is often misunderstood. Some candidates equate it with a database schema, others with a knowledge graph, and others treat it as a detail of retrieval-augmented generation (RAG) or agent orchestration.
In the approach discussed here, ontology has a higher-level, more stable role: it is the domain business contract layer. It formalizes business terminology, entity relationships, rules, operational boundaries, and acceptance criteria. This makes enterprise data not just queryable, but understandable, connected, suitable for rule-based reasoning, and safe to act on.
1. Clarifying FDE: A Role and a Delivery Framework Are Not the Same
FDE can refer to two different concepts in this discussion:
- Forward Deployed Engineer: A role focused on working directly with business teams to understand problems, quickly build working solutions, and iterate.
- Field Delivery Engine: A framework for systematizing field delivery. It translates business playbooks, standard operating procedures (SOPs), and constraints into system specifications, creates delivery units that can evolve over time, and provides a practical implementation layer for agent architectures.
In an interview, describing FDE simply as “on-site development” misses the central point. FDE is not a single technology. It is a people-centered delivery approach organized around explicit contracts and a closed feedback loop.
2. Ontology as the Domain Business Contract Layer
An ontology is a semantic model that formally defines the entities, relationships, and constraints in a business domain. It is more than a data dictionary or a knowledge graph that only stores instances and their connections.
More precisely, it defines the contract for how the business domain is understood and operated on:
- Which entities exist?
- How are those entities related?
- Which rules must hold?
- Which operations require authorization?
- Which state transitions are valid?
- How are metrics defined consistently?
- What counts as an exception or boundary condition?
A useful distinction is:
- Database tables describe what is stored.
- API contracts describe how interfaces are called.
- Knowledge graphs describe how instances are connected.
- Ontologies define the business semantics and constraints that must hold.
Ontology therefore connects data, rules, knowledge bases, and agents. It is also a valuable reusable asset to capture during field delivery.
3. Five Questions the Business Contract Layer Must Answer
Are business terms consistent?
Different systems may define “customer,” “opportunity,” “contract,” or “order” differently. The ontology should establish shared definitions and mappings for synonyms and aliases.
Are entity boundaries clear?
The model must specify the relationships among customers, contacts, opportunities, contracts, orders, and delivery records. It must also define how primary keys map across systems and how cross-system identifiers are disambiguated.
Can constraints be verified?
For example:
- A contract must be associated with a customer and an opportunity.
- An order amount must not exceed the contract limit.
- Access to sensitive fields must satisfy role-based conditions.
These requirements must be expressed in a form that can be checked.
Are state transitions valid?
The state machine behind a sales SOP—including stage progression, approval, rollback, and termination—should be represented explicitly in the ontology.
Are operations safe?
Read, write, export, and approval actions need field-level or row-level permissions, audit records, and human fallback mechanisms.
4. Four Core Capabilities: Understanding, Linking, Reasoning, and Safe Operations
Understanding Through Shared Semantics
Without an ontology, similarity-based RAG can mix materials that use different business definitions. With an ontology, retrieval can be filtered by entity type, business stage, and permission scope. Answers can then be traced to both contract definitions and knowledge sources.
Linking Through Relationships and ID Mapping
Field delivery frequently involves heterogeneous systems with inconsistent definitions. Relationship models and disambiguation rules connect customers, opportunities, contracts, and orders into an explainable chain.
This helps an agent determine which entity types to query and which relationships to follow.
Reasoning Through Constraints and Rules
Rules may include hard constraints, state-transition conditions, metric definitions, and exception criteria.
Reasoning here does not mean making unsupported guesses. It means performing deterministic validation or bounded inference against an auditable business contract.
Safe Operations Through Explicit Boundaries
An agent should not have unrestricted write access. Its operations should be governed by authorization checks, parameter validation, pre-write confirmation, post-write auditing, and human-in-the-loop (HITL) fallback.
The result is data that can be used in a controlled way, rather than merely queried.
5. Where Ontology Fits in the Five-Step FDE Delivery Loop
Step 1: Domain Alignment
Work with business teams to align terminology, entities, rules, constraints, and acceptance criteria.
Outputs include:
- A business glossary
- An entity relationship diagram
- A constraint inventory
- Boundary and exception scenarios
Step 2: Shape the Problem
Turn ambiguous requests into a verifiable solution, a defined proof-of-concept (POC) scope, and baseline metrics.
Use an ontology slice to specify exactly which entities and rules the delivery covers.
Step 3: Build & Adapt
Build on standard products to implement integrations, RAG or agent orchestration, knowledge packages, and interface adaptations.
At runtime, use the ontology to guide retrieval filtering, validate tool parameters, and enforce state-machine constraints.
Step 4: Ship & Validate
Establish evaluation datasets, HITL fallback, and ongoing observability metrics. Validate business value and feed failure cases back into revisions of the contract.
Step 5: Feedback & Productize
Feed recurring field problems, shared business models, and SOPs back into the product. Capture reusable templates so that subsequent projects can be delivered faster.
6. Engineering Implementation: A Reference Structure for Contract-Driven Delivery
An ontology can be represented as a declarative contract and validated during agent execution. The following illustrative fragment shows entity definitions, relationships, constraints, and permissions:
domain: sales_deliveryentities:Customer:keys: [customer_id]attributes: [name, industry, region]Opportunity:keys: [opportunity_id]relations:belongs_to: CustomerContract:keys: [contract_id]relations:signed_by: Customerfrom_opportunity: Opportunityconstraints:- id: contract_must_have_customerrule: Contract.customer_id exists- id: order_amount_le_contractrule: Order.amount <= Contract.credit_limitpermissions:- resource: Customer.contactaction: readcondition: role in ["sales_owner", "sales_manager"]
An agent can process requests through a plan–validate–execute–audit sequence:
def handle(query, context):plan = planner(query, context.ontology)if plan.requires_write:check_permission(plan.actor, plan.action, context.ontology)validate_constraints(plan.payload, context.ontology)result = execute(plan)audit(plan, result)return result
This contract layer also needs supporting infrastructure.
A traceable business knowledge base should hold unstructured materials, with entity mappings, versions, and source metadata attached to each passage.
Evaluation datasets should cover normal workflows, boundary cases, and unauthorized operations. Observability should track answer traceability, constraint interception, human takeover, and business acceptance metrics.
How to Explain This in an FDE Interview
Start with a one-sentence definition:
Ontology is the domain business contract layer that defines business entities, relationships, rules, and operational boundaries.
Then distinguish it from a knowledge graph, a data dictionary, and an API contract. Finally, use the five-step delivery loop to explain how the contract is implemented, validated, and refined through feedback.
This structure demonstrates both conceptual understanding and engineering judgment.
The core of FDE is not stacking more models. It is using ontology to establish a domain business contract layer that gives delivery clear boundaries, constrains agent behavior, and makes enterprise data understandable, connected, suitable for rule-based reasoning, and safe to operate on.
