Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
12 changes: 6 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@ jobs:
uv run python examples/stream_quickstart.py
- name: CLI smoke (offline)
run: |
uv run tide list
uv run tide run autoresearch/first-party --agent oracle --fake --lab runs/ci-smoke
uv run tide stream autoresearch/first-party --name ci-week --agent oracle --fake --lab runs/ci-smoke
uv run tide report --lab runs/ci-smoke
uv run reef-eval list
uv run reef-eval run autoresearch/first-party --agent oracle --fake --lab runs/ci-smoke
uv run reef-eval stream autoresearch/first-party --name ci-week --agent oracle --fake --lab runs/ci-smoke
uv run reef-eval report --lab runs/ci-smoke
- name: Local mode (real scoring, no Docker)
run: |
uv run tide run autoresearch/first-party/circle-packing --local \
uv run reef-eval run autoresearch/first-party/circle-packing --local \
--command "python examples/random_search.py" \
--budget 0.002 --lab runs/ci-local
uv run tide report --lab runs/ci-local
uv run reef-eval report --lab runs/ci-local
4 changes: 2 additions & 2 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
push:
branches: [main]
paths:
- "tide/**"
- "reef_eval/**"
- "tasks/**"
- "scripts/e2e_oracle.py"
- "pyproject.toml"
Expand All @@ -23,7 +23,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v4
- name: Install tide + harbor
- name: Install reef-eval + harbor
run: |
uv venv --python 3.12
uv pip install -e ".[harbor]" # the pin lives in pyproject.toml
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
run: |
uv venv smoke --python 3.12
uv pip install --python smoke/bin/python dist/*.whl
smoke/bin/tide --version
smoke/bin/python -c "import tide; print(tide.__version__)"
smoke/bin/reef-eval --version
smoke/bin/python -c "import reef_eval; print(reef_eval.__version__)"
- name: Publish
uses: pypa/gh-action-pypi-publish@release/v1
14 changes: 7 additions & 7 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Contributing to tide
# Contributing to reef-eval

tide stays small, so contributions are reviewed against a short list of
reef-eval stays small, so contributions are reviewed against a short list of
design rules more than against style.

## The rules PRs are reviewed against
Expand All @@ -9,15 +9,15 @@ design rules more than against style.
don't change; columns may be added, never renamed or retyped. If your
change needs to break this, open an issue first: it means the design is
wrong somewhere, and that is the thing to fix.
2. **Tasks stay stock Harbor.** No tide-specific fields in `task.toml`,
2. **Tasks stay stock Harbor.** No reef-eval-specific fields in `task.toml`,
ever. Benchmark structure lives in scripts *around* tasks.
`tests/test_task_suite.py` validates every committed `task.toml`
under Harbor's `TaskConfig`.
3. **Abstractions are earned.** A helper enters the library when the same
shape has appeared in at least two real scripts. Until then it lives in
`examples/`.
4. **Dependency direction.** Catalog conversion scripts depend on published
formats, never tide's runtime internals. Metrics import pandas, never tide.
formats, never reef-eval's runtime internals. Metrics import pandas, never reef_eval.
5. **Anti-reward-hacking measures are tested.** Anything claiming to stop
an agent from gaming the score needs a test that actually cheats and
fails. The
Expand All @@ -30,9 +30,9 @@ design rules more than against style.
7. **Unbuilt work lives in the roadmap.** Docs state what exists; where a
gap must be mentioned, link the [roadmap issue](https://github.com/Human-Agent-Society/reef-eval/issues/19)
instead of writing "not built yet" in place.
8. **The name is tide, lowercase.** Plain text in prose, including at the
start of a sentence. Code font is for what you type: the `tide`
command, the `reef-eval` package, `from tide import Lab`.
8. **The name is reef-eval, lowercase.** Plain text in prose, including at the
start of a sentence. Code font is for what you type: the `reef-eval`
command, the `reef-eval` package, `from reef_eval import Lab`.

## What's welcome

Expand Down
52 changes: 26 additions & 26 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 🌊 tide
# 🌊 reef-eval

[![CI](https://github.com/Human-Agent-Society/reef-eval/actions/workflows/ci.yml/badge.svg)](https://github.com/Human-Agent-Society/reef-eval/actions/workflows/ci.yml)
[![Python 3.12+](https://img.shields.io/badge/python-3.12+-blue.svg)](pyproject.toml)
Expand All @@ -8,7 +8,7 @@

An agent self-evolves when something it learned during a run persists
past it: memory, a skill library, an evolved harness, updated weights.
tide measures whether that state changes what the agent scores. It
reef-eval measures whether that state changes what the agent scores. It
supports two kinds of task.

**Autoresearch** is the kind of task that approaches such as DeepMind's
Expand Down Expand Up @@ -40,24 +40,24 @@ any agent that can work inside a container, and you can test your own
harness or method following
[running agents](docs/running-agents.md).

## Using tide
## Using reef-eval

First run? **[docs/get-started.md](docs/get-started.md)** walks from
install to running and scoring a task.
**[docs/running-agents.md](docs/running-agents.md)** explains how to set
up a real agent, whether it is a common coding agent or your own. The
rest of the docs are outlined in **[docs/](docs/README.md)**. tide
rest of the docs are outlined in **[docs/](docs/README.md)**. reef-eval
provides both a CLI and a Python API, with example code for each below.

### Run

```bash
pip install "reef-eval[harbor]" # or from a source checkout: pip install -e ".[harbor]"

tide list # what's runnable
tide fetch cl-bench # download a benchmark's tasks (a source checkout has them all already)
tide run frontier-cs/frontier-cs-2-0-vllm-llm-serving-optimization --agent claude-code --model anthropic/claude-opus-5 --budget 2h
tide stream cl-bench --agent claude-code --model anthropic/claude-opus-5
reef-eval list # what's runnable
reef-eval fetch cl-bench # download a benchmark's tasks (a source checkout has them all already)
reef-eval run frontier-cs/frontier-cs-2-0-vllm-llm-serving-optimization --agent claude-code --model anthropic/claude-opus-5 --budget 2h
reef-eval stream cl-bench --agent claude-code --model anthropic/claude-opus-5
```

`--budget` is time (`2h` / `30m` / `90s`; a bare number is hours); the other
Expand All @@ -71,7 +71,7 @@ needs a judge and so applies to autoresearch tasks. See
command against it, with no containers involved:

```bash
tide run autoresearch/first-party/circle-packing --local \
reef-eval run autoresearch/first-party/circle-packing --local \
--command "python examples/random_search.py" --budget 30s
```

Expand All @@ -80,7 +80,7 @@ never trusted results. Use local runs while developing and report the
numbers from container runs; the details are in
[get started](docs/get-started.md#no-docker-local-and-fake-runs).

With Docker, you can run `tide run cl-bench/bsm-s01 --agent oracle` to
With Docker, you can run `reef-eval run cl-bench/bsm-s01 --agent oracle` to
check the install. The run builds the task image and executes the task's
reference solution in the container, using Harbor's built-in `oracle`
agent, and the score should be exactly 1.0.
Expand All @@ -92,7 +92,7 @@ trial), and `df` returns everything recorded so far as a pandas DataFrame:

```python
# Lab is asyncio-based: run this inside an async function or a notebook.
from tide import Lab, Budget, metrics
from reef_eval import Lab, Budget, metrics

lab = Lab("runs/exp1")
row = await lab.run(
Expand All @@ -114,11 +114,11 @@ Re-running any script resumes it. Reference:
### Task streams

A `Stream` runs an ordered task list under one agent. Every task's
container mounts the same state directory (`$TIDE_STATE_DIR`), carrying
container mounts the same state directory (`$REEF_EVAL_STATE_DIR`), carrying
the agent's memory, skill library, or evolved harness from task to task:

```python
from tide import Lab, Stream, metrics, tasks
from reef_eval import Lab, Stream, metrics, tasks

lab = Lab("runs/cl")
stream = Stream(
Expand Down Expand Up @@ -147,7 +147,7 @@ name that downloads on first use) and returns the task references in the
CLI's order:

```python
tasks("cl-bench") # every cl-bench task, the list `tide stream cl-bench` runs
tasks("cl-bench") # every cl-bench task, the list `reef-eval stream cl-bench` runs
Stream("cl-bench", tasks("cl-bench")) # run all of them in that order

order = tasks("cl-bench") # an ordinary list: print it, filter it, reorder it
Expand Down Expand Up @@ -201,9 +201,9 @@ as baselines. What each shows: [`examples/`](examples/README.md).

| Benchmark | Tasks | Upstream | Run |
|---|---|---|---|
| [first-party](tasks/autoresearch/first-party) | 6 | this repo | `tide run autoresearch/first-party --agent <a>` |
| [EdgeBench](tasks/autoresearch/edgebench) | 51 · 2-12 h budgets | [ByteDance-Seed/EdgeBench](https://github.com/ByteDance-Seed/EdgeBench) | `tide run edgebench/<task> --budget <h>` |
| [FrontierCS](tasks/autoresearch/frontier-cs) | 208 · 188 algorithmic + 20 research, incl. 4 GPU kernel | [FrontierCS/Frontier-CS](https://github.com/FrontierCS/Frontier-CS) | `tide run frontier-cs/<task> --agent <a>` |
| [first-party](tasks/autoresearch/first-party) | 6 | this repo | `reef-eval run autoresearch/first-party --agent <a>` |
| [EdgeBench](tasks/autoresearch/edgebench) | 51 · 2-12 h budgets | [ByteDance-Seed/EdgeBench](https://github.com/ByteDance-Seed/EdgeBench) | `reef-eval run edgebench/<task> --budget <h>` |
| [FrontierCS](tasks/autoresearch/frontier-cs) | 208 · 188 algorithmic + 20 research, incl. 4 GPU kernel | [FrontierCS/Frontier-CS](https://github.com/FrontierCS/Frontier-CS) | `reef-eval run frontier-cs/<task> --agent <a>` |

Each first-party task covers one hard part of the category (held-out
grading, safely grading agent-shipped code, ...); the
Expand All @@ -218,9 +218,9 @@ license, so its tasks are fetched onto your machine instead:

| Benchmark | Tasks | Upstream | Run |
|---|---|---|---|
| [terminal-bench](tasks/continual-learning/terminal-bench) | 89 · **v2.0 only** (1.x unsupported) · committed | [terminal-bench-2](https://github.com/laude-institute/terminal-bench-2) (Apache-2.0) | `tide stream terminal-bench --agent <a>` |
| [SWE-bench Verified](tasks/continual-learning/swebench-verified) | 500 · fetched (upstream has no license) | [harbor-datasets](https://github.com/laude-institute/harbor-datasets) | `tide fetch swebench-verified --limit 50`, then `tide stream swebench-verified --agent <a>` |
| [CL-Bench](tasks/continual-learning/cl-bench) | 301 · **all 6 domains** · committed | [continual-learning-bench](https://github.com/pgasawa/continual-learning-bench) (Apache-2.0) | `tide stream cl-bench --agent <a>` |
| [terminal-bench](tasks/continual-learning/terminal-bench) | 89 · **v2.0 only** (1.x unsupported) · committed | [terminal-bench-2](https://github.com/laude-institute/terminal-bench-2) (Apache-2.0) | `reef-eval stream terminal-bench --agent <a>` |
| [SWE-bench Verified](tasks/continual-learning/swebench-verified) | 500 · fetched (upstream has no license) | [harbor-datasets](https://github.com/laude-institute/harbor-datasets) | `reef-eval fetch swebench-verified --limit 50`, then `reef-eval stream swebench-verified --agent <a>` |
| [CL-Bench](tasks/continual-learning/cl-bench) | 301 · **all 6 domains** · committed | [continual-learning-bench](https://github.com/pgasawa/continual-learning-bench) (Apache-2.0) | `reef-eval stream cl-bench --agent <a>` |

Of the benchmarks [AgentStream](https://arxiv.org/abs/2608.00155) builds
its streams from, SWE-bench Verified is the hardest one with a published
Expand Down Expand Up @@ -250,18 +250,18 @@ Guide: **[docs/authoring-tasks.md](docs/authoring-tasks.md)**.

## Why not plain Harbor?

tide is built on Harbor. Harbor provides the runtime: the task format,
reef-eval is built on Harbor. Harbor provides the runtime: the task format,
containers, agent adapters, the verifier, trajectories, `harbor job
resume`, and `harbor view`. tide builds on top of them and adds three features
resume`, and `harbor view`. reef-eval builds on top of them and adds three features
specifically designed for evaluating agents that learn during the run.

| What tide adds | In code | Where |
| What reef-eval adds | In code | Where |
|---|---|---|
| **A judge.** The agent can submit at any time, and the judge (instantiated in a separate container) scores and timestamps each submission. | `POST $JUDGE_URL/submit`<br>`-> {"score": 0.83, "best": 0.91, "remaining": 47}` | [`judge_server.py`](tasks/_template/environment/judge_server.py) |
| **Streams.** An ordered task list run and solved by one agent. tide snapshots the agent state after each episode and transfers it to the next. | `await Stream("wk1", tasks).run(lab, agent)` | [`stream.py`](tide/stream.py), [streams](docs/get-started.md#streams) |
| **One table for all results.** It stores every run, keyed by (task, agent, tags). tide provides various budget types for the agent runs, and provides common metrics for measuring self-evolving agents. | `metrics.auc(metrics.anytime(lab.df("trace")))` | [`store.py`](tide/store.py), [`budget.py`](tide/budget.py), [metrics](docs/metrics.md) |
| **Streams.** An ordered task list run and solved by one agent. reef-eval snapshots the agent state after each episode and transfers it to the next. | `await Stream("wk1", tasks).run(lab, agent)` | [`stream.py`](reef_eval/stream.py), [streams](docs/get-started.md#streams) |
| **One table for all results.** It stores every run, keyed by (task, agent, tags). reef-eval provides various budget types for the agent runs, and provides common metrics for measuring self-evolving agents. | `metrics.auc(metrics.anytime(lab.df("trace")))` | [`store.py`](reef_eval/store.py), [`budget.py`](reef_eval/budget.py), [metrics](docs/metrics.md) |

Full design (how tide prevents reward hacking, task conventions, data
Full design (how reef-eval prevents reward hacking, task conventions, data
model, extensibility): **[docs/design.md](docs/design.md)**.

## Contributing
Expand Down
4 changes: 2 additions & 2 deletions docs/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# tide docs
# reef-eval docs

Evaluation infrastructure for self-evolving agents, in two task regimes:
one open-ended problem (autoresearch) and an ordered stream of tasks.
Expand All @@ -13,6 +13,6 @@ Read in this order:
converters.
4. **[Metrics](metrics.md)**: the analyses over the results table.

Reference, when you need it: [design](design.md) is why tide is shaped
Reference, when you need it: [design](design.md) is why reef-eval is shaped
the way it is, [glossary](glossary.md) is every term in one place, and
the [benchmark catalog](tasks.md) is what ships.
10 changes: 10 additions & 0 deletions docs/assets/reef-eval-logo-dark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions docs/assets/reef-eval-logo-light.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 6 additions & 6 deletions docs/authoring-tasks.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Authoring tasks & benchmarks

Tasks are **100% stock Harbor tasks**, validated against Harbor's
`TaskConfig` by `tests/test_task_suite.py`; tide adds conventions around
`TaskConfig` by `tests/test_task_suite.py`; reef-eval adds conventions around
the format, never fields inside it. Start from
[`tasks/_template`](https://github.com/Human-Agent-Society/reef-eval/tree/main/tasks/_template), a working
placeholder task (maximize `x` in `[0, 1]`) that passes the suite before
Expand Down Expand Up @@ -163,7 +163,7 @@ the GPU model as a tag so curves never mix hardware.
## A continual-learning task

Any stock Harbor task runs in a [stream](get-started.md#streams)
unchanged: tide mounts the carried memory directory itself, and a
unchanged: reef-eval mounts the carried memory directory itself, and a
pass/fail verifier is a fine score (a pass is a 0-or-1 reward). Two
conventions from the committed benchmarks are worth copying:

Expand All @@ -189,8 +189,8 @@ my-bench/
A path runs as-is, and a folder placed in the catalog resolves by name:

```bash
tide run path/to/my-bench --agent oracle # any directory of tasks
tide run my-bench --agent oracle # once it sits in tasks/<regime>/my-bench
reef-eval run path/to/my-bench --agent oracle # any directory of tasks
reef-eval run my-bench --agent oracle # once it sits in tasks/<regime>/my-bench
```

In a checkout, `tests/test_task_suite.py` picks up every task under
Expand All @@ -199,7 +199,7 @@ To distribute one, publish the directory in any git repository and
register the pin, the way gym environments register:

```python
from tide import fetch
from reef_eval import fetch

fetch.register("my-bench", "https://github.com/me/my-bench.git", "<commit or tag>")
tasks = fetch.benchmark("my-bench") # downloads on first use, then cached
Expand All @@ -208,7 +208,7 @@ tasks = fetch.benchmark("my-bench") # downloads on first use, then cached
`subdir=` points inside the repo when the tasks are not at its root. The
registry is per process, the way gym's is: a script that calls `register`
can pass `fetch.benchmark("my-bench") / "task-01"` straight to `Lab.run`,
while the shell `tide` command sees only the built-ins, so give it the
while the shell `reef-eval` command sees only the built-ins, so give it the
fetched path. Ship the `register` call in your package's import;
registering an existing name replaces it, which is how a fork takes over
a built-in.
Expand Down
Loading
Loading