83 / 90

Day 83: 科学化 Agent 评测 II —— 混杂因素、失败归因与诚实解读

正确解读测量证据:隔离混杂变量、把失败归因于可观察原因、报告不确定性而非排名。

智能体工程与科学评测 480 分钟有效研习(8 小时)
01 120 分钟

混杂分析:模型、Harness、配置与样本量上限

Agent 辅助工程检查

前置要求

Day 82 的注册协议文档。

学习目标

枚举并控制混杂变量——模型身份与固定 revision、解码配置、Harness 与工具面、提示上下文、样本量——使观察到的差异不被错误归因于单一原因。

操作指引

学习来源:在本活动现有的阅读与练习时段内,参考 Demystifying evals for AI agents 的 Types of graders for agents; capability vs. regression evals; repeated-trial reliability,用自己的话解释一处与本地任务的联系。保留现有练习与验收检查;若外部资料无法访问,使用课程自写的解释。1. 建立混杂变量登记表,列:变量、观测值、受控/自由、估计影响方向。须包含模型 ID+revision、temperature/seed、上下文长度、工具 schema 版本、重试策略、墙钟时间波动。
2. 量化样本量上限:在 6 个任务的套件上,一个结果翻转会使成功率移动约 17 个百分点;计算 6/6 的 Wilson 区间,看看诚实范围有多宽。
3. 写出报告规则:n 小时报告原始计数与区间,绝不做绝对工具排名。
4. 用双轴对比表把 Harness 效应与模型效应分开;无法隔离的格子标“混杂(confounded)”,不要猜。

自主演练与记录

产出 confounder_register.md:至少列出六个变量的受控/自由状态,并附样本量计算说明为何 6 个任务撑不起排名结论。

独立掌握标准

说明一次比较控制了哪些变量、放开了哪些变量,并拒绝样本撑不住的排名结论。

权威源资源与权利证明

linking Anthropic copyright; no open reuse license verified linking only; no reproduction

Demystifying evals for AI agents

作者 / 机构: Anthropic Engineering | 原始出处链接 ↗

对应章节 / 时间戳: Types of graders for agents; capability vs. regression evals; repeated-trial reliability

验证版本与日期: Public edition checked 2026-11-01; moving pages may change

入选理由:

Teaching-oriented task/trial/grader/outcome distinctions and a staged eval-building workflow complement the original benchmark definitions. No vendor product is required for the local exercises.

来源前置条件:

Bounded agent loops, task outcomes, traces and deterministic acceptance tests.

安全回退方案(离线弹性):

Use the original localized explanations, exercises and checks already present in this activity; no external account or purchase is required for that fallback.

对比候选资源与选型分析 (2)
SWE-bench ↗ compared_alternative [Open Access / CC BY 4.0]

Retained for issue-to-patch fail-to-pass definitions; not a general teaching workflow.

tau-bench ↗ compared_alternative [Open Access / CC BY 4.0]

Retained for the exact pass^k definition; practitioner guidance cannot replace the paper's metric semantics.

linking Open Access / CC BY 4.0

tau-bench: A Benchmark for Tool-Agent-User Interaction in Real-World Domains

作者 / 机构: Shunyu Yao, Noah Shinn, Pedram Razavi, Karthik Narasimhan | 原始出处链接 ↗

对应章节 / 时间戳: Section 3 τ-bench: A benchmark for Tool-Agent-User Interaction (pass^k definition); Section 4.2 Key Characteristics; Section 5 Experiments (pass^k results)

验证版本与日期: ICLR 2025 / arXiv:2406.12045v2 (Verified: 2026-10-30)

入选理由:

Introduces pass^k consistency metrics and database-state outcome checks for tool-agent-user interaction, separating reliable task completion from single lucky runs.

来源前置条件:

Tool-calling APIs, conversational agents, and policy-following evaluation.

安全回退方案(离线弹性):

Consistency metrics and state-based outcome checking are re-implemented on the curriculum deterministic fixture for offline practice.

对比候选资源与选型分析 (2)

Stateful tool-use evaluation with milestone events; tau-bench additionally models a simulated user and reports pass^k reliability.

Berkeley Function-Calling Leaderboard (BFCL) ↗ compared_alternative [Apache 2.0 (Gorilla project)]

Live leaderboard for function-call correctness across languages and parallel calls; tau-bench adds policy adherence and multi-trial consistency.

linking Open Access / CC BY 4.0

AgentBench: Evaluating LLMs as Agents

作者 / 机构: Xiao Liu, Hao Yu, Hanchen Zhang, Yifan Xu, Xuanyu Lei, Hanyu Lai, Yu Gu, Hangliang Ding, Kaiwen Men, Kejuan Yang, et al. | 原始出处链接 ↗

对应章节 / 时间戳: Section 4.1 Evaluation Setup and Section 4.3 Analysis

验证版本与日期: ICLR 2024 / arXiv:2308.03688v2 (Verified: 2026-10-30)

入选理由:

First systematic multi-environment benchmark measuring LLM-as-agent ability across eight interactive settings, establishing fixed task suites, environment-specific scoring, and comparable evaluation conventions.

来源前置条件:

LLM prompting, tool-use environments, and multi-step task decomposition.

安全回退方案(离线弹性):

The curriculum fixes its own six-task evaluation suite with deterministic-v1 fixture analogs, so all protocol-design practice runs offline without reproducing AgentBench environments.

对比候选资源与选型分析 (2)

Real computer-control benchmark for open-ended desktop tasks; AgentBench covers a wider environment spectrum for foundational evaluation design.

Mind2Web: Towards a Generalist Agent for the Web ↗ compared_alternative [Open Access]

Generalist web-agent benchmark with 2,350 tasks; AgentBench provides broader multi-domain coverage for studying evaluation protocol design.

02 120 分钟

基于 Action/Observation 轨迹的失败归因分类法

独立掌握检查(无 AI 辅助)

前置要求

Day 83 Activity 1 的混杂登记表。

学习目标

用已记录的 action/observation 轨迹把每个失败归因到可观察原因类——绝不靠对隐藏推理的猜测——并把每个在线任务映射到其确定性对照的期望契约。

操作指引

1. 定义分类类目:工具 schema 违规、未注册工具调用、资源缺失、权限拒绝、重试/步数预算耗尽、过早终止、不诚实终止。
2. 对六个在线任务逐一写下 deterministic_analog 的期望值与观察到的轨迹字段(status、steps、retries、termination_reason)。
3. 把每个失败恰好归因到一个主类,并附上能证明该归因的轨迹证据指针。
4. 归因模糊的标“未决(unresolved)”,不要硬贴标签;未决项转为下次协议修订的问题清单。
5. 输出 failure_taxonomy.json:逐任务类目、证据指针与歧义标记。

自主演练与记录

编写 failure_taxonomy.json,将每个契约任务的结果归因到一个分类类目,附轨迹证据指针;证据不足时诚实标注 unresolved。

独立掌握标准

按可观察轨迹证据分类失败,证据不足的案例诚实地保持未决。

权威源资源与权利证明

linking Open Access / CC BY 4.0

SWE-bench: Can Language Models Resolve Real-World GitHub Issues?

作者 / 机构: Carlos E. Jimenez, John Yang, Alexander Wettig, Shunyu Yao, Kexin Pei, Ofir Press, Karthik R. Narasimhan | 原始出处链接 ↗

对应章节 / 时间戳: N/A

验证版本与日期: ICLR 2024 / arXiv:2310.06770v3 (Verified: 2026-10-30)

入选理由:

Defines the standard pattern this block teaches: a bounded issue statement paired with executable fail-to-pass tests as verifiable acceptance criteria for agent-produced changes.

来源前置条件:

Unit testing, issue descriptions, and repository evaluation vocabulary.

安全回退方案(离线弹性):

The acceptance-criteria pattern is exercised locally through the Ticket 22 fixture scorer and the Ticket 24 regression exercise without external datasets.

对比候选资源与选型分析 (2)
HumanEval: Evaluating Large Language Models Trained on Code ↗ compared_alternative [arXiv non-exclusive license / Open Access]

Function-level synthesis benchmark; SWE-bench models the repository-scoped issue-to-diff workflow that this delivery block rehearses.

Multi-SWE-bench: A Multilingual Benchmark for Issue Resolving ↗ compared_alternative [Open Access / CC BY 4.0]

Extends issue resolution to multiple programming languages; the original Python-centric SWE-bench provides a cleaner pedagogical anchor.

linking MIT

OpenAI Evals: Framework for Evaluating LLMs and Contamination Checks

作者 / 机构: OpenAI Research | 原始出处链接 ↗

对应章节 / 时间戳: N/A

验证版本与日期: OpenAI Evals Repository (Verified: 2026-10-30)

入选理由:

Standardized evaluation repository specifying rigorous separation of eval prompts, canary GUID strings, and contamination test protocols.

来源前置条件:

Python, evaluation harnesses (MMLU, GSM8K), JSONL datasets.

安全回退方案(离线弹性):

Canary GUID matching, token set intersection, and leak detection scripts are implemented in the curriculum.

对比候选资源与选型分析 (2)
EleutherAI LM Evaluation Harness ↗ compared_alternative [MIT]

Widely adopted evaluation harness; OpenAI Evals provides explicit canary guidance and contamination check specifications.

Hugging Face Lighteval ↗ compared_alternative [MIT]

Modern lightweight eval framework; OpenAI Evals illustrates standard test-set integrity guarantees.

03 120 分钟

成本、重试与延迟核算及工具行为审计

Agent 辅助工程检查

前置要求

Day 83 Activity 2 的失败分类法。

学习目标

测量逐任务成本面——步数、重试、墙钟时间、可用时的 token 数、仅授权时的费用——并独立于任务结果审计工具调用正确性。

操作指引

1. 建立成本台账,列:task_id、status、steps、retries、elapsed_s、tokens_in、tokens_out、cost_usd、termination_reason。
2. 确定性数值取自夹具运行;因无授权在线调用,token 与费用字段记 null。
3. 断言每个任务都遵守已声明的步数与重试上限;即使任务成功,任何无界重试循环也记为预算失败。
4. 单独审计工具行为:核验每个已记录 action 名都在 allowed_tools 中、每个 arguments 载荷都是 JSON 对象;该结果独立于 outcome_passed 报告。
5. 说明为什么“工具正确、任务失败”与“工具违规、侥幸通过”都必须出现在诚实的报告里。

自主演练与记录

产出 cost_ledger.csv 与一行工具审计结论,对每个已记录任务区分任务结果与工具正确性。

独立掌握标准

把成本与工具行为当作一等指标核算,与裸任务成功率分离。

权威源资源与权利证明

linking arXiv non-exclusive license / Open Access

WebArena: A Realistic Web Environment for Building Autonomous Agents

作者 / 机构: Shuyan Zhou, Frank F. Xu, Hao Zhu, Xuhui Zhou, Robert Lo, Abishek Sridhar, Xianyi Cheng, Tianyue Ou, Yonatan Bisk, Daniel Fried, Uri Alon, Graham Neubig | 原始出处链接 ↗

对应章节 / 时间戳: Section 3.2 Evaluation Annotation (functional correctness checks)

验证版本与日期: ICLR 2024 / arXiv:2307.13854v4 (Verified: 2026-10-30)

入选理由:

Defines reproducible web tasks scored by functional outcome rather than reference-string matching, grounding observable action/observation evidence for agent evaluation.

来源前置条件:

Web navigation, browser action spaces, and functional correctness checking.

安全回退方案(离线弹性):

The curriculum records action/observation traces on its own deterministic fixture, reproducing outcome-check discipline without hosting web environments.

对比候选资源与选型分析 (2)

Enterprise-workflow web benchmark; WebArena offers broader self-hosted site diversity for foundational protocol study.

Extends WebArena to visual grounding; WebArena remains the base reference for action-space and functional scoring design.

linking Open Access / CC BY 4.0

tau-bench: A Benchmark for Tool-Agent-User Interaction in Real-World Domains

作者 / 机构: Shunyu Yao, Noah Shinn, Pedram Razavi, Karthik Narasimhan | 原始出处链接 ↗

对应章节 / 时间戳: Section 3 τ-bench: A benchmark for Tool-Agent-User Interaction (pass^k definition); Section 4.2 Key Characteristics; Section 5 Experiments (pass^k results)

验证版本与日期: ICLR 2025 / arXiv:2406.12045v2 (Verified: 2026-10-30)

入选理由:

Introduces pass^k consistency metrics and database-state outcome checks for tool-agent-user interaction, separating reliable task completion from single lucky runs.

来源前置条件:

Tool-calling APIs, conversational agents, and policy-following evaluation.

安全回退方案(离线弹性):

Consistency metrics and state-based outcome checking are re-implemented on the curriculum deterministic fixture for offline practice.

对比候选资源与选型分析 (2)

Stateful tool-use evaluation with milestone events; tau-bench additionally models a simulated user and reports pass^k reliability.

Berkeley Function-Calling Leaderboard (BFCL) ↗ compared_alternative [Apache 2.0 (Gorilla project)]

Live leaderboard for function-call correctness across languages and parallel calls; tau-bench adds policy adherence and multi-trial consistency.

04 120 分钟

评估:附不确定性披露的数据解读备忘

独立掌握检查(无 AI 辅助)

前置要求

Day 83 Activities 1-3。

学习目标

交付解读备忘:报告确定性基线、混杂登记表、分类计数与显式不确定性——不做绝对工具排名,不在无受控消融的情况下做 Harness 对模型的归因。

操作指引

1. 撰写 memo.md,章节:已测证据、混杂变量、失败分类计数、成本核算、声明的不主张事项。
2. 精确报告 Day 82 重算的确定性基线指标;在线结果描述为待授权不可得。
3. 陈述不确定性论证:n 小、区间宽、一次翻转显著改变比率——因此报计数而非排名。
4. 列出声明的不主张事项:无“工具 X 胜过工具 Y”、无受控消融不做“Harness 导致失败”归因、不以自报声称成功。
5. 备忘中每个数字都要附产物路径。

自主演练与记录

提交 memo.md:包含重算的基线指标、混杂登记表、分类计数、一段不确定性论述,以及至少三条显式不主张事项。

独立掌握标准

独立撰写解读备忘,其主张严格限定在已测证据之内。

权威源资源与权利证明

linking Open Access / CC BY 4.0

AgentBench: Evaluating LLMs as Agents

作者 / 机构: Xiao Liu, Hao Yu, Hanchen Zhang, Yifan Xu, Xuanyu Lei, Hanyu Lai, Yu Gu, Hangliang Ding, Kaiwen Men, Kejuan Yang, et al. | 原始出处链接 ↗

对应章节 / 时间戳: Section 4.1 Evaluation Setup and Section 4.3 Analysis

验证版本与日期: ICLR 2024 / arXiv:2308.03688v2 (Verified: 2026-10-30)

入选理由:

First systematic multi-environment benchmark measuring LLM-as-agent ability across eight interactive settings, establishing fixed task suites, environment-specific scoring, and comparable evaluation conventions.

来源前置条件:

LLM prompting, tool-use environments, and multi-step task decomposition.

安全回退方案(离线弹性):

The curriculum fixes its own six-task evaluation suite with deterministic-v1 fixture analogs, so all protocol-design practice runs offline without reproducing AgentBench environments.

对比候选资源与选型分析 (2)

Real computer-control benchmark for open-ended desktop tasks; AgentBench covers a wider environment spectrum for foundational evaluation design.

Mind2Web: Towards a Generalist Agent for the Web ↗ compared_alternative [Open Access]

Generalist web-agent benchmark with 2,350 tasks; AgentBench provides broader multi-domain coverage for studying evaluation protocol design.

linking MIT

OpenAI Evals: Framework for Evaluating LLMs and Contamination Checks

作者 / 机构: OpenAI Research | 原始出处链接 ↗

对应章节 / 时间戳: N/A

验证版本与日期: OpenAI Evals Repository (Verified: 2026-10-30)

入选理由:

Standardized evaluation repository specifying rigorous separation of eval prompts, canary GUID strings, and contamination test protocols.

来源前置条件:

Python, evaluation harnesses (MMLU, GSM8K), JSONL datasets.

安全回退方案(离线弹性):

Canary GUID matching, token set intersection, and leak detection scripts are implemented in the curriculum.

对比候选资源与选型分析 (2)
EleutherAI LM Evaluation Harness ↗ compared_alternative [MIT]

Widely adopted evaluation harness; OpenAI Evals provides explicit canary guidance and contamination check specifications.

Hugging Face Lighteval ↗ compared_alternative [MIT]

Modern lightweight eval framework; OpenAI Evals illustrates standard test-set integrity guarantees.