From 588f05993a49672c57f4f56ac2f65410b6ac9e76 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 22 Oct 2026 14:11:31 +0000 Subject: [PATCH] =?UTF-8?q?docs(pm-dispatch,=20os-dev):=20the=20claim=20te?= =?UTF-8?q?mplate=20and=20the=20dev=20definition=20carry=20the=20Metadata-?= =?UTF-8?q?protocol=20line=20beside=20Clause-=E2=91=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The seat declares the kind of metadata-protocol change at claim (`Metadata-protocol: added | narrowed | semantic | none`, judged by the level table in AGENTS.md's Post-Task Checklist step 3); the dev copies it beside `Clause-②:` into the PR body and into every changeset body, where `Check Changeset` reads it. Each ceilinged file pays its added line with a deleted one: the claim template's caption, the dev definition's pointer to its own footer block, and the execution-duties preamble that the SKILL.md index row already carries. Co-authored-by: Claude Claude-Session: https://claude.ai/code/session_014c2nFpk7VDtwqxvaGaHPu3 --- .claude/agents/os-dev.md | 4 ++-- .claude/skills/pm-dispatch/SKILL.md | 3 +-- .claude/skills/pm-dispatch/references/execution-duties.md | 5 ++--- 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/.claude/agents/os-dev.md b/.claude/agents/os-dev.md index 1486d58248..ff89da5314 100644 --- a/.claude/agents/os-dev.md +++ b/.claude/agents/os-dev.md @@ -277,7 +277,8 @@ model: opus - 全量 dogfood 只在终 head 跑一次,仅当标题带 `!` 或 `Clause-②:` 带 `(narrowing)` 臂(yes/no 皆算)。 - 命令同 CI:按 ① 建闭包,锁下 `pnpm --filter @objectstack/dogfood test`;⛔ 无 `OS_TEST_SHARD`、无路径。 - 红 = 本改动的后果(陈旧 fixture)同 PR 修,余照报;⛔ 永不跳过或收窄;计数记 `dogfood_battery`。 -- 认领带 `Clause-②:` 行才照抄进正文行首:`Check Changeset` 读正文不读卡;无则零写,⛔ 不自造。 +- 认领的 `Clause-②:`、`Metadata-protocol:` 两行照抄进 PR 正文行首;无则零写,⛔ 不自造。 +- 两行同抄进每个 changeset 正文行首,`Check Changeset` 读:有 kind 即 `minor`,`none` 即 `patch`。 - ⛔ 永不 `Fixes` 一张还在决策箱的卡:合并会静默关掉它,而收件箱过滤只读 open。 - ⛔ 不写否定式的关单句,它照样关掉点名的卡:解析器无视否定,只匹配关键词 + `#`。 - 关键词是 `fix/fixes/fixed/close/closes/closed` 与 `resolve/resolves/resolved`;让它们远离其它卡号。 @@ -287,7 +288,6 @@ model: opus - 受管路径全在 `.claude/**` 者 Tier S,达档复核 PASS 在案即由席位入队落地;余皆 Tier H 等人批。 - 受管面 PR 正文带 `## 维护者速读(草稿)` 节,中文、业务角度,席位意见留空;两层同欠。 - 五段固定:改了什么/为什么改/风险与代价(含回滚)/席位意见/你要做的;席位定稿成评论。 -- 正文以 session-URL 形式的署名页脚收尾(见字节与 sanitizer 纪律节)。 - 触 `skills/**`(对外发布的技能包)的 diff:PR 正文报两个读数,并默认拒绝小功能大扩写。 - 两个读数缺一不可:被改文件的整文件 before/after,与整包 before/after(全部 SKILL.md 之和)。 - 行数为准,姊妹门禁定义 token 计数后同报 token。 diff --git a/.claude/skills/pm-dispatch/SKILL.md b/.claude/skills/pm-dispatch/SKILL.md index 1220ec23a4..3ee22d5a10 100644 --- a/.claude/skills/pm-dispatch/SKILL.md +++ b/.claude/skills/pm-dispatch/SKILL.md @@ -299,8 +299,6 @@ PM 的工作是循环:选卡 → 认领 → 派发 → 收集 → 复核 → 报 ## 模板与表 -认领评论(英文,固定形状;首行字面 `Claim:`): - ```text Claim: PM loop round N Session: `session_` @@ -312,6 +310,7 @@ Seat: `domain:#` (the seat number this PM sits on; absent = seat 1) File surface: `<预期触碰的目录>` (stop on breach; explain in the report) Container & model: ``, `mode:subagent | mode:cloud | mode:thread`, `model: <档位词,引当次 --tier 输出;天花板拼 CONTRACT_REVIEW_TIER,同行引其 MANDATORY 路径行或 reason:;⛔ 不抄模型 id>`, `effort: ` Clause-②: yes | no +Metadata-protocol: added | narrowed | semantic | none (the kind of change to what a metadata author can write; the level table is AGENTS.md's Post-Task Checklist step 3; the dev copies it beside `Clause-②:` into the PR body and every changeset body) Responsibility: `` (defect cards only, else `n/a — not a defect card`; the dispatch prompt's ruling section repeats the three answers) Thread-read: Serial constraints cleared: `<点名同文件/同包的前驱 PR 与在飞认领,及分诊点名的任意车道在飞兄弟卡中本卡 pin 断言其行为者;无则 none>` diff --git a/.claude/skills/pm-dispatch/references/execution-duties.md b/.claude/skills/pm-dispatch/references/execution-duties.md index 7071a37f60..a21c3e3ac6 100644 --- a/.claude/skills/pm-dispatch/references/execution-duties.md +++ b/.claude/skills/pm-dispatch/references/execution-duties.md @@ -1,7 +1,5 @@ # 执行座位职责 -执行席每次 fire 读本文:候选、认领、派发、收集、复核;落地窗口另读 `landing-operations.md`。 - - 半状态巡查按需跑(分诊席每日对账可调),H 行是读数不是前提;⛔ 不因锚行停派发。 ## 候选与批次 @@ -63,10 +61,11 @@ - 同笔 `Release:` 行点名已落项与余项去向;余项需换道/拆分加 `pm:retriage`,自队列重新认领。 - 派发前按序执行原子对:① Assign @me,并把 `pm:dispatched` 与摘 `pm:queue` 放进同一次标签写入。 - step ① 之后获得 assignee 的直接弃出本批。 -- ② 认领评论(英文)照抄 SKILL.md 模板:`Claim:` 首行,`Branch:`、`Clause-②:` 各占一行且行首。 +- ② 认领评论照抄 SKILL.md 模板:`Branch:`、`Clause-②:`、`Metadata-protocol:` 各占一行且行首。 - 条款②入队闸门只读认领评论且只读行首键:句中提及与另发评论皆读不到,卡即不可读。 - 谓词保持严格、⛔ 不放宽;session ID 不可省,`mode:subagent` 下 dev 与 PM 同 ID,身份看分支。 - `Clause-②: yes | no` 恰这两种拼写,恒英文机器判据;判据:本卡放宽接受集或扩大公开面吗。 +- `Metadata-protocol:` 四值与定级表住 AGENTS.md「Post-Task Checklist」③:定级只随元数据协议。 - 公开面 = 包构建后的入口声明所达,⛔ 不只数入口的再导出清单。 - 所达 = 再导出名,加经其 props、参数与返回类型可达的每个类型。 - 语言包键已发布:包导出语言包及其派生类型(`TranslationKeys = typeof en`)即发布每个键。