ontoloji.orgOpen Reference Hub

Human-in-the-Loop Write Gates (HITL)

Preventing autonomous agents from executing direct UPDATE/INSERT statements on ERP/CRM databases, requiring typed action proposals validated against preconditions and approved by a named human role.

Why It Matters for Enterprise AI

Operational ROI comes from agents preparing and executing actions, yet an ungated agent can corrupt pricing tables or release quarantined lots in seconds.

Architectural Context & Execution Mechanics

Write gates let agents draft actions with full impact previews while keeping irreversible ERP mutations behind role-based human sign-off.

Typical Production Failure Without an Ontology

A support agent tricked by a prompt-injected customer email directly modifies an approved invoice address in the ERP.

Preconditioned action with threshold approval gate
action UpdateCreditLimit(customer: Customer, newLimit: Decimal) {
  precondition: customer.overdue_invoices == 0
  require_approval: role("CreditCommittee") when newLimit > customer.limit * 1.15
}
Related Engineering Guide

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

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

Read guide (8 min read)

Related Ontology Concepts

Open License (CC BY 4.0) · Cite This Page

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

[Human-in-the-Loop Write Gates (HITL) — Ontoloji.org](https://ontoloji.org/en/glossary/human-in-the-loop-write-gates)