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.

7.7 KB
Raw Blame

roboEngineer: the multi-round policy interface (eai-policy/1.0, /1.1)

roboEngineer's own runtime (PROTOCOL §3: a benchmark with its own runtime, ci_checks/benchmarks/roboengineer/exported.toml; Appendix H applies unchanged; results reported apart from eai-standard/2.x). The benchmark page is README.md. Changes in #329's review (2026-10-18): the collect hooks stop the agent's processes first (kill -9 -1), a deployment still running at the cutoff is stopped and not graded (Control Transfer), the cutoff persists across a service restart (both), every non-protocol path is 404, the graded held-out runs are unrendered and the video (/data/replay.mp4) is rendered after the verdict, a diverging simulation is the policy's failed episode (never an infrastructure error), result(round_id) returns a completed round's stored response again (Control Transfer), and reward.json carries the standard-mode fields (live_success, graded_by_live, replays).

Lifecycle and transport

The agent uses Harbor's native agent in main. The independent sim container serves localhost port 8000 via Harbor's network namespace wiring. No simulator directory, state volume, Docker socket, or private asset is mounted into main. The verifier runs separately under Harbor's no-network phase policy after trusted collection; see the native validation details for the observed boundary and limitations.

Request Input Output / effect
GET /health none Startup readiness only; does not start the policy clock.
GET /spec none Protocol, task type, operation names.
POST /describe {} Public task and scoring specification, numeric policy default, remaining rounds and wall-clock deadline.
POST /deploy policy, diagnosis Executes a numeric candidate on the fixed adaptation cases; returns round id, policy hash, exact noisy measurements and timestamped JPEG frames.
POST /seal round_id, summary Irreversibly selects a completed candidate and closes adaptation. No held-out feedback is returned.
POST /result round_id (/1.1) The stored response of a completed round, for a client that lost it; runs nothing.

Bodies are strict JSON, at most 8192 bytes, with no duplicate keys or nonfinite numbers. Diagnoses/summaries are bounded to 2000 characters. Policy validation allows only the documented keys, dimensions and numerical bounds. Invalid requests return generic HTTP 400, unavailable evaluator HTTP 503; private diagnostics never enter a response. Busy requests are rejected; there is only one simulator operation at a time. The HTTP server has a bounded worker pool and socket timeouts. Unknown paths do not serve files.

Every accepted deployment consumes one of three rounds before simulation. Each round uses the same three adaptation cases; final evaluation uses six disjoint cases. The agent may optimize locally as often as its resource/time budget permits. The action ABI is a fixed feedback controller with six tunable gains/timings and a 3×14 residual coefficient matrix; this release does not evaluate arbitrary controller programs.

The full-model oracle references are frozen before readiness. Harbor's agent time limit is authoritative: on agent exit or timeout, its collect hook closes submissions. As a fallback the service closes after the same duration from the first policy API call. Health checks do not start that clock. No new round, seed bank or budget is allocated on process restart. Interrupted deployments become infrastructure errors. A deployment finishing after cutoff is recorded but cannot become the selected policy.

Submission and private evaluation

SIGUSR1, sent by the trusted collect hook after the agent stops, requests finalization. Neural Landing waits for a running deployment under its lock (it can no longer be selected); Control Transfer kills its running episode worker (the round is aborted_at_cutoff). The service then selects the sealed eligible round or the latest completed-before-cutoff round. Without one, it writes a zero-score no-submission verdict. The service also finalizes on its own deadline. The final file is written atomically and repeated collection is idempotent. A partial failed final evaluation is infrastructure failure, never silently replaced by a fresh task or a favorable replay.

For a selected policy, the sidecar verifies its frozen hash and the private oracle bank, then evaluates every held-out case in two fresh processes. Exact private records must match. The collector waits for the trusted final manifest; Harbor copies /data/ from sim into the separate verifier. The verifier checks instance identity, manifest/grade hashes, versions, replay flags, case coverage and finite score bounds. It never reads agent-written rewards or evaluator records from /app/output.

Artifact in sim /data/ Purpose
final.json Atomic finalization status, frozen instance identity and grade digest.
session/state.json, audit.jsonl Budget, selected submission, timestamps, diagnoses and accepted/rejected API calls.
session/round-N/policy.json, agent-feedback.json Exact policy and feedback delivered to the agent, including image payloads.
session/round-N/case-K/ Private trajectory, sensor feedback, individual camera frames and full video.
session/oracle/ Frozen timing references, optimizer candidate history, policies and independent verification replays.
session/held-out/, grade.json Private held-out trajectories/videos, two replays per case and final score details.

These artifacts are available to the operator after the run, not mounted into the agent. Native agent transcripts retain its visible tool calls and explanations; the task records supplied diagnoses, not private model chain-of-thought. An HTTP response record shows what was supplied, not whether a vision model actually inspected every frame.

reward.txt is 1 iff all six cases succeed safely with verified replay, otherwise 0. reward.json contains numeric fields only: success, live_success, graded_by_live (1), replays (0), infra_error, progress, final_reward, success_rate, episodes. final_reward is the mean per-case 0–100 score; progress = final_reward / 100. Invalid trusted evidence is infra_error=1; no submitted candidate is infra_error=0, score zero.

See the benchmark specification for physics, observation noise, randomization, scoring and paper-calibration limitations.

Control-transfer extension: eai-policy/1.1

Control Transfer retains the same lifecycle with family-specific case counts and feedback schemas. /deploy accepts either bounded controller JSON or a fixed-shape numeric NPZ actor encoded in base64. Request bodies are capped at 12 MiB; actor archives at 8 MiB compressed/decompressed, with headers validated before loading. Actor architectures, joint mapping and low-level wrappers are fixed. Neither arbitrary code nor arbitrary ONNX graphs execute in the target service.

Each family freezes development and disjoint held-out banks before interaction. Its numeric score and success predicate are task-specific; final replay requires exact state hashes, observations and metrics. Persistent round accounting, trusted cutoff collection, agent-only noisy/video feedback, and offline verification remain required. See the task taxonomy and fidelity notes.

All roboEngineer deployment and held-out simulators use native CPU MuJoCo, CPU numeric policy inference, and OSMesa software rendering. GPU training is independent of the evaluator. Hidden physical parameters are fixed within each adaptation instance; held-out commands, initial conditions and noise vary. Unseen-plant transfer is a separately labeled track.