EnterpriseSim: A Transactional Gym and Benchmark for AI Agent ReliabilityEnterpriseSim: A Transactional Gym and Benchmark for AI Agent Reliability
The authors build EnterpriseSim to evaluate write-operation agents: on 53 multi-hazard tasks, 7 models have pass rates of 47.2%–98.1%; on CF03 without protection, 0/7 pass.
- Existing agent benchmarks are mostly single-executor settings, where completing the task counts as a pass, making it difficult to cover timeouts, concurrent updates and irreversible operations in enterprise write operations. The authors focus on the case where the request has been completed but the database state is unsafe.
- EnterpriseSim connects six departments via PostgreSQL, providing 83 tasks, ambiguous 504 timeouts, and four background workers. Scoring directly checks SQL state and eight invariants, and compares seven runtime defenses, including a pre-commit safety gate.
- On 53 multi-hazard tasks, 7 models under B1-Concise have pass rates of 47.2%–98.1%, but all fail CF03 without defenses. The non-guided console reduces each model by 10.0–30.0 percentage points; B3-Gov reaches 75.0% in the 16-task evaluation on Flash.
- The authors list scaled RL training as future work, and state that the environment is single-node PostgreSQL with external services simulated. The 53-task main leaderboard runs each model once per task; the seven-runtime comparison uses only Gemini 3.8 Flash, and parallel refund caps still require database locks.
- Evaluated models
- Gemini 4 ArgonGemini 4 CarbonGemini 3.8 FlashClaude Sonnet 5.5Qwen 3.8 27BGPT-6.2 SolGPT-6 LunaGPT-6.1 SolGPT-6 AstraGemma 4 12BGPT-OSS 120BQwen2.5-3B-Instruct
- Benchmarks
- EnterpriseSimUH01–UH12
- Metrics
- Strict Safe PassU_commitD_duppass@1pass@3pass^3p99 gate latency
Researchers released the open-source benchmark EnterpriseSim, which evaluates agent reliability in a PostgreSQL enterprise database environment containing ambiguous timeouts and background concurrent writes; its 83 tasks span six interconnected departments, are scored directly on SQL state, and can be deterministically replayed. In 3,619 experiments, seven tested models including Gemini 4 Argon, GPT-6.2 Sol, Claude Sonnet 5.5 and Qwen 3.8 27B had guided pass rates of 47.2% to 98.1% on 53 multi-hazard tasks, but none could pass the concurrent safety patch race task without defenses; after switching to fuzzy inbox reminders, a 55-tool console and real-time contention, each model's pass rate dropped by 10 to 30 percentage points, with the highest falling from 95% to 65%.
Why it was selectedThe paper measured that an unguided console and real-time concurrency reduced the tested model's pass rate by 10 to 30 percentage points, providing teams deploying write-operation agents with a reproducible transactional safety test.
Related events and news
1 events · 0 news mentions
- This event's paper
EnterpriseSim:七模型无防护未过补丁竞态任务
Paper analysis
What problem does this paper attempt to solve?
The authors focus on agents completing user requests while corrupting the database state, and use EnterpriseSim to measure this kind of transactional reliability.
The core problem is: write-operation agents may satisfy the user request yet leave an unsafe database state under conditions such as timeouts, concurrent updates or account freezes.
- Enterprise setting: Using work orders, inventory, cloud control and financial systems as the background, the authors point out that HTTP 504 may mask already-committed writes, background workers may modify shared records, and some operations cross irreversible external boundaries.
- Gaps in existing evaluations: The authors argue that many benchmarks only check tool calls or task completion; EnterpriseOps-Gym, CRM-Agent-Bench and others use single-executor settings, while LIMBO, UndoBench and RetryBench each study fault recovery, without combining cross-department ACID invariants with live races.
- Core research questions: The authors aim to distinguish whether failures come from the database task itself or from overlapping faults, concurrent workers and non-guided tool consoles; they also examine which failures commit-time safety gates can prevent and which still depend on agent reasoning.
- Proposed approach: EnterpriseSim is a PostgreSQL transactional gym and benchmark, containing 83 tasks, data shared across six departments, four background workers, SQL state scoring and deterministic replay; the authors additionally compare seven runtime defenses.
- Risk setting: The victim system is a write-operation agent connected to a six-department database. Risk sources include ambiguous network results, background concurrent writes, distracting work orders and indirect prompt injection in untrusted records; the authors judge safety by the final SQL state rather than the API return code.
What related research exists?
Related work is divided into three categories: enterprise tool benchmarks, failure recovery, and runtime defenses; the authors emphasize their single-actor or fragmented evaluation settings.
Stateful Enterprise and Tool-Use Benchmarks
- τ-bench series, ToolSandbox, BFCL, etc.: study multi-turn tool selection or tool–agent–user interaction; the authors summarize many of these as testing on simulated JSON stores.
- WorkArena++, TheAgentCompany, AppWorld, CRMArena-Pro: execute web, operating system, or application tasks respectively; the authors state that browser and container suites have multi-second reset costs, while relational suites mostly check the database under single-actor conditions.
- EnterpriseOps-Gym and CRM-Agent-Bench: extend enterprise schemas and SQL checks; the paper explicitly states that they do not model post-commit transport ambiguity or live lock races.
Fault Ambiguity, Recovery, and Database Foundations
- Sagas, isolation anomalies, and Elle: classic database work formalizes long-transaction compensation, isolation anomalies, and history auditing respectively, providing foundations for transaction risk.
- LIMBO, RetryBench, and UndoBench: study ambiguous timeouts, retry deduplication, or phase-aware recovery; the authors note that they do not combine multi-department invariants, asynchronous peer contention, and multiple transaction-governance runtimes.
- AIOpsLab, ITBench, and other workflow and operations benchmarks: evaluate workflows or IT operations; the authors summarize related fault studies as mostly single-actor evaluations on simulated JSON or single-domain stores.
Runtime Defenses and Agent Safety
- Atomix, BSC-R, CapLease: propose epoch staging, HMAC drift witnessing, and durable replay leases respectively; EnterpriseSim performs specification ports of Atomix and BSC-R and includes them in the comparison.
- VP-CONTROL, CommitGuard, SABench, The Verifier Tax: study commit gates under TOCTOU, authorization at commit time, collateral damage, and verification overhead.
- AgentDojo, ContainmentBench, etc.: cover prompt injection or post-exposure containment evaluation; the authors state that each runtime is typically evaluated on its own simulated or single-domain harness.
Positioning and comparison in this paper: the authors place six-department PostgreSQL, ambiguous timeouts, live background workers, SQL state-diff scoring, and seven runtime defenses into a single replayable benchmark. The runtime comparison is B0, B1-Concise, B2, Atomix-Research, BSCR-Research, B3-Gov-NoHint, B3-Gov, with all tasks from EnterpriseSim.
How does the paper address this problem?
EnterpriseSim evaluates with a combination of shared PostgreSQL, fault and concurrency engines, strict SQL scoring, and seven runtime layers.
The overall approach is to have agents perform real write operations on the shared enterprise database of EnterpriseSim, while injecting commit-result ambiguity and background contention, then directly checking transaction diffs and final state.
Platform and Transaction Environment
- Departments and interfaces: CRM, Sales/Orders, Inventory, Finance/GL, Customer Support, and IT Ops/Engineering — six departments and cross-department Saga workflows share PostgreSQL; the main text writes 29 business tables, while Figure 2 labels 33 PostgreSQL tables.
- Symmetric APIs: 95 MCP tools and 101 REST endpoints are provided, both calling the same service layer; 1,699 automated tests check that the final database hashes match.
- Transactions and reset: each tool call commits independently, using READ COMMITTED, row-level SELECT ... FOR UPDATE, and integer version checks; a version mismatch returns HTTP 409; template clone reset takes 76–89 ms.
Fault Injection and Dual Concurrency Engine
- Lost acknowledgment: POST_COMMIT faults commit first and then return HTTP 504; PRE_COMMIT faults roll back first; N=540 paired 504 calls use a 45 ms delay floor and a fixed 172-byte body.
- Side-channel control: the authors report that the above handling reduces timing and size distinguishability from AUC=0.813 to 0.549, close to the 0.50 random level.
- Two contention modes: scheduled barriers execute deterministic peer updates at tool checkpoints; live contention has four workers — warehouse, finance, SRE, compliance — commit randomly, averaging 7.43 peer transactions per episode.
- Replay and audit: the audit log records sequence numbers, roles, parameters, and row versions; after removing timestamps and session IDs, it is replayed and SHA-256 is computed, and 409s, stale writes, write skew, and lock coverage are also counted.
Task Suite and Data Splits
- 83 public tasks: 30 single-event tasks, plus 53 multi-hazard tasks cloned without synthetic parameters; the latter include 11 each of SI, CF, LH, and 10 each of PI, MA, with LH containing 55 subtasks.
- Hazard types: covering silent cross-table inconsistency, cascading failures, 5-ticket long queues, indirect prompt injection, multiple actors, and irreversible operations; appendix Tables 12–14 give the full catalog.
- Safety abstention: SI09, CF09, PI09, MA08 do not provide frozen prompts; agents are required to discover hold or frozen states by reading tools and formally escalate, without producing unsafe writes.
- Splits and held-out sets: dev_public 26, val_controlled 20, test_held_out 27, external_reserved 10; default HTTP 403 restricts RL training to dev_public, and there is additionally a private UH01–UH12 stress set.
SQL Scoring and Runtime Defenses
- Strict pass definition: Strict Safe Pass=I[Aτ∧ I1..8∧(Ucommit=0)∧(Ddup=0)∧clean exit], i.e., the task goal, eight invariants, no unsafe or duplicate writes, and clean exit all hold simultaneously.
- No LLM judge: records tool calls, in-transaction row diffs, API responses, and final state hashes; U_commit identifies stale writes, hold violations, lock coverage, and policy or injection violations.
- Seven runtimes: B0 executes directly, B1-Concise gives four check hints, B2 does client-side idempotency, Atomix-Research does staging, BSCR-Research does state witnessing, and B3-Gov-NoHint and B3-Gov execute atomic gating before database commit.
- B3-Gov design: checks read-set versions, locked keys, finality, retry after 504, and cumulative refund caps; it does not use direct SQL introspection or task-specific rules, and the hinted version returns merged fields readable via GET.
Model Runs and RL Interface
- Unified JSON runner: cloud models use matched low reasoning effort, T=0.0, 32k context; the guided queue is capped at 24–32 per round, the non-guided console at 40, with at most 8 tool calls per round.
- Full CLI harness: on 18 core tasks with three seeds, 54 episodes per system, retaining built-in tool calls and scratchpad.
- RL Gym: supports local and remote HTTP, with rewards R0, R1, and R2; the authors additionally check training integration with Qwen2.5-3B-Instruct, LoRA r=16 on four dev_public tasks.
What experiments did the paper conduct?
3,619 LLM episodes covering capability, non-guided console and runtime defenses, plus offline PostgreSQL validation.
Experimental Setup
- Main leaderboard models and tasks: Gemini 4 Argon, Gemini 4 Carbon, Gemini 3.8 Flash, Claude Sonnet 5.5, Qwen 3.8 27B, GPT-6.2 Sol, GPT-6 Luna, each running 53 multi-hazard tasks, B1-Concise, seed 42, totaling 371 episodes.
- Repetition and CLI: five models repeat the 53 tasks with seeds {42,101,202}, totaling 795 episodes; the 18-task CLI subset additionally tests eight systems including GPT-6.1 Sol, GPT-6 Astra, Gemma 4 12B, GPT-OSS 120B, with 54 episodes per system.
- Non-guided and contention: 20 tasks, six console experiment groups totaling 120 episodes; Argon's F0–F4 ablation totals 100; on Flash, three runtimes with scheduled 7 and live 14, totaling 63.
- Runtime comparison: seven layers each run 16 episodes on 16 multi-hazard tasks of Gemini 3.8 Flash, totaling 112; B0, B1, B2, Atomix, BSCR, NoHint, B3-Gov are all included.
- Metrics and determination: the main metric is Strict Safe Pass, with U_commit, D_dup, 409, tool calls, and latency also reported; scoring is entirely done by SQL assertions, transaction diffs, and state hashes, with no LLM judges.
- Offline validation: includes 83-task reference solvability, 99 leave-one-out checks, and 135 multi-client trials; experiments A–C total 3,619 independent live LLM episodes.
Main Results
According to Table 4 Panel A, 53 multi-hazard tasks, B1-Concise, seed 42:
Swipe horizontally to read the table
Model Strict Safe Pass 95% Bootstrap CI Held-Out + Res. (25) U_com / D_dup Gemini 4 Argon 98.1% (52/53) [94.3, 100.0] 96.0% 1/0 Gemini 4 Carbon 92.5% (49/53) [84.9, 98.1] 88.0% 2/1 Gemini 3.8 Flash 88.7% (47/53) [79.2, 96.2] 92.0% 1/0 Claude Sonnet 5.5 83.0% (44/53) [71.7, 92.5] 76.0% 2/0 Qwen 3.8 27B (Local) 79.2% (42/53) [67.9, 88.7] 76.0% 5/1 GPT-6.2 Sol 66.0% (35/53) [52.8, 77.4] 64.0% 1/0 GPT-6 Luna 47.2% (25/53) [34.0, 60.4] 36.0% 4/0 - Common failure: Figure 4 labels CF03 as 0/7; the authors report that all models overwrite concurrency safety locks under no-defense conditions, with U_commit=1.
- Statistical stratification: Table 8's Holm–Bonferroni permutation tests report that Argon/Carbon are higher than Qwen/Sol/Luna (p=0.001), Qwen is higher than Luna (p=0.008), and adjacent pairs overlap (p≥0.21).
- Repetition stability: the Spearman ρ=1.00 for the three-seed ranking of five models; from pass@3 to pass^3, Argon and Carbon each drop 1.9pp, while Sol, Qwen, Luna drop 17.0pp, 28.3pp, 37.7pp respectively.
Non-Guided Console and Live Contention
- Console changes: in Table 5A, Argon B0 drops from 95.0% to 65.0%, Carbon from 80.0% to 55.0%, Flash from 80.0% to 70.0%, Sol from 60.0% to 40.0%, Luna from 45.0% to 30.0%; n=20 per group.
- Factor decomposition: Argon's F0 is 95.0%, F1 symptom-only is 65.0%, F2 open tool console is 80.0%, F3 plus distractors is 70.0%, F4 plus live workers is 65.0%; the authors use the rebound from F1→F2 to distinguish root-cause discovery from tool visibility.
- Live contention: in Table 5C, Flash's B0 drops from scheduled 85.7% to live 57.1%, while B3-Gov is 85.7% and 78.6%; the authors report 2 safety lock overwrites each for B0 and B1, and B3-Gov reduces the three contention problems to zero.
Seven Runtime Defenses and Extended Validation
- 16-task comparison: in Table 6, B3-Gov is 75.0% (12/16), B0, B1, B2, BSCR, NoHint are all 68.8% (11/16), Atomix is 56.3% (9/16); B3-Gov passes all 7 CF tasks, with U_commit+D_dup=0.
- Gating ablation: Table 10 reports that B3-Gov and NoHint block 7/7 hazards, with 0/13 false blocks on 13 benign checks; removing the finality, post-504, or refund-cap checks each produces one unsafe commit.
- Scaling and boundaries: at C=16, the p99 gate for contested workload is 9.40 ms, and B3-Gov rereads 680 versus 1,168 for NoHint; parallel refund writers with C≥2 still exhibit cross-transaction races, which the authors state require FOR UPDATE or SERIALIZABLE.
Behavioral Failures and Other Analyses
- Discovery is not safe repair: GPT-6 Luna discovers 11 problems on SI01–11 but safely repairs only 5; Gemma 4 12B on Core-18 has a discovery rate of 91.7% and a repair rate of 25.0%, while GPT-OSS 120B is 66.7% and 16.7%.
- Abstention calibration: Argon and Carbon abstain on 4/4 hold tasks with 0/49 false alarms; Sol and Luna each miss 2/4, and prematurely escalate 3/49 and 10/49 solvable tasks respectively.
- Long prompts and idempotency: in Figure 8(b), Gemma 4 12B under a 16,384 token budget scores 33.3% with B1-Verbose and 88.9% with B1-Concise; the authors state that verbose exhibits repeated self-check loops. B2 blocks 144 duplicate retries but falsely rejects 9 of 10 legitimate same-amount sibling refunds.
Other Ablations and Analyses
- Private stress set: in Appendix A.1, Argon and Claude Opus 5.5 both score 83.3% (10/12) on UH01–UH12, both failing UH01 and UH03.
- CLI plus gating: in Table 11, Carbon goes from 94.4% to 100.0%, Sonnet 5.5 from 66.7% to 83.3%, GPT-6.1 Sol stays at 83.3%, and all three go from U_commit 1 to 0.
- RL integration: Table 7's TRL 16 episodes have 3 with R1=1, and verl 8 episodes have 1; both pass all invariant checks, have finite gradients, and zero session leakage.
What are some points that can be further explored?
The authors explicitly leave two directions open: scaled-up RL and real distributed external systems, while the experiments are bounded by a single node and controlled tasks.
Limitations and Future Directions Noted by the Authors
- Training at scale: §6.2 states that although single-GPU RL integration with TRL and verl has been validated, training agents to improve multi-hazard task pass rates at scale remains future work.
- System boundaries: §6.2 states that EnterpriseSim uses single-node PostgreSQL, with external services simulated, rather than distributed databases or live third-party services.
- Reasoning and training challenges: the §6.2 Conclusion calls multi-table diagnosis and judging when to escalate open challenges for agent reasoning and RL training.
- Parallel write boundaries: §5.3 and Table 9 state that parallel aggregate caps with C≥2 require database locks; this is not within the scope that a commit gate alone solves.
Experimental Coverage
- Main leaderboard coverage: the 53-task main leaderboard includes 7 models, one run per model per task, seed 42; the three-seed repetition covers only 5 of these models, n=795 (Table 3, Table 8).
- Defense coverage: the main seven-runtime comparison is conducted only on 16 tasks of Gemini 3.8 Flash, 16 episodes per runtime; there are separate CLI comparisons for Carbon, Sonnet 5.5, and GPT-6.1 Sol (Table 6, Table 11).
- Console samples: the non-guided console has n=20 per group; live contention has scheduled n=7 and live n=14 per arm, with Gemini 3.8 Flash as the target model (Table 5).
- System validation: multi-client scaling uses single-node PostgreSQL 16.15, C∈{1,2,4,8,16}, totaling 135 offline trials; RL checks use one A100-80GB and Qwen2.5-3B-Instruct (Table 7, Table 10).
- Tasks and scoring: the public suite is 83 enterprise tasks, with UH01–UH12 kept private; scoring has no LLM judges, and the paper reports no human review or human agreement experiments.
Summarize the main content of the paper
EnterpriseSim combines enterprise write operations, concurrent faults and SQL safety scoring, and compares seven runtime layers including commit gates.
EnterpriseSim is a transactional gym and benchmark for write-operation agents, focused on the enterprise reliability problem of "the user goal is completed but the database is unsafe."
- Environment design: Six departments share PostgreSQL; 83 tasks cover silent inconsistency, cascading faults, long queues, indirect prompt injection and irreversible operations; the platform injects ambiguous 504s and runs four background workers.
- Evaluation method: Strict Safe Pass simultaneously requires the task goal, eight invariants, zero unsafe writes, zero duplicate writes and normal exit, all judged by SQL state and transaction diffs, without an LLM judge.
- Capability results: On 53 multi-hazard tasks under B1-Concise, Argon is 98.1% and GPT-6 Luna is 47.2%; however, on CF03 concurrent safety-patch race without protection, 0/7 models pass.
- Effect of deployment conditions: In the 20-task non-guided console, all five B0 models drop by 10.0–30.0 percentage points; Flash's B0 under live races changes from scheduled 85.7% to live 57.1%.
- Runtime results: In Flash's 16-task comparison, B3-Gov reaches 75.0% with U_commit+D_dup=0; in offline checks, 7/7 hazards are blocked and false blocks on 13 benign checks are 0, but the parallel refund cap still requires a database lock.
- Authors' conclusion: The authors argue that guided single-executor scores overestimate deployment readiness, and that model scale and prompt checklists alone cannot prevent state corruption; commit gates, database locks and agent reasoning each carry different layers of safety work.
Research lineage
7 foundations · 0 follow-ups in libraryNo later in-library follow-ups recorded yet.
Hover or focus a connected paper to inspect the citation context.