Repository navigation
Add EnterpriseOps-Gym benchmark: resources server, benchmark registration, and per-turn telemetry agent #2142
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
mcuevas-nvidia
wants to merge
37
commits into
main
Choose a base branch
from
mcuevas-nvidia-bench-integration-enterpriseops-signed
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+7,739
−31
Open
Changes from 17 commits
Commits
Show all changes
37 commits
Select commit
Hold shift + click to select a range
ec5e579
Add EnterpriseOps-Gym integration: resources server, benchmark, and p…
mcuevas-nvidia 28453c1
Add parity evidence report for the EnterpriseOps-Gym port
mcuevas-nvidia d089777
Document decision to keep hand-rolled MCP client over the official SDK
mcuevas-nvidia 864c659
Add performance report: port vs native at high concurrency on dedicat…
mcuevas-nvidia 8d42fee
Add throughput-vs-concurrency chart to the performance report
mcuevas-nvidia fc4578d
Add cross-stack parity validation to PARITY.md
mcuevas-nvidia 5eecc4c
Add RL rollout-collection pilot report
mcuevas-nvidia 3bb4e93
Add Phase 4 deployment-shape addendum to RL pilot report
mcuevas-nvidia 67bdbfa
Add enterpriseops_gym rows to the README environment table
mcuevas-nvidia 3234be1
Add required example rollouts and licensing section
mcuevas-nvidia 7904e9d
Add example_metrics.json required by data validation
mcuevas-nvidia d5dd08a
Merge remote-tracking branch 'upstream/main' into mcuevas-nvidia-benc…
mcuevas-nvidia f8ba55f
Allowlist example Drive doc IDs in secrets baseline
mcuevas-nvidia ee76173
Add README for turn_logging_agent
mcuevas-nvidia 89ba342
Carry rollout-correlation prefix onto turn_logging_agent model calls
mcuevas-nvidia b0494d2
Never score an empty verifier set as a strict/RL success
mcuevas-nvidia 245a976
Merge remote-tracking branch 'upstream/main' into mcuevas-nvidia-benc…
mcuevas-nvidia fc35cea
Merge origin/main into enterpriseops-gym integration branch
mcuevas-nvidia 3b558c2
Update EnterpriseOps-Gym docs and configs to the new gym CLI
mcuevas-nvidia e2e3425
Host EnterpriseOps-Gym tool schemas on HuggingFace instead of committ…
mcuevas-nvidia 36ad022
Warn when a config error skips every verifier
mcuevas-nvidia cdbc093
Pin the published EnterpriseOps-Gym assets dataset revision
mcuevas-nvidia 3d9076e
Re-pin to the public assets dataset revision
mcuevas-nvidia ee13d1e
Document the upstream task/container tool-name mismatch
mcuevas-nvidia 8c1143d
Add the required task_data.py schema for enterpriseops_gym
mcuevas-nvidia f595509
Add the three plus_N_tools splits alongside oracle
mcuevas-nvidia a543d74
Add Apptainer service endpoints
raosukrit67 6a365a5
Manage EnterpriseOps services with Apptainer
raosukrit67 6cae007
Configure EnterpriseOps services through Sandbox API
raosukrit67 9626965
Simplify EnterpriseOps Apptainer setup
raosukrit67 6290d19
Merge remote-tracking branch 'origin/main' into codex/enterpriseops-m…
raosukrit67 6c795fa
Fix native SIF config interpolation
raosukrit67 cc8afbd
Fix CSM database storage for Apptainer
raosukrit67 155e9b4
Mark EnterpriseOps remote config unverified
raosukrit67 d77fc37
Log ARM64 image builder progress
raosukrit67 e10c730
Merge branch 'main' into mcuevas-nvidia-bench-integration-enterpriseo…
cmunley1 a25f0e4
chore: merge main and resolve EnterpriseOps catalog conflict
zyzhou5 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,32 @@ | ||
| # EnterpriseOps-Gym Benchmark | ||
|
|
||
| Oracle-mode public split of [ServiceNow EnterpriseOps-Gym](https://github.com/ServiceNow/EnterpriseOps-Gym) | ||
| (Apache 2.0): stateful enterprise tool-use tasks across 8 domains (Calendar, CSM, Drive, Email, | ||
| HR, ITSM, Teams, Hybrid), graded by SQL verifiers on final database state. See | ||
| `resources_servers/enterpriseops_gym/README.md` for architecture and parity notes. | ||
|
|
||
| ## Prerequisites | ||
|
|
||
| 1. The upstream MCP gym Docker containers running (7 domain servers; see the resources | ||
| server README for ports) and the EOG checkout with `gym_dbs.zip` unzipped | ||
| (`seed_sql_root` config). | ||
| 2. Hub egress at prepare time (`huggingface.co`). On machines without egress, set | ||
| `NEMO_GYM_EOG_LOCAL_TASKS=<EOG checkout>/data/revised` to convert the locally | ||
| committed task subset instead. | ||
|
|
||
| ## Usage | ||
|
|
||
| ```bash | ||
| ng_prepare_benchmark "+config_paths=[benchmarks/enterpriseops/config.yaml]" | ||
|
|
||
| ng_run "+config_paths=[benchmarks/enterpriseops/config.yaml,responses_api_models/openai_model/configs/openai_model.yaml]" \ | ||
| "++enterpriseops_benchmark_resources_server.resources_servers.enterpriseops_gym.seed_sql_root=<abs path to EOG checkout>" | ||
|
|
||
| ng_collect_rollouts +agent_name=enterpriseops_benchmark_simple_agent \ | ||
| +input_jsonl_fpath=benchmarks/enterpriseops/data/enterpriseops_oracle_benchmark.jsonl \ | ||
| +output_jsonl_fpath=results/enterpriseops_oracle.jsonl | ||
| ``` | ||
|
|
||
| Scoring: `reward` = EOG leaderboard parity (all name-collapsed verifiers pass). Aggregate | ||
| metrics include per-domain `{domain}/success_rate`, `{domain}/verifier_pass_rate`, and | ||
| `macro_success_rate` (mean over domains, the leaderboard "Avg"). |
Empty file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| # Chain to the EnterpriseOps-Gym resources server + agent config | ||
| config_paths: | ||
| - resources_servers/enterpriseops_gym/configs/enterpriseops_gym.yaml | ||
|
|
||
| # `_inherit_from` keeps this benchmark config isolated from the generic config above. | ||
| enterpriseops_benchmark_resources_server: | ||
| _inherit_from: enterpriseops_gym | ||
|
|
||
| enterpriseops_benchmark_simple_agent: | ||
| _inherit_from: enterpriseops_gym_simple_agent | ||
| responses_api_agents: | ||
| simple_agent: | ||
| resources_server: | ||
| name: enterpriseops_benchmark_resources_server | ||
| datasets: | ||
| - name: enterpriseops | ||
| type: benchmark | ||
| jsonl_fpath: benchmarks/enterpriseops/data/enterpriseops_oracle_benchmark.jsonl | ||
| prepare_script: benchmarks/enterpriseops/prepare.py | ||
| # Rows are fully materialized by the converter (system+user input, tools baked in), | ||
| # so no prompt templating applies. | ||
| prompt_config: null | ||
| # EOG leaderboard reports single-run task success; raise for mean@k. | ||
| num_repeats: 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| *.jsonl |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,117 @@ | ||
| # SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
| # | ||
| # Licensed under the Apache License, Version 2.0 (the "License"); | ||
| # you may not use this file except in compliance with the License. | ||
| # You may obtain a copy of the License at | ||
| # | ||
| # http://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # Unless required by applicable law or agreed to in writing, software | ||
| # distributed under the License is distributed on an "AS IS" BASIS, | ||
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| # See the License for the specific language governing permissions and | ||
| # limitations under the License. | ||
| """Prepare the EnterpriseOps-Gym benchmark (oracle mode, public split). | ||
|
|
||
| Downloads the ServiceNow-AI/EnterpriseOps-Gym HuggingFace dataset (config = tool-set mode, | ||
| split = domain) and converts every domain — including hybrid — into one combined NeMo Gym | ||
| JSONL, baking in tool schemas from the per-domain snapshots shipped with the | ||
| enterpriseops_gym resources server (see snapshot_tools.py there). | ||
|
|
||
| Requires: | ||
| - Egress to huggingface.co. If the Hub is unreachable and NEMO_GYM_EOG_LOCAL_TASKS is set | ||
| to an EnterpriseOps-Gym checkout's task folder root (containing <domain>/ task JSON | ||
| dirs, e.g. data/revised), those local tasks are converted instead as a fallback. | ||
| - The MCP gym Docker containers only at RUN time, not at prepare time. | ||
| """ | ||
|
|
||
| import json | ||
| import os | ||
| from pathlib import Path | ||
| from typing import Dict, List | ||
|
|
||
| from resources_servers.enterpriseops_gym.convert_tasks import ( | ||
| convert_task, | ||
| load_snapshots, | ||
| load_tasks_from_dir, | ||
| load_tasks_from_hf, | ||
| ) | ||
|
|
||
|
|
||
| BENCHMARK_DIR = Path(__file__).parent | ||
| DATA_DIR = BENCHMARK_DIR / "data" | ||
| OUTPUT_FPATH = DATA_DIR / "enterpriseops_oracle_benchmark.jsonl" | ||
|
|
||
| # Set NEMO_GYM_EOG_HF_DATASET to a local snapshot of the dataset repo on machines without | ||
| # Hub egress (datasets.load_dataset accepts a local directory path in place of a repo id). | ||
| HF_REPO_ID = os.getenv("NEMO_GYM_EOG_HF_DATASET", "ServiceNow-AI/EnterpriseOps-Gym") | ||
| MODE = "oracle" | ||
| DOMAINS = ["calendar", "csm", "drive", "email", "hr", "itsm", "teams", "hybrid"] | ||
|
|
||
| SNAPSHOTS_DIR = BENCHMARK_DIR.parent.parent / "resources_servers" / "enterpriseops_gym" / "data" / "tools" | ||
| # All 7 gym snapshots; hybrid tasks reference multiple gyms, so hybrid uses the full union. | ||
| DOMAIN_SNAPSHOTS: Dict[str, List[str]] = { | ||
| "calendar": ["calendar.json"], | ||
| "csm": ["csm.json"], | ||
| "drive": ["drive.json"], | ||
| "email": ["email.json"], | ||
| "hr": ["hr.json"], | ||
| "itsm": ["itsm.json"], | ||
| "teams": ["teams.json"], | ||
| "hybrid": ["calendar.json", "csm.json", "drive.json", "email.json", "hr.json", "itsm.json", "teams.json"], | ||
| } | ||
|
|
||
| LOCAL_TASKS_ENV_VAR = "NEMO_GYM_EOG_LOCAL_TASKS" | ||
|
|
||
|
|
||
| def _convert_domain(domain: str, tasks, out_file) -> int: | ||
| snapshot_paths = [SNAPSHOTS_DIR / name for name in DOMAIN_SNAPSHOTS[domain]] | ||
| gym_tools = load_snapshots(snapshot_paths) | ||
| num_written = 0 | ||
| for task_id, task in tasks: | ||
| row = convert_task(task, task_id, domain, MODE, gym_tools) | ||
| out_file.write(json.dumps(row) + "\n") | ||
| num_written += 1 | ||
| return num_written | ||
|
|
||
|
|
||
| def prepare() -> Path: | ||
| """Download and convert the EnterpriseOps-Gym public split. Returns the output path.""" | ||
| DATA_DIR.mkdir(parents=True, exist_ok=True) | ||
|
|
||
| local_tasks_root = os.getenv(LOCAL_TASKS_ENV_VAR) | ||
| total = 0 | ||
| with open(OUTPUT_FPATH, "w") as out_file: | ||
| try: | ||
| for domain in DOMAINS: | ||
| tasks = load_tasks_from_hf(HF_REPO_ID, MODE, domain) | ||
| count = _convert_domain(domain, tasks, out_file) | ||
| print(f"{domain}: {count} tasks (HuggingFace)") | ||
| total += count | ||
| except Exception as e: | ||
| if not local_tasks_root: | ||
| raise RuntimeError( | ||
| f"Could not download {HF_REPO_ID} from HuggingFace ({type(e).__name__}: {e}). " | ||
| f"If this machine has no Hub egress, fetch the dataset elsewhere or set " | ||
| f"{LOCAL_TASKS_ENV_VAR}=<EOG checkout task root> (e.g. .../data/revised) to " | ||
| f"convert local task JSONs instead." | ||
| ) from e | ||
| print(f"HuggingFace unreachable ({type(e).__name__}); falling back to local tasks at {local_tasks_root}") | ||
| out_file.seek(0) | ||
| out_file.truncate() | ||
| total = 0 | ||
| for domain_dir in sorted(Path(local_tasks_root).iterdir()): | ||
| if not domain_dir.is_dir() or domain_dir.name not in DOMAIN_SNAPSHOTS: | ||
| continue | ||
| tasks = load_tasks_from_dir(domain_dir) | ||
| count = _convert_domain(domain_dir.name, tasks, out_file) | ||
| print(f"{domain_dir.name}: {count} tasks (local fallback)") | ||
| total += count | ||
|
|
||
| print(f"Wrote {total} tasks to {OUTPUT_FPATH}") | ||
| return OUTPUT_FPATH | ||
|
|
||
|
|
||
| if __name__ == "__main__": | ||
| prepare() |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we support all 4 splits of the benchmark in this env? Oracle + plus_5_tools, plus_10_tools, and plus_15_tools? https://huggingface.co/datasets/ServiceNow-AI/EnterpriseOps-Gym
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add all 4 splits with commit: f595509