TRANSMISSION // 2612.01881v1

Why AI agents need a tougher test before changing business databases

Source published

EnterpriseSim tests AI agents in a simulated company database where timeouts, concurrent updates and confusing tool menus can turn an apparently successful task into an unsafe change.

AI-generated conceptual illustration for Why AI agents need a tougher test before changing business databases
AI-generated conceptual illustration; not documentary evidence.

An agent may complete a request and still leave a database in a dangerous state. EnterpriseSim tests how models handle uncertain tool responses, changing records and safeguards at the point a database write is committed.

A customer asks an AI agent to issue a refund. The tool reports a network timeout, so the agent tries again—but the first refund may already have gone through. Or the agent restores an earlier software configuration and erases a security fix made in the meantime. The request might appear complete even as the database ends up wrong.

That gap between completing a task and leaving a system safe is the focus of EnterpriseSim, a benchmark described in a preprint by Dolly Sah, Tanmay Sah, Harshul Jain, Tanya Sah and Saroj Pradhan. The authors ask how reliably agents can work across connected business databases when tool responses are ambiguous and records change concurrently, and which safeguards can stop mistakes before a database accepts a change.

A simulated company under pressure

EnterpriseSim uses PostgreSQL, software for managing structured records, to model six connected departments, including finance, inventory, customer support and IT operations. Its 83 tasks include 30 with a single main incident and 53 involving multiple hazards, such as a timeout alongside competing updates, misleading records or untrusted text embedded in a ticket.

Four automated background workers update shared records. This lets the researchers test what happens when an agent reads a record, a worker changes it, and the agent later tries to write using outdated information. Some timeouts are deliberately ambiguous: a change may have succeeded even though the agent receives an error. Runs can be replayed, and success is judged by checking database records and changes against defined rules—not by asking another language model to evaluate the agent’s final explanation.

The paper reports 3,619 live model episodes across its experiments. In one comparison, seven models attempted the same 53 multi-hazard tasks with concise guidance. Strict pass rates ranged from 47.2% to 98.1%. Yet none passed an unguarded race in which restoring a configuration overwrote a concurrent security patch. High scores on guided tasks, the authors’ results suggest, do not guarantee safe handling of every database change.

Less guidance, more failure

The researchers also made tasks harder to navigate. Instead of detailed instructions, agents received brief inbox alerts and a console with as many as 55 tools, including tempting shortcuts. The researchers added distraction tickets and live background activity. In this smaller comparison, each tested model’s pass rate fell by 10 to 30 percentage points. The top result dropped from 95% to 65%.

Finding and safely repairing a problem can be harder than recognizing it. On tasks involving silent data inconsistencies, for example, one model detected all 11 problems but safely fixed only five. A diagnosis is not the same as a reliable repair.

The paper also tests safeguards placed between an agent and the database. Its commit gate checks conditions such as whether the agent’s information is outdated, whether a protected security setting would be overwritten, and whether a retry follows an ambiguous timeout. In the tested single-agent cases, the gate blocked observed unsafe writes without blocking the tested legitimate changes. The authors report a 99th-percentile check latency below 10 milliseconds in their setup. But when multiple writers compete to stay within an overall refund cap, database-level locking is still needed.

What the results do—and don’t—show

EnterpriseSim illustrates why a successful-looking tool call or final message is not enough to establish that a business task was handled safely. Checking the resulting database state, accounting for concurrent changes and controlling writes at commit time all matter. The study also reports repetitive loops under longer safety prompts in some tested conditions; adding more instructions did not automatically make agents more reliable.

This is a benchmark, not a demonstration that the proposed safeguards are ready for a live company. The system runs on a single-node PostgreSQL database and simulates external boundaries; it does not test live third-party services or distributed databases. Its tasks and background-worker behavior represent designed scenarios, and the paper says large-scale training on the benchmark remains future work. Results may also depend on the prompts, tools, model versions and evaluation setup.

The paper is a preprint, shared before peer review, so its claims have not necessarily been independently assessed through that process. The authors say the benchmark and code are available, while a 12-task stress set is held out. Reproducing and extending the tests could help establish how well the findings generalize. For now, the lesson is specific: when AI systems can change shared records, checking whether those records remain safe is a different test from checking whether an agent followed instructions.

Reviewed cross-references

These connections were reviewed by a model, not independently fact-checked by a human. Similarity does not imply agreement; consult the original papers and the evidence below.

  • When a Stale Check Blocks Safe Work

    Supporting evidence: Both papers report author-reported evidence that checks at the write boundary can prevent unsafe writes in their tested conditions: EnterpriseSim reports that its pre-PostgreSQL commit gate prevented all observed single-agent unsafe writes, while ShiftGuard reports zero unsafe writes for runtime-held version and predicate guards on declared benchmark conditions. This is bounded support, not a direct comparison: the benchmarks, guard designs, and hazard coverage differ; ShiftGuard also reports that hazards outside its predicate guard’s declared contract escaped it. Both are preprints, and the reported findings are not independently established by these excerpts.

    Model review: · openai-codex/gpt-6-luna

    Evidence and provenance

    Selected excerpts, not complete papers. PDF extraction can omit figures or damage equations, tables and reading order; sources may be preprints.

    • 2612.01881v1 — Original paper

      Excerpt reference: static/papers/2612.01881v1.md:13-73
      Basis: Paper text
      Source file SHA-256: a665e24d3f49f1122b1e56553ba5a7b1360041081302f4bb9f7294ef09883bbe

    • 2612.01881v1 — Original paper

      Excerpt reference: static/papers/2612.01881v1.md:1482-1504
      Basis: Paper text
      Source file SHA-256: a665e24d3f49f1122b1e56553ba5a7b1360041081302f4bb9f7294ef09883bbe

    • 2609.29522v2 — Original paper

      Excerpt reference: static/papers/2609.29522v2.md:15-56
      Basis: Paper text
      Source file SHA-256: 145bfa850699480a7ebd9feb121e3a36c6adc57bae6cd473777e8f70b37b1a3a

    • 2609.29522v2 — Original paper

      Excerpt reference: static/papers/2609.29522v2.md:542-623
      Basis: Paper text
      Source file SHA-256: 145bfa850699480a7ebd9feb121e3a36c6adc57bae6cd473777e8f70b37b1a3a

Automatically matched by shared topic keywords. These links do not imply that the sources agree or establish a consensus.