You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 63acc6c
Browse filesBrowse the repository at this point in the historyBrowse files
docs(pm-dispatch): a decision analysis opens with its Served-tier line, read before presenting (#38480)
<!-- claude-projects-attribution: {"github_login":"os-project-manager"}
-->
_Requested by **Leehom** · [project
thread](https://claude.ai/code/project/chan_01TenzsRopZj4jMbvjX8uz1X?thread=cmsg_01TenzsRopZj4jMbvjX8uz1XHogQ9ogKPxHhiFfT2UQgJi)_Fixes#38391
Clause-②: no
Metadata-protocol: none
Rule-change: yes
## 维护者速读
- 用户能看到什么变化:用户无感;以后每份决策分析开头写明是哪一档做的、由哪个会话执笔,席位呈给你之前先核对这一行。
- 为什么做:你指出分诊会话写的四轴分析无法确认档位,这条规则让来路不明的分析不再直接落到你面前。
- 出错会怎样:最坏是同一个问题多跑一轮高档分析;决策箱里现有的每张卡,下次呈给你之前都会先补跑一轮;规则文本可随时撤回,不影响任何产品功能。
- 要你做什么:本 PR
改的是车队规则(席位自判为新规则,不是照抄裁决),并为腾出篇幅删掉了决策分析写法里唯一的速读示例,需要你批准后才能落地。
## What changes
Parts 1 and 2 of the card, rule text only. The full rule lives in one
file, `decision-analysis.md`; `area-lease.md` points to it.
**`.claude/skills/pm-dispatch/references/decision-analysis.md` 〈落卡分析模板〉,
two lines added** (the file spells the two placeholders in angle
brackets; written here as `TIER` and `SESSION` because this body cannot
carry them):
- Before: (none)
- After: 「英文段首两行 `Served-tier: TIER`(`CONTRACT_REVIEW_TIER |
TIER_DEFAULT`)、`Analysed-by: SESSION`(执笔会话或子代理),⛔ 不写模型 id;标
`CONTRACT_REVIEW_TIER` 须执笔转录过
`verify-review-tier.mjs`(`--tier-evidence=` 只判 L2 记录)。」
- Before: (none)
- After: 「呈维护者前读该行:缺或未达档 ⇒ 达档重跑,贴带两行的 delta 评论(逐棱同异)再呈;⛔ 永不呈读不出档的分析。」
**Same section, deleted to pay for the two lines:** the worked 速读
example (「例(新应用的菜单名被存成译文)」 and its four sub-bullets, 414 bytes). It is
an illustration, not a rule; the four-line shape it shows stays stated
on the lines above it.
**`.claude/skills/pm-dispatch/references/area-lease.md` 〈区内规则〉:**
- Before: 「仅呈维护者选项组过独立评审,多卡一批;…」
- After: 「仅呈维护者选项组过独立评审(档位照 `decision-analysis.md`),多卡一批;…」
- Paid by two deletions in the same file, both restatements:
- Before: 「所落 PR 欠的红检查读日志(`readings-ci.md`)派子代理读,一读兼守本条与该文。」 After: 「所落
PR 欠的红检查日志派子代理读(`readings-ci.md`)。」
- Before: 「挂前先查 PR 上已有落地评论,有即 ⛔ 不再挂。」 After: 「挂前先查已有落地评论,有即 ⛔ 不再挂。」
**`scripts/pm/check-skill-line-ratchet.mjs`:** the two rows lowered to
the landed bytes, no raise: `decision-analysis.md` 5589 → 5580,
`area-lease.md` 6990 → 6986. The declared cross-file move into
`decision-analysis.md` still holds (+557 against a 568-byte source
decrease).
**One deviation from the card's wording, on purpose.** The card asks
that an at-tier analysis be posted with `--tier-evidence=` as L2 records
are. Read on main: `post-stamped.mjs` checks `--tier-evidence` only when
the body is a `## Contract review` record (`recordTierEvidenceRefusal`
returns early for any other comment), and `issue-create.mjs` takes no
such option, while an analysis lives on the card body or in a delta
comment. Writing "post it with `--tier-evidence=`" would name a check
that does not run. The rule therefore names the check that does run on
any transcript, `verify-review-tier.mjs`, and says plainly that the
writer's flag judges L2 records only.
**`.claude/skills/pm-dispatch/references/triage-duties.md`** (round 2):
its pointer to the deleted example is dropped.
- Before: 「决策卡速读居四棱块之上、同题,至多四行业务话;写法与例见 `decision-analysis.md`。」
- After: 「决策卡速读居四棱块之上、同题,至多四行业务话;写法见 `decision-analysis.md`。」
- Its ratchet row is lowered 13709 → 13692, the landed bytes. No row
rises.
**Deferred, not in this PR:** part 3 (a `record-recognisers.mjs` reader
for the line on `needs-user-decision` cards) and the writer gap below
(`post-stamped.mjs --tier-evidence` does not judge an analysis that
names `Served-tier: CONTRACT_REVIEW_TIER`). Both are carried by
follow-up card #38492 (Blocked-by #38472, which edits
`record-recognisers.mjs`), with the contract review's nits N1-N4.
**Why the rule-change line reads yes.** The maintainer's words on the
card (「卡上现有的四轴分析是分诊会话写的,无法确认它用的是不是 fable。立卡更新skills」) order a skills
update but do not cover this exact text, the example deletion or the two
area-lease trims, so this is not declared `ruled`.
## Tests
Rule text only; no code path changes, so nothing to ablate.
## Acceptance notes
- The worked 速读 example was the only content in `decision-analysis.md`
that could pay 361 bytes without deleting or rewording ruled lines. If
the seat prefers to keep it, the alternative is a raise under a ruling
of record, which this dev does not hold.
- `post-stamped.mjs --tier-evidence` is accepted on every comment but
judged only on `## Contract review` records. A reader that also judges
an analysis carrying `Served-tier: CONTRACT_REVIEW_TIER` is carried by
#38492.
## Round 2
Round 2 at head bb0562c: S1 (contract review: `triage-duties.md`
pointed at the deleted example; fixed in the diff, its row lowered) and
M1 (L1: part 3 and the writer gap had no carrier; now #38492), plus the
L1 nit (the 速读 names the example deletion) and the contract review's N4
(the 速读's worst case names the one re-run per card already in the
decision box).
Round 3 at head 158d375: origin/main merged in (no rebase), bringing
#38488 and #38472. The one conflict, in
`scripts/pm/check-skill-line-ratchet.mjs`, is resolved by keeping both
PRs' rows as each wrote them: `cross-repo-coordination.md` 4920 and
`lanes/hotcrm.md` 181 from #38488, and `triage-duties.md` 13692 from
this PR (main's 13709 would pass the gate but leave 17 bytes of headroom
that this PR's deletion freed).
## Verification
Two-minute check: `wc -c
.claude/skills/pm-dispatch/references/decision-analysis.md
.claude/skills/pm-dispatch/references/area-lease.md`, expected 5580 and
6986, then `node scripts/pm/check-skill-line-ratchet.mjs`, expected exit
0.
Files to read first, by risk: `decision-analysis.md` lines 22-23 (the
new rule); `area-lease.md` line 58 (the pointer); `triage-duties.md`
line 49 and the three ratchet rows.
<details><summary>Local gates at head 158d375 (round 3): 41 of 42
derived families exit 0, 1 NOT MEASURED</summary>
- `node scripts/pm/dispatch-gates.mjs --commands` on the final diff
derived 42 commands for the 4 changed paths; all 42 ran in one batch
under `scripts/pm/os-verify-lock.sh` (lock verdict: command-exit 0).
- 41 exited 0, among them `pnpm check:pm-skill-ratchet`, `pnpm
check:pm-skill-id-lint`, `pnpm check:pm-record-recognisers`, `pnpm
check:pm-governed-merges`, `pnpm check:pm-dispatch-gates`, `pnpm
check:pm-half-states`, `pnpm check:skill-frame-sync`, `pnpm
check:doc-authoring`, `pnpm check:nul-bytes`.
- NOT MEASURED: `pnpm --filter @objectstack/lint run
check:doc-formula-expressions`, exit 3. Its prerequisite (the formula
and lint builds) is not built in this worktree, so the gate ran no
check; CI runs it.
- `dispatch-gates --ran` with exit codes: "42 derived famil(ies)
accounted for, 41 run, 1 NOT-MEASURED".
- `node scripts/pm/check-skill-line-ratchet.mjs` exit 0 after the merge:
`decision-analysis.md` 5580, `area-lease.md` 6986 and `triage-duties.md`
13692, each equal to its ceiling.
- `node scripts/pm/overlap-check.mjs`: VERDICT clean against
origin/main, with no open PR sharing a path. #38488 merged to main and
was merged in this round; its `check-skill-line-ratchet.mjs` rows are
kept as it wrote them.
- Rounds 1 and 2 (c4302a7, bb0562c): the same one NOT MEASURED,
every other derived family exit 0.
- Families CI runs outside the derived list are read from this PR's
check-runs, not re-run here.
</details>
🤖 Generated with [Claude Code](https://claude.com/claude-code)
https://claude.ai/code/session_01FEkQ5oPfjnm2yWHEwkiYrn
---
_Generated by [Claude
Code](https://claude.ai/code/session_01FEkQ5oPfjnm2yWHEwkiYrn)_
<!-- signed: repo:objectstack#5 · os-project-manager ·
session_01FEkQ5oPfjnm2yWHEwkiYrn -->
---------
Co-authored-by: Claude <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: scripts/pm/check-skill-line-ratchet.mjs
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -85,7 +85,7 @@ export const CEILINGS = new Map([
85
85
['.claude/skills/pm-dispatch/references/dispatch-runbook.md',20483],// raised 20070 → 20354 (+284) by ruling record 7075909669 (#36203 items 1-5: 「同意五条都改」): a card thread confirms Actions started after each push; the seat reads pr-state of every in-flight card PR; lowered 20354 → 20344 by the PR that moved the tier and effort values to the one home; raised 20344 → 20483 (+139) by ruling record 7076315104 (Q13, the decision card 「定一下:五条新增规则要不要写进技能」: 「五条都写」): the thread's first report carries the served tier and the seat writes it into the claim
['.claude/skills/pm-dispatch/references/decision-analysis.md',5589],// raised 5023 → 5589 (+566) by the declared cross-file move from SKILL.md (CROSS_FILE_MOVES below); before that: raised 4892 → 5023 (+131) by ruling record 7076338827, the addendum to 7076315104 (a simple question goes to the maintainer in chat after the at-tier analysis: 「不一定要写成文件吧?简单的问题是不是直接和我沟通就可以」)
88
+
['.claude/skills/pm-dispatch/references/decision-analysis.md',5580],// lowered 5589 → 5580 by the decision-analysis tier-line PR (its worked 速读 example deleted to pay for the `Served-tier:` / `Analysed-by:` lines); before that: raised 5023 → 5589 (+566) by the declared cross-file move from SKILL.md (CROSS_FILE_MOVES below); before that: raised 4892 → 5023 (+131) by ruling record 7076338827, the addendum to 7076315104 (a simple question goes to the maintainer in chat after the at-tier analysis: 「不一定要写成文件吧?简单的问题是不是直接和我沟通就可以」)
['.claude/skills/pm-dispatch/references/seat-lifecycle.md',9070],// raised 9070 → 9076 (+6) by ruling record 7075909669 (#36203 items 1-5: 「同意五条都改」): card-pick --why every patrol round; lowered 9076 → 9070 by the PR that moved the tier and effort values to the one home
108
-
['.claude/skills/pm-dispatch/references/area-lease.md',6990],// raised 6401 → 6586 by the ruled text (one seat per lane by default; a new `area:*` is a partition of that seat), ruling record 7030459053; raised 6586 → 6990 (+404, the landed bytes) by the ruled text (a zone boundary change is the seat's routing call, and a card outside the lease goes to the seat, which picks one of three routes), the maintainer's ruling quoted in the body of the rule card and recorded by triage record 7247665159 (「座位可以自己决定,立卡更新skills」)
108
+
['.claude/skills/pm-dispatch/references/area-lease.md',6986],// lowered 6990 → 6986 by the decision-analysis tier-line PR (its pointer paid by two deletions in the same file); before that: raised 6401 → 6586 by the ruled text (one seat per lane by default; a new `area:*` is a partition of that seat), ruling record 7030459053; raised 6586 → 6990 (+404, the landed bytes) by the ruled text (a zone boundary change is the seat's routing call, and a card outside the lease goes to the seat, which picks one of three routes), the maintainer's ruling quoted in the body of the rule card and recorded by triage record 7247665159 (「座位可以自己决定,立卡更新skills」)
109
109
['.claude/skills/pm-dispatch/references/coordinator.md',4427],// raised 3781 → 4265 by the ruled text (one seat per lane by default; a new `area:*` is a partition of that seat), ruling record 7030459053; lowered 4265 → 4230 by the PR that moved the tier and effort values to the one home; raised 4230 → 4427 (+197) by ruling record 7076315104 (Q13, the decision card 「定一下:五条新增规则要不要写进技能」: 「五条都写」): the coordinator returns an underived ceiling order before a thread opens
['.claude/skills/pm-dispatch/references/triage-duties.md',13709],// 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 条」)
115
+
['.claude/skills/pm-dispatch/references/triage-duties.md',13692],// 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
116
['.claude/skills/pm-dispatch/references/execution-duties.md',22249],// 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
117
117
['.claude/skills/pm-dispatch/references/filing-gate.md',9124],// 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 条」)
118
118
['.claude/skills/pm-dispatch/references/project-forms.md',4889],// 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
0 commit comments