Skip to content

Commit 68e8bcc

Browse files
feat(pm): unread-knock check before a seat-post body refresh
A seat-post body refresh closes the read window (comments newer than the body's last edit) on every comment inside it, so an unread knock vanishes with no signal to the knocker. Text half: the read-window rule now says read the tail to its end and receipt every unread knock before refreshing (SKILL.md, core-rules.md mirror, seat-post-protocol.md). Mechanical half: `post-stamped.mjs --body` refuses the write while comments newer than the body's newest stamp exist and `--ack-through=ID` does not name the newest one; self-test covers both directions and the control. Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DAcomhvR9kKizeYgg89Vo8
1 parent bdb247d commit 68e8bcc

4 files changed

Lines changed: 237 additions & 9 deletions

File tree

‎.claude/skills/pm-dispatch/SKILL.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ PM 的工作是循环:选卡 → 认领 → 派发 → 收集 → 复核 → 报
271271
- 范围与常设承诺是岗位说明不是状态,版本化在 `references/lanes/<lane>.md`。
272272
- 贴内只放指向车道文件的指针,升级走技能 PR,⛔ 不手抄接力。
273273
- 写侧刷新点 = 轮次边界;中途状态由卡上 claim/ACCEPT 评论承载。
274-
- 读侧只读贴正文 + 晚于正文最后编辑的评论。
274+
- 读侧只读贴正文 + 晚于正文最后编辑的评论;刷新前读完评论、回执未读敲门,再刷。
275275
- 热文件串行队是正文具名段:区域写不清就只能整文件串行。
276276
- 座位贴每仓登记合并是否对外发布及其验证层;登记缺失视为未验证。
277277
- 无心跳,活性惰性判定:超过一天无自有产出即可降级回收。

‎.claude/skills/pm-dispatch/references/core-rules.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
- 一座位一贴,正文固定四段现值:当前 PM、继承台账、热文件串行队、说明。
7272
- 贴正文由在任 PM 独家编辑且为权威,标题只放慢状态、与 assignee 同为派生视图同笔更新。
7373
- 岗位说明与常设承诺版本化在 `references/lanes/` 下,贴内只放指针,升级走技能 PR。
74-
- 写侧刷新点是轮次边界,读侧只读正文加晚于它的评论;热文件串行队是正文具名段。
74+
- 写侧刷新点是轮次边界,读侧只读正文加晚于它的评论;刷新前读完评论、回执未读敲门。
7575
- 活性靠惰性判定,超过一天无自有产出即可降级回收;⛔ 永不从更新时刻或标题推死活。
7676
- 收班是状态 flush 加在飞安置而非归零,简报是最终一笔;留守只写简报点名的项。
7777
- 换班报告默认零建议,只收原则错缺、可机械化项与平台事实变化三类。

‎.claude/skills/pm-dispatch/references/seat-post-protocol.md‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
- 常设半边是分诊轮的座位贴活性巡查,同一判据,细则见 `dispatch-runbook.md`。
2727
- 可跑读法:本车道 `pm:dispatched` 卡按 `updated_at` 降序一搜,或读最近一条认领评论。
2828
- 写侧刷新三时刻:派发、收班、暂停或交接前;时间戳恒取自 `scripts/pm/post-stamped.mjs`。
29+
- 刷新前回执未读敲门;`post-stamped.mjs --body` 拦截:评论晚于正文末次戳 ⇒ `--ack-through=ID`。
2930
- 协议升级迁移状态、或巡检发现正文不符时,当场改正文 + 审计评论。
3031
- Routine 座位的收尾简报也落自己的座位贴,它是下一轮自退守卫的读数。
3132
- 安置默认离任留守;留不了才热移交:在飞卡落收单注记 + 点名看护者。
@@ -50,8 +51,6 @@
5051
9. 在飞 dev 卡与留跑会话在贴里点名(卡号 + 派发会话 ID);跟完与归档 ⛔ 不随交接转移。
5152
10. 向维护者交最终报告。
5253

53-
- 会话句柄是账号作用域的,细则见 `dispatch-runbook.md`。
54-
5554
## 座位 Routine 创建
5655

5756
- 由维护者在 claude.ai 的 Routines UI 创建,凭据随 Routine 所挂 repo sources 走。

0 commit comments

Comments
 (0)