[阶段二主 PR] Sandbox Checkpoint 与任务进度恢复 - #60
Merged
Merged
Conversation
Persist coordinated Sandbox checkpoints and native Codex/Claude Code sessions with fenced recovery reservations and original deadlines. Preserve admission, timeout cleanup, snapshot barriers and aggregate metrics. Document deferred ACS acceptance.
PixelCores
marked this pull request as ready for review
September 24, 2026 11:49
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
实现
为 Harbor 评测增加默认关闭的恢复能力。Runner 或执行基础设施故障后,从最近完整的 Runner 材料和 Sandbox 文件系统快照启动独立执行,保留原 trial/session 身份及原始截止时间,避免从头重跑已完成的 trial。
已纳入阶段一基线并推送实现提交
a88df586eb0f6496f1393bad7bbe2e8ad23c1e5f。PR 保持 Draft;真实 ACS 验收留待维护者后续执行。主要行为
traits.eval.recovery;必须显式设置replaySafe: true。首批固定 Harbor 0.22.0 + Codex 0.154.0 / Claude Code 2.1.281,其他 Agent/版本拒绝启用。验证
go test ./... -race -cover全仓通过。go vet通过;此前全仓 vet、服务端构建、安装脚本、部署与 Helm 模板检查通过。风险与后续真实 ACS 验收
恢复可能重放未确认完成的工具调用,不保证外部副作用 exactly-once,也不回滚外部系统。Checkpoint 间隔不是 RPO 保证;缺乏可信终止证据的节点丢失场景会阻止自动恢复。控制器中断会延迟实际回收。
以下项目由维护者后续专门验证:
取得这些证据前,不宣称生产端到端恢复或容量验收通过。