Skip to content
Naditu
Get started
04 · ERP APIs · ReplayMCP 2026-07-28 · On-Premises

Write Gates & Versioned Change Control

Writing directly into ERP tables with INSERT or UPDATE statements bypasses tax calculation, stock reservation, credit-limit checks and statutory e-invoice numbering. Naditu blocks all SQL mutations and routes every operational or ontology change through typed API gates and versioned approvals.

SQL mutations
Permanently disabled (read-only DB credentials)
Write execution
Official ERP APIs after named human approval
Ontology releases
Versioned diffs with historical query replay & 1-step rollback
01 · Why raw SQL writes are forbidden

Executing approved writes through official ERP business objects

Enterprise ERPs enforce thousands of invariants inside their application layer: lot/serial allocation, BOM backflushing, VAT/withholding rounding, GİB UBL-TR e-invoice sequences and SAP authorization objects. An AI agent issuing a direct SQL UPDATE corrupts ledger integrity in milliseconds.

In Naditu, database connections use strictly read-only accounts or replicas. When an assistant proposes a business action—such as creating a purchase order draft, updating a promised delivery date or releasing a block—Naditu validates the payload against the ontology schema, pauses for named human approval and executes the write exclusively through the vendor’s supported API.

  • Target platformSAP S/4HANA
    Read path (zero-copy)CDS Views & HANA read replica
    Governed write-gate APIRAP OData V4 business objects & BAPI
    Invariants preserved by APISAP DCL authorizations, ATP check, FI/CO document posting
  • Target platformLogo Tiger 3 / Netsis
    Read path (zero-copy)SQL Server read replica (period-routed)
    Governed write-gate APILogo Objects REST / NetOpenX
    Invariants preserved by APIStock lot tracking, cari risk ceiling, e-Logo UBL-TR numbering
  • Target platformNebim V3 / ERA
    Read path (zero-copy)SQL Server read replica
    Governed write-gate APINebim V3 Integrator REST API
    Invariants preserved by APIColor/size matrix allocation, store POS sync, tax rules
  • Target platformMicrosoft Dynamics 365
    Read path (zero-copy)Read replica / Dataverse views
    Governed write-gate APIDynamics OData V4 / Business Central API
    Invariants preserved by APIPosting groups, dimension validation, approval workflows
Examples of official ERP write-gate execution targets
02 · Human-in-the-loop gate

Named approval workflow before touching the source system

When an interactive assistant calls a write-gated action, Naditu never touches the ERP immediately. Instead, it computes a pre-flight diff against live read-replica state (confirming customer terms, item codes and open tolerances) and creates an approval ticket bound to the responsible role.

Only when the named approver (for example, Purchasing lead or Planning lead) signs off with their own SSO identity does Naditu invoke the ERP API and record both the requester and approver principals in the immutable audit log.

Write-gate approval envelope · purchase order creationJSON · On-Prem
{
  "gate_id": "wg_20261204_8841",
  "status": "awaiting_named_approval",
  "requested_by": {
    "role": "purchasing.buyer",
    "via": "Claude MCP"
  },
  "required_approver_role": "purchasing.lead",
  "target_connector": "sap-s4hana-rap-odata-v4",
  "business_object": "API_PURCHASEORDER_2",
  "pre_flight_checks": {
    "vendor_active": true,
    "account_matched": "Mandel Tooling",
    "items_verified": 3,
    "sql_mutation_used": false
  }
}
03 · Ontology changelog & query replay

Versioned ontology changes with historical query simulation

Changing a status-code definition, a table join or a masking rule alters every future AI answer across every connected assistant. Editing ontology definitions in place without review creates silent regressions.

Naditu treats ontology updates like production code releases: models or engineers may propose a Term, Link or Rule change, automated replay simulates the candidate version against historical questions to surface what stayed the same, what changed and what became withheld, a named domain owner approves it, and any live version can be rolled back in one step while preserving the full version ledger.

v15Waiting for approvalLink
60 past queries replayed

Link MES work orders (WO_HDR.LINREF) to ERP order lines (ORD_LIN.REF)

Proposed by
Naditu, from plant planning report
Named approver
Planning lead
54 same answer6 answer changed0 now withheld

Six historical questions about late production orders now resolve end-to-end instead of returning incomplete lineage.

Staged candidate; activates only upon Planning lead approval.

v14LiveRule
60 past queries replayed

Restrict Item.unit_cost visibility to Purchasing and Finance roles

Proposed by
IT Security
Named approver
Finance lead
51 same answer0 answer changed9 now withheld

Nine past answers requested by roles outside Purchasing and Finance now mask unit_cost before serialization.

Reversible to v13 in one step; v14 remains in the permanent audit ledger with rollback reason.

v13Earlier versionTerm
60 past queries replayed

Confirm ORD_HDR.STAT = 4 means "shipped, not yet invoiced" rather than "closed"

Proposed by
Naditu proposal, corrected by Sales
Named approver
Sales lead
48 same answer12 answer changed0 now withheld

Twelve historical receivable and fulfilment answers that previously undercounted shipped unbilled orders were corrected.

Superseded by v14; preserved in version ledger for audit replay.

Engineering deep dives

Related articles from the blog

2026-11-29

Why AI agents should read ERP data before they write

Reading and writing are different risks. How Anthropic and Infor separate them, and what a separate write permission should mean for a plant.

2026-12-03

Human-in-the-loop AI splits into two ERP workflows

Why requires human judgment hides two distinct states in ERP workflows, how task mining turns logs into agent skills, and what GDPR and KVKK permit.

2026-12-03

Inside Claude for Manufacturing: 17 skills and safety rules

Inside Anthropic Claude for Manufacturing 1.0: 12 atomic skills, 5 chains, 4 RFQ approval gates, SENDABLE leak fences, and why live plants need an ontology.

Follow what we ship.

New connectors, product updates and what we learn rolling AI out in enterprises, sent to your inbox.

Book a demo

Tell us where to reach you and we will reply with times.