AI & Automation

Why AI Pilots Stall at the ERP: Five Controls Before an Agent Writes

From AI pilot to production, five controls make ERP write access safe to approve: scoped rights, approval tiers, audit log, tested rollback, exception queue.

Dragan Gavrić
Co-Founder & CEO
| · 9 min read
Why AI Pilots Stall at the ERP: Five Controls Before an Agent Writes

An AI pilot stalls at the ERP when nobody can answer one question: what happens when the agent writes something wrong into the system of record? Five controls answer it: scoped write rights, approval tiers, a before-and-after audit log, a tested rollback and a human exception queue.

Taking an AI pilot to production means moving it from reading to writing. In our judgment the model is rarely what stops it. Nobody will sign for a write they cannot limit, trace or undo, and these five controls turn a write into something a COO can sign for.

Why does an AI pilot or proof of concept stop short of production?

Picture an order intake pilot. It reads orders arriving by email and PDF, matches customers and products, and drafts each order, and the demo looks right. Then someone proposes letting it write into the ERP, the order system or the quote system, and nobody signs. The steering meeting asks why it is still a pilot.

An AI proof of concept is judged on whether the drafts are good. Production is judged on what the worst write costs. A wrong draft gets caught by the person reading it, while a wrong write can reprice an order, release it to the warehouse or reach a customer before anyone looks. Some processes are fine as drafts a person pastes in.

None of the five controls is new. OWASP’s entry on excessive agency in LLM applications names excessive functionality, permissions and autonomy as root causes. It advises limiting permissions to the minimum necessary and requiring human approval for high-impact actions (OWASP, LLM06:2025, October 2026). In our judgment the hard part is giving each control an owner and a date. For a phased path from pilot to production, see AI agents for enterprise automation.

Control 1: How much write access should an AI agent have in the ERP?

Symptom. The agent writes through an admin login or a shared integration account, so the ERP sees one more power user.

Cause. Access was granted so the pilot could read, then widened the week a demo needed one more field. It never narrowed again.

Fix. Give the agent a dedicated service identity, cut to the task:

  • Object and field scope. It may create a draft quote line. It may not touch price lists, credit limits or bank details.
  • No delete. Canceling is a status change that a person can reverse.
  • Rate limits. A looping run stops after a number of changes you can fix by hand.
  • Separate credentials. One set for the sandbox and one for production, so a test run cannot reach live data.

If your ERP cannot scope rights that finely, put a small service in front of it that holds the credentials and exposes only approved actions.

One-line test. Sign in as the agent in your test system and try to delete a sales order. If it works, the scope is too wide.

Control 2: Which writes should need a human to approve them?

Symptom. Either everything needs a human, so the agent saves no time, or nothing does, so the first wrong write is found by a customer.

Fix. Tier writes by how reversible they are and what they are worth. This table is an illustration:

Tier Which writes Illustration
Auto Reversible and low value Attaching an extracted document to an order record
Auto with notice Reversible, medium value Creating a draft order, with a daily digest to the owner
Human approval Hard to reverse, or above a value limit Confirming an order, changing a price, sending anything outside the company

The business owner sets the thresholds, not the vendor and not the engineers: whoever answers for margin or the order book decides what low value means. Start every kind of write in the strictest tier, and promote it only when the audit log shows approvers rarely change it.

Arhivix, our own system that automates document processes and is used by 500+ companies in Serbia and the region, gives one example of roles and approvals. Its permissions sit on four built-in roles: administrator, member, developer and viewer. In Arhivix Enterprise, approvals, routing and notifications are set up around how a customer’s teams already work, not the other way round. An agent’s role and approval path should be set up the same way.

Control 3: Can you see what the agent changed, and what was there before?

Symptom. After a bad write, nobody can say who or what changed which field. If the agent shares an account, the system’s history shows only that the account saved the record.

Fix. Record the following for every write the agent proposes or makes. This is a template of one entry:

When:      date and time
Record:    order, quote or customer, and the field
Input:     the email, PDF or message acted on
Version:   model version and rule version
Proposed:  the value the agent proposed
Approver:  a named person, or the tier rule
Before:    the value that was there
After:     the value that was written
Batch:     the run this write belongs to

Then make the log queryable by the finance or operations owner, not only by engineers, with filters for customer, field and date.

Arhivix shows the shape. It records every view, edit, download, share and permission change with the user, a timestamp and the IP address, and customers cannot edit the logs. It also offers a REST API and webhooks for integrations. In an ERP, an agent likewise belongs with the integrations, under its own identity.

If your pilot extracts fields from documents, see our guide to AI document processing and a per-page IDP bill against your own pipeline.

Control 4: Have you ever undone a bad batch of agent writes?

Symptom. Rollback exists only on a slide: the plan is to restore from backup, a disaster recovery tool that would also erase the day’s legitimate changes.

Fix. Four parts:

  • Idempotent writes. Sending the same write twice has the same effect as sending it once, so a retry does not post an order line twice.
  • A per-batch undo. Every run gets a batch ID, so you can undo one run from the Before values in the audit log, skipping any field a person has changed since.
  • A drill with a named person. On a test copy, let the agent make a bad batch on purpose, then undo it.
  • A list of what cannot be undone. Sent emails and shipped orders belong in the human approval tier.

An analogy from our own release practice, not a claim about agents. For BELGRAND ScoreMaster we built the mobile app and, later, the desktop software that drive live LED scoreboards at sports events. Desktop releases go through more than 1,700 automated tests and a beta channel, with the previous version kept for rollback. Know the way back before the change goes out.

Control 5: Where do the cases the agent is unsure about go?

Symptom. Low-confidence cases fail silently, or the agent writes its best guess anyway.

Cause. The pipeline has two outcomes, write or fail, so doubt has nowhere to go and the pilot looks better than it is.

Fix. Give every case the agent will not write a visible queue to land in. Each item carries:

  • a reason code, for example unknown customer, price outside the list, conflicting documents or a missing field;
  • an owner, either a named person or a role;
  • a target time to clear it.

Review the queue weekly. The reason codes show which rule the agent keeps tripping over, so the queue is a safety net today and a list of what to automate next. Our guide to AI workflow automation covers where to draw the boundary between automation and review.

Is there an example of AI quoting that reached production?

One real example is FENIX TEAM PLAST, a windows and doors manufacturer in Serbia, for which we built AI-assisted quoting. Quote turnaround went from about three days to the same day. Quoting accuracy is above 99%, fabrication defects fell 35%, and payback came in under four months. It is integrated into the manufacturer’s existing ERP and CRM (case study).

Scope, stated plainly: there is no LogiKal, Klaes, FeneVision or Soft Tech connector in this build. It is also a quoting system, so we do not offer it as a case of an agent writing into an ERP.

The useful question for any quoting build is what a quote needs before it may leave the system, because a quote is where a draft becomes a promise to a customer. In our judgment the answer has four parts: every price traces to a current price list, the configuration can be built, anything outside the rules has a named approver, and a record shows what was sent and who approved it. This is our judgment, not a description of the FENIX build. The last two are controls 2 and 3, applied to a document.

How do you score your own pilot against the five controls?

Mark each row yes or no. In our judgment a missing control is often why the pilot is stuck.

Control Question to ask If it is missing
1. Scoped write rights Does the agent have its own identity, limited to named objects and fields, with no delete? A wrong write can reach anything the account can, so the damage has no limit.
2. Approval tiers Is every kind of write assigned a tier, with thresholds the business owner signed? Either the agent saves no time, or a customer finds the first error.
3. Audit log Can the operations owner see input, version, proposed value, approver and previous value for any change? Nobody can say what changed, so nobody will approve the next write.
4. Tested rollback Has a named person undone a deliberately bad batch on a test copy? The rollback exists only on paper, so nobody will sign.
5. Exception queue Do unsure cases land in a queue with reason codes, an owner and a target time? Doubt is invisible: cases fail silently or get written anyway.

Bring this to the steering meeting:

  • A named owner and a date for each control
  • The tier table for the first kind of write, signed by the business owner
  • One sandbox audit entry with the Before value filled in
  • The result of a rollback drill run by the named person
  • A week of exception queue reason codes

Our suggestion: IT owns the scope, the business owner owns the tiers, finance or operations owns the log, engineering owns the drill and operations owns the queue. Then ask for one kind of write, in one tier, with its log and its undo in place, not for write access in general.

What if an AI system is already live?

Some teams are past the pilot: an AI system already runs in production and already writes. Most of what we run, we built from the first line. So this is what we would check, not a story about someone else’s system.

A Technical Review takes one to two weeks with read-only access. For a system with an AI component, the map would show every account, API key, integration and scheduled job that can change the system of record. The list of risks would note which of the five controls each of those paths lacks, judged from what we can read. Read-only means we run no drills against live systems.

You get a map of the system and a list of its risks, worst first, then a plan and a fixed price for what comes next, and you can stop there. The fee is agreed in writing before we start.

What is a sensible next step?

If your pilot is stuck, score it with the table above and take the missing rows to the next steering meeting. If an AI system is already running in production, our ownership page explains the Technical Review, and you can contact us about it. For a new build, see our AI development service.

Want Your System Read Before Anything Changes?

Our Technical Review takes one to two weeks with read-only access. You get a map of the system and a list of its risks, worst first, then a plan and a fixed price for what comes next. You can stop there.

Share

Get insights like this in your inbox

Practical tips on software development, AI automation, and tech strategy, delivered weekly.

No spam. Unsubscribe anytime.

Keep the System. Hand Us the Responsibility.

We stabilize live software and keep it shipping, without a rewrite. Most of what we run, we built from the first line and still maintain.

Dragan Gavrić

Co-Founder & CEO

Software engineer and co-founder of Notix, coding since age 14. Leads client delivery across 50+ shipped projects in 10 countries, from AI systems to cross-platform mobile apps, with a focus on fast launches and products that succeed in market.