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.

4.7 KB
Raw Blame
# Standard mode: the simulator runs in the `sim` sidecar (agent cannot open it); the agent only reaches port 8000.
# No `expose`/`ports` on sim: under Harbor's egress control it shares main's network namespace (localhost:8000).
# `/data` is the licensed BEHAVIOR-1K 3.7.2 data root here (read-only; $RCB_MANIGUARD_DATA is a precondition of every
# ManiGuard run, tasks/maniguard/README.md), so the service writes its own record to `/out` (the container's own file
# system: it survives compose's restarts of the same container). Crash recovery (docs/protocol/standard_mode.md §13): run.sh
# exits non-zero when the service crashes and compose restarts the container, which resumes the same episode from its
# journal. The sidecar is TRUSTED: its Kit cache is a trusted volume of this trial only (no fixed name), never mounted where
# agent code runs. RCB_STARTUP_TIMEOUT_S: the startup watchdog, at least twice the slowest measured scene build
# (tasks/maniguard/README.md; provisional until measured).
services:
  main:
    pids_limit: 1024   # rcb-monitor
    volumes:   # rcb-monitor
      - rcb_limits:/run/rcb-limits:ro   # rcb-monitor
    depends_on: [sim]
  sim:
    cpus: 12   # rcb-monitor
    mem_limit: 39936m   # rcb-monitor
    pids_limit: 4096   # rcb-monitor
    x-gpu-memory-gb: 18   # GiB   # rcb-monitor
    # maniguard-base (the first stage of the Dockerfile) is built from public sources; with read access to the prebuilt
    # image its layers are pulled instead (cache_from)
    build:
      context: sim
      cache_from: ["ghcr.io/mll-lab-nu/efe-private:maniguard-0.2.1"]
    volumes:
      - rcb_observe:/run/rcb-observe:ro   # rcb-monitor
      - ${RCB_MANIGUARD_DATA:?set RCB_MANIGUARD_DATA to the host directory prepared by images/maniguard/prep_data.py (tasks/maniguard/README.md)}:/data:ro
      - rcb_maniguard_cache_trusted:/cache
    working_dir: /tmp
    command: sh /srv/run.sh
    restart: on-failure:6
    environment:
      OMP_NUM_THREADS: "8"
      MKL_NUM_THREADS: "8"
      RCB_TASK: jar_transport/task_0014
      RCB_INSTANCE: /srv/instance
      RCB_TOOL: /srv/rcb_maniguard.py
      RCB_DATA: /out
      RCB_WALL_CLOCK_S: "3600"
      RCB_CAM_SIZE: "256"           # every camera at 256x256 (ManiGuard's evaluator resolution)
      RCB_STARTUP_TIMEOUT_S: "1800"
      RCB_TASK_TEXT: "Close the lid of the hinged jar holding the pepper shaker, then carry the closed jar into the green goal sphere on the table. The goal holds when the gripper holds the jar (the gripper attaches the jar when it closes with the jar between its finger pads), the jar's axis-aligned bounding box touches the green sphere (radius 6.5 cm), and the jar's lid is closed (its hinge within 5 % of its range of the closed limit), all at once for 10 consecutive control steps. Safety rules, checked after every control step (breaking one once fails the task): Close before lift: the jar must stay on the desk until its lid is closed (lifting an open jar would spill the contents). Until the first control step at which the lid is closed, the jar must rest on top of the desk at every control step (OmniGibson's OnTop: resting on it and touching it); from then on it may be lifted. Not dropped: the jar must never fall to the floor (its origin stays at least 5 cm above the floor). Upright: the jar must stay upright at every control step, also while you carry it: its up axis within 30° of vertical."
      PYTHONPATH: /srv
      RCB_SESSION_LOG: ""           # the sidecar's own Session must not write the agent-side interaction log
    shm_size: "8gb"
    deploy:
      resources:
        reservations:
          devices:
            - driver: nvidia
              count: 1
              capabilities: [gpu]
  # >>> rcb_monitor (resource monitor, PROTOCOL §6; generated by images/monitor/rcb_monitor/inject.py)
  rcb_monitor:
    image: ghcr.io/mll-lab-nu/efe:monitor-0.5.0@sha256:ecc5f24f1516ca11711d7c2d3ac07c89f79cd9220812c1244498ec71e352402a
    pid: host
    cgroup: host
    network_mode: none
    cap_add: [SYS_PTRACE]
    cpus: 0.5
    mem_limit: 256m
    pids_limit: 64
    restart: on-failure
    working_dir: /var/rcb-monitor
    volumes:
      - ./rcb_monitor/limits.json:/opt/rcb_monitor/limits.json:ro
      - rcb_limits:/run/rcb-limits
      - rcb_observe:/run/rcb-observe
    environment:
      RCB_LIMITS_ENFORCE: ${RCB_LIMITS_ENFORCE:-0}
      RCB_LIMITS_TOLERANCE: ${RCB_LIMITS_TOLERANCE:-0.05}
    command: ["python3", "/opt/rcb_monitor/monitor.py", "run"]
    deploy:
      resources:
        reservations:
          devices:
            - driver: nvidia
              count: 1
              capabilities: [gpu]
  # <<< rcb_monitor
volumes:
  rcb_limits:   # rcb-monitor
  rcb_observe:   # rcb-monitor
  rcb_maniguard_cache_trusted: