Scale computer-use 2.0 with open-source drivers, cross-OS sandboxes, and benchmarks for training, evaluation, and data generation.
Rust agentai-agentapplecomputer-usecomputer-use-agentcontainerizationcuadesktop-automationhacktoberfestlumemacosmanusoperatorswiftvirtualizationvirtualization-frameworkwindowswindows-sandbox
{
"schema_version": 1,
"repo": "ghcr.io/trycua/bench-osworld",
"arches": [
"amd64"
],
"series": "verified",
"tag": "{series}-{stamp}",
"vars": {
"bench_work": "{work}/bench",
"python": "python3"
},
"steps": [
{
"id": "spacesd/{arch}",
"phase": "prepare",
"per_arch": true,
"description": "cua-spacesd for the image (cached in dist/; CI builds it in the job)",
"unless_exists": "{root}/libs/images/linux/dist/{arch}/cua-spacesd",
"run": [
"{root}/libs/images/linux/build-spacesd-linux.sh",
"{arch}"
],
"produces": [
"{root}/libs/images/linux/dist/{arch}/cua-spacesd"
]
},
{
"id": "spacesd/reclaim",
"phase": "prepare",
"requires": [
"lowdisk",
"docker"
],
"description": "a small runner drops the cua-spacesd build cache (its cargo volumes and rust image) before the 34 GiB download",
"run": [
"docker",
"system",
"prune",
"-af",
"--volumes"
]
},
{
"id": "fetch",
"phase": "prepare",
"env": {
"CUA_BENCH_WORK": "{bench_work}"
},
"description": "download and verify the pinned sources",
"run": [
"python3",
"{root}/scripts/bench-images/bench.py",
"fetch",
"osworld"
],
"produces": [
"{bench_work}/osworld/sources.json"
]
},
{
"id": "fetch/reclaim",
"phase": "prepare",
"requires": [
"lowdisk"
],
"description": "a small runner drops the upstream zip once it is unpacked (the build reads the disk only)",
"run": [
"bash",
"-c",
"find \"$0\" -name '*.zip' -print -delete",
"{bench_work}/osworld/source"
]
},
{
"id": "build/prepare",
"phase": "build",
"requires": [
"docker"
],
"description": "e2fsck on an overlay of the upstream disk",
"env": {
"CUA_BENCH_WORK": "{bench_work}"
},
"run": [
"{root}/scripts/bench-images/build-qcow2.sh",
"osworld",
"--stages",
"prepare"
]
},
{
"id": "build/vm",
"phase": "build",
"requires": [
"docker"
],
"description": "the VM variant (containerDisk payload)",
"env": {
"CUA_BENCH_WORK": "{bench_work}"
},
"run": [
"{root}/scripts/bench-images/build-qcow2.sh",
"osworld",
"--stages",
"vm"
]
},
{
"id": "build/rootfs",
"phase": "build",
"requires": [
"docker"
],
"description": "the upstream tree as rootfs layers",
"env": {
"CUA_BENCH_WORK": "{bench_work}"
},
"run": [
"{root}/scripts/bench-images/build-qcow2.sh",
"osworld",
"--stages",
"rootfs"
]
},
{
"id": "build/reclaim",
"phase": "build",
"requires": [
"lowdisk"
],
"description": "a small runner drops the upstream disk once the VM disk and the rootfs layers exist",
"run": [
"bash",
"-c",
"rm -f \"$(python3 -c 'import json,sys;print(json.load(open(sys.argv[1]))[\"image\"])' \"$0/sources.json\")\" \"$0/build/base-fixed.qcow2\"",
"{bench_work}/osworld"
]
},
{
"id": "build/container",
"phase": "build",
"requires": [
"docker"
],
"env": {
"CUA_BENCH_WORK": "{bench_work}"
},
"description": "the container variant: upstream layers plus the overlay",
"run": [
"{root}/scripts/bench-images/build-qcow2.sh",
"osworld",
"--stages",
"container"
],
"produces": [
"{bench_work}/osworld/out/{arches}/rootfs-layout/index.json"
]
},
{
"id": "load/{arch}",
"phase": "build",
"per_arch": true,
"requires": [
"docker"
],
"description": "the rootfs layout in docker under the name the local smoke runs",
"run": [
"skopeo",
"copy",
"--quiet",
"oci:{bench_work}/osworld/out/{arch}/rootfs-layout",
"docker-daemon:cua-e2e-local/bench-osworld:docker-local-{arch}"
]
},
{
"id": "smoke/{arch}/rootfs",
"phase": "gate",
"per_arch": true,
"requires": [
"docker"
],
"env": {
"CUA_BENCH_WORK": "{bench_work}"
},
"description": "the local build under gVisor (docker without it): cua-spacesd doctor --strict and the benchmark server",
"run": [
"{python}",
"{root}/scripts/bench-images/smoke.py",
"osworld",
"--variant",
"rootfs",
"--evidence",
"{evidence}/smoke"
]
},
{
"id": "smoke/{arch}/containerdisk",
"phase": "gate",
"per_arch": true,
"requires": [
"accel-{arch}"
],
"env": {
"CUA_BENCH_WORK": "{bench_work}"
},
"description": "the local VM disk under QEMU: cua-spacesd doctor --strict and the benchmark server",
"run": [
"{python}",
"{root}/scripts/bench-images/smoke.py",
"osworld",
"--variant",
"containerdisk",
"--memory-mb",
"4096",
"--evidence",
"{evidence}/smoke"
]
},
{
"id": "push/{arch}",
"phase": "push",
"per_arch": true,
"env": {
"CUA_BENCH_WORK": "{bench_work}"
},
"description": "this arch's children as immutable pins",
"run": [
"bash",
"-c",
"docker image rm -f \"cua-e2e-local/bench-$1:docker-local-$2\" >/dev/null 2>&1 || true; exec \"$0/scripts/bench-images/publish.sh\" \"$1\" --stamp \"$3\" --arch \"$2\"",
"{root}",
"osworld",
"{arch}",
"{stamp}"
]
},
{
"id": "publish",
"phase": "publish",
"env": {
"CUA_BENCH_WORK": "{bench_work}"
},
"description": "the indexes (immutable pins); writes libs/images/bench/osworld/lock.json",
"run": [
"{root}/scripts/bench-images/publish.sh",
"osworld",
"--stamp",
"{stamp}",
"--indexes-only"
]
},
{
"id": "verify/{arch}/rootfs",
"phase": "verify",
"per_arch": true,
"requires": [
"docker"
],
"description": "the doctor again, against the staged index from the registry",
"run": [
"bash",
"-c",
"exec \"$1\" \"$0/scripts/bench-images/smoke.py\" \"$2\" --variant rootfs --image \"$(jq -r .pinned \"$0/libs/images/bench/$2/lock.json\")\" --evidence \"$3\"",
"{root}",
"{python}",
"osworld",
"{evidence}/verify"
]
},
{
"id": "verify/{arch}/containerdisk",
"phase": "verify",
"per_arch": true,
"requires": [
"accel-{arch}"
],
"run": [
"bash",
"-c",
"exec \"$1\" \"$0/scripts/bench-images/smoke.py\" \"$2\" --variant containerdisk --memory-mb 4096 --image \"$(jq -r .pinned \"$0/libs/images/bench/$2/lock.json\")\" --evidence \"$3\"",
"{root}",
"{python}",
"osworld",
"{evidence}/verify"
]
},
{
"id": "promote",
"phase": "promote",
"env": {
"CUA_BENCH_EVIDENCE": "{evidence}/verify"
},
"description": "<ver> and <ver>-disk, only with doctor evidence for every arch and variant",
"run": [
"{root}/scripts/bench-images/publish.sh",
"osworld",
"--stamp",
"{stamp}",
"--promote"
]
},
{
"id": "catalog",
"phase": "promote",
"description": "move the catalog digests of the promoted tags and record their sizes (commit libs/images/sandbox-images.json)",
"run": [
"python3",
"{root}/scripts/images/record-image-sizes.py",
"--refresh-digest",
"--ref",
"{repo}:{series}",
"--ref",
"{repo}:{series}-disk"
]
}
]
}