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.

609 B
Raw Blame
#!/bin/sh
# Embodied First Exam: the verdict ends the session. Once the match service says the result is final (GET /over: full
# time, a no-show or a forfeit), every process of this container but its init is stopped (the collect hook's kill -9 -1),
# so the trial is graded without the session's dead time; the result is the one the service already decided.
( while :; do
    python3 -c 'import json, sys, urllib.request
sys.exit(0 if json.load(urllib.request.urlopen("http://localhost:8000/over", timeout=5)).get("over") else 1)' 2>/dev/null && break
    sleep 5
  done
  sleep 5
  kill -9 -1 ) &
exec "$@"