Skip to content

Commit b38a599

Browse files
committed
chore(pm-dispatch): G-D of the current-values sweep: trim stale platform readings, keep the lessons
R1 rewrites the two "no gh in the container" readings (the command may be absent; the container has gh and its porcelain verbs answer 403). R2 keeps the "relay, not the ccr route" line and drops the ccr 429 detail. R3 and R5 drop readings of MCP channels that are locked. R4 collapses the token-class readings to two lines (direct writes sign as the seat's own account; read the signature back on every write). R6 drops the rerun line, superseded by the relay's rerun operation. R7 drops only the conclusion of the Routine-session reading. Ratchet ceilings of the three files that shrank are lowered. Claude-Session: https://claude.ai/code/session_01Utp6CaAqjP52wVTzs99H5G Co-authored-by: Claude <noreply@anthropic.com>
1 parent 688dfd8 commit b38a599

6 files changed

Lines changed: 11 additions & 20 deletions

File tree

‎.claude/skills/pm-dispatch/references/readings-channels.md‎

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -26,25 +26,20 @@
2626
- REST 写侧经出口代理必带 `Content-Type: application/json`,否则代理回 415 且一个字节都没写。
2727
- 两通道的信封在配额、权限、传输三样上都不同 ⇒ 任一侧的拒绝只是那一侧的读数。
2828
- 403 与传输失败要试过另一侧才说得出我没手段;限流先比身份,同 ID 的他侧不是手段。
29-
- 读数:`POST /actions/runs/{id}/rerun-failed-jobs` REST 回 403 而 MCP 回 201。
3029
- job 日志只有 MCP 取得回,REST 侧转 blob 存储 `http=000`;同分钟 MCP 限流而 REST core 满 15000。
3130
- ⇒ MCP 限流先 `GET /user` 比 ID:同 ID 的 REST 满额不是退路,写排队到重置;异 ID 才是。
3231
- MCP 的读限流与写限流彼此独立,两向各有实测 ⇒ 一侧被拒 ⛔ 不推另一侧也不可用。
3332
- REST 档以本班 repo-scoped 探针绿为前提;403 会话改按降级梯读。
34-
- 容器 curl 的 REST 通道令牌两类:installation(`claude[bot]`)与 user-to-server(用户),core 均 15,000/时。
35-
- 类按 Claude Code 账号定,⛔ 不按会话定:一会话内两次写之间可无席位动作地翻转。
36-
- 两次实测:分诊席 2026-09-15 `claude[bot]`→`os-sam`;技能席 2026-09-15→16 `claude[bot]`→`os-zhuang`。
37-
- 类只认每次写回读的 `user.login`/`user.type`,⛔ 不从开轮标记沿用:标记读数带日期、不站住。
38-
- `performed_via_github_app`、`GET /user` 与 core 限流头对两类同答 ⇒ 三者都不是判别式。
33+
- 容器 curl 直写(`rest-channel.md` 的退路)署席位自己的账号;常规写经中继署车队机器人。
34+
- 署名只认每次写回读的 `user.login`/`user.type`,⛔ 不从开轮标记沿用。
3935
- 封号隐藏其全部评论、无 timeline 事件;assignee、PR、正文存活;分诊没了挂 `pm:retriage`。
40-
- ⇒ 耐久算按令牌类重算,⛔ 不假定署名恒 `claude[bot]`;用户类下请 PR 作者复审回 422。
4136
- GraphQL 池 5000/时只留给 `rest-channel.md`〈不可迁移〉三件;draft 翻转与挂载走中继 op。
4237
- 逐操作通道归属、写侧配方与队列路由三读法见 `rest-channel.md`,⛔ 不在本表复述。
4338
- MCP list/search 家族整个走 GraphQL 稀缺池,`issue_write` 连查找半边都吃。
4439
- 配额红时认领类动作排队,评论走 REST 桶先行把结论发出去。
4540
- `gh` CLI 的动词按传输分两桶,池枯竭时只死一半。
4641
- porcelain 家族(`gh issue view` / `gh pr list`)与 `gh pr create` 走 GraphQL,当场回限流。
47-
- 同批事实改走 `gh api` 的 REST 路径照常返回,含开 draft PR;容器无 `gh`,本条只对本机席适用。
42+
- 同批事实改走 `gh api` 的 REST 路径照常返回,含开 draft PR;容器有 `gh`,porcelain 一律 403。
4843
- 红窗调度:守候只给上面那几件 GraphQL-only 的,⛔ 其余一切不为配额空等。
4944
- 走队列的仓落地仍必经 auto-merge,红窗里照样走中继 op 挂载;直合仓合并本身有 REST 端点。
5045
- 被挡住的翻转是在等窗口,不是关于该 PR 的信号 ⇒ ⛔ 不据它重挂、不据它改判状态。
@@ -60,7 +55,7 @@
6055
- ②:是否落地 `git log --format='%H %s' -40 origin/main` 按 PR 号 grep。
6156
- ③:squash 验证 `git rev-list --parents -n1` 数父提交。④:`git ls-remote origin 'refs/heads/*<key>*'`。
6257
- 开轮先读配额:`curl` 带 Bearer `$GH_TOKEN` 打 `/rate_limit`,免费。
63-
- graphql remaining < 1000 ⇒ 本轮走 git 加 REST;⛔ 满余额不放行 undraft:同分钟满额而 ccr 路 429。
58+
- graphql remaining < 1000 ⇒ 本轮走 git 加 REST。
6459
- 中途撞限流的 dev 完不成强制查重,只能把发现交回 PM 代为归档,⛔ 不盲目开卡。
6560
- 打满时待执行写排成有序清单挂进巡逻词,不靠记忆;恢复窗口按序连清。
6661
- 重试对齐整点(REST core 整点重置)优于指数退避,⛔ 绝不忙轮询。

‎.claude/skills/pm-dispatch/references/readings-queue.md‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,9 @@
3737
- 补救:转 draft 与卸载 auto-merge 都做,卸载单独不踢队;两手齐做未见踢队(08-08、09-28、10-24)。
3838
- 出队按队列 ref 阳性探针答不在队向,加未落地;ref 缺席只作旁证,⛔ 永不承载结论。
3939
- 中继 `pr_dequeue` 实测出队(run 43767458575,审计 6902190812):mutation 200,回读离队,仍开未合。
40-
- `update_pull_request` 单字段调用也发送 `draft` 位,曾把治理面 draft 发进队列 ⇒ 锁 1 已拒。
4140
- 请审专用路 = REST `POST /pulls/{n}/requested_reviewers`,载荷只有 reviewers/team_reviewers。
4241
- 它不碰 draft 位 ⇒ 请审恒走它;MCP 兜底已拒。
4342
- undraft 与挂载走中继 op,auto 模式三次零拒;ccr 路带 allow 行仍被拒,已退役;MCP 兜底已拒。
44-
- 2026-09-17 单席实测:ccr 路吃会话凭据的 GraphQL 小时池,尽则 429 且零字节写入,`draft` 未动。
45-
- 唯一可读信号是该 429 体自报的 `resets at` 时刻;体自带指令 ⛔ 重置前不重试。
4643
- ⛔ 裸 `PATCH /pulls/{n}` 传 `draft: false` 回 200 而无操作(2026-09-11);读回才作数:`GET /pulls/{n}`。
4744
- auto-merge 回读 `merge_method` 不恒定:同 `SQUASH` 载荷 `merge`/`squash` 皆现,⛔ 非落地方法判据。
4845
- 仓库 `allow_merge_commit:false` 时同样读回 `merge`;无 REST 端点设该方法。

‎.claude/skills/pm-dispatch/references/readings-session.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
- 原则、定时器选型与恢复 playbook 在主文件;本节只放事实补遗。
3535
- `npx ccusage blocks` 容器内可用,读本地会话记录,报当前 5 小时窗口边界、剩余与燃烧率。
3636
- 盲区:窗口起点是本地推断值;撞墙报文 `limit reached, resets at HH:MM`,重置时刻只此刻可得。
37-
- agent 建的 Routine 起的会话不带 `mcp__github__*` 工具 ⇒ 对以 GitHub 读写为工作的席位不可用。
37+
- agent 建的 Routine 起的会话不带 `mcp__github__*` 工具。
3838
- 创建端现有 `connectors` 参数,声明起的会话可用哪些连接器 ⇒ 成因有了参数级解法。
3939
- ⛔ 未实测,⛔ 不据参数在场推现在能用了。
4040
- 自绑唤醒的是已存在的会话、工具已加载 ⇒ 上条的传输问题不发生。

‎.claude/skills/pm-dispatch/references/readings-shell.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
- ④:浅检出上的历史读数不可信 —— `merge-base --is-ancestor` 假非祖先、`rev-list --count` 截断。
1212
- ④ 里最静默的是窗口式 `git log --grep`:回 0 结果、exit 0、无警告,读作该提交从不存在。
1313
- 同族 `branch -r --contains` 零输出;先 `--deepen` 再判,或走 REST `compare`。
14-
- ⑤:容器里没有 `gh`,于是 `gh … || echo "none"` 是不可证伪的否定。
14+
- ⑤:命令可能不存在,于是 `gh … || echo "none"` 是不可证伪的否定。
1515
- 127 命令不存在与 grep 没命中输出同值 ⇒ 回退分支照打印安心结论而一次都没检查。
1616
- 安全拼写:先 `command -v <cmd>` 确认存在,或在 `||` 之前捕获状态。
1717
- ⛔ 通则:可能不存在的命令上挂回退即不可证伪的否定;PR 与查重核验改走 MCP 工具或 git。

‎.claude/skills/pm-dispatch/references/readings-write-shapes.md‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939
- 去掉横线只写页脚则原样存活;评论不受影响,两种拼法都活。
4040
- ⇒ 失效既依拼写又依载体:评论里验过页脚对 PR 正文什么都没证明。
4141
- ⇒ 处方按动作分裂:建侧送全块(横线加页脚),改侧不送页脚;⛔ 无一形两动作通吃。
42-
- MCP `update_pull_request` 包装器删掉 PR 正文的页脚块;该通道锁 1 已拒,读作历史。
4342
- 改侧 · 裸 REST `PATCH /pulls` 恒追加一条裸页脚并保留既有页脚,差恰 58 字节,与尾部无关。
4443
- 尾部已是 `---` 加页脚块也照追加,重送复现 ⇒ 建侧的不追加判据 ⛔ 不外推到改侧。
4544
- 同路送无页脚正文存回恰一条(平台裸形)⇒ 该格处方是不送页脚,⛔ 不是不重送正文。
@@ -62,8 +61,6 @@
6261
- 只有 `#` 标题与行中键破它;判据是导入 `readClause2Line`,⛔ 不数连续串。
6362
- `CLAIM_COMMENT_MARKER`(`check-half-states.mjs`)只认行首 `Claim:`/`Claimed:`,容前导空白或一个 `>`。
6463
- 词前 `**` 或反引号即让该评论对互斥读数三四与入队腿不可见 ⇒ 后继读作车道无人。
65-
- MCP `issue_write create` 落库丢掉正文尾部的署名页脚块,正文其余部分完好。
66-
- MCP `issue_write` update 送尾部横线加页脚块则两者同被吃掉,而调用照常回 id 与 url。
6764
- 建卡走 REST `POST /issues`:带页脚存活,无页脚合成恰一条(+58);回读后 `PATCH` 重送逐字节存下。
6865
- 真 issue 正文 `PATCH` 识别按整块:送全块或不送页脚都存恰一条,已有页脚归一末尾不复制。
6966
- 无横线的裸页脚不算页脚:它被保留而整块另追加,总数二 ⇒ 恒一条只对上行两输入成立。

‎scripts/pm/check-skill-line-ratchet.mjs‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1209,12 +1209,14 @@ export const CEILINGS = new Map([
12091209
// the split's own cost, +20 lines (one title line and one blank per file, plus this index), is
12101210
// paid by that ruling and by nothing else.
12111211
['.claude/skills/pm-dispatch/references/platform-readings.md', 14],
1212-
['.claude/skills/pm-dispatch/references/readings-queue.md', 89],
1213-
['.claude/skills/pm-dispatch/references/readings-channels.md', 76],
1212+
// readings-queue 89 → 86, readings-channels 76 → 71, readings-write-shapes 84 → 81 (#35215 G-D): stale
1213+
// platform readings trimmed, the lesson kept; landed counts.
1214+
['.claude/skills/pm-dispatch/references/readings-queue.md', 86],
1215+
['.claude/skills/pm-dispatch/references/readings-channels.md', 71],
12141216
['.claude/skills/pm-dispatch/references/readings-page.md', 21],
12151217
['.claude/skills/pm-dispatch/references/readings-search.md', 43],
12161218
['.claude/skills/pm-dispatch/references/readings-issue-fields.md', 27],
1217-
['.claude/skills/pm-dispatch/references/readings-write-shapes.md', 84],
1219+
['.claude/skills/pm-dispatch/references/readings-write-shapes.md', 81],
12181220
['.claude/skills/pm-dispatch/references/readings-ci.md', 48],
12191221
['.claude/skills/pm-dispatch/references/readings-shell.md', 25],
12201222
['.claude/skills/pm-dispatch/references/readings-session.md', 51],

0 commit comments

Comments
 (0)