docs(pm-dispatch): 探活入例行、报告丢失直接验收、座位行自查等五处协议更新 - #5597
Merged
Conversation
2026-08-05 实测教训回写(维护者指示): 1. step 6 新增「探活」固定动作:完成通知在宿主进程重启下会静默丢失—— 三个在飞 dev 死亡数小时无任何信号;每轮巡检对无产出的 dev 发状态 询问,「no active task; resumed from transcript」回包即当场复活。 2. step 6 新增「报告丢失直接验收」兜底:PR 全绿 + agent 确认死亡/静默 ≥2h + 报告未达 ⇒ 直接按 PR 对照 origin/main 验收(#5550/#5556 先例)。 3. 座位表协议新增「每轮核对自己的正文行」:协议升级迁移状态可把在任 PM 记成待认领,叠加惰性回收条款即误回收风险(spec 座位当日实例)。 4. worktree 接手协议前置 SendMessage 复活路径(更便宜、保全上下文), 接手协议降为 resume 不可用时的后备。 5. step 7 新增两条评审判据:验收判据本身可被 dev 用测量证伪(#5452 字面 grep 归零判据不成立,改钉配平不变量);tests/docs-only PR 走 skip-changeset 标签且 rerun 无效需新 labeled 事件(#5497/#5502)。 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018fxLGQdatPbBUvCgiVxg6D
|
The latest updates on your projects. Learn more about Vercel for GitHub. 1 Skipped Deployment
|
Contributor
Author
|
CI 状态说明(spec 车道 PM,
Generated by Claude Code |
…s 现状」通病标本 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018fxLGQdatPbBUvCgiVxg6D
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
维护者 2026-08-05 指示:把当日「三个在飞 dev 静默死亡数小时无人知」的教训写进 pm-dispatch skill,并盘点其余缺口。本 PR 回写五处,全部为当日实测:
1. step 6 新增「探活」固定巡检动作(核心项)
完成通知在宿主进程重启下静默丢失——2026-08-05 五个在飞 dev 中三个(#5050/#5515/#5483)已死数小时,批次视图仍 5/5,实际吞吐 2/5,零信号。现行文本只覆盖「带任务中状态的通知到了」(停摆纠偏三条),不覆盖「通知根本不来」。新规程:
2. step 6 新增「报告丢失直接验收」兜底
PR 全绿 + 探活确认死亡/≥2h 静默 + 报告未达 ⇒ 直接按 PR 对照
origin/main验收(step 7 判据不变)。先例:#5550/#5556 由此路径验收、入队、合并。顺序保护:先探活后翻 ready,防与收尾推送竞态。3. 座位表协议新增「每轮核对自己的正文行」
协议升级(#5472/#5522 正文表格化)迁移状态时,把只按旧惯例评论登记的在任 spec PM 记成了「⏳ 待认领」——叠加「>24h 无产出即可回收」的惰性回收条款即误回收风险,他会话也可能照「待认领」真来接管。自查一行零成本,发现不符当场改行 + 审计评论。
4. worktree 接手协议前置 SendMessage 复活路径
「The agent is not resumable」已过时:对死 agent 发消息会从 transcript 恢复,带全部上下文继续(当日三例全部复活收尾)。接手协议降为 resume 不可用(跨会话、transcript 丢失)时的后备,四条接手纪律不变。
5. step 7 新增两条评审判据
.describe()里的{{var}}在生成的参考文档里被转义成 `{{var}+ 游离的}`(main 上现存 3 处) #5452 的「字面 grep 归零」判据被实测推翻(正确输出同样匹配该 pattern),dev 改钉真不变量(行内代码跨度花括号配平)并多抓 2 处同根因缺陷——此类推翻 = 好运行,照 ACCEPT,但须 PR 正文写明推翻过程 + main 语料实测信噪比。skip-changeset标签,不走空 changeset(空 changeset 会静默卡死已 version 的发布:Release run 全绿,但 npm 和 Docker 什么都没发(17.0.0-rc.2 现在就卡着) #4898);⛔ 打标签后 rerun 无效(重放旧事件载荷),需摘掉再打回制造新 labeled 事件(test(lint): time-relative fixture 改成运行时真能绑的描述符,并对 bind 期同一个 schema 钉住 (#4966) #5497/test(spec): 修掉 flow fixture 教的三种跑不通的形状 (#4924) #5502 实测);含读者可见生成产物的按 dev 在 PR 正文的说明取 changeset 路线。验证
纯 skill 文档改动(
.claude/skills/pm-dispatch/SKILL.md,+52/−5),不触任何包、生成物或门禁脚本。基于origin/main@ e0b2ea7 的最新版本编辑(主检出上的旧副本已核实过时,未使用)。按 skill 自身条款「PM's own tooling PRs stay with the maintainer」:本 PR 不入队、不自合,交维护者审阅合并。
🤖 Generated with Claude Code
https://claude.ai/code/session_018fxLGQdatPbBUvCgiVxg6D
Generated by Claude Code