Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .claude/skills/pm-dispatch/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ PM 的工作是循环:选卡 → 认领 → 派发 → 收集 → 复核 → 报
| `domain:spec` | `packages/spec` 整包:schema 形状、`contracts/**`、退役行为半边、strictness 台账;describe/JSDoc/墓碑散文/错误 guidance 与 alias 表;`packages/spec/scripts/**`、`packages/spec/docs/**` 及按锚定规则的例外归本域的工具链(域边界枚举与席内分派见 `references/lanes/spec.md`) |
| `domain:ui` | `ui/**` 全部代码:`@object-ui/*` 库与 `ui/apps/*`、`ui/packages/types` 与 schema 语料、`ui/scripts` 与门禁工具、文档随所记录的面走;`packages/console`(dist 由 `pnpm console:build` 生成 ⛔ 不手改);协议恒归 `domain:spec`,受管面归 `domain:skills`;详见 `references/lanes/ui.md` |
| `domain:cloud` | 涉 cloud 即整卡归 cloud PM(`repo:cloud` 席,同挂 `repo:cloud`):读或改 cloud 代码、生产方、事实或带 cloud 半边;本仓车道 ⛔ 不认领;cloud PM 跟到关卡,余下纯本仓活由它写明 cloud 事实后另立卡;判据见 `references/cross-repo-coordination.md` |
| `security` · `review`(车道,无 `domain:*` 标签) | 本仓安全公告(无文件面;修复落在归属包;私有仓卡归该仓车道,cloud 即上行);席位 `security#N` 与职责见 `references/lanes/security.md`;永不公开的规则只住 `references/security-findings.md`。复核席 `review#N` 见 `references/lanes/review.md` |
| `security` · `review` · `eval`(车道,无 `domain:*` 标签) | 本仓安全公告(私有仓卡归该仓车道,cloud 即上行);席位 `security#N` 见 `references/lanes/security.md`;永不公开的规则只住 `references/security-findings.md`。复核席、AI 评测席各见 `references/lanes/review.md`、`references/lanes/eval.md` |
| (无固定归属,按落点分诊) | `packages/apps/*`、`examples/*`(归它演练的子系统,测试基建见 devx 行)、`docs/audits/**` |

- 表未覆盖的包首次分诊时归类并走 PR 更新本表;新增或退役 `domain:*` 必须同批改本表。
Expand Down
45 changes: 45 additions & 0 deletions .claude/skills/pm-dispatch/references/lanes/eval.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# 车道章程:AI 评测席(eval)
见 seat-lifecycle.md;本文是本车道岗位说明,现值状态恒在座位贴,⛔ 不迁入本文。

## 座位与唤醒

- 席位 `eval#N`,首席 `eval#1`;签名、座位贴、信箱同他席;无 `domain:*` 标签、无 `pm:queue`。
- 节奏由维护者在 Routines 设定;⛔ 本席不自建、不改频率。
- 建议节奏:每周一轮场景卡;每次发版一轮问数基线。

## 评测范围

- ① 场景卡(cloud 场景库专题建成的场景库):Claude Code 经 MCP 跑搭建与运行两半,确定性打分。
- ② 产品内问数基线:cloud `packages/service-ai-studio/src/evals/run-ask-accuracy-cli.ts`。
- 它对本地 objectos-ee 运行,按正确、有引用、无泄露三项评分。
- ③ 托管聊天评测集的 13 个场景:仓库密钥配齐后纳入。
- ④ AI 写数据五道关卡:建成后纳入例行。

## 成本规则

- 默认走 Claude Code 订阅,守维护者成本原则:目前阶段尽量不用云端 token,API 更贵。
- ②③ 必须调 API,只在维护者批准的预算内运行;每轮记模型与花费,三周读数进座位贴。
- 模型与频次:低成本或与托管默认一致;每次发版跑一次,不做每晚回归。
- 题次:首次每题 1 次(30 轮);正式基线每题 5 次(150 轮)。

## 产出

- 每轮一份评分卡,附与上一轮的趋势对比。
- 产品缺陷按立卡门交对应车道;评分误判交跑分器维护者。

## 边界

- ⛔ 不派 `os-dev`、不改产品代码、不开 PR。
- 技能文本归 `domain:skills`;本席见文本问题以 `finding` 报。
- 安全发现(含任何泄露)只照 `../security-findings.md`;评分卡里的泄露只写有泄露,⛔ 不写内容。
- ⛔ 不对外发布准确率数字;对外口径由维护者决定。

## 地盘

- 本仓:`docs/qa/scenarios/**`、`packages/qa/`、`packages/cli/src/lint/` 下的跑分器文件。
- cloud:`packages/service-ai-studio/src/evals/` 的运行与题库维护;代码修改仍走对应车道。

## 交接

- cloud 场景库专题建完场景库、运行器与跑分器后,例行运行移交本席,该专题关闭。
- cloud 首个问数基线由本席在本地执行;托管聊天评测集与五道关卡就绪即纳入例行。
2 changes: 1 addition & 1 deletion .claude/skills/pm-dispatch/references/project-forms.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
- 项目指令只有一行:`pm-dispatch <席位> [<席位>…]`,如 `pm-dispatch 总监`、`pm-dispatch ui skills`。
- 首词恒为技能目录名 `pm-dispatch`;⛔ 不用 `fleet`,它已是 bot 与中继的名字。
- 席位词 = 中文名或车道文件名:总监 = `lanes/director.md`,分诊 = `triage.md`,复核 = `review.md`。
- 其余席位词同 `lanes/<lane>.md` 文件名:ui、skills、devx、server、spec、hotcrm、mobile、qa。
- 其余席位词同 `lanes/<lane>.md` 文件名:ui、skills、devx、server、spec、hotcrm、mobile、qa、eval。
- 一车道多席:协调者取 🟢 行写本账号的那一席;无则取空席;再无则问维护者一次。
- 其余一切住本文:⛔ 不往项目里贴模板;⛔ 不在账号层复制技能。

Expand Down
4 changes: 2 additions & 2 deletions scripts/pm/check-half-states.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -1262,7 +1262,7 @@ export const RELEASE_COMMENT_MARKER = /^\s*>?\s*Release\s*:/mi;
//
// LANE a seat as the role table spells it: `domain:` or `repo:` plus a lowercase
// name (`domain:engine-core` carries a hyphen, measured on the label set),
// `epic:#` plus the parent card, `triage`, `director`, `coordinator`, `security`, `review` or `qa`
// `epic:#` plus the parent card, `triage`, `director`, `coordinator`, `security`, `review`, `qa` or `eval`
// N the seat number, from 1
// ACCOUNT the login a claim's `Account:` line carries — GitHub's own login rule
// SESSION the full id, in the relay envelope's shape (`SESSION_SHAPE`, fleet-write/ops.mjs,
Expand All @@ -1286,7 +1286,7 @@ export const RELEASE_COMMENT_MARKER = /^\s*>?\s*Release\s*:/mi;
// ---------------------------------------------------------------------------

/** The four parts' patterns, unanchored, in order — the ONE spelling every reader and writer composes from. */
const SIGNATURE_LANE_SOURCE = '(?:domain:[a-z][a-z0-9-]*|repo:[a-z][a-z0-9-]*|epic:#[1-9][0-9]*|triage|director|coordinator|security|review|qa)';
const SIGNATURE_LANE_SOURCE = '(?:domain:[a-z][a-z0-9-]*|repo:[a-z][a-z0-9-]*|epic:#[1-9][0-9]*|triage|director|coordinator|security|review|qa|eval)';
const SIGNATURE_ACCOUNT_SOURCE = '[A-Za-z0-9](?:[A-Za-z0-9]|-(?=[A-Za-z0-9])){0,38}';
/** The relay envelope's session shape without its anchors — `SESSION_SHAPE` in `fleet-write/ops.mjs`. */
export const SEAT_SIGNATURE_SESSION_SOURCE = 'session_[A-Za-z0-9]{6,}';
Expand Down
10 changes: 10 additions & 0 deletions scripts/pm/check-skill-line-ratchet.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -1699,6 +1699,15 @@ export const CEILINGS = new Map([
// row moves; set at the landed line count (headroom 0, same convention as
// every lane charter above).
['.claude/skills/pm-dispatch/references/lanes/qa.md', 29],
// AI eval seat charter (`eval#N`): the standing seat that runs the AI
// regressions (scenario cards over MCP, the in-product Q&A baseline, the
// hosted chat eval set, the five AI write gates) on the maintainer's
// Routines cadence; it dispatches no dev and changes no product code.
// Ruling of record: comment 6721331178, the maintainer's 「同意开 AI 评测 车道」
// transcribed verbatim, whose workload names `references/lanes/eval.md`. A
// NEW file, so this is an added row and no other row moves; set at the
// landed line count (headroom 0, same convention as every lane charter above).
['.claude/skills/pm-dispatch/references/lanes/eval.md', 45],
// 399 → 405 (#11126): maintainer-ruled (2026-08-23, option B, quoted in that
// PR) — the +6-line cross-repo dispatch-gates caveat, sized so the queued
// #11137 (395→399 on main) and this PR's +6 compose to exactly 405.
Expand Down Expand Up @@ -2508,6 +2517,7 @@ export const MAX_TABLE_ROW_BYTES = new Map([
['.claude/skills/pm-dispatch/references/lanes/triage.md', 0],
['.claude/skills/pm-dispatch/references/lanes/review.md', 0],
['.claude/skills/pm-dispatch/references/lanes/qa.md', 0],
['.claude/skills/pm-dispatch/references/lanes/eval.md', 0],
['.claude/agents/os-dev.md', 0],
['.claude/skills/checklist-test/SKILL.md', 221],
['.claude/skills/checklist-author/SKILL.md', 0],
Expand Down
22 changes: 11 additions & 11 deletions scripts/pm/mailbox-open.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@
* a login as a seat any more.
*
* A seat is spelled `LANE#N` — `domain:ui#4`, `repo:cloud#1`, `triage`,
* `epic:#27293#1` — its lane one of the seven a seat post's title names
* (`domain:<x>`, `repo:<x>`, `triage`, `director`, `security`, `review`, `qa`) or the epic lane
* `epic:#27293#1` — its lane one of the eight a seat post's title names
* (`domain:<x>`, `repo:<x>`, `triage`, `director`, `security`, `review`, `qa`, `eval`) or the epic lane
* `epic:#<parent>`, the seat signature's spelling for the PM delegated a
* `pm:epic` parent card (pm-dispatch `seat-lifecycle.md` 〈Epic 子树车道〉), so a
* login never reads as a seat, and an absent number read as seat 1
Expand All @@ -52,7 +52,7 @@
* because a ref cannot carry `:` or `#`: the default `domain:` kind dropped,
* every other `:` (with the epic lane's `#` after it) and the seat's `#` turned
* into `-` (`ui-4`, `repo-cloud-1`, `triage-1`, `security-1`, `review-1`, `epic-27293-1`). No `domain:`
* lane may be named `triage`, `director`, `security`, `review`, `qa`, `repo-…` or `epic-…` — `seatKey`
* lane may be named `triage`, `director`, `security`, `review`, `qa`, `eval`, `repo-…` or `epic-…` — `seatKey`
* refuses one — which keeps the slug one-to-one.
*
* ## What it does, in order (open)
Expand Down Expand Up @@ -174,17 +174,17 @@ const REPO_SHAPE = /^[A-Za-z0-9_.-]+\/[A-Za-z0-9_.-]+$/;
const LOGIN_SHAPE = /^[A-Za-z0-9](?:[A-Za-z0-9]|-(?=[A-Za-z0-9])){0,38}$/;
const BRANCH_SHAPE = /^(?!\/|.*\/\/|.*\.\.|.*[\s~^:?*[\\]|.*\.lock$|.*\/$)[A-Za-z0-9._/-]+$/;
const SESSION_SHAPE = /^(?:session|cse)_[A-Za-z0-9]+$/;
// A seat: its lane — `domain:<x>`, `repo:<x>`, `triage`, `director`, `security`, `review`, `qa`, the seven a seat post's
// title names, or the epic lane `epic:#<parent>` — then `#N`; absent = seat 1. Read lower-cased. The bare lanes are a
// closed set of five, so a login is never read as a seat. The lists below are the ONE spelling of those lane words: the shape is
// A seat: its lane — `domain:<x>`, `repo:<x>`, `triage`, `director`, `security`, `review`, `qa`, `eval`, the eight a seat
// post's title names, or the epic lane `epic:#<parent>` — then `#N`; absent = seat 1. Read lower-cased. The bare lanes are a
// closed set of six, so a login is never read as a seat. The lists below are the ONE spelling of those lane words: the shape is
// built from them, and so is the reserved set a `domain:` lane may not be named after (`seatKey`). The same
// five words close the seat signature's lane alternation (`SIGNATURE_LANE_SOURCE`, check-half-states.mjs), which this
// six words close the seat signature's lane alternation (`SIGNATURE_LANE_SOURCE`, check-half-states.mjs), which this
// list cannot import (the patrol loads this file lazily, so that edge would be a cycle); fleet-roster's self-test,
// which imports both, holds the two equal, `coordinator` (it signs and has no mailbox) aside.
/** The lane kinds that carry a name after the colon: `domain:<x>`, `repo:<x>`. `domain` is the default kind the slug drops. */
export const SEAT_LANE_KINDS = Object.freeze(['domain', 'repo']);
/** The bare lanes, a closed set: `triage`, `director`, `security` (the seat that owns security findings, `lanes/security.md`), `review` (the contract-review seat, `lanes/review.md`), `qa` (the QA routines seat, `lanes/qa.md`). */
export const SEAT_BARE_LANES = Object.freeze(['triage', 'director', 'security', 'review', 'qa']);
/** The bare lanes, a closed set: `triage`, `director`, `security` (the seat that owns security findings, `lanes/security.md`), `review` (the contract-review seat, `lanes/review.md`), `qa` (the QA routines seat, `lanes/qa.md`), `eval` (the AI eval seat, `lanes/eval.md`). */
export const SEAT_BARE_LANES = Object.freeze(['triage', 'director', 'security', 'review', 'qa', 'eval']);
/** The epic lane's kind: `epic:#<parent>` names the `pm:epic` parent card's number, never a word (`epic:#27293#1`). */
export const SEAT_EPIC_KIND = 'epic';
const SEAT_SHAPE = new RegExp(`^((?:${SEAT_LANE_KINDS.join('|')}):[a-z0-9._-]+|${SEAT_EPIC_KIND}:#[1-9][0-9]*|${SEAT_BARE_LANES.join('|')})(?:#([1-9][0-9]*))?$`);
Expand Down Expand Up @@ -586,9 +586,9 @@ async function selfTest() {
t('⛔ a `domain:` lane named `epic-…` is refused — its slug would be an epic seat\'s — while `domain:epic` and `domain:epics` read', [seatKey('domain:epic-12#1'), seatKey('domain:epic-tools'), seatKey('domain:epic').slug, seatKey('domain:epics').slug], [null, null, 'epic-1', 'epics-1']);
t('⭐ the epic slug collides with no lane slug: one key per slug across every lane kind', (() => { const keys = ['epic:#12#1', 'domain:epic#12', 'domain:epic-12#1', 'repo:epic-12#1', 'domain:12#1', 'triage#12', 'epic:#1#21', 'epic:#12#1'].map(seatKey).filter(Boolean); return new Set(keys.map((k) => k.slug)).size === new Set(keys.map((k) => k.key)).size; })(), true);
t('⛔ a short form is not a seat — `skills#2` names no lane, so it is refused as a login is', ['skills#2', 'ui#4', 'server', 'skills'].map(seatKey), [null, null, null, null]);
t('⛔ a `domain:` lane named after a reserved lane word is refused — its slug would be another seat\'s', ['domain:triage', 'domain:director#2', 'domain:repo-cloud#1', 'Domain:Triage#1', 'domain:security#1', 'domain:review#1', 'domain:qa#1'].map(seatKey), [null, null, null, null, null, null, null]);
t('⛔ a `domain:` lane named after a reserved lane word is refused — its slug would be another seat\'s', ['domain:triage', 'domain:director#2', 'domain:repo-cloud#1', 'Domain:Triage#1', 'domain:security#1', 'domain:review#1', 'domain:qa#1', 'domain:eval#1'].map(seatKey), [null, null, null, null, null, null, null, null]);
t('…while a `domain:` lane that merely CONTAINS a reserved word, and the reserved words as their own lanes, still read', [seatKey('domain:triage-tools#1').slug, seatKey('domain:directory').slug, seatKey('domain:repository').slug, seatKey('triage#2').slug, seatKey('repo:cloud').slug], ['triage-tools-1', 'directory-1', 'repository-1', 'triage-2', 'repo-cloud-1']);
t('the shape and the reserved set are built from the ONE set of lane-word lists', SEAT_LANE_KINDS.join() === 'domain,repo' && SEAT_BARE_LANES.join() === 'triage,director,security,review,qa' && SEAT_EPIC_KIND === 'epic' && SEAT_BARE_LANES.every((w) => seatKey(w)?.key === `${w}#1` && seatKey(`domain:${w}`) === null) && seatKey(`${SEAT_EPIC_KIND}:#7`)?.key === 'epic:#7#1' && seatKey(`domain:${SEAT_EPIC_KIND}-7`) === null, true);
t('the shape and the reserved set are built from the ONE set of lane-word lists', SEAT_LANE_KINDS.join() === 'domain,repo' && SEAT_BARE_LANES.join() === 'triage,director,security,review,qa,eval' && SEAT_EPIC_KIND === 'epic' && SEAT_BARE_LANES.every((w) => seatKey(w)?.key === `${w}#1` && seatKey(`domain:${w}`) === null) && seatKey(`${SEAT_EPIC_KIND}:#7`)?.key === 'epic:#7#1' && seatKey(`domain:${SEAT_EPIC_KIND}-7`) === null, true);
t('the branch is mailbox/<login>/<slug> — no `:` and no `#` in a ref', mailboxBranch('os-bill', seatKey('domain:ui#4')), 'mailbox/os-bill/ui-4');
t('an epic seat\'s branch is mailbox/<login>/epic-N-K', mailboxBranch('sunhaolin', seatKey('epic:#27293#1')), 'mailbox/sunhaolin/epic-27293-1');
t('⭐ two seats under ONE login get two branches', [mailboxBranch('os-sales', seatKey('domain:server#1')), mailboxBranch('os-sales', seatKey('domain:ui#1'))], ['mailbox/os-sales/server-1', 'mailbox/os-sales/ui-1']);
Expand Down
Loading