Declared Action Type
A named, atomic, typed ontology transaction contract (Draft -> Human Evaluation -> Official ERP API Import) that packages caller RBAC submission criteria, multi-system pre-flight validators, out-of-context human approval nonces, and official ERP business-object adapters.
Why It Matters for Enterprise AI
Exposing raw SQL INSERT/UPDATE statements or generic REST POST endpoints to AI agents invites indirect prompt-injection side effects and partial ledger corruption. Declared Action Types restrict an agent’s write surface strictly to audited business verbs.
Architectural Context & Execution Mechanics
In an operational ontology, state mutations are never modeled as ad-hoc database queries or raw HTTP calls. Every permitted mutation is declared as a versioned Action Type combining five enforceable guarantees: (1) strongly typed object references and HMAC-signed deterministic FunctionOutputRef inputs, (2) submission_criteria enforcing caller intersection RBAC (Human ∩ Agent) and mandatory security markings, (3) pre_flight_validators verifying cross-system business invariants, (4) a staged human approval gate, and (5) an idempotent ERP business-object adapter.
Pre-flight validators evaluate cross-system operational readiness before staging any draft—for example, verifying both that no allocated lot sits in QMS quality quarantine and that the target accounting date does not fall inside a sealed statutory e-Defter Berat ledger period.
Crucially, the single-use cryptographic approval nonce is delivered over an out-of-context approval UI or signed webhook so it never enters the LLM’s JSON context window. Once signed by an authorized human approver, the mutation executes with an Idempotency-Key and W3C traceparent lineage span against official ERP adapters (SAP BAPI BAPI_SALESDOCUMENT_CHANGE, Logo Objects REST, Nebim V3 Integrator).
An untrusted supplier invoice PDF injects adversarial instructions into the agent context window, tricking a generic REST/SQL tool into overwriting vendor IBAN records (LG_XXX_CLCARD.IBAN / LFBK) or releasing credit-blocked orders without quality or finance verification.
action_type release_credit_blocked_sales_order {
lifecycle: DRAFT_STAGED -> PENDING_HUMAN_EVALUATION -> ERP_IMPORTED
parameters: {
sales_order: ObjectRef<SalesOrder>,
exposure_calc: FunctionOutputRef<calc_credit_headroom_v2>,
audit_reason: String(minLength: 15)
}
submission_criteria: principal.role in ["FINANCE_CONTROLLER"] && scope("ontology:action:stage")
pre_flight_validators: [
edefter_period_status(sales_order.date) == "OPEN",
count(sales_order.allocated_lots[qms_status == "QUARANTINE"]) == 0,
verify_hmac(exposure_calc.signature)
]
human_approval_nonce: OUT_OF_CONTEXT_UI (ttl: 300s)
erp_adapters: {
sap_s4hana: BAPI_SALESDOCUMENT_CHANGE + BAPI_TRANSACTION_COMMIT,
logo_tiger: PATCH "/api/v1/salesOrders/{native_ref}" (Logo Objects REST),
nebim_v3: POST "/IntegratorService/PostModel" (ModelType: OrderRelease)
}
}Operational Ontology Primitives: Declared Action Types, Multi-Role Link Types, Polymorphic Interfaces & Deterministic Functions
An open, vendor-neutral engineering specification for operational AI ontologies: unifying Data, Logic, Action, and Security across SAP S/4HANA, Logo Tiger, Netsis, and Odoo without ad-hoc SQL mutations or collapsed foreign-key graphs.
Read guide (15 min read)Related Ontology Concepts
Free to reference in engineering docs, ADRs, articles, and course syllabi with attribution.
[Declared Action Type — Ontoloji.org](https://ontoloji.org/en/glossary/declared-action-type)