Skip to content

The first exam for code agents in the physical world: frozen robot tasks from many benchmark suites, each answered with a program and verified in a separate sandbox. Runs on Harbor.

Runner: Codex's provider-side tools (apps, plugins, image generation) off with the web search (+1 more) (#147, #148)

Pingyue Zhangb64c5626afcb
diff --git a/ci_checks/check-unit-tests.sh b/ci_checks/check-unit-tests.sh
index df2302d128..18ae821b74 100755
--- a/ci_checks/check-unit-tests.sh
+++ b/ci_checks/check-unit-tests.sh
@@ -22,7 +22,8 @@ run() { # run <timeout s> <test path under scripts/> [arguments of the test]
}
for t in robolab/tests/test_grade_standard.py labutopia/tests/test_grade_standard.py labutopia/tests/test_finalize.py \
myosuite/tests/test_standard_grade.py mujoco-playground/tests/test_grade_privileged.py \
- robocasa/tests/test_graders.py usage_gateway/tests/test_rawlog.py usage_gateway/tests/test_paths.py; do
+ robocasa/tests/test_graders.py usage_gateway/tests/test_rawlog.py usage_gateway/tests/test_paths.py \
+ tests/test_codex_tools_off.py; do
run 300 "$t"
done
# standard library too, but slow (RoboLab's collect hook under its real time limits: two to four minutes): with --all
diff --git a/docs/LEAKAGE.md b/docs/LEAKAGE.md
index 91b1a57ce9..288888c628 100644
--- a/docs/LEAKAGE.md
+++ b/docs/LEAKAGE.md
@@ -20,7 +20,7 @@ a reward function, a success predicate, a trained policy, a demonstration set.
| `.git` | `git show` reconstructs every file ever committed | delete it in that same `RUN` |
| The network | upstream is public and pinned, one `curl` away | `[agent] network_mode = "allowlist"` of the model-API hosts (`scripts/set_agent_egress.py`) in **every task** since 2026-10-10 (PROTOCOL §2.11, [CI]). Until then six benchmarks were open, and trials fetched upstream task sources with their reference solution, a recorded demonstration and robot models from their own shell (board 0072); a pointer inside the image (a `source_url`) is what led one of them there |
| Instance metadata and upstream docs | a frozen instance that records where it came from (a `source_url`, a demonstration file, the expert's module) hands the agent the address of its solution: RoboTangle's `reference_scene.json` named the upstream demonstration, YAMLab's `instance.json` the recording its oracle replays, RoboLab's image shipped a recorded successful episode of one task; upstream READMEs name the public demonstration datasets and checkpoints | keep provenance in `scripts/<bench>/` and the README, never in a file under `environment/` the agent reads ([CI] `check-agent-pointers.py`); grep a new image for `https?://`, `*.hdf5` and recorded episodes before publishing it; the allowlist covers what an upstream checkout's documentation still names |
-| The model API | tools that run at the provider, reached through an allowed model-API host: Codex's `web_search` and Claude Code's `WebSearch`; under a ChatGPT login also the account's connectors and apps (238 tools on 2026-10-10: web open and search, GitHub, mail, drives), image generation and plugins | **closed**: `scripts/run_agent_batch.sh` passes Codex `--ak web_search=disabled` and Claude Code `--ak disallowed_tools=WebSearch,WebFetch` unless `WEB_SEARCH=allowed` (since 2026-10-02; before that it was open unless a run's own agent config turned it off, audit below); the runner starts the harness without connectors, apps, plugins and image generation (2026-10-10, after 21 trials had called connectors); and with the usage gateway on, the gateway is the container's only egress and forwards model-API calls only (PROTOCOL §2.11) |
+| The model API | tools that run at the provider, reached through an allowed model-API host: Codex's `web_search` and Claude Code's `WebSearch`; under a ChatGPT login also the account's connectors and apps (238 tools on 2026-10-10: web open and search, GitHub, mail, drives), image generation and plugins | **closed**: `scripts/run_agent_batch.sh` passes Codex `--ak web_search=disabled` and Claude Code `--ak disallowed_tools=WebSearch,WebFetch` unless `WEB_SEARCH=allowed` (since 2026-10-02; before that it was open unless a run's own agent config turned it off, audit below); the runner starts Codex without connectors, apps, plugins and image generation (the same switch: those features set to false in the run's `config.toml` by `scripts/codex_tools_off.py`; 2026-10-10, after 21 trials had called connectors: Codex 0.160 calls them from its `exec` tool as `tools.mcp__codex_apps__*`, so grep the transcript for that name); and with the usage gateway on, the gateway is the container's only egress and forwards model-API calls only (PROTOCOL §2.11) |
| The model-API key | Harbor's native agents put it in the agent's container. Codex: `OPENAI_API_KEY` in its environment and in `/tmp/codex-secrets/auth.json` (linked from `$CODEX_HOME/auth.json`), removed only after the run; Claude Code: `ANTHROPIC_API_KEY` (or its OAuth token) in its environment. With the model API allowed, the agent can spend it on any model, a search-enabled one included, which undoes the row above | **narrowed 2026-10-10**: with the usage gateway on, the container reaches its provider only through the gateway's model-API paths (no connector, file or conversation endpoint, whatever the agent runs with the key or the login), and a model request is forwarded only if every tool it declares is one the agent runs itself (a web search, image generation or remote MCP tool, or an unreadable body, is refused). Still open: the key can be spent on another model of the same provider (a gateway that holds the key is ruled out by D11): one key per batch with a spending cap (`docs/RUNNING.md`), and read the transcript for direct API calls |
| The model's memory | the benchmark's source is public, so it is in pretraining data: Opus 5.5 recalled H1's 19 actuator ranges exactly and the sit reward's seat-height band, with no tool | nothing in the harness removes it; report it with the result |
| Package metadata | `*.egg-info/SOURCES.txt` lists files you deleted | generate metadata after the removal |
diff --git a/docs/PROTOCOL.md b/docs/PROTOCOL.md
index f41a16eadd..bcdb6d4381 100644
--- a/docs/PROTOCOL.md
+++ b/docs/PROTOCOL.md
@@ -60,7 +60,7 @@ Unchanged: the task name prefix `robot-coding-bench/`, the client and tool file
| D8 | Agent time budget | 3600 s by default, at most 14400 s; longer budgets are justified, uniform within a benchmark, and results are grouped by budget. Documented per-benchmark exceptions to the cap (§2.3): RoboTangle 21600 s (owner, 2026-10-08). |
| D9 | Shared code | Shared sources are copied into tasks by the generator; nothing at run time imports repository code outside the task directory. |
| D10 | Token budget | Per trial: **100M input tokens, 10M output tokens** by default; exceeding either fails the trial. |
-| D11 | Harness | Official results use Harbor's native agents only; no agent adapters, and no gateway that holds credentials or changes requests. The usage gateway (`scripts/usage_gateway/`) is allowed: it forwards model-API requests unchanged, records token usage, and refuses what a trial may not have: a request past the token budget (§5) and, since 2026-10-10, every request that is not a model-API call (§2.11). No tool that runs outside the trial's container is offered to the model (§2.11): official runs turn the harness's web search off (Codex `web_search = "disabled"`, Claude Code `WebSearch` and `WebFetch` disallowed; `scripts/run_agent_batch.sh` `WEB_SEARCH=disabled`, the default) and start the harness without account connectors, apps, plugins, image generation and cloud agents. These run at the model provider, so no egress allowlist stops them (2026-10-02: Codex with a ChatGPT login searched GitHub by default; 2026-10-10: the same login handed the model 238 account connector tools, and 21 trials called them) |
+| D11 | Harness | Official results use Harbor's native agents only; no agent adapters, and no gateway that holds credentials or changes requests. The usage gateway (`scripts/usage_gateway/`) is allowed: it forwards model-API requests unchanged, records token usage, and refuses what a trial may not have: a request past the token budget (§5) and, since 2026-10-10, every request that is not a model-API call (§2.11). No tool that runs outside the trial's container is offered to the model (§2.11): official runs turn the harness's web search off (Codex `web_search = "disabled"`, Claude Code `WebSearch` and `WebFetch` disallowed; `scripts/run_agent_batch.sh` `WEB_SEARCH=disabled`, the default) and start the harness without account connectors, apps, plugins, image generation and cloud agents (Codex: with the same switch the runner sets those features to false in the run's `config.toml`, `scripts/codex_tools_off.py`). These run at the model provider, so no egress allowlist stops them (2026-10-02: Codex with a ChatGPT login searched GitHub by default; 2026-10-10: the same login handed the model 238 account connector tools, and 21 trials called them) |
| D12 | Mode naming | `mode ∈ {privileged, standard, standard-realtime}` (the third mode since v1.1, #86; named `standard-realtime` since v1.1.1, owner 2026-10-08, #97: it is standard mode's robot as a service on a clock that does not stop); the `tier` field is removed; every task directory ends in its mode: `-privileged`, `-standard` or `-standard-realtime`. |
## 1. Checklist (every task)
diff --git a/docs/RUNNING.md b/docs/RUNNING.md
index d0b6cf5f64..e8e5027ea9 100644
--- a/docs/RUNNING.md
+++ b/docs/RUNNING.md
@@ -87,7 +87,13 @@ under `embodied-agent-interface-v2-internal`; a host with an old tag can `docker
account's connectors, apps, plugins and an image generator unless its config turns them off (`features.apps = false`,
`features.plugins = false`, `features.image_generation = false`, `apps._default.enabled = false`, before any table of
the config); Claude Code under a full claude.ai login loads the account's connectors (`disableClaudeAiConnectors`). An
-official run starts the harness without them. An API key can still request a search directly; the usage gateway
+official run starts the harness without them. For Codex the runner does it with the same switch: it passes
+`--ak config=` a copy of `AGENT_CONFIG` (or a config of its own when there is none) in which
+`scripts/codex_tools_off.py` has set those features to false (`$JOBS/.agent-config/`), and refuses an `AGENT_CONFIG`
+that turns one of them on, and an `AK` that carries its own `config=` (Harbor would keep the last one). A config that
+already sets them to false, as a scheduler's own may, is accepted. For a bare `harbor run`:
+`--ak config=<the output of scripts/codex_tools_off.py [your config.toml]>`. Claude Code's settings stay the
+caller's (`AGENT_CONFIG`). An API key can still request a search directly; the usage gateway
refuses such a request and every path that is not a model call (below, docs/LEAKAGE.md).
## Usage gateway (token usage per request, optional)
diff --git a/docs/benchmarks/humanoidbench.md b/docs/benchmarks/humanoidbench.md
index 6d55248c7a..3c87460050 100644
--- a/docs/benchmarks/humanoidbench.md
+++ b/docs/benchmarks/humanoidbench.md
@@ -172,9 +172,10 @@ Results on image 0.1.6 or earlier are other physics and are reported apart; none
numbers. The instances were drawn on MuJoCo 3.1.6 and load identically on 0.2.0, room's redrawn with its fix
(`scripts/humanoidbench/README.md`). Known and not fixed: masses where upstream set no density (room's packages 24 and 40 kg) or chose one (the door, 160 kg at
`density="600"`), the ±0.01 start noise on every `qpos` (feet start up to 18 mm in the floor), `sit_simple`'s chair box
-overlapping the heels by 19 mm (its mesh feet touch that box; it is a fixture), and `hurdle`'s hurdles, which upstream draws
-without collision geometry and its reward never reads (the robot runs through them; the task text says so since
-2026-10-08).
+overlapping the heels by 19 mm (its mesh feet touch that box; it is a fixture), and `hurdle`'s hurdles, which its reward
+never reads: each is one collision box 37.5 cm high across the track (`generated_xml_hurdles.xml`; the bars drawn on it,
+about 40 cm tall, have no collision geometry of their own), so the robot has to get over it. The task text said so until 2026-10-08, said the
+hurdles had no collision geometry from then (it had looked only at the drawn bars), and says so again since 2026-10-11.
## Answer-key leakage
diff --git a/scripts/codex_tools_off.py b/scripts/codex_tools_off.py
new file mode 100644
index 0000000000..5d4a27899a
--- /dev/null
+++ b/scripts/codex_tools_off.py
@@ -0,0 +1,90 @@
+#!/usr/bin/env python3
+"""A Codex config.toml that offers the model no tool run at the provider (PROTOCOL D11, §2.11).
+
+ scripts/codex_tools_off.py [<config.toml>] > <the config a run passes as --ak config=>
+
+Under a ChatGPT login Codex hands the model the account's connectors and apps (`mcp__codex_apps__*`: web open and
+search, GitHub, mail, drives), an image generator and plugin installs. They run at OpenAI and are reached through
+chatgpt.com, the model's own host: past `web_search = "disabled"`, the egress allowlist and the usage gateway.
+`scripts/run_agent_batch.sh` therefore starts every Codex run (`WEB_SEARCH=disabled`, the default) from a config with
+the keys of OFF set to false: this script's output, the caller's config (`AGENT_CONFIG`) with those keys added.
+Measured on Codex 0.160.1 (2026-10-10): with these keys a ChatGPT login and an API key list the same 8 local tools;
+`features.apps = false` alone leaves the image generator.
+
+A config that sets one of the keys itself may set it to false only (that line is replaced by this script's own);
+anything else is refused (exit 2), never overridden silently. The keys are written where TOML lets them stand: inside
+the config's own `[features]` / `[apps]` / `[apps._default]` table if it has one, else as dotted keys before its
+first table. Standard library only; with Python 3.11+ the result is parsed back and checked."""
+import re
+import sys
+
+try:
+ import tomllib
+except ModuleNotFoundError: # older runner hosts go without the parse-back
+ tomllib = None
+
+OFF = ["features.apps", "features.plugins", "features.remote_plugin", "features.tool_suggest",
+ "features.image_generation", "features.skill_mcp_dependency_install", "apps._default.enabled"]
+HEADER = re.compile(r"^\s*\[\s*([^\[\]]+?)\s*\]\s*(#.*)?$")
+ARRAY = re.compile(r"^\s*\[\[")
+ASSIGN = re.compile(r"^\s*([A-Za-z0-9_.\"' -]+?)\s*=\s*(.*?)\s*$")
+
+
+def path(text):
+ return ".".join(p.strip().strip("\"'") for p in text.split("."))
+
+
+def tools_off(text):
+ """`text` (a config.toml, possibly empty) with every key of OFF = false; ValueError if it sets one otherwise."""
+ lines, table, headers = [], "", {}
+ for line in text.splitlines():
+ header, assign = HEADER.match(line), ASSIGN.match(line) # no walrus: runner hosts may have an old python3
+ if ARRAY.match(line):
+ table = "[[]]" # an array of tables: none of the keys lives in one
+ elif header:
+ table = path(header.group(1))
+ headers[table] = len(lines)
+ elif assign and table != "[[]]":
+ key = path(f"{table}.{assign.group(1)}" if table else assign.group(1))
+ value = assign.group(2).split("#")[0].strip()
+ if key in OFF:
+ if value != "false":
+ raise ValueError(f"the config sets {key} = {value}; an official run sets it to false")
+ continue # written below, once
+ if any(k.startswith(key + ".") for k in OFF): # an inline table: features = { ... }
+ raise ValueError(f"the config writes {key} as an inline table; write its keys one per line")
+ lines.append(line)
+ top = []
+ inside = {} # line index of a table header -> the keys to write under it
+ for key in OFF:
+ parts = key.split(".")
+ for n in range(len(parts) - 1, 0, -1): # the config's deepest table this key belongs to
+ if ".".join(parts[:n]) in headers:
+ inside.setdefault(headers[".".join(parts[:n])], []).append(".".join(parts[n:]) + " = false")
+ break
+ else:
+ top.append(f"{key} = false")
+ out = ["# scripts/codex_tools_off.py: no tool that runs at the model provider (PROTOCOL D11)", *top]
+ for i, line in enumerate(lines):
+ out.append(line)
+ out.extend(inside.get(i, []))
+ result = "\n".join(out) + "\n"
+ if tomllib is not None:
+ parsed = tomllib.loads(result) # raises on a layout the rules above did not foresee
+ for key in OFF:
+ node = parsed
+ for part in key.split("."):
+ node = node.get(part) if isinstance(node, dict) else None
+ if node is not False:
+ raise ValueError(f"{key} is not false in the result")
+ return result
+
+
+if __name__ == "__main__":
+ if len(sys.argv) > 2 or (len(sys.argv) == 2 and sys.argv[1].startswith("-")):
+ sys.exit(__doc__)
+ try:
+ sys.stdout.write(tools_off(open(sys.argv[1]).read() if len(sys.argv) == 2 else ""))
+ except (OSError, UnicodeError, ValueError) as exc:
+ print(f"codex_tools_off.py: {sys.argv[1] if len(sys.argv) == 2 else '(no config)'}: {exc}", file=sys.stderr)
+ sys.exit(2)
diff --git a/scripts/humanoidbench/subset.toml b/scripts/humanoidbench/subset.toml
index 6f8159362c..9b4a1d3e22 100644
--- a/scripts/humanoidbench/subset.toml
+++ b/scripts/humanoidbench/subset.toml
@@ -189,9 +189,9 @@ actuator force, multiplied together — but the speed target is a sprint rather
of 5 m/s. On top of that,
touching any barrier's collision geometry multiplies that entire step down to a small fraction of its
value: contact is a gate to be respected, not a penalty to be traded off. Only the walls that line the
-track on both sides and behind the start count as barriers here; the hurdles carry no such penalty, and
-in upstream's model they have no collision geometry at all (drawn, not solid): the robot runs through
-them.'''
+track on both sides and behind the start count as barriers here; the hurdles carry no such penalty. They
+are solid all the same: each hurdle is one collision box 37.5 cm high across the whole track (the bars
+drawn on it have no collision geometry of their own), so the robot has to get over it.'''
ends_note = "The episode ends early if the pelvis drops near the ground."
obs_layout = "qpos(26) + qvel(25), robot state only"
task_notes = ""
@@ -201,12 +201,16 @@ difficulty = '''- **A multiplicative gate, not a penalty.** Contact with the sid
respected exactly.
- **Running, not walking.** The speed term is scaled to 5 m/s, so a comfortable walking gait leaves most
of the per-step reward on the table even when nothing is hit.
-- **The hurdles are scenery.** Upstream draws them without collision geometry and its reward never
- looks at them, so nothing has to be jumped: the task is a sprint down the walled track.'''
+- **Sprinting over solid hurdles.** The reward never looks at the hurdles, but each one is a solid box
+ 37.5 cm high across the track: the robot has to clear it at speed or it trips.'''
change_log = ["""2026-10-08: the task text no longer says the hurdles are solid and have to be cleared: upstream's
model draws them without collision geometry and its reward never looks at them. The scene, instance, pass rule and
verifier are unchanged, so the task keeps its name; runs recorded before this change were told otherwise and are
-reported separately."""]
+reported separately.""", """2026-10-11: the task text says the hurdles are solid again, and what is solid: upstream's
+model (assets/locomotion/generated_xml_hurdles.xml) puts at every hurdle a collision box 37.5 cm high and 6 cm thick
+across the track, under drawn bars that have no collision geometry; the 2026-10-08 entry looked only at the drawn
+bars. The scene, instance, pass rule and verifier are unchanged, so the task keeps its name; runs recorded from
+2026-10-08 until this change were told the hurdles have no collision geometry and are reported separately."""]
[task.standard]
ends = "when the robot falls (its pelvis drops near the ground)"
diff --git a/scripts/run_agent_batch.sh b/scripts/run_agent_batch.sh
index ae19342dc4..11b7533bee 100755
--- a/scripts/run_agent_batch.sh
+++ b/scripts/run_agent_batch.sh
@@ -9,7 +9,9 @@
# AK more agent options, e.g. "--ak reasoning_summary=detailed"
# WEB_SEARCH disabled (default) = the harness offers the model no web search: Codex --ak web_search=disabled,
# Claude Code --ak disallowed_tools=WebSearch,WebFetch (PROTOCOL D11; the search runs at the model
-# provider, past any egress allowlist); "allowed" = leave the harness default (not for official runs)
+# provider, past any egress allowlist), and Codex none of the other tools that run there (a ChatGPT
+# login's connectors and apps, plugins, image generation: those features = false in a copy of
+# AGENT_CONFIG, scripts/codex_tools_off.py); "allowed" = leave the harness default (not for official runs)
# AGENT_CONFIG a native config file, --ak config=<file>: Codex's config.toml (an Azure provider; retries with
# request_max_retries / stream_max_retries) or Claude Code's settings
# ENV_FILE a .env file Harbor loads (--env-file); without it the credentials come from this environment
@@ -96,6 +98,19 @@ fi
[[ "$RUN_ID" =~ ^[a-z0-9_]+-[a-z0-9_]+-(none|minimal|low|medium|high|xhigh|max|default)$ ]] || { echo "run id $RUN_ID is not <harness>-<model>-<effort>" >&2; exit 2; }
AGENT_ARGS=(-a "$AGENT" -m "$MODEL")
[ "$EFFORT" != default ] && AGENT_ARGS+=(--ak "reasoning_effort=$EFFORT")
+# Codex's other provider-side tools go off with the web search (PROTOCOL D11). Under a ChatGPT login Codex hands the
+# model the account's connectors and apps (mcp__codex_apps__*: GitHub fetch, a web search of their own, mail, drives),
+# plugin installs and an image generator; they run at OpenAI, reached through chatgpt.com, so neither
+# web_search=disabled nor an egress allowlist stops them. The run's config is a copy of AGENT_CONFIG (or an empty one)
+# with those features = false; a config that turns one of them on is refused, never overridden silently.
+# Harbor keeps the last --ak of a key: a config=... in AK would replace the one written here (and the gateway's copy)
+case " $AK " in *[[:space:]]config=*) echo "AK must not carry config=...: name the file in AGENT_CONFIG" >&2; exit 2 ;; esac
+if [ "$WEB_SEARCH" = disabled ] && [ "$AGENT" = codex ]; then
+ mkdir -p "$JOBS/.agent-config" && cfg="$JOBS/.agent-config/config.toml.$$" \
+ && python3 "$R/scripts/codex_tools_off.py" ${AGENT_CONFIG:+"$AGENT_CONFIG"} > "$cfg" && grep -q '^features\.apps = false$\|^apps = false$' "$cfg" \
+ || { echo "no Codex config without provider-side tools could be written from AGENT_CONFIG=${AGENT_CONFIG:-(none)} (see above); WEB_SEARCH=disabled needs it" >&2; exit 2; }
+ AGENT_CONFIG="$cfg"
+fi
[ -n "$AGENT_CONFIG" ] && AGENT_ARGS+=(--ak "config=$AGENT_CONFIG")
# shellcheck disable=SC2206
AGENT_ARGS+=($AK)
diff --git a/scripts/tests/test_codex_tools_off.py b/scripts/tests/test_codex_tools_off.py
new file mode 100644
index 0000000000..e2dc289310
--- /dev/null
+++ b/scripts/tests/test_codex_tools_off.py
@@ -0,0 +1,89 @@
+"""Tests for scripts/codex_tools_off.py: the Codex config a run starts from has no provider-side tool on.
+
+ python3 scripts/tests/test_codex_tools_off.py # stdlib only (the parse-back needs Python 3.11+)
+"""
+import pathlib
+import subprocess
+import sys
+import tempfile
+import unittest
+
+HERE = pathlib.Path(__file__).resolve().parents[1]
+sys.path.insert(0, str(HERE))
+import codex_tools_off as m # noqa: E402
+
+try:
+ import tomllib
+except ModuleNotFoundError:
+ tomllib = None
+
+PROVIDER = 'model_provider = "azure"\n[model_providers.azure]\nbase_url = "https://x.openai.azure.com/openai/v1"\n'
+
+
+def get(doc, key):
+ for part in key.split("."):
+ doc = doc[part]
+ return doc
+
+
[email protected](tomllib is None, "needs tomllib")
+class ToolsOff(unittest.TestCase):
+ def off(self, text):
+ doc = tomllib.loads(m.tools_off(text))
+ for key in m.OFF:
+ self.assertIs(get(doc, key), False, key)
+ return doc
+
+ def test_no_config(self):
+ self.assertEqual(set(self.off("")), {"features", "apps"})
+
+ def test_provider_config_is_kept(self):
+ doc = self.off(PROVIDER)
+ self.assertEqual(doc["model_providers"]["azure"]["base_url"], "https://x.openai.azure.com/openai/v1")
+ self.assertNotIn("features", doc["model_providers"]["azure"]) # the keys precede the first table
+
+ def test_a_config_that_already_has_the_keys(self):
+ # what a scheduler with its own block passes (dotted keys first, then the provider): same result, no duplicate
+ head = "".join(f"{k} = false\n" for k in m.OFF)
+ self.assertEqual(self.off(head + PROVIDER), self.off(PROVIDER))
+ self.off("features.apps = false # mine\n" + PROVIDER)
+
+ def test_own_tables(self):
+ doc = self.off('[features]\nfoo = true\napps = false\n[apps.github]\nenabled = true\n[apps._default]\nx = 1\n' + PROVIDER)
+ self.assertIs(doc["features"]["foo"], True)
+ self.assertIs(doc["apps"]["github"]["enabled"], True)
+ self.assertEqual(doc["apps"]["_default"]["x"], 1)
+ self.off("[apps]\nfoo = 1\n")
+ self.off('features.foo = true\n["features".sub]\nx = 1\n')
+
+ def test_a_key_turned_on_is_refused(self):
+ for text in ("features.apps = true\n", "[features]\nplugins = true\n", "[features]\nimage_generation = 'false'\n",
+ "[apps._default]\nenabled = true\n", "[apps]\n_default.enabled = true\n", "features = { apps = false }\n",
+ "apps = { _default = { enabled = false } }\n", "[apps]\n_default = { enabled = false }\n"):
+ with self.assertRaises(ValueError, msg=text):
+ m.tools_off(text)
+
+ def test_same_name_elsewhere_is_not_ours(self):
+ doc = self.off("[model_providers.azure]\napps = true\n[[profiles]]\nfeatures.apps = true\n")
+ self.assertIs(doc["model_providers"]["azure"]["apps"], True)
+
+ def test_command_line(self):
+ script = str(HERE / "codex_tools_off.py")
+ with tempfile.TemporaryDirectory() as d:
+ good, bad = pathlib.Path(d) / "good.toml", pathlib.Path(d) / "bad.toml"
+ good.write_text(PROVIDER)
+ bad.write_text("[features]\napps = true\n")
+ r = subprocess.run([sys.executable, script, str(good)], capture_output=True, text=True)
+ self.assertEqual(r.returncode, 0, r.stderr)
+ self.off(r.stdout)
+ r = subprocess.run([sys.executable, script], capture_output=True, text=True)
+ self.off(r.stdout)
+ r = subprocess.run([sys.executable, script, str(bad)], capture_output=True, text=True)
+ self.assertEqual((r.returncode, r.stdout), (2, ""))
+ self.assertIn("features.apps", r.stderr)
+ r = subprocess.run([sys.executable, script, str(pathlib.Path(d) / "missing.toml")], capture_output=True, text=True)
+ self.assertEqual((r.returncode, r.stdout), (2, ""))
+
+
+if __name__ == "__main__":
+ unittest.main()
diff --git a/tasks/humanoidbench-loco-hurdle-i00-privileged/README.md b/tasks/humanoidbench-loco-hurdle-i00-privileged/README.md
index d52a66dff1..b4a1e19f39 100644
--- a/tasks/humanoidbench-loco-hurdle-i00-privileged/README.md
+++ b/tasks/humanoidbench-loco-hurdle-i00-privileged/README.md
@@ -24,8 +24,8 @@ predicate on the final state.
respected exactly.
- **Running, not walking.** The speed term is scaled to 5 m/s, so a comfortable walking gait leaves most
of the per-step reward on the table even when nothing is hit.
-- **The hurdles are scenery.** Upstream draws them without collision geometry and its reward never
- looks at them, so nothing has to be jumped: the task is a sprint down the walled track.
+- **Sprinting over solid hurdles.** The reward never looks at the hurdles, but each one is a solid box
+ 37.5 cm high across the track: the robot has to clear it at speed or it trips.
**Measured floors** (this instance, `scripts/humanoidbench/gen_tasks.py verify`): an all-zero
trajectory scores **18.05 / 700**. Holding the starting pose instead — the floor a competent agent
@@ -92,3 +92,4 @@ Everything in this directory except the instance (`environment/instance.npz` and
- 2026-10-08: base image 0.1.6 -> 0.2.0: MuJoCo 3.3.7 instead of upstream's 3.1.6 (docs/benchmarks/humanoidbench.md, Physics). The pass rule and verifier are unchanged, so the task keeps its name; results recorded on 0.1.6 are other physics and are reported separately.
- 2026-10-10: `reward.json` carries `deterministic` in every branch (0 where no replay ran; PROTOCOL §2.6). The verdict is unchanged.
- 2026-10-08: the task text no longer says the hurdles are solid and have to be cleared: upstream's model draws them without collision geometry and its reward never looks at them. The scene, instance, pass rule and verifier are unchanged, so the task keeps its name; runs recorded before this change were told otherwise and are reported separately.
+- 2026-10-11: the task text says the hurdles are solid again, and what is solid: upstream's model (assets/locomotion/generated_xml_hurdles.xml) puts at every hurdle a collision box 37.5 cm high and 6 cm thick across the track, under drawn bars that have no collision geometry; the 2026-10-08 entry looked only at the drawn bars. The scene, instance, pass rule and verifier are unchanged, so the task keeps its name; runs recorded from 2026-10-08 until this change were told the hurdles have no collision geometry and are reported separately.
diff --git a/tasks/humanoidbench-loco-hurdle-i00-privileged/instruction.md b/tasks/humanoidbench-loco-hurdle-i00-privileged/instruction.md
index 7546d22cb5..43920688e9 100644
--- a/tasks/humanoidbench-loco-hurdle-i00-privileged/instruction.md
+++ b/tasks/humanoidbench-loco-hurdle-i00-privileged/instruction.md
@@ -16,9 +16,10 @@ vertical) and low actuator force, multiplied together — but the speed target i
a walk, on the order of 5 m/s. On top of that, touching any barrier's collision geometry multiplies
that entire step down to a small fraction of its value: contact is a gate to be respected, not a
penalty to be traded off. Only the walls that line the track on both sides and behind the start
-count as barriers here; the hurdles carry no such penalty, and in upstream's model they have no
-collision geometry at all (drawn, not solid): the robot runs through them. The episode ends early if
-the pelvis drops near the ground.
+count as barriers here; the hurdles carry no such penalty. They are solid all the same: each hurdle
+is one collision box 37.5 cm high across the whole track (the bars drawn on it have no collision
+geometry of their own), so the robot has to get over it. The episode ends early if the pelvis drops
+near the ground.
**The reward function is not in this container.** `s.step()` returns `None` where the reward would
be and `s.status()` reports no return; the episode is scored in a separate process after you are
diff --git a/tasks/humanoidbench-loco-hurdle-i00-standard-realtime/README.md b/tasks/humanoidbench-loco-hurdle-i00-standard-realtime/README.md
index fdfb2781ce..cdaeedba6e 100644
--- a/tasks/humanoidbench-loco-hurdle-i00-standard-realtime/README.md
+++ b/tasks/humanoidbench-loco-hurdle-i00-standard-realtime/README.md
@@ -115,3 +115,9 @@ Minimum allocation for one trial (docs/PROTOCOL.md §2.9; `[metadata.resources]`
draws them without collision geometry and its reward never looks at them. The scene, instance, pass rule and
verifier are unchanged, so the task keeps its name; runs recorded before this change were told otherwise and
are reported separately.
+- 2026-10-11: the task text says the hurdles are solid again, and what is solid: upstream's model
+ (assets/locomotion/generated_xml_hurdles.xml) puts at every hurdle a collision box 37.5 cm high and 6 cm
+ thick across the track, under drawn bars that have no collision geometry; the 2026-10-08 entry looked only
+ at the drawn bars. The scene, instance, pass rule and verifier are unchanged, so the task keeps its name;
+ runs recorded from 2026-10-08 until this change were told the hurdles have no collision geometry and are
+ reported separately.
diff --git a/tasks/humanoidbench-loco-hurdle-i00-standard-realtime/instruction.md b/tasks/humanoidbench-loco-hurdle-i00-standard-realtime/instruction.md
index ce58a2f320..c87ef1fcd6 100644
--- a/tasks/humanoidbench-loco-hurdle-i00-standard-realtime/instruction.md
+++ b/tasks/humanoidbench-loco-hurdle-i00-standard-realtime/instruction.md
@@ -71,10 +71,11 @@ upright (head at standing height, torso vertical) and low actuator force, multip
target is a sprint rather than a walk, on the order of 5 m/s. On top of that, touching any barrier's collision
geometry multiplies that entire step down to a small fraction of its value: contact is a gate to be respected,
not a penalty to be traded off. Only the walls that line the track on both sides and behind the start count as
-barriers here; the hurdles carry no such penalty, and in upstream's model they have no collision geometry at
-all (drawn, not solid): the robot runs through them. The service ends the episode the moment the pass mark is
-reached (`reason = "success"`), and a fresh replay of the recorded episode, the servo targets the robot
-actually executed at each control step, must reach it as well and end in the same state.
+barriers here; the hurdles carry no such penalty. They are solid all the same: each hurdle is one collision
+box 37.5 cm high across the whole track (the bars drawn on it have no collision geometry of their own), so the
+robot has to get over it. The service ends the episode the moment the pass mark is reached
+(`reason = "success"`), and a fresh replay of the recorded episode, the servo targets the robot actually
+executed at each control step, must reach it as well and end in the same state.
## Client (`/opt/tools/rcb_client.py`, protocol `eai-standard/2.3`, standard-realtime mode)
Your whole interface to the robot. Its docstring is the full reference
diff --git a/tasks/humanoidbench-loco-hurdle-i00-standard/README.md b/tasks/humanoidbench-loco-hurdle-i00-standard/README.md
index a431387b3a..e00caaaee2 100644
--- a/tasks/humanoidbench-loco-hurdle-i00-standard/README.md
+++ b/tasks/humanoidbench-loco-hurdle-i00-standard/README.md
@@ -88,3 +88,9 @@ Minimum allocation for one trial (docs/PROTOCOL.md §2.9; `[metadata.resources]`
draws them without collision geometry and its reward never looks at them. The scene, instance, pass rule and
verifier are unchanged, so the task keeps its name; runs recorded before this change were told otherwise and
are reported separately.
+- 2026-10-11: the task text says the hurdles are solid again, and what is solid: upstream's model
+ (assets/locomotion/generated_xml_hurdles.xml) puts at every hurdle a collision box 37.5 cm high and 6 cm
+ thick across the track, under drawn bars that have no collision geometry; the 2026-10-08 entry looked only
+ at the drawn bars. The scene, instance, pass rule and verifier are unchanged, so the task keeps its name;
+ runs recorded from 2026-10-08 until this change were told the hurdles have no collision geometry and are
+ reported separately.
diff --git a/tasks/humanoidbench-loco-hurdle-i00-standard/instruction.md b/tasks/humanoidbench-loco-hurdle-i00-standard/instruction.md
index f4cf96cd17..5b3a095810 100644
--- a/tasks/humanoidbench-loco-hurdle-i00-standard/instruction.md
+++ b/tasks/humanoidbench-loco-hurdle-i00-standard/instruction.md
@@ -41,10 +41,11 @@ upright (head at standing height, torso vertical) and low actuator force, multip
target is a sprint rather than a walk, on the order of 5 m/s. On top of that, touching any barrier's collision
geometry multiplies that entire step down to a small fraction of its value: contact is a gate to be respected,
not a penalty to be traded off. Only the walls that line the track on both sides and behind the start count as
-barriers here; the hurdles carry no such penalty, and in upstream's model they have no collision geometry at
-all (drawn, not solid): the robot runs through them. The service ends the episode the moment the pass mark is
-reached (`reason = "success"`), and a fresh replay of the recorded episode must reach it as well and end in
-the same state.
+barriers here; the hurdles carry no such penalty. They are solid all the same: each hurdle is one collision
+box 37.5 cm high across the whole track (the bars drawn on it have no collision geometry of their own), so the
+robot has to get over it. The service ends the episode the moment the pass mark is reached
+(`reason = "success"`), and a fresh replay of the recorded episode must reach it as well and end in the same
+state.
## Client (`/opt/tools/rcb_client.py`, protocol `eai-standard/2.1`)
Your whole interface to the robot. Its docstring is the full reference