enterprisesim / README.md
TanmaySah's picture
Link arXiv:2612.01881 and alphaXiv
e782b1b verified
|
Raw History Blame Contribute Delete
5.66 kB
metadata
pretty_name: EnterpriseSim
license: cc-by-4.0
tags:
  - arxiv:2612.01881
  - agentic-ai
  - llm-agents
  - ai-agents
  - agent-evaluation
  - reinforcement-learning
  - postgresql
  - recovery
  - reliability
  - fault-tolerance
  - tool-use
  - mcp
  - benchmark
configs:
  - config_name: default
    default: true
    data_files:
      - split: dev
        path: data/dev.parquet
      - split: validation
        path: data/validation.parquet
      - split: test
        path: data/test.parquet

EnterpriseSim

EnterpriseSim is a transactional PostgreSQL 16 gym and benchmark for evaluating whether tool-using AI agents operate reliably across connected enterprise databases without duplicating writes, violating business invariants, or overwriting concurrent updates. It spans 83 tasks (30 single-incident and 53 multi-hazard tasks) across 6 connected departments with injected HTTP 504 timeouts, 4 live background worker bots, direct SQL grading with zero LLM judges, and deterministic SHA-256 replay.

Benchmark at a Glance

Tasks 83
Single-incident / Multi-hazard 30 / 53
Departments 6
MCP tools / REST endpoints 95 / 101
DEV 26
Validation 20
Test 37
Benchmark version v1.0.0

Quickstart

from datasets import load_dataset

ds = load_dataset("TanmaySah/enterprisesim")

print(ds)
print(ds["dev"][0])

What Does One Row Represent?

Each row represents one canonical EnterpriseSim task specification (83 rows total across dev, validation, and test).

Each task record includes the agent objective, permitted domain tools, injected fault family and checkpoint, enforced invariants, seeded relational state summary, and SQL final-state assertions.

Full PostgreSQL 16 execution code, the Gymnasium RL server (EnterpriseSimEnv), MCP server, and reproducibility scripts are available in the GitHub repository.

Schema

Column Type Description
task_id string Unique task identifier (CS01, CF01, LH01, etc.)
split string dev (26), validation (20), or test (37)
department string Primary owning enterprise department
secondary_departments list[string] Coupled cross-department surfaces
hazard_category string foundational_single_incident or A1..A5 multi-hazard family
title string Canonical task title
workflow string Enterprise workflow under evaluation
difficulty int64 Calibrated difficulty tier (1 to 5)
objective string Agent task instruction
fault_family string Injected fault class (none, post_commit_timeout, etc.)
fault_checkpoint string Fault lifecycle boundary (pre_commit, post_commit, etc.)
reversibility string Action reversibility class
tools list[string] Permitted domain tools bound for the episode
invariants list[string] Enforced SQL and domain invariants
initial_state string (JSON) Seeded relational entities and baseline summary
expected_outcome string (JSON) High-level target final-state properties
final_state_assertions string (JSON) SQL-backed final-state assertions
fault_spec string (JSON) Fault-injection specification
ground_truth string (JSON) Authoritative database tables and required journal phases
benchmark_version string Benchmark release version (v1.0.0)
source_path string Relative YAML path in the GitHub repository

Evaluation note: initial_state, expected_outcome, final_state_assertions, fault_spec, and ground_truth are published for reproducibility and are never exposed to evaluated agents at runtime.

Running Live PostgreSQL 16 Episodes

Start PostgreSQL 16 and the isolated RL Gym server (:8010) from the GitHub repository:

git clone https://github.com/EnterpriseSim/enterprisesim.git
cd enterprisesim
docker compose -f docker/docker-compose.yml up -d --build rl-server
docker compose -f docker/docker-compose.yml --profile cli run --rm enterprisesim enterprisesim rl smoke --task CS01 --seed 42

Or step through episodes from Python with EnterpriseSimEnv:

from enterprisesim import EnterpriseSimEnv

with EnterpriseSimEnv(base_url="http://127.0.0.1:8010", task_id="CS01", reward="R1") as env:
    obs, info = env.reset(seed=42)
    tools = env.openai_tools()

Default RL server and wheel modes enforce a Split Firewall restricting training rollouts to dev (26 tasks), requiring explicit evaluation opt-in for validation and test.

Paper & Code

Citation

@article{sah2026enterprisesim,
  title={EnterpriseSim: A Transactional Gym and Benchmark for AI Agent Reliability},
  author={Dolly Sah and Tanmay Sah and Harshul Jain and Tanya Sah and Saroj Pradhan},
  journal={arXiv preprint arXiv:2612.01881},
  year={2026},
  url={https://arxiv.org/abs/2612.01881}
}

License

Dataset and benchmark specifications: CC BY 4.0

Software and execution framework: Apache 2.0