Repository navigation
Commit 81aacd3
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
- scripts/pm
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
| 102 | + | |
| 103 | + | |
102 | 104 | | |
103 | 105 | | |
104 | 106 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
116 | | - | |
| 116 | + | |
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
| |||
0 commit comments