Skip to content

docs(pm-dispatch): a decision analysis opens with its Served-tier line, read before presenting - #38480

Draft
objectstack-fleet[bot] wants to merge 2 commits into
mainfrom
claude/issue-38391-analysis-served-tier
Draft

objectstack-fleet[bot] wants to merge 2 commits into
mainfrom
claude/issue-38391-analysis-served-tier

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Requested by Leehom · project thread

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: both 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.

Deferred, not in this PR: part 3 (a record-recognisers.mjs reader for the line on needs-user-decision cards). That file is an always-H instrument and open PR #38472 edits it. No card is filed here; the seat decides when it is taken.

Rule-change: 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 belongs with the deferred part 3.

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); the two ratchet rows.

Local gates at head c4302a7: 39 of 40 derived families exit 0, 1 NOT MEASURED
  • node scripts/pm/dispatch-gates.mjs --commands derived 40 commands for the 3 changed paths; all 40 ran in one batch under scripts/pm/os-verify-lock.sh (lock verdict: command-exit 0).
  • 39 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: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: "40 derived famil(ies) accounted for, 39 run, 1 NOT-MEASURED".
  • node scripts/pm/overlap-check.mjs: VERDICT clean (origin/main, feat(pm): seat readers accept LANE@ACCOUNT beside LANE#N (readers first, no writer switches) #38472 and docs(dogfood-verification): re-measure the boot steps against today's app #38461 merge cleanly).
  • Families CI runs outside the derived list are read from this PR's check-runs, not re-run here.

🤖 Generated with Claude Code

https://claude.ai/code/session_01FEkQ5oPfjnm2yWHEwkiYrn


Generated by Claude Code

…e, read before presenting

The English analysis section of a decision card opens with `Served-tier:`
(the tier constant's name) and `Analysed-by:`; an at-tier line needs the
author's transcript to pass verify-review-tier.mjs. The presenting seat
reads the line before presenting to the maintainer and re-runs at tier
when it is missing or below. area-lease.md points to it. Growth paid by
deletions in each file; both ratchet rows lowered to the landed bytes.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FEkQ5oPfjnm2yWHEwkiYrn
@objectstack-fleet objectstack-fleet Bot added the skip-changeset PR has no user-facing published change; bypasses the changeset gate label Nov 29, 2026
@github-actions github-actions Bot added size/s documentation Improvements or additions to documentation labels Nov 29, 2026

This branch has not been deployed

No deployments
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 size/s skip-changeset PR has no user-facing published change; bypasses the changeset gate

Projects

None yet

2 participants