Teams designing human-in-the-loop ERP workflows almost always start with one bucket labeled "requires human judgment." In production, that single label conflates two opposite operational states and breaks both of them. Either an authoritative decision already exists in your company's records and an AI agent should fetch it, draft the action, and ask a person to confirm, or no decision exists anywhere and the agent must stop, name the gap, and request a ruling. Treating both states the same wastes mechanical work on the first and invites quiet fabrication on the second.
Decision-exists versus decision-missing in operational gates
Consider what happens when a planner reviews a delayed sales order or a compliance lead assembles a statutory disclosure from ERP and finance tables. Whenever an escalation rule simply marks a step "manual review," engineers lose track of what the machine is actually supposed to hand the human.
- State 1, Decision exists (Fetch and draft): a credit threshold, approved supplier tolerance, or board-ratified target already sits in an authoritative table or signed policy. Ninety percent of the work is mechanical retrieval and math. The agent's job is to assemble the exact record citations, prepare the ERP update payload as a draft, and let the authorized manager confirm with one click.
- State 2, Decision is missing (Flag and ask): no policy covers a customer's bespoke consignment clause, or zero quantitative target was ever set for a metric. No prompt engineering can invent an unmade management decision. Here the correct output is never a prose draft. It is an explicit absence finding routed to the person with authority to decide.
Learning ERP workflows from workers without surveillance
Once teams separate fetch-and-draft from flag-and-ask, the next question is how to discover which rules planners, buyers, and controllers actually apply every day. A synthesis of over one hundred studies across process mining, agent skill induction, and cognitive task analysis highlights three hard truths.
- Clicks show what happened, never why: in cognitive task analysis studies, domain experts omit roughly seventy percent of their decision rules when explaining a routine unprompted. Recording screens captures UI clicks while missing the mental cue that caused a buyer to split a vendor order. A five-minute structured debrief on exception branches captures far more signal than weeks of passive video.
- ERP events are object-centric, not flat cases: flattening orders, production lots, deliveries, and invoices into a single case ID duplicates events and distorts counts. Modeling existing ERP change logs in Object-Centric Event Log (OCEL 2.0) shape links every user action to the exact business objects it read or modified without installing invasive desktop agents.
- Programmatic verified skills beat self-written prose: on the WONDERBREAD workflow benchmark, models drafted plausible procedures from demonstrations yet scored near-random correlation (Kendall tau 0.05) when judging whether a procedure was actually correct. Similarly, SkillsBench found that focused, human-curated 2-to-3 module skills lifted agent completion by 16 points whereas unverified self-generated skills yielded zero net gain. Every induced workflow must be verified by replaying it against a test database copy.
What GDPR and KVKK require before capturing workplace tasks
Commercial task-mining suites default to continuous screenshot and keystroke capture on employee PCs. Under both European Union guidance (WP249 Opinion 2/2017) and Turkish Personal Data Protection Board (KVKK) jurisprudence, that default carries severe legal and cultural risk.
Because employment involves an inherent imbalance of power, blanket employee consent is rarely a valid standalone legal basis unless declining carries zero adverse consequence. Continuous keylogging and screen recording fail proportionality tests when less intrusive alternatives exist, and workplace monitoring studies consistently show zero performance gain alongside higher employee stress. Under Turkiye's Law No. 6698 as amended by Law No. 7499, notice and consent documents must remain strictly separate, and sending screen payloads containing personal data to foreign model APIs triggers cross-border transfer safeguards.
A clean architecture for governed ERP skills
Putting verification, privacy, and MCP security together yields a practical four-step rollout that pairs naturally with our MCP security checklist for enterprise IT:
- Start with ERP audit tables and MCP logs: extract object-centric workflows from database change logs you already own, keeping continuous keyloggers and screen recorders off employee workstations.
- Use voluntary show-me sessions for external tools: when a step crosses spreadsheets or portals, let workers start and stop a task-scoped demonstration voluntarily, redacting personal identifiers on the device before review.
- Compile deterministic rules into ontology tools: put math, unit conversions, and threshold checks into code and role-scoped write gates, leaving the language model to handle intent mapping and cited drafts.
- Route Exists and Missing separately: auto-draft with provenance when policy exists, and surface a crisp decision request whenever company policy is silent.