benchmarking · Agent Skill
PhyAgentOS/skills/benchmarking/SKILL.md
- 进入 Agent skills summary,按需加载 Markdown 指令。
- 选择 target / policy skillruntime,发现 task list。
- 创建 pending sessions,等待标准 Runtime 回写。
- 聚合日志与 artifacts,计算指标并撰写报告。
Benchmarking 是 Agent Control Plane 中的流程型技能:它检查 Runtime 是否存在可执行的 simulation + policy 组合,发现任务、生成 Sessions,并在 Watchdog 完成执行后聚合证据、计算指标、生成实验报告。
PhyAgentOS/skills/benchmarking/SKILL.md
SKILLRUNTIME.md → runtime_kind: policy
SKILLRUNTIME.md 条目,也不直接实例化 SessionRunner。它通过现有 session 协议复用 Runtime 的执行与回写能力。传入 workspace、独立 runtime_workspace、runtime_enabled 和 target enabled overrides。
enabled == true配置关闭时立即不可用。target_kind: simulation读取 runtime workspace 的 TARGETS.md。enabled: true应用 runtime_target_enabled 覆盖。supported ∩ policy IDs必须支持真实存在的 policy skillruntime。requires.runtime = { enabled: true, target_kind: "simulation", skillruntime_kind: "policy" }。若 TARGETS.md 或 SKILLRUNTIME.md 缺失/无效,技能保持不可用。读取 RUNTIME、TARGETS、SKILLRUNTIME、SESSIONS、LOG。
选择 enabled simulation target 与其支持的 policy skillruntime。
优先调用 target.describe 获取 task_list;失败时回退静态 config。
按 task × init-state 生成唯一 pending session,保留既有记录。
Watchdog claim、preflight、SessionRunner、policy loop。
回写 SessionResult、LOG.md 和每个 episode artifact。
聚合成功率、steps、reward、错误分布,生成论文风格报告。
status: pending
target_ref · skillruntime_ref · task_description · routing · execution
claim → health/preflight → running → finalizing;拒绝不兼容组合。
target lifecycle + policy inference + adapter/bridge + execution status。
SessionResult → episode.json → LOG.md → SESSIONS.md final state。
最终 status、result.success、num_steps、return_value、artifact_dir、error_code。
按 session_id 索引的历史摘要、目标、状态、延迟、错误和 artifact 路径。
benchmark、task/init-state、success、reward、steps、chunks 和 metadata。
episode.json["benchmark"] → result.metadata.final_status → session-level result。静态 task discovery 或缺失指标必须在报告中显式披露。