Add files using upload-large-folder tool
Browse filesFiles changed (50)
- README.mdAdded+186
- docker_images_manifest.jsonAdded+291
- tasks.jsonlAdded+20
- tasks/t37-rct-micropark/README.mdAdded+100
- tasks/t37-rct-micropark/RUBRIC.mdAdded+55
- tasks/t37-rct-micropark/compose.yamlAdded+38
- tasks/t37-rct-micropark/environment/DockerfileAdded+93
- tasks/t37-rct-micropark/environment/await-assets.shAdded+19
- tasks/t37-rct-micropark/environment/collect.pyAdded+110
- tasks/t37-rct-micropark/environment/controller.jsAdded+148
- tasks/t37-rct-micropark/environment/entrypoint.shAdded+83
- tasks/t37-rct-micropark/environment/game-process.pyAdded+43
- tasks/t37-rct-micropark/environment/micropark-seed.parkAdded
- tasks/t37-rct-micropark/environment/notepad-keeper.shAdded+64
- tasks/t37-rct-micropark/environment/notes-seed.txtAdded+14
- tasks/t37-rct-micropark/environment/openbox-menu.xmlAdded+11
- tasks/t37-rct-micropark/environment/openbox-rc.xmlAdded+27
- tasks/t37-rct-micropark/environment/restrict-console.pyAdded+51
- tasks/t37-rct-micropark/environment/terminal-blocked.shAdded+7
- tasks/t37-rct-micropark/environment/try-supervisor.pyAdded+196
- tasks/t37-rct-micropark/instruction.mdAdded+6
- tasks/t37-rct-micropark/task.tomlAdded+22
- tasks/t37-rct-micropark/tests/grade.pyAdded+211
- tasks/t37-rct-micropark/tests/native-inspect.jsAdded+11
- tasks/t37-rct-micropark/tests/reopen.pyAdded+63
- tasks/t37-rct-micropark/tests/test.shAdded+40
- tasks/t37-rct-micropark/tests/test_micropark.pyAdded+208
- tasks/t37-rct-micropark/tests/test_pruning.pyAdded+193
- tasks/t37-rct-micropark/tests/test_retries.pyAdded+180
- tasks/t37-rct-micropark/tests/test_session.pyAdded+117
- tasks/t37-rct-micropark/tests/test_stateless_openai.pyAdded+55
- tasks/t37-rct-micropark/tests/test_supervisor.pyAdded+221
- tasks/t40-rct-onetile-1000/README.mdAdded+77
- tasks/t40-rct-onetile-1000/RUBRIC.mdAdded+21
- tasks/t40-rct-onetile-1000/compose.yamlAdded+45
- tasks/t40-rct-onetile-1000/environment/DockerfileAdded+90
- tasks/t40-rct-onetile-1000/environment/collect.pyAdded+90
- tasks/t40-rct-onetile-1000/environment/game-process.pyAdded+48
- tasks/t40-rct-onetile-1000/environment/openbox-menu.xmlAdded+8
- tasks/t40-rct-onetile-1000/environment/run-supervisor.pyAdded+283
- tasks/t40-rct-onetile-1000/instruction.mdAdded+50
- tasks/t40-rct-onetile-1000/task.tomlAdded+35
- tasks/t40-rct-onetile-1000/tests/config-selftest.jsAdded+22
- tasks/t40-rct-onetile-1000/tests/grade.pyAdded+284
- tasks/t40-rct-onetile-1000/tests/native-inspect.jsAdded+34
- tasks/t40-rct-onetile-1000/tests/reopen.pyAdded+63
- tasks/t40-rct-onetile-1000/tests/target-guests.txtAdded+1
- tasks/t40-rct-onetile-1000/tests/test.shAdded+41
- tasks/t40-rct-onetile-1000/tests/test_onetile.pyAdded+377
- trajectories.jsonlAdded+71
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186---pretty_name: "Refresh GUI Dataset"license: apache-2.0language: - entask_categories: - reinforcement-learning - othersize_categories: - n<1Ktags: - gui-agent - computer-use - desktop-automation - benchmark - harbor - docker - gui-only - blender - friction - inkscape - gimp - video-editing - motion-design - openrct2configs: - config_name: tasks default: true data_files: - split: test path: tasks.jsonl - config_name: trajectories data_files: - split: test path: trajectories.jsonl---
# Refresh GUI Dataset
The **Refresh GUI Dataset** is a benchmark suite of **20 strict GUI-only desktop computer-use tasks** with **71 verified reference trajectories** spanning real open-source creative and interactive applications across **Video**, **Design & Motion**, **3D / Vector**, and **Gaming (OpenRCT2)**.
Every task is packaged in the [Harbor](https://github.com/laude-institute/harbor) task format with deterministic containerized environments, automated verifiers, and strict GUI-only guardrails:
- **No terminal or bash tools**: Agents interact exclusively through the graphical desktop (mouse, keyboard, and screen observation).- **No proprietary web clones**: Every task runs on authentic open-source desktop software (Friction, Filmcraft, Effectcraft, Shotcut, Blender, Inkscape, GIMP, OpenRCT2).- **No copyrighted game assets**: OpenRCT2 tasks expect user-supplied RCT2 assets mounted externally at runtime (`/opt/rct2-assets`).
---
## Domain Breakdown
| Domain | Tasks | Trajectories | Applications || :--- | :---: | :---: | :--- || **Video** (`video`) | 5 | 17 | Friction, Filmcraft, Effectcraft || **Design & Motion** (`design_and_motion`) | 8 | 33 | Friction, Shotcut, GIMP || **3D / Blender** (`3d_blender`) | 4 | 7 | Blender, Inkscape || **Gaming / OpenRCT2** (`gaming_openrct2`) | 3 | 14 | OpenRCT2 || **Total** | **20** | **71** | **100% open-source desktop GUI** |
---
## Strict GUI-Only Enforcement
To ensure evaluations measure genuine graphical computer-use capability rather than shell scripting shortcuts, tasks enforce GUI-only execution across multiple layers:
1. **Harness Configuration (`enable_bash=false`)**: Agent harnesses disable bash/shell execution tools so only GUI observation and pointer/keyboard actions are exposed.2. **Terminal Stubs**: Standard terminal emulators and interactive shell entrypoints inside the container are replaced with blocking stubs (`no-terminal.sh`, `terminal-blocked.sh`, `install-gui-only.py`, `install-gui.py`, `friction-gui-only.cpp`).3. **Runtime Guard (`gui-only-guard.py` / `nocode_guard.py`)**: Background guards and verifier audits monitor sessions for prohibited shell, terminal, or code-execution bypass attempts.4. **Zero-Reward Penalty**: Any detected GUI-only policy violation triggers an automatic zero-reward (`0.0`) penalty in the verifier, invalidating the rollout regardless of final output files.
Across the 20 packaged tasks:- **16 tasks** enforce in-container terminal stubs and/or runtime guards.- **2 tasks** (`golf-tracer-01`, `t29-friction-three-dots`) inherit GUI-only enforcement from their base images (plus verifier audit on `golf-tracer-01`).- **2 tasks** (`FC-L1-masking-three-panels-gui`, `t18-friction-tutorial`) enforce GUI-only at the harness level via `enable_bash=false`.
---
## Dataset Structure
```textRefresh-GUI-dataset/├── README.md # This dataset card├── tasks.jsonl # 20 structured task records (metadata, paths, Docker & trajectory counts)├── trajectories.jsonl # 71 unique verified trajectories.sh runs covering all 20 tasks├── docker_images_manifest.json # Manifest of pre-built linux/amd64 Docker image archives & build status└── tasks/ └── <task_id>/ ├── instruction.md # Natural-language task prompt shown to the agent ├── task.toml # Harbor task metadata, timeouts, and environment config ├── README.md # Task-specific notes (when present) ├── compose.yaml # External asset mount config (OpenRCT2 tasks) ├── environment/ # Dockerfile, GUI-only guard assets, and workspace fixtures └── tests/ # Automated verification scripts and test suites```
---
## Task Catalog
| # | Task ID | Domain | Application | Summary | Docker Image Status | Trajectories || :---: | :--- | :--- | :--- | :--- | :--- | :---: || 1 | `t16-shottracer-effects` | Video | Friction | Add golf shot-tracer effects across four vertical swing clips in Friction. | Pre-built (bundle) | 12 || 2 | `FC-L1-masking-three-panels-gui` | Video | Filmcraft | Create a three-panel masked TikTok-style edit with synced music in Filmcraft. | Pre-built (standalone) | 1 || 3 | `EC-L1-108-superbowl-gui-v1` | Video | Effectcraft | Import `superbowl-lv-flyover.mp4` into Effectcraft and produce the target edit. | Pre-built (bundle) | 2 || 4 | `EC-L1-109-basketball-tracking-gui-v1` | Video | Effectcraft | Create a tracked vertical cut of basketball footage in Effectcraft. | Pre-built (bundle) | 1 || 5 | `golf-tracer-01` | Video | Friction | Render an SVG-reference ball flight shot tracer in Friction. | Pre-built (bundle) | 1 || 6 | `t23-dance-blob` | Design & Motion | Friction | Recreate the 6-second dancing blob vector animation loop in Friction. | Build from Dockerfile | 8 || 7 | `t24-friction-pong` | Design & Motion | Friction + Shotcut | Recreate a 209.57-second Pong animation in Friction with optional Shotcut audio assembly. | Build from Dockerfile | 12 || 8 | `t18-friction-tutorial` | Design & Motion | Friction | Follow a 26-minute Friction motion-graphics tutorial and reproduce the animation. | Pre-built (standalone) | 5 || 9 | `t29-friction-three-dots` | Design & Motion | Friction | Recreate 20 loading animations and a combined gallery in Friction. | Pre-built (bundle) | 4 || 10 | `t45-bouncing-ball` | Design & Motion | Friction | Build a bouncing ball animation with gravity timing and squash-and-stretch. | Pre-built (standalone) | 1 || 11 | `t47-text-bubble` | Design & Motion | Friction | Recreate and export two animated text bubble methods from a Friction tutorial. | Pre-built (bundle) | 1 || 12 | `t35-follow-text-instructions` | Design & Motion | GIMP / Friction | Follow a written brief to draw a Penrose impossible triangle in GIMP and animate it. | Build from Dockerfile | 1 || 13 | `t48-subscribe-button` | Design & Motion | Friction | Recreate an animated subscribe button with icon, lettering, and state changes. | Build from Dockerfile | 1 || 14 | `t19-blender-rig-full` | 3D / Blender | Blender | Follow CGDive's 4-part Level 1 rigging tutorial and record walk demonstrations. | Build from Dockerfile | 3 || 15 | `t20-blender-donut-40` | 3D / Blender | Blender | Complete all 14 parts of the Beginner Blender 4.0 donut tutorial from captioned video. | Build from Dockerfile | 2 || 16 | `sw-isometric-house` | 3D / Blender | Inkscape | Recreate an isometric house reference as an editable Inkscape vector drawing. | Build from Dockerfile | 1 || 17 | `sw-bicycle` | 3D / Blender | Inkscape | Recreate a bicycle schematic reference as an editable Inkscape vector drawing. | Build from Dockerfile | 1 || 18 | `t37-rct-micropark` | Gaming / OpenRCT2 | OpenRCT2 | Operate Micro Park via GUI alone to reach $100,000 park value within 2 in-game years. | Build from Dockerfile | 10 || 19 | `t39-rct-onetile` | Gaming / OpenRCT2 | OpenRCT2 | Grow a single-tile OpenRCT2 park to 200 guests at 700+ rating with no loan. | Build from Dockerfile | 3 || 20 | `t40-rct-onetile-1000` | Gaming / OpenRCT2 | OpenRCT2 | Grow a single-tile OpenRCT2 park to 1,000 guests at 700+ rating with no loan. | Build from Dockerfile | 1 |
*Docker image breakdown (see `docker_images_manifest.json` for exact archive metadata and checksums): 3 standalone delivery-verified `linux/amd64` tarballs, 6 tagged images in the `20261104` backup bundle, and 11 build-from-Dockerfile tasks.*
---
## Quickstart
### 1. Load Metadata in Python
```pythonfrom datasets import load_dataset
tasks = load_dataset("refreshdotdev/Refresh-GUI-dataset", name="tasks", split="test")trajectories = load_dataset("refreshdotdev/Refresh-GUI-dataset", name="trajectories", split="test")
print(f"Loaded {len(tasks)} tasks and {len(trajectories)} trajectory entries")```
### 2. Build or Load a Task Docker Environment
Each task under `tasks/<task_id>/environment/` includes a `Dockerfile` targeting `linux/amd64`.
```bash# Build directly from a task's environment directorydocker build --platform linux/amd64 \ -t refresh-gui/t20-blender-donut-40 \ tasks/t20-blender-donut-40/environment```
If using a pre-built image archive listed in `docker_images_manifest.json`:
```bashdocker load -i <task_image>.tar.gz```
### 3. Run with Harbor (GUI-Only Mode)
```bashharbor run \ --path tasks/t20-blender-donut-40 \ --agent <your-gui-agent> \ --agent-kwarg enable_bash=false```
Consult each task's `task.toml` for recommended resource limits, timeouts, and verifier entrypoints.
### 4. External Assets Required for OpenRCT2 Tasks
The 3 OpenRCT2 tasks (`t37-rct-micropark`, `t39-rct-onetile`, and `t40-rct-onetile-1000`) do **not** bundle copyrighted RollerCoaster Tycoon 2 game files. Before running them, mount your legally owned RCT2 installation directory read-only at `/opt/rct2-assets`:
```bashdocker run --rm --platform linux/amd64 \ -v /path/to/your/rct2-assets:/opt/rct2-assets:ro \ refresh-gui/t37-rct-micropark```
Ensure the mounted directory contains the original RCT2 `Data/` and `ObjData/` subdirectories expected by OpenRCT2 (see each task's `compose.yaml` for the exact mount configuration).
---
## Licensing & Attribution
- Task definitions, instructions, Dockerfiles, verification harnesses, and metadata in this dataset are distributed under the **Apache 2.0 License**.- Third-party open-source desktop applications installed inside task containers (such as Blender, Friction, Inkscape, GIMP, Shotcut, Filmcraft, Effectcraft, and OpenRCT2) remain governed by their respective open-source licenses.- No proprietary web application clones, private credentials, or copyrighted game data are included in this release.123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291{ "schema_version": "1.0", "note": "Multi-GB Docker-save archives are NOT downloaded locally or bundled in the initial dataset staging. Use this manifest to pull standalone linux/amd64 tarballs or restore tagged images from Backup additions - 20261104, or build directly from each task's environment/Dockerfile.", "summary": { "total_tasks": 20, "standalone_delivery_verified_amd64": 3, "in_backup_20261104_bundle": 6, "build_from_dockerfile": 11 }, "shared_backup_bundle": { "source_drive": "Approved StudioWorld Tasks (0AFBwjiqj9YSFUk9PVA)", "folder_name": "Backup additions - 20261104", "folder_drive_id": "1uQBi_1XQnWZZMUjyWRRgNGUqZqtx9aFL", "archive_name": "docker-images-all-task-tags.tar.gz", "total_bytes": 15013509241, "sha256": "fb62f1e767c7c48e590a28c662918d025d001923fc2e749e0bb815aaa5704c80", "manifest_drive_file_id": "1_-MOjSiKYVxxHTcTOHtvdyaUmTwe6oRU", "part_count": 14, "parts": [ { "name": "docker-images-all-task-tags.tar.gz.part-000", "drive_id": "1KE_8kosBTIi4a_o53CS-TBjWCApn32P0", "bytes": 1073741824 }, { "name": "docker-images-all-task-tags.tar.gz.part-001", "drive_id": "1Rlae7Bz8xq0vwYuBLo0dl1DD8XPhWXko", "bytes": 1073741824 }, { "name": "docker-images-all-task-tags.tar.gz.part-002", "drive_id": "1Ndp2DKhiTG2ZVFhAeicoEbQHWxs_PjHf", "bytes": 1073741824 }, { "name": "docker-images-all-task-tags.tar.gz.part-003", "drive_id": "14R2SQ5wAAzFIO8ZVEQqgodEe1DegqHhM", "bytes": 1073741824 }, { "name": "docker-images-all-task-tags.tar.gz.part-004", "drive_id": "1ttaAxxsnb-uqd3FE6kMvZwd90Fguqx4j", "bytes": 1073741824 }, { "name": "docker-images-all-task-tags.tar.gz.part-005", "drive_id": "1dI8m3NNgDtSuUI4hyp2rm7NIP1PvVPar", "bytes": 1073741824 }, { "name": "docker-images-all-task-tags.tar.gz.part-006", "drive_id": "1QEAg712FGqn8wMsUN2nkIrhLvQ43GgRQ", "bytes": 1073741824 }, { "name": "docker-images-all-task-tags.tar.gz.part-007", "drive_id": "10G1c-v9U-p5Yz3pDGiZ38ntNAj-4DYvm", "bytes": 1073741824 }, { "name": "docker-images-all-task-tags.tar.gz.part-008", "drive_id": "1Qsgco672EBtHq6Lgi23qeuUkiwaPO_TH", "bytes": 1073741824 }, { "name": "docker-images-all-task-tags.tar.gz.part-009", "drive_id": "1dLUDJGg1HI_Q5q6Yh_rp8ufsHi5g-0ER", "bytes": 1073741824 }, { "name": "docker-images-all-task-tags.tar.gz.part-010", "drive_id": "1uhot5d_cqb2ARd2x-6fr1hc6QIhE9Yqk", "bytes": 1073741824 }, { "name": "docker-images-all-task-tags.tar.gz.part-011", "drive_id": "1jyC7ovo4GLtyk16FRLnGeNcqA7mo3lD1", "bytes": 1073741824 }, { "name": "docker-images-all-task-tags.tar.gz.part-012", "drive_id": "1Hyx59kcyZX9LZfuXnmFzV1WxRVj3_a1b", "bytes": 1073741824 }, { "name": "docker-images-all-task-tags.tar.gz.part-013", "drive_id": "1npvnNs5vDUqllEGlOAA5e8Wk9ZjayHH4", "bytes": 1054865529 } ], "downloaded_locally": false }, "tasks": [ { "task_id": "t16-shottracer-effects", "task_drive_folder_id": "1vYxC3D1pXRnHSDw3FVVHZMuI8nYuvv_E", "dockerfile_path": "tasks/t16-shottracer-effects/environment/Dockerfile", "prebuilt_status": "in_backup_20261104_bundle", "standalone_amd64_archive": null, "backup_bundle_image_tag": "studioworld-t16-delivery:20261103" }, { "task_id": "FC-L1-masking-three-panels-gui", "task_drive_folder_id": "1j2TNRRv9SjJAnpGFKH8n_xQJ87FVQGJa", "dockerfile_path": "tasks/FC-L1-masking-three-panels-gui/environment/Dockerfile", "prebuilt_status": "standalone_delivery_verified_amd64", "standalone_amd64_archive": { "source_drive": "Approved StudioWorld Tasks (0AFBwjiqj9YSFUk9PVA)", "delivery_index_folder_id": "1LL9NzfKvE1sEbS9rC1n9b43ca0tp-IA4", "delivery_folder_id": "1yEgs6_QZ_UGK4kgZeSiXv3SVmcZP3K0-", "drive_path": "FC-L1-masking-three-panels-gui/client-delivery/amd64-v1-20261023/image-linux-amd64.tar.gz", "drive_file_id": "1Oy-zTloq3CUC1ctubPIMWmfxGd6bpJWL", "filename": "image-linux-amd64.tar.gz", "bytes": 649126098, "sha256": "d85b090ad3133337ee57848356d68f0390a1789e747103a4550d18fce0ce5dd9", "platform": "linux/amd64", "verified": true, "downloaded_locally": false }, "backup_bundle_image_tag": null }, { "task_id": "EC-L1-108-superbowl-gui-v1", "task_drive_folder_id": "13fxfeP9gtO1Dyc4ADJh3O4SVvZnpq47v", "dockerfile_path": "tasks/EC-L1-108-superbowl-gui-v1/environment/Dockerfile", "prebuilt_status": "in_backup_20261104_bundle", "standalone_amd64_archive": null, "backup_bundle_image_tag": "studioworld-audit-ec-l1-108-superbowl-gui-v1:20261103" }, { "task_id": "EC-L1-109-basketball-tracking-gui-v1", "task_drive_folder_id": "1qoDTgSkzGxrZlkw48ieP4j6b2C5uVH-s", "dockerfile_path": "tasks/EC-L1-109-basketball-tracking-gui-v1/environment/Dockerfile", "prebuilt_status": "in_backup_20261104_bundle", "standalone_amd64_archive": null, "backup_bundle_image_tag": "studioworld-audit-ec-l1-109-basketball-tracking-gui-v1:20261103" }, { "task_id": "golf-tracer-01", "task_drive_folder_id": "1MbaxMXoO4e_V7mVoRCAUbSL01mN87BXg", "dockerfile_path": "tasks/golf-tracer-01/environment/Dockerfile", "prebuilt_status": "in_backup_20261104_bundle", "standalone_amd64_archive": null, "backup_bundle_image_tag": "studioworld-golf01-delivery:20261103" }, { "task_id": "t23-dance-blob", "task_drive_folder_id": "1BgHvEbu1dND4hDIgL0AG1YsMF6J1eieB", "dockerfile_path": "tasks/t23-dance-blob/environment/Dockerfile", "prebuilt_status": "build_from_dockerfile", "standalone_amd64_archive": null, "backup_bundle_image_tag": null }, { "task_id": "t24-friction-pong", "task_drive_folder_id": "18DFoLQL9kXnSmHZbwVoklj5VxuH9X2pq", "dockerfile_path": "tasks/t24-friction-pong/environment/Dockerfile", "prebuilt_status": "build_from_dockerfile", "standalone_amd64_archive": null, "backup_bundle_image_tag": null }, { "task_id": "t18-friction-tutorial", "task_drive_folder_id": "1xi4y4ISEwHQJuhZwJ5HtAkgAAzUGfmTt", "dockerfile_path": "tasks/t18-friction-tutorial/environment/Dockerfile", "prebuilt_status": "standalone_delivery_verified_amd64", "standalone_amd64_archive": { "source_drive": "Approved StudioWorld Tasks (0AFBwjiqj9YSFUk9PVA)", "delivery_index_folder_id": "1LL9NzfKvE1sEbS9rC1n9b43ca0tp-IA4", "delivery_folder_id": "1gqtmfs4g73V48l4KVb4-ZzxllIDDGVA7", "drive_path": "t18-friction-tutorial/client-delivery/amd64-v1-20261023/image-linux-amd64.tar.gz", "drive_file_id": "18J_e6NYxop3RSpWdxYhDWBpZBEOrrzNf", "filename": "image-linux-amd64.tar.gz", "bytes": 1237960368, "sha256": "2969c1391e75f0b3ae1e44bf0999f90479f0c878b1378ecc927f7fcdf849cca5", "platform": "linux/amd64", "verified": true, "downloaded_locally": false }, "backup_bundle_image_tag": null }, { "task_id": "t29-friction-three-dots", "task_drive_folder_id": "1TYyLLyL6ogls0DkFGa9YDZMdhh-v6OSt", "dockerfile_path": "tasks/t29-friction-three-dots/environment/Dockerfile", "prebuilt_status": "in_backup_20261104_bundle", "standalone_amd64_archive": null, "backup_bundle_image_tag": "studioworld-t29-delivery:20261103" }, { "task_id": "t45-bouncing-ball", "task_drive_folder_id": "1Z--gQJ1YOZqEUIRKyE68YgbgqHXP-kbk", "dockerfile_path": "tasks/t45-bouncing-ball/environment/Dockerfile", "prebuilt_status": "standalone_delivery_verified_amd64", "standalone_amd64_archive": { "source_drive": "Approved StudioWorld Tasks (0AFBwjiqj9YSFUk9PVA)", "delivery_index_folder_id": "1LL9NzfKvE1sEbS9rC1n9b43ca0tp-IA4", "delivery_folder_id": "1GJHsYRXAoMNKh91KF43TdE3kVpa2rRzI", "drive_path": "t45-bouncing-ball/client-delivery/amd64-v1-20261023/image-linux-amd64.tar.gz", "drive_file_id": "1oy-d4XNy8fm3eLWk7xgnLCbTj5Sty2TG", "filename": "image-linux-amd64.tar.gz", "bytes": 1023279838, "sha256": "9b4280a88ecc70b5e47e6b398599143d5bfd54517092d15d592225b8aa60c149", "platform": "linux/amd64", "verified": true, "downloaded_locally": false }, "backup_bundle_image_tag": null }, { "task_id": "t47-text-bubble", "task_drive_folder_id": "18CtzWr2tUlfoBdiU2eDaqoLzFgrlx6nP", "dockerfile_path": "tasks/t47-text-bubble/environment/Dockerfile", "prebuilt_status": "in_backup_20261104_bundle", "standalone_amd64_archive": null, "backup_bundle_image_tag": "studioworld-t47-delivery:20261103" }, { "task_id": "t19-blender-rig-full", "task_drive_folder_id": "14pgYU8khG4Nj-n9lEoadAbkBm9KomMCB", "dockerfile_path": "tasks/t19-blender-rig-full/environment/Dockerfile", "prebuilt_status": "build_from_dockerfile", "standalone_amd64_archive": null, "backup_bundle_image_tag": null }, { "task_id": "t20-blender-donut-40", "task_drive_folder_id": "1klWkb4I6JfwxAH9dROjdRe7XNCSGNgVF", "dockerfile_path": "tasks/t20-blender-donut-40/environment/Dockerfile", "prebuilt_status": "build_from_dockerfile", "standalone_amd64_archive": null, "backup_bundle_image_tag": null }, { "task_id": "sw-isometric-house", "task_drive_folder_id": "1HjNaW227KRkZZGm_-G6eHLFZRdchSkYM", "dockerfile_path": "tasks/sw-isometric-house/environment/Dockerfile", "prebuilt_status": "build_from_dockerfile", "standalone_amd64_archive": null, "backup_bundle_image_tag": null }, { "task_id": "sw-bicycle", "task_drive_folder_id": "11N6Q4kxOP1bbnEbnonaRBR_mbQ2TKXNQ", "dockerfile_path": "tasks/sw-bicycle/environment/Dockerfile", "prebuilt_status": "build_from_dockerfile", "standalone_amd64_archive": null, "backup_bundle_image_tag": null }, { "task_id": "t37-rct-micropark", "task_drive_folder_id": "1cyKjlCOIXVM88siYiJdzOyf_Z-MLD4jk", "dockerfile_path": "tasks/t37-rct-micropark/environment/Dockerfile", "prebuilt_status": "build_from_dockerfile", "standalone_amd64_archive": null, "backup_bundle_image_tag": null }, { "task_id": "t39-rct-onetile", "task_drive_folder_id": "1IYmD-tVEH5I_Yl71UdbyVP82lmo2bbyy", "dockerfile_path": "tasks/t39-rct-onetile/environment/Dockerfile", "prebuilt_status": "build_from_dockerfile", "standalone_amd64_archive": null, "backup_bundle_image_tag": null }, { "task_id": "t40-rct-onetile-1000", "task_drive_folder_id": "16dc7zugWbzV7p5KvfYUMcEyxVR1Mertn", "dockerfile_path": "tasks/t40-rct-onetile-1000/environment/Dockerfile", "prebuilt_status": "build_from_dockerfile", "standalone_amd64_archive": null, "backup_bundle_image_tag": null }, { "task_id": "t35-follow-text-instructions", "task_drive_folder_id": "15tyGBsnLQFuJSuPYNlwGgSeIhwe0eELp", "dockerfile_path": "tasks/t35-follow-text-instructions/environment/Dockerfile", "prebuilt_status": "build_from_dockerfile", "standalone_amd64_archive": null, "backup_bundle_image_tag": null }, { "task_id": "t48-subscribe-button", "task_drive_folder_id": "1qGQxQ9ViFlS6hUXP6wrHq6Ep1wCVyAWG", "dockerfile_path": "tasks/t48-subscribe-button/environment/Dockerfile", "prebuilt_status": "build_from_dockerfile", "standalone_amd64_archive": null, "backup_bundle_image_tag": null } ]}1234567891011121314151617181920{"task_id": "t16-shottracer-effects", "harbor_name": "sid/t16-shottracer-effects", "version": "1.0.0", "domain": "video", "app": "Friction", "description": "Golf shot-tracer effects: four vertical iPhone swing clips; in Friction (open-source After Effects tier) import each clip, find impact, draw the ball flight with the Add Path tool frame by frame, animate it with the Sub-Path effect so the line grows with the ball, render each traced clip; then stitch the four renders in Shotcut and export /root/Desktop/final.mp4. Graded from artifacts: Friction project mentions every clip, per-clip traced renders, tracer starts at the ball at the impact frame, grows and rises, nothing pre-impact, Shotcut project of the 4 traced clips in order, final export.", "instruction_summary": "You edit for a golf YouTube channel. Four clips of golfers hitting a ball are in /root/media: shot_01.mp4, shot_02.mp4, shot_03.mp4 and shot_04.mp4 (vertical, 1080x1920, 30 fps, one swing each). Deliver a vertical highlight with a hand-drawn shot tracer on every shot: draw the tracers in Friction...", "instruction_path": "tasks/t16-shottracer-effects/instruction.md", "task_toml_path": "tasks/t16-shottracer-effects/task.toml", "dockerfile_path": "tasks/t16-shottracer-effects/environment/Dockerfile", "tests_path": "tasks/t16-shottracer-effects/tests", "readme_path": "tasks/t16-shottracer-effects/README.md", "gui_only_enforcement": "in_container_terminal_stub", "external_assets_required": null, "docker_image_status": "in_backup_20261104_bundle", "docker_image_ref": "studioworld-t16-delivery:20261103", "agent_timeout_sec": 1800.0, "verifier_timeout_sec": 1200.0, "network_mode": "public", "file_count": 50, "total_bytes": 90053163, "trajectory_count": 12, "trajectory_urls": ["https://www.trajectories.sh/t/51b17e40-f8bc-47b0-bfda-010dc7c125c3", "https://www.trajectories.sh/t/53bee8fe-b621-4ed6-85d6-955799e698a4", "https://www.trajectories.sh/t/f8f1702f-a1f0-4c87-af82-56f2ff98eda7", "https://www.trajectories.sh/t/19dbf739-dd61-49c1-a6ce-566872b1c0cf", "https://www.trajectories.sh/t/20c8331f-a544-46b0-bda0-b67d9c7fc683", "https://www.trajectories.sh/t/a8cf02a4-2119-4236-b933-bd3421d8ff3a", "https://www.trajectories.sh/t/2a397a93-0d39-496e-ac30-4319b0959746", "https://www.trajectories.sh/t/ccd9e959-2f26-4d26-9aa1-e708b062414f", "https://www.trajectories.sh/t/72cd060e-59fc-4645-891d-5b29e2d8670b", "https://www.trajectories.sh/t/31d08ed2-e00c-4b3f-b052-042b0b361b4e", "https://www.trajectories.sh/t/3c250818-7cf7-434a-9901-c38017138578", "https://www.trajectories.sh/t/5fe990af-9d1c-471a-baab-26c5d5e7d0b6"]}{"task_id": "FC-L1-masking-three-panels-gui", "harbor_name": "sid/FC-L1-masking-three-panels", "version": "1.0.0", "domain": "video", "app": "Filmcraft", "description": "I want to make a TikTok-style edit using the three supplied videos and music. Find the correct video and audio files and import them into FilmCraft. Use the screenshot as a visual reference. Create a 1920×1080 sequence at 24 fps. Use perfectly rectangular masks, with basketball on the left, the S...", "instruction_summary": "I want to make a TikTok-style edit using the three supplied videos and music. Find the correct video and audio files and import them into FilmCraft. Use the screenshot as a visual reference. Create a 1920×1080 sequence at 24 fps. Use perfectly rectangular masks, with basketball on the left, the S...", "instruction_path": "tasks/FC-L1-masking-three-panels-gui/instruction.md", "task_toml_path": "tasks/FC-L1-masking-three-panels-gui/task.toml", "dockerfile_path": "tasks/FC-L1-masking-three-panels-gui/environment/Dockerfile", "tests_path": "tasks/FC-L1-masking-three-panels-gui/tests", "readme_path": null, "gui_only_enforcement": "harness_enable_bash_false", "external_assets_required": null, "docker_image_status": "standalone_delivery_verified_amd64", "docker_image_ref": "1Oy-zTloq3CUC1ctubPIMWmfxGd6bpJWL", "agent_timeout_sec": 10800, "verifier_timeout_sec": 3600, "network_mode": "no-network", "file_count": 31, "total_bytes": 432814654, "trajectory_count": 1, "trajectory_urls": ["https://www.trajectories.sh/t/6406e150-b36d-4840-aef7-549736e60b58"]}{"task_id": "EC-L1-108-superbowl-gui-v1", "harbor_name": "sid/EC-L1-108-superbowl-gui-v1", "version": "1.0.0", "domain": "video", "app": "Effectcraft", "description": "Find `superbowl-lv-flyover.mp4` in `/root/Desktop/superbowl-task/media`, import it into EffectCraft, and create the following graphics over the complete clip. The first shot shows three planes approaching a stadium. Add a separate white tapered tracer for each plane using editable shape layers, t...", "instruction_summary": "Find `superbowl-lv-flyover.mp4` in `/root/Desktop/superbowl-task/media`, import it into EffectCraft, and create the following graphics over the complete clip. The first shot shows three planes approaching a stadium. Add a separate white tapered tracer for each plane using editable shape layers, t...", "instruction_path": "tasks/EC-L1-108-superbowl-gui-v1/instruction.md", "task_toml_path": "tasks/EC-L1-108-superbowl-gui-v1/task.toml", "dockerfile_path": "tasks/EC-L1-108-superbowl-gui-v1/environment/Dockerfile", "tests_path": "tasks/EC-L1-108-superbowl-gui-v1/tests", "readme_path": "tasks/EC-L1-108-superbowl-gui-v1/README.md", "gui_only_enforcement": "in_container_terminal_stub", "external_assets_required": null, "docker_image_status": "in_backup_20261104_bundle", "docker_image_ref": "studioworld-audit-ec-l1-108-superbowl-gui-v1:20261103", "agent_timeout_sec": 28800, "verifier_timeout_sec": 3600, "network_mode": "no-network", "file_count": 34, "total_bytes": 349696818, "trajectory_count": 2, "trajectory_urls": ["https://www.trajectories.sh/t/52dccd96-f1b0-418f-af86-250854ebbbb2", "https://www.trajectories.sh/t/1b7448e3-7c76-4c71-9194-e7158f407ae9"]}{"task_id": "EC-L1-109-basketball-tracking-gui-v1", "harbor_name": "sid/EC-L1-109-basketball-tracking-gui-v1", "version": "1.0.0", "domain": "video", "app": "Effectcraft", "description": "Use EffectCraft to make a vertical version of `/root/Desktop/basketball-task/media/Sequence 01.mp4`. Open EffectCraft, create a 1080×1920 composition at 24 fps with square pixels, and import the supplied horizontal video. Keep all 223 frames in their original order at normal speed, with the same...", "instruction_summary": "Use EffectCraft to make a vertical version of `/root/Desktop/basketball-task/media/Sequence 01.mp4`. Open EffectCraft, create a 1080×1920 composition at 24 fps with square pixels, and import the supplied horizontal video. Keep all 223 frames in their original order at normal speed, with the same...", "instruction_path": "tasks/EC-L1-109-basketball-tracking-gui-v1/instruction.md", "task_toml_path": "tasks/EC-L1-109-basketball-tracking-gui-v1/task.toml", "dockerfile_path": "tasks/EC-L1-109-basketball-tracking-gui-v1/environment/Dockerfile", "tests_path": "tasks/EC-L1-109-basketball-tracking-gui-v1/tests", "readme_path": "tasks/EC-L1-109-basketball-tracking-gui-v1/README.md", "gui_only_enforcement": "in_container_terminal_stub", "external_assets_required": null, "docker_image_status": "in_backup_20261104_bundle", "docker_image_ref": "studioworld-audit-ec-l1-109-basketball-tracking-gui-v1:20261103", "agent_timeout_sec": 28800, "verifier_timeout_sec": 3600, "network_mode": "no-network", "file_count": 36, "total_bytes": 340464525, "trajectory_count": 1, "trajectory_urls": ["https://www.trajectories.sh/t/32e1c59f-38e6-478d-b9b8-79e1dadc7a63"]}{"task_id": "golf-tracer-01", "harbor_name": "sid/golf-01-akshay-bhatia-driver", "version": "1.2.0", "domain": "video", "app": "Friction", "description": "One original golf clip; SVG-reference ball flight tracer rendered in Friction; expressions allowed", "instruction_summary": "Deliver a video of a shot tracer that follows the ball in Friction. Draw the tracers in Friction. This machine has no terminal or command line; do all work through the applications’ own interfaces. You can use expressions in Friction. Source clip: /root/media/source.mp4 (01_akshay_bhatia_driver.m...", "instruction_path": "tasks/golf-tracer-01/instruction.md", "task_toml_path": "tasks/golf-tracer-01/task.toml", "dockerfile_path": "tasks/golf-tracer-01/environment/Dockerfile", "tests_path": "tasks/golf-tracer-01/tests", "readme_path": null, "gui_only_enforcement": "inherited_gui_base_image_and_verifier_audit", "external_assets_required": null, "docker_image_status": "in_backup_20261104_bundle", "docker_image_ref": "studioworld-golf01-delivery:20261103", "agent_timeout_sec": 14400.0, "verifier_timeout_sec": 1800.0, "network_mode": null, "file_count": 151, "total_bytes": 3390217, "trajectory_count": 1, "trajectory_urls": ["https://www.trajectories.sh/t/68c1a08e-f638-42c9-a0f6-ef683e2dcd26"]}{"task_id": "t23-dance-blob", "harbor_name": "sid/t23-dance-blob", "version": "0.4.0", "domain": "design_and_motion", "app": "Friction", "description": "Recreate the dancing blob loop in Friction. v2 staged task-based RLVR: native vector scene, squash/spring, half-spacing rightward hops, shared continuous colour cycle and matching six-second export. Native loader and independent renderer verify project structure; no exact face or silhouette mask matching.", "instruction_summary": "You are a motion designer. One clip is in /root/media: reference.mp4 (800x800, 30 fps, 6 seconds, no sound). It is a finished looping animation of a row of smiling \"blob\" characters dancing across a white background. Your job is to recreate this animation from scratch in Friction (already open; r...", "instruction_path": "tasks/t23-dance-blob/instruction.md", "task_toml_path": "tasks/t23-dance-blob/task.toml", "dockerfile_path": "tasks/t23-dance-blob/environment/Dockerfile", "tests_path": "tasks/t23-dance-blob/tests", "readme_path": "tasks/t23-dance-blob/README.md", "gui_only_enforcement": "in_container_terminal_stub", "external_assets_required": null, "docker_image_status": "build_from_dockerfile", "docker_image_ref": null, "agent_timeout_sec": 1800.0, "verifier_timeout_sec": 900.0, "network_mode": "public", "file_count": 58, "total_bytes": 33939167, "trajectory_count": 8, "trajectory_urls": ["https://www.trajectories.sh/t/96e4b7f4-23d5-4bd7-9ba8-3072802d13f1", "https://www.trajectories.sh/t/dfd5725b-aa36-4ebc-9ec6-c027f9454178", "https://www.trajectories.sh/t/9e8ee3f5-3fc9-4000-98b7-f50b1bbcd2ee", "https://www.trajectories.sh/t/ee5e1892-9f6e-43a9-814d-b848a44fbb1e", "https://www.trajectories.sh/t/c2428fc2-d6d3-465e-913b-ab7c026283a0", "https://www.trajectories.sh/t/0c8cdc91-2a45-48ae-8c32-ebcc22c27c65", "https://www.trajectories.sh/t/01f5e8d1-04fd-4102-9dfa-0bef16f28068", "https://www.trajectories.sh/t/c1beb861-9b05-40f6-8e55-ac2343023722"]}{"task_id": "t24-friction-pong", "harbor_name": "sid/t24-friction-pong", "version": "0.4.0", "domain": "design_and_motion", "app": "Friction + Shotcut", "description": "GUI-only recreation of a 209.57-second Pong reference in Friction, with optional Shotcut audio assembly: match layout, palette, motion blur, per-point paddle-return counts, and 21–20 result; synchronize the four supplied sound effects to actual paddle, wall, score, and game-over events. Full-duration deterministic audiovisual scoring.", "instruction_summary": "I found this video animation online. Can you recreate this animation to the highest fidelity possible? Whenever the ball contacts a paddle, use `contact.mp3`; when a point is won, use `score.mp3`. When the ball hits a wall, use `wall.mp3`. When the score reaches **21–20**, use `game over.mp3`.", "instruction_path": "tasks/t24-friction-pong/instruction.md", "task_toml_path": "tasks/t24-friction-pong/task.toml", "dockerfile_path": "tasks/t24-friction-pong/environment/Dockerfile", "tests_path": "tasks/t24-friction-pong/tests", "readme_path": "tasks/t24-friction-pong/README.md", "gui_only_enforcement": "in_container_terminal_stub", "external_assets_required": null, "docker_image_status": "build_from_dockerfile", "docker_image_ref": null, "agent_timeout_sec": 1800.0, "verifier_timeout_sec": 1800.0, "network_mode": "no-network", "file_count": 80, "total_bytes": 61377713, "trajectory_count": 12, "trajectory_urls": ["https://www.trajectories.sh/t/2a18405d-cc74-4da1-93c0-c8152c8e9970", "https://www.trajectories.sh/t/57b610b7-4633-468e-9054-f34f91ec84f6", "https://www.trajectories.sh/t/732317ed-b6da-42e6-a30e-179a534d719d", "https://www.trajectories.sh/t/276b690b-ee61-476a-ad68-b8cf1a95c2c4", "https://www.trajectories.sh/t/6b2e6158-cb63-4351-9c3f-a5f987dda071", "https://www.trajectories.sh/t/5bc046eb-eea0-40d6-bcc1-c29311e67a00", "https://www.trajectories.sh/t/edd48f9e-bda5-4438-8574-e2c42b4f7575", "https://www.trajectories.sh/t/b4fa2709-b423-483f-985c-92b57fd1a67c", "https://www.trajectories.sh/t/a2fdd0b5-3a6f-468b-b45f-1caf78a38d28", "https://www.trajectories.sh/t/fb23202f-0d9f-46bb-8eb7-64edc72f4473", "https://www.trajectories.sh/t/46ee8dae-35ee-4397-a4c9-bdcb48c0fa7d", "https://www.trajectories.sh/t/fa85aca3-5f57-49f8-b7d7-d440c5f2839f"]}{"task_id": "t18-friction-tutorial", "harbor_name": "sid/t18-friction-tutorial", "version": "0.1.0", "domain": "design_and_motion", "app": "Friction", "description": "Learn-from-tutorial motion graphics, no assets: with Friction (open-source After Effects tier) and the 26-minute 'Introduction to Friction for Motion Graphics' tutorial (captioned video + timestamped transcript + per-chapter frame sheets in /root/tutorial), reproduce what it builds — a blue water-drop path (circle → path, pointed top, flat fill, no stroke) whose Y translation is keyframed to fall from above the 1920x1080 canvas at frame 0 to below it at frame 30 with ease-in acceleration from the graph editor — save /root/edit/project.friction and render /root/Desktop/final.mp4 (60 frames, 30 fps). Graded from the render: blue blob colour, drop shape, downward monotonic motion, enter-top/exit-bottom timing, acceleration, solid background.", "instruction_summary": "You are learning Friction, an open-source motion-graphics application, from a video tutorial, and then reproducing what the tutorial builds. No footage or other assets are needed. Friction is open on the desktop. The tutorial is /root/tutorial/tutorial.mp4; double-click the \"Tutorial\" launcher on...", "instruction_path": "tasks/t18-friction-tutorial/instruction.md", "task_toml_path": "tasks/t18-friction-tutorial/task.toml", "dockerfile_path": "tasks/t18-friction-tutorial/environment/Dockerfile", "tests_path": "tasks/t18-friction-tutorial/tests", "readme_path": "tasks/t18-friction-tutorial/README.md", "gui_only_enforcement": "harness_enable_bash_false", "external_assets_required": null, "docker_image_status": "standalone_delivery_verified_amd64", "docker_image_ref": "18J_e6NYxop3RSpWdxYhDWBpZBEOrrzNf", "agent_timeout_sec": 1800.0, "verifier_timeout_sec": 600.0, "network_mode": "public", "file_count": 28, "total_bytes": 161972661, "trajectory_count": 5, "trajectory_urls": ["https://www.trajectories.sh/t/dcfaaade-7ed3-4284-a386-d95ace1c25f3", "https://www.trajectories.sh/t/41c67054-4f3a-4016-bf2b-d27c53f6b093", "https://www.trajectories.sh/t/310a5d97-893f-47c7-bfd0-f0b701adbfde", "https://www.trajectories.sh/t/a16d6001-5d42-4347-af4f-52f4545bc76e", "https://www.trajectories.sh/t/6215959b-9310-4c49-8f7e-a75c44629340"]}{"task_id": "t29-friction-three-dots", "harbor_name": "sid/t29-friction-three-dots", "version": "0.3.0", "domain": "design_and_motion", "app": "Friction", "description": "Reference recreation in Friction: 20 individual animations and combined gallery. References exported; provisional visual diagnostics implemented, semantic calibration pending.", "instruction_summary": "I want to recreate these loading animations in Friction. Watch `/root/media/combined-reference.mp4`. Rebuild each animation yourself, then combine all of them into one gallery scene matching the reference. Use white shapes on a black background. Match the motion, relative timing,", "instruction_path": "tasks/t29-friction-three-dots/instruction.md", "task_toml_path": "tasks/t29-friction-three-dots/task.toml", "dockerfile_path": "tasks/t29-friction-three-dots/environment/Dockerfile", "tests_path": "tasks/t29-friction-three-dots/tests", "readme_path": "tasks/t29-friction-three-dots/README.md", "gui_only_enforcement": "inherited_gui_base_image", "external_assets_required": null, "docker_image_status": "in_backup_20261104_bundle", "docker_image_ref": "studioworld-t29-delivery:20261103", "agent_timeout_sec": 14400.0, "verifier_timeout_sec": 1800.0, "network_mode": "no-network", "file_count": 16, "total_bytes": 13231075, "trajectory_count": 4, "trajectory_urls": ["https://www.trajectories.sh/t/9dbaa878-7b9c-435f-95a1-dc985521da5a", "https://www.trajectories.sh/t/6c007399-d614-4257-a19b-b6bf912442bf", "https://www.trajectories.sh/t/ff59a2ac-e2e5-4aee-879f-49b1e220d69f", "https://www.trajectories.sh/t/442f7b03-656c-40a9-aad8-4091fe8d5bf9"]}{"task_id": "t45-bouncing-ball", "harbor_name": "sid/t45-bouncing-ball", "version": "0.2.0", "domain": "design_and_motion", "app": "Friction", "description": "Build the bouncing ball shown in the tutorial, with gravity-like timing and squash and stretch at contacts.", "instruction_summary": "The captioned tutorial video is open on the desktop, paused at its first frame. **Your first action is to bring the Tutorial window forward and play the video from the beginning to the end.** Keep its captions visible. Watch the full demonstration before creating shapes or setting keyframes. Revi...", "instruction_path": "tasks/t45-bouncing-ball/instruction.md", "task_toml_path": "tasks/t45-bouncing-ball/task.toml", "dockerfile_path": "tasks/t45-bouncing-ball/environment/Dockerfile", "tests_path": "tasks/t45-bouncing-ball/tests", "readme_path": "tasks/t45-bouncing-ball/README.md", "gui_only_enforcement": "in_container_terminal_stub", "external_assets_required": null, "docker_image_status": "standalone_delivery_verified_amd64", "docker_image_ref": "1oy-d4XNy8fm3eLWk7xgnLCbTj5Sty2TG", "agent_timeout_sec": 14400.0, "verifier_timeout_sec": 1800.0, "network_mode": "no-network", "file_count": 163, "total_bytes": 107108960, "trajectory_count": 1, "trajectory_urls": ["https://www.trajectories.sh/t/96d153ba-9da5-4624-b0ec-5f0529a860f5"]}{"task_id": "t47-text-bubble", "harbor_name": "sid/t47-text-bubble", "version": "0.2.0", "domain": "design_and_motion", "app": "Friction", "description": "Recreate and separately export the two text bubble methods demonstrated in the Friction tutorial.", "instruction_summary": "The captioned tutorial video is open on the desktop, paused at its first frame. **Your first action is to bring the Tutorial window forward and play the video from the beginning to the end.** Keep its captions visible. Watch the full demonstration before creating shapes or setting keyframes. Revi...", "instruction_path": "tasks/t47-text-bubble/instruction.md", "task_toml_path": "tasks/t47-text-bubble/task.toml", "dockerfile_path": "tasks/t47-text-bubble/environment/Dockerfile", "tests_path": "tasks/t47-text-bubble/tests", "readme_path": "tasks/t47-text-bubble/README.md", "gui_only_enforcement": "in_container_terminal_stub", "external_assets_required": null, "docker_image_status": "in_backup_20261104_bundle", "docker_image_ref": "studioworld-t47-delivery:20261103", "agent_timeout_sec": 14400.0, "verifier_timeout_sec": 1800.0, "network_mode": "no-network", "file_count": 164, "total_bytes": 195680068, "trajectory_count": 1, "trajectory_urls": ["https://www.trajectories.sh/t/198d5d7a-df15-41bd-a804-13b337f583da"]}{"task_id": "t19-blender-rig-full", "harbor_name": "sid/t19-blender-rig-full", "version": "0.5.1", "domain": "3d_blender", "app": "Blender", "description": "Reproduce the full Blender rigging tutorial, retain straight and curved walking demonstrations, and record each complete playback with the whole character and route visible. Functional v0.5.1 RLVR grades binding, control behavior, separate walking progress and conservative contact/deformation quality; recording diagnostics remain separate.", "instruction_summary": "Watch all four parts of CGDive’s “Rigging isn’t Scary” Level 1 tutorial in order and follow along in Blender. Reproduce the finished character rig and both Part 4 demonstrations: walking in a straight line and walking along a curved path while turning. You can skip sponsor segments and outros.", "instruction_path": "tasks/t19-blender-rig-full/instruction.md", "task_toml_path": "tasks/t19-blender-rig-full/task.toml", "dockerfile_path": "tasks/t19-blender-rig-full/environment/Dockerfile", "tests_path": "tasks/t19-blender-rig-full/tests", "readme_path": "tasks/t19-blender-rig-full/README.md", "gui_only_enforcement": "in_container_terminal_stub", "external_assets_required": null, "docker_image_status": "build_from_dockerfile", "docker_image_ref": null, "agent_timeout_sec": 18000.0, "verifier_timeout_sec": 900.0, "network_mode": "public", "file_count": 65, "total_bytes": 198309300, "trajectory_count": 3, "trajectory_urls": ["https://www.trajectories.sh/t/eae7e619-72dd-4cb2-8593-d8136ebd7fa9", "https://www.trajectories.sh/t/7608351b-9a96-49e7-ae8c-97d4fc67d604", "https://www.trajectories.sh/t/d5aed388-a89a-4ee2-b8a8-145c684f1904"]}{"task_id": "t20-blender-donut-40", "harbor_name": "sid/t20-blender-donut-40", "version": "0.1.0", "domain": "3d_blender", "app": "Blender", "description": "Follow all fourteen parts of Blender Guru's Beginner Blender 4.0 (donut) tutorial (captioned video only, no audio, no internet, no terminal, Python console/text editor/Scripting workspace disabled) in the real Blender 4.0.2 GUI and leave the Part 13 end state — stacked textured sprinkled donuts on a plate on a marble counter, lit kitchen, compositing, camera animation — saved as /root/donut/donut.blend plus a render at /root/donut/render.png. Graded against a real learner's reference saves (thecrazymage/Blender-Donut-Tutorial) with tolerance bands plus a render-pair comparison.", "instruction_summary": "I'm learning Blender and I want Blender Guru's \"Beginner Blender 4.0 Tutorial\" series (the donut, 14 parts) actually done, not just watched — so that at the end I have the same scene he has at the end of Part 13: the stack of textured, sprinkled donuts on a plate on a marble counter, in a lit kit...", "instruction_path": "tasks/t20-blender-donut-40/instruction.md", "task_toml_path": "tasks/t20-blender-donut-40/task.toml", "dockerfile_path": "tasks/t20-blender-donut-40/environment/Dockerfile", "tests_path": "tasks/t20-blender-donut-40/tests", "readme_path": "tasks/t20-blender-donut-40/README.md", "gui_only_enforcement": "in_container_terminal_stub", "external_assets_required": null, "docker_image_status": "build_from_dockerfile", "docker_image_ref": null, "agent_timeout_sec": 50400.0, "verifier_timeout_sec": 1800.0, "network_mode": "public", "file_count": 87, "total_bytes": 1475997593, "trajectory_count": 2, "trajectory_urls": ["https://www.trajectories.sh/t/2f3c93f2-0ef8-4658-ae2a-6234b5c7a46a", "https://www.trajectories.sh/t/02dd61fe-73b3-4f20-aa1a-e6c4ca60c6bf"]}{"task_id": "sw-isometric-house", "harbor_name": "sid/sw-isometric-house", "version": "0.1.0", "domain": "3d_blender", "app": "Blender", "description": "Isometric House GUI-only reference recreation", "instruction_summary": "Please recreate the isometric house in `/root/media/reference.png` as an editable Inkscape drawing. Match the roof, building faces, and colors. Use a 1000 × 1000 white page, with the reference centered and its longer side about 800 px. Draw it as vectors rather than pasting the image. Use the Ink...", "instruction_path": "tasks/sw-isometric-house/instruction.md", "task_toml_path": "tasks/sw-isometric-house/task.toml", "dockerfile_path": "tasks/sw-isometric-house/environment/Dockerfile", "tests_path": "tasks/sw-isometric-house/tests", "readme_path": "tasks/sw-isometric-house/README.md", "gui_only_enforcement": "in_container_terminal_stub", "external_assets_required": null, "docker_image_status": "build_from_dockerfile", "docker_image_ref": null, "agent_timeout_sec": 21600.0, "verifier_timeout_sec": 1800.0, "network_mode": "no-network", "file_count": 32, "total_bytes": 984962, "trajectory_count": 1, "trajectory_urls": ["https://www.trajectories.sh/t/b909627a-c2b9-4bda-8344-bbfc9e9b2545"]}{"task_id": "sw-bicycle", "harbor_name": "sid/sw-bicycle", "version": "0.1.0", "domain": "3d_blender", "app": "Blender", "description": "Bicycle Schematic GUI-only reference recreation", "instruction_summary": "Please recreate the bicycle schematic in `/root/media/reference.png` as an editable Inkscape drawing. Keep the wheels, frame connections, and labels clear. Use a 1000 × 1000 white page, with the reference centered and its longer side about 800 px. Draw it as vectors rather than pasting the image....", "instruction_path": "tasks/sw-bicycle/instruction.md", "task_toml_path": "tasks/sw-bicycle/task.toml", "dockerfile_path": "tasks/sw-bicycle/environment/Dockerfile", "tests_path": "tasks/sw-bicycle/tests", "readme_path": "tasks/sw-bicycle/README.md", "gui_only_enforcement": "in_container_terminal_stub", "external_assets_required": null, "docker_image_status": "build_from_dockerfile", "docker_image_ref": null, "agent_timeout_sec": 21600.0, "verifier_timeout_sec": 1800.0, "network_mode": "no-network", "file_count": 32, "total_bytes": 1095886, "trajectory_count": 1, "trajectory_urls": ["https://www.trajectories.sh/t/4f5552c3-55f8-46f5-93b4-75b62b22036a"]}{"task_id": "t37-rct-micropark", "harbor_name": "sid/t37-rct-micropark", "version": "0.1.0", "domain": "gaming_openrct2", "app": "OpenRCT2", "description": "Operate Micro Park in OpenRCT2 through its GUI alone and reach a park value of $100,000 within two in-game years.", "instruction_summary": "You are playing OpenRCT2 on the Micro Park map. You don't have access to the TUI or any coding access. You can only interact with the GUI. Your goal is to reach a park value of $100,000 within two in-game years (16 months). You get up to three tries at it in this session, and the best try is your...", "instruction_path": "tasks/t37-rct-micropark/instruction.md", "task_toml_path": "tasks/t37-rct-micropark/task.toml", "dockerfile_path": "tasks/t37-rct-micropark/environment/Dockerfile", "tests_path": "tasks/t37-rct-micropark/tests", "readme_path": "tasks/t37-rct-micropark/README.md", "gui_only_enforcement": "in_container_terminal_stub", "external_assets_required": "/opt/rct2-assets (external mount; copyrighted RCT2 game data not bundled)", "docker_image_status": "build_from_dockerfile", "docker_image_ref": null, "agent_timeout_sec": 25200.0, "verifier_timeout_sec": 1200.0, "network_mode": null, "file_count": 29, "total_bytes": 123242, "trajectory_count": 10, "trajectory_urls": ["https://www.trajectories.sh/t/80fff323-8074-4e95-879f-807ff62f9a9f", "https://www.trajectories.sh/t/ed4db882-6f6f-495f-ad82-2a680bb2129e", "https://www.trajectories.sh/t/cbb1738d-c10f-4bc2-9487-edbde3f3e970", "https://www.trajectories.sh/t/162f6cf2-fb36-4def-97a3-5a6fb5bb6f7b", "https://www.trajectories.sh/t/9aea867e-1624-471f-bbd3-5d7bbb2a3ab5", "https://www.trajectories.sh/t/93004a75-eb4d-43e9-98fb-52aaf1a1287b", "https://www.trajectories.sh/t/7a24fc8a-1430-4807-b6a9-f093253eb02d", "https://www.trajectories.sh/t/c1a4df98-bab2-4dca-9cd3-ceed6dc69dd0", "https://www.trajectories.sh/t/a02f2368-dd58-496c-9471-81455ae7e57d", "https://www.trajectories.sh/t/31856977-d649-489d-95b4-778c8cce6da6"]}{"task_id": "t39-rct-onetile", "harbor_name": "sid/t39-rct-onetile", "version": "0.1.0", "domain": "gaming_openrct2", "app": "OpenRCT2", "description": "Start owning one tile of a 50x50 OpenRCT2 map with $350 and no loan, and get 200 guests into the park at a rating of 700 or more, as fast as possible.", "instruction_summary": "You are playing OpenRCT2. You have no terminal, no console and no scripting: the game's GUI is the only thing you can use. You own one tile of a 50x50 map. Every other tile is for sale at $90. You have $350 and no loan is available, so every tile after the first has to be paid for out of what the...", "instruction_path": "tasks/t39-rct-onetile/instruction.md", "task_toml_path": "tasks/t39-rct-onetile/task.toml", "dockerfile_path": "tasks/t39-rct-onetile/environment/Dockerfile", "tests_path": "tasks/t39-rct-onetile/tests", "readme_path": "tasks/t39-rct-onetile/README.md", "gui_only_enforcement": "in_container_terminal_stub", "external_assets_required": "/opt/rct2-assets (external mount; copyrighted RCT2 game data not bundled)", "docker_image_status": "build_from_dockerfile", "docker_image_ref": null, "agent_timeout_sec": 18000.0, "verifier_timeout_sec": 1200.0, "network_mode": null, "file_count": 25, "total_bytes": 143680, "trajectory_count": 3, "trajectory_urls": ["https://www.trajectories.sh/t/5c44e311-1d63-4807-9f9f-529e9a0fd07f", "https://www.trajectories.sh/t/06f8ccd6-95b0-45db-9d78-2ea01567b783", "https://www.trajectories.sh/t/18a428c1-bcb5-4a36-ad04-fdf937ce8ff6"]}{"task_id": "t40-rct-onetile-1000", "harbor_name": "sid/t40-rct-onetile-1000", "version": "0.1.0", "domain": "gaming_openrct2", "app": "OpenRCT2", "description": "Start owning one tile of a 50x50 OpenRCT2 map with $350 and no loan, and get 1,000 guests into the park at a rating of 700 or more, as fast as possible.", "instruction_summary": "You are playing OpenRCT2. You have no terminal, no console and no scripting: the game's GUI is the only thing you can use. You own one tile of a 50x50 map. Every other tile is for sale at $90. You have $350 and no loan is available, so every tile after the first has to be paid for out of what the...", "instruction_path": "tasks/t40-rct-onetile-1000/instruction.md", "task_toml_path": "tasks/t40-rct-onetile-1000/task.toml", "dockerfile_path": "tasks/t40-rct-onetile-1000/environment/Dockerfile", "tests_path": "tasks/t40-rct-onetile-1000/tests", "readme_path": "tasks/t40-rct-onetile-1000/README.md", "gui_only_enforcement": "in_container_terminal_stub", "external_assets_required": "/opt/rct2-assets (external mount; copyrighted RCT2 game data not bundled)", "docker_image_status": "build_from_dockerfile", "docker_image_ref": null, "agent_timeout_sec": 18000.0, "verifier_timeout_sec": 1200.0, "network_mode": null, "file_count": 25, "total_bytes": 125077, "trajectory_count": 1, "trajectory_urls": ["https://www.trajectories.sh/t/e8c4abef-f0b1-4ef7-9f56-67876c1504c1"]}{"task_id": "t35-follow-text-instructions", "harbor_name": "sid/t35-follow-text-instructions", "version": "0.1.0", "domain": "design_and_motion", "app": "Friction", "description": "Follow a written illustration brief with no reference import: draw a Penrose impossible triangle in GIMP to the brief's exact hexes, 6px stroke and six vertex coordinates, then import the flattened PNG into Friction, center its anchor point, and spin it three full clockwise turns over 5 seconds with motion blur enabled. Deterministic in-sandbox scoring plus a host-side VLM comparison against the reference SVG.", "instruction_summary": "A client sent over a written brief for an illustration and wants it animated. The brief is at **`/root/media/penrose-spec.md`** — read it first and build the drawing from what it says. Step 1 — draw it in GIMP. GIMP is on the desktop. Work to the brief: 1000 × 1000 canvas, solid white background,...", "instruction_path": "tasks/t35-follow-text-instructions/instruction.md", "task_toml_path": "tasks/t35-follow-text-instructions/task.toml", "dockerfile_path": "tasks/t35-follow-text-instructions/environment/Dockerfile", "tests_path": "tasks/t35-follow-text-instructions/tests", "readme_path": "tasks/t35-follow-text-instructions/README.md", "gui_only_enforcement": "in_container_terminal_stub", "external_assets_required": null, "docker_image_status": "build_from_dockerfile", "docker_image_ref": null, "agent_timeout_sec": 14400.0, "verifier_timeout_sec": 900.0, "network_mode": "no-network", "file_count": 32, "total_bytes": 32599135, "trajectory_count": 1, "trajectory_urls": ["https://www.trajectories.sh/t/b4dc53cd-d396-416c-bc08-3bbd0b8be07f"]}{"task_id": "t48-subscribe-button", "harbor_name": "sid/t48-subscribe-button", "version": "0.2.0", "domain": "design_and_motion", "app": "Friction", "description": "Recreate the tutorial's animated subscribe button and its icon, lettering and state changes in Friction.", "instruction_summary": "The captioned tutorial video is open on the desktop, paused at its first frame. **Your first action is to bring the Tutorial window forward and play the video from the beginning to the end.** Keep its captions visible. Watch the full demonstration before creating shapes or setting keyframes. Revi...", "instruction_path": "tasks/t48-subscribe-button/instruction.md", "task_toml_path": "tasks/t48-subscribe-button/task.toml", "dockerfile_path": "tasks/t48-subscribe-button/environment/Dockerfile", "tests_path": "tasks/t48-subscribe-button/tests", "readme_path": "tasks/t48-subscribe-button/README.md", "gui_only_enforcement": "in_container_terminal_stub", "external_assets_required": null, "docker_image_status": "build_from_dockerfile", "docker_image_ref": null, "agent_timeout_sec": 14400.0, "verifier_timeout_sec": 1800.0, "network_mode": "no-network", "file_count": 163, "total_bytes": 146849367, "trajectory_count": 1, "trajectory_urls": ["https://www.trajectories.sh/t/febc9edf-48fd-418f-8f48-72005d0cd25a"]}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100# T37: Micro Park to $100,000 park value
GUI-only OpenRCT2 management task, modelled on T34 but with a single goal andan empty plot: build and operate RCT1's **Micro Park** (17x17 tiles, free parkentry, $10,000 cash, $10,000 of $20,000 loan drawn) until its park valuereaches **$100,000**, within **two in-game years (16 months)**.
The scenario's own objective is `parkValueBy` with a $100,000 target; theshipped deadline is year 3. The task controller tightens it to year 2 asrequested, so this is deliberately harder than the published scenario. SeeGOALS.md.
The agent gets **three tries inside one session**. A try ends when the enginesettles the objective; if it failed and tries remain, the environment throws thepark away and starts the next try from the same seed, in the same sandbox, withthe same agent still running. Nothing carries over but what the agent learned —and the notes it wrote down.
The score is the session's, not a single try's: 0.50 for reaching $100,000 inany attempt, 0.40 for a third attempt whose peak park value beats both earlierones, 0.05 for writing notes and 0.05 for playing all three attempts. Reachingthe goal waives the other three, so any verified completion is 1.0 — the sessionends on completion, so an agent that wins early cannot play attempts that nolonger exist. Nothing scales with how close a failed park got. See RUBRIC.md.
- `environment/micropark-seed.park` is Micro Park converted from RCT1 `SC99.SC4`, so no RCT1 installation is needed at run time.- `environment/try-supervisor.py` owns the engine and is the only thing that can reset the park: it plays the seed for each try, archives that try's evidence under `save/try-N`, and publishes the live try in `/logs/artifacts/tries/current.json`. The agent has no way to replay a try.- `environment/controller.js` is trusted code: it sets the two-year deadline, emits the audit stream, draws the objective panel (titled with the try number), saves the park the moment a try settles, and blocks cheats, reloading and pausing once the clock starts. Fast-forward stays available.- The image is self-contained (Debian + OpenRCT2 0.5.5, no browser, no terminal, console entry point patched out; the only other GUI application is the sandboxed notepad above). It does not layer on T33.- Purchased RCT2 data is mounted read-only at `/opt/rct2-assets` locally and uploaded per sandbox in the cloud; it is never baked into the image or included in trajectories.
The instructions tell the agent to write its strategy and learnings down, and0.05 of the rubric turns on whether it did, so the desktop carries a notepad.The instructions do not name the file or the shortcut — finding it is part of thetask:
- A Mousepad window on `/notes/micropark-notes.txt`, kept open by `environment/notepad-keeper.sh` and reopened if the agent closes it. Super+N raises it, Super+G brings the park back; the park is the front window at start-up and after every reset.- `/notes` is outside the game profile, so `clear_park()` cannot touch it: the notes are the one thing that survives a reset.- The editor runs as an unprivileged `notes` user, not as the game user. A text editor can save anywhere its process may write, and the engine loads every `.js` in the profile's plugin directory at start-up, so a notepad owned by `rct2` would have been the scripting surface this task withholds. That user can write `/notes` and nothing else, and cannot read the game profile, the controller source or the run's own audit stream.- `environment/collect.py` files the notes per try under `notes/try-N`, the supervisor records `notes_bytes` on `try_ended`, and `scripts/launch-runs.py` pulls the file out to `artifacts/runs-<stamp>/<model>/notes/` as plain text (every changed version under `notes/history/`), so the agent's reasoning can be read on the host without untarring a checkpoint. The grader never reads any of it: it reopens `.park` saves only.
Local use: `scripts/docker.sh up -d --wait`, then noVNC on`http://localhost:6086/vnc.html`. `scripts/prepare-attempt.py` creates anisolated Compose project and `scripts/run-attempt.py` bounds a local attemptand always collects and grades afterwards. Preserve T33/T34 and every existingvolume; never use `down -v`.
Cloud runs use Harbor's own Daytona lifecycle with computer-1 and thetask-local GUI adapters in `scripts/computer_agent.py` and`scripts/daytona_agent.py`. `scripts/publish-snapshot.py` builds the image andpublishes the snapshot (`refresh-rct-micropark-20260923-v4-notes`) with a receipt in`artifacts/release-manifest.json`; `scripts/daytona-preflight.py`,`scripts/daytona-smoke.py` and `scripts/daytona-model-smoke.py` check a sandbox,the runtime and one model's loop against it. `scripts/launch-runs.py --detach`then launches one run per model concurrently — Opus 5 on Bedrock, Gemini 3.8Flash, and GPT-5.6 Sol through the ZDR (stateless, `store=false`) transport —each with a seven-hour cap covering all three tries and zero whole-trialretries, because a Harbor retry would start a new sandbox and throw the agent'slearnings away with it. Launches are staggered by six minutes so the threehalf-gigabyte runtime uploads do not collide, and the supervisor pulls acheckpoint tarball from every sandbox every two minutes. Credentials stay in thehost launcher process and never enter the sandbox.
`scripts/pruned_providers.py` wraps Harbor's Bedrock provider to trim oldscreenshots and turns: Harbor's own compactor only runs on its litellm path, andthe first Opus run died of `Input is too long` at turn 235 without it. Gemini andOpenAI keep their history server side and are left alone.
This is a provisional first-attempt benchmark. The target has been reachedexactly once, by Opus 5 on 2026-09-23 — and by building six Roto-Drops with nofootpaths in a closed park, so park value hit $114,300 at month 8 with zeroguests and zero customers on any ride. No run has reached $100,000 by operatinga park that admits guests, so the target is still not calibrated against ademonstrated oracle, and a 1.0 currently means the guestless park-value farm wasfound. See VERIFICATION.md and RUBRIC.md.12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455# T37 executable rubric
The score belongs to the session, not to a single try. Half of it is reachingthe goal; the other half is whether the agent used the three attempts it wasgiven.
| Component | Weight | Awarded when ||---|---:|---|| Goal | 0.50 | The $100,000 park value was reached in **any** attempt, verified as below || Improvement | 0.40 | Attempt 3's peak park value is **strictly greater** than attempt 1's and attempt 2's || Notes | 0.05 | The notepad holds more than the seeded file, i.e. the agent wrote something of its own || Attempts | 0.05 | All three attempts were played |
**Reaching the goal waives the other three components, so any verifiedcompletion scores 1.0.** The environment ends the session the moment theobjective completes, so an agent that wins on attempt 1 or 2 cannot play orwrite notes for attempts that no longer exist; withholding that credit wouldpenalise winning early.
A verified completion means all of it: the engine recorded the $100,000park-value objective as completed no later than month 16, **and** a reopenednative save carries the controller's origin marker (`micropark-v1-2yr-001`),`scenarioStatus == completed`, objective `parkValueBy` / year 2 / $100,000, anda completion outcome inside the deadline. Telemetry alone never completes a try.
Notes and limits:
- Without a completion the ceiling is 0.50, and it is reached only by playing all three attempts, improving on the third, and writing notes. Nothing scales with how close the park value got: a park that peaked at $400 and one that peaked at $90,000 both score the same if neither reached the target. That is deliberate — the earlier peak-value gradient let a park that never came close collect most of a reward.- The improvement check reads each attempt's peak park value from the engine's own telemetry and the reopened save. It needs all three attempts to have trustworthy peaks, so a session containing a reloaded attempt cannot claim it.- Reloading a save (`micropark_reloaded`) invalidates the attempt it belongs to: that attempt cannot complete and reports no peak. It would otherwise let a failed deadline be retried.- The notes check is binary and reads only the file's size, recorded by the supervisor at the start and end of every attempt. The first measurement is the seeded file, so the grader does not need to know what the seed says. The grader never reads the notes' contents, and nothing in the score depends on what they say.- Missing controller baseline, a controller/instrumentation error, or missing state samples are **evaluation errors**, not a fabricated zero.- Park value is read from the engine, which recomputes it; it cannot be written by a plugin, so neither the goal nor the improvement check can be faked from the GUI.- What the objective does *not* require is a park that admits guests. A closed, footpath-less park full of rides no one can reach reaches $100,000 of park value and scores 1.0; this has been demonstrated, not theorised (VERIFICATION.md). Operations and finances are no longer scored at all, so nothing in the rubric pushes against it. Fixing that means changing the objective, not the weights.1234567891011121314151617181920212223242526272829303132333435363738name: ${T37_PROJECT:-t37-rct-micropark}services: game: platform: linux/amd64 image: t37-rct-micropark:v1 command: [] environment: MICROPARK_ASSETS_MOUNTED: "1" # Unset means the entrypoint's own default of three tries; a small number # is how the reset between tries is exercised locally. T37_TRIES: "${T37_TRIES:-}" build: context: ./environment dockerfile: Dockerfile ports: - "127.0.0.1:${WEB_PORT:-6086}:6080" volumes: - type: bind source: ${RCT2_ASSETS:?Set RCT2_ASSETS or use scripts/docker.sh} target: /opt/rct2-assets read_only: true bind: create_host_path: false - game-data:/home/rct2/.config/OpenRCT2 - ${T37_ARTIFACTS:-./artifacts}:/artifacts - ${T37_ARTIFACTS:-./artifacts}/logs:/logs tmpfs: - /tmp:size=536870912,mode=1777 shm_size: 512mb stop_grace_period: 15s healthcheck: test: ["CMD", "curl", "-fsS", "http://127.0.0.1:6080/vnc.html"] interval: 10s timeout: 3s retries: 6 start_period: 30svolumes: game-data:123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293# Self-contained game desktop: OpenRCT2 0.5.5 with no browser, no terminal and# no in-game console. The purchased RCT2 data is mounted at run time, never# baked into this image.FROM debian:bookworm-slim
ARG OPENRCT2_VERSION=0.5.5ARG OPENRCT2_SHA256=db233a2cde7861057f5d70982cb7299066222888f7c796540085ee4eb9a0a7a0
RUN apt-get update && apt-get install -y --no-install-recommends \ ca-certificates curl tini bash python3 procps \ libsdl2-2.0-0 libsdl2-ttf-2.0-0 libcurl4 libfontconfig1 libfreetype6 \ libicu72 libpng16-16 libspeexdsp1 libzip4 libzstd1 libssl3 \ libflac12 libvorbisfile3 libgomp1 libgl1 \ xvfb xauth x11-utils x11vnc openbox novnc python3-websockify \ xdotool wmctrl scrot fonts-dejavu-core \ imagemagick webp \ mousepad \ && rm -rf /var/lib/apt/lists/*
RUN test "$(dpkg --print-architecture)" = amd64 \ && curl --fail --location --retry 3 \ "https://github.com/OpenRCT2/OpenRCT2/releases/download/v${OPENRCT2_VERSION}/OpenRCT2-v${OPENRCT2_VERSION}-Linux-bookworm-x86_64.tar.gz" \ -o /tmp/openrct2.tar.gz \ && echo "${OPENRCT2_SHA256} /tmp/openrct2.tar.gz" | sha256sum -c - \ && tar -xzf /tmp/openrct2.tar.gz -C /opt \ && rm /tmp/openrct2.tar.gz \ && ln -s /opt/OpenRCT2/openrct2 /usr/local/bin/openrct2
ENV DISPLAY=:1 \ SDL_AUDIODRIVER=dummy \ SDL_VIDEODRIVER=x11 \ SDL_RENDER_DRIVER=opengl \ LIBGL_ALWAYS_SOFTWARE=1 \ LP_NUM_THREADS=2 \ TMPDIR=/tmp \ LD_LIBRARY_PATH=/opt/OpenRCT2
RUN openrct2 --version \ && useradd --create-home --uid 1000 --shell /bin/bash rct2 \ && mkdir -p /home/rct2/.config/OpenRCT2 /artifacts /opt/rct2-assets \ && mkdir -p /tmp/.X11-unix && chmod 1777 /tmp/.X11-unix \ && chown -R rct2:rct2 /home/rct2 /artifacts
# The notepad is a writable GUI surface, so it is not the game's user. A text# editor's Save As can reach anywhere its process may write, and the engine# loads every .js in the game profile's plugin directory at start-up: one saved# file there would hand the agent the scripting surface this task withholds.# This user can write /notes and nothing else, and cannot read the game profile# or the trusted controller source either.RUN useradd --create-home --uid 1001 --shell /usr/sbin/nologin notes \ && mkdir -p /notes /home/notes/.config/glib-2.0/settings \ && printf '[org/xfce/mousepad/preferences/view]\nword-wrap=true\nshow-line-numbers=true\nfont-name=%s\n' \ "'Monospace 11'" > /home/notes/.config/glib-2.0/settings/keyfile \ && chown -R notes:notes /home/notes \ && chown notes:rct2 /notes && chmod 2775 /notes \ && chmod 750 /home/rct2
# The console is the one GUI surface that could script the simulation, so the# pinned executable is patched to refuse to open it.COPY restrict-console.py /usr/local/lib/t37/restrict-console.pyRUN python3 /usr/local/lib/t37/restrict-console.py /opt/OpenRCT2/openrct2 \ > /opt/OpenRCT2/console-restriction.json
COPY entrypoint.sh /usr/local/bin/t37-entrypointCOPY await-assets.sh /usr/local/bin/micropark-await-assetsCOPY terminal-blocked.sh /usr/local/bin/t37-terminal-blockedCOPY notepad-keeper.sh /usr/local/bin/t37-notepad-keeperCOPY game-process.py collect.py try-supervisor.py /usr/local/lib/t37/# The notepad's starting contents, kept as a file so its size is a known# quantity the supervisor can report and the grader can measure against.COPY notes-seed.txt /usr/local/lib/t37/notes-seed.txtCOPY controller.js /usr/local/lib/t37/observer.jsCOPY openbox-rc.xml /etc/xdg/openbox/rc.xmlCOPY openbox-menu.xml /etc/xdg/openbox/menu.xmlCOPY micropark-seed.park /opt/micropark/micropark-seed.park
RUN chmod +x /usr/local/bin/t37-entrypoint /usr/local/bin/micropark-await-assets \ /usr/local/bin/t37-terminal-blocked /usr/local/bin/t37-notepad-keeper \ && chown -R root:rct2 /usr/local/lib/t37 && chmod 750 /usr/local/lib/t37 \ && chmod 444 /opt/micropark/micropark-seed.park \ && mkdir -p /logs/artifacts /logs/verifier/artifacts \ && chown -R rct2:rct2 /logs \ && for app in xterm uxterm lxterm koi8rxterm x-terminal-emulator \ xfce4-terminal xfce4-appfinder xfrun4 lxterminal gnome-terminal; do \ ln -sf /usr/local/bin/t37-terminal-blocked "/usr/bin/$app"; done \ && find /usr/share/applications -name '*.desktop' -delete \ && printf '[Desktop Entry]\nType=Application\nName=OpenRCT2\nExec=openrct2\nCategories=Game;\nTerminal=false\n' \ > /usr/share/applications/openrct2.desktop
WORKDIR /home/rct2EXPOSE 6080# Root only waits for the private assets, then drops to the game user.ENTRYPOINT ["/usr/bin/tini", "--", "/usr/local/bin/micropark-await-assets"]12345678910111213141516171819#!/usr/bin/env bashset -euo pipefailif [[ "${MICROPARK_ASSETS_MOUNTED:-0}" != 1 ]]; then until [[ -f /opt/rct2-assets/.ready ]]; do sleep 1; donefimkdir -p /logs/artifacts /logs/verifier/artifacts /artifacts /home/rct2/.config/OpenRCT2chown -R rct2:rct2 /logs /artifacts /home/rct2/.config/OpenRCT2# The notepad user must not be able to read the run's own telemetry: the audit# stream states the park value the agent is supposed to read off the panel. Only# tighten what the game user really owns — a bind mount that ignores ownership# would otherwise be locked away from the engine writing to it.for path in /logs /artifacts; do if [[ "$(stat -c %U "$path")" == rct2 ]]; then chmod 750 "$path"; fidone# The notepad keeper needs root to drop to the notes user, so it starts here,# before the game user takes over. It is deliberately not one of the entrypoint's# supervised children: the desktop must outlive the notepad, not die with it./usr/local/bin/t37-notepad-keeper &exec runuser -u rct2 -- env HOME=/home/rct2 DISPLAY=:1 TMPDIR=/tmp /usr/local/bin/t37-entrypoint123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110"""Preserve available game outputs; never assign a gameplay score."""import argparseimport hashlibimport jsonimport osfrom pathlib import Pathimport shutilimport subprocessimport timefrom datetime import datetime, timezone
def copy(source, output, attempts=3): """Copy, retrying briefly: a bind mount can fail a copy that then succeeds.
Seen locally as EDEADLK on the host bind mount while filing the notes. The collector runs on a loop, so a transient loss would usually heal itself — but not for the last collection of a try, which is that try's evidence. """ for attempt in range(attempts): try: shutil.copy2(source, output) return except OSError: if attempt == attempts - 1: raise time.sleep(0.2)
def current_try(): """Which try's park is on screen; the supervisor publishes it per try.""" try: return int(json.loads(Path("/logs/artifacts/tries/current.json").read_text())["try"]) except (FileNotFoundError, KeyError, ValueError, OSError): return int(os.environ.get("T37_TRY", "1"))
def main(): parser = argparse.ArgumentParser() parser.add_argument("--screenshot", action="store_true") args = parser.parse_args() stamp = datetime.now(timezone.utc).strftime("%Y%m%dT%H%M%S.%fZ") home = Path.home() # The park is thrown away between tries, so each try's saves are kept apart # and every try can be proven against the engine afterwards. attempt = current_try() roots = { f"save/try-{attempt}": home / ".config/OpenRCT2/save", f"screenshots/try-{attempt}": home / ".config/OpenRCT2/screenshot", # The notepad's file is cumulative and outlives the park reset, so the # copy filed under a try is that try's view of the agent's own notes: # the try-N copy stops changing the moment try N+1 begins. f"notes/try-{attempt}": Path(os.environ.get("T37_NOTES_DIR", "/notes")), "desktop": home / "Desktop", "downloads": home / "Downloads", } targets = [Path("/logs/artifacts"), Path("/logs/verifier/artifacts")] errors = [] records = [] for target in targets: target.mkdir(parents=True, exist_ok=True) audit = targets[0] / "audit" if audit.exists(): shutil.copytree(audit, targets[1] / "audit", dirs_exist_ok=True) for label, root in roots.items(): if not root.is_dir(): continue for source in sorted(root.rglob("*")): if not source.is_file() or source.is_symlink(): continue if source.suffix.lower() not in {".park", ".sv6", ".sv4", ".png", ".jpg", ".jpeg", ".bak", ".txt", ".md"}: continue relative = Path(label) / source.relative_to(root) try: for target in targets: output = target / relative output.parent.mkdir(parents=True, exist_ok=True) copy(source, output) saved = targets[0] / relative records.append({ "path": str(relative), "bytes": saved.stat().st_size, "sha256": hashlib.sha256(saved.read_bytes()).hexdigest(), }) except OSError as error: errors.append(f"{relative}: {error}") if args.screenshot and os.environ.get("DISPLAY"): relative = Path("checkpoints") / f"{stamp}.png" image = targets[0] / relative image.parent.mkdir(parents=True, exist_ok=True) result = subprocess.run(["scrot", "-o", str(image)], capture_output=True) if result.returncode == 0: (targets[1] / relative).parent.mkdir(parents=True, exist_ok=True) copy(image, targets[1] / relative) records.append({ "path": str(relative), "bytes": image.stat().st_size, "sha256": hashlib.sha256(image.read_bytes()).hexdigest(), }) else: errors.append(result.stderr.decode(errors="replace")) record = {"timestamp_utc": stamp, "artifacts": records, "errors": errors} for target in targets: checkpoint = target / "checkpoints" / f"{stamp}.json" checkpoint.parent.mkdir(parents=True, exist_ok=True) checkpoint.write_text(json.dumps(record, indent=2) + "\n") print(json.dumps(record))
if __name__ == "__main__": main()123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148/* Trusted environment controller. No screenshot/model hooks and no gameplay help. It tightens the stock Micro Park deadline to two in-game years, records evidence, and blocks cheats, reloading and pausing after the clock starts. */registerPlugin({name:"micropark-controller",version:"1.0.0",authors:["Task environment"],type:"local",licence:"MIT",targetApiVersion:77,main:function(){ var ORIGIN="micropark-v1-2yr-001",TARGET=1000000,DEADLINE_MONTHS=16; // The supervisor prepends the try it launched this engine for; a plugin cannot // read a file, and a stand-alone copy of this controller is simply try 1 of 1. var TRY=typeof T37_TRY!=="undefined"?T37_TRY:1,TRIES=typeof T37_TRIES!=="undefined"?T37_TRIES:1; var store=context.getParkStorage("micropark-v1"); var initialized=false,started=0,lastTime=0,elapsed=0,panel=null; var lastDay=-1,lastMonth=-1,monthOpeningNet=0,dayMinCash=Infinity,dayMinRating=999,dayTicks=0; var peakValue=0,peakMonths=0,days=[],outcome=null,crashes=0,blocked=0,finalSaved=false; var incomes=["park_entrance_tickets","park_ride_tickets","shop_sales","food_drink_sales"]; var expenses=["ride_runningcosts","shop_stock","food_drink_stock","wages","marketing","research","interest"];
function emit(x){x.schema=1;x.elapsed=Math.round(elapsed);x.parkOrigin=store.get("origin","");console.log("T37JSON "+JSON.stringify(x));} function amount(types,i){return types.reduce(function(a,t){return a+(park.getMonthlyExpenditure(t)[i]||0);},0);} function net(i){return amount(incomes,i)+amount(expenses,i);} function rides(){return map.rides.filter(function(r){return r.classification==="ride";});} function shops(){return map.rides.filter(function(r){return r.classification!=="ride";});} function guests(){return map.getAllEntities("guest").filter(function(g){return g.isInPark;});} function note(text){park.postMessage({type:"blank",text:text});emit({kind:"notice",text:text});} function money(v){return context.formatString("{CURRENCY}",v);}
function snapshot(kind){ var rs=rides(),ss=shops(),gs=guests(); return {kind:kind,elapsed:Math.round(elapsed), scenarioStatus:scenario.status,objectiveYear:scenario.objective.year,objectiveTarget:scenario.objective.parkValue, completedCompanyValue:scenario.completedCompanyValue, parkValue:park.value,peakParkValue:peakValue,companyValue:park.companyValue, cash:park.cash,loan:park.bankLoan,maxLoan:park.maxBankLoan, rating:park.rating,guests:park.guests,parkOpen:park.getFlag("open"), monthsElapsed:date.monthsElapsed,monthsRemaining:Math.max(0,DEADLINE_MONTHS-date.monthsElapsed), day:date.day,month:date.month,year:date.year,ticks:date.ticksElapsed, netMonth:net(0),incomeMonth:amount(incomes,0),expensesMonth:amount(expenses,0), totalCustomers:rs.concat(ss).reduce(function(a,r){return a+r.totalCustomers;},0), openRides:rs.filter(function(r){return r.status==="open";}).length, openShops:ss.filter(function(r){return r.status==="open";}).length, crashes:crashes,blockedActions:blocked, rides:rs.map(function(r){return {id:r.id,name:r.name,type:r.type,status:r.status,breakdown:r.breakdown,excitement:r.excitement,intensity:r.intensity,totalCustomers:r.totalCustomers,totalProfit:r.totalProfit,value:r.value};}), shops:ss.map(function(r){return {id:r.id,name:r.name,type:r.type,status:r.status,totalCustomers:r.totalCustomers};})}; }
function recordOutcome(){ if(outcome)return; if(scenario.status==="completed")outcome={result:"completed",monthsElapsed:date.monthsElapsed,day:date.day,month:date.month,year:date.year,parkValue:park.value,completedCompanyValue:scenario.completedCompanyValue}; else if(scenario.status==="failed")outcome={result:"failed",monthsElapsed:date.monthsElapsed,day:date.day,month:date.month,year:date.year,parkValue:park.value}; else return; store.set("outcome",outcome); emit({kind:outcome.result==="completed"?"objective_complete":"objective_failed",outcome:outcome,state:snapshot("outcome_state")}); var again=TRIES>1&&TRY<TRIES&&outcome.result!=="completed"; note(outcome.result==="completed" ?"OBJECTIVE COMPLETE on try "+TRY+": park value reached "+money(TARGET)+" inside two years. Save your park now; the run is over." :"OBJECTIVE FAILED on try "+TRY+" of "+TRIES+": the two-year deadline passed below "+money(TARGET)+". Save your park for review." +(again?" Try "+(TRY+1)+" starts shortly on a fresh empty plot.":" No tries remain.")); // Trusted proof of how this try ended. The engine's finest autosave interval // is five minutes, which can miss the moment the objective settled, and this // try's park is thrown away as soon as the next try starts. Saving here is // last, so the map.save it raises finds the outcome already recorded. if(!finalSaved){ finalSaved=true; try{context.saveGame({filename:"t37-try-"+TRY+"-final"});} catch(e){emit({kind:"final_save_failed",message:String(e)});} } }
function updatePanel(){ if(typeof ui==="undefined")return; var s=snapshot("panel_state"); if(!panel){panel=ui.openWindow({classification:"micropark-progress",title:TRIES>1?"Micro Park objective - try "+TRY+" of "+TRIES:"Micro Park objective",x:890,y:42,width:380,height:139,widgets:[ {type:"label",name:"value",x:10,y:23,width:360,height:16,text:""}, {type:"label",name:"clock",x:10,y:42,width:360,height:16,text:""}, {type:"label",name:"money",x:10,y:61,width:360,height:16,text:""}, {type:"label",name:"park",x:10,y:80,width:360,height:16,text:""}, {type:"label",name:"status",x:10,y:101,width:360,height:23,text:""}],onClose:function(){panel=null;}});} panel.findWidget("value").text="Park value "+money(s.parkValue)+" / "+money(TARGET)+" (peak "+money(s.peakParkValue)+")"; panel.findWidget("clock").text="Year "+s.year+", month "+(s.month+1)+" of 8; "+s.monthsRemaining+" month(s) left of 16"; panel.findWidget("money").text="Cash "+money(s.cash)+"; loan "+money(s.loan)+" of "+money(s.maxLoan); panel.findWidget("park").text="Guests "+s.guests+"; rating "+s.rating+"; open rides "+s.openRides+"; shops "+s.openShops; panel.findWidget("status").text=s.scenarioStatus==="completed"?"OBJECTIVE COMPLETE - save your park" :s.scenarioStatus==="failed"?"OBJECTIVE FAILED - deadline passed" :started?"Running. Reach "+money(TARGET)+" park value before the deadline.":"Unpause to start the two-year clock."; }
function initialize(){ initialized=true; // The shipped scenario allows three years; this task is a two-year run. scenario.objective.year=2; store.set("initialized",true);store.set("origin",ORIGIN); store.set("baselineRideIds",map.rides.map(function(r){return r.id;})); peakValue=park.value; note("HANDOVER: Micro Park, try "+TRY+" of "+TRIES+". Reach a park value of "+money(TARGET)+" within two in-game years (16 months). Cash "+money(park.cash)+", loan "+money(park.bankLoan)+" of "+money(park.maxBankLoan)+"."); note("OPERATIONS: The clock starts when you unpause, and pausing is then disabled. Fast-forward stays available. Park entry is free in this scenario: charge for rides."); if(TRIES>1)note("TRIES: This is try "+TRY+" of "+TRIES+". Whichever try scores best is the one that counts."); emit({kind:"micropark_initialized",target:TARGET,deadlineMonths:DEADLINE_MONTHS,tries:TRIES,baseline:snapshot("baseline")}); lastDay=date.day;lastMonth=date.monthsElapsed;monthOpeningNet=net(0); dayMinCash=park.cash;dayMinRating=park.rating;dayTicks=0; updatePanel(); context.paused=true; }
context.subscribe("interval.tick",function(){ if(!initialized){ if(store.get("initialized",false)){ initialized=true;elapsed=store.get("elapsed",0);peakValue=store.get("peakValue",0); outcome=store.get("outcome",null);started=Date.now();lastTime=started; lastDay=date.day;lastMonth=date.monthsElapsed;monthOpeningNet=net(0); dayMinCash=park.cash;dayMinRating=park.rating; emit({kind:"micropark_reloaded",state:snapshot("reload_state")}); }else initialize(); return; } if(!started){started=Date.now();lastTime=started;emit({kind:"clock_started",state:snapshot("start_state")});note("Two-year clock started. Pause is disabled for this task.");} if(park.value>peakValue){peakValue=park.value;peakMonths=date.monthsElapsed;store.set("peakValue",peakValue);} dayMinCash=Math.min(dayMinCash,park.cash);dayMinRating=Math.min(dayMinRating,park.rating);dayTicks++; if(date.day!==lastDay||date.monthsElapsed!==lastMonth){ var closing=net(date.monthsElapsed===lastMonth?0:1); var record={kind:"micropark_day",full:dayTicks>=500,monthsElapsed:lastMonth, operatingNet:closing-monthOpeningNet,minCash:dayMinCash,minRating:dayMinRating, parkValue:park.value,peakParkValue:peakValue,guests:park.guests,cash:park.cash, totalCustomers:snapshot("day_customers").totalCustomers}; days.push(record);if(days.length>64)days.shift(); store.set("days",days);emit(record); lastDay=date.day;lastMonth=date.monthsElapsed;monthOpeningNet=net(0); dayMinCash=park.cash;dayMinRating=park.rating;dayTicks=0; } recordOutcome(); });
context.setInterval(function(){ if(!initialized)return; if(started){var now=Date.now();elapsed+=(now-lastTime)/1000;lastTime=now;store.set("elapsed",elapsed);} recordOutcome();updatePanel(); var state=snapshot("micropark_state");state.outcome=outcome;state.days=days.length;emit(state); },5000);
context.subscribe("vehicle.crash",function(e){crashes++;emit({kind:"crash",vehicle:e.id,into:e.crashIntoType});}); context.subscribe("map.save",function(){recordOutcome();var s=snapshot("micropark_save");s.outcome=outcome;emit(s);}); context.subscribe("action.query",function(e){ var forbidden=["cheatset","parksetdate","ridefreezerating","scenariosetsetting","tilemodify","loadsave"]; if(forbidden.indexOf(e.action)>=0||(e.action==="pausetoggle"&&started)){ e.result.error=1;e.result.errorTitle="Task rules"; e.result.errorMessage="This task runs continuously; cheats, reloading and pausing are disabled."; blocked++;emit({kind:"blocked_action",action:e.action}); } }); context.subscribe("action.execute",function(e){emit({kind:"action",action:e.action,args:e.args,result:e.result});});}});1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283#!/usr/bin/env bashset -euo pipefailif [[ ! -f /opt/rct2-assets/Data/g1.dat && ! -f /opt/rct2-assets/Data/G1.DAT ]]; then echo "Mount a complete Steam RCT2 installation at /opt/rct2-assets." >&2 exit 1fimkdir -p "$HOME/.config/OpenRCT2"# The supervisor installs the controller per try, with that try's number in it.mkdir -p "$HOME/.config/OpenRCT2/plugin"if [[ ! -f "$HOME/.config/OpenRCT2/config.ini" ]]; then # allow_early_completion makes the objective succeed on the day the park # value target is reached, instead of only at the deadline month. # USD keeps the on-screen objective reading exactly $100,000. # A try's park is thrown away when the next try starts, so autosave is set # to the shortest interval the engine offers (1 = every five minutes) and # kept for 30 files. The controller also saves at the moment a try settles, # which is what actually gives each try a save to be graded against. cat > "$HOME/.config/OpenRCT2/config.ini" <<'EOF'[general]autosave = 1autosave_amount = 30window_width = 1280window_height = 800fullscreen_mode = 2play_intro = falsedrawing_engine = SOFTWARE_HWDuse_vsync = falsemultithreading = falseallow_early_completion = truecurrency_format = USDconfirmation_prompt = falsesave_plugin_data = true
[sound]master_sound = falseEOFfiopenrct2 set-rct2 /opt/rct2-assetsexport T37_AUDIT_DIR=/logs/artifacts/audit# Three tries of the two-year park in one session; 1 gives a single-try run.export T37_TRIES="${T37_TRIES:-3}"mkdir -p "$T37_AUDIT_DIR"pids=()cleanup() { trap - EXIT INT TERM python3 /usr/local/lib/t37/collect.py --screenshot || true kill "${pids[@]}" 2>/dev/null || true wait || true}trap cleanup EXITtrap 'exit 0' INT TERM
Xvfb "$DISPLAY" -screen 0 1280x800x24 -nolisten tcp &pids+=("$!")ready=falsefor ((attempt=0; attempt<100; attempt++)); do if xdpyinfo >/dev/null 2>&1; then ready=true; break; fi sleep 0.1done"$ready" || { echo "Virtual display failed to start." >&2; exit 1; }openbox &pids+=("$!")x11vnc -display "$DISPLAY" -localhost -rfbport 5900 -forever -shared -nopw -quiet &pids+=("$!")websockify --web=/usr/share/novnc 6080 localhost:5900 &pids+=("$!")# The supervisor owns the engine: it plays the seed park for each try and resets# the park between tries. Nothing else may start or reset a scenario.python3 /usr/local/lib/t37/try-supervisor.py "$@" &pids+=("$!")
# Host-mounted checkpoints survive container removal. Screenshots and saves# are collected every two minutes, within the suite's two/five-minute limits.( while true; do sleep 120 python3 /usr/local/lib/t37/collect.py --screenshot || true done) &pids+=("$!")
# Closing the game, or failure of a desktop service, stops this container.wait -n "${pids[@]}"12345678910111213141516171819202122232425262728293031323334353637383940414243"""Capture engine evidence outside the evaluated application UI."""import jsonimport osfrom pathlib import Pathimport signalimport subprocessimport sysfrom datetime import datetime, timezone
root = Path(os.environ["T37_AUDIT_DIR"])root.mkdir(parents=True, exist_ok=True)# One session can hold several tries of the same park, so every record carries# the try it belongs to and the supervisor is told, out of band, when a try has# been settled by the engine and while the park is still reporting.attempt = int(os.environ.get("T37_TRY", "1"))outcome = os.environ.get("T37_TRY_OUTCOME")heartbeat = os.environ.get("T37_TRY_HEARTBEAT")settled = ("objective_complete", "objective_failed")with (root / "game.jsonl").open("a", buffering=1) as audit, (root / "engine.log").open("a", buffering=1) as log: def write(record): record["try"] = attempt record["observed_at"] = datetime.now(timezone.utc).isoformat() audit.write(json.dumps(record) + "\n") if heartbeat and record.get("kind") == "micropark_state": Path(heartbeat).write_text(record["observed_at"]) if outcome and record.get("kind") in settled and not Path(outcome).exists(): Path(outcome).write_text(record["kind"]) write({"kind":"engine_start", "schema":1}) child = subprocess.Popen(["stdbuf","-oL","-eL","openrct2",*sys.argv[1:]], stdout=subprocess.PIPE,stderr=subprocess.STDOUT,text=True) for sig in (signal.SIGINT,signal.SIGTERM): signal.signal(sig,lambda signum,frame: child.send_signal(signum)) for line in child.stdout: log.write(line) if "T37JSON " in line: try: record,_ = json.JSONDecoder().raw_decode(line.split("T37JSON ",1)[1]) write(record) except (ValueError, TypeError) as error: write({"kind":"observer_error","message":str(error)}) code=child.wait() write({"kind":"engine_stop","returncode":code}) sys.exit(code)12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364#!/usr/bin/env bash# Keeps one notepad window on the desktop for the agent's own notes.## It runs as the unprivileged `notes` user, not as the game user: a text editor# can save anywhere its process may write, and the engine loads every .js in the# game profile's plugin directory at start-up, so a notepad owned by rct2 would# be a scripting surface. This one can write /notes and nothing else.## The notes file lives outside the game profile, so the supervisor's between-try# park reset never touches it and the agent's learnings survive into the next# try. Closing the window is not a way to lose the notepad either: it is# relaunched, with the file's contents intact on disk.set -uo pipefail
NOTES_DIR=/notesNOTES_FILE="$NOTES_DIR/micropark-notes.txt"# The seed lives in the image, not in a heredoc here, so the grader can be told# its exact size and tell the agent's own writing from what it was handed.NOTES_SEED=/usr/local/lib/t37/notes-seed.txt
mkdir -p "$NOTES_DIR"chown notes:rct2 "$NOTES_DIR"chmod 2775 "$NOTES_DIR"
if [[ ! -f "$NOTES_FILE" ]]; then cp "$NOTES_SEED" "$NOTES_FILE"fichown notes:rct2 "$NOTES_FILE"chmod 664 "$NOTES_FILE"
# The editor needs the display, which the game user brings up a moment later.for _ in $(seq 1 600); do [[ -S /tmp/.X11-unix/X1 ]] && break sleep 1done
while true; do # keyfile settings instead of dconf: there is no session bus in this container, # so the editor's own preferences (word wrap, line numbers) can only be # preseeded through the keyfile backend. --line=-1 opens at the end of the # notes, which is where the next entry goes. runuser -u notes -- env HOME=/home/notes DISPLAY=:1 TMPDIR=/tmp \ GSETTINGS_BACKEND=keyfile \ mousepad --disable-server --line=-1 "$NOTES_FILE" >>/tmp/notepad.log 2>&1 & editor=$! # A default-sized window shows a third of the file; the agent reads these # notes through a screenshot, so give it the whole screen. for _ in $(seq 1 20); do sleep 0.5 if DISPLAY=:1 wmctrl -r Mousepad -b add,maximized_vert,maximized_horz 2>/dev/null; then break fi done # The park is what the agent should be looking at; the notepad is reached # deliberately with Super+N. Retried because the engine's window can map after # the editor's, both at start-up and after a between-try reset. for _ in $(seq 1 60); do if DISPLAY=:1 wmctrl -a OpenRCT2 2>/dev/null; then break; fi sleep 1 done wait "$editor" || true # Either the agent closed it or it died; give it the window back. sleep 2done1234567891011121314MICRO PARK NOTES
These notes are mine to keep. They survive between tries, so whatever I writehere is what I get to read at the start of the next attempt. The park is wipedbetween tries; this file is not.
After every attempt, write down: - what worked (rides, prices, layout, order of actions) - what to avoid (what wasted money, time or clicks) - what to do differently next try, concretely
Save with Ctrl+S.
--- TRY 1 ---1234567891011<?xml version="1.0" encoding="UTF-8"?><openbox_menu xmlns="http://openbox.org/3.4/menu"> <menu id="root-menu" label="OpenRCT2"> <item label="Park (OpenRCT2)"> <action name="Execute"><command>wmctrl -a OpenRCT2</command></action> </item> <item label="Notes (notepad)"> <action name="Execute"><command>wmctrl -a Mousepad</command></action> </item> </menu></openbox_menu>123456789101112131415161718192021222324252627<?xml version="1.0" encoding="UTF-8"?><openbox_config xmlns="http://openbox.org/3.4/rc"> <focus><focusNew>yes</focusNew></focus> <keyboard> <keybind key="A-Tab"> <action name="NextWindow"> <finalactions><action name="Focus"/><action name="Raise"/></finalactions> </action> </keybind> <!-- The game is fullscreen, so the notepad and the park each need a way back to the front that does not depend on cycling through windows. --> <keybind key="W-n"> <action name="Execute"><command>wmctrl -a Mousepad</command></action> </keybind> <keybind key="W-g"> <action name="Execute"><command>wmctrl -a OpenRCT2</command></action> </keybind> </keyboard> <mouse> <context name="Desktop"> <mousebind button="Right" action="Press"> <action name="ShowMenu"><menu>root-menu</menu></action> </mousebind> </context> </mouse> <menu><file>/etc/xdg/openbox/menu.xml</file></menu></openbox_config>123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051"""Disable the console UI in the checksum-pinned Linux 0.5.5 executable.
The official release retains ELF symbols. Replace only InGameConsole::Openwith an x86-64 return. Simulation, numeric inputs, plugin logging and theshared engine library remain untouched. Refuse other binaries/architectures.This task image is a restricted derivative, not the unmodified release."""import hashlibimport jsonfrom pathlib import Pathimport structimport sys
EXPECTED = "cf0df169bc7ff738381a3e54c8e5ecdcd6b623a4ac7f1260bc713d753d803677"SYMBOL = "_ZN8OpenRCT22Ui13InGameConsole4OpenEv"
def restrict(path): data = bytearray(path.read_bytes()) digest = hashlib.sha256(data).hexdigest() if digest != EXPECTED: raise ValueError("Console restriction requires the pinned official Linux executable") if data[:6] != b"\x7fELF\x02\x01" or struct.unpack_from("<H", data, 18)[0] != 62: raise ValueError("Expected little-endian ELF64 x86-64") offset = struct.unpack_from("<Q", data, 40)[0] size, count = struct.unpack_from("<HH", data, 58) sections = [struct.unpack_from("<IIQQQQIIQQ", data, offset + i * size) for i in range(count)] matches = [] for section in sections: if section[1] != 2: # SHT_SYMTAB continue strings_section = sections[section[6]] strings = data[strings_section[4]:strings_section[4] + strings_section[5]] for position in range(section[4], section[4] + section[5], section[9]): name, info, _, index, address, length = struct.unpack_from("<IBBHQQ", data, position) if strings[name:].split(b"\0")[0].decode() == SYMBOL: target = sections[index] assert info & 15 == 2 and target[2] & 4 and length == 346 matches.append(target[4] + address - target[3]) if len(matches) != 1: raise ValueError("Expected exactly one console entry point") position = matches[0] before = data[position] data[position] = 0xC3 # ret; no stack/register changes path.write_bytes(data) return {"original_sha256": digest, "restricted_sha256": hashlib.sha256(data).hexdigest(), "symbol": SYMBOL, "file_offset": position, "before": before, "after": 195}
if __name__ == "__main__": print(json.dumps(restrict(Path(sys.argv[1])), indent=2))1234567#!/usr/bin/env bashset -eumkdir -p /logs/artifacts /logs/verifier/artifactsentry="$(date -u +%FT%TZ) blocked terminal launcher: $0"printf '%s\n' "$entry" >> /logs/artifacts/terminal-attempts.logprintf '%s\n' "$entry" >> /logs/verifier/artifacts/terminal-attempts.logxmessage -center 'There is no terminal; use OpenRCT2 through its GUI.' || true123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196"""Run up to three tries of Micro Park inside one session.
A try ends when the engine settles the two-year objective — the park valuetarget is reached, or month 16 passes below it — or when the park stops running.After a failed try this process archives that try's evidence, throws the parkaway and starts the next try from the shipped seed, so every try begins from thesame empty plot with the same cash and loan. A completed try, or the last try,is left on screen for the agent and the verifier.
Only this process resets the park. The agent has no shell, and the controllerblocks the in-game actions that could reload or re-date a scenario, so a try cannever be replayed from inside the game."""import jsonimport osimport shutilimport signalimport subprocessimport sysimport timefrom datetime import datetime, timezonefrom pathlib import Path
TRIES = int(os.environ.get("T37_TRIES", "3"))AUDIT = Path(os.environ["T37_AUDIT_DIR"])STATE = Path("/logs/artifacts/tries")HOME = Path(os.environ.get("HOME", "/home/rct2"))PROFILE = HOME/".config/OpenRCT2"SEED = Path("/opt/micropark/micropark-seed.park")LIB = Path("/usr/local/lib/t37")# The agent's own notes, outside the game profile so a reset cannot erase them.NOTES = Path(os.environ.get("T37_NOTES_DIR", "/notes"))# Seconds a settled try stays on screen before the park is taken away, so the# outcome message and the final figures can be read and saved.FAILURE_GRACE = 90# A completed run is not reset at all; this is only time for the agent to read# the result and report it. The controller has already saved the finished park.COMPLETION_GRACE = 180# The controller reports state every five seconds. A much longer silence with a# live engine means the park is no longer running (quit to the title screen).HEARTBEAT_TIMEOUT = 180# A try that never reports at all is a broken engine, not a park. Give up on it# rather than holding the whole session open with nothing playing.STARTUP_TIMEOUT = 600POLL = 2
def now(): return datetime.now(timezone.utc).isoformat()
def mark(record): """Append a supervisor record to the same audit stream as the engine's.""" AUDIT.mkdir(parents=True, exist_ok=True) record["schema"] = 1 record["observed_at"] = now() with (AUDIT/"game.jsonl").open("a") as audit: audit.write(json.dumps(record)+"\n")
def publish(number, history): """Record which try is live, for collect.py and the verifier.""" STATE.mkdir(parents=True, exist_ok=True) temp = STATE/"current.tmp" temp.write_text(json.dumps({"try": number, "tries": TRIES, "history": history, "updated_at": now()}, indent=2)+"\n") temp.replace(STATE/"current.json")
def install_plugin(number): """Give the controller its try number; it has no way to read a file.""" target = PROFILE/"plugin/t37-observer.js" target.parent.mkdir(parents=True, exist_ok=True) target.write_text(f"var T37_TRY={number},T37_TRIES={TRIES};\n" + (LIB/"observer.js").read_text())
def clear_park(): """Discard the previous try's park so the next one starts from the seed.
Only paths inside the game profile are touched. The agent's notes live in /notes precisely so that carrying learnings into the next try is possible. """ for name in ("save", "screenshot"): shutil.rmtree(PROFILE/name, ignore_errors=True) (PROFILE/name).mkdir(parents=True, exist_ok=True)
def notes_size(): """How much is in the notepad now, measured at the start and end of a try.""" try: return sum(path.stat().st_size for path in NOTES.rglob("*") if path.is_file()) except OSError: return None
def notes_seed_size(): """How much the agent was handed, so the grader can subtract the seed.
Read from the image's own copy of the seed rather than from /notes, which the agent may already have written to by the time a later try starts. """ try: return (LIB/"notes-seed.txt").stat().st_size except OSError: return None
def collect(number): subprocess.run([sys.executable, str(LIB/"collect.py"), "--screenshot"], env={**os.environ, "T37_TRY": str(number)}, check=False)
def run_try(number, arguments): """Play one try; return the child and why the try ended.""" outcome = STATE/f"try-{number}-outcome" heartbeat = STATE/f"try-{number}-heartbeat" for path in (outcome, heartbeat): path.unlink(missing_ok=True) child = subprocess.Popen( [sys.executable, str(LIB/"game-process.py"), str(SEED), *arguments, "--rct2-data-path", "/opt/rct2-assets", "--openrct2-data-path", "/opt/OpenRCT2/data"], env={**os.environ, "T37_TRY": str(number), "T37_TRY_OUTCOME": str(outcome), "T37_TRY_HEARTBEAT": str(heartbeat)}) started = time.time() while True: # An outcome the engine reported stands even if the engine then died, # so a crash on the way out cannot erase a settled two-year try. if outcome.exists(): return child, outcome.read_text().strip() or "objective_failed" if child.poll() is not None: return child, "engine_exit" if heartbeat.exists(): if time.time()-heartbeat.stat().st_mtime > HEARTBEAT_TIMEOUT: return child, "park_closed" elif time.time()-started > STARTUP_TIMEOUT: return child, "engine_stalled" time.sleep(POLL)
def stop(child): if child.poll() is not None: return child.terminate() try: child.wait(timeout=30) except subprocess.TimeoutExpired: child.kill() child.wait()
def main(): history = [] child = None
def shutdown(*_): if child is not None: stop(child) sys.exit(0)
signal.signal(signal.SIGTERM, shutdown) signal.signal(signal.SIGINT, shutdown) for number in range(1, TRIES+1): clear_park() install_plugin(number) publish(number, history) mark({"kind": "try_started", "try": number, "tries": TRIES, "previous": history, "notes_bytes": notes_size(), "notes_seed_bytes": notes_seed_size()}) child, reason = run_try(number, sys.argv[1:]) last = number == TRIES complete = reason == "objective_complete" if complete: time.sleep(COMPLETION_GRACE) elif reason == "objective_failed" and not last: # Leave the failed park up long enough to read the final figures. time.sleep(FAILURE_GRACE) collect(number) history = history+[{"try": number, "reason": reason}] mark({"kind": "try_ended", "try": number, "tries": TRIES, "reason": reason, "final": bool(complete or last), "notes_bytes": notes_size()}) publish(number, history) if complete or last: break stop(child) mark({"kind": "campaign_finished", "tries_played": len(history), "tries": TRIES, "history": history}) # The last park stays on screen: the agent reports on it and the verifier # screenshots it. Exiting here would stop the container. if child is not None: sys.exit(child.wait())
if __name__ == "__main__": main()123456You are playing OpenRCT2 on the Micro Park map. You don't have access to the TUI or any coding access. You can only interact with the GUI. Your goal is to reach a park value of $100,000 within two in-game years (16 months).
You get up to three tries at it in this session, and the best try is your score. Use your learnings from each attempts to improve your strategy so that even if you don't reach your goal on attempt 1, you can try again but be better and more efficient at reaching your goal.
Start by unpausing the game. That starts the two-year clock, and pausing is then disabled: the park keeps running while you think. The fast-forward button stays available if needed.12345678910111213141516171819202122schema_version = "1.4"artifacts = ["/logs/artifacts", "/logs/verifier/artifacts"][task]name = "sid/t37-rct-micropark"version = "0.1.0"description = "Operate Micro Park in OpenRCT2 through its GUI alone and reach a park value of $100,000 within two in-game years."[metadata]status = "provisional-first-attempt"scored_launch_ready = false[agent]# Three tries of sixteen in-game months; the graded single tries took 79-100# minutes of real time each, plus the resets in between.timeout_sec = 25200.0[verifier]# One reopened engine per try.timeout_sec = 1200.0[environment]build_timeout_sec = 1800.0os = "linux"cpus = 4memory_mb = 8192storage_mb = 10240123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211"""Grade preserved Micro Park observations.
The score belongs to the session, not to a single try. Reaching the $100,000park value in any attempt is half of it; the other half asks whether the agentused the three attempts it was given — that it wrote its learnings down, that itplayed all three, and that the third attempt was better than the first two.
Reaching the target waives the rest: the environment ends the session the momentthe objective completes, so an agent that wins on attempt 1 cannot play or noteattempts that no longer exist. A completion therefore scores 1.0 outright.
Completion is never taken from telemetry alone: the engine's own objective musthave succeeded inside the deadline, corroborated by a native save reopened in aseparate headless engine."""import argparseimport jsonfrom pathlib import Path
TARGET = 1_000_000 # $100,000 park value, in game currency unitsDEADLINE_MONTHS = 16 # two in-game years of eight months eachEXPECTED_TRIES = 3 # the session the instructions promiseWEIGHTS = {'goal': .50, 'improvement': .40, 'notes': .05, 'attempts': .05}
def clamp(value): return max(0., min(1., value))
def grade(events, saved): """Describe one try. Diagnostic only: the reward is a session-level figure.""" if not any(e.get('kind') == 'micropark_initialized' for e in events): raise ValueError('Missing Micro Park baseline') if any(e.get('kind') in ('controller_error', 'observer_error') for e in events): raise ValueError('Controller/instrumentation failure') samples = [e for e in events if e.get('kind') in ('micropark_state', 'micropark_save', 'outcome_state')] if not samples: raise ValueError('Missing state observations') latest = samples[-1] days = [e for e in events if e.get('kind') == 'micropark_day'] native = saved or {} completion_events = [e for e in events if e.get('kind') == 'objective_complete']
peak = max([s.get('peakParkValue') or 0 for s in samples] + [s.get('parkValue') or 0 for s in samples] + [native.get('peakParkValue') or 0, native.get('parkValue') or 0]) months = max([s.get('monthsElapsed') or 0 for s in samples] + [native.get('monthsElapsed') or 0]) customers = max([s.get('totalCustomers') or 0 for s in samples] + [0]) rating = max([s.get('rating') or 0 for s in samples] + [0]) open_rides = max([s.get('openRides') or 0 for s in samples] + [0]) profitable = [d for d in days if (d.get('operatingNet') or 0) > 0]
complete = bool( completion_events and saved is not None and native.get('origin') == 'micropark-v1-2yr-001' and native.get('scenarioStatus') == 'completed' and native.get('objectiveType') == 'parkValueBy' and native.get('objectiveYear') == 2 and native.get('objectiveTarget') == TARGET and (native.get('outcome') or {}).get('result') == 'completed' and (native.get('outcome') or {}).get('monthsElapsed', DEADLINE_MONTHS + 1) <= DEADLINE_MONTHS ) # Reloading a save is disallowed: it would let a failed deadline be retried. # Such a try proves nothing, so it neither completes nor reports a peak. valid = not any(e.get('kind') == 'micropark_reloaded' for e in events) return { 'valid': valid, 'completion': 'complete' if (complete and valid) else 'incomplete', 'objective_completed_in_game': bool(completion_events), 'objective_failed_in_game': any(e.get('kind') == 'objective_failed' for e in events), 'reloaded': not valid, 'peak_park_value': peak if valid else 0, 'park_value_target': TARGET, 'park_value_fraction': clamp((peak if valid else 0) / TARGET), 'months_elapsed': months, 'deadline_months': DEADLINE_MONTHS, 'total_customers': customers, 'park_rating': rating, 'open_rides': open_rides, 'cash': native.get('cash') if saved else latest.get('cash'), 'in_game_days_recorded': len(days), 'profitable_days': len(profitable), 'native_save_reopened': saved is not None, 'blocked_actions': sum(1 for e in events if e.get('kind') == 'blocked_action'), 'outcome': native.get('outcome') or (completion_events[-1].get('outcome') if completion_events else None), }
def notes_written(events): """Did the agent write anything of its own in the notepad?
The supervisor measures /notes when each try starts and ends, and reports the size of the seed the environment installed there. Anything larger than the seed is the agent's own writing. Runs from before the seed was reported fall back to the first measurement, which is the seeded file unless the agent got there first. None means no measurement at all (an older run still). """ marks = [event for event in events if event.get('kind') in ('try_started', 'try_ended')] sizes = [event['notes_bytes'] for event in marks if isinstance(event.get('notes_bytes'), int)] if not sizes: return None seeds = [event['notes_seed_bytes'] for event in marks if isinstance(event.get('notes_seed_bytes'), int)] baseline = min(seeds) if seeds else sizes[0] return any(size > baseline for size in sizes)
def improved(peaks): """Was the third attempt better than the first two?
Needs all three attempts with trustworthy peaks; a reloaded try reports none, so a session containing one cannot claim the improvement. """ if any(peaks.get(number) is None for number in (1, 2, 3)): return False return peaks[3] > peaks[1] and peaks[3] > peaks[2]
def grade_campaign(events, saved_by_try): """Score the session: goal, improvement, notes, attempts played.""" numbers = sorted({event.get('try', 1) for event in events if event.get('kind') == 'micropark_initialized'}) if not numbers: raise ValueError('Missing Micro Park baseline') tries = [] for number in numbers: result = grade([event for event in events if event.get('try', 1) == number], saved_by_try.get(number)) tries.append(dict(result, **{'try': number})) # How many attempts the environment offered, from the trusted controller's # own baseline; the promised three when a run predates that field. declared = [event['tries'] for event in events if event.get('kind') == 'micropark_initialized' and event.get('tries')] available = max(declared) if declared else EXPECTED_TRIES peaks = {result['try']: (result['peak_park_value'] if result['valid'] else None) for result in tries} goal = next((result for result in tries if result['completion'] == 'complete'), None) wrote = notes_written(events)
scores = { 'goal': float(goal is not None), 'improvement': float(improved(peaks)), 'notes': float(bool(wrote)), 'attempts': float(len(tries) >= available), } # Reaching the target ends the session, so the attempts it cut short cannot # be held against the agent: a verified completion scores everything. waived = goal is not None if waived: scores = {key: 1. for key in WEIGHTS} weighted = {key: round(value * WEIGHTS[key], 6) for key, value in scores.items()} best = max(tries, key=lambda result: (result['completion'] == 'complete', result['peak_park_value'])) return { 'schema': 2, 'reward': round(sum(weighted.values()), 6), 'completion': 'complete' if goal else 'incomplete', 'goal_try': goal['try'] if goal else None, 'scored_components': scores, 'weighted_scores': weighted, 'component_waiver': waived, 'notes_written': wrote, 'peaks_by_try': peaks, 'peak_park_value': best['peak_park_value'], 'park_value_target': TARGET, 'tries': tries, 'tries_played': len(tries), 'tries_available': available, 'best_try': best['try'], }
def parse_saved_state(value): """`2=/path/to/state.json`, or a bare path meaning the only try.""" number, separator, path = value.partition('=') if not separator: return 1, Path(value) return int(number), Path(path)
def main(): parser = argparse.ArgumentParser() parser.add_argument('--artifacts', type=Path, default=Path('/logs/artifacts')) parser.add_argument('--output', type=Path, default=Path('/logs/verifier')) parser.add_argument('--saved-state', action='append', default=[], metavar='TRY=PATH', help='Reopened native state for one try') args = parser.parse_args() args.output.mkdir(parents=True, exist_ok=True) for name in ('reward.txt', 'reward.json', 'evaluation-error.txt'): (args.output / name).unlink(missing_ok=True) try: events = [json.loads(line) for line in (args.artifacts / 'audit/game.jsonl').read_text().splitlines() if line.strip()] saved = {} for value in args.saved_state: number, path = parse_saved_state(value) saved[number] = json.loads(path.read_text()) result = grade_campaign(events, saved) (args.output / 'scores.json').write_text(json.dumps(result, indent=2) + '\n') (args.output / 'reward.txt').write_text(str(result['reward']) + '\n') print(json.dumps(result)) except Exception as error: (args.output / 'evaluation-error.txt').write_text(str(error) + '\n') raise
if __name__ == '__main__': main()1234567891011registerPlugin({name:"micropark-verifier",version:"1.0",authors:["Verifier"],type:"local",licence:"MIT",targetApiVersion:77,main:function(){var s=context.getParkStorage("micropark-v1");console.log("T37JSON "+JSON.stringify({kind:"load", origin:s.get("origin",null),outcome:s.get("outcome",null),peakParkValue:s.get("peakValue",null), scenarioStatus:scenario.status,objectiveType:scenario.objective.type,objectiveYear:scenario.objective.year, objectiveTarget:scenario.objective.parkValue,completedCompanyValue:scenario.completedCompanyValue, parkValue:park.value,companyValue:park.companyValue,cash:park.cash,loan:park.bankLoan, rating:park.rating,guests:park.guests,parkOpen:park.getFlag("open"), monthsElapsed:date.monthsElapsed,day:date.day,month:date.month,year:date.year, rides:map.rides.map(function(r){return {id:r.id,name:r.name,classification:r.classification,status:r.status,breakdown:r.breakdown,totalCustomers:r.totalCustomers,value:r.value,excitement:r.excitement,intensity:r.intensity};})}));}});123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263"""Read a saved park through the pinned engine in an isolated verifier profile."""import argparseimport jsonimport osfrom pathlib import Pathimport selectorsimport shutilimport subprocessimport tempfileimport time
def reopen(park, engine="openrct2", rct2="/opt/rct2-assets"): with tempfile.TemporaryDirectory(prefix="t33-reopen-") as temp: profile=Path(temp) (profile/"plugin").mkdir() observer=Path(__file__).with_name("native-inspect.js") shutil.copy2(observer,profile/"plugin/observer.js") # The seed park is a converted copy; no RCT1 installation is needed. command=[engine,str(park.resolve()),"--headless","--rct2-data-path",rct2, "--user-data-path",temp] child=subprocess.Popen(command,stdout=subprocess.PIPE,stderr=subprocess.STDOUT, bufsize=0) output=b"" try: selector=selectors.DefaultSelector() selector.register(child.stdout,selectors.EVENT_READ) deadline=time.monotonic()+90 while time.monotonic()<deadline: if not selector.select(timeout=1): if child.poll() is not None: break continue block=os.read(child.stdout.fileno(),65536) if not block: break output+=block for line in output.decode(errors="replace").splitlines(): if "T37JSON " in line: try: data,_=json.JSONDecoder().raw_decode(line.split("T37JSON ",1)[1]) if data.get("kind") == "load": return data except json.JSONDecodeError: pass raise RuntimeError("Native park inspection failed: "+output.decode(errors="replace")[-2000:]) finally: child.terminate() try: child.wait(timeout=5) except subprocess.TimeoutExpired: child.kill() child.wait()
if __name__ == "__main__": parser=argparse.ArgumentParser() parser.add_argument("park",type=Path) parser.add_argument("output",type=Path) parser.add_argument("--engine",default="openrct2") parser.add_argument("--rct2",default="/opt/rct2-assets") args=parser.parse_args() args.output.write_text(json.dumps(reopen(args.park,args.engine,args.rct2),indent=2)+"\n")12345678910111213141516171819202122232425262728293031323334353637383940#!/usr/bin/env bashset -euo pipefailtest_dir="$(cd "$(dirname "$0")" && pwd)"HOME=/home/rct2 DISPLAY=:1 python3 /usr/local/lib/t37/collect.py --screenshot || truemkdir -p /logs/verifierrm -f /logs/verifier/reward.txt /logs/verifier/reward.json
# One save per try, so every try is proven against the engine itself. The# controller saves the park at the moment a try settles; that save is the# preferred proof, and the newest save stands in when a try never settled.picks="$(python3 - <<'PY'from pathlib import Pathroot = Path('/logs/artifacts/save')newest, settled = {}, {}for park in root.rglob('*.park'): first = park.relative_to(root).parts[0] number = int(first.split('-')[1]) if first.startswith('try-') else 1 if park.name == f"t37-try-{number}-final.park": settled[number] = park if number not in newest or park.stat().st_mtime > newest[number].stat().st_mtime: newest[number] = parkfor number in sorted(newest): print(f"{number}\t{settled.get(number, newest[number])}")PY)"
args=()while IFS=$'\t' read -r number park; do [[ -n "$number" ]] || continue reopened="/logs/verifier/reopened-try-$number.json" if ! python3 "$test_dir/reopen.py" "$park" "$reopened" \ >> /logs/verifier/reopen.log 2>&1; then echo "Native save for try $number could not be inspected; see reopen.log." \ > /logs/verifier/evaluation-error.txt exit 2 fi args+=(--saved-state "$number=$reopened")done <<<"$picks"
python3 "$test_dir/grade.py" ${args[@]+"${args[@]}"}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208import unittestfrom grade import (grade, grade_campaign, improved, notes_written, parse_saved_state, TARGET, WEIGHTS)
SEED_NOTES = 436 # the notes file as the environment seeds it
class Gates(unittest.TestCase): """Whether one try counts as having reached the target.""" def fixture(self): outcome={'result':'completed','monthsElapsed':11,'parkValue':TARGET+5000} e=([{'kind':'micropark_initialized'},{'kind':'clock_started'}] +[{'kind':'micropark_day','operatingNet':400,'monthsElapsed':m} for m in range(11)] +[{'kind':'micropark_state','parkValue':TARGET+5000,'peakParkValue':TARGET+5000, 'monthsElapsed':11,'totalCustomers':900,'rating':820,'openRides':4,'cash':50000}] +[{'kind':'objective_complete','outcome':outcome}]) s={'origin':'micropark-v1-2yr-001','outcome':outcome,'scenarioStatus':'completed', 'objectiveType':'parkValueBy','objectiveYear':2,'objectiveTarget':TARGET, 'peakParkValue':TARGET+5000,'parkValue':TARGET+5000,'monthsElapsed':11,'cash':50000} return e,s def test_complete(self): e,s=self.fixture();r=grade(e,s) self.assertEqual(r['completion'],'complete');self.assertTrue(r['valid']) self.assertEqual(r['peak_park_value'],TARGET+5000) def test_no_native_proof_is_not_a_completion(self): e,s=self.fixture() self.assertEqual(grade(e,None)['completion'],'incomplete') def test_wrong_park_rejected(self): e,s=self.fixture();s['origin']='other-park' self.assertEqual(grade(e,s)['completion'],'incomplete') def test_relaxed_deadline_rejected(self): e,s=self.fixture();s['objectiveYear']=3 self.assertEqual(grade(e,s)['completion'],'incomplete') def test_lowered_target_rejected(self): e,s=self.fixture();s['objectiveTarget']=10 self.assertEqual(grade(e,s)['completion'],'incomplete') def test_completion_after_deadline_rejected(self): e,s=self.fixture();s['outcome']=dict(s['outcome'],monthsElapsed=17) self.assertEqual(grade(e,s)['completion'],'incomplete') def test_failed_deadline_still_reports_its_peak(self): e,s=self.fixture() e=[x for x in e if x['kind']!='objective_complete'] e.append({'kind':'objective_failed','outcome':{'result':'failed','monthsElapsed':16}}) e[-2]['peakParkValue']=TARGET//2;e[-2]['parkValue']=TARGET//2;e[-2]['monthsElapsed']=16 s=dict(s,scenarioStatus='failed',outcome={'result':'failed','monthsElapsed':16}, peakParkValue=TARGET//2,parkValue=TARGET//2) r=grade(e,s) self.assertEqual(r['completion'],'incomplete');self.assertTrue(r['objective_failed_in_game']) self.assertEqual(r['peak_park_value'],TARGET//2) def test_reload_invalidates_the_try_and_its_peak(self): e,s=self.fixture();e.append({'kind':'micropark_reloaded'}) r=grade(e,s) self.assertFalse(r['valid']);self.assertEqual(r['completion'],'incomplete') self.assertEqual(r['peak_park_value'],0) def test_controller_failure_is_an_evaluation_error(self): e,s=self.fixture();e.append({'kind':'controller_error'}) self.assertRaises(ValueError,grade,e,s) def test_missing_baseline_is_an_evaluation_error(self): e,s=self.fixture();e=[x for x in e if x['kind']!='micropark_initialized'] self.assertRaises(ValueError,grade,e,s) def test_missing_state_is_an_evaluation_error(self): e,s=self.fixture() e=[x for x in e if x['kind'] not in ('micropark_state','micropark_save','outcome_state')] e=[x for x in e if x['kind']!='objective_complete'] self.assertRaises(ValueError,grade,e,s)
class Session(unittest.TestCase): """The reward is the session's: goal 0.5, improvement 0.4, notes and attempts 0.05 each.""" def fixture(self,number,peak,completed,notes): outcome={'result':'completed' if completed else 'failed', 'monthsElapsed':11 if completed else 16,'parkValue':peak} e=([{'kind':'try_started','try':number,'tries':3,'notes_bytes':notes[0], 'notes_seed_bytes':SEED_NOTES}, {'kind':'micropark_initialized','tries':3},{'kind':'clock_started'}] +[{'kind':'micropark_day','operatingNet':400,'monthsElapsed':m} for m in range(11)] +[{'kind':'micropark_state','parkValue':peak,'peakParkValue':peak, 'monthsElapsed':11 if completed else 16,'totalCustomers':900,'rating':820, 'openRides':4,'cash':50000}] +[{'kind':'objective_complete' if completed else 'objective_failed','outcome':outcome}]) s={'origin':'micropark-v1-2yr-001','outcome':outcome, 'scenarioStatus':'completed' if completed else 'failed', 'objectiveType':'parkValueBy','objectiveYear':2,'objectiveTarget':TARGET, 'peakParkValue':peak,'parkValue':peak,'monthsElapsed':outcome['monthsElapsed'], 'cash':50000} tagged=[dict(x,**{'try':number}) for x in e] return tagged+[{'kind':'try_ended','try':number,'tries':3,'notes_bytes':notes[1]}],s def campaign(self,*specs,notes=None): """specs are (peak, completed) per try; notes is the file size per try.""" sizes=notes or [SEED_NOTES]*len(specs) events,saved=[],{} for number,(peak,completed) in enumerate(specs,start=1): e,s=self.fixture(number,peak,completed,(sizes[number-1],sizes[number-1])) events+=e;saved[number]=s return events,saved
def test_completion_scores_one_even_on_the_first_attempt(self): # The session ends on completion, so the attempts it cut short and the notes # they would have carried are waived. events,saved=self.campaign((TARGET+5000,True)) r=grade_campaign(events,saved) self.assertEqual(r['reward'],1.);self.assertEqual(r['goal_try'],1) self.assertTrue(r['component_waiver']);self.assertEqual(r['tries_played'],1) def test_completion_on_the_last_attempt_scores_one(self): events,saved=self.campaign((TARGET//4,False),(TARGET//3,False),(TARGET+5000,True)) r=grade_campaign(events,saved) self.assertEqual(r['reward'],1.);self.assertEqual(r['goal_try'],3) def test_completion_needs_its_own_native_proof(self): events,saved=self.campaign((TARGET//4,False),(TARGET+5000,True)) r=grade_campaign(events,{1:saved[1]}) self.assertEqual(r['completion'],'incomplete');self.assertLess(r['reward'],.5) def test_improvement_notes_and_attempts_without_the_goal(self): events,saved=self.campaign((TARGET//10,False),(TARGET//5,False),(TARGET//2,False), notes=[SEED_NOTES,900,1500]) r=grade_campaign(events,saved) self.assertEqual(r['reward'],round(WEIGHTS['improvement']+WEIGHTS['notes'] +WEIGHTS['attempts'],6)) self.assertEqual(r['scored_components'],{'goal':0.,'improvement':1.,'notes':1., 'attempts':1.}) def test_a_worse_third_attempt_earns_no_improvement(self): events,saved=self.campaign((TARGET//10,False),(TARGET//2,False),(TARGET//5,False), notes=[SEED_NOTES,900,1500]) r=grade_campaign(events,saved) self.assertEqual(r['scored_components']['improvement'],0.) self.assertEqual(r['reward'],round(WEIGHTS['notes']+WEIGHTS['attempts'],6)) def test_improvement_must_beat_both_earlier_attempts(self): events,saved=self.campaign((TARGET//2,False),(TARGET//5,False),(TARGET//3,False)) self.assertEqual(grade_campaign(events,saved)['scored_components']['improvement'],0.) def test_improvement_is_strict(self): events,saved=self.campaign((TARGET//10,False),(TARGET//2,False),(TARGET//2,False)) self.assertEqual(grade_campaign(events,saved)['scored_components']['improvement'],0.) def test_notes_credit_needs_more_than_the_seed(self): events,saved=self.campaign((TARGET//10,False),(TARGET//5,False),(TARGET//2,False)) r=grade_campaign(events,saved) self.assertFalse(r['notes_written']) self.assertEqual(r['scored_components']['notes'],0.) self.assertEqual(r['reward'],round(WEIGHTS['improvement']+WEIGHTS['attempts'],6)) def test_unplayed_attempts_lose_the_attempts_credit(self): events,saved=self.campaign((TARGET//10,False),(TARGET//5,False), notes=[SEED_NOTES,900]) r=grade_campaign(events,saved) self.assertEqual(r['tries_played'],2);self.assertEqual(r['tries_available'],3) self.assertEqual(r['reward'],WEIGHTS['notes']) def test_a_shorter_session_is_judged_against_what_it_offered(self): # Local validation runs two tries on purpose (T37_TRIES=2); the attempts # credit follows the environment's own baseline, not the promised three. events,saved=self.campaign((TARGET//10,False),(TARGET//5,False), notes=[SEED_NOTES,900]) events=[dict(e,tries=2) if e.get('tries')==3 else e for e in events] r=grade_campaign(events,saved) self.assertEqual(r['tries_available'],2) self.assertEqual(r['scored_components']['attempts'],1.) def test_a_reloaded_attempt_cannot_claim_improvement(self): events,saved=self.campaign((TARGET//10,False),(TARGET//5,False),(TARGET//2,False), notes=[SEED_NOTES,900,1500]) events.insert(4,{'kind':'micropark_reloaded','try':2}) r=grade_campaign(events,saved) self.assertIsNone(r['peaks_by_try'][2]) self.assertEqual(r['scored_components']['improvement'],0.) self.assertEqual(r['reward'],round(WEIGHTS['notes']+WEIGHTS['attempts'],6)) def test_a_reload_cannot_claim_the_goal(self): events,saved=self.campaign((TARGET//4,False),(TARGET+5000,True)) events.append({'kind':'micropark_reloaded','try':2}) self.assertEqual(grade_campaign(events,saved)['completion'],'incomplete') def test_best_try_is_the_highest_peak_when_nothing_completes(self): events,saved=self.campaign((TARGET//10,False),(TARGET//2,False),(TARGET//5,False)) r=grade_campaign(events,saved) self.assertEqual(r['best_try'],2);self.assertEqual(r['peak_park_value'],TARGET//2) def test_a_run_without_supervisor_records_claims_no_notes(self): events,saved=self.campaign((TARGET//10,False),(TARGET//5,False),(TARGET//2,False)) events=[e for e in events if e['kind'] not in ('try_started','try_ended')] r=grade_campaign(events,saved) self.assertIsNone(r['notes_written']) self.assertEqual(r['scored_components']['notes'],0.) def test_a_single_untagged_run_reads_as_one_try(self): e,s=self.fixture(1,TARGET+5000,True,(SEED_NOTES,SEED_NOTES)) e=[{k:v for k,v in x.items() if k!='try'} for x in e] r=grade_campaign(e,{1:s}) self.assertEqual(r['tries_played'],1);self.assertEqual(r['reward'],1.) def test_weights_sum_to_one(self): self.assertEqual(round(sum(WEIGHTS.values()),6),1.) def test_notes_credit_is_measured_against_the_reported_seed(self): # A try can end before its start was measured, or the agent can write before # the first measurement. The seed size the environment reports settles it. written=[{'kind':'try_started','notes_seed_bytes':SEED_NOTES}, {'kind':'try_ended','notes_bytes':SEED_NOTES+100}] self.assertTrue(notes_written(written)) untouched=[{'kind':'try_started','notes_seed_bytes':SEED_NOTES, 'notes_bytes':SEED_NOTES}, {'kind':'try_ended','notes_bytes':SEED_NOTES}] self.assertFalse(notes_written(untouched)) def test_helpers(self): self.assertTrue(improved({1:10,2:20,3:30})) self.assertFalse(improved({1:10,2:20})) self.assertFalse(improved({1:10,2:20,3:None})) self.assertIsNone(notes_written([{'kind':'try_started'}])) self.assertTrue(notes_written([{'kind':'try_started','notes_bytes':436}, {'kind':'try_ended','notes_bytes':500}])) self.assertFalse(notes_written([{'kind':'try_started','notes_bytes':436}, {'kind':'try_ended','notes_bytes':436}])) def test_saved_state_argument_forms(self): self.assertEqual(str(parse_saved_state('2=/tmp/a.json')[1]),'/tmp/a.json') self.assertEqual(parse_saved_state('2=/tmp/a.json')[0],2) self.assertEqual(parse_saved_state('/tmp/a.json')[0],1)
if __name__=='__main__': unittest.main()123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193"""The pruner has to keep the message list valid, not just small.
Anthropic rejects a conversation whose tool_use blocks have lost theirtool_result, and rejects an empty tool_result, so both invariants are re-checkedafter every kind of trim. Only the mixin is under test, so Harbor's providerclasses are stubbed when Harbor is not importable from this interpreter."""import asyncioimport sysimport typesimport unittestfrom pathlib import Path
sys.path.insert(0, str(Path(__file__).resolve().parents[1]/"scripts"))try: import harbor.agents.computer_1.providers.anthropic # noqa: F401except ImportError: module = types.ModuleType("harbor.agents.computer_1.providers.anthropic") module.AnthropicProvider = type("AnthropicProvider", (), {}) module.BedrockProvider = type("BedrockProvider", (), {}) for name in ("harbor", "harbor.agents", "harbor.agents.computer_1", "harbor.agents.computer_1.providers"): sys.modules.setdefault(name, types.ModuleType(name)) sys.modules[module.__name__] = module
from pruned_providers import ( # noqa: E402 KEEP_IMAGE_TURNS, KEEP_TURNS, MAX_RECOVERIES, PLACEHOLDER, PrunedAnthropicMessages, images_in,)
def image(): return {"type": "image", "source": {"type": "base64", "media_type": "image/webp", "data": "aaaa"}}
def conversation(turns): """One instruction turn plus *turns* assistant/tool-result exchanges.""" messages = [{"role": "user", "content": [{"type": "text", "text": "instruction"}, image()]}] for index in range(turns): messages.append({"role": "assistant", "content": [ {"type": "text", "text": f"thinking {index}"}, {"type": "tool_use", "id": f"call{index}", "name": "computer", "input": {}}]}) messages.append({"role": "user", "content": [ {"type": "tool_result", "tool_use_id": f"call{index}", "is_error": False, "content": [{"type": "text", "text": "screenshot"}, image()]}, {"type": "text", "text": "Continue with the task."}]}) return messages
class Recorded: """Stands in for the provider's real request, and can reject it as too long."""
async def _call_api(self): self.calls += 1 self.sizes.append((len(self._messages), total_images(self._messages))) if self.calls <= self.failures: raise RuntimeError("Error code: 400 - {'message': 'Input is too long.'}") return "response"
class Pruned(PrunedAnthropicMessages, Recorded): def __init__(self, messages, failures=0): self._messages = messages self.failures = failures self.calls = 0 self.sizes = []
class Failing: """A provider that fails for a reason pruning cannot fix."""
async def _call_api(self): raise RuntimeError("Model overloaded")
class Overloaded(PrunedAnthropicMessages, Failing): def __init__(self, messages): self._messages = messages
def total_images(messages): return sum(images_in(message) for message in messages)
def texts(messages): """Every text block, including the ones nested inside a tool_result.""" found = [] for message in messages: for block in message["content"]: if block.get("type") == "text": found.append(block["text"]) elif block.get("type") == "tool_result": found += [inner["text"] for inner in block["content"] if inner.get("type") == "text"] return found
def tool_use_ids(messages): return [block["id"] for message in messages if message["role"] == "assistant" for block in message["content"] if block.get("type") == "tool_use"]
def tool_result_ids(messages): return [block["tool_use_id"] for message in messages if message["role"] == "user" for block in message["content"] if block.get("type") == "tool_result"]
class Pruning(unittest.TestCase): def check(self, messages): """What the API itself would reject.""" roles = [message["role"] for message in messages] self.assertEqual(roles, ["user" if index % 2 == 0 else "assistant" for index in range(len(roles))]) self.assertEqual(tool_use_ids(messages), tool_result_ids(messages)) for message in messages: for block in message["content"]: if block.get("type") == "tool_result": self.assertTrue(block["content"], "tool_result must not be empty")
def test_image_trim_keeps_the_recent_views(self): agent = Pruned(conversation(40)) self.assertEqual(agent.trim_images(5), 36) # 41 image turns, 5 kept self.assertEqual(total_images(agent._messages), 5) self.check(agent._messages)
def test_a_removed_screenshot_leaves_a_note_behind(self): agent = Pruned(conversation(6)) agent.trim_images(1) self.assertIn(PLACEHOLDER, texts(agent._messages))
def test_the_instruction_turn_survives_a_turn_drop(self): agent = Pruned(conversation(60)) self.assertEqual(agent.drop_oldest_turns(20), 100) self.assertEqual(len(agent._messages), 21) self.assertEqual(agent._messages[0]["content"][0]["text"], "instruction") self.check(agent._messages)
def test_turn_drop_is_a_no_op_when_the_history_is_short(self): agent = Pruned(conversation(4)) self.assertEqual(agent.drop_oldest_turns(KEEP_TURNS), 0) self.assertEqual(len(agent._messages), 9)
def test_a_long_session_is_pruned_before_the_request(self): agent = Pruned(conversation(80)) asyncio.run(agent._call_api()) turns, images = agent.sizes[0] self.assertEqual(images, KEEP_IMAGE_TURNS) self.assertLessEqual(turns, KEEP_TURNS+1) self.check(agent._messages)
def test_a_short_session_is_left_alone(self): agent = Pruned(conversation(6)) asyncio.run(agent._call_api()) self.assertEqual(agent.sizes[0], (13, 7))
def test_a_rejected_request_is_pruned_harder_and_retried(self): agent = Pruned(conversation(80), failures=2) self.assertEqual(asyncio.run(agent._call_api()), "response") self.assertEqual(agent.calls, 3) self.assertLess(agent.sizes[-1][1], agent.sizes[0][1]) self.assertLess(agent.sizes[-1][0], agent.sizes[0][0]) self.assertLess(agent.keep_image_turns, KEEP_IMAGE_TURNS) self.check(agent._messages)
def test_the_tighter_budget_sticks_for_later_requests(self): agent = Pruned(conversation(80), failures=1) asyncio.run(agent._call_api()) tightened = agent.keep_image_turns self.assertLess(tightened, KEEP_IMAGE_TURNS) agent.failures = 0 asyncio.run(agent._call_api()) self.assertEqual(agent.keep_image_turns, tightened)
def test_other_errors_are_not_swallowed(self): agent = Overloaded(conversation(10)) with self.assertRaisesRegex(RuntimeError, "overloaded"): asyncio.run(agent._call_api())
def test_recovery_gives_up_rather_than_looping(self): agent = Pruned(conversation(80), failures=99) with self.assertRaises(RuntimeError): asyncio.run(agent._call_api()) self.assertLessEqual(agent.calls, MAX_RECOVERIES+1)
if __name__ == "__main__": unittest.main()123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180"""A transient Bedrock 503 must not end a seven-hour trial.
Only the mixin is under test, so Harbor's provider classes are stubbed whenHarbor is not importable from this interpreter. Sleeping is stubbed too: whatmatters is that the waits grow, stay inside the budget, and are jittered."""import asyncioimport loggingimport sysimport typesimport unittestfrom pathlib import Path
sys.path.insert(0, str(Path(__file__).resolve().parents[1]/"scripts"))try: import harbor.agents.computer_1.providers.anthropic # noqa: F401except ImportError: module = types.ModuleType("harbor.agents.computer_1.providers.anthropic") module.AnthropicProvider = type("AnthropicProvider", (), {}) module.BedrockProvider = type("BedrockProvider", (), {}) for name in ("harbor", "harbor.agents", "harbor.agents.computer_1", "harbor.agents.computer_1.providers"): sys.modules.setdefault(name, types.ModuleType(name)) sys.modules[module.__name__] = module
import resilient_providers # noqa: E402from pruned_providers import PrunedAnthropicMessages # noqa: E402from test_pruning import conversation # noqa: E402from resilient_providers import ( # noqa: E402 MAX_BACKOFF_SECONDS, RetryingAnthropicCalls, retryable, status_of,)
UNAVAILABLE = "Error code: 503 - {'message': 'Bedrock is unable to process your request.'}"TOO_LONG = "Error code: 400 - {'message': 'Input is too long.'}"
class Status(Exception): """An anthropic SDK error, which carries its HTTP status."""
def __init__(self, code, message): super().__init__(message) self.status_code = code
class Refusing: """Stands in for the real request; refuses the first *failures* calls."""
async def _call_api(self): self.calls += 1 if self.calls <= self.failures: raise self.error return "response"
class Provider(RetryingAnthropicCalls, Refusing): def __init__(self, failures=0, error=None): self.failures = failures self.error = error or Status(503, UNAVAILABLE) self.calls = 0
class Sleepless(unittest.TestCase): """Record what would have been waited instead of waiting it."""
def setUp(self): # The retries are meant to be noisy in a run, not in the test output. resilient_providers.LOG.setLevel(logging.CRITICAL) self.addCleanup(resilient_providers.LOG.setLevel, logging.NOTSET) self.waits = [] self.real_sleep = resilient_providers.asyncio.sleep self.clock = [0.]
async def sleep(seconds): self.waits.append(seconds) self.clock[0] += seconds
resilient_providers.asyncio.sleep = sleep self.real_monotonic = resilient_providers.time.monotonic resilient_providers.time.monotonic = lambda: self.clock[0]
def tearDown(self): resilient_providers.asyncio.sleep = self.real_sleep resilient_providers.time.monotonic = self.real_monotonic
class Retrying(Sleepless): def test_a_transient_refusal_is_retried(self): provider = Provider(failures=3) self.assertEqual(asyncio.run(provider._call_api()), "response") self.assertEqual(provider.calls, 4) self.assertEqual(provider.api_retries, 3)
def test_the_first_call_does_not_wait(self): provider = Provider() asyncio.run(provider._call_api()) self.assertEqual(self.waits, []) self.assertEqual(provider.api_retries, 0)
def test_the_waits_grow_and_are_capped(self): provider = Provider(failures=12) provider.retry_budget_seconds = 10_000 asyncio.run(provider._call_api()) self.assertLessEqual(max(self.waits), MAX_BACKOFF_SECONDS) self.assertGreater(self.waits[-1], self.waits[0])
def test_the_waits_are_jittered(self): provider = Provider(failures=8) provider.retry_budget_seconds = 10_000 asyncio.run(provider._call_api()) tail = self.waits[-4:] # all four are at the ceiling before jitter self.assertEqual(len(set(tail)), len(tail))
def test_a_long_outage_gives_up_inside_its_budget(self): provider = Provider(failures=10_000) provider.retry_budget_seconds = 120 with self.assertRaises(Status): asyncio.run(provider._call_api()) self.assertLessEqual(sum(self.waits), 120.001) self.assertGreater(provider.api_retries, 1)
def test_an_over_long_prompt_is_not_a_wait(self): # Pruning fixes that one, by sending a different request. provider = Provider(failures=1, error=Status(400, TOO_LONG)) with self.assertRaises(Status): asyncio.run(provider._call_api()) self.assertEqual(provider.calls, 1) self.assertEqual(self.waits, [])
def test_a_refusal_without_a_status_is_read_from_its_text(self): provider = Provider(failures=1, error=RuntimeError(UNAVAILABLE)) self.assertEqual(asyncio.run(provider._call_api()), "response") self.assertEqual(provider.calls, 2)
def test_pruning_still_sees_the_errors_it_recovers_from(self): class Both(PrunedAnthropicMessages, Provider): pass
provider = Both(failures=2, error=Status(400, TOO_LONG)) provider._messages = conversation(40) # enough for pruning to have work self.assertEqual(asyncio.run(provider._call_api()), "response") self.assertEqual(provider.calls, 3) # pruned and resent, not waited out self.assertEqual(self.waits, [])
def test_pruning_does_not_swallow_a_capacity_refusal(self): class Both(PrunedAnthropicMessages, Provider): pass
provider = Both(failures=2) provider._messages = conversation(40) # enough for pruning to have work self.assertEqual(asyncio.run(provider._call_api()), "response") self.assertEqual(provider.api_retries, 2)
class Classification(unittest.TestCase): def test_statuses(self): self.assertTrue(retryable(Status(503, UNAVAILABLE))) self.assertTrue(retryable(Status(429, "Too many requests"))) self.assertTrue(retryable(Status(529, "Overloaded"))) self.assertFalse(retryable(Status(400, TOO_LONG))) self.assertFalse(retryable(Status(403, "Access denied"))) self.assertFalse(retryable(Status(404, "Not found")))
def test_text_when_there_is_no_status(self): self.assertTrue(retryable(RuntimeError("Model overloaded"))) self.assertTrue(retryable(RuntimeError("Connection error."))) self.assertFalse(retryable(RuntimeError("Input is too long")))
def test_a_status_on_the_response_is_found(self): error = RuntimeError("no") error.response = types.SimpleNamespace(status_code=503) self.assertEqual(status_of(error), 503) self.assertTrue(retryable(error)) self.assertIsNone(status_of(RuntimeError("no")))
if __name__ == "__main__": unittest.main()123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117"""Liveness has to tell a park being replaced apart from a dead desktop.
The supervisor stops the engine and starts the next one between tries, soopenrct2 is briefly missing while the session is fine. Reading that gap as adead runtime ends the agent's session at the very moment it earned its secondtry, so the gap is waited out only while the supervisor still owes a try, andonly for as long as a reset can honestly take. Harbor is stubbed when it is notimportable from this interpreter; only the adapter is under test."""import asyncioimport jsonimport sysimport typesimport unittestfrom pathlib import Path
sys.path.insert(0, str(Path(__file__).resolve().parents[1]/"scripts"))try: import harbor.agents.computer_1.runtime # noqa: F401except ImportError: agent = types.ModuleType("harbor.agents.computer_1") agent.Computer1 = type("Computer1", (), {}) runtime = types.ModuleType("harbor.agents.computer_1.runtime") runtime.Computer1Session = type("Computer1Session", (), {}) runtime.RuntimeRequestError = type("RuntimeRequestError", (Exception,), {}) for name in ("harbor", "harbor.agents"): sys.modules.setdefault(name, types.ModuleType(name)) sys.modules[agent.__name__] = agent sys.modules[runtime.__name__] = runtime
import computer_agent # noqa: E402from computer_agent import GameSession # noqa: E402
FINISHED = {"try": 3, "tries": 3, "history": [{"try": 1, "reason": "objective_failed"}, {"try": 2, "reason": "objective_failed"}, {"try": 3, "reason": "objective_failed"}]}COMPLETED = {"try": 2, "tries": 3, "history": [{"try": 1, "reason": "objective_failed"}, {"try": 2, "reason": "objective_complete"}]}MID = {"try": 1, "tries": 3, "history": [{"try": 1, "reason": "objective_failed"}]}
class Desktop(GameSession): """A GameSession whose only shell is a script of answers."""
def __init__(self, engine, supervisor=(0, MID)): self.engine = list(engine) self.supervisor = supervisor self.engine_checks = 0 self.supervisor_checks = 0
async def _raw_exec(self, command, timeout_sec=None): if "pgrep -x openrct2" in command: self.engine_checks += 1 running = self.engine[min(self.engine_checks-1, len(self.engine)-1)] return types.SimpleNamespace(return_code=0 if running else 1, stdout="") if "try-supervisor.py" in command: self.supervisor_checks += 1 code, state = self.supervisor body = state if isinstance(state, str) else json.dumps(state) return types.SimpleNamespace(return_code=code, stdout="" if code else body) raise AssertionError(f"Unexpected command: {command}")
class Liveness(unittest.TestCase): def setUp(self): self.grace = computer_agent.RESET_GRACE_SEC self.poll = computer_agent.RESET_POLL_SEC computer_agent.RESET_GRACE_SEC = 0.5 computer_agent.RESET_POLL_SEC = 0.01
def tearDown(self): computer_agent.RESET_GRACE_SEC = self.grace computer_agent.RESET_POLL_SEC = self.poll
def alive(self, desktop): return asyncio.run(desktop.is_session_alive())
def test_running_engine_is_alive(self): desktop = Desktop([True]) self.assertTrue(self.alive(desktop)) # A healthy engine answers on its own; nothing else is consulted. self.assertEqual((desktop.engine_checks, desktop.supervisor_checks), (1, 0))
def test_reset_gap_is_waited_out(self): desktop = Desktop([False, False, False, True]) self.assertTrue(self.alive(desktop)) self.assertEqual(desktop.engine_checks, 4)
def test_finished_campaign_engine_loss_is_death(self): desktop = Desktop([False], supervisor=(0, FINISHED)) self.assertFalse(self.alive(desktop))
def test_completed_objective_engine_loss_is_death(self): desktop = Desktop([False], supervisor=(0, COMPLETED)) self.assertFalse(self.alive(desktop))
def test_first_try_still_counts_as_pending(self): desktop = Desktop([False, True], supervisor=(0, {"try": 1, "tries": 3, "history": []})) self.assertTrue(self.alive(desktop))
def test_no_supervisor_is_death(self): desktop = Desktop([False], supervisor=(1, "")) self.assertFalse(self.alive(desktop))
def test_unreadable_state_is_death(self): desktop = Desktop([False], supervisor=(0, "half a json")) self.assertFalse(self.alive(desktop))
def test_engine_that_never_returns_gives_up(self): desktop = Desktop([False]) self.assertFalse(self.alive(desktop)) # It waited rather than answering at once, but it did stop waiting. self.assertGreater(desktop.engine_checks, 1)
if __name__ == "__main__": unittest.main()12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455import asynciofrom pathlib import Pathimport sysfrom types import SimpleNamespaceimport unittest
sys.path.insert(0, str(Path(__file__).resolve().parents[1] / "scripts"))from stateless_openai import StatelessResponses
class Item: def __init__(self, value): self.value = value
def model_dump(self, **kwargs): return self.value
class StatelessTests(unittest.IsolatedAsyncioTestCase): async def test_replays_reasoning_phase_and_tool_batch_without_response_id(self): calls = [] output = [ {"type": "reasoning", "encrypted_content": "opaque"}, {"type": "message", "role": "assistant", "phase": "commentary", "content": []}, {"type": "computer_call", "call_id": "c1", "actions": [{"type": "screenshot"}, {"type": "move", "x": 1, "y": 2}]}, ]
class API: async def create(self, **kwargs): calls.append(kwargs) return SimpleNamespace(status="completed", id="r" + str(len(calls)), output=[Item(x) for x in output])
transport = StatelessResponses(API()) await transport.create(input="Inspect desktop", model="gpt-6-astra", prompt_cache_key="trial-1") result = {"type": "computer_call_output", "call_id": "c1", "output": {"type": "computer_screenshot", "image_url": "data:image/png;base64,test"}} await transport.create(previous_response_id="r1", input=[result], model="gpt-6-astra", prompt_cache_key="trial-1") self.assertEqual(calls[1]["input"][1:4], output) self.assertEqual(calls[1]["input"][-1], result) for call in calls: self.assertNotIn("previous_response_id", call) self.assertFalse(call["store"]) self.assertEqual(call["prompt_cache_key"], "trial-1") with self.assertRaises(ValueError): await transport.create(previous_response_id="other-trial", input=[result])
async def test_incomplete_response_cannot_be_reported_as_completion(self): class API: async def create(self, **kwargs): return SimpleNamespace(status="incomplete", id="r1", output=[])
transport = StatelessResponses(API()) with self.assertRaises(RuntimeError): await transport.create(input="test", prompt_cache_key="trial-1") self.assertEqual(transport.history, [])123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221"""The try loop, driven against a stub engine.
What matters here is not the game but the sequencing around it: every try startsfrom an empty park, a try's evidence is collected before that park is thrownaway, a completed try is never reset, and there is never a fourth try. The stubengine stands in for game-process.py and reports the outcomes the test asks for."""import importlib.utilimport jsonimport osimport shutilimport sysimport tempfileimport unittestfrom pathlib import Path
TASK = Path(__file__).resolve().parents[1]NOTES_TEXT = "try 1: cheap flat rides paid, coaster did not\n"
STUB_ENGINE = '''import json, os, sys, timefrom pathlib import Pathprofile = Path(os.environ["T37_STUB_PROFILE"])attempt = int(os.environ["T37_TRY"])plan = json.loads(os.environ["T37_STUB_PLAN"])[attempt-1]# What this try inherited: the loop is supposed to hand over an empty park.Path(os.environ["T37_STUB_LOG"]).open("a").write(json.dumps({ "try": attempt, "inherited": sorted(p.name for p in (profile/"save").glob("*"))})+"\\n")(profile/"save").mkdir(parents=True, exist_ok=True)(profile/"save").joinpath(f"try-{attempt}.park").write_text("park")if plan == "engine_exit": sys.exit(3)beat = Path(os.environ["T37_TRY_HEARTBEAT"])quiet = plan in ("silent", "stall")# "silent" never reports at all; "stall" reports once and then goes quiet, the# way the controller does when the agent quits the park to the title screen.if plan != "silent": beat.write_text("beat")if not quiet: Path(os.environ["T37_TRY_OUTCOME"]).write_text(plan)# The real engine stays up until the supervisor stops it; this one outlives the# decision it is meant to provoke and then goes away, so the final try's wait# for the engine ends and the test does not.deadline = time.time() + (float(os.environ["T37_STUB_QUIET_LIFETIME"]) if quiet else float(os.environ["T37_STUB_LIFETIME"]))while time.time() < deadline: if not quiet: beat.write_text("beat") time.sleep(0.02)'''
STUB_COLLECT = '''import json, os, sysfrom pathlib import Pathstate = json.loads((Path(os.environ["T37_STUB_STATE"])/"current.json").read_text())profile = Path(os.environ["T37_STUB_PROFILE"])Path(os.environ["T37_STUB_COLLECTED"]).open("a").write(json.dumps({ "try": state["try"], "saves": sorted(p.name for p in (profile/"save").glob("*"))})+"\\n")'''
def load(tries, folder): """A fresh copy of the supervisor, wired to this test's directories.""" os.environ["T37_AUDIT_DIR"] = str(folder/"audit") os.environ["T37_TRIES"] = str(tries) spec = importlib.util.spec_from_file_location( "try_supervisor_"+str(tries)+folder.name, TASK/"environment/try-supervisor.py") module = importlib.util.module_from_spec(spec) spec.loader.exec_module(module) lib = folder/"lib" lib.mkdir() (lib/"game-process.py").write_text(STUB_ENGINE) (lib/"collect.py").write_text(STUB_COLLECT) (lib/"observer.js").write_text("var CONTROLLER = 1;\n") module.LIB = lib module.STATE = folder/"tries" module.PROFILE = folder/"profile" module.SEED = folder/"seed.park" module.SEED.write_text("seed") # The agent's notes are the one thing a reset must not take away. module.NOTES = folder/"notes" module.NOTES.mkdir(exist_ok=True) (module.NOTES/"micropark-notes.txt").write_text(NOTES_TEXT) # The real graces leave a settled park on screen for minutes; the loop's # ordering is what is under test, not its patience. module.FAILURE_GRACE = module.COMPLETION_GRACE = 0 module.POLL = 0.05 module.HEARTBEAT_TIMEOUT = 0.5 module.STARTUP_TIMEOUT = 0.5 return module
class Loop(unittest.TestCase): def setUp(self): self.folder = Path(tempfile.mkdtemp()) self.addCleanup(shutil.rmtree, self.folder, True) self.saved_environment = dict(os.environ) self.addCleanup(lambda: (os.environ.clear(), os.environ.update(self.saved_environment)))
def play(self, *plan): """Run the loop with one planned outcome per try; return its records.""" module = load(len(plan), self.folder) os.environ.update({ "T37_STUB_PLAN": json.dumps(list(plan)), "T37_STUB_PROFILE": str(module.PROFILE), "T37_STUB_STATE": str(module.STATE), "T37_STUB_LOG": str(self.folder/"engine.jsonl"), "T37_STUB_COLLECTED": str(self.folder/"collected.jsonl"), "T37_STUB_LIFETIME": "0.4", "T37_STUB_QUIET_LIFETIME": "3", }) sys.argv = ["try-supervisor.py"] with self.assertRaises(SystemExit): module.main() return (self.lines(module.AUDIT/"game.jsonl"), self.lines(self.folder/"engine.jsonl"), self.lines(self.folder/"collected.jsonl"))
def lines(self, path): if not Path(path).exists(): return [] return [json.loads(line) for line in Path(path).read_text().splitlines() if line]
def test_a_failed_try_is_followed_by_another(self): audit, engine, _ = self.play("objective_failed", "objective_failed") self.assertEqual([r["kind"] for r in audit], ["try_started", "try_ended", "try_started", "try_ended", "campaign_finished"]) self.assertEqual([r["try"] for r in engine], [1, 2])
def test_every_try_starts_from_an_empty_park(self): _, engine, _ = self.play("objective_failed", "objective_failed", "objective_failed") self.assertEqual([r["inherited"] for r in engine], [[], [], []])
def test_a_completed_try_ends_the_session(self): audit, engine, _ = self.play("objective_complete", "objective_failed", "objective_failed") self.assertEqual([r["try"] for r in engine], [1]) ended = [r for r in audit if r["kind"] == "try_ended"] self.assertEqual(len(ended), 1) self.assertEqual(ended[0]["reason"], "objective_complete") self.assertTrue(ended[0]["final"])
def test_the_last_try_is_final_even_when_it_fails(self): audit, engine, _ = self.play("objective_failed", "objective_failed", "objective_failed") self.assertEqual([r["try"] for r in engine], [1, 2, 3]) self.assertTrue([r for r in audit if r["kind"] == "try_ended"][-1]["final"]) self.assertEqual([r for r in audit if r["kind"] == "campaign_finished"][0] ["tries_played"], 3)
def test_evidence_is_collected_before_the_park_is_thrown_away(self): _, _, collected = self.play("objective_failed", "objective_failed") self.assertEqual(collected, [{"try": 1, "saves": ["try-1.park"]}, {"try": 2, "saves": ["try-2.park"]}])
def test_the_controller_is_told_which_try_it_is(self): module = load(3, self.folder) module.install_plugin(2) installed = (module.PROFILE/"plugin/t37-observer.js").read_text() self.assertTrue(installed.startswith("var T37_TRY=2,T37_TRIES=3;")) self.assertIn("var CONTROLLER = 1;", installed)
def test_a_park_closed_by_the_agent_ends_its_try_and_no_more(self): audit, engine, _ = self.play("stall", "objective_failed") self.assertEqual([r for r in audit if r["kind"] == "try_ended"][0]["reason"], "park_closed") self.assertEqual([r["try"] for r in engine], [1, 2])
def test_an_engine_that_never_reports_does_not_hang_the_session(self): audit, engine, _ = self.play("silent", "objective_failed") self.assertEqual([r for r in audit if r["kind"] == "try_ended"][0]["reason"], "engine_stalled") self.assertEqual([r["try"] for r in engine], [1, 2])
def test_a_crashed_engine_does_not_consume_the_remaining_tries(self): audit, engine, _ = self.play("engine_exit", "objective_failed") self.assertEqual([r for r in audit if r["kind"] == "try_ended"][0]["reason"], "engine_exit") self.assertEqual([r["try"] for r in engine], [1, 2])
def test_notes_survive_every_reset(self): audit, _, _ = self.play("objective_failed", "objective_failed", "objective_failed") # Two resets happened between these three tries; the notes went through # both of them untouched, which is what makes a retry worth anything. self.assertEqual((self.folder/"notes/micropark-notes.txt").read_text(), NOTES_TEXT) self.assertEqual([r["notes_bytes"] for r in audit if r["kind"] == "try_ended"], [len(NOTES_TEXT)]*3)
def test_every_try_is_measured_at_its_start_as_well(self): # The grader needs the size before the agent touched anything to tell # the seeded file from the agent's own writing, so try_started carries it. audit, _, _ = self.play("objective_failed", "objective_failed", "objective_failed") self.assertEqual([r["notes_bytes"] for r in audit if r["kind"] == "try_started"], [len(NOTES_TEXT)]*3)
def test_clearing_the_park_leaves_the_notes_alone(self): module = load(3, self.folder) (module.PROFILE/"save").mkdir(parents=True, exist_ok=True) (module.PROFILE/"save/try-1.park").write_text("park") module.clear_park() self.assertEqual(list((module.PROFILE/"save").iterdir()), []) self.assertEqual((module.NOTES/"micropark-notes.txt").read_text(), NOTES_TEXT)
def test_the_live_try_is_published_for_the_collector(self): module = load(3, self.folder) module.publish(2, [{"try": 1, "reason": "objective_failed"}]) state = json.loads((module.STATE/"current.json").read_text()) self.assertEqual((state["try"], state["tries"]), (2, 3)) self.assertEqual(state["history"][0]["reason"], "objective_failed")
if __name__ == "__main__": unittest.main()1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677# T40: One Tile — 1,000 guests, the video's target
This is **T39 at the video's number**. Same environment, same controller, samegrader, same binary reward ranked on in-game days; the only difference is`T39_TARGET_GUESTS: "1000"` in compose.yaml and the `1000` in`tests/target-guests.txt`.
Read `../t39-rct-onetile/README.md` for how the scenario is built, what thearchitecture is, and where every number comes from. `../t39-rct-onetile/RUBRIC.md`is the rubric, target-generic; this task's origin marker is`onetile-v1-1000guests-001`.
## Why it exists separately
ambiguousamphibian's "1 Tile Start"(`https://www.youtube.com/watch?v=zQwWCDPFZ-E`) asks for 1,000 guests and a ratingof at least 700. Measurement says a GUI agent cannot get there, so T39 scores acalibrated 200 and this task keeps the original target as headroom:
- Guest arrival is an engine-capped per-tick dice roll, `probability = 50 + clamp(rating - 200, 0, 650)` out of 65,536, plus ~400 per active marketing campaign (`Park.cpp`). Measured in a fully built, fully advertised park at rating ~800: **+14 guests a day, net**. 1,000 simultaneous guests is therefore 70+ in-game days of a mature park before anything else.- Above `calculateSuggestedMaxGuests` — the sum of open rides' `BonusValue` — the arrival probability is divided by four, so a 1,000-guest park needs a roster worth ~1,000: on the order of 25 flat rides, each hand-built through the GUI.- The reference play-through took a human expert more than six in-game years and nearly the whole map.
The 0.0 Opus 5.5 scored here on 2026-09-23(`https://trajectories.sh/t/a5eb0f46-083b-4e4b-ac72-fb066af35cab`) is **not**evidence of that, and neither is t39's: both parks were handed over closed, whichthis objective type gives no way to undo. See "The first cloud pair measured theenvironment, not the models" in `../t39-rct-onetile/README.md`.
**Expect 0.0 from every model.** That is the point of the pair: if a model everscores here, the ceiling moved, and T39's 200 can be raised knowing what the nextrung costs. Fixing the target at 1,000 in the scored task would have measured thetarget instead of the models.
## Keeping it from drifting
`environment/` and `tests/` are **generated** from `../t39-rct-onetile`:
```scripts/sync-from-t39.sh # regenerate from t39scripts/sync-from-t39.sh --check # fail if this copy has drifted```
`tests/target-guests.txt` is excluded from the sync — it is the one file the twotasks are meant to disagree about. Edit the environment or the grader in t39 only,then sync. `--check` is the thing to run before committing either task.
## Cloud runs (Daytona)
There is no launch tooling here on purpose. The snapshot, the agent, the privateruntime upload and the launcher all live in `../t39-rct-onetile/scripts` and take`--task t40`:
```../t39-rct-onetile/scripts/publish-snapshot.py --task t40../t39-rct-onetile/scripts/daytona-preflight.py --task t40../t39-rct-onetile/scripts/launch-daytona.py --detach --only t40```
This task's snapshot is `refresh-rct-onetile-1000-<date>`, which carries`T39_TARGET_GUESTS=1000` in the image — the target has to be baked in because asnapshot boots without compose.yaml. `artifacts/release-manifest.json` is thereceipt for the published one.
## Local use
`scripts/docker.sh up -d --wait`, then noVNC on `http://localhost:6088/vnc.html`(t39 uses 6087, so both can run at once). The Compose project, image tag andvolumes are all namespaced to this task; preserve every existing volume and neveruse `down -v`. Unit tests: `uvx pytest tests/test_onetile.py -q`.123456789101112131415161718192021# T40 executable rubric
`../t39-rct-onetile/RUBRIC.md` applies verbatim — same grader, same code — withthe target read from this task's `tests/target-guests.txt`:
| | ||---|---|| Target | **1,000 guests** in the park at once, rating at least 700 || Origin marker | `onetile-v1-1000guests-001` || Reward | 1.0 verified complete, 0.0 for anything else || Ranking | `in_game_days`, lowest first; unfinished runs are not ranked |
Two things specific to this task:
- A t39 save (`onetile-v1-200guests-001`, a 200-guest objective) cannot complete this task. The origin marker, the save's objective and the controller baseline are all checked against 1,000.- **0.0 is the expected outcome**, not a sign of a broken task. See README.md for the arrival-rate and guest-cap measurements behind that. The unscored fields in `scores.json` — peak guests, peak rating, peak owned tiles, days played — are what this task is actually for: they say how far up the curve a model got.123456789101112131415161718192021222324252627282930313233343536373839404142434445name: ${T40_PROJECT:-t40-rct-onetile-1000}services: game: platform: linux/amd64 # Same Dockerfile and same build context as t39 (kept in step by # scripts/sync-from-t39.sh), but a tag of its own: a rebuild of one task must # not replace the image a run of the other is using. image: t40-rct-onetile-1000:v1 command: [] environment: ONETILE_ASSETS_MOUNTED: "1" # The video's target, and the only thing that differs from t39. It has to # match tests/target-guests.txt or the grader refuses to grade the run. T39_TARGET_GUESTS: "1000" build: context: ./environment dockerfile: Dockerfile args: # Also baked into the image: the Daytona snapshot boots without this # compose file, so the target has to travel inside the image too. T39_TARGET_GUESTS: "1000" ports: - "127.0.0.1:${WEB_PORT:-6088}:6080" volumes: - type: bind source: ${RCT2_ASSETS:?Set RCT2_ASSETS or use scripts/docker.sh} target: /opt/rct2-assets read_only: true bind: create_host_path: false - game-data:/home/rct2/.config/OpenRCT2 - ${T40_ARTIFACTS:-./artifacts}:/artifacts - ${T40_ARTIFACTS:-./artifacts}/logs:/logs tmpfs: - /tmp:size=536870912,mode=1777 shm_size: 512mb stop_grace_period: 15s healthcheck: test: ["CMD", "curl", "-fsS", "http://127.0.0.1:6080/vnc.html"] interval: 10s timeout: 3s retries: 6 start_period: 30svolumes: game-data:123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990# Self-contained game desktop: OpenRCT2 0.5.5 with no browser, no terminal and# no in-game console. The purchased RCT2 data is mounted at run time, never# baked into this image.## This is T37's image without the notepad: nothing in this task's score depends# on written notes, so the writable GUI surface that needed its own unprivileged# user is simply not here.FROM debian:bookworm-slim
ARG OPENRCT2_VERSION=0.5.5ARG OPENRCT2_SHA256=db233a2cde7861057f5d70982cb7299066222888f7c796540085ee4eb9a0a7a0
RUN apt-get update && apt-get install -y --no-install-recommends \ ca-certificates curl tini bash python3 procps \ libsdl2-2.0-0 libsdl2-ttf-2.0-0 libcurl4 libfontconfig1 libfreetype6 \ libicu72 libpng16-16 libspeexdsp1 libzip4 libzstd1 libssl3 \ libflac12 libvorbisfile3 libgomp1 libgl1 \ xvfb xauth x11-utils x11vnc openbox novnc python3-websockify \ xdotool wmctrl scrot fonts-dejavu-core \ imagemagick webp \ && rm -rf /var/lib/apt/lists/*
RUN test "$(dpkg --print-architecture)" = amd64 \ && curl --fail --location --retry 3 \ "https://github.com/OpenRCT2/OpenRCT2/releases/download/v${OPENRCT2_VERSION}/OpenRCT2-v${OPENRCT2_VERSION}-Linux-bookworm-x86_64.tar.gz" \ -o /tmp/openrct2.tar.gz \ && echo "${OPENRCT2_SHA256} /tmp/openrct2.tar.gz" | sha256sum -c - \ && tar -xzf /tmp/openrct2.tar.gz -C /opt \ && rm /tmp/openrct2.tar.gz \ && ln -s /opt/OpenRCT2/openrct2 /usr/local/bin/openrct2
ENV DISPLAY=:1 \ SDL_AUDIODRIVER=dummy \ SDL_VIDEODRIVER=x11 \ SDL_RENDER_DRIVER=opengl \ LIBGL_ALWAYS_SOFTWARE=1 \ LP_NUM_THREADS=2 \ TMPDIR=/tmp \ LD_LIBRARY_PATH=/opt/OpenRCT2
RUN openrct2 --version \ && useradd --create-home --uid 1000 --shell /bin/bash rct2 \ && mkdir -p /home/rct2/.config/OpenRCT2 /artifacts /opt/rct2-assets \ && mkdir -p /tmp/.X11-unix && chmod 1777 /tmp/.X11-unix \ && chown -R rct2:rct2 /home/rct2 /artifacts
# The console is the one GUI surface that could script the simulation, so the# pinned executable is patched to refuse to open it. Scripting would hand the# agent land ownership for free, which is the entire task.COPY restrict-console.py /usr/local/lib/t39/restrict-console.pyRUN python3 /usr/local/lib/t39/restrict-console.py /opt/OpenRCT2/openrct2 \ > /opt/OpenRCT2/console-restriction.json
COPY entrypoint.sh /usr/local/bin/t39-entrypointCOPY await-assets.sh /usr/local/bin/onetile-await-assetsCOPY terminal-blocked.sh /usr/local/bin/t39-terminal-blockedCOPY game-process.py collect.py run-supervisor.py /usr/local/lib/t39/# The scenario configuration and the controller are installed as one plugin by# the supervisor, in this order.COPY onetile-config.js controller.js /usr/local/lib/t39/COPY openbox-rc.xml /etc/xdg/openbox/rc.xmlCOPY openbox-menu.xml /etc/xdg/openbox/menu.xmlCOPY onetile-base.park /opt/onetile/onetile-base.park
RUN chmod +x /usr/local/bin/t39-entrypoint /usr/local/bin/onetile-await-assets \ /usr/local/bin/t39-terminal-blocked \ && chown -R root:rct2 /usr/local/lib/t39 && chmod 750 /usr/local/lib/t39 \ && chmod 444 /opt/onetile/onetile-base.park \ && mkdir -p /logs/artifacts /logs/verifier/artifacts \ && chown -R rct2:rct2 /logs \ && for app in xterm uxterm lxterm koi8rxterm x-terminal-emulator \ xfce4-terminal xfce4-appfinder xfrun4 lxterminal gnome-terminal; do \ ln -sf /usr/local/bin/t39-terminal-blocked "/usr/bin/$app"; done \ && find /usr/share/applications -name '*.desktop' -delete \ && printf '[Desktop Entry]\nType=Application\nName=OpenRCT2\nExec=openrct2\nCategories=Game;\nTerminal=false\n' \ > /usr/share/applications/openrct2.desktop
# The guest target is a build argument so this one Dockerfile produces both# tasks' images: t39 at 200 and t40 at 1,000. On Daytona there is no compose file# to carry it -- harbor boots the published snapshot directly -- so the target has# to be in the image. Locally compose.yaml also sets it in the environment, with# the same number. Left empty it stays empty, and await-assets.sh refuses to# start rather than guessing a target.ARG T39_TARGET_GUESTS=""ENV T39_TARGET_GUESTS=${T39_TARGET_GUESTS}
WORKDIR /home/rct2EXPOSE 6080# Root only waits for the private assets, then drops to the game user.ENTRYPOINT ["/usr/bin/tini", "--", "/usr/local/bin/onetile-await-assets"]123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990"""Preserve available game outputs; never assign a gameplay score."""import argparseimport hashlibimport jsonimport osfrom pathlib import Pathimport shutilimport subprocessimport timefrom datetime import datetime, timezone
def copy(source, output, attempts=3): """Copy, retrying briefly: a bind mount can fail a copy that then succeeds.""" for attempt in range(attempts): try: shutil.copy2(source, output) return except OSError: if attempt == attempts - 1: raise time.sleep(0.2)
def main(): parser = argparse.ArgumentParser() parser.add_argument("--screenshot", action="store_true") args = parser.parse_args() stamp = datetime.now(timezone.utc).strftime("%Y%m%dT%H%M%S.%fZ") home = Path.home() roots = { "save": home / ".config/OpenRCT2/save", "screenshots": home / ".config/OpenRCT2/screenshot", "desktop": home / "Desktop", "downloads": home / "Downloads", } targets = [Path("/logs/artifacts"), Path("/logs/verifier/artifacts")] errors = [] records = [] for target in targets: target.mkdir(parents=True, exist_ok=True) audit = targets[0] / "audit" if audit.exists(): shutil.copytree(audit, targets[1] / "audit", dirs_exist_ok=True) for label, root in roots.items(): if not root.is_dir(): continue for source in sorted(root.rglob("*")): if not source.is_file() or source.is_symlink(): continue if source.suffix.lower() not in {".park", ".sv6", ".sv4", ".png", ".jpg", ".jpeg", ".bak", ".txt", ".md"}: continue relative = Path(label) / source.relative_to(root) try: for target in targets: output = target / relative output.parent.mkdir(parents=True, exist_ok=True) copy(source, output) saved = targets[0] / relative records.append({ "path": str(relative), "bytes": saved.stat().st_size, "sha256": hashlib.sha256(saved.read_bytes()).hexdigest(), }) except OSError as error: errors.append(f"{relative}: {error}") if args.screenshot and os.environ.get("DISPLAY"): relative = Path("checkpoints") / f"{stamp}.png" image = targets[0] / relative image.parent.mkdir(parents=True, exist_ok=True) result = subprocess.run(["scrot", "-o", str(image)], capture_output=True) if result.returncode == 0: (targets[1] / relative).parent.mkdir(parents=True, exist_ok=True) copy(image, targets[1] / relative) records.append({ "path": str(relative), "bytes": image.stat().st_size, "sha256": hashlib.sha256(image.read_bytes()).hexdigest(), }) else: errors.append(result.stderr.decode(errors="replace")) record = {"timestamp_utc": stamp, "artifacts": records, "errors": errors} for target in targets: checkpoint = target / "checkpoints" / f"{stamp}.json" checkpoint.parent.mkdir(parents=True, exist_ok=True) checkpoint.write_text(json.dumps(record, indent=2) + "\n") print(json.dumps(record))
if __name__ == "__main__": main()123456789101112131415161718192021222324252627282930313233343536373839404142434445464748"""Capture engine evidence outside the evaluated application UI."""import jsonimport osfrom pathlib import Pathimport signalimport subprocessimport sysfrom datetime import datetime, timezone
root = Path(os.environ["T39_AUDIT_DIR"])root.mkdir(parents=True, exist_ok=True)# The supervisor is told out of band when the engine has settled the objective,# when a fresh attempt has unsettled it again, and while the park is reporting.outcome = os.environ.get("T39_RUN_OUTCOME")heartbeat = os.environ.get("T39_RUN_HEARTBEAT")settled = ("objective_complete", "objective_failed")with (root / "game.jsonl").open("a", buffering=1) as audit, (root / "engine.log").open("a", buffering=1) as log: def write(record): record["observed_at"] = datetime.now(timezone.utc).isoformat() audit.write(json.dumps(record) + "\n") # The controller's five-second report is real-time, not tick-driven, so it # keeps arriving while the park is paused before the clock starts. if heartbeat and record.get("kind") == "onetile_state": Path(heartbeat).write_text(record["observed_at"]) # A run is three attempts, so a settled outcome is the outcome of the # attempt being played: the controller configuring a fresh park clears it # again, and the supervisor reads this file to decide whether the run -- # rather than the attempt -- is over. if outcome and record.get("kind") == "onetile_initialized": Path(outcome).unlink(missing_ok=True) elif outcome and record.get("kind") in settled: Path(outcome).write_text(record["kind"]) write({"kind": "engine_start", "schema": 1}) child = subprocess.Popen(["stdbuf", "-oL", "-eL", "openrct2", *sys.argv[1:]], stdout=subprocess.PIPE, stderr=subprocess.STDOUT, text=True) for sig in (signal.SIGINT, signal.SIGTERM): signal.signal(sig, lambda signum, frame: child.send_signal(signum)) for line in child.stdout: log.write(line) if "T39JSON " in line: try: record, _ = json.JSONDecoder().raw_decode(line.split("T39JSON ", 1)[1]) write(record) except (ValueError, TypeError) as error: write({"kind": "observer_error", "message": str(error)}) code = child.wait() write({"kind": "engine_stop", "returncode": code}) sys.exit(code)12345678<?xml version="1.0" encoding="UTF-8"?><openbox_menu xmlns="http://openbox.org/3.4/menu"> <menu id="root-menu" label="OpenRCT2"> <item label="Park (OpenRCT2)"> <action name="Execute"><command>wmctrl -a OpenRCT2</command></action> </item> </menu></openbox_menu>123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283"""Own the engine for one run of the one-tile start.
A run is three attempts. The score is whether the objective was settled and howmuch in-game time it took, and the in-game days of every attempt are added up --so a restart is not free, it costs exactly the time it cost, and "time tocompletion" still means something. This process installs the trusted plugin (thescenario configuration concatenated ahead of the controller), plays the baseplot, leaves a pristine read-only copy for each further attempt, and stopswatching when the engine settles the objective, runs out of attempts, or stopsrunning. The park is then left on screen for the agent and the verifier.
A park that closes down does not end the run while attempts remain: the agenttakes the next one by loading 2nd-try.park or 3rd-try.park from the game's ownload dialog, which the controller sees as a fresh attempt and charges to the total.
The agent has no shell, and the controller blocks the in-game actions that couldre-date the park, re-grant land or cheat, so the only way to a new park is anattempt that has been counted."""import jsonimport osimport shutilimport signalimport subprocessimport sysimport timefrom datetime import datetime, timezonefrom pathlib import Path
AUDIT = Path(os.environ["T39_AUDIT_DIR"])STATE = Path("/logs/artifacts/run")HOME = Path(os.environ.get("HOME", "/home/rct2"))PROFILE = HOME/".config/OpenRCT2"BASE = Path("/opt/onetile/onetile-base.park")LIB = Path("/usr/local/lib/t39")# Attempts in one run. The number is the single source: it is compiled into the# plugin, it is how many pristine restart copies are laid down, and it is what# decides when a closed-down park ends the run. tests/grade.py declares the same# number and refuses a stream that disagrees.ATTEMPTS = 3# Seconds a settled run stays untouched before the last evidence is collected,# so the outcome message and the final figures are on screen to be read.SETTLE_GRACE = 120# How long a failed attempt is held open for the agent to take the next one. Long# enough to read the message and work the load dialog, short enough that an agent# that has given up is not paid to stare at a closed park.RESTART_GRACE = 300# The controller reports every five seconds in real time, paused or not. A much# longer silence with a live engine means the park is no longer running (quit to# the title screen).HEARTBEAT_TIMEOUT = 180# A run that never reports at all is a broken engine, not a park.STARTUP_TIMEOUT = 900POLL = 2
def now(): return datetime.now(timezone.utc).isoformat()
def restart_name(attempt): """The save file the agent loads to take `attempt`.
Short on purpose: the game's load dialog truncates the name column at seven characters, so restart-attempt-2 and restart-attempt-3 both render as "restart-..." and the agent cannot tell which row is which. Ordinals fit, sort to the top of the list, and say what the file is for. controller.js builds the same name for the on-screen instructions. """ suffix = {2: "2nd", 3: "3rd"}.get(attempt, f"{attempt}th") return f"{suffix}-try.park"
def mark(record): """Append a supervisor record to the same audit stream as the engine's.""" AUDIT.mkdir(parents=True, exist_ok=True) record["schema"] = 1 record["observed_at"] = now() with (AUDIT/"game.jsonl").open("a") as audit: audit.write(json.dumps(record)+"\n")
def publish(status): """Record the run's state for collect.py and the verifier.""" STATE.mkdir(parents=True, exist_ok=True) temp = STATE/"current.tmp" temp.write_text(json.dumps({"status": status, "updated_at": now()}, indent=2)+"\n") temp.replace(STATE/"current.json")
def target_guests(): """The guest target this run is scored on.
Two tasks share this environment -- a calibrated target and the video's 1,000 -- and a plugin cannot read the environment, so the number is compiled into the plugin here. A missing or unreadable value is a broken task definition, not something to guess a default for. """ raw = os.environ.get("T39_TARGET_GUESTS", "") try: guests = int(raw) except ValueError: raise SystemExit(f"T39_TARGET_GUESTS must be an integer, got {raw!r}") if guests < 1: raise SystemExit(f"T39_TARGET_GUESTS must be positive, got {guests}") return guests
def install_plugin(guests): """One installed plugin: the target, the allowance, the configuration, then the controller.
A plugin cannot read a file, read the environment or import another, and relying on two plugins loading in a particular order would be relying on a directory listing. The controller calls applyOneTileConfig() directly instead. """ target = PROFILE/"plugin/t39-controller.js" target.parent.mkdir(parents=True, exist_ok=True) target.write_text(f"var ONETILE_TARGET_GUESTS = {guests};\n" f"var ONETILE_ATTEMPTS_ALLOWED = {ATTEMPTS};\n" + (LIB/"onetile-config.js").read_text() + "\n" + (LIB/"controller.js").read_text()) return target
def reset_profile(): """Start from an empty save directory and an empty attempt ledger.
The game profile is a volume that can outlive a container, and the grader falls back to the newest save when a run never settled. A previous run's autosave sitting in there would be graded as this run's park. The ledger is the same hazard for the clock: it lives in the engine's shared plugin store precisely so that it survives the park being reloaded, which means it also survives a container, and a stale one would charge this run for attempts it never took. """ for name in ("save", "screenshot"): shutil.rmtree(PROFILE/name, ignore_errors=True) (PROFILE/name).mkdir(parents=True, exist_ok=True) (PROFILE/"plugin.store.json").unlink(missing_ok=True)
def playable_base(): """Put the base plot somewhere the agent's save dialog can write, and lay down one pristine copy per further attempt.
The engine opens Save As in the directory the park was loaded from, and /opt/onetile is root-owned and read-only, so loading straight from there leaves the agent in a directory where saving silently fails. The immutable copy stays in /opt; the engine plays a copy in the save directory, which is writable and is the one directory the collector preserves -- so a park the agent saves by hand ends up in the evidence instead of somewhere nothing looks. Runs after reset_profile(), which would otherwise delete this.
The restart copies are the agent's route to attempts 2 and 3 and are the only parks in there that a restart may be taken from, so they are read-only: Save As offers the loaded park's name first, and a restart point the agent can save over is a restart point that disappears exactly when it is needed. Their names are short because the load dialog truncates the column -- see restart_name(). """ target = PROFILE/"save/onetile-base.park" target.parent.mkdir(parents=True, exist_ok=True) target.write_bytes(BASE.read_bytes()) target.chmod(0o644) for attempt in range(2, ATTEMPTS+1): restart = PROFILE/f"save/{restart_name(attempt)}" restart.write_bytes(BASE.read_bytes()) restart.chmod(0o444) return target
def collect(): subprocess.run([sys.executable, str(LIB/"collect.py"), "--screenshot"], check=False)
def attempts_used(): """How many attempts the controller has started, read from its own stream.
The audit is the authority on this, not a counter here: the attempt begins when the controller configures a fresh park, and only the controller knows that happened. Only this run's part of the stream is counted -- the audit is append-only and /logs is a volume that can outlive a container, so an earlier run's attempts are sitting in front of it. run_started is this run's mark. """ try: text = (AUDIT/"game.jsonl").read_text() except OSError: return 0 return text.rpartition('"kind": "run_started"')[2].count("onetile_initialized")
def run(park, arguments): """Play the run; return the child and why the watch ended.""" outcome = STATE/"outcome" heartbeat = STATE/"heartbeat" for path in (outcome, heartbeat): path.unlink(missing_ok=True) child = subprocess.Popen( [sys.executable, str(LIB/"game-process.py"), str(park), *arguments, "--rct2-data-path", "/opt/rct2-assets", "--openrct2-data-path", "/opt/OpenRCT2/data"], env={**os.environ, "T39_RUN_OUTCOME": str(outcome), "T39_RUN_HEARTBEAT": str(heartbeat)}) started = time.time() # When an attempt fails with attempts left, this is the moment it failed: the # run is held open from here for the agent to take the next one. failed_at = None while True: # An outcome the engine reported stands even if the engine then died, so # a crash on the way out cannot erase a settled run. game-process clears # the file when a fresh attempt starts, so it always describes the attempt # being played. if outcome.exists(): reason = outcome.read_text().strip() or "objective_failed" if reason == "objective_complete" or attempts_used() >= ATTEMPTS: return child, reason if failed_at is None: failed_at = time.time() mark({"kind": "attempt_ended", "reason": reason, "attempts_used": attempts_used(), "attempts_allowed": ATTEMPTS}) elif time.time()-failed_at > RESTART_GRACE: return child, "attempts_unused" else: failed_at = None if child.poll() is not None: return child, "engine_exit" if heartbeat.exists(): silent = time.time()-heartbeat.stat().st_mtime # A park left on the title screen is only the end of the run once the # attempts are gone; before that the agent is given the same window to # come back with a fresh one. if silent > HEARTBEAT_TIMEOUT and (attempts_used() >= ATTEMPTS or silent > HEARTBEAT_TIMEOUT+RESTART_GRACE): return child, "park_closed" elif time.time()-started > STARTUP_TIMEOUT: return child, "engine_stalled" time.sleep(POLL)
def stop(child): if child.poll() is not None: return child.terminate() try: child.wait(timeout=30) except subprocess.TimeoutExpired: child.kill() child.wait()
def main(): child = None
def shutdown(*_): if child is not None: stop(child) sys.exit(0)
signal.signal(signal.SIGTERM, shutdown) signal.signal(signal.SIGINT, shutdown) publish("starting") guests = target_guests() reset_profile() installed = install_plugin(guests) park = playable_base() mark({"kind": "run_started", "plugin": str(installed), "base": str(BASE), "park": str(park), "target_guests": guests, "attempts_allowed": ATTEMPTS}) publish("running") child, reason = run(park, sys.argv[1:]) if reason in ("objective_complete", "objective_failed"): time.sleep(SETTLE_GRACE) collect() mark({"kind": "run_ended", "reason": reason}) publish(reason) # The park stays on screen: the agent reports on it and the verifier # screenshots it. Exiting here would stop the container. if child is not None: sys.exit(child.wait())
if __name__ == "__main__": main()1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950You are playing OpenRCT2. You have no terminal, no console and no scripting: thegame's GUI is the only thing you can use. You own one tile of a 50x50 map. Every other tile is for sale at $90. You have $350 and no loan is available, so every tile after the first has to be paid for out of what the park earns. Entry is chargeable and so are the rides.
Your goal is 1,000 guests in the park at once, with a park rating of atleast 700. Start by unpausing the game.
**Pause whenever you want to think or build.** Construction works while the gameis paused, and only in-game time is scored, so clicks with the clock stopped costyou nothing. Unpause and use the fast-forward button when you want days to pass.
**You have three attempts.** A park whose rating stays under 700 for 29 daysafter the first month is closed down by the game, and that ends the attempt, notthe run: click the **floppy-disk icon** at the top left of the toolbar (thirdbutton, after pause and fast-forward), choose *Load Game*, and load`2nd-try.park` — or `3rd-try.park` for the last one — to start again on a freshpark. Answer *Don't Save* if the game offers to save the park you are leaving.Every attempt's in-game days are added together into your time, so a restartcosts exactly what it cost and nothing more. Loading any other save is not arestart and voids the run.
## An opening to start from
This is roughly how the play-through this task is modelled on began. You do nothave to follow it, and it stops well short of 1,000 guests — but do not sit stillwhile you think of something better, because the rating clock runs whether or notyou act.
1. **Turn research off.** Finances (the money bag on the toolbar), last tab (the flask): set *Research funding* to **No funding**. It starts at *Normal*, which costs **$200 a month** — most of your stake — and it buys nothing you need.2. **Charge for admission.** Park window (the park-entrance icon towards the right of the toolbar), fourth tab (the coin and banknote): *Admission price* starts at **Free**, and the gate is your only income until something is built. The play-through settled on **$50**. The arrows move the price $1 a click, so do this with the game paused.3. **Let guests in, and fast-forward.** The park is **already open**. For this objective the game does not allow closing it, so the flag button in the park window is deliberately dead — it shows a tooltip and does nothing, and that is not a bug you need to solve. Guests arriving take the rating off 0; an open park with happy guests and nothing built settles at 500.4. **Spend the gate money on land beside the path you own.** Park window, the blue *Buy land rights* button under the flag, then click the tile you want: $90 each. Lay footpath on what you buy (the footpath button on the toolbar) so guests have somewhere to walk. Note that the finance sheet already shows a $90 land purchase before you have done anything — that is the tile you were given.5. **Get one ride open.** This is the whole rating problem: a single ride running at full uptime is worth about **+200 rating**, which is exactly the 700 the objective wants, and no amount of path or scenery substitutes for it. The play-through's early attraction was a **maze**, which needs only a small footprint, priced at $1 a go. After that it is a loop.1234567891011121314151617181920212223242526272829303132333435schema_version = "1.4"artifacts = ["/logs/artifacts", "/logs/verifier/artifacts"][task]name = "sid/t40-rct-onetile-1000"version = "0.1.0"description = "Start owning one tile of a 50x50 OpenRCT2 map with $350 and no loan, and get 1,000 guests into the park at a rating of 700 or more, as fast as possible."[metadata]# The video's target, unchanged: ambiguousamphibian's 1 Tile Start asks for 1,000# guests. Measurement says it is out of reach for a GUI agent -- guest arrival is# engine-capped near 20 a day even in an ideal park, so 1,000 simultaneous guests# needs 70+ in-game days of a ~25-ride park -- so this is a headroom task and# **0.0 from every model is the expected result**. t39 is the same environment at# the calibrated target of 200 and is the one that carries signal.status = "stretch-expected-zero"target_guests = 1000scored_launch_ready = false# Binary reward; models are ranked on in_game_days from the grader's output.speed_metric = "in_game_days"# environment/ and tests/ are generated from t39 by scripts/sync-from-t39.sh.# Only target-guests.txt, compose.yaml and the prose differ.derived_from = "t39-rct-onetile"[agent]# Same budget as t39, and the same three attempts. In-game time is cheap# (fast-forward measured 8x, about 0.6 in-game days a second), so the cap bounds# construction interactions, which is exactly what this target runs out of.timeout_sec = 18000.0[verifier]# One reopened engine.timeout_sec = 1200.0[environment]build_timeout_sec = 1800.0os = "linux"cpus = 4memory_mb = 8192storage_mb = 1024012345678910111213141516171819202122/* Host-side check on onetile-config.js, concatenated after it exactly the way the supervisor concatenates the controller. Applies the configuration to a copy of the base plot in a throwaway profile and prints what landed, so the numbers the task claims can be re-verified against the engine at any time:
openrct2 <base park> --headless \ --user-data-path <temp profile with config+this file in plugin/>
Expected on the shipped base plot: 52x52 (50x50 playable), one owned tile beside the park entrance, 2,499 for sale, $350 cash, $90 land, no loan. */registerPlugin({name:"onetile-config-selftest",version:"1.0",authors:["Task environment"],type:"local",licence:"MIT",targetApiVersion:122,main:function(){ applyOneTileConfig(function(start){ if(start===null){console.log("SELFTEST FAILED: no park entrance found");return;} // The land actions are queued; let the engine settle them before measuring. context.setTimeout(function(){ var summary=configSummary(); summary.startTile=start; summary.buyOutCost=summary.tilesForSale*summary.landPrice; console.log("SELFTEST "+JSON.stringify(summary)); },20); });}});123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284"""Grade the one-tile run: did it reach the objective, and how fast.
The reward is binary. Either the engine settled the stock guests-and-ratingobjective -- the task's guest target in the park at a rating of at least 700 -- orit did not, and nothing in between earns anything. There is no deadline and no partialcredit: how long the agent took is reported, not discounted, and models areranked against each other on `in_game_days`.
A run is three attempts, and `in_game_days` is the total across all of them. Apark that closes down can be started again from a pristine copy, so a model thatwins on its third attempt is credited with the win and charged for the days thefirst two burned. That is the only thing an attempt costs, and it is what keepsthe ranking comparable between a model that got it right first time and one thatneeded the practice.
Completion is never taken from telemetry alone. The engine's own objective musthave succeeded, corroborated by a native save reopened in a separate headlessengine, carrying the controller's origin marker and a scenario that stillmatches the one this task hands out.
Everything else in the output -- peak guests, owned tiles, the rating clock --is there to calibrate the target. None of it is scored."""import argparseimport jsonimport osfrom pathlib import Path
RATING_THRESHOLD = 700 # the engine's own threshold for this objective# Attempts a run is allowed. run-supervisor.py compiles the same number into the# controller, which stamps it on the hand-over; if the two disagree the run was# played under rules this grader does not know, which is an evaluation error.ATTEMPTS_ALLOWED = 3
# The target this task declares, shipped beside the grader. Two tasks share this# environment and these tests -- a calibrated target and the video's 1,000 -- and# this file is the one place they are meant to differ.DECLARED_TARGET = Path(__file__).with_name('target-guests.txt')
def _parse_target(raw, source): try: guests = int(raw) except ValueError: raise ValueError(f'T39_TARGET_GUESTS must be an integer, got {raw!r} from {source}') if guests < 1: raise ValueError(f'T39_TARGET_GUESTS must be positive, got {guests} from {source}') return guests
def target_guests(): """The target to grade against: guests in the park at one moment, not admissions.
Two sources, and they have to agree. `target-guests.txt` is what the task declares; `T39_TARGET_GUESTS` is what the run was actually given, and the run has to have been given the same number the scenario was built with. If they disagree, or if neither is there, that is an evaluation error -- grading a 200-guest run against 1,000, or the reverse, would be worse than refusing. """ raw_env = os.environ.get('T39_TARGET_GUESTS', '').strip() raw_file = DECLARED_TARGET.read_text().strip() if DECLARED_TARGET.exists() else '' if not raw_env and not raw_file: raise ValueError('T39_TARGET_GUESTS is unset and ' f'{DECLARED_TARGET.name} is missing: no target to grade against') from_env = _parse_target(raw_env, 'T39_TARGET_GUESTS') if raw_env else None from_file = _parse_target(raw_file, DECLARED_TARGET.name) if raw_file else None if None not in (from_env, from_file) and from_env != from_file: raise ValueError(f'T39_TARGET_GUESTS is {from_env} but ' f'{DECLARED_TARGET.name} declares {from_file}') return from_env if from_env is not None else from_file
def origin(guests): """The controller's marker. The target is in it, so a save from the other task cannot pass as a completion of this one.""" return f'onetile-v1-{guests}guests-001'
def expected(guests): """The scenario onetile-config.js applies. A save that disagrees was not this task, so it cannot be graded as a completion of it.""" return { 'mapSizeX': 52, 'mapSizeY': 52, # 50x50 playable 'landPrice': 900, # $90.00 a tile 'maxLoan': 0, # no borrowing 'objectiveType': 'guestsAndRating', 'objectiveGuests': guests, }
def expected_baseline(guests): """What the controller must have recorded at hand-over, as a check on the environment rather than on the agent.""" return { 'ownedTiles': 1, 'playable': 50, 'landPrice': 900, 'maxBankLoan': 0, 'objectiveGuests': guests, 'freeParkEntry': False, # The engine disables the park window's open/close control for this # objective type, so a park handed over closed can never be opened and # the run is unwinnable. Not the agent's zero. 'parkOpen': True, }
def scenario_intact(native, guests): """Does the reopened save still describe the scenario that was handed out?""" want = expected(guests) return {key: native.get(key) for key in want} == want
def this_run(events): """The part of the audit stream that belongs to the run being graded.
The audit is append-only and /logs is a Docker volume that can outlive a container, so an earlier run's stream may be sitting in front of this one -- and with attempts counted by hand-overs, a stale one would charge this run for attempts it never took. The supervisor stamps `run_started` when it takes the engine; everything from the last of those is this run. """ starts = [index for index, event in enumerate(events) if event.get('kind') == 'run_started'] return events[starts[-1]:] if starts else events
def check_baseline(events, guests): """The hand-over state of the last attempt, from the trusted controller. Raises if any attempt was handed over wrong.
A baseline that does not match means the environment did not build the scenario it promised, which is an evaluation error and not an agent's zero. Every attempt is checked, not just the last: a restart that handed back a different park would be a different task. """ initialized = [e for e in events if e.get('kind') == 'onetile_initialized'] if not initialized: raise ValueError('Missing one-tile baseline') for attempt, record in enumerate(initialized, start=1): baseline = record.get('baseline') or {} wrong = {key: baseline.get(key) for key, want in expected_baseline(guests).items() if baseline.get(key) != want} if wrong: raise ValueError(f'Scenario was not configured as specified ' f'on attempt {attempt}: {wrong}') allowed = baseline.get('attemptsAllowed') if allowed != ATTEMPTS_ALLOWED: raise ValueError(f'Run allowed {allowed} attempts but this grader ' f'scores {ATTEMPTS_ALLOWED}') return initialized[-1].get('baseline') or {}
def grade(events, saved, guests=None): """Score the run and report both clocks.""" guests = target_guests() if guests is None else guests events = this_run(events) baseline = check_baseline(events, guests) if any(e.get('kind') in ('controller_error', 'observer_error') for e in events): raise ValueError('Controller/instrumentation failure') samples = [e for e in events if e.get('kind') in ('onetile_state', 'onetile_save', 'outcome_state', 'baseline_state')] if not samples: raise ValueError('Missing state observations') days = [e for e in events if e.get('kind') == 'onetile_day'] native = saved or {} completions = [e for e in events if e.get('kind') == 'objective_complete'] failures = [e for e in events if e.get('kind') == 'objective_failed'] # A completion is the last word on a run whichever attempt it came on, so it # is preferred over the save's own record -- the save may be an earlier # attempt's. It still has to be corroborated by the save below. outcome = ((completions[-1].get('outcome') if completions else None) or native.get('outcome') or (failures[-1].get('outcome') if failures else None)) attempts_used = len([e for e in events if e.get('kind') == 'onetile_initialized']) # Each attempt's own day count, in order: the ranked figure is their sum. by_attempt = {} for day in days: index = day.get('attempt') or 1 by_attempt[index] = max(by_attempt.get(index, 0), day.get('inGameDays') or 0) days_played = sum(by_attempt.values()) # Playing a fourth park is not a fourth attempt: the run ended with the third. over_limit = attempts_used > ATTEMPTS_ALLOWED settled_on = (outcome or {}).get('attempt') or 1
def highest(field): # The outcome record is included: it is the authoritative last word on a # settled run, and a run that ended early may have no later sample. return max([s.get(field) or 0 for s in samples] + [d.get(field) or 0 for d in days] + [native.get(field) or 0, (outcome or {}).get(field) or 0])
# A restart loads a pristine park and is counted as an attempt. Loading a park # that had already been played is a rewind to a better moment instead, and it # proves nothing, so the run stops counting. valid = not any(e.get('kind') == 'onetile_reloaded' for e in events[:-1]) intact = scenario_intact(native, guests) if saved else False complete = bool( completions and saved is not None and valid and not over_limit and settled_on <= ATTEMPTS_ALLOWED and intact and native.get('origin') == origin(guests) and native.get('scenarioStatus') == 'completed' and (outcome or {}).get('result') == 'completed' and ((outcome or {}).get('guests') or 0) >= guests and ((outcome or {}).get('rating') or 0) >= RATING_THRESHOLD)
# The ranking metric. In-game days across every attempt are the clock the # engine kept; the wall clock is a diagnostic, since fast-forward decouples # the two. An older stream with no total is a single attempt by definition. total_days = ((outcome or {}).get('totalInGameDays') if (outcome or {}).get('totalInGameDays') is not None else (outcome or {}).get('inGameDays')) in_game_days = total_days if complete else None return { 'schema': 1, 'reward': 1.0 if complete else 0.0, 'completion': 'complete' if complete else 'incomplete', 'speed_metric': 'in_game_days', 'in_game_days': in_game_days, 'in_game_days_final_attempt': (outcome or {}).get('inGameDays') if complete else None, 'attempts_allowed': ATTEMPTS_ALLOWED, 'attempts_used': attempts_used, 'attempts_failed': len(failures), 'settled_on_attempt': settled_on if complete else None, 'in_game_days_by_attempt': [by_attempt[k] for k in sorted(by_attempt)], 'attempt_limit_exceeded': over_limit, 'in_game_ticks': (outcome or {}).get('inGameTicks') if complete else None, 'in_game_months': (outcome or {}).get('monthsElapsed') if complete else None, 'wall_clock_seconds': (outcome or {}).get('wallClockSeconds') if complete else None, # Unscored progress, for calibrating the target. 'target_guests': guests, 'peak_guests': highest('peakGuests') or highest('guests'), 'peak_owned_tiles': highest('peakOwnedTiles') or highest('ownedTiles'), 'owned_tiles_final': native.get('ownedTiles') if saved else highest('ownedTiles'), 'peak_rating': highest('peakRating') or highest('rating'), 'rating_warning_days_max': highest('ratingWarningDays'), # Every attempt's days, whether or not anything was settled: this is what # in_game_days would have been had the run finished. 'in_game_days_played': days_played, 'months_played': highest('monthsElapsed'), 'cash_final': native.get('cash') if saved else None, 'objective_completed_in_game': bool(completions), 'objective_failed_in_game': bool(failures), # How the run ended, not how an attempt did: a park that closed down on # attempt 1 and was restarted did not close the run down. 'park_closed_down': bool(failures) and not completions and len(failures) >= attempts_used, 'native_save_reopened': saved is not None, 'scenario_intact': intact, 'reloaded': not valid, 'blocked_actions': sum(1 for e in events if e.get('kind') == 'blocked_action'), 'baseline': baseline, 'outcome': outcome, }
def main(): parser = argparse.ArgumentParser() parser.add_argument('--artifacts', type=Path, default=Path('/logs/artifacts')) parser.add_argument('--output', type=Path, default=Path('/logs/verifier')) parser.add_argument('--saved-state', type=Path, default=None, help='Reopened native state for the run') parser.add_argument('--target-guests', type=int, default=None, help='Grade against this target instead of resolving it ' 'from target-guests.txt and T39_TARGET_GUESTS') args = parser.parse_args() args.output.mkdir(parents=True, exist_ok=True) for name in ('reward.txt', 'reward.json', 'evaluation-error.txt'): (args.output / name).unlink(missing_ok=True) try: events = [json.loads(line) for line in (args.artifacts / 'audit/game.jsonl').read_text().splitlines() if line.strip()] saved = json.loads(args.saved_state.read_text()) if args.saved_state else None result = grade(events, saved, guests=args.target_guests) (args.output / 'scores.json').write_text(json.dumps(result, indent=2) + '\n') (args.output / 'reward.txt').write_text(str(result['reward']) + '\n') print(json.dumps(result)) except Exception as error: (args.output / 'evaluation-error.txt').write_text(str(error) + '\n') raise
if __name__ == '__main__': main()12345678910111213141516171819202122232425262728293031323334/* Verifier-side reader: reopens a saved park in a separate headless engine and prints its state once. It counts land ownership itself rather than trusting anything the run recorded, and reports the configuration markers so a park that was not the scenario this task hands out cannot be graded as one. */registerPlugin({name:"onetile-verifier",version:"1.0",authors:["Verifier"],type:"local",licence:"MIT",targetApiVersion:122,main:function(){var store=context.getParkStorage("onetile-v1");var owned=0,forSale=0;for(var x=1;x<=map.size.x-2;x++){ for(var y=1;y<=map.size.y-2;y++){ var tile=map.getTile(x,y); for(var i=0;i<tile.numElements;i++){ var element=tile.getElement(i); if(element.type!=="surface")continue; if(element.ownership&2)owned++; // landOwned else if(element.ownership&8)forSale++; // landForSale } }}console.log("T39JSON "+JSON.stringify({kind:"load", origin:store.get("origin",null),outcome:store.get("outcome",null), baseline:store.get("baseline",null),inGameDays:store.get("inGameDays",null), scenarioStatus:scenario.status,objectiveType:scenario.objective.type, objectiveGuests:scenario.objective.guests,completedCompanyValue:scenario.completedCompanyValue, ratingWarningDays:scenario.parkRatingWarningDays, guests:park.guests,rating:park.rating,cash:park.cash, loan:park.bankLoan,maxLoan:park.maxBankLoan, landPrice:park.landPrice,entranceFee:park.entranceFee, parkOpen:park.getFlag("open"),freeParkEntry:park.getFlag("freeParkEntry"), unlockAllPrices:park.getFlag("unlockAllPrices"), mapSizeX:map.size.x,mapSizeY:map.size.y, ownedTiles:owned,tilesForSale:forSale,parkSize:park.parkSize, monthsElapsed:date.monthsElapsed,day:date.day,month:date.month,year:date.year, rides:map.rides.map(function(r){return {id:r.id,name:r.name,classification:r.classification,status:r.status,totalCustomers:r.totalCustomers,excitement:r.excitement,intensity:r.intensity};})}));}});123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263"""Read a saved park through the pinned engine in an isolated verifier profile."""import argparseimport jsonimport osfrom pathlib import Pathimport selectorsimport shutilimport subprocessimport tempfileimport time
def reopen(park, engine="openrct2", rct2="/opt/rct2-assets"): with tempfile.TemporaryDirectory(prefix="t39-reopen-") as temp: profile=Path(temp) (profile/"plugin").mkdir() observer=Path(__file__).with_name("native-inspect.js") shutil.copy2(observer,profile/"plugin/observer.js") # The base plot is a converted copy; no RCT1 installation is needed. command=[engine,str(park.resolve()),"--headless","--rct2-data-path",rct2, "--user-data-path",temp] child=subprocess.Popen(command,stdout=subprocess.PIPE,stderr=subprocess.STDOUT, bufsize=0) output=b"" try: selector=selectors.DefaultSelector() selector.register(child.stdout,selectors.EVENT_READ) deadline=time.monotonic()+90 while time.monotonic()<deadline: if not selector.select(timeout=1): if child.poll() is not None: break continue block=os.read(child.stdout.fileno(),65536) if not block: break output+=block for line in output.decode(errors="replace").splitlines(): if "T39JSON " in line: try: data,_=json.JSONDecoder().raw_decode(line.split("T39JSON ",1)[1]) if data.get("kind") == "load": return data except json.JSONDecodeError: pass raise RuntimeError("Native park inspection failed: "+output.decode(errors="replace")[-2000:]) finally: child.terminate() try: child.wait(timeout=5) except subprocess.TimeoutExpired: child.kill() child.wait()
if __name__ == "__main__": parser=argparse.ArgumentParser() parser.add_argument("park",type=Path) parser.add_argument("output",type=Path) parser.add_argument("--engine",default="openrct2") parser.add_argument("--rct2",default="/opt/rct2-assets") args=parser.parse_args() args.output.write_text(json.dumps(reopen(args.park,args.engine,args.rct2),indent=2)+"\n")110001234567891011121314151617181920212223242526272829303132333435363738394041#!/usr/bin/env bashset -euo pipefailtest_dir="$(cd "$(dirname "$0")" && pwd)"HOME=/home/rct2 DISPLAY=:1 python3 /usr/local/lib/t39/collect.py --screenshot || truemkdir -p /logs/verifierrm -f /logs/verifier/reward.txt /logs/verifier/reward.json
# The controller saves the park at the moment an attempt settles, one file per# attempt; the newest of those is the proof, and the newest save of any kind# stands in when no attempt ever settled.park="$(python3 - <<'PY'from pathlib import Pathroot = Path('/logs/artifacts/save')# onetile-base.park is the pristine plot the run was launched from and# 2nd-try.park and 3rd-try.park are the pristine copies the further attempts are# taken from, all kept in the save directory so the agent's dialogs open usefully.# None of them is evidence about this run.pristine = {'onetile-base.park', '2nd-try.park', '3rd-try.park'}parks = [p for p in root.rglob('*.park') if p.name not in pristine] if root.is_dir() else []settled = [p for p in parks if p.name.startswith('t39-final')]if settled: print(max(settled, key=lambda p: p.stat().st_mtime))elif parks: print(max(parks, key=lambda p: p.stat().st_mtime))PY)"
args=()if [[ -n "$park" ]]; then reopened=/logs/verifier/reopened.json if ! python3 "$test_dir/reopen.py" "$park" "$reopened" \ >> /logs/verifier/reopen.log 2>&1; then echo "Native save could not be inspected; see reopen.log." \ > /logs/verifier/evaluation-error.txt exit 2 fi args+=(--saved-state "$reopened")fi
python3 "$test_dir/grade.py" ${args[@]+"${args[@]}"}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377"""Unit tests for the one-tile grader: binary reward, reported speed."""import jsonimport subprocessimport sysfrom pathlib import Path
import pytest
sys.path.insert(0, str(Path(__file__).parent))import grade as grader
BASELINE = { 'mapSizeX': 52, 'mapSizeY': 52, 'playable': 50, 'ownedTiles': 1, 'tilesForSale': 2499, 'parkSize': 1, 'cash': 3500, 'landPrice': 900, 'bankLoan': 0, 'maxBankLoan': 0, 'entranceFee': 0, 'parkOpen': True, 'freeParkEntry': False, 'unlockAllPrices': True, 'objectiveType': 'guestsAndRating', 'objectiveGuests': 1000, 'sandboxMode': False, 'startTile': {'x': 3, 'y': 8}, 'attempt': 1, 'attemptsAllowed': 3, 'priorInGameDays': 0,}OUTCOME = { 'result': 'completed', 'inGameDays': 412, 'inGameTicks': 1_030_000, 'attempt': 1, 'attemptsAllowed': 3, 'priorInGameDays': 0, 'totalInGameDays': 412, 'monthsElapsed': 13, 'day': 12, 'month': 5, 'year': 2, 'wallClockSeconds': 9_140, 'guests': 1002, 'peakGuests': 1002, 'rating': 742, 'ownedTiles': 918, 'cash': 41_200, 'targetGuests': 1000,}SAVED = { 'origin': 'onetile-v1-1000guests-001', 'scenarioStatus': 'completed', 'objectiveType': 'guestsAndRating', 'objectiveGuests': 1000, 'mapSizeX': 52, 'mapSizeY': 52, 'landPrice': 900, 'maxLoan': 0, 'ownedTiles': 918, 'tilesForSale': 1581, 'cash': 41_200, 'guests': 1002, 'rating': 742, 'outcome': OUTCOME, 'inGameDays': 412,}
@pytest.fixture(autouse=True)def declared_target(monkeypatch, tmp_path): """The fixtures below are a 1,000-guest run, so that is the declared target.
It is set rather than inherited: the grader refuses to guess a target, and a value left over from a real container would silently change every test. The shipped `target-guests.txt` is pointed away from for the same reason -- these tests are about the grader, not about which target this copy of the task ships. """ monkeypatch.setenv('T39_TARGET_GUESTS', '1000') monkeypatch.setattr(grader, 'DECLARED_TARGET', tmp_path / 'absent.txt')
def attempt_stream(attempt, day_count=3, prior_days=0, baseline=None): """One attempt: a fresh hand-over, then the in-game days it burned.
A restart is a second hand-over of a pristine park, so this is the shape the controller produces for every attempt, the first one included. """ stream = [{'kind': 'onetile_initialized', 'target': 1000, 'baseline': dict(BASELINE, attempt=attempt, priorInGameDays=prior_days, **(baseline or {}))}, {'kind': 'clock_started'}] for number in range(1, day_count + 1): stream.append({'kind': 'onetile_day', 'attempt': attempt, 'inGameDays': number, 'totalInGameDays': prior_days + number, 'guests': number * 4, 'peakGuests': number * 4, 'rating': 500, 'ratingWarningDays': 0, 'ownedTiles': number, 'monthsElapsed': 0}) stream.append({'kind': 'onetile_state', 'attempt': attempt, 'inGameDays': day_count, 'totalInGameDays': prior_days + day_count, 'guests': day_count * 4, 'peakGuests': day_count * 4, 'rating': 500, 'ownedTiles': day_count, 'monthsElapsed': 0}) return stream
def failed_attempt(attempt, in_game_days, prior_days): return {'result': 'failed', 'attempt': attempt, 'attemptsAllowed': 3, 'inGameDays': in_game_days, 'priorInGameDays': prior_days, 'totalInGameDays': prior_days + in_game_days, 'monthsElapsed': 2, 'guests': 0, 'peakGuests': 6, 'rating': 500, 'ownedTiles': 2}
def events(*extra, baseline=None, day_count=3): stream = [{'kind': 'engine_start'}] stream.extend(attempt_stream(1, day_count=day_count, baseline=baseline)) stream.append({'kind': 'onetile_state', 'guests': 12, 'peakGuests': 12, 'rating': 500, 'ownedTiles': 3, 'monthsElapsed': 0}) stream.extend(extra) return stream
def completed_events(): return events({'kind': 'objective_complete', 'outcome': OUTCOME, 'state': {'kind': 'outcome_state', 'guests': 1002, 'peakGuests': 1002, 'rating': 742, 'ownedTiles': 918, 'monthsElapsed': 13}})
def test_verified_completion_scores_one_and_reports_in_game_days(): result = grader.grade(completed_events(), SAVED) assert result['reward'] == 1.0 assert result['completion'] == 'complete' assert result['speed_metric'] == 'in_game_days' assert result['in_game_days'] == 412 assert result['in_game_months'] == 13 assert result['wall_clock_seconds'] == 9_140 assert result['scenario_intact'] is True
def test_completion_needs_a_reopened_save(): result = grader.grade(completed_events(), None) assert result['reward'] == 0.0 assert result['objective_completed_in_game'] is True assert result['native_save_reopened'] is False assert result['in_game_days'] is None
def test_completion_rejected_when_the_scenario_was_not_the_one_handed_out(): result = grader.grade(completed_events(), dict(SAVED, landPrice=1)) assert result['reward'] == 0.0 assert result['scenario_intact'] is False
def test_completion_rejected_when_the_engine_status_is_not_completed(): result = grader.grade(completed_events(), dict(SAVED, scenarioStatus='inProgress')) assert result['reward'] == 0.0
def test_completion_rejected_without_the_origin_marker(): result = grader.grade(completed_events(), dict(SAVED, origin=None)) assert result['reward'] == 0.0
def test_completion_rejected_when_the_outcome_is_short_of_the_target(): short = dict(OUTCOME, guests=999) stream = events({'kind': 'objective_complete', 'outcome': short}) result = grader.grade(stream, dict(SAVED, outcome=short)) assert result['reward'] == 0.0
def test_completion_rejected_when_the_rating_was_below_the_threshold(): low = dict(OUTCOME, rating=699) stream = events({'kind': 'objective_complete', 'outcome': low}) result = grader.grade(stream, dict(SAVED, outcome=low)) assert result['reward'] == 0.0
def test_reloading_invalidates_the_run(): stream = completed_events() stream.insert(3, {'kind': 'onetile_reloaded'}) result = grader.grade(stream, SAVED) assert result['reward'] == 0.0 assert result['reloaded'] is True
def test_closed_down_park_scores_zero_and_says_so(): outcome = {'result': 'failed', 'inGameDays': 60, 'monthsElapsed': 2, 'guests': 14, 'peakGuests': 19, 'rating': 480, 'ownedTiles': 7} stream = events({'kind': 'objective_failed', 'outcome': outcome}) result = grader.grade(stream, dict(SAVED, scenarioStatus='failed', outcome=outcome)) assert result['reward'] == 0.0 assert result['park_closed_down'] is True assert result['peak_guests'] == 19
def test_a_win_on_the_third_attempt_is_credited_and_charged_for_the_first_two(): """Three attempts, and the clock is the sum of them: 59 + 59 + 96 days.""" won = dict(OUTCOME, attempt=3, inGameDays=96, priorInGameDays=118, totalInGameDays=214) stream = [{'kind': 'engine_start'}] stream.extend(attempt_stream(1, day_count=59)) stream.append({'kind': 'objective_failed', 'outcome': failed_attempt(1, 59, 0)}) stream.extend(attempt_stream(2, day_count=59, prior_days=59)) stream.append({'kind': 'objective_failed', 'outcome': failed_attempt(2, 59, 59)}) stream.extend(attempt_stream(3, day_count=96, prior_days=118)) stream.append({'kind': 'objective_complete', 'outcome': won}) result = grader.grade(stream, dict(SAVED, outcome=won)) assert result['reward'] == 1.0 assert result['in_game_days'] == 214 assert result['in_game_days_final_attempt'] == 96 assert result['in_game_days_by_attempt'] == [59, 59, 96] assert result['settled_on_attempt'] == 3 assert result['attempts_used'] == 3 assert result['attempts_failed'] == 2 # Two parks closed down, but the run did not end on one of them. assert result['park_closed_down'] is False
def test_a_fourth_park_is_not_a_fourth_attempt(): """The allowance is the rule; a park played past it earns nothing.""" won = dict(OUTCOME, attempt=4, inGameDays=40, priorInGameDays=6, totalInGameDays=46) stream = [{'kind': 'engine_start'}] for attempt in (1, 2, 3): prior = 2 * (attempt - 1) stream.extend(attempt_stream(attempt, day_count=2, prior_days=prior)) stream.append({'kind': 'objective_failed', 'outcome': failed_attempt(attempt, 2, prior)}) stream.extend(attempt_stream(4, day_count=40, prior_days=6)) stream.append({'kind': 'attempt_limit_exceeded', 'attempt': 4, 'attemptsAllowed': 3}) stream.append({'kind': 'objective_complete', 'outcome': won}) result = grader.grade(stream, dict(SAVED, outcome=won)) assert result['reward'] == 0.0 assert result['attempt_limit_exceeded'] is True assert result['attempts_used'] == 4 assert result['objective_completed_in_game'] is True
def test_a_park_closed_down_with_attempts_left_is_not_the_end_of_the_run(): stream = [{'kind': 'engine_start'}] stream.extend(attempt_stream(1, day_count=59)) stream.append({'kind': 'objective_failed', 'outcome': failed_attempt(1, 59, 0)}) stream.extend(attempt_stream(2, day_count=12, prior_days=59)) stream.append({'kind': 'onetile_state', 'guests': 40, 'peakGuests': 40, 'rating': 610, 'ownedTiles': 9, 'monthsElapsed': 1}) result = grader.grade(stream, None) assert result['reward'] == 0.0 assert result['park_closed_down'] is False assert result['attempts_used'] == 2 assert result['in_game_days_played'] == 71
def test_an_earlier_runs_stream_is_not_this_runs_attempts(): """/logs outlives a container; a stale stream must not spend this run's tries.""" stale = [{'kind': 'run_started'}] stale.extend(attempt_stream(1, day_count=59)) stale.append({'kind': 'objective_failed', 'outcome': failed_attempt(1, 59, 0)}) stream = stale + [{'kind': 'run_started'}] + completed_events() result = grader.grade(stream, SAVED) assert result['reward'] == 1.0 assert result['attempts_used'] == 1 assert result['in_game_days'] == 412
def test_a_run_played_under_a_different_allowance_is_an_evaluation_error(): """The allowance is compiled into the controller; the grader scores one rule.""" with pytest.raises(ValueError, match='attempts'): grader.grade(events(baseline={'attemptsAllowed': 1}), SAVED)
def test_unfinished_run_scores_zero_but_reports_progress(): result = grader.grade(events(), None) assert result['reward'] == 0.0 assert result['completion'] == 'incomplete' assert result['peak_guests'] == 12 assert result['peak_owned_tiles'] == 3 assert result['in_game_days_played'] == 3 assert result['in_game_days'] is None
def test_missing_baseline_is_an_evaluation_error(): with pytest.raises(ValueError, match='baseline'): grader.grade([{'kind': 'engine_start'}], None)
def test_a_scenario_built_wrong_is_an_evaluation_error_not_a_zero(): with pytest.raises(ValueError, match='not configured'): grader.grade(events(baseline={'ownedTiles': 9}), SAVED)
def test_free_park_entry_baseline_is_an_evaluation_error(): # An empty park with free entry earns nothing, so the run would be # unwinnable through no fault of the agent. with pytest.raises(ValueError, match='not configured'): grader.grade(events(baseline={'freeParkEntry': True}), SAVED)
def test_a_park_handed_over_closed_is_an_evaluation_error(): # For the guestsAndRating objective the engine disables the park window's # open/close control, so a closed hand-over cannot be opened by any amount of # clicking and the park takes no guests at all (measured: Opus 5.5 spent a # whole run on it, 2026-09-23). The environment's bug, not the agent's zero. with pytest.raises(ValueError, match='not configured'): grader.grade(events(baseline={'parkOpen': False}), SAVED)
def test_instrumentation_failure_is_an_evaluation_error(): stream = events({'kind': 'controller_error', 'message': 'boom'}) with pytest.raises(ValueError, match='instrumentation'): grader.grade(stream, SAVED)
def test_a_lower_target_is_scored_on_its_own_terms(): """The calibrated task and the 1,000-guest variant share this grader.""" outcome = dict(OUTCOME, guests=214, peakGuests=214, targetGuests=200, inGameDays=96, totalInGameDays=96) stream = events({'kind': 'objective_complete', 'outcome': outcome}, baseline={'objectiveGuests': 200}) saved = dict(SAVED, origin='onetile-v1-200guests-001', objectiveGuests=200, outcome=outcome, guests=214) result = grader.grade(stream, saved, guests=200) assert result['reward'] == 1.0 assert result['target_guests'] == 200 assert result['in_game_days'] == 96
def test_a_save_from_the_other_target_is_not_this_task_completed(): """A 1,000-guest park is a harder park, and still not this task's park.""" stream = events({'kind': 'objective_complete', 'outcome': OUTCOME}, baseline={'objectiveGuests': 200}) result = grader.grade(stream, SAVED, guests=200) assert result['reward'] == 0.0 assert result['scenario_intact'] is False
def test_the_target_comes_from_the_task_definition(monkeypatch): monkeypatch.setenv('T39_TARGET_GUESTS', '200') assert grader.target_guests() == 200 assert grader.origin(200) == 'onetile-v1-200guests-001'
@pytest.mark.parametrize('value', ['lots', '0', '-5'])def test_an_unusable_target_is_an_evaluation_error(monkeypatch, value): monkeypatch.setenv('T39_TARGET_GUESTS', value) with pytest.raises(ValueError, match='T39_TARGET_GUESTS'): grader.target_guests()
def test_a_missing_target_is_an_evaluation_error(monkeypatch): """Better to refuse than to grade a run against the other task's objective.""" monkeypatch.delenv('T39_TARGET_GUESTS') with pytest.raises(ValueError, match='T39_TARGET_GUESTS'): grader.target_guests()
def test_the_task_definition_supplies_the_target_when_the_run_did_not(monkeypatch, tmp_path): """A verifier that ran without the run's environment still knows the task.""" declared = tmp_path / 'target-guests.txt' declared.write_text('200\n') monkeypatch.setattr(grader, 'DECLARED_TARGET', declared) monkeypatch.delenv('T39_TARGET_GUESTS') assert grader.target_guests() == 200
def test_a_run_configured_for_the_other_target_is_an_evaluation_error(monkeypatch, tmp_path): """compose.yaml built a 1,000-guest scenario, this task declares 200: refuse.""" declared = tmp_path / 'target-guests.txt' declared.write_text('200\n') monkeypatch.setattr(grader, 'DECLARED_TARGET', declared) with pytest.raises(ValueError, match='T39_TARGET_GUESTS is 1000'): grader.target_guests()
def test_this_copy_of_the_task_declares_a_usable_target(): """Both copies ship the file; only the number in it differs.""" shipped = Path(__file__).with_name('target-guests.txt') assert grader._parse_target(shipped.read_text().strip(), shipped.name) > 0
def test_cli_writes_reward_and_scores(tmp_path): artifacts = tmp_path / 'artifacts' (artifacts / 'audit').mkdir(parents=True) (artifacts / 'audit/game.jsonl').write_text( '\n'.join(json.dumps(event) for event in completed_events()) + '\n') state = tmp_path / 'reopened.json' state.write_text(json.dumps(SAVED)) output = tmp_path / 'verifier' # The fixtures are a 1,000-guest run, whatever target this copy ships. subprocess.run([sys.executable, str(Path(__file__).with_name('grade.py')), '--artifacts', str(artifacts), '--output', str(output), '--saved-state', str(state), '--target-guests', '1000'], check=True, capture_output=True) assert (output / 'reward.txt').read_text().strip() == '1.0' scores = json.loads((output / 'scores.json').read_text()) assert scores['in_game_days'] == 412
def test_cli_records_evaluation_error(tmp_path): artifacts = tmp_path / 'artifacts' (artifacts / 'audit').mkdir(parents=True) (artifacts / 'audit/game.jsonl').write_text(json.dumps({'kind': 'engine_start'}) + '\n') output = tmp_path / 'verifier' result = subprocess.run([sys.executable, str(Path(__file__).with_name('grade.py')), '--artifacts', str(artifacts), '--output', str(output), '--target-guests', '1000'], capture_output=True) assert result.returncode != 0 assert 'baseline' in (output / 'evaluation-error.txt').read_text() assert not (output / 'reward.txt').exists()1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071{"task_id": "t16-shottracer-effects", "domain": "video", "trajectory_id": "51b17e40-f8bc-47b0-bfda-010dc7c125c3", "url": "https://www.trajectories.sh/t/51b17e40-f8bc-47b0-bfda-010dc7c125c3", "title": "Task06 - Create sports animation graphic (Claude Fable5.1)", "model": "claude-fable-5-1", "reward": 0.6, "steps": 881, "outcome": "task_complete", "project": "QT OSWorld2.0 Tasks", "project_url": "https://www.trajectories.sh/projects/233b0824-38a5-4565-9a0d-d04b39843ce4", "sources": ["mai_index_csv", "baseten_task_index", "approved_task_index", "archive_readme"]}{"task_id": "t16-shottracer-effects", "domain": "video", "trajectory_id": "53bee8fe-b621-4ed6-85d6-955799e698a4", "url": "https://www.trajectories.sh/t/53bee8fe-b621-4ed6-85d6-955799e698a4", "title": "Task06 - Create sports animation graphic (Claude Opus5)", "model": "claude-opus-5", "reward": 0.49, "steps": 783, "outcome": "task_complete", "project": "QT OSWorld2.0 Tasks", "project_url": "https://www.trajectories.sh/projects/233b0824-38a5-4565-9a0d-d04b39843ce4", "sources": ["mai_index_csv", "baseten_task_index", "approved_task_index", "archive_readme"]}{"task_id": "t16-shottracer-effects", "domain": "video", "trajectory_id": "f8f1702f-a1f0-4c87-af82-56f2ff98eda7", "url": "https://www.trajectories.sh/t/f8f1702f-a1f0-4c87-af82-56f2ff98eda7", "title": "Task06 - Create sports animation graphic (Claude Fable5.1 - with terminal, the v2 reference)", "model": "claude-fable-5-1", "reward": 0.96, "steps": 708, "outcome": "task_complete", "project": null, "project_url": null, "sources": ["mai_index_csv"]}{"task_id": "t16-shottracer-effects", "domain": "video", "trajectory_id": "19dbf739-dd61-49c1-a6ce-566872b1c0cf", "url": "https://www.trajectories.sh/t/19dbf739-dd61-49c1-a6ce-566872b1c0cf", "title": "Task06 - Create sports animation graphic (Claude Opus5 - with terminal)", "model": "claude-opus-5", "reward": 0.88, "steps": 492, "outcome": "task_complete", "project": null, "project_url": null, "sources": ["mai_index_csv"]}{"task_id": "t23-dance-blob", "domain": "design_and_motion", "trajectory_id": "96e4b7f4-23d5-4bd7-9ba8-3072802d13f1", "url": "https://www.trajectories.sh/t/96e4b7f4-23d5-4bd7-9ba8-3072802d13f1", "title": "Task09 - Recreate a gif animation into video format (GPT6 Astra)", "model": "gpt-6-astra", "reward": 0.6, "steps": 82, "outcome": "task_complete", "project": "QT OSWorld2.0 Tasks", "project_url": "https://www.trajectories.sh/projects/233b0824-38a5-4565-9a0d-d04b39843ce4", "sources": ["mai_index_csv", "baseten_task_index", "approved_task_index", "archive_readme"]}{"task_id": "t16-shottracer-effects", "domain": "video", "trajectory_id": "20c8331f-a544-46b0-bda0-b67d9c7fc683", "url": "https://www.trajectories.sh/t/20c8331f-a544-46b0-bda0-b67d9c7fc683", "title": "t16-kimi-k3-20261010-120121", "model": "kimi-k3", "reward": 0.525, "steps": 669, "outcome": "task_complete", "project": "QT OSWorld2.0 Tasks", "project_url": "https://www.trajectories.sh/projects/9cc9eff6-b593-4359-ba1f-150243151ede", "sources": ["moonshot_index_csv", "baseten_task_index", "approved_task_index", "archive_readme"]}{"task_id": "t18-friction-tutorial", "domain": "design_and_motion", "trajectory_id": "dcfaaade-7ed3-4284-a386-d95ace1c25f3", "url": "https://www.trajectories.sh/t/dcfaaade-7ed3-4284-a386-d95ace1c25f3", "title": "t18-kimi-k3-20261010-120121", "model": "kimi-k3", "reward": 0.85, "steps": 148, "outcome": "task_complete", "project": "QT OSWorld2.0 Tasks", "project_url": "https://www.trajectories.sh/projects/9cc9eff6-b593-4359-ba1f-150243151ede", "sources": ["moonshot_index_csv", "approved_task_index", "archive_readme"]}{"task_id": "t19-blender-rig-full", "domain": "3d_blender", "trajectory_id": "eae7e619-72dd-4cb2-8593-d8136ebd7fa9", "url": "https://www.trajectories.sh/t/eae7e619-72dd-4cb2-8593-d8136ebd7fa9", "title": "t19-kimi-k3-20261010-163542", "model": "kimi-k3", "reward": 0.26, "steps": 749, "outcome": "task_complete", "project": "QT OSWorld2.0 Tasks", "project_url": "https://www.trajectories.sh/projects/9cc9eff6-b593-4359-ba1f-150243151ede", "sources": ["moonshot_index_csv", "baseten_task_index", "approved_task_index", "archive_readme"]}{"task_id": "t23-dance-blob", "domain": "design_and_motion", "trajectory_id": "dfd5725b-aa36-4ebc-9ec6-c027f9454178", "url": "https://www.trajectories.sh/t/dfd5725b-aa36-4ebc-9ec6-c027f9454178", "title": "t23-kimi-k3-20261010-120121", "model": "kimi-k3", "reward": 0.2, "steps": 1490, "outcome": "task_complete", "project": "QT OSWorld2.0 Tasks", "project_url": "https://www.trajectories.sh/projects/9cc9eff6-b593-4359-ba1f-150243151ede", "sources": ["moonshot_index_csv", "baseten_task_index", "approved_task_index", "archive_readme"]}{"task_id": "golf-tracer-01", "domain": "video", "trajectory_id": "68c1a08e-f638-42c9-a0f6-ef683e2dcd26", "url": "https://www.trajectories.sh/t/68c1a08e-f638-42c9-a0f6-ef683e2dcd26", "title": "golf-01-akshay-bhatia-driver — GPT-6.1 Sol / computer-1 — 20261005-215013", "model": null, "reward": null, "steps": null, "outcome": null, "project": "QT OSWorld2.0 Tasks", "project_url": "https://www.trajectories.sh/projects/233b0824-38a5-4565-9a0d-d04b39843ce4", "sources": ["baseten_task_index", "approved_task_index", "archive_readme"]}{"task_id": "sw-bicycle", "domain": "3d_blender", "trajectory_id": "4f5552c3-55f8-46f5-93b4-75b62b22036a", "url": "https://www.trajectories.sh/t/4f5552c3-55f8-46f5-93b4-75b62b22036a", "title": "StudioWorld — Bicycle — GPT-6.1 Sol (computer-1, Daytona)", "model": null, "reward": null, "steps": null, "outcome": null, "project": "QT OSWorld2.0 Tasks", "project_url": "https://www.trajectories.sh/projects/233b0824-38a5-4565-9a0d-d04b39843ce4", "sources": ["baseten_task_index", "approved_task_index", "archive_readme"]}{"task_id": "sw-isometric-house", "domain": "3d_blender", "trajectory_id": "b909627a-c2b9-4bda-8344-bbfc9e9b2545", "url": "https://www.trajectories.sh/t/b909627a-c2b9-4bda-8344-bbfc9e9b2545", "title": "StudioWorld — Isometric House — GPT-6.1 Sol (computer-1, Daytona)", "model": null, "reward": null, "steps": null, "outcome": null, "project": "QT OSWorld2.0 Tasks", "project_url": "https://www.trajectories.sh/projects/233b0824-38a5-4565-9a0d-d04b39843ce4", "sources": ["baseten_task_index", "approved_task_index", "archive_readme"]}{"task_id": "t16-shottracer-effects", "domain": "video", "trajectory_id": "a8cf02a4-2119-4236-b933-bd3421d8ff3a", "url": "https://www.trajectories.sh/t/a8cf02a4-2119-4236-b933-bd3421d8ff3a", "title": "t16-shottracer-effects: golf shot tracer in Friction - Fable 5.1 gui-computer-1 (AWS Bedrock on Daytona; reward 0.57)", "model": null, "reward": 0.57, "steps": null, "outcome": null, "project": "QT OSWorld2.0 Tasks", "project_url": "https://www.trajectories.sh/projects/233b0824-38a5-4565-9a0d-d04b39843ce4", "sources": ["baseten_task_index", "approved_task_index", "archive_readme"]}{"task_id": "t16-shottracer-effects", "domain": "video", "trajectory_id": "2a397a93-0d39-496e-ac30-4319b0959746", "url": "https://www.trajectories.sh/t/2a397a93-0d39-496e-ac30-4319b0959746", "title": "t16-shottracer-effects: golf shot tracer in Friction - Gemini 3.8 Flash gui-computer-1 (Google on Daytona; stalled at 337 steps, cancelled, no artifacts, unverified)", "model": null, "reward": null, "steps": null, "outcome": null, "project": "QT OSWorld2.0 Tasks", "project_url": "https://www.trajectories.sh/projects/233b0824-38a5-4565-9a0d-d04b39843ce4", "sources": ["baseten_task_index", "approved_task_index", "archive_readme"]}{"task_id": "t16-shottracer-effects", "domain": "video", "trajectory_id": "ccd9e959-2f26-4d26-9aa1-e708b062414f", "url": "https://www.trajectories.sh/t/ccd9e959-2f26-4d26-9aa1-e708b062414f", "title": "t16-shottracer-effects: golf shot tracer in Friction - Grok 4.6 gui-computer-1 (Azure on Daytona)", "model": null, "reward": null, "steps": null, "outcome": null, "project": "QT OSWorld2.0 Tasks", "project_url": "https://www.trajectories.sh/projects/233b0824-38a5-4565-9a0d-d04b39843ce4", "sources": ["baseten_task_index", "approved_task_index", "archive_readme"]}{"task_id": "t16-shottracer-effects", "domain": "video", "trajectory_id": "72cd060e-59fc-4645-891d-5b29e2d8670b", "url": "https://www.trajectories.sh/t/72cd060e-59fc-4645-891d-5b29e2d8670b", "title": "t16-shottracer-effects: golf shot tracer in Friction - GPT-6 Astra computer-1 (Azure on Daytona)", "model": null, "reward": null, "steps": null, "outcome": null, "project": "QT OSWorld2.0 Tasks", "project_url": "https://www.trajectories.sh/projects/233b0824-38a5-4565-9a0d-d04b39843ce4", "sources": ["baseten_task_index", "approved_task_index", "archive_readme"]}{"task_id": "t16-shottracer-effects", "domain": "video", "trajectory_id": "31d08ed2-e00c-4b3f-b052-042b0b361b4e", "url": "https://www.trajectories.sh/t/31d08ed2-e00c-4b3f-b052-042b0b361b4e", "title": "t16-shottracer-effects: golf shot tracer in Friction - GPT-6 sol computer-1 (Azure on Daytona)", "model": null, "reward": null, "steps": null, "outcome": null, "project": "QT OSWorld2.0 Tasks", "project_url": "https://www.trajectories.sh/projects/233b0824-38a5-4565-9a0d-d04b39843ce4", "sources": ["baseten_task_index", "approved_task_index", "archive_readme"]}{"task_id": "t16-shottracer-effects", "domain": "video", "trajectory_id": "3c250818-7cf7-434a-9901-c38017138578", "url": "https://www.trajectories.sh/t/3c250818-7cf7-434a-9901-c38017138578", "title": "Shot tracers — Inkling / computer-1 — coding available — score 0", "model": null, "reward": null, "steps": null, "outcome": null, "project": "TMInkling StudioWorld Tasks", "project_url": "https://www.trajectories.sh/projects/1519c606-fafb-425b-a81d-152adfcb5351", "sources": ["baseten_task_index", "approved_task_index", "archive_readme"]}{"task_id": "t16-shottracer-effects", "domain": "video", "trajectory_id": "5fe990af-9d1c-471a-baab-26c5d5e7d0b6", "url": "https://www.trajectories.sh/t/5fe990af-9d1c-471a-baab-26c5d5e7d0b6", "title": "t16 — thinkingmachines/Inkling", "model": null, "reward": null, "steps": null, "outcome": null, "project": "TMInkling StudioWorld Tasks", "project_url": "https://www.trajectories.sh/projects/1519c606-fafb-425b-a81d-152adfcb5351", "sources": ["baseten_task_index", "approved_task_index", "archive_readme"]}{"task_id": "t19-blender-rig-full", "domain": "3d_blender", "trajectory_id": "7608351b-9a96-49e7-ae8c-97d4fc67d604", "url": "https://www.trajectories.sh/t/7608351b-9a96-49e7-ae8c-97d4fc67d604", "title": "t19 — thinkingmachines/Inkling", "model": null, "reward": null, "steps": null, "outcome": null, "project": "QT OSWorld2.0 Tasks", "project_url": "https://www.trajectories.sh/projects/233b0824-38a5-4565-9a0d-d04b39843ce4", "sources": ["baseten_task_index", "approved_task_index", "archive_readme"]}{"task_id": "t19-blender-rig-full", "domain": "3d_blender", "trajectory_id": "d5aed388-a89a-4ee2-b8a8-145c684f1904", "url": "https://www.trajectories.sh/t/d5aed388-a89a-4ee2-b8a8-145c684f1904", "title": "Task10 - Follow a Blender YouTube tutorial and recreate outputs (GPT6 Astra)", "model": null, "reward": null, "steps": null, "outcome": null, "project": "QT OSWorld2.0 Tasks", "project_url": "https://www.trajectories.sh/projects/233b0824-38a5-4565-9a0d-d04b39843ce4", "sources": ["baseten_task_index", "approved_task_index", "archive_readme"]}{"task_id": "t20-blender-donut-40", "domain": "3d_blender", "trajectory_id": "2f3c93f2-0ef8-4658-ae2a-6234b5c7a46a", "url": "https://www.trajectories.sh/t/2f3c93f2-0ef8-4658-ae2a-6234b5c7a46a", "title": "Task08 - Follow the Blender donut tutorial series to remake the 3D donut (Claude Fable5.1)", "model": null, "reward": null, "steps": null, "outcome": null, "project": "QT OSWorld2.0 Tasks", "project_url": "https://www.trajectories.sh/projects/233b0824-38a5-4565-9a0d-d04b39843ce4", "sources": ["baseten_task_index", "approved_task_index", "archive_readme"]}{"task_id": "t20-blender-donut-40", "domain": "3d_blender", "trajectory_id": "02dd61fe-73b3-4f20-aa1a-e6c4ca60c6bf", "url": "https://www.trajectories.sh/t/02dd61fe-73b3-4f20-aa1a-e6c4ca60c6bf", "title": "Task08 - Follow the Blender donut tutorial series to remake the 3D donut (Claude Opus5)", "model": null, "reward": null, "steps": null, "outcome": null, "project": "QT OSWorld2.0 Tasks", "project_url": "https://www.trajectories.sh/projects/233b0824-38a5-4565-9a0d-d04b39843ce4", "sources": ["baseten_task_index", "approved_task_index", "archive_readme"]}{"task_id": "t23-dance-blob", "domain": "design_and_motion", "trajectory_id": "9e8ee3f5-3fc9-4000-98b7-f50b1bbcd2ee", "url": "https://www.trajectories.sh/t/9e8ee3f5-3fc9-4000-98b7-f50b1bbcd2ee", "title": "Grok 4.6 - t23 dance blob (killed at step 1005 after a hung model request; no reward)", "model": null, "reward": null, "steps": null, "outcome": null, "project": "QT OSWorld2.0 Tasks", "project_url": "https://www.trajectories.sh/projects/233b0824-38a5-4565-9a0d-d04b39843ce4", "sources": ["baseten_task_index", "approved_task_index", "archive_readme"]}{"task_id": "t23-dance-blob", "domain": "design_and_motion", "trajectory_id": "ee5e1892-9f6e-43a9-814d-b848a44fbb1e", "url": "https://www.trajectories.sh/t/ee5e1892-9f6e-43a9-814d-b848a44fbb1e", "title": "T23 Dance Blob — Claude Fable 5.1 — GUI only — task_complete, reward 0.6 (421 steps)", "model": null, "reward": 0.6, "steps": null, "outcome": null, "project": "QT OSWorld2.0 Tasks", "project_url": "https://www.trajectories.sh/projects/233b0824-38a5-4565-9a0d-d04b39843ce4", "sources": ["baseten_task_index", "approved_task_index", "archive_readme"]}{"task_id": "t23-dance-blob", "domain": "design_and_motion", "trajectory_id": "c2428fc2-d6d3-465e-913b-ab7c026283a0", "url": "https://www.trajectories.sh/t/c2428fc2-d6d3-465e-913b-ab7c026283a0", "title": "Task23 dance blob — Kimi K2.6 via Sail Research (reward 0.00)", "model": null, "reward": 0.0, "steps": null, "outcome": null, "project": "QT OSWorld2.0 Tasks", "project_url": "https://www.trajectories.sh/projects/233b0824-38a5-4565-9a0d-d04b39843ce4", "sources": ["baseten_task_index", "approved_task_index", "archive_readme"]}{"task_id": "t23-dance-blob", "domain": "design_and_motion", "trajectory_id": "0c8cdc91-2a45-48ae-8c32-ebcc22c27c65", "url": "https://www.trajectories.sh/t/0c8cdc91-2a45-48ae-8c32-ebcc22c27c65", "title": "Task23 dance blob — Opus 5.5 via Bedrock, 3 attempts (0.70 / 0.00 / 0.00)", "model": null, "reward": null, "steps": null, "outcome": null, "project": "QT OSWorld2.0 Tasks", "project_url": "https://www.trajectories.sh/projects/233b0824-38a5-4565-9a0d-d04b39843ce4", "sources": ["baseten_task_index", "approved_task_index", "archive_readme"]}{"task_id": "t23-dance-blob", "domain": "design_and_motion", "trajectory_id": "01f5e8d1-04fd-4102-9dfa-0bef16f28068", "url": "https://www.trajectories.sh/t/01f5e8d1-04fd-4102-9dfa-0bef16f28068", "title": "Task23 dance blob — GPT-6 sol (reward 0.40)", "model": null, "reward": 0.4, "steps": null, "outcome": null, "project": "QT OSWorld2.0 Tasks", "project_url": "https://www.trajectories.sh/projects/233b0824-38a5-4565-9a0d-d04b39843ce4", "sources": ["baseten_task_index", "approved_task_index", "archive_readme"]}{"task_id": "t23-dance-blob", "domain": "design_and_motion", "trajectory_id": "c1beb861-9b05-40f6-8e55-ac2343023722", "url": "https://www.trajectories.sh/t/c1beb861-9b05-40f6-8e55-ac2343023722", "title": "t23 — thinkingmachines/Inkling", "model": null, "reward": null, "steps": null, "outcome": null, "project": "TMInkling StudioWorld Tasks", "project_url": "https://www.trajectories.sh/projects/1519c606-fafb-425b-a81d-152adfcb5351", "sources": ["baseten_task_index", "approved_task_index", "archive_readme"]}{"task_id": "t24-friction-pong", "domain": "design_and_motion", "trajectory_id": "2a18405d-cc74-4da1-93c0-c8152c8e9970", "url": "https://www.trajectories.sh/t/2a18405d-cc74-4da1-93c0-c8152c8e9970", "title": "Friction Pong — Kimi K3 — 20261012-124728 — post-run evaluator error", "model": null, "reward": null, "steps": null, "outcome": null, "project": "QT OSWorld2.0 Tasks", "project_url": "https://www.trajectories.sh/projects/233b0824-38a5-4565-9a0d-d04b39843ce4", "sources": ["baseten_task_index", "approved_task_index", "archive_readme"]}{"task_id": "t24-friction-pong", "domain": "design_and_motion", "trajectory_id": "57b610b7-4633-468e-9054-f34f91ec84f6", "url": "https://www.trajectories.sh/t/57b610b7-4633-468e-9054-f34f91ec84f6", "title": "Friction Pong — Kimi K3 — 20261012-091201 — post-run evaluator error", "model": null, "reward": null, "steps": null, "outcome": null, "project": "QT OSWorld2.0 Tasks", "project_url": "https://www.trajectories.sh/projects/233b0824-38a5-4565-9a0d-d04b39843ce4", "sources": ["baseten_task_index", "approved_task_index", "archive_readme"]}{"task_id": "t24-friction-pong", "domain": "design_and_motion", "trajectory_id": "732317ed-b6da-42e6-a30e-179a534d719d", "url": "https://www.trajectories.sh/t/732317ed-b6da-42e6-a30e-179a534d719d", "title": "t24 — Kimi K3", "model": null, "reward": null, "steps": null, "outcome": null, "project": "QT OSWorld2.0 Tasks", "project_url": "https://www.trajectories.sh/projects/233b0824-38a5-4565-9a0d-d04b39843ce4", "sources": ["baseten_task_index", "approved_task_index", "archive_readme"]}{"task_id": "t24-friction-pong", "domain": "design_and_motion", "trajectory_id": "276b690b-ee61-476a-ad68-b8cf1a95c2c4", "url": "https://www.trajectories.sh/t/276b690b-ee61-476a-ad68-b8cf1a95c2c4", "title": "T24 Pong — Grok 4.6 — GUI only — task_complete, reward 0.02 (675 steps)", "model": null, "reward": 0.02, "steps": null, "outcome": null, "project": "QT OSWorld2.0 Tasks", "project_url": "https://www.trajectories.sh/projects/233b0824-38a5-4565-9a0d-d04b39843ce4", "sources": ["baseten_task_index", "approved_task_index", "archive_readme"]}{"task_id": "t24-friction-pong", "domain": "design_and_motion", "trajectory_id": "6b2e6158-cb63-4351-9c3f-a5f987dda071", "url": "https://www.trajectories.sh/t/6b2e6158-cb63-4351-9c3f-a5f987dda071", "title": "T24 Pong — GPT-6 Sol — GUI only (regraded v1)", "model": null, "reward": null, "steps": null, "outcome": null, "project": "QT OSWorld2.0 Tasks", "project_url": "https://www.trajectories.sh/projects/233b0824-38a5-4565-9a0d-d04b39843ce4", "sources": ["baseten_task_index", "approved_task_index", "archive_readme"]}{"task_id": "t24-friction-pong", "domain": "design_and_motion", "trajectory_id": "5bc046eb-eea0-40d6-bcc1-c29311e67a00", "url": "https://www.trajectories.sh/t/5bc046eb-eea0-40d6-bcc1-c29311e67a00", "title": "T24 Pong — GPT-6 Astra — GUI only (regraded v1)", "model": null, "reward": null, "steps": null, "outcome": null, "project": "QT OSWorld2.0 Tasks", "project_url": "https://www.trajectories.sh/projects/233b0824-38a5-4565-9a0d-d04b39843ce4", "sources": ["baseten_task_index", "approved_task_index", "archive_readme"]}{"task_id": "t24-friction-pong", "domain": "design_and_motion", "trajectory_id": "edd48f9e-bda5-4438-8574-e2c42b4f7575", "url": "https://www.trajectories.sh/t/edd48f9e-bda5-4438-8574-e2c42b4f7575", "title": "T24 Pong — Claude Opus 5.5 — GUI only — task_complete, reward 0.4993 (285 steps)", "model": null, "reward": 0.4993, "steps": null, "outcome": null, "project": "QT OSWorld2.0 Tasks", "project_url": "https://www.trajectories.sh/projects/233b0824-38a5-4565-9a0d-d04b39843ce4", "sources": ["baseten_task_index", "approved_task_index", "archive_readme"]}{"task_id": "t24-friction-pong", "domain": "design_and_motion", "trajectory_id": "b4fa2709-b423-483f-985c-92b57fd1a67c", "url": "https://www.trajectories.sh/t/b4fa2709-b423-483f-985c-92b57fd1a67c", "title": "T24 Pong — GPT-6 Sol — GUI only — task_complete, reward 0.0 (215 steps)", "model": null, "reward": 0.0, "steps": null, "outcome": null, "project": "QT OSWorld2.0 Tasks", "project_url": "https://www.trajectories.sh/projects/233b0824-38a5-4565-9a0d-d04b39843ce4", "sources": ["baseten_task_index", "approved_task_index", "archive_readme"]}{"task_id": "t24-friction-pong", "domain": "design_and_motion", "trajectory_id": "a2fdd0b5-3a6f-468b-b45f-1caf78a38d28", "url": "https://www.trajectories.sh/t/a2fdd0b5-3a6f-468b-b45f-1caf78a38d28", "title": "Task11 - Recreate a Pong animation in high fidelity (Claude Fable5.1 - gui-only)", "model": null, "reward": null, "steps": null, "outcome": null, "project": "QT OSWorld2.0 Tasks", "project_url": "https://www.trajectories.sh/projects/233b0824-38a5-4565-9a0d-d04b39843ce4", "sources": ["baseten_task_index", "approved_task_index", "archive_readme"]}{"task_id": "t24-friction-pong", "domain": "design_and_motion", "trajectory_id": "fb23202f-0d9f-46bb-8eb7-64edc72f4473", "url": "https://www.trajectories.sh/t/fb23202f-0d9f-46bb-8eb7-64edc72f4473", "title": "Task11 - Recreate a Pong animation in high fidelity (Claude Fable5.1 - expressions enabled)", "model": null, "reward": null, "steps": null, "outcome": null, "project": "QT OSWorld2.0 Tasks", "project_url": "https://www.trajectories.sh/projects/233b0824-38a5-4565-9a0d-d04b39843ce4", "sources": ["baseten_task_index", "approved_task_index", "archive_readme"]}{"task_id": "t24-friction-pong", "domain": "design_and_motion", "trajectory_id": "46ee8dae-35ee-4397-a4c9-bdcb48c0fa7d", "url": "https://www.trajectories.sh/t/46ee8dae-35ee-4397-a4c9-bdcb48c0fa7d", "title": "Task11 - Recreate a Pong animation in high fidelity (Claude Opus5)", "model": null, "reward": null, "steps": null, "outcome": null, "project": "QT OSWorld2.0 Tasks", "project_url": "https://www.trajectories.sh/projects/233b0824-38a5-4565-9a0d-d04b39843ce4", "sources": ["baseten_task_index", "approved_task_index", "archive_readme"]}{"task_id": "t24-friction-pong", "domain": "design_and_motion", "trajectory_id": "fa85aca3-5f57-49f8-b7d7-d440c5f2839f", "url": "https://www.trajectories.sh/t/fa85aca3-5f57-49f8-b7d7-d440c5f2839f", "title": "t24 — thinkingmachines/Inkling", "model": null, "reward": null, "steps": null, "outcome": null, "project": "TMInkling StudioWorld Tasks", "project_url": "https://www.trajectories.sh/projects/1519c606-fafb-425b-a81d-152adfcb5351", "sources": ["baseten_task_index", "approved_task_index", "archive_readme"]}{"task_id": "t35-follow-text-instructions", "domain": "design_and_motion", "trajectory_id": "b4dc53cd-d396-416c-bc08-3bbd0b8be07f", "url": "https://www.trajectories.sh/t/b4dc53cd-d396-416c-bc08-3bbd0b8be07f", "title": "Task15 - Create graphic from technical instructions (GPT6 Astra)", "model": null, "reward": null, "steps": null, "outcome": null, "project": "QT OSWorld2.0 Tasks", "project_url": "https://www.trajectories.sh/projects/233b0824-38a5-4565-9a0d-d04b39843ce4", "sources": ["baseten_task_index", "approved_task_index", "archive_readme"]}{"task_id": "t39-rct-onetile", "domain": "gaming_openrct2", "trajectory_id": "5c44e311-1d63-4807-9f9f-529e9a0fd07f", "url": "https://www.trajectories.sh/t/5c44e311-1d63-4807-9f9f-529e9a0fd07f", "title": "t39-rct-onetile: one tile to 200 guests — Opus 5.5 computer-1 (Daytona)", "model": null, "reward": null, "steps": null, "outcome": null, "project": "QT OSWorld2.0 Tasks", "project_url": "https://www.trajectories.sh/projects/233b0824-38a5-4565-9a0d-d04b39843ce4", "sources": ["baseten_task_index", "approved_task_index", "archive_readme"]}{"task_id": "t39-rct-onetile", "domain": "gaming_openrct2", "trajectory_id": "06f8ccd6-95b0-45db-9d78-2ea01567b783", "url": "https://www.trajectories.sh/t/06f8ccd6-95b0-45db-9d78-2ea01567b783", "title": "t39-rct-onetile: one tile to 200 guests — Astra (gpt-6-astra) computer-1 (Daytona)", "model": null, "reward": null, "steps": null, "outcome": null, "project": "CoasterBench trials", "project_url": "https://www.trajectories.sh/projects/5e0aea30-379e-48be-bd4b-cdba55b0268f", "sources": ["baseten_task_index", "approved_task_index", "archive_readme"]}{"task_id": "t39-rct-onetile", "domain": "gaming_openrct2", "trajectory_id": "18a428c1-bcb5-4a36-ad04-fdf937ce8ff6", "url": "https://www.trajectories.sh/t/18a428c1-bcb5-4a36-ad04-fdf937ce8ff6", "title": "t39-rct-onetile: one tile to 200 guests — Opus 5.5 computer-1 (Daytona)", "model": null, "reward": null, "steps": null, "outcome": null, "project": "CoasterBench trials", "project_url": "https://www.trajectories.sh/projects/5e0aea30-379e-48be-bd4b-cdba55b0268f", "sources": ["baseten_task_index", "approved_task_index", "archive_readme"]}{"task_id": "t40-rct-onetile-1000", "domain": "gaming_openrct2", "trajectory_id": "e8c4abef-f0b1-4ef7-9f56-67876c1504c1", "url": "https://www.trajectories.sh/t/e8c4abef-f0b1-4ef7-9f56-67876c1504c1", "title": "t40-rct-onetile-1000: one tile to 1000 guests — Opus 5.5 computer-1 (Daytona)", "model": null, "reward": null, "steps": null, "outcome": null, "project": "QT OSWorld2.0 Tasks", "project_url": "https://www.trajectories.sh/projects/233b0824-38a5-4565-9a0d-d04b39843ce4", "sources": ["baseten_task_index", "approved_task_index", "archive_readme"]}{"task_id": "t45-bouncing-ball", "domain": "design_and_motion", "trajectory_id": "96d153ba-9da5-4624-b0ec-5f0529a860f5", "url": "https://www.trajectories.sh/t/96d153ba-9da5-4624-b0ec-5f0529a860f5", "title": "t45-bouncing-ball-watch — GPT-6 Sol — 20261004-232102-a2 — audited score", "model": null, "reward": null, "steps": null, "outcome": null, "project": "QT OSWorld2.0 Tasks", "project_url": "https://www.trajectories.sh/projects/233b0824-38a5-4565-9a0d-d04b39843ce4", "sources": ["baseten_task_index", "approved_task_index", "archive_readme", "delivery_index_json"]}{"task_id": "t47-text-bubble", "domain": "design_and_motion", "trajectory_id": "198d5d7a-df15-41bd-a804-13b337f583da", "url": "https://www.trajectories.sh/t/198d5d7a-df15-41bd-a804-13b337f583da", "title": "t47-text-bubble-watch — GPT-6 Sol — 20261004-224731 — audited score", "model": null, "reward": null, "steps": null, "outcome": null, "project": "QT OSWorld2.0 Tasks", "project_url": "https://www.trajectories.sh/projects/233b0824-38a5-4565-9a0d-d04b39843ce4", "sources": ["baseten_task_index", "approved_task_index", "archive_readme"]}{"task_id": "t48-subscribe-button", "domain": "design_and_motion", "trajectory_id": "febc9edf-48fd-418f-8f48-72005d0cd25a", "url": "https://www.trajectories.sh/t/febc9edf-48fd-418f-8f48-72005d0cd25a", "title": "t48-subscribe-button-watch — GPT-6 Sol — 20261004-224731 — audited score", "model": null, "reward": null, "steps": null, "outcome": null, "project": "QT OSWorld2.0 Tasks", "project_url": "https://www.trajectories.sh/projects/233b0824-38a5-4565-9a0d-d04b39843ce4", "sources": ["baseten_task_index", "approved_task_index", "archive_readme"]}{"task_id": "t18-friction-tutorial", "domain": "design_and_motion", "trajectory_id": "41c67054-4f3a-4016-bf2b-d27c53f6b093", "url": "https://www.trajectories.sh/t/41c67054-4f3a-4016-bf2b-d27c53f6b093", "title": "t18 — Kimi K3 (computer-1, revised verifier, Daytona; completed)", "model": null, "reward": null, "steps": null, "outcome": null, "project": "QT OSWorld2.0 Tasks", "project_url": "https://www.trajectories.sh/projects/233b0824-38a5-4565-9a0d-d04b39843ce4", "sources": ["approved_task_index", "archive_readme", "delivery_index_json"]}{"task_id": "t18-friction-tutorial", "domain": "design_and_motion", "trajectory_id": "310a5d97-893f-47c7-bfd0-f0b701adbfde", "url": "https://www.trajectories.sh/t/310a5d97-893f-47c7-bfd0-f0b701adbfde", "title": "Task03 - Recreate animation from YouTube tutorial Part 1 (Claude Fable5.1)", "model": null, "reward": null, "steps": null, "outcome": null, "project": "QT OSWorld2.0 Tasks", "project_url": "https://www.trajectories.sh/projects/233b0824-38a5-4565-9a0d-d04b39843ce4", "sources": ["approved_task_index", "archive_readme"]}{"task_id": "t18-friction-tutorial", "domain": "design_and_motion", "trajectory_id": "a16d6001-5d42-4347-af4f-52f4545bc76e", "url": "https://www.trajectories.sh/t/a16d6001-5d42-4347-af4f-52f4545bc76e", "title": "t18 — thinkingmachines/Inkling (tutorial repaired)", "model": null, "reward": null, "steps": null, "outcome": null, "project": "TMInkling StudioWorld Tasks", "project_url": "https://www.trajectories.sh/projects/1519c606-fafb-425b-a81d-152adfcb5351", "sources": ["approved_task_index", "archive_readme"]}{"task_id": "t18-friction-tutorial", "domain": "design_and_motion", "trajectory_id": "6215959b-9310-4c49-8f7e-a75c44629340", "url": "https://www.trajectories.sh/t/6215959b-9310-4c49-8f7e-a75c44629340", "title": "t18 — openai/muse-wonder-1.0", "model": null, "reward": null, "steps": null, "outcome": null, "project": "MuseWonder StudioWorld Tasks", "project_url": "https://www.trajectories.sh/projects/6a7aa71c-f0d2-4eca-bbec-7eff97ce05db", "sources": ["approved_task_index", "archive_readme"]}{"task_id": "t29-friction-three-dots", "domain": "design_and_motion", "trajectory_id": "9dbaa878-7b9c-435f-95a1-dc985521da5a", "url": "https://www.trajectories.sh/t/9dbaa878-7b9c-435f-95a1-dc985521da5a", "title": "t29 — Kimi K3 (computer-1, Daytona 32 GB; failure or timeout)", "model": null, "reward": null, "steps": null, "outcome": null, "project": "QT OSWorld2.0 Tasks", "project_url": "https://www.trajectories.sh/projects/233b0824-38a5-4565-9a0d-d04b39843ce4", "sources": ["approved_task_index", "archive_readme"]}{"task_id": "t29-friction-three-dots", "domain": "design_and_motion", "trajectory_id": "6c007399-d614-4257-a19b-b6bf912442bf", "url": "https://www.trajectories.sh/t/6c007399-d614-4257-a19b-b6bf912442bf", "title": "t29 — Kimi K3", "model": null, "reward": null, "steps": null, "outcome": null, "project": "QT OSWorld2.0 Tasks", "project_url": "https://www.trajectories.sh/projects/233b0824-38a5-4565-9a0d-d04b39843ce4", "sources": ["approved_task_index", "archive_readme"]}{"task_id": "t29-friction-three-dots", "domain": "design_and_motion", "trajectory_id": "ff59a2ac-e2e5-4aee-879f-49b1e220d69f", "url": "https://www.trajectories.sh/t/ff59a2ac-e2e5-4aee-879f-49b1e220d69f", "title": "Task13 - Recreate loading animations for video format (GPT6 Astra)", "model": null, "reward": null, "steps": null, "outcome": null, "project": "QT OSWorld2.0 Tasks", "project_url": "https://www.trajectories.sh/projects/233b0824-38a5-4565-9a0d-d04b39843ce4", "sources": ["approved_task_index", "archive_readme"]}{"task_id": "t29-friction-three-dots", "domain": "design_and_motion", "trajectory_id": "442f7b03-656c-40a9-aad8-4091fe8d5bf9", "url": "https://www.trajectories.sh/t/442f7b03-656c-40a9-aad8-4091fe8d5bf9", "title": "t29 — thinkingmachines/Inkling", "model": null, "reward": null, "steps": null, "outcome": null, "project": "TMInkling StudioWorld Tasks", "project_url": "https://www.trajectories.sh/projects/1519c606-fafb-425b-a81d-152adfcb5351", "sources": ["approved_task_index", "archive_readme"]}{"task_id": "t37-rct-micropark", "domain": "gaming_openrct2", "trajectory_id": "80fff323-8074-4e95-879f-807ff62f9a9f", "url": "https://www.trajectories.sh/t/80fff323-8074-4e95-879f-807ff62f9a9f", "title": "t37-rct-micropark · computer-1 · opus-5.5 · daytona · session rubric, reward 1.0 (attempt 2 of 3; two >50MB audit logs carried gzipped instead)", "model": null, "reward": 1.0, "steps": null, "outcome": null, "project": "QT OSWorld2.0 Tasks", "project_url": "https://www.trajectories.sh/projects/233b0824-38a5-4565-9a0d-d04b39843ce4", "sources": ["approved_task_index", "archive_readme"]}{"task_id": "t37-rct-micropark", "domain": "gaming_openrct2", "trajectory_id": "ed4db882-6f6f-495f-ad82-2a680bb2129e", "url": "https://www.trajectories.sh/t/ed4db882-6f6f-495f-ad82-2a680bb2129e", "title": "t37 micropark · computer-1 · gpt-5.6-sol (ZDR) · refresh-rct-micropark-20260922-v2 · reward 0.7386", "model": null, "reward": 0.7386, "steps": null, "outcome": null, "project": "QT OSWorld2.0 Tasks", "project_url": "https://www.trajectories.sh/projects/233b0824-38a5-4565-9a0d-d04b39843ce4", "sources": ["approved_task_index", "archive_readme"]}{"task_id": "t37-rct-micropark", "domain": "gaming_openrct2", "trajectory_id": "cbb1738d-c10f-4bc2-9487-edbde3f3e970", "url": "https://www.trajectories.sh/t/cbb1738d-c10f-4bc2-9487-edbde3f3e970", "title": "T37 Micro Park, notes revision (snapshot v4) — Opus 5, reward 1.0, best try 3 of 3; the 1.0 is the degenerate park-value farm (6 Roto-Drops, no footpaths, 0 guests, park closed, $114,300 at month 8), not park management. Audit files over 49 MB (3x game.jsonl ~109 MB, 3x engine.log ~87 MB) omitted from this upload", "model": null, "reward": 1.0, "steps": null, "outcome": null, "project": "CoasterBench trials", "project_url": "https://www.trajectories.sh/projects/5e0aea30-379e-48be-bd4b-cdba55b0268f", "sources": ["approved_task_index", "archive_readme"]}{"task_id": "t37-rct-micropark", "domain": "gaming_openrct2", "trajectory_id": "162f6cf2-fb36-4def-97a3-5a6fb5bb6f7b", "url": "https://www.trajectories.sh/t/162f6cf2-fb36-4def-97a3-5a6fb5bb6f7b", "title": "T37 Micro Park, notes revision (snapshot v4) — Gemini 3.8 Flash, reward 0.237233, best try 2 of 3 tries played; wrote 5,492 bytes of notes, peak park value only $406", "model": null, "reward": 0.237233, "steps": null, "outcome": null, "project": "CoasterBench trials", "project_url": "https://www.trajectories.sh/projects/5e0aea30-379e-48be-bd4b-cdba55b0268f", "sources": ["approved_task_index", "archive_readme"]}{"task_id": "t37-rct-micropark", "domain": "gaming_openrct2", "trajectory_id": "9aea867e-1624-471f-bbd3-5d7bbb2a3ab5", "url": "https://www.trajectories.sh/t/9aea867e-1624-471f-bbd3-5d7bbb2a3ab5", "title": "T37 Micro Park, notes revision (snapshot v4) — GPT-5.6 Sol, reward 0.462882, best try 1, 2 of 3 tries played; notepad required by the instructions but this run never wrote a note (file unchanged from the 436-byte seed)", "model": null, "reward": 0.462882, "steps": null, "outcome": null, "project": "CoasterBench trials", "project_url": "https://www.trajectories.sh/projects/5e0aea30-379e-48be-bd4b-cdba55b0268f", "sources": ["approved_task_index", "archive_readme"]}{"task_id": "t37-rct-micropark", "domain": "gaming_openrct2", "trajectory_id": "93004a75-eb4d-43e9-98fb-52aaf1a1287b", "url": "https://www.trajectories.sh/t/93004a75-eb4d-43e9-98fb-52aaf1a1287b", "title": "OpenRCT2 Micro Park $100k/2yr · computer-1 · Opus 5 · 3-try session, 2 played (best try 1, try 2 peak $69,104, reward 0.5580; oversized audit logs omitted)", "model": null, "reward": 0.558, "steps": null, "outcome": null, "project": "CoasterBench trials", "project_url": "https://www.trajectories.sh/projects/5e0aea30-379e-48be-bd4b-cdba55b0268f", "sources": ["approved_task_index", "archive_readme"]}{"task_id": "t37-rct-micropark", "domain": "gaming_openrct2", "trajectory_id": "7a24fc8a-1430-4807-b6a9-f093253eb02d", "url": "https://www.trajectories.sh/t/7a24fc8a-1430-4807-b6a9-f093253eb02d", "title": "OpenRCT2 Micro Park $100k/2yr · computer-1 · GPT-5.6 Sol · 3 tries in one session (best try 1, peak $36,904, reward 0.5180; oversized audit logs omitted)", "model": null, "reward": 0.518, "steps": null, "outcome": null, "project": "CoasterBench trials", "project_url": "https://www.trajectories.sh/projects/5e0aea30-379e-48be-bd4b-cdba55b0268f", "sources": ["approved_task_index", "archive_readme"]}{"task_id": "t37-rct-micropark", "domain": "gaming_openrct2", "trajectory_id": "c1a4df98-bab2-4dca-9cd3-ceed6dc69dd0", "url": "https://www.trajectories.sh/t/c1a4df98-bab2-4dca-9cd3-ceed6dc69dd0", "title": "OpenRCT2 Micro Park $100k/2yr · computer-1 · Gemini 3.8 Flash · 3-try session (ended early: empty model turn on try 1, reward 0.1179)", "model": null, "reward": 0.1179, "steps": null, "outcome": null, "project": "CoasterBench trials", "project_url": "https://www.trajectories.sh/projects/5e0aea30-379e-48be-bd4b-cdba55b0268f", "sources": ["approved_task_index", "archive_readme"]}{"task_id": "t37-rct-micropark", "domain": "gaming_openrct2", "trajectory_id": "a02f2368-dd58-496c-9471-81455ae7e57d", "url": "https://www.trajectories.sh/t/a02f2368-dd58-496c-9471-81455ae7e57d", "title": "t37 micropark · computer-1 · claude-opus-5 (Bedrock) · refresh-rct-micropark-20260922-v2 · died turn 235 on Bedrock 400 'Input is too long'; graded post hoc on its final autosave = 0.6891", "model": null, "reward": null, "steps": null, "outcome": null, "project": "CoasterBench trials", "project_url": "https://www.trajectories.sh/projects/5e0aea30-379e-48be-bd4b-cdba55b0268f", "sources": ["approved_task_index", "archive_readme"]}{"task_id": "t37-rct-micropark", "domain": "gaming_openrct2", "trajectory_id": "31856977-d649-489d-95b4-778c8cce6da6", "url": "https://www.trajectories.sh/t/31856977-d649-489d-95b4-778c8cce6da6", "title": "t37 micropark · computer-1 · gemini-3.8-flash · refresh-rct-micropark-20260922-v2 · reward 0.4618", "model": null, "reward": 0.4618, "steps": null, "outcome": null, "project": "CoasterBench trials", "project_url": "https://www.trajectories.sh/projects/5e0aea30-379e-48be-bd4b-cdba55b0268f", "sources": ["approved_task_index", "archive_readme"]}{"task_id": "EC-L1-108-superbowl-gui-v1", "domain": "video", "trajectory_id": "52dccd96-f1b0-418f-af86-250854ebbbb2", "url": "https://www.trajectories.sh/t/52dccd96-f1b0-418f-af86-250854ebbbb2", "title": "Trajectories.sh results", "model": null, "reward": 0.135, "steps": null, "outcome": null, "project": null, "project_url": null, "sources": ["archive_readme"]}{"task_id": "EC-L1-108-superbowl-gui-v1", "domain": "video", "trajectory_id": "1b7448e3-7c76-4c71-9194-e7158f407ae9", "url": "https://www.trajectories.sh/t/1b7448e3-7c76-4c71-9194-e7158f407ae9", "title": "Trajectories.sh first attempt", "model": null, "reward": 0.135, "steps": null, "outcome": null, "project": null, "project_url": null, "sources": ["archive_readme"]}{"task_id": "EC-L1-109-basketball-tracking-gui-v1", "domain": "video", "trajectory_id": "32e1c59f-38e6-478d-b9b8-79e1dadc7a63", "url": "https://www.trajectories.sh/t/32e1c59f-38e6-478d-b9b8-79e1dadc7a63", "title": "Trajectories.sh results", "model": null, "reward": 0.4, "steps": null, "outcome": null, "project": null, "project_url": null, "sources": ["archive_readme"]}{"task_id": "FC-L1-masking-three-panels-gui", "domain": "video", "trajectory_id": "6406e150-b36d-4840-aef7-549736e60b58", "url": "https://www.trajectories.sh/t/6406e150-b36d-4840-aef7-549736e60b58", "title": "FC-L1-masking-three-panels-gui (delivery-verified reference run)", "model": null, "reward": null, "steps": null, "outcome": null, "project": null, "project_url": null, "sources": ["delivery_index_json"]}README.mdAdded+186
docker_images_manifest.jsonAdded+291
tasks.jsonlAdded+20
tasks/t37-rct-micropark/README.mdAdded+100
tasks/t37-rct-micropark/RUBRIC.mdAdded+55
tasks/t37-rct-micropark/compose.yamlAdded+38
tasks/t37-rct-micropark/environment/DockerfileAdded+93
tasks/t37-rct-micropark/environment/await-assets.shAdded+19
tasks/t37-rct-micropark/environment/collect.pyAdded+110
tasks/t37-rct-micropark/environment/controller.jsAdded+148
tasks/t37-rct-micropark/environment/entrypoint.shAdded+83
tasks/t37-rct-micropark/environment/game-process.pyAdded+43
tasks/t37-rct-micropark/environment/micropark-seed.parkAdded
tasks/t37-rct-micropark/environment/notepad-keeper.shAdded+64
tasks/t37-rct-micropark/environment/notes-seed.txtAdded+14
tasks/t37-rct-micropark/environment/openbox-menu.xmlAdded+11
tasks/t37-rct-micropark/environment/openbox-rc.xmlAdded+27
tasks/t37-rct-micropark/environment/restrict-console.pyAdded+51
tasks/t37-rct-micropark/environment/terminal-blocked.shAdded+7
tasks/t37-rct-micropark/environment/try-supervisor.pyAdded+196
tasks/t37-rct-micropark/instruction.mdAdded+6
tasks/t37-rct-micropark/task.tomlAdded+22
tasks/t37-rct-micropark/tests/grade.pyAdded+211
tasks/t37-rct-micropark/tests/native-inspect.jsAdded+11
tasks/t37-rct-micropark/tests/reopen.pyAdded+63
tasks/t37-rct-micropark/tests/test.shAdded+40
tasks/t37-rct-micropark/tests/test_micropark.pyAdded+208
tasks/t37-rct-micropark/tests/test_pruning.pyAdded+193
tasks/t37-rct-micropark/tests/test_retries.pyAdded+180
tasks/t37-rct-micropark/tests/test_session.pyAdded+117
tasks/t37-rct-micropark/tests/test_stateless_openai.pyAdded+55
tasks/t37-rct-micropark/tests/test_supervisor.pyAdded+221
tasks/t40-rct-onetile-1000/README.mdAdded+77
tasks/t40-rct-onetile-1000/RUBRIC.mdAdded+21
tasks/t40-rct-onetile-1000/compose.yamlAdded+45
tasks/t40-rct-onetile-1000/environment/DockerfileAdded+90
tasks/t40-rct-onetile-1000/environment/collect.pyAdded+90
tasks/t40-rct-onetile-1000/environment/game-process.pyAdded+48
tasks/t40-rct-onetile-1000/environment/openbox-menu.xmlAdded+8
tasks/t40-rct-onetile-1000/environment/run-supervisor.pyAdded+283
tasks/t40-rct-onetile-1000/instruction.mdAdded+50
tasks/t40-rct-onetile-1000/task.tomlAdded+35
tasks/t40-rct-onetile-1000/tests/config-selftest.jsAdded+22
tasks/t40-rct-onetile-1000/tests/grade.pyAdded+284
tasks/t40-rct-onetile-1000/tests/native-inspect.jsAdded+34
tasks/t40-rct-onetile-1000/tests/reopen.pyAdded+63
tasks/t40-rct-onetile-1000/tests/target-guests.txtAdded+1
tasks/t40-rct-onetile-1000/tests/test.shAdded+41
tasks/t40-rct-onetile-1000/tests/test_onetile.pyAdded+377
trajectories.jsonlAdded+71