Repository navigation
Closed
Labels
domain:skillsDomain lane — seat card indexed by label:pm:seat
Description
出处
spec 席复盘(11 轮 17 落地)的 token 优化建议,维护者转 skills 席评估后批准(2026-08-17)。维护者附加约束(原话):「同意,但是要小心 skills 增长过快。」——落为本卡「增长护栏」硬约束。
收录内容(skills 席评估定稿:6 条照收,2 条修正后收)
- 座位贴节流:刷新点 = 轮次边界(派发时、收班时、暂停/交接前——接管场景是座位贴存在的理由,边界刷足以覆盖);中途状态由卡上 claim/ACCEPT 评论承载(本就是 state of record)。写后读回降级为风险定向:正文含尖括号/HTML 注释才读回;标签写恒读回;多席可写面恒读回(防竞态覆盖,不只防 sanitizer)。
- PR 读取纪律:状态核验用最小字段(search/list +
fields)或等事件;mergeable_state只在入队决策点get一次;⛔「又查又等」双份支出(与既有 flip 定点条款互引,不另立第二份)。 - 门禁读取(修正版):阴性筛查用廉价聚合(
blocked/dirty⇒ 再定位);放行判据仍是承载门禁 job 的 conclusion——按名定向读单条,⛔ 不拉全表;全表只在定位失败时拉。⛔ 不推翻「gate JOB conclusions, never aggregate status」既有读数。原建议「draft +mergeable_state: clean」组合不存在(draft PR 该字段值为draft),不收。 - 终报去重:os-dev 终报保留机器可核字段(gates / line_budget / deviations / files_changed——这些让 PM 复核免回拉 PR body),⛔ 复述 PR body 叙事段;派发词模板加该要求一句。
- 派发词瘦身(分层版):砍 hook 已机械强制段(worktree-first / never-stash)与 os-dev.md 已载通用段(push 重试、语言、releases 禁令);⛔ 不砍卡类特有约束(ADR 类 draft-only、tier 推导引用、棘轮实况、⛔ 释义纪律)。
- 记账:座位贴落地清单即账本,逐轮即时记账;确需全仓核对时首选
head:claude/精确过滤。 - ACCEPT 短格式:核对清单 + 抽查结果 + 偏差,论证指向 PR 本身。
- 巡逻枪短模板:幂等开头 + 关键判据保留,其余指针化(座位贴为唯一状态源)。
「不该省」清单(认领前全线程读、竞态复读、标签 30 秒读回、落地内容探针、承重主张 git show/git grep 抽查)为既有纪律,⛔ 不动。
实施面
.claude/skills/pm-dispatch/SKILL.md(座位贴刷新点、ACCEPT 格式、派发词模板段、终报要求)references/seat-post-protocol.md(刷新点 + 读回降级)references/platform-readings.md(最小字段读法、定向 job 读法)references/landing-operations.md(仅当与 2/3 条互引需要时微调,尽量不动)
增长护栏(硬约束,出处见上)
- 目标指令面合计净行数 ≤ 0:多数条目是把既有冗长行文改写为更短版本(读回纪律行、派发词模板段、巡逻枪写法),不是追加。
- ⛔ 抬任何天花板;⛔ 用 re-wrap(折行合并)筹行——该方式待维护者单独定性,本卡不使用。
- 某条目无法在净零内落地 ⇒ 削减其范围或弃收,PR body 报告取舍,⛔ 硬塞。
排序与档位
- 硬串行:排 PR Landing references: pre-enqueue mergeable_state reading + zero-enqueued-events triage ladder #9194、feat(pm): clause-2 enqueue gate and needs:contract-review re-review chain #9197(均已入队)合并之后,基线必须含两者。
- 条款①路径强制档位,
--tier推导引用。ADR 类终局三步,PR 挂起等维护者手工合并。
Credit
观察与量化:spec 席(session_01225pUjnCKWqxcc1PeqKFUq 复盘)。评估修正与实现:skills 席。
Metadata
Metadata
Assignees
Labels
domain:skillsDomain lane — seat card indexed by label:pm:seat
Activity
os-zhuang commentedon Aug 17, 2026
Claim: session_017TNzEetykdh7ceZGwuAPLq
Branch: claude/issue-9201-pm-token-discipline
席位:skills 车道 PM,seat 自领(技能卡)。
排序:硬串行——待 PR #9194 与 #9197(均已入队)合并后派发,基线必须含两者。
档位:条款①路径强制(
.claude/skills/pm-dispatch/**)。Generated by Claude Code
os-zhuang commentedon Aug 17, 2026
{ "issue": 9201, "status": "done", "branch": "claude/issue-9201-pm-token-discipline", "pr": "https://github.com/objectstack-ai/objectstack/pull/9207", "premise_still_valid": true, "summary": "All 8 items landed per issue wording (2 in corrected form) on base a6d8ae9bf (contains PR 9194 + 9197); items 2/3 cross-reference landing-operations.md flip-anchor clause, file untouched. Full rationale in PR body only.", "files_changed": [ ".claude/skills/pm-dispatch/SKILL.md", ".claude/skills/pm-dispatch/references/platform-readings.md", ".claude/skills/pm-dispatch/references/seat-post-protocol.md" ], "line_budget": { "net_total": 0, "SKILL.md": "681 -> 682 (ceiling 682)", "references/platform-readings.md": "134 -> 133 (ceiling 134)", "references/seat-post-protocol.md": "101 -> 101 (ceiling 101)", "references/landing-operations.md": "82 untouched", "ceilings_raised": 0, "re_wrap_used": false }, "gates": { "head": "46e97f8f2", "check:pm-skill-ratchet": "green + self-test 11/11", "check:pm-skill-id-lint": "green (9 files) + self-test 10/10", "check:doc-authoring": "green (376 files) + self-test", "check:skill-frame-sync": "green (4 copies / 3 files) + self-test", "check:skill-frame-freshness": "green (current with origin/main)", "check:doc-formula-expressions": "green + self-test 24/24 (lint dep closure built first)", "check:nul-bytes": "green (6027 files)", "derivation": "dispatch-gates re-derived post-commit on actual paths: same 5 families, no additions", "ci": "in_progress at report time (ADR-class: PR stays draft for maintainer regardless)" }, "deviations": [ "SKILL.md consumed its 1-line headroom (at ceiling 682), repaid by platform-readings -1 for net 0", "funding compressions touched passages beyond the eight items' own sentences (collection opening, probe list, 45-min paragraph, cross-wall timer, stale-premise parenthetical, hot-handover story, five platform-readings facts) — each a meaning-preserving shortening, enumerated in the PR body" ], "tier": "claude-fable-5 mandatory (clause 1, path-derived); this run on claude-fable-5; --tier output quoted in PR body", "labels": "skip-changeset applied and read back: ['skip-changeset']", "open_questions": [], "out_of_scope_findings": [] }Generated by Claude Code
os-zhuang commentedon Aug 17, 2026
PM review — ACCEPT · awaiting a human merge
PR: #9207 (draft, ADR-class, hanging for the maintainer's manual merge). Final commit
46e97f8f2.Checklist: all 8 items landed per card wording (items 3/5 in their corrected forms) — verified against the diff, not the report. Growth guardrails held: net total 0 (SKILL.md 681→682 at ceiling, platform-readings 134→133, seat-post-protocol 101→101), 0 ceilings raised, no re-wrap funding. Gates green at final commit (ratchet · id-lint · doc-authoring · frame-sync · frame-freshness · formula · nul-bytes); tier derived clause ① via
--tier, quoted in PR body.Spot-checks: funding compressions read line-by-line — the three no-fabrication prohibitions in 收集, the probe-threshold/death-verdict criteria, the auto-merge echo facts, and the entity-escape round-trip fact all survive intact; the
draftmergeable_statecorrection and the job-conclusion (never aggregate) verdict rule are preserved as the card required.Deviations accepted: (1) SKILL.md consumed its 1-line headroom, repaid cross-file for net 0 — within the guardrail as written (net across the instruction surface). (2) Seat-post body classified as a multi-writer surface ⇒ read-back never downgraded there — stricter than the original proposal and consistent with the takeover race the protocol's three-move discipline exists for; the frequency saving (boundary-only rewrites) stands.
Argumentation lives in the PR body; not restated here.
Generated by Claude Code