Skip to content

skills(pm-dispatch): a describing text that disagrees with an unruled implementation is a docs fix in the queue, never a decision card - #17083

Merged
os-zhuang merged 2 commits into
mainfrom
claude/issue-17031-doc-vs-impl-cards-fix-docs
Sep 9, 2026
Merged

os-zhuang merged 2 commits into
mainfrom
claude/issue-17031-doc-vs-impl-cards-fix-docs

Conversation

@yinlianghui

Copy link
Copy Markdown
Contributor

Fixes #17031

What changed

One rule — a describing text that disagrees with an implementation which has not itself been ruled wrong is a documentation defect: the text moves, in pm:queue, and the card never enters the decision box — landed as seven in-place line rewrites across the three files where its readers sit. Zero net lines; every file stays exactly at its ratchet ceiling (no raise, no re-wrap funding); every rewritten line is at or under 120 bytes; no issue ids, dates or quotations in operational text (provenance is below, in this body, where it belongs).

The boundary that decides which side moves is provenance. A sentence with a ruled provenance (an ADR, the spec, a maintainer ruling) that the implementation departs from is finding class (b) — a contract violation — and the implementation moves; SKILL.md:729 「协议为基准:spec 与代码不一致默认改代码对齐」 already says so and is untouched. A sentence with no such provenance — a JSDoc @default, a README line, a reference page, a docblock, a default copied from somewhere else — is a description, and the description moves. Neither side needs a decision card.

What still goes to the box is unchanged: a genuine design fork (SKILL.md:712 「选项在产品语义或公开契约形状上真实分歧且既有规范定不了」 and SKILL.md:645 「真正设计分叉照旧进决策箱」, both untouched). The new lines are guarded twice against being read as 「碰到就自裁」: the routing line carries 实现未被裁错 (an implementation someone has ruled wrong is the other branch), and the director's return runs through the existing class-1 self-ruling gate (SKILL.md:403–410), whose criterion ① 「既有裁定/在案类规则/成文纪律机械决定方向」 fails exactly when two readings are both reasonable — that card stays in the box and is presented.

Every rewritten line, its bytes, and who reads it

file:line before after reader, and when
SKILL.md:342 (66 B) - \pm:queue` 也收恢复不变量的 finding 与 test-only pin。` - \pm:queue` 也收恢复不变量的 finding、test-only pin,与实现未被裁错的说明书脱节(修文档)。` (115 B) triage seat, at every fire's first-touch classification — the pm:queue = … criteria block it reads before choosing one of the three labels
SKILL.md:344 (77 B) - 碰存量数据迁移形状或删除已发布能力的卡也进决策箱。 - 碰迁移形状或删已发布能力也进决策箱;说明书脱节不进:有裁定出处才是 (b),否则改文档。 (120 B) triage seat, same block — the needs-user-decision = … exclusion, and the finding-class (b) boundary the card asked for (说明书脱节 ≠ (b) unless the sentence has a ruled provenance)
SKILL.md:714 (109 B) - 具名不升级类(立即行动):恢复不变量的修复;技术任务间的顺序与依赖;验证策略。 - 具名不升级类(立即行动):恢复不变量;技术任务间顺序与依赖;验证策略;说明书脱节。 (113 B) dispatching seat, when a dev's needs_decision report is reviewed against the named non-escalation classes (SKILL.md:715, the very next line: 「dev 的 needs_decision 经 PM 复核落进不升级类的,PM 直接答复不上传」)
core-rules.md:86 (85 B) - 有落点或可复现的具体缺陷与范围明确的工具修复进 \pm:queue`。` - 有落点或可复现的缺陷、范围明确的工具修复与实现未被裁错的说明书脱节进 \pm:queue`。` (118 B) twin of SKILL.md:342 — SKILL.md:44 「一条规则在本文与核心条款一处改动,另一处同 PR 同改」
core-rules.md:87 (111 B) - 设计卡、契约形状提案、碰迁移形状或删已发布能力的进决策箱,落卡即带四棱块。 - 设计卡、契约形状提案、碰迁移形状或删已发布能力的进决策箱;无出处说明书脱节不进。 (120 B) twin of SKILL.md:344
core-rules.md:137 (102 B) - 具名不升级类:恢复不变量的修复、技术任务之间的顺序与依赖、验证策略。 - 具名不升级类:恢复不变量的修复、技术任务之间的顺序与依赖、验证策略、说明书脱节。 (120 B) twin of SKILL.md:714
lanes/director.md:48 (69 B) - 不达档 ⇒ 通道整体跳过,卡走维护者路径,恒安全。 (deleted) - 入箱先退回:实现未被裁错的说明书脱节卡按一类自裁录裁转 \pm:queue` 修文档,⛔ 不呈批。` (119 B) director seat, at decision-box entry (职责二 决裁勤务) — before a card is placed into a five-card batch; it sits directly under line 47, which points at the self-ruling gates the return applies

Consistency across the two homes, from the tree: git grep -n 说明书脱节 -- .claude/skills/pm-dispatch/ answers exactly the seven lines above (SKILL.md 342/344/714, core-rules.md 86/87/137, director.md 48) and nothing else — same term, same guard (实现未被裁错 / 无出处), same routing (pm:queue, 修文档, 不进决策箱) in both files.

What was deleted or trimmed to pay for it (headroom was 0 on all three files)

  • director.md:48 deleted — 「不达档 ⇒ 通道整体跳过,卡走维护者路径,恒安全」 was stated three times: director.md:14 (「不达档只做免档整理 … 四职停放,⛔ 不裁不清标」), SKILL.md:400 (「档位未达 ⇒ 本 fire 代裁整体跳过,卡原样留在决策箱走维护者路径」) and core-rules.md:95. It also sat directly under director.md:47's own 「⛔ 不另抄」. The other two copies stay.
  • core-rules.md:87 drops 「落卡即带四棱块」 — restated verbatim at core-rules.md:146 (「每张决策卡落卡即带标准四棱块」) and SKILL.md:345; the core file's own subset invariant holds.
  • SKILL.md:344: 「碰存量数据迁移形状或删除已发布能力的卡」 → 「碰迁移形状或删已发布能力」 — the spelling core-rules.md:87 already uses for the same clause.
  • SKILL.md:714: 「恢复不变量的修复」 → 「恢复不变量」, 「技术任务间的顺序与依赖」 → 「技术任务间顺序与依赖」 — class names, no content moved.
  • core-rules.md:86: 「具体缺陷」 → 「缺陷」 (「有落点或可复现」 already carries the concreteness).
  • Not touched, no reader there: references/lanes/triage.md (7/7) is a pointer charter to SKILL.md 分诊座位职责; references/decision-analysis.md (50/50) governs how an analysis is written, not whether a card gets one. SKILL.md:347 (the (b) definition) and :349 (the (a) boundary) are untouched, so the dev-side twin .claude/agents/os-dev.md:42 stays consistent.

Line budget

file ceiling before after
.claude/skills/pm-dispatch/SKILL.md 812 812 812
.claude/skills/pm-dispatch/references/core-rules.md 151 151 151
.claude/skills/pm-dispatch/references/lanes/director.md 72 72 72

Rewritten-line widths: 115 / 120 / 113 / 118 / 120 / 120 / 119 bytes (cap 120). check:pm-skill-ratchet on the final head: 「SKILL.md is 812 lines (ceiling 812; headroom 0)」, 「core-rules.md is 151 lines (ceiling 151; headroom 0)」, 「director.md is 72 lines (ceiling 72; headroom 0)」.

Four-axis check on the wording

  • Real business need — measured, not imagined: the ruling came from a live decision batch where a card of exactly this shape (two @default true JSDoc tags copied from an older zod default, actual default false) had been escalated to the maintainer; each such card costs one presentation slot and a maintainer read. The rule removes that class from the box at triage, at the dispatching seat's needs_decision review, and at the director's entry.
  • Long-term soundness — the boundary is stated in the corpus's own existing vocabulary (「裁定出处」, 「(b)」, 「一类自裁」, 「协议为基准」) and reuses the existing escalation threshold and self-ruling gate rather than adding a parallel channel; no new label, no new state.
  • AI-authoring safety — the failure mode an AI seat is most likely to produce is the opposite one (「文档说 X 所以代码错」): the guard 实现未被裁错 and the provenance test make a JSDoc line unable to convict an implementation on its own, while a sentence with a ruled provenance still convicts it as class (b). Loud direction: a card that is neither is a design fork and is presented, never quietly self-ruled.
  • Startup-stage focus — no new surface, zero net lines, seven in-place rewrites; the corpus does not grow.

Gates

Derived by node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack from the merge-base changeset (16 families); every exit code captured before any pipe.

command exit verdict line
pnpm check:pm-skill-ratchet 0 three ceilings at headroom 0 (quoted above)
pnpm check:pm-skill-id-lint 0 「26 file(s) clean (pattern /#[0-9]{3,}/g)」
pnpm check:skill-frame-sync 0 「2 copies of the decision frame are structurally isomorphic across 2 files」
pnpm check:pm-governed-merges 0 self-test, 274 assertions
pnpm check:pm-governed-prose 0 「2 instruction surface(s) name all 5 registered governed surfaces」
pnpm check:nul-bytes 0 「no raw ASCII control bytes」
pnpm check:doc-authoring 0 「46 published skill files clean」
pnpm check:agent-test-spelling 0 clean
pnpm check:watch-hint-literal 0 「66 declaration(s) across 4 rostered name(s)」
pnpm check:refd-timer-probe 0 「6401 source file(s) swept」
node scripts/check-closing-keyword-parity.mjs (+ --self-test) 0 / 0 「3 parsers agree on all 9 keywords」
node scripts/check-comment-mask-corpus.mjs 0 「6406 files, 0 disagree」
node scripts/pm/check-governed-queue-guard.mjs --self-test 0 144 cases pass
pnpm check:driver-memory-census 0 「every declaration is ledgered」
pnpm --filter @objectstack/lint run check:doc-formula-expressions first run 3 = PREREQUISITE NOT MET (formula/lint not built — nothing measured, not a finding); built both under the verify lock (os-verify-lock: VERDICT command-exit 0 · held the lock 188s · waited 81s); rerun 0 clean

--ran reconciliation: 「16 derived famil(ies) accounted for — 16 run, 0 NOT-MEASURED」. Re-run on the final head 7d030b7c2 after merging origin/main: ratchet 0, id-lint 0, frame-sync 0, governed-prose 0, nul-bytes 0. Control-byte self-scan on the three files (grep -naP over the control range): no hits. No test or build closure: the diff touches no package.

Ablation / reverse verification: not applicable — a prose rule on a governed instruction surface; no test asserts it. The mechanical checks that do read these lines (ratchet at headroom 0, id-lint, the 120-byte cap, frame-sync) were run on the final head.

Governed surface

node scripts/pm/check-governed-merges.mjs --test .claude/skills/pm-dispatch/SKILL.md .claude/skills/pm-dispatch/references/core-rules.md .claude/skills/pm-dispatch/references/lanes/director.md → exit 3:

governed-surface predicate: 3 of 3 path(s) hit the register (5 surfaces, repo-agnostic).
  ⛔  GOVERNED — a human merge is the review record for this PR (#9495 regime).
      No seat flips it ready, enqueues it, or arms auto-merge (AGENTS.md Prime Directive #14).
      One hit governs the whole PR — 「混合 diff 一条命中即整 PR 分叉」; proportion is not a question.
      .claude/** ×3 — the agent instruction tree (skills, agents, hooks, settings)
        - .claude/skills/pm-dispatch/SKILL.md
        - .claude/skills/pm-dispatch/references/core-rules.md
        - .claude/skills/pm-dispatch/references/lanes/director.md

Draft, human merge only. skip-changeset: nothing under any package's files[] moves — .claude/** is not published.

Merge state

Branched from edf59e359; origin/main moved to 854639b31 (one engine commit, nothing under .claude/) before the PR opened. git merge-tree --write-tree origin/main HEAD was clean; git merge origin/main landed as 7d030b7c2; wc -l on the merged tree is 812 / 151 / 72.

Provenance

Maintainer, live conversation with the director seat, 2026-09-09, on objectui#8318 (「结构性(说明书与实现脱节)」), verbatim and untranslated:

所有这种文档错的都应该改文档,没有什么好决裁的,这个应该写入技能。

The boundary's two precedents, as the card gave them: objectui#8318 — @default tags copied from an older default, seven tags nobody renders; the ruling changed the tags, not the components. objectstack#16549 — Setup-page copy promising 「connect as yourself」 against an engine doing an intersection; the maintainer changed the engine, because that sentence was the ruled intent (ADR-0090 D10). The first has no provenance behind the sentence; the second does. That difference is the rule's boundary.

Acceptance notes

  • noted, not filed: the published skills/objectstack-pm-dispatch/SKILL.md (lines 204–207) carries a deliberately generalized Auto-queue / Maintainer-confirm criteria pair without this rule; that copy is generalized by design (route B in the frame-sync gate's header) and outside this card's file surface. 承接者:无 — the skills lane would own it only if the maintainer wants the rule shipped to third-party projects.
  • noted, not filed: .claude/agents/os-dev.md:42 states class (b) as 「违背已声明契约(引契约原文)」; unchanged and consistent, because SKILL.md:347 was not touched and the provenance boundary lives on SKILL.md:344. 承接者:无.

维护者速读(草稿)

改了什么:把您 9 月 9 日对 objectui#8318 的裁定写进 PM 技能:说明书类文本(JSDoc @default、README、参考文档、docblock)与实现不一致、而实现本身没有被裁为错的卡,一律当文档缺陷进队列修文档,不再进决策箱。三个席位各在自己读的位置看到同一条规则:分诊席在定级判据行(pm:queue = … / needs-user-decision = …),派发席在「具名不升级类」,总监席在决策箱入口的退回条款。分界写成「有裁定出处才是契约违背」:句子背后有 ADR、spec 或您的裁决 ⇒ 实现错,修实现;没有、只是描述(含抄来的默认值)⇒ 文档错,修文档;两边都不需要决策卡。

为什么改:您的原话:「所有这种文档错的都应该改文档,没有什么好决裁的,这个应该写入技能。」在此之前这类卡会被立成决策卡等您拍板,每张占您一次呈报和一次阅读;objectui#8318 就是这样到您面前的。

风险与代价(含回滚):三个文件都顶在行数上限,所以全部原地改写、零新增行。为此付了三笔:删了 director.md 里一句在三处重复的「不达档就整体跳过」(另两处原样保留);把「落卡即带四棱块」从核心条款第 87 行去掉(第 146 行原样保留同一句);把几处措辞压短(「碰存量数据迁移形状或删除已发布能力的卡」→「碰迁移形状或删已发布能力」,与核心条款同拼写)。误判风险在反方向:真正的设计分叉(两种读法都说得通、或改哪边都动公开契约)不在此规则内 —— 升级门槛与「真正设计分叉照旧进决策箱」两行未动,总监席的退回走既有的一类自裁门,机械定不了方向的卡照旧呈报。回滚 = revert 本 PR 的一个 commit,不碰任何代码或数据。

席位意见:

你要做的:受管面,人工合并。请看一眼措辞是否与您本意一致,尤其是「有裁定出处才是 (b)」这条分界,以及「说明书脱节」进「具名不升级类」是否合您意。


Generated by Claude Code

… implementation is a docs fix in the queue, never a decision card

Seven in-place line rewrites, zero net lines, every file at its ceiling
(SKILL.md 812, core-rules.md 151, director.md 72). Triage reads the
`pm:queue` / `needs-user-decision` criteria lines; the dispatching seat
reads the named non-escalation class; the director seat reads the
decision-box entry clause, which applies the class-1 self-ruling gate.
The provenance boundary decides which side moves: a sentence with a ruled
provenance is finding class (b) and the implementation moves; a sentence
without one is a documentation defect and the text moves.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HxLw5aKDPR5RJgyUR7Exkd
@yinlianghui yinlianghui added the skip-changeset PR has no user-facing published change; bypasses the changeset gate label Sep 9, 2026 — with Claude
@github-actions github-actions Bot added size/s documentation Improvements or additions to documentation labels Sep 9, 2026

Copy link
Copy Markdown
Contributor Author

维护者速读 — PR #17083(#17031,skills 席终稿,2026-09-09T07:03Z)

改了什么 — 把你 2026-09-09 对 objectui#8318 的裁定写进技能:「所有这种文档错的都应该改文档,没有什么好决裁的」。三处读者各一句,全部原地改写、零增行:① 分诊判据(SKILL.md :342/:344):说明书类文本(JSDoc @default、README、参考文档、docblock)与实现不一致、而实现本身没被裁为错 ⇒ 进 pm:queue 修文档,⛔ 不进决策箱;边界一句:文档句有裁定出处(ADR / 你的裁决)而实现偏离 ⇒ 才算「违背已声明契约」、修实现,否则改文档。② 派发席的「具名不升级类」加入「说明书脱节」(:714)。③ 总监席入箱先退回:这类卡按一类自裁录裁转 pm:queue,⛔ 不呈批(director.md :48)。core-rules 三行同改。

为什么改 — 决策箱里这类卡在消耗你的裁决;规则不写下来,下一个席位又会立一张。真正的设计分叉(两种读法都合理、或改哪边都动公开契约)照旧进决策箱,那条出口没动。

风险与代价(含回滚) — 纯指令文本;回滚 = revert 本 PR。付账:director.md 删掉一句在三处都有的复述(不达档 ⇒ 通道跳过);core-rules 一句四棱块要求在 :146 原文仍在;:344 为凑 120 字节把「存量数据迁移形状」缩成「迁移形状」。

席位意见 — 接受(契约复审档席内复核)。三文件棘轮 812/151/72 未动;id-lint、frame-sync 绿;控制字节 0;mergeable: true;CI 收敛中(07:02Z 四个 job 进行中)。

你要做的 — 合并;或由 os-zhuang / hotlong 批准,本席随即入队。看一处即可::344 那条边界(「有裁定出处才是契约违背,否则改文档」)是不是你的本意——它是总监席对你裁定的读法,不是你的原话;不要就删那半句。


Generated by Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation needs-user-decision Blocked on a maintainer decision — do not dispatch; decision cards only, never on a PR size/s skip-changeset PR has no user-facing published change; bypasses the changeset gate

Projects

None yet

3 participants