Skip to content

armgit / cua

Public Imported from GitHub
0

Scale computer-use 2.0 with open-source drivers, cross-OS sandboxes, and benchmarks for training, evaluation, and data generation.

9.6 KB
Raw Blame
{
  "$comment": "Registry of the cua SDK e2e scenarios (plan \u00a73.5). run.py reads it to build the guide x language x lane matrix; every test records {scenario, lang, lane, status, secs, reason} into $CUA_E2E_RESULTS/<lang>.jsonl. `lanes` lists where a scenario is expected to run; a cell absent from the results is reported as `missing` and fails --strict. `only` narrows the languages expected in a lane.",
  "lanes": {
    "hermetic": {
      "gate": null,
      "what": "loopback fixtures: MockServer spacesd (cua-test-fixtures), cua daemon from the CLI",
      "trigger": "pull_request"
    },
    "container": {
      "gate": "CUA_E2E_CONTAINER=1",
      "what": "Docker engine, gVisor (runsc) when present; reference images linux and plain/*",
      "trigger": "pull_request"
    },
    "qemu": {
      "gate": "CUA_E2E_QEMU=1",
      "what": "local QEMU (hvf/kvm) booting the reference containerDisk disk; <=1 VM, <=4 GiB",
      "trigger": "nightly"
    },
    "lume": {
      "gate": "CUA_E2E_LUME=1",
      "what": "lume serve (macOS hosts) booting the arm64 reference disk; <=1 VM, <=4 GiB",
      "trigger": "nightly"
    },
    "cua-sandbox": {
      "gate": "CUA_E2E_CUA_SANDBOX=1",
      "what": "cua-sandbox public API (the wrapper over the cua SDK); runs after the wrapper merge",
      "trigger": "nightly"
    },
    "docs": {
      "gate": null,
      "what": "hermetic docs code blocks (test=\"docs\"), extracted by docs/extract.py; runs with the hermetic lane",
      "trigger": "pull_request"
    },
    "contrib": {
      "gate": "CUA_CONTRIB_FIXTURES=<cua-contrib-fixtures binary> + a cua binding built with --features contrib",
      "what": "contrib providers against schema mocks of their APIs (cua-contrib-fixtures): the contrib docs blocks and a cua-bench task on --on daytona",
      "trigger": "pull_request"
    }
  },
  "scenarios": [
    {
      "id": "run-omarchy",
      "guide": "cua-sdk/guides/agent-frameworks.mdx#omarchy-desktop",
      "langs": [
        "py",
        "ts",
        "rust"
      ],
      "lanes": [
        "container"
      ],
      "checks": "spacesd desktop: dimensions, screenshot, clipboard round trip, click + keypress land in the grid/form fixtures, /mcp initialize on the env port"
    },
    {
      "id": "browser-sdk",
      "guide": "cua-sdk/reference/typescript/index.mdx (browser)",
      "langs": [
        "ts"
      ],
      "lanes": [
        "hermetic"
      ],
      "checks": "@trycua/cua/browser (wasm): a spacesd session over gRPC-Web in Node; in headless Chromium (Playwright) the same flow through a same-origin proxy"
    },
    {
      "id": "connect-with-viewer",
      "guide": "cua-sdk/guides/desktop.mdx#browser-view",
      "langs": [
        "py",
        "ts",
        "rust"
      ],
      "lanes": [
        "container"
      ],
      "checks": "cua-spacesd viewer on the `env` service (3211): GET /viewer/ through service + forward, viewer_url mints a ticketed link"
    },
    {
      "id": "image-build-push-run",
      "guide": "cua-sdk/guides/agent-frameworks.mdx#minecraft (replaced flow)",
      "langs": [
        "py",
        "ts",
        "rust"
      ],
      "lanes": [
        "container",
        "qemu"
      ],
      "checks": "`cua image build` (layers) -> push to a registry -> boot the pushed ref locally -> layer effects visible",
      "only": {
        "container": [
          "py"
        ],
        "qemu": [
          "py"
        ]
      }
    },
    {
      "id": "images",
      "guide": "cua-sdk/guides/images.mdx",
      "langs": [
        "py",
        "ts",
        "rust"
      ],
      "lanes": [
        "container"
      ],
      "checks": "local layers (run/env/copy) apply"
    },
    {
      "id": "direct-connect",
      "guide": "(new)",
      "langs": [
        "py",
        "ts",
        "rust"
      ],
      "lanes": [
        "hermetic",
        "container"
      ],
      "checks": "spacesd in Docker, connect_url(url, token), conformance smoke; rust also runs the spacesd conformance suite (CUA_E2E_CONFORMANCE=1)"
    },
    {
      "id": "daemon-vs-embedded",
      "guide": "(new)",
      "langs": [
        "py",
        "ts",
        "rust"
      ],
      "lanes": [
        "hermetic",
        "container"
      ],
      "checks": "same script embedded and through `cua daemon` gives identical results; two processes share one daemon-held sandbox"
    },
    {
      "id": "local-container",
      "guide": "(new)",
      "langs": [
        "py",
        "ts",
        "rust"
      ],
      "lanes": [
        "container"
      ],
      "checks": "reference image as a local container sandbox (gVisor) -> env smoke; rust: fork + checkpoint through cua-vmm"
    },
    {
      "id": "local-qemu",
      "guide": "(new)",
      "langs": [
        "py",
        "ts",
        "rust"
      ],
      "lanes": [
        "qemu"
      ],
      "checks": "reference disk under QEMU -> readiness probes + forward (py/ts); rust: env smoke with a cloud-init token, checkpoint, fork, boot the fork"
    },
    {
      "id": "local-qemu-fork",
      "guide": "(new)",
      "langs": [
        "py",
        "ts",
        "rust"
      ],
      "lanes": [
        "qemu"
      ],
      "checks": "forkable reference disk under QEMU -> dirty RAM -> checkpoint(pin) -> 2 forks hold the world's RAM, are independent -> pinned checkpoint refuses delete -> unpin -> prune"
    },
    {
      "id": "fork-batch",
      "guide": "(new)",
      "langs": [
        "py",
        "ts",
        "rust"
      ],
      "lanes": [
        "qemu"
      ],
      "checks": "reference disk -> memory checkpoint -> fork_many(3, max_parallel_per_host=2): forks stream before the summary, peak parallelism <= 2, each fork's cua-spacesd answers with its own token; forks, checkpoint and source deleted"
    },
    {
      "id": "local-lume",
      "guide": "(new)",
      "langs": [
        "rust"
      ],
      "lanes": [
        "lume"
      ],
      "checks": "reference arm64 disk under Lume -> env smoke -> checkpoint -> fork"
    },
    {
      "id": "daemon-agnostic",
      "guide": "(new, plan \u00a71.1)",
      "langs": [
        "py",
        "ts",
        "rust"
      ],
      "lanes": [
        "hermetic",
        "container",
        "qemu"
      ],
      "checks": "plain images with no cua daemon: lifecycle, ports/forward, tcp/http readiness probes; env() raises SpacesdNotAvailable"
    },
    {
      "id": "docs-blocks",
      "guide": "all guides above",
      "langs": [
        "py"
      ],
      "lanes": [
        "docs",
        "container",
        "contrib"
      ],
      "checks": "every docs block tagged test=docs|container|contrib runs in that lane (Python in a venv, TypeScript through tsx; hidden preludes such as spacesd); docs/coverage.py fails a tagged block without a result"
    },
    {
      "id": "unified-sandbox-api",
      "guide": "reference/sandbox-sdk (command, env, services, wait_for, url, public_url, forward)",
      "langs": [
        "py",
        "ts",
        "rust"
      ],
      "lanes": [
        "hermetic",
        "container"
      ],
      "checks": "plain image + command + services + wait_for on a named service: service(name).request with caller headers (the server 400s without them), service(name).url() and public_url(name, ttl) from a plain HTTP client (a daemon token URL), forward(port) as a loopback URL, portable info (id, phase, location, provider_details). hermetic: a cloud create fails with the Cua Cloud has ended error, and MockServer through a private daemon; container: python:3.12-slim on gVisor"
    },
    {
      "id": "sandbox-parity",
      "guide": "reference/sandbox-sdk (sidecars, Image.from_registry(secret=), image layers, warm canonical images)",
      "langs": [
        "py"
      ],
      "lanes": [
        "hermetic",
        "container"
      ],
      "checks": "hermetic: every cloud create (sidecars, the reserved service names main/sidecars/sc, layer builds) fails with the one Cua Cloud has ended error before anything is created, and the local core refuses layers on a VM image; container: python:3.12-slim + redis sidecar 'db' + busybox sidecar 'relay' on runc through a private daemon, the sandbox reaches db:6379 by name and the relay reaches the sandbox at main"
    },
    {
      "id": "browse-the-web",
      "guide": "cua-sdk/guides/desktop.mdx#give-an-agent-a-browser",
      "langs": [
        "py"
      ],
      "lanes": [
        "hermetic",
        "container"
      ],
      "checks": "a fresh-agent session through the host `cua mcp` server only (official MCP Python SDK, no LLM): hermetic: images_list returns the published catalog with browser_tools, sandbox_create takes browser, teleport_browser_session exists; container: images_list -> sandbox_create {browser: true} on linux -> read, fill (browser_type), check and submit (browser_click) a form served in the sandbox -> tab screenshot -> sandbox_delete"
    },
    {
      "id": "share-a-link",
      "guide": "(new) Share a link to anything you run",
      "langs": [
        "py",
        "ts",
        "rust"
      ],
      "lanes": [
        "hermetic"
      ],
      "checks": "a real daemon that is a relay host (relay + host spacesd stood in by fixtures/share_relay.py): share a file and a port (private: owner 200, nobody 401, another account 403), check the link, stop by name, public folder link with ttl, stop_all from a second client, bad input errors, dead port check.ok=false"
    },
    {
      "id": "cloud-ended",
      "guide": "(new)",
      "langs": [
        "py"
      ],
      "lanes": [
        "cua-sandbox"
      ],
      "checks": "on=\"cloud\", local=False and pool= raise the one Cua Cloud has ended error through the cua-sandbox public API"
    }
  ]
}