Skip to main content

Common Unified Benchmark Environments

Project description

CUBE Standard banner

CUBE Standard

[!NOTE] CUBE is in active development (alpha). Interfaces may change. We welcome early adopters and contributors who want to shape the standard, not just use it. See our Roadmap and Contributing Guide.

Have a benchmark to contribute? Fill out this short form — no commitment required. Want to go deeper? Apply to join the core team.

This repo contains the code and documentation for the AI Alliance: CUBE Standard project, which standardizes benchmark wrapping so the community can wrap otherwise-incompatible benchmarks uniformly and use them everywhere.

CUBE Standard defines the protocol — the Tool, Task, Benchmark, Observation, and Action interfaces that any benchmark must implement. cube-harness is the evaluation runtime that runs agents against CUBE-compatible benchmarks.

Paper: arXiv:2603.15798

Principal developer: ServiceNow AI Research.

Components

CUBE Standard is organized into three layers:

Layer Package Description
Core cube-standard (this repo) interfaces: Tool, Task, Benchmark, Observation, Action
Resources cube-resources/ Optional shared infrastructure (browser sessions, VM backends)
Tools cube-tools/ Optional action executors (browser tools, computer tools)

Resources are pieces of shared infrastructure — e.g. a running browser instance or a VM — that are launched once and shared across tasks. Tools execute agent actions against that infrastructure.

Benchmark ──► TaskConfig ──► Task ──► Tool ──► Resource ──► Environment
                                ▲               (cube-tools)  (cube-resources)
                         cube-standard

See cube-resources/README.md and cube-tools/README.md for available implementations and usage examples.

Installation

Requires Python 3.12+. Install with uv:

uv add cube-standard

Or with pip:

pip install cube-standard

To include optional container backends:

# Docker support
uv add "cube-standard[docker]"

# Modal support
uv add "cube-standard[modal]"

# Daytona support
uv add "cube-standard[daytona]"

For development (includes test and lint tools):

git clone https://github.com/The-AI-Alliance/cube-standard
cd cube-standard
uv sync --extra dev

CLI commands

Command What it does
cube init [NAME] Scaffolds a new benchmark package from the built-in template
cube list Lists all installed benchmarks registered under cube.benchmarks entry points
cube test NAME Runs the debug suite and asserts reward == 1.0 on every debug task

For benchmark contributors

Fast path — copy the reference implementation, rename, and iterate:

cp -r examples/counter-cube my-bench
cd my-bench && uv sync
# Edit @tool_action decorated methods in src/*/tool.py
# Edit reset() and evaluate() in src/*/task.py
# Edit benchmark_metadata, task_metadata, task_config_class, _setup() and close() in src/*/benchmark.py
# expose get_debug_benchmark and get_debug_agent in src/*/debug.py
cube test my-bench

[!NOTE] cube test discovers benchmarks via the cube.benchmarks entry point group. The benchmark package must be installed (e.g. uv sync or pip install -e .) before running cube test, otherwise the benchmark will not be found.

Or scaffold from the template:

cube init my-bench    # scaffold a new benchmark package from the template
cd my-bench
uv sync
cube test my-bench    # run the debug compliance suite

See CONTRIBUTING.md for the five-layer architecture and implementation order.

Getting Involved

All contributions are welcome — open an issue, submit a PR, or wrap a new benchmark. See CONTRIBUTING.md for the development guide and RFC process.

Want to contribute a benchmark? Whether you're an original author or just a frequent user, fill out this short form to let us know. No commitment required — we'll follow up based on your interest and the benchmark's fit.

Want deeper involvement? Join the core team, shape the roadmap, and get credit for what you build. Apply here.

For general AI Alliance contribution guidelines, see the community repo and Code of Conduct.

All code contributions are licensed under the Apache 2.0 LICENSE (which is also in this repo, LICENSE.Apache-2.0).

All documentation contributions are licensed under the Creative Commons Attribution 4.0 International (which is also in this repo, LICENSE.CC-BY-4.0).

All data contributions are licensed under the Community Data License Agreement - Permissive - Version 2.0 (which is also in this repo, LICENSE.CDLA-2.0).

We use the "Developer Certificate of Origin" (DCO).

[!WARNING] Before you make any git commits with changes, understand what's required for DCO.

See the Alliance contributing guide section on DCO for details. In practical terms, supporting this requirement means you must use the -s flag with your git commit commands.

Pre-commit hooks (recommended)

This repo uses the pre-commit framework to run fast checks locally before you commit, including enforcing the DCO Signed-off-by line.

Install the hooks (you only need to do this once per clone):

pre-commit install --hook-type pre-commit --hook-type commit-msg

Run the checks on all files (optional, useful the first time):

pre-commit run --all-files

When committing, include your sign-off:

git commit -s -m "your message"

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cube_standard-0.1.0rc6.tar.gz (101.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cube_standard-0.1.0rc6-py3-none-any.whl (121.4 kB view details)

Uploaded Python 3

File details

Details for the file cube_standard-0.1.0rc6.tar.gz.

File metadata

  • Download URL: cube_standard-0.1.0rc6.tar.gz
  • Upload date:
  • Size: 101.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for cube_standard-0.1.0rc6.tar.gz
Algorithm Hash digest
SHA256 b4d26eb0a6f6078b8b788759fe9c5b6d22bbaaf4ecb762951eccd504ab47cf11
MD5 66a462df07678802dd80b8e8c20dfa0d
BLAKE2b-256 c52fedbd8d5fbe604209d5df7b0a3ac6e5122c1e4df4c0a2408dc4e9801d7f01

See more details on using hashes here.

Provenance

The following attestation bundles were made for cube_standard-0.1.0rc6.tar.gz:

Publisher: release.yml on The-AI-Alliance/cube-standard

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file cube_standard-0.1.0rc6-py3-none-any.whl.

File metadata

File hashes

Hashes for cube_standard-0.1.0rc6-py3-none-any.whl
Algorithm Hash digest
SHA256 78c7dda410a432788b8026f64789abdf6eb8cee2b32fdea9f3fa39183f54fd51
MD5 ad7497171cd02e3f4cfcdbc8edda134c
BLAKE2b-256 3bb92bf11d1a1f8acef016b4d108c0fa9e7fe90cfc90ba7f9794581fecedaa39

See more details on using hashes here.

Provenance

The following attestation bundles were made for cube_standard-0.1.0rc6-py3-none-any.whl:

Publisher: release.yml on The-AI-Alliance/cube-standard

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page