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.

602 B
Raw Blame
from pathlib import Path
import os, hashlib, json

ROOT = Path(os.environ.get("CONTROL_ASSETS", "/opt/control-assets"))


def check(prefix):
    manifest = json.loads((ROOT / "manifest.json").read_text())
    entries = {k: v for k, v in manifest.items() if k.startswith(prefix + "/")}
    if not entries:
        raise RuntimeError("Asset manifest missing")
    for k, v in entries.items():
        if hashlib.sha256((ROOT / k).read_bytes()).hexdigest() != v:
            raise RuntimeError("Asset checksum mismatch")
    return hashlib.sha256(json.dumps(entries, sort_keys=True).encode()).hexdigest()