WF-14 — AI-assisted Action
End-to-end process map for any AI-assisted task: authorize → minimize/retrieve → generate → validate → preview → approve/execute. Owner: Use-case Owner (per use case, e.g. Vikram Nair for UC-CRM-03) · applies to every AI use case registered in the Model & Prompt Registry.
Execution is never direct: an accepted AI draft (e.g. a journal entry) enters the standard business approval flow — it is not posted by the model (AI-07 acceptance criterion). Tools are allowlisted, least-privilege and server-validated; read-only is the default.
| Exception | Detection | Recovery | Evidence retained |
|---|---|---|---|
| Provider outage | Timeout 12s / circuit breaker open on Provider A | Route to Provider B (approved for data class C2) or deterministic non-AI path; retry idempotent | Fallback flag, provider + model snapshot, latency |
| Low confidence | Groundedness < 0.75 or citation coverage < 100% | Answer declined or qualified; manual work-queue task for the requester's team | Score, threshold version, declined output hash |
| Output rejected | User selects Reject in preview (reason mandatory) | No execution; rejection routed to Evaluation & Observability | Reason, edit distance, prompt version |
| Budget cap reached | Monthly spend at approved limit (AI-08) | Noncritical request deferred or served by lower-cost path, with explanation to user | Budget snapshot, deferral notice |
- Workflow ID
- WF-14 · AI-assisted Action
- Owner
- Use-case Owner (registry-assigned per use case)
- Version
- 3.1 · approved 28 May 2026 · effective 01 Jun 2026
- Trigger
- User invokes an AI action from any workspace
- Preconditions
- Use case registered & active; user entitled; tool allowlist published; provider healthy or fallback defined
- States
- Invoked → Authorized → Retrieved → Generated → Validated → Previewed → Approved / Rejected → Executed
- Terminal outcomes
- Executed via ERP workflow Declined (low confidence) Rejected by user
- Required evidence
- Prompt + model snapshot version, input hash, citations & source versions, validation result, approver identity, idempotency key
- Approval snapshot
- Authority resolved from policy snapshot at submission; re-evaluation only via named legal/security rule
| Control | Implementation | Checked at |
|---|---|---|
| Tool allowlist | Least-privilege, server-validated tools; read-only default; write tools require use-case grant | Authorize + every tool call |
| Citations | Retrieval filtered by user/company/branch/classification; citations + source versions returned; unsupported answers declined | Retrieve + Validate |
| Human gate | Payments, postings, payroll, permissions, legal commitments and compliance decisions require deterministic validation and human approval | Preview → Approve |
| Audit | Provider/model, prompt version, inputs, output, confidence, edits, approval, cost and latency logged under privacy policy | Every state transition |
| Idempotency | Idempotency key on proposed action; duplicate execution suppressed on retry | Execute |
| Prompt-injection defense | Retrieved text treated as untrusted data, never as instructions (AI-03) | Retrieve + Generate |
| Timer | Calendar | Warning | Breach | Escalation |
|---|---|---|---|---|
| Generation round-trip | 24×7 | > 8s | > 12s timeout | Circuit breaker → fallback path, gateway alert |
| Preview awaiting decision | Business (UAE, Sun–Thu*) | > 4h idle | > 1 business day | Draft expires; re-generation required (stale context) |
| High-risk approval pending | Business | > 4h | > 2 business days | Escalate to Use-case Owner, then module manager |
| Monthly AI budget | Calendar month | 80% consumed | 100% — cap | Noncritical requests deferred; Finance + owner notified |
* Business calendar “UAE-DXB-2026” — pause rules apply on public holidays; timers resume automatically.
| Step | Screen | Role |
|---|---|---|
| Authorize / preview / approve | Human Approval & Safe Action Boundary | Requester + approver |
| Routing, health, fallback | AI Gateway Console | Use-case Owner / platform |
| Prompt & model versions | Model, Prompt & Tool Registry | AI product owner |
| Retrieval scope & citations | Permission-aware RAG & Retrieval | Platform / audit |
| Quality, cost, rejections | AI Evaluation & Observability | Use-case Owner / risk |
| Full audit trail | Audit Explorer | Auditor (Grace Okafor) |
- 17 Jul 2026 · 10:02 · Omar HaddadInvoked “Draft payment reminder (EN/AR)” from Deal DL-2026-0114
- 10:02Authorized — RBAC + entitlement check passed
- 10:03Minimized inputs · permission-aware retrieval
- 10:04Generated via gateway — Provider A · pinned snapshot llm-2026-05-12
- 10:05Validated — schema pass · citations 5/5 · confidence 0.91
- 10:06Preview shown with citations & EN/AR diff
- 10:08Human gate — approved by Omar Haddad
- 10:11Audit record sealed
Static render mockup — no live data. Source: ERP Modern Development Specification v2.0 (§8.2 Table 14, §8.3, AI-07) · Covers: WF-14, AI-07.