From 1a7a44eb01d489ac150130f803ea881cac9296d0 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 17 Nov 2026 15:48:08 +0000 Subject: [PATCH 1/3] docs(eval): name the daily MCP ask round in the eval charter and give scenario-eval its procedure The eval charter gains item 5, the daily MCP ask round on the open runner's ask mode (local boot, subscription login, no cloud repository), beside the product's own ask baseline, which keeps its cadence. Two duplicated lines pay for it, so the file stays at its 45-line ceiling. scenario-eval marks the round's differences in its existing sections: the cards that carry datasets, one repetition a day and five weekly, pinned ask model and effort, the record's runner sha, package source, build sha256, ask skills and served model, the leak count read as a server-side reading, and the install refusal that keeps it from running until the managed-install fallback lands. Co-Authored-By: Claude Claude-Session: https://claude.ai/code/session_01WGufzfR33NbV51QQU6R6bm --- .../pm-dispatch/references/lanes/eval.md | 8 ++--- .claude/skills/scenario-eval/SKILL.md | 36 ++++++++++++++++++- 2 files changed, 39 insertions(+), 5 deletions(-) diff --git a/.claude/skills/pm-dispatch/references/lanes/eval.md b/.claude/skills/pm-dispatch/references/lanes/eval.md index eb9559e7dd9..0b15dff3237 100644 --- a/.claude/skills/pm-dispatch/references/lanes/eval.md +++ b/.claude/skills/pm-dispatch/references/lanes/eval.md @@ -4,7 +4,7 @@ ## 座位与唤醒 - 席位 `eval#N`,首席 `eval#1`;签名、座位贴、信箱同他席;无 `domain:*` 标签、无 `pm:queue`。 -- 定时归本席自控(维护者令):自建自调 Routines;每周一轮场景卡,问数基线每天一轮。 +- 定时归本席自控(维护者令):自建自调 Routines;每周一轮场景卡,问数基线与 ⑤ 每天一轮。 ## 评测范围 @@ -13,6 +13,8 @@ - 它从云端对固定托管测试环境运行,按正确、有引用、无泄露三项评分。 - ③ 托管聊天评测集的 13 个场景:仓库密钥配齐后纳入。 - ④ AI 写数据五道关卡:建成后纳入例行。 +- ⑤ MCP 问数日轮:开源跑分器 ask 模式问带数据集的卡;本地起应用,订阅登录,不读 cloud 仓。 +- ⑤ 以通用客户端读服务端(匹配、编译、权限、标签);② 读产品 agent,仍是标杆,节奏照旧。 ## 成本规则 @@ -23,7 +25,7 @@ ## 产出 -- 场景卡每轮照 `scenario-eval` 跑并立 `eval-run` 记录;他项每轮一份评分卡;皆附上轮趋势对比。 +- 场景卡与 ⑤ 照 `scenario-eval` 立 `eval-run` 记录;他项每轮一份评分卡;皆附上轮趋势对比。 - 产品缺陷按立卡门交对应车道;评分误判交跑分器维护者。 ## 边界 @@ -32,7 +34,6 @@ - 技能文本归 `domain:skills`;本席见文本问题以 `finding` 报。 - 安全发现(含任何泄露)只照 `../security-findings.md`;评分卡里的泄露只写有泄露,⛔ 不写内容。 - ⛔ 不对外发布准确率数字;唯场景卡 `eval-run` 记录带全分进本仓(维护者令)。 -- 问数基线 ② 的数字仍不对外;对外口径由维护者决定。 ## 地盘 @@ -42,4 +43,3 @@ ## 交接 - cloud 场景库专题建完场景库、运行器与跑分器后,例行运行移交本席,该专题关闭。 -- 问数基线从云端对固定托管测试环境例行;托管聊天评测集与五道关卡就绪即纳入例行。 diff --git a/.claude/skills/scenario-eval/SKILL.md b/.claude/skills/scenario-eval/SKILL.md index 7bd5ca55d80..2ed4d144fa0 100644 --- a/.claude/skills/scenario-eval/SKILL.md +++ b/.claude/skills/scenario-eval/SKILL.md @@ -3,7 +3,7 @@ name: scenario-eval description: > Run one round of the scenario-card eval (docs/qa/scenarios/) and file its `eval-run` record. Use whenever the eval seat or the maintainer says "跑一轮场景卡", - "跑 control 卡", "对比模型 / effort", "run an eval round", "re-score the recordings", + "跑 control 卡", "跑问数日轮", "对比模型 / effort", "run an eval round", "re-score the recordings", or asks how a model or effort config scores on the scenario cards. Covers the round plan, the configs, repetitions and noise, recording and replay, the record shape and where findings go; runner mechanics stay in packages/qa/scenarios/README.md. The eval @@ -23,6 +23,9 @@ metadata: 服从它;卡的格式与 tier 是 `docs/qa/scenarios/README.md`。本技能只管一轮怎么排、怎么配、 怎么记、发现交给谁,⛔ 不复述 runner 机制。岗位与地盘见 pm-dispatch `references/lanes/eval.md`。 +**MCP 问数日轮**(`lanes/eval.md` ⑤)是本技能的一种轮:只跑 ask 模式,用通用客户端读服务端(匹配、编译、权限、标签)。 +下文各节标「问数日轮」的条目是它的差异,其余照常。 + ## 0. 环境 —— 照 README〈Running the cards in a Claude Code cloud session〉 - 订阅登录(`claude auth status` 答 `oauth_token`),`ANTHROPIC_API_KEY` / `ANTHROPIC_AUTH_TOKEN` 都 unset; @@ -31,6 +34,9 @@ metadata: 没建就跑会停在 `ERR_MODULE_NOT_FOUND`,那是环境,不是读数。 - 记下 `claude --version`:effort 档位表随 CLI 版本变,记录的环境行要带它。 - runner 的 sha 整轮钉死:轮中 ⛔ 不拉 `main`。评分器改了,分数就不可比;要用新评分器,走 §4 回放。 +- **问数日轮**:本地起应用、订阅登录,⛔ 不花 API 额度;卡、runner、评分器都在本仓,本轮 ⛔ 不读也不需要 cloud 仓。 + 拒 API 计费是 runner 自己做的:`assertSubscriptionLogin`(`packages/qa/scenarios/src/runner/driver.ts`)在上面两个变量 + 有值、或 `claude auth status` 报 API-key 登录时抛 `ApiBillingRefusedError`,一张卡都不跑。 ## 1. 规划这一轮 @@ -42,6 +48,15 @@ metadata: - **包来源**:评测量的是客户拿到的东西 —— `--packages published`(默认),并用 `--create-version V` 把整轮所有配置与重复钉在同一个发布版本上;`workspace` 是 QA 席测未发布波的用法。 - 规划写成一张表再动手:卡 × 配置 × 重复 → 命令条数 × 预计墙钟;超出 2 小时的一条拆开。 +- **问数日轮的卡** = 带数据集的卡:`grep -l '"datasetQuestions"' docs/qa/scenarios/*.json` 读出名单(写本技能时是 + `order_to_cash`、`travel_expense`),⛔ 不凭记忆列。只跑 `--modes ask --template F`:不搭建、不评 Build、不 iterate。 + `F` 是该卡已验证的构建,命名空间与卡不符的会被跳过,所以一卡一条命令(`--only ID`);同一份构建跨轮复用, + 换了构建,Reading 点名这一变量。 +- **问数日轮的节奏**:每天一轮 `--ask-repeats 1`,每周一轮 `--ask-repeats 5`;操作回合不重复,只跑一次(README〈Repeats〉)。 +- **问数日轮尚未能跑**:ask 模式现只做非托管安装(`orchestrate.ts` `withInstalledBuild` → `installUnmanaged`), + 平台拒收带 `capability` 项的包(`422 UNMANAGED_INSTALL_UNCOPYABLE`,`capability` 是 `allowRuntimeCreate: false`); + #34687 线程实测 `travel_expense` 的已验证构建因此一题未问。托管安装回退与 `asked-back` 评分修正都归 #34687, + 尚未落地;落地前日轮不开跑。 ## 2. 配置 @@ -50,6 +65,9 @@ metadata: - 每条命令**显式**写 `--model` 与 `--effort`。⛔ 不用 CLI 默认模型不点名(登录不同、默认不同,还会悄悄变); ⛔ 不靠 `CLAUDE_CODE_EFFORT_LEVEL` 环境变量:它只是 `--effort` 缺省时的回退,命令行上看不见。 - `--author-model` / `--ask-model`(及两个 effort 对应项)只在本轮要拆开搭建与问答时用,记录里写明。 +- **问数日轮**:ask 模式不搭建,每条命令显式写 `--ask-model` 与 `--ask-effort`(值照跟踪配置;换值 Reading 点名); + 开不开 `--ask-skills DIR` 是两个配置,各自成表(`summary` 拒把技能不同的运行并表)。每回合记录 + `requestedModel`、服务的 `model` 与 `requestedEffort`,计分卡 `Run · model` 行给出服务模型与 effort,照下条核对。 - 读计分卡的 `Run · model` 与 author 行核对**实际服务的模型**:出现 `⚠ asked for` / `not ` 的 那次运行不属于该配置,单列说明,⛔ 不并入均值。effort 只有请求值,没有服务值可核(README)。 @@ -60,6 +78,8 @@ metadata: - 结果按配置报**均值 + 最小–最大**,再按卡把 5 次合并报一张表。汇总脚本 runner 里还没有: 手算或本席脚本都行,记录写明算法(分子分母合并,还是逐次百分比再平均)。 - 只和上一张记录的**同一配置、同一组卡**比;发布版本或 runner sha 变了,Reading 点名这一变量。 +- **问数日轮**:日轮一次重复,只报计数与趋势;排名次看周轮的 5 次。日轮比前一天、周轮比上一周 + (`summary` 也拒把 `--ask-repeats` 不同的运行并表)。 - 每次重复都进记录:没跑完的照实写 `not measured` 与原因(README 的超时、`error_max_turns` 等), ⛔ 不静默重跑顶替,⛔ 不剔除离群值;重跑了就写重跑了。 @@ -82,6 +102,13 @@ nohup pnpm --filter @objectstack/scenarios run-scenarios \ --only crm_account_with_contacts,invoice_with_line_items,project_with_tasks --modes scratch \ --model haiku --effort medium --create-version VERSION \ --out "$OUT" --record "$OUT/run.rec.json" > "$OUT/run.log" 2>&1 & + +# 问数日轮:一卡一条;卡名照 §1 从卡文件重读,F 是该卡已验证构建的绝对路径(§1:尚未能跑) +OUT=/abs/path/eval-runs/DATE-ask/haiku-medium/order_to_cash && mkdir -p "$OUT" +nohup pnpm --filter @objectstack/scenarios run-scenarios \ + --only order_to_cash --modes ask --template /abs/path/F.json \ + --ask-model haiku --ask-effort medium --ask-repeats 1 --create-version VERSION \ + --out "$OUT" --record "$OUT/run.rec.json" > "$OUT/run.log" 2>&1 & ``` ## 5. 记录 —— 一轮一张 `eval-run` issue @@ -106,6 +133,13 @@ nohup pnpm --filter @objectstack/scenarios run-scenarios \ - `## Findings filed from this run` —— 每条发现一行,写去向(§6);无则写 `none`。安全线索那一行只写 `security-findings.md` §4 的固定一句,别无其它。 - `## Records` —— 产物放在哪(路径),说明留在仓库树外、可回放。 +- **问数日轮的记录**:标题 SCOPE 写 `daily ask round` 或 `weekly ask round`。`## Environment` 必带 runner sha(记录的 + `env.framework`)、包来源(`env.packagesLine`)、构建的文件名与 sha256(记录的 `template`)、问答回合的技能 + (`driver.askSkills` 的名字与 sha256,关则写 `none`)与每配置实际服务的模型(`Run · model`);`## Results` 加 + `Run · datasets` 一列,从计分卡抄(`summary` 还没有这一列)。 +- **问数日轮的泄露数是服务端读数**:问题回合以成员人设(`role: 'user'`、卡的权限集、自己的 API key)经应用的 MCP + (`/api/v1/mcp`)问,泄露标记数读成服务端给这把 key 放出了什么,⛔ 不读成客户端守不守口;以管理员问的 + 数据集问题不进这个数。真泄露还是评分误判,照 §6 先分清。 - **收口**:§6 的每条发现都有了去向(卡号或已报的私密渠道)即由本席关 `completed`; ⛔ 不为等修复开着,修复的回测进下一轮。上一轮的记录不 supersede:每张都是它那个 sha 上的一次测量。 - **分诊扫描还不认 `eval-run`**(排除名单只列 `qa-run`):在它补进之前,记录在立单的同一轮关闭; From 657d8484dd502f99908ae90ff4a9e1ef77734f22 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 17 Nov 2026 16:10:14 +0000 Subject: [PATCH 2/3] docs(eval): add the weekly skills eval round to the eval charter Item 6: the published skills' eval cases run weekly through `pnpm skill-evals` in @objectstack/scenarios on the subscription login, with and without the skill, one eval-run record a round carrying full scores like the scenario cards; a with-skill failure goes to domain:skills as a finding. The hand-over section is removed: its one line restates what lines 7, 11 and 40 already state (the library is built and the seat runs the rounds and owns packages/qa/). The file goes from 45 to 43 lines, under its 45-line ceiling. Co-Authored-By: Claude Claude-Session: https://claude.ai/code/session_01WGufzfR33NbV51QQU6R6bm --- .claude/skills/pm-dispatch/references/lanes/eval.md | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/.claude/skills/pm-dispatch/references/lanes/eval.md b/.claude/skills/pm-dispatch/references/lanes/eval.md index 0b15dff3237..b7208d49ac8 100644 --- a/.claude/skills/pm-dispatch/references/lanes/eval.md +++ b/.claude/skills/pm-dispatch/references/lanes/eval.md @@ -4,7 +4,7 @@ ## 座位与唤醒 - 席位 `eval#N`,首席 `eval#1`;签名、座位贴、信箱同他席;无 `domain:*` 标签、无 `pm:queue`。 -- 定时归本席自控(维护者令):自建自调 Routines;每周一轮场景卡,问数基线与 ⑤ 每天一轮。 +- 定时归本席自控(维护者令):自建自调 Routines;场景卡与 ⑥ 每周一轮,问数基线与 ⑤ 每天。 ## 评测范围 @@ -15,6 +15,8 @@ - ④ AI 写数据五道关卡:建成后纳入例行。 - ⑤ MCP 问数日轮:开源跑分器 ask 模式问带数据集的卡;本地起应用,订阅登录,不读 cloud 仓。 - ⑤ 以通用客户端读服务端(匹配、编译、权限、标签);② 读产品 agent,仍是标杆,节奏照旧。 +- ⑥ 技能评测:`pnpm skill-evals`(`@objectstack/scenarios`)以订阅登录跑 `skills/*/evals/*.json`。 +- ⑥ 带技能、不带技能两臂,一轮一张 `eval-run`;带技能仍败以 `finding` 报 `domain:skills`。 ## 成本规则 @@ -25,7 +27,7 @@ ## 产出 -- 场景卡与 ⑤ 照 `scenario-eval` 立 `eval-run` 记录;他项每轮一份评分卡;皆附上轮趋势对比。 +- ①⑤⑥ 立 `eval-run` 记录(①⑤ 照 `scenario-eval`);他项每轮一份评分卡;皆附上轮趋势对比。 - 产品缺陷按立卡门交对应车道;评分误判交跑分器维护者。 ## 边界 @@ -33,13 +35,9 @@ - ⛔ 不派 `os-dev`、不改产品代码、不开 PR。 - 技能文本归 `domain:skills`;本席见文本问题以 `finding` 报。 - 安全发现(含任何泄露)只照 `../security-findings.md`;评分卡里的泄露只写有泄露,⛔ 不写内容。 -- ⛔ 不对外发布准确率数字;唯场景卡 `eval-run` 记录带全分进本仓(维护者令)。 +- ⛔ 不对外发布准确率数字;唯场景卡与 ⑥ 的 `eval-run` 记录带全分进本仓(维护者令)。 ## 地盘 - 本仓:`docs/qa/scenarios/**`、`packages/qa/`、`packages/cli/src/lint/` 下的跑分器文件。 - cloud:`packages/service-ai-studio/src/evals/` 的运行与题库维护;代码修改仍走对应车道。 - -## 交接 - -- cloud 场景库专题建完场景库、运行器与跑分器后,例行运行移交本席,该专题关闭。 From 2f66ea60018a40ae2db641b2aff8e001c00ff334 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 17 Nov 2026 16:24:42 +0000 Subject: [PATCH 3/3] docs(eval): state the ask round's start gate as a check, restore the hand-over line scenario-eval: the not-yet-runnable bullet described the code in the present tense, which turns false once the managed-install fallback and the asked-back scoring change land. It now states the start gate as a condition the reader checks, naming both carriers, and keeps the refusal as the reason. The section 4 comment points at that condition. lanes/eval.md: the cloud scenario-library hand-over line is restored verbatim from main, at the end of the territory section, without its heading (the file is 44 lines, ceiling 45). Co-Authored-By: Claude Claude-Session: https://claude.ai/code/session_01WGufzfR33NbV51QQU6R6bm --- .claude/skills/pm-dispatch/references/lanes/eval.md | 1 + .claude/skills/scenario-eval/SKILL.md | 10 +++++----- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.claude/skills/pm-dispatch/references/lanes/eval.md b/.claude/skills/pm-dispatch/references/lanes/eval.md index b7208d49ac8..33b4224afdf 100644 --- a/.claude/skills/pm-dispatch/references/lanes/eval.md +++ b/.claude/skills/pm-dispatch/references/lanes/eval.md @@ -41,3 +41,4 @@ - 本仓:`docs/qa/scenarios/**`、`packages/qa/`、`packages/cli/src/lint/` 下的跑分器文件。 - cloud:`packages/service-ai-studio/src/evals/` 的运行与题库维护;代码修改仍走对应车道。 +- cloud 场景库专题建完场景库、运行器与跑分器后,例行运行移交本席,该专题关闭。 diff --git a/.claude/skills/scenario-eval/SKILL.md b/.claude/skills/scenario-eval/SKILL.md index 2ed4d144fa0..eb7d793f78c 100644 --- a/.claude/skills/scenario-eval/SKILL.md +++ b/.claude/skills/scenario-eval/SKILL.md @@ -53,10 +53,10 @@ metadata: `F` 是该卡已验证的构建,命名空间与卡不符的会被跳过,所以一卡一条命令(`--only ID`);同一份构建跨轮复用, 换了构建,Reading 点名这一变量。 - **问数日轮的节奏**:每天一轮 `--ask-repeats 1`,每周一轮 `--ask-repeats 5`;操作回合不重复,只跑一次(README〈Repeats〉)。 -- **问数日轮尚未能跑**:ask 模式现只做非托管安装(`orchestrate.ts` `withInstalledBuild` → `installUnmanaged`), - 平台拒收带 `capability` 项的包(`422 UNMANAGED_INSTALL_UNCOPYABLE`,`capability` 是 `allowRuntimeCreate: false`); - #34687 线程实测 `travel_expense` 的已验证构建因此一题未问。托管安装回退与 `asked-back` 评分修正都归 #34687, - 尚未落地;落地前日轮不开跑。 +- **问数日轮的开跑条件**:日轮在 #34911(ask 模式遇 `422 UNMANAGED_INSTALL_UNCOPYABLE` 改走托管安装)与 #34882 + (`asked-back` 不把候选个数、单写的年份算作数字)都合并之后开跑;开跑前查一次两者已合并,未合并就不开跑。 + 缘由:非托管安装拒收带 `capability` 项的包(`capability` 是 `allowRuntimeCreate: false`),#34687 线程实测 + `travel_expense` 的已验证构建在非托管安装下因此一题未问。 ## 2. 配置 @@ -103,7 +103,7 @@ nohup pnpm --filter @objectstack/scenarios run-scenarios \ --model haiku --effort medium --create-version VERSION \ --out "$OUT" --record "$OUT/run.rec.json" > "$OUT/run.log" 2>&1 & -# 问数日轮:一卡一条;卡名照 §1 从卡文件重读,F 是该卡已验证构建的绝对路径(§1:尚未能跑) +# 问数日轮:一卡一条;卡名照 §1 从卡文件重读,F 是该卡已验证构建的绝对路径(先查 §1 的开跑条件) OUT=/abs/path/eval-runs/DATE-ask/haiku-medium/order_to_cash && mkdir -p "$OUT" nohup pnpm --filter @objectstack/scenarios run-scenarios \ --only order_to_cash --modes ask --template /abs/path/F.json \