Skip to content

ageval v0.10.0

Latest

Choose a tag to compare

@ffy6511 ffy6511 released this 26 Oct 16:35
· 101 commits to main since this release

An interrupted Attempt continues from the last completed step. --resume keeps that Attempt when result.json is absent and the lock digest matches. --resume-suite recovers an unfinished suite slot in place and still skips slots that settled as PASS, FAIL, or ERROR. A live environment that still matches the last completed step is reused. A lost environment is restored from the latest checkpoint. If the environment is still running the Attempt, the command exits 2 and does not write result.json. A settled Attempt stays immutable. This release also runs unmodified Harbor tasks, pinned git dataset sources, terminus-2, and OpenHands, and overlaps distinct sessions up to limits.agent_concurrency (omit means 1). Forking an Attempt from an earlier step has no command.

Breaking

  • Zero timeout: model.timeout: 0 and a zero request timeout fail lock. An omitted timeout stays empty on the spec. Executors fill 180 seconds from the clock table.
  • Unknown executor options: An unknown key under options fails lock and names the nearest field.

Feat

  • Resume an unsealed Attempt: Each step is appended to .ageval/runs/<attempt_id>/activity.jsonl before its effect settles, and /attempt/workspace and /attempt/home are checkpointed when the step settles. ageval run <dataset> --task <id> --resume <attempt_id> continues that Attempt. --resume-suite does the same for an unfinished slot whose activity header matches the suite, task, attempt index, and lock digest. A slot with no matching header starts a new Attempt. openai-http, anthropic-http, miniswe, and terminus-2 rebuild the next model context from the activity log. acp, OpenHands, and dsh resume the session stored under the attempt home. nooa continues from the logged transcript. Completed calls are not run again. Wall-clock time and invocation count already spent stay charged. After result.json and trajectory.jsonl exist, checkpoints/ is removed unless --keep-workspace is set. activity.jsonl stays.
  • Harbor tasks: --layout harbor locks and runs an unmodified Harbor task directory or a parent of task directories. instruction.md goes once to role solver. Scoring reads the reward file. --oracle runs solution/solve.sh and does not call the agent. ageval view opens that tree and its suite runs.
  • Git dataset refs and prepare: ageval run and ageval lock accept a pinned git source (github:org/repo@<tag|sha>, optional #<subdir>). Branch refs are rejected. ageval publish --repo registers the source on the Hub without uploading files. Declared assets are downloaded and checked by sha256. A prepare script runs only with --allow-prepare or a trusted dataset.
  • terminus-2 and OpenHands: terminus-2 runs the episode on the host and drives tmux through environment.exec. OpenHands runs the pinned SDK inside the attempt environment. Both ship as plugins with a default agent package.
  • Concurrent sessions: limits.agent_concurrency caps overlapping run-phase invokes. Omit means 1. Calls on one session stay in order. Distinct sessions overlap on acp and openai-http. The parent can cancel an in-flight invoke.
  • Collect before scoring: evaluation.collect copies declared paths before evaluator.py runs. A missing copy fails the evaluate phase.
  • Docker limits and compose: Task cpu, memory, and gpu limits apply to the attempt container. Compose can set network_mode, the main service environment, and cap_add. The attempt container is hostname main on that network.
  • ACP home entries and Node floor: $AGEVAL_HOME/acp-entries.json adds entry ids and cannot override a packaged id. The process started is the pinned package binary. An entry can declare a Node floor. The attempt image installs Node 22 when that floor is unmet. When ACP sends no usage, a declared session journal supplies the terminal counts, including on timeout and protocol error.
  • Suite pace in Viewer: A suite job can page its task table and plot task pace. Job selections stay in the address.

Fix

  • Docker file copy: Downloads that cannot be read through a bind mount use docker cp.
  • Recovery redaction: Home files are redacted before they enter a checkpoint blob. A resumed activity log uses the attempt redaction sentinels.
  • Stall clock: The phase clock stays frozen until the last overlapping stall ends. A cancelled invoke seals as invoke_cancelled.

中文

父进程在写出 result.json 之前停掉时,同一次 Attempt 从最后完成的一步继续。--resume 在锁定摘要仍然一致时保留这个 Attempt。--resume-suite 对尚未结束的槽位做同样的事,已经以 PASS、FAIL 或 ERROR 结束的槽位仍然跳过。仍与最后一步对齐的环境会被原地接回。环境丢失时,从最近的检查点恢复。环境还在跑这次 Attempt 时,命令以 exit 2 结束,不写 result.json。已经封存的 Attempt 不可改写。本版本还可以直接跑未改过的 Harbor 任务和钉版 git dataset,并接入 terminus-2 与 OpenHands。不同 session 可并行到 limits.agent_concurrency(省略是 1)。从更早的步骤 fork 出新 Attempt 还没有命令。

破坏性变更

  • 超时为 0: model.timeout: 0 和请求超时为 0 时 lock 失败。没写的 timeout 在 Spec 里仍是空,executor 按时钟表填 180 秒。
  • 未知 executor 选项: options 里的未知键会让 lock 失败,并指出最接近的字段名。

新功能

  • 续跑未封存的 Attempt: 每一步在产生外部效果之前写入 .ageval/runs/<attempt_id>/activity.jsonl,该步落定时为 /attempt/workspace 和 /attempt/home 保存检查点。ageval run <dataset> --task <id> --resume <attempt_id> 继续这一次运行。--resume-suite 对活动日志头与本次 suite、task、attempt index 和锁定摘要都匹配的未结束槽位做同样的事。没有匹配日志的槽位新开一次 Attempt。openai-http、anthropic-http、miniswe 和 terminus-2 从活动日志重建下一轮模型上下文。acp、OpenHands 和 dsh 恢复 Attempt home 里的会话。nooa 从已记录的对话继续。已经完成的调用不会再执行。已经消耗的墙钟时间和调用次数仍然计入限额。result.json 和 trajectory.jsonl 都写好之后,除非加了 --keep-workspace,checkpoints/ 会被删掉。activity.jsonl 仍留在目录里。
  • Harbor 任务: --layout harbor 锁定并运行未改过的 Harbor 任务目录,或一叠任务目录的父目录。instruction.md 交给角色 solver,只调用一次。评分读 reward 文件。--oracle 跑 solution/solve.sh,不再调用 Agent。ageval view 打开这棵树和它的 suite。
  • Git dataset 与 prepare: ageval run 和 ageval lock 接受钉版 git 源(github:org/repo@<tag|sha>,可选 #<subdir>)。分支引用会被拒绝。ageval publish --repo 只把源注册到 Hub,不上传文件。声明的 assets 会下载并按 sha256 校验。prepare 脚本只有在 --allow-prepare 或受信任的 dataset 上才会运行。
  • terminus-2 与 OpenHands: terminus-2 在本机跑 episode,tmux 经 environment.exec 驱动。OpenHands 在 Attempt 环境里跑固定版本的 SDK。两者都以插件和默认 Agent 包提供。
  • 并行 session: limits.agent_concurrency 限制 run 阶段同时进行的调用。省略是 1。同一 session 内的调用保持顺序。不同 session 在 acp 和 openai-http 上可以重叠。父进程可以取消还在进行的调用。
  • 评分前收集: evaluation.collect 在 evaluator.py 之前拷贝声明的路径。拷贝缺失时 evaluate 阶段失败。
  • Docker 限额与 compose 网络: 任务上的 cpu、memory、gpu 限额作用到 Attempt 容器。Compose 可以设置 network_mode、main 服务的环境变量和 cap_add。Attempt 容器在该网络上的主机名是 main。
  • ACP 本机 entry 与 Node 下限: $AGEVAL_HOME/acp-entries.json 可以增加 entry id,不能覆盖包内 id。启动的是钉住的包二进制。entry 可以声明 Node 下限。下限不满足时,Attempt 镜像安装 Node 22。ACP 没有送出 usage 时,声明的 session journal 提供终端计数,超时和协议错误路径上也保留。
  • Viewer 里的 suite 节奏: suite 的任务表可以翻页,并画出每题耗时。Jobs 里的选择留在地址栏。

修复

  • Docker 拷文件: 绑载读不到的下载改走 docker cp。
  • 恢复时的脱敏: home 里的文件在进入检查点之前脱敏。续跑重新打开的活动日志使用这次 Attempt 的脱敏标记。
  • 等待时钟: 阶段时钟停到最后一段重叠等待结束。被取消的调用封存为 invoke_cancelled。

What's Changed

  • feat(acp): register an ACP CLI from the home file by @ffy6511 in #278
  • fix(acp): one-line pin check and retain usage on timeout by @ffy6511 in #280
  • feat(sdk): bound concurrent agent sessions inside one Attempt by @ffy6511 in #282
  • feat: plugin CI, strict executors, and one clock table by @ffy6511 in #292
  • feat: frozen executor options, transport-only retry, typed usage by @ffy6511 in #293
  • chore: P2 evidence TS schema, ratchets, regressions, verify skill by @ffy6511 in #294
  • feat(runtime): collect attempt and sidecar paths before evaluate by @ffy6511 in #300
  • feat(runtime): compose attempt network_mode/env/cap parity (not agent-in-main) by @ffy6511 in #298
  • feat(runtime): pass task cpus/memory/gpus limits to docker by @ffy6511 in #299
  • Promote canary: collect, compose parity, docker limits, and Viewer pace by @ffy6511 in #301
  • feat: promote canary — git dataset sources and gated prepare by @ffy6511 in #307
  • feat(acp): enforce declared Node runtime floors at bake by @ffy6511 in #311
  • feat(runtime): lock and run unmodified Harbor tasks by @ffy6511 in #310
  • feat(runtime): recover an unsealed Attempt in place by @ffy6511 in #319

Full Changelog: v0.9.0...v0.10.0