|
Download README.md from TraceLite-AI/TwinEnv-Bench: direct link, hf CLI and curl.
- Browser
- Download file 6.3 kB
-
https://huggingface.co/datasets/TraceLite-AI/TwinEnv-Bench/resolve/main/README.md
- Command line
-
hf download hf://datasets/TraceLite-AI/TwinEnv-Bench/README.md
-
curl -L -o README.md https://huggingface.co/datasets/TraceLite-AI/TwinEnv-Bench/resolve/main/README.md
6.3 kB
| pretty_name: TwinEnv-Bench | |
| language: | |
| - en | |
| license: apache-2.0 | |
| size_categories: | |
| - n<1K | |
| task_categories: | |
| - other | |
| tags: | |
| - benchmark | |
| - agents | |
| - evaluation | |
| - environment-adaptation | |
| - coding-agents | |
| - terminal-bench | |
| - harbor | |
| - tool-use | |
| configs: | |
| - config_name: default | |
| data_files: | |
| - split: test | |
| path: data/tasks.jsonl | |
| # TwinEnv-Bench: Counterfactual Evaluation of Reactive and Proactive Environment Adaptation in Software Agents | |
| **TwinEnv-Bench** is a controlled micro-scale counterfactual benchmark of **117 real-world scripting, systems, and data-engineering tasks** (**234 paired `base` vs. `target` task–environment cells**) designed to disentangle algorithmic coding skill from real-world operating-system environment adaptability. | |
| - **Organization**: TraceLite AI (Institute of Information Engineering, CAS; Institute of Automation, CAS; Zhongguancun Academy; Tsinghua University) | |
| - **Code & Runner**: [github.com/TraceLite-AI/TwinEnv-Bench](https://github.com/TraceLite-AI/TwinEnv-Bench) | |
| - **Sanitized Trajectories**: [TraceLite-AI/TwinEnv-Bench-Traces](https://huggingface.co/datasets/TraceLite-AI/TwinEnv-Bench-Traces) | |
| - **Interactive Leaderboard**: [TraceLite-AI/TwinEnv-Bench Space](https://huggingface.co/spaces/TraceLite-AI/TwinEnv-Bench) | |
| - **Website**: [tracelite.ai](https://tracelite.ai) | |
| --- | |
| ## Overview | |
| Prevailing benchmarks for software and terminal agents evaluate models almost exclusively inside uniform **"greenhouse" containers** configured with permissive defaults (UTF-8, root, GNU coreutils, open network, generous resource ceilings). TwinEnv-Bench pairs identical natural-language user instructions, initial workspaces, and post-termination host-isolated verifiers across: | |
| 1. **Base Container (`base`)**: Standard greenhouse defaults. | |
| 2. **Target Sandbox (`target`)**: Shifted along a single verified system property across a **5-layer, 15-group, 31-mechanism** operating-system taxonomy (**E1–E5**). | |
| Tasks are partitioned almost evenly across two observability regimes: | |
| - **Interactive-Exposed (59 tasks)**: Environment mismatches surface immediately as stack traces, command errors, or malformed outputs during interactive sample runs (testing reactive debugging). | |
| - **Deployment-Latent (58 tasks)**: Sample runs pass silently while production constraints reside in scheduled cron jobs, cross-account permissions, mount boundaries, kernel `rlimits`, or full-scale batch traffic—always discoverable on host via read-only system inspection commands (testing proactive reconnaissance). | |
| Every task satisfies a deterministic **six-run, three-state mechanical solvability contract**: | |
| - Unmodified workspace (`none`): fails both `base` and `target`. | |
| - Environment-naive solution (`naive`): passes `base`, fails `target`. | |
| - Environment-aware reference solution (`ref`): passes both `base` and `target`. | |
| --- | |
| ## Dataset Structure | |
| | Path | Description | | |
| | :--- | :--- | | |
| | `eval.yaml` | Official Hugging Face Benchmark registration (`evaluation_framework: harbor`) | | |
| | `data/tasks.jsonl` | 117 canonical tasks with E1–E5 taxonomy labels, exposure regime, runtime profile, and paired `cells_json` | | |
| | `data/tasks.tar.gz` | Complete archive of all 117 task directories (1,709 SHA-256 verified files preserving permissions) | | |
| | `data/manifest.json` | File sizes, POSIX permission bits, and SHA-256 digests | | |
| | `data/environment-dimensions.json` | E1–E5 taxonomy counts and mechanism normalization | | |
| | `TASKS.md` | Human-readable catalog of all 117 tasks | | |
| ### Taxonomy Breakdown (117 Tasks / 234 Twin Cells) | |
| | Layer | Name | Tasks | Exposed / Latent | | |
| | :--- | :--- | :---: | :---: | | |
| | **E1** | System Layer (Filesystem Semantics, Line Endings) | 12 | 4 / 8 | | |
| | **E2** | Software Stack Layer (Runtimes, Packages, Toolchains, Browsers) | 24 | 24 / 0 | | |
| | **E3** | Execution Context Layer (Locale/Encoding/TZ, Process/Cron Context) | 43 | 14 / 29 | | |
| | **E4** | Boundary Layer (Permissions/Mounts, Network, Clock, Secrets, Resource Limits) | 36 | 17 / 19 | | |
| | **E5** | State Layer (Platform Residuals, External Service Reliability) | 2 | 0 / 2 | | |
| | **Total** | **5 Layers / 15 Groups / 31 Mechanisms** | **117** | **59 / 58** | | |
| --- | |
| ## Main Benchmark Results (9 Frontier Models, K=3 Repeats) | |
| Metrics below are conditional on non-refusal executed runs (`Base@1`, `Target@1`, `Exposed`, `Latent`, optimistic `Pass@3`, and strict 3-of-3 production reliability `Pass^3`): | |
| | Model | Base@1 (%) | Target@1 (%) | Δ_shift | Exposed (%) | Latent (%) | Pass@3 (%) | Pass^3 (%) | | |
| | :--- | :---: | :---: | :---: | :---: | :---: | :---: | :---: | | |
| | **Claude Opus 5.5** *(non-refusal)* | 98.4 | **67.1** | -31.3 | 74.1 | **59.3** | 73.9 | **59.5** | | |
| | **Qwen 3.8 Max** | 95.1 | 63.8 | -31.3 | 75.1 | 52.3 | **76.9** | 47.0 | | |
| | **GPT-6.1 Sol** | 97.4 | 63.0 | -34.4 | **77.4** | 48.3 | 68.4 | 58.1 | | |
| | **Gemini 4 Argon** | 99.1 | 61.0 | -38.1 | 73.4 | 48.3 | 70.1 | 51.3 | | |
| | **Hy4 Flash** | **99.7** | 55.3 | -44.4 | 69.5 | 40.8 | 65.8 | 45.3 | | |
| | **DeepSeek V4.1 Flash** | 99.4 | 41.6 | -57.8 | 46.3 | 36.8 | 58.1 | 25.6 | | |
| | **GLM-5.3 Flash** | 96.9 | 40.7 | -56.2 | 53.7 | 27.6 | 52.1 | 28.2 | | |
| | **Grok 4.7** | 97.4 | 34.5 | -62.9 | 46.3 | 22.4 | 47.0 | 22.2 | | |
| | **Kimi K3.1 Pro** | 99.1 | 26.8 | -72.3 | 39.5 | 13.8 | 39.3 | 14.5 | | |
| | *9-Model Mean* | *98.1* | *50.4* | *-47.6* | *61.7* | *38.8* | *61.3* | *39.1* | | |
| | *Claude Opus 5.5 (Refusal-as-0)* | *88.0* | *58.7* | *-29.3* | *67.8* | *49.4* | *70.1* | *47.9* | | |
| --- | |
| ## Usage | |
| ### Load Index with Hugging Face `datasets` | |
| ```python | |
| from datasets import load_dataset | |
| ds = load_dataset("TraceLite-AI/TwinEnv-Bench", split="test") | |
| print(len(ds), ds[0]["task_id"], ds[0]["exposure_regime"]) | |
| ``` | |
| ### Run with Harbor | |
| TwinEnv-Bench integrates with the [Harbor](https://github.com/harbor-framework/harbor) evaluation framework (234 paired `base` and `target` tasks). See our Harbor adapter in `TraceLite-AI/adapters` (`twinenv-bench`) and dataset registry in `TraceLite-AI/harbor-datasets`. | |
| --- | |
| ## Citation | |
| ```bibtex | |
| @article{tracelite2026twinenv, | |
| title={TwinEnv-Bench: Beyond Greenhouse Sandboxes via Counterfactual Evaluation of Reactive and Proactive Environment Adaptation in Software Agents}, | |
| author={TraceLite AI}, | |
| year={2026}, | |
| url={https://huggingface.co/datasets/TraceLite-AI/TwinEnv-Bench} | |
| } | |
| ``` | |