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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,10 @@ Keep personal experiment notes, scores and artifacts in user-owned storage. The

Compare methods under the same resource rules, keeping execution, evaluation validity and cleanup separate. Only valid scores enter aggregates.

Find an existing integration with `orbit bench catalog`, inspect `orbit bench catalog <family>`,
then follow `orbit bench resources <family>`. For a new benchmark, start with `orbit bench init`.
See [discovery and onboarding](docs/guides/benchmark-onboarding.md) for setup, integration routes and calibration.

New installation: open **Benchmarks → Prepare resources** to choose any supported benchmark,
download from its official sources or reuse local files, complete any upstream access requirements,
and register the prepared setup. Specialized native prerequisites are listed explicitly.
Expand Down
4 changes: 4 additions & 0 deletions README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,10 @@ daemon 只监听 `127.0.0.1`。从其他机器查看时用 SSH 隧道:

在相同资源规则下比较方法,分别保留执行结果、评分有效性与清理状态。只有有效分数计入统计。

用 `orbit bench catalog` 查找已有接入,`orbit bench catalog <family>` 查看范围,
再按 `orbit bench resources <family>` 准备资源。新 benchmark 可从 `orbit bench init` 开始。
发现、准备、接入路线与校准见 [入门指南](docs/guides/benchmark-onboarding.md)。

| 接入方式 | 适用场景 | 文档 |
| --- | --- | --- |
| **Harbor 格式** | [TB-Science](https://github.com/harbor-framework/terminal-bench-science)、Terminal-Bench 及其他 Harbor 数据集;具体支持范围由 `bench tasks` 列出 | [适配指南](docs/guides/bench-adapter.md) |
Expand Down
2 changes: 1 addition & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ The retired C1–C7 categories, L0/L1/L2 tiers and fidelity levels appear only i

| Topic | Guides |
| --- | --- |
| Benchmarks | [Prepare resources](guides/benchmark-resources.md) · [Add a benchmark](guides/bench-adapter.md) · [Frozen task sets](guides/task-sets.md) · [Evolution gate](guides/bench-gate.md) · [Evolution pilot](guides/evolution-pilot.md) · [Reference evolver](guides/reference-evolver.md) · [Evolution baselines](guides/evolution-baselines.md) · [Isolated evolver](guides/isolated-evolver.md) · [Cross-environment studies](guides/evolution-study.md) · [Transfer matrix](guides/transfer-matrix.md) · [Verdict core](guides/gate-core.md) · [Availability of original protocols](guides/benchmark-availability.md) · [HLE with tools](../examples/bench-adapters/hle/) · [GUI evaluation in Web](guides/gui-bench-web.md) · [Python SDK](../examples/sdk/README.md) · [Adapter examples](../examples/bench-adapters/) |
| Benchmarks | [Discover and onboard](guides/benchmark-onboarding.md) · [Prepare resources](guides/benchmark-resources.md) · [Add a benchmark](guides/bench-adapter.md) · [Frozen task sets](guides/task-sets.md) · [Evolution gate](guides/bench-gate.md) · [Evolution pilot](guides/evolution-pilot.md) · [Reference evolver](guides/reference-evolver.md) · [Evolution baselines](guides/evolution-baselines.md) · [Isolated evolver](guides/isolated-evolver.md) · [Cross-environment studies](guides/evolution-study.md) · [Transfer matrix](guides/transfer-matrix.md) · [Verdict core](guides/gate-core.md) · [Availability of original protocols](guides/benchmark-availability.md) · [HLE with tools](../examples/bench-adapters/hle/) · [GUI evaluation in Web](guides/gui-bench-web.md) · [Python SDK](../examples/sdk/README.md) · [Adapter examples](../examples/bench-adapters/) |
| Run and review embodied evaluations | [Quickstart](guides/embodied-quickstart.md) · [Benchmark coverage and model runs](guides/embodied-compatibility.md) · [Setup by benchmark](../examples/bench-adapters/embodied/README.md) · [Fixed batches](guides/embodied-batches.md) · [LIBERO suites](guides/libero-suites.md) |
| Extend embodied evaluations | [Policy and benchmark onboarding](guides/embodied-onboarding.md) · [Policy integration checks](guides/policy-integration-checks.md) · [Development checks](guides/embodied-development.md) |
| Runs and machines | [Trajectories](guides/trajectories.md) · [Trajectory export](guides/trajectory-export.md) · [Checkpoints](guides/checkpoints.md) · [Multi-node](guides/multi-node.md) · [Docker userns-remap](guides/docker-userns-remap.md) |
Expand Down
27 changes: 27 additions & 0 deletions docs/catalog.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,33 @@ with the shared response shape in [contracts/bench.ts](../packages/orbit/src/con
This document links the supported routes and explains how to read the catalog. [Six dimensions](design.md#917-benchmark-六维分类-v12026-11-09)
· [Catalog contract and behavior](design.md#918-已适配-benchmark-产品目录2026-11-09)

Discover the same product library from the CLI:

```bash
orbit bench catalog
orbit bench catalog --search "browser tool"
orbit bench catalog --filter domains=software --filter interfaces=terminal
orbit bench catalog humaneval
orbit bench catalog --registered --json
```

Lists stay compact; a family detail shows profiles, integration scope, verification facts and
source links, local registrations, and resource commands. Filters use the field/value IDs below
and in `contracts/taxonomy.ts`; repeat a field for OR, combine fields for AND. One profile must
satisfy all fields. `unlabeled` matches unknown fields and `__none__` matches explicitly empty
fields. Search requires every space-separated word, ignoring case. No matches is a normal empty
result. JSON retains `{ supported, entries }`: filtered product families and only their explicitly
associated local registrations. `--registered` means an associated registration exists; it does not
establish readiness. `orbit bench ls` remains the list of all local registrations, including custom
benchmarks outside the product library. Continue with the [onboarding guide](guides/benchmark-onboarding.md).

In Web cards, select up to four families and choose **Compare selected**. The `compare` URL
parameter keeps the selection when search, taxonomy or local setup filters change; hidden selected
families remain in the comparison. Each family has an independent protocol-profile selector.
The table compares protocol labels, scope, verification sources and local setup facts, without score
rankings. Use **Add your own benchmark** to generate a teaching template through the daemon;
creation does not register it or start evaluation. See the [onboarding guide](guides/benchmark-onboarding.md).

The public classification has **six independent dimensions**, each with controlled values;
these are not six mutually exclusive benchmark categories. The Web shows a card for each dimension.

Expand Down
47 changes: 47 additions & 0 deletions docs/design.md
Original file line number Diff line number Diff line change
Expand Up @@ -779,6 +779,23 @@ cwd 默认为代码快照(有快照时),否则 `project`,再否则 Run
取消 / 超时向进程组发 SIGTERM(宽限后 SIGKILL)并停止子容器;只有进程组与带标签的子容器都消失才释放租约。
daemon 重启后按 pid + 启动时间重新接管进程。运行中的 process Run 日志通过 API 读取时按 §5 脱敏,结束后在磁盘上统一脱敏。

**教学模板**:`orbit bench init <name> <directory> [--template adapter|manifest]` 经 client 调用
`POST /bench/init`(`BenchInitRequest` / `BenchInitResult`)。daemon 是文件写者,在父目录已存在的全新绝对路径
生成 CPU 合成任务、resources.json、benchmark.json、README 与协议入口;默认 adapter,不下载、不登记、不启动。
拒绝已有目标、symlink 祖先及 Orbit home/data 内目标,以同目录暂存与 rename 发布,失败清理暂存。
adapter 的 solve 与 verify 独立,私有 grader 仅 verify 挂载;manifest 仅演示 empty/oracle,由可信原生 runner
评分,verify 复核结果证据,不重跑 grader。默认校准使用 empty/oracle;adapter 也可演示 Agent solve。
模板校准只证明教学接线,不能表述为真实 benchmark 校准、官方评分等价或模型支持证明。
返回文件列表及 add-file / coverage / calibrate 后续命令,用户明确执行后才登记或运行。
`BenchInitResult.definition` 可选返回生成的 `BenchmarkInput`,供 Web 明确转入检查流程;旧 daemon 未返回时仍可上传生成文件。

**登记前检查**:`POST /benchmarks/check` 复用登记校验和 adapter tasks listing,返回
`BenchRegistrationCheck { definition, coverage, metrics, capabilities?, existing }`,不写登记、建 job 或创建 Run。
检查会在 daemon 主机执行 adapter 的 tasks 代码,应仅用于可信定义;这不是隔离执行、试跑或校准。
`POST /benchmarks?createOnly=true` 在异步 listing 前后均检查重名,再同步写既有 registry,防止检查期间产生的同名登记被覆盖。
不指定该参数保留既有替换行为;`existing` 只是检查时事实,不能替代最终 create-only 冲突检查。
CLI `bench add-file <file> --check` 只返回检查结果;`--create-only` 明确登记且拒绝重名,两参数互斥。

**接口**:API `GET/POST /benchmarks`、`DELETE /benchmarks/:name`、`GET /benchmarks/:name/tasks`、
`GET/POST /bench/jobs`、`GET /bench/jobs/:id`、`POST /bench/jobs/:id/{cancel,rescore}`、`GET /bench/compare?jobs=a,b`;
CLI `orbit bench add|ls|rm|tasks|run|jobs|show|cancel|rescore|compare [--metric]|usage`(`add --adapter <name|path> -c KEY=VALUE
Expand Down Expand Up @@ -1605,6 +1622,15 @@ Method 的定义与生命周期留待后续设计。[原信息架构调研](rese
矩阵是登记级准入,不代替逐任务的镜像、设备、资源和 adapter 运行前检查。
- API:保留 `GET /agents`;新增 `GET /agents/catalog`(能力、profile、证据、使用情况)与 `GET /bench/compatibility`。
本机探测版本不是历史 trial 的实跑版本;尚未记录的历史节点/版本不补造。
- `GET /bench/compatibility?benchmark=<name>` 对当前登记即时调用 adapter tasks,返回同一 `BenchCompatibility`
的单行 cells 与可选 `checked: { benchmark, at }` 来源标记;不取十分钟 catalog cache,也不带历史 trial 证据。
无参数保留旧矩阵语义。当前 cells 复用 `agentBlocker` 与 Agent 接受的凭据 kind 检查,仍不证明模型连通性。
- New Evaluation 选择环境后刷新任务并查询 targeted endpoint;Agent 与凭据在页面初载时加载。
手动 Refresh configuration checks 同时刷新任务、targeted 结果、Agent 与凭据。
仅使用 `checked.benchmark` 与当前环境一致的结果,旧 daemon 未提供标记时显示 unknown;切换/刷新保留配置草稿,
迟到结果不能串到另一环境。Configurations 与 Review 均展示反馈,已知 blocked 原因和所选 profile 的
harness/kind 不匹配会禁 Continue/提交;unknown、加载失败本身不阻断也不显示 ready,最终提交仍由 daemon 验证。
empty/oracle 等 controls、external 不套 CLI Agent cell;原生 Policy 继续走现有 CLI frozen-plan 路径。
- 原生 VLA 策略独立登记在 `PolicyDefinition`,已有 `GET /policies`;当前 Agents 页仍只读取 CLI 定义与历史 external
entrypoint,尚无原生 Policy 目录。后续可增加 VLA Policies 视图,列模型版本、可用配置与按 suite/recipe 验证的关系;
不能把历史 external 列表冒充已适配模型目录,也不能把 VLA 模型加入 benchmark 的六维词表。
Expand Down Expand Up @@ -1801,6 +1827,27 @@ Benchmarks 默认回答“Orbit 已经适配了哪些 benchmark,它们分别
评测历史也能浏览。目录不是新的运行注册表、安装器或成绩库;现有 daemon 仍是本地状态的唯一写者。
实施与验收记录见 [目录任务](tasks/20261109-benchmark-library.md),入口索引见 [catalog](catalog.md)。

- CLI `orbit bench catalog [family] [--search text] [--filter field=value] [--registered] [--json]`
复用 client `benchCatalog()` 与已有 HTTP API;默认输出精简家族表,指定 family 展示描述、协议 profiles、
接入范围、验证事实/来源、本地登记事实及 resources/prepare 命令。search 忽略大小写且各关键词 AND,
搜索身份、描述、suite、路线、标签与协议文字;未知/空 filter 拒绝,未知 family 或无匹配正常返回空。
JSON 保持 `{ supported, entries }`:筛选后产品及其 registrationNames 显式关联的本地条目。
`--registered` 只表示有关联登记,`bench ls` 仍列全部本地登记,含未进入产品目录的自定义接入。
- Web 产品目录提供共享 URL 的搜索、六维筛选、已登记/未登记筛选、列表/卡片视图、协议 profile 与展开详情。
卡片保持精简,详情承载支持范围、验证事实和本地 setup 选择;筛选与计数复用同一 profile 语义,
派生条目、搜索索引与筛选结果 memoize,不建立新的后端状态或登记路径。
- Web 家族选择最多四项,`compare=id1,id2` 与 `view=compare` 存于 URL;搜索、taxonomy 或本地登记筛选
改变时保留选择,隐藏项明确计数,未知 ID/超额项显示忽略说明。每个家族用 `compareProfile.<id>` 独立选择
一个协议 profile;对比展示该 profile 的六维标签与家族描述、suite、接入范围、验证来源、本地登记事实,
不新增分数、排名或能力断言。清空筛选不清空选择,移除家族/清空选择清理对应 profile 参数。
- Web `/benchmarks?mode=add` 显式提交 name/directory/template,经现有 `POST /bench/init` 生成教学文件。
表单校验名称和 daemon 本机绝对路径格式,最终路径与写入保护仍由 daemon 执行;pending 防止重复提交,
错误保留输入以便修正重试,离开页面不会取消已提交写入。成功展示文件列表、目录与可复制后续命令,
不自动登记、下载、启动或校准;教学、manifest 信任边界与 §7 一致。
通用 Import definition 可上传/粘贴最多 1 MiB JSON,生成结果可显式带入定义;调用 §7 的登记前检查后,
展示定义、任务覆盖、suite/原因、方法和指标,用户再次明确提交 create-only 登记。编辑/换文件撤销旧 review,
版本标记屏蔽迟到的检查响应;登记失败清空 review 要求重查。成功链接现有 setup coverage 与 Evaluate,
不自动建 job;家族专属 preparation 保留原路径。定义和路径不写 URL 或浏览器持久存储。
- 既有 `BenchCatalog` 增加 `supported[]` 产品目录,保留 `entries[]` 本地登记数据。Web 从同一个 HTTP 接口读取,
CLI 和旧调用方仍可使用登记数据。受控数据按 benchmark 族拆在 `bench/benchmarks/<family>.ts`,由 `bench/benchmarks/index.ts` 汇总,`contracts/bench.ts` 声明
`SupportedBenchmark`:id/name/description、具名 taxonomyGroups、integrations、verification、suites 与 registrationNames。
Expand Down
5 changes: 5 additions & 0 deletions docs/guides/bench-adapter.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

接入方式(`harbor`、`manifest`、`sdk`、`native`)与校准要求见 [design §9.10](../design.md)、§9.14。Agent 用的 skill:`plugin/skills/orbit-bench`。模型、判定规则与协议定义见 [design §7](../design.md#7-刷榜bench)。

先用 `orbit bench catalog` 查找已有接入,再查看 `orbit bench resources <family>`。
从发现、准备到新建模板与校准的完整路径见 [benchmark 入门](benchmark-onboarding.md)。
新建外部适配器可用 `orbit bench init my-bench /absolute/path/my-bench`;它只生成教学模板,
不会登记或启动任务。正式接入须替换合成任务、保留官方 grader,并重新验证真实协议。

## 0. 仓库内适配器的目录契约

本仓库自带的适配器放在 `examples/bench-adapters/<name>/`,一个 benchmark 一个目录。目录名就是产品目录里 `adapter("<name>")` 引用的名字。
Expand Down
Loading
Loading