Skip to content

Commit 81aacd3

Browse files
docs(pm-dispatch): a two-way pin between an ADR text and its gate rides one card and one PR (#38865)
<!-- claude-projects-attribution: {"github_login":"os-support-ai"} --> _Requested by **Yibo Wang** · [project thread](https://claude.ai/code/project/chan_01BVUyyPie8gHwoPM18iABwB?thread=cmsg_01BVUyyPie8gHwoPM18iABwB1hPSUXVWWaX4kvGfBzBT7q)_ Fixes #38367 Clause-②: no Metadata-protocol: none Rule-change: ruled Ruling-ref: 「同一个 PR,你批一次」 (consequence line 「规则写明:双向锁定的文字和检查走一张卡一个 PR。改规则是一个小 PR,检查保持严格。」), the maintainer's tap on a decision card, 2026-12-01T06:29Z, recorded as ruling record 7302993286 on this card: option A of decision analysis 7242989541, as its section "What A rules, in one stroke" states it. ## 维护者速读 - 用户无感:车队派发规则多两行,设计记录与核对它的检查被要求两边完全一致时,文字和检查改动走一张卡、一个 PR。 - 为什么做:这是你在决策卡上选的「同一个 PR,你批一次」;旧规则把这类改动拆成两个 PR,两个单独都过不了检查,只能临时合回一个。 - 出错会怎样:只影响以后怎么派这类卡,不碰产品;写错了顶多多拆或少拆一次,合并前可直接撤回,合并后改一行即可。 - 要你做什么:审核席通过后,看一眼这两行措辞并批准这个 PR。 ## What changes `.claude/skills/pm-dispatch/references/execution-duties.md`, section 派发, two lines right after the enumeration-row exception (the lines that keep `docs/adr/**` off an implementation card and admit only enumeration rows): ```text - 双向钉例外:必需门禁双向钉住 `docs/adr/**` 文本与代码同集、两半单独各被实测拒(派发令引两条拒因)⇒ 一卡一 PR 带门禁改动与该词表值的完整 ADR 描述,文件面点名 ADR 与节;Tier H,一次契约审核档 L2。 - 只限被钉词表及其描述;任一半单独实测绿 ⇒ 照旧拆卡,dev 报分叉;⛔ 两向都不静默改道。 ``` How each point of the ruled section lands, quoted verbatim from analysis 7242989541: > 1. Trigger, measured not judged: a required gate holds a `docs/adr` text and code to the same set in both directions, and each half alone fails that gate. The dispatch order quotes the gate's two refusals. > 2. Shape: one card, one PR, carrying the gate change and the ADR text that describes the value (the full description, not only the line the pin reads). No `domain:skills` sub-card for that text. The dispatch order's file surface names the ADR file and its section. > 3. Tier: the whole PR is Tier H; construction at the contract-review tier with the ADR-revision effort; one contract-tier L2 on the combined head; the maintainer's approval. All four are what the paths already derive today. > 4. Bounds: only the pinned vocabulary and its description. Unrelated ADR edits, `skills/**` and internal rules stay on their own cards. The gate is not changed. > 5. Premise clause: if the dev measures either half green alone, the exit does not apply; the card is split as today and the dev reports the fork. ⛔ No silent fallback either way. - Point 1 is the line's trigger clause (双向同集, 两半单独各被实测拒, 派发令引两条拒因). - Point 2 is 一卡一 PR 带门禁改动与该词表值的完整 ADR 描述, 文件面点名 ADR 与节. - Point 3: Tier H and the one contract-tier L2 are stated. The construction tier and the ADR-revision effort are not restated: the same file's 定档 section already derives them from `docs/adr/**` (强制条款① and the ADR 修订 effort line), as the point itself says. - Point 4 is the second line's 只限被钉词表及其描述. "The gate is not changed" belongs to the ruling (no pending form), not to the dispatch rule, so it is not a line here. - Point 5 is 任一半单独实测绿 ⇒ 照旧拆卡, dev 报分叉; ⛔ 两向都不静默改道. `scripts/pm/check-skill-line-ratchet.mjs`: the `execution-duties.md` ceiling row only, raised **22434 → 22819 (+385 bytes, the landed size, `wc -c`)** under **ruling record 7302993286**, its comment quoting the maintainer's words verbatim, in the shape of the earlier rows. The file had 0 bytes of headroom; no other row moved. `domains/skills.md` (5 bytes headroom) is not edited: its enumeration-row exception is about `skills/**`, and the split rule and its exceptions live in `execution-duties.md`, so the new line reads correctly without a pointer there. ## Tests No code behaviour changes; this is rules text plus one ceiling number. Evidence is the gate set derived for the diff. <details><summary>Derived gate set (41 commands) and its reconciliation</summary> `node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack` on commit 8fde2b6: 41 commands. Each was run with its exit code captured before any pipe. - 40 exit 0, among them `pnpm check:pm-skill-ratchet` (`execution-duties.md is 22819 bytes (ceiling 22819; headroom 0)`), `pnpm check:pm-skill-id-lint` (`134 file(s) clean`), `pnpm check:nul-bytes`, `pnpm check:skill-frame-sync`, `pnpm check:pm-governed-merges`, `pnpm check:doc-authoring`, `node scripts/check-comment-mask-corpus.mjs`. - Eight gates first exited 3 (PREREQUISITE NOT MET: no `node_modules` in the new worktree, then `@objectstack/formula` and `@objectstack/lint` not built). After `pnpm install` and building those two packages, all eight were re-run and exit 0. - NOT MEASURED: `pnpm check:pm-dispatch-gates`. Its first run took 643 s: 2901 of 2904 cases green. The 3 red cases each said "exit 3: install the workspace first", because that run started before `pnpm install`. The re-run after install hit the 585 s foreground cap and was killed. CI owns the verdict. - `node scripts/pm/dispatch-gates.mjs --ran ran.list`: `41 derived famil(ies) accounted for — 40 run, 1 NOT-MEASURED`. After merging `origin/main` (3 commits, none touching these two files), the ratchet family was re-run on head f5a14b2: `check:pm-skill-ratchet`, `check:pm-skill-id-lint`, `check:nul-bytes`, `check:skill-frame-sync`, `check:pm-governed-merges`, `check:ratchet-remedy-authority`, `check:pm-prior-rulings`. All exit 0. Narrowing declared: the rest of the 41 were measured on 8fde2b6, the pre-merge commit with the same two-file delta. </details> ## Acceptance notes - Tier: `check-governed-merges --test` on the two paths answers GOVERNED, `.claude/**`, landing tier H. Without a PR reading it marks the `.claude/**` declaration split as NOT MEASURED. The ruling record and the claim both say this PR is Tier H. `Rule-change: ruled` with a `Ruling-ref:` line is the line `.claude/**` reads for its Tier S split, so the seat confirms the tier with `--pr`. This PR does not decide it. - The ratchet file's header paragraph above `CEILINGS` says "Three rows were later raised by an ordinary ruled raise". Many rows now carry ruled raises, so that count is stale. This is a volatile count, outside this card's file surface. Noted only, not filed. ## Read first 1. `.claude/skills/pm-dispatch/references/execution-duties.md`, the two added lines in 派发 (risk: the trigger wording, which decides when a card is not split). 2. `scripts/pm/check-skill-line-ratchet.mjs`, the `execution-duties.md` row (risk: the delta must equal the landed bytes). ## Verification (two minutes) `node scripts/pm/check-skill-line-ratchet.mjs` prints `execution-duties.md is 22819 bytes (ceiling 22819; headroom 0)` and exits 0. --- _Generated by [Claude Code](https://claude.ai/code/session_01WGufzfWWgrLkABDvbRjhAk)_ Co-authored-by: Claude <noreply@anthropic.com>
1 parent 29b270d commit 81aacd3

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

‎.claude/skills/pm-dispatch/references/execution-duties.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,8 @@
9999
- 档位与 effort 的取值只住本节末〈定档〉:认领、派发、开线程与起子代理前照它定,⛔ 不凭记忆。
100100
- 实施卡文件面 ⛔ 不含 `docs/adr/**`、`skills/**`、`SKILL.md`、`os-dev.md`:各立 `domain:skills` 卡。
101101
- 例外仅新增:枚举行(见 `domains/skills.md`)随实施卡同笔,派发令文件面只点该行。
102+
- 双向钉例外:必需门禁双向钉住 `docs/adr/**` 文本与代码同集、两半单独各被实测拒(派发令引两条拒因)⇒ 一卡一 PR 带门禁改动与该词表值的完整 ADR 描述,文件面点名 ADR 与节;Tier H,一次契约审核档 L2。
103+
- 只限被钉词表及其描述;任一半单独实测绿 ⇒ 照旧拆卡,dev 报分叉;⛔ 两向都不静默改道。
102104
- ADR 记账行(resolved by/修订注记)归落地席:ACCEPT 记 `carrier:` 注,合并后同轮在 open「ADR revisions, week of …」卡
103105
追加一行(ADR、节、原文所说、现在实情、落地 PR),无 open 卡则开下周卡;周卡以一个受管 `docs/adr/**` PR 落地。
104106
- 只收与 `main` 矛盾的 ADR 文本;纯补记 ⛔ 不立。

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ export const CEILINGS = new Map([
113113
['.claude/skills/pm-dispatch/references/reading-discipline.md', 3822],
114114
['.claude/skills/pm-dispatch/references/cross-repo-coordination.md', 4922], // lowered 4936 → 4922 by the #38415 seat-rule text (-14 in this file; the landed size, headroom 0); before that: raised 4920 → 4936 (+16, the landed bytes) by the ruled text (a new repository's charter lives in that repository; objectstack keeps a pointer file under `lanes/`), the maintainer's ruling quoted in the body of card #35238, step 7 (「包括 hotcrm 每个仓库的规则都在自己仓库」, 2026-11-18)
115115
['.claude/skills/pm-dispatch/references/triage-duties.md', 14161], // raised 13692 → 14161 (+469, the landed bytes) by the maintainer's ruling quoted in the body of the rule card and recorded by triage record 7254553088 (「立卡改技能,现在就派发」): lane seats unlock their own blocked cards every round and first-touch the cards they file; before that: lowered 13709 → 13692 by the decision-analysis tier-line PR (its pointer to the deleted worked 速读 example dropped); before that: edited byte-neutral by the re-basing PR (12399 → 12399); raised 12399 → 13559 (+1160, the landed bytes) by the rulings whose rows are written in it: ruling records 7031931263 (rows 2–5: 「adr接受你的建议」, 「只考虑合并没人认领的,没开始开发的,你负责处理」, 「影响评测的卡不能关,这个会影响到AI的开发效果」, 「adr和skills修改相对是重要的」), 7032145340 (row 6: 「同意」) and 7032418455 (row 7: 「你分诊的时候是不是应该同时评估大概的卡大小作为参考」); review record 7038100802 triggered the part of rows 2, 3 and 6 added in fix round 1 (one close reason, the sweep roll-over, the never-fold list of standing exclusions) and is a trigger, not a ruling; lowered 13559 → 13544 by the PR that moved the tier and effort values to the one home; raised 13544 → 13709 (+165, the landed bytes) by ruling record 7135874506 (items B4, B7 and C1: 「照推荐:采纳 5 条」)
116-
['.claude/skills/pm-dispatch/references/execution-duties.md', 22434], // raised 22249 → 22434 (+185, the landed bytes) by the maintainer's ruling quoted in the body of the rule card and recorded by triage record 7254553088 (「立卡改技能,现在就派发」): lane seats unlock their own blocked cards every round and first-touch the cards they file; before that: raised 19810 → 20148 (+338) by ruling records 7031931263 (row 2, the weekly ADR card: 「adr接受你的建议」) and 7032145340 (row 6, the lane seat claims the weekly sweep card: 「同意」); 20148 → 20154 (+6) by ruling record 7073679594 (the L2 review effort line moves to `high` on the review sweep's readings: 「C」, under ruling 7073045669 point 4); 20154 → 20277 (+123) by ruling record 7075909669 (#36203 items 1-5: 「同意五条都改」): a hold is Blocked-by + pm:blocked on the card, the probe covers card threads; 20277 → 22158 (+1881) by ruling record 7076315104 (the one home for tier and effort, the 定档 section: 「要把规则文字同统一整理一下,避免散落在各处,避免ai犯错」); raised 22158 → 22316 (+158) by ruling record 7076315104 (Q13, the decision card 「定一下:五条新增规则要不要写进技能」: 「五条都写」) (the coordinator session, the area thread and the director's effort); lowered 22316 → 22307 by the PR that drops the triage suggestion line (item C1 of ruling record 7135874506); lowered 22307 → 22249 to its landed size by the #35237 slice-12 pointer PR
116+
['.claude/skills/pm-dispatch/references/execution-duties.md', 22819], // raised 22434 → 22819 (+385, the landed bytes) by ruling record 7302993286 (「同一个 PR,你批一次」, option A of decision analysis 7242989541): a required gate pinning a `docs/adr/**` text and code to one set both ways rides one card and one Tier H PR; before that: raised 22249 → 22434 (+185, the landed bytes) by the maintainer's ruling quoted in the body of the rule card and recorded by triage record 7254553088 (「立卡改技能,现在就派发」): lane seats unlock their own blocked cards every round and first-touch the cards they file; before that: raised 19810 → 20148 (+338) by ruling records 7031931263 (row 2, the weekly ADR card: 「adr接受你的建议」) and 7032145340 (row 6, the lane seat claims the weekly sweep card: 「同意」); 20148 → 20154 (+6) by ruling record 7073679594 (the L2 review effort line moves to `high` on the review sweep's readings: 「C」, under ruling 7073045669 point 4); 20154 → 20277 (+123) by ruling record 7075909669 (#36203 items 1-5: 「同意五条都改」): a hold is Blocked-by + pm:blocked on the card, the probe covers card threads; 20277 → 22158 (+1881) by ruling record 7076315104 (the one home for tier and effort, the 定档 section: 「要把规则文字同统一整理一下,避免散落在各处,避免ai犯错」); raised 22158 → 22316 (+158) by ruling record 7076315104 (Q13, the decision card 「定一下:五条新增规则要不要写进技能」: 「五条都写」) (the coordinator session, the area thread and the director's effort); lowered 22316 → 22307 by the PR that drops the triage suggestion line (item C1 of ruling record 7135874506); lowered 22307 → 22249 to its landed size by the #35237 slice-12 pointer PR
117117
['.claude/skills/pm-dispatch/references/filing-gate.md', 9188], // raised 9124 → 9188 (+64, the landed bytes) by the maintainer's ruling quoted in the body of the rule card and recorded by triage record 7254553088 (「立卡改技能,现在就派发」): lane seats unlock their own blocked cards every round and first-touch the cards they file; before that: raised 9096 → 9101 (+5) by ruling record 7075909669 (#36203 items 1-5: 「同意五条都改」): same-epic order is the later card's Blocked-by; raised 8386 → 9096 (+710, the landed bytes) by the rulings whose rows are written in it: the rule card's body ruling (row 1, a dedupe hit on an open same-mechanism card ends in a comment: 「感觉你的第二种方案也很好啊」) and ruling record 7032145340 (row 6, the weekly sweep card entry rule and triage's move at first touch: 「同意」); review record 7038100802 triggered the quota line's pointer to row 1 (fix round 1) and is a trigger, not a ruling; lowered 9101 → 9089 by the PR that moved the tier and effort values to the one home; raised 9089 → 9124 (+35, the landed bytes) by ruling record 7135874506 (item A1: 「照推荐:采纳 5 条」)
118118
['.claude/skills/pm-dispatch/references/project-forms.md', 4875], // raised 4669 → 4889 (+220 B, the two project-memory lines less 48 B of restatement cuts) by ruling record 7046610679 「同意,立卡派发」 under ruling record 6184799323, letter B
119119
['.claude/skills/pm-dispatch/references/app-platform-boundary.md', 3928],

0 commit comments

Comments
 (0)