Skip to content

docs(pm-dispatch): decision card before popup — AskUserQuestion becomes a presence accelerator - #11226

Merged
os-zhuang merged 1 commit into
mainfrom
claude/issue-11212-decision-card-first
Aug 23, 2026
Merged

os-zhuang merged 1 commit into
mainfrom
claude/issue-11212-decision-card-first

Conversation

@claude

@claude claude Bot commented Aug 23, 2026

Copy link
Copy Markdown
Contributor

Fixes #11212

What this lands

The pm-dispatch skill's own description already routes maintainer decisions to needs-user-decision cards, but the body never stated the order between a card and a blocking popup. Seats therefore read AskUserQuestion as the default channel: the whole seat round halts while one is pending, and its content lands on no queryable surface — not on a card, not visible to sibling seats, not sweepable, not batch-answerable when the maintainer returns.

Three rules now sit in ## 升级与决策, immediately after the four-axis frame — the paragraph a seat is reading at the exact moment it is deciding whether to ask:

  1. 卡先于弹窗 — any maintainer-decision need files the needs-user-decision card as its first action (options + recommendation + evidence + facet block, the same content the popup would carry); the blocked execution card takes pm:blocked + Blocked-by: pointing at it in the same write; the rest of the queue keeps moving — never idle the whole seat on a pending answer.
  2. 弹窗仅作加速器,带在场判据 — AskUserQuestion is allowed only when the maintainer has given human input in this session within ~30 minutes; every ask carries a recommended option; a Skip or a long-pending ask falls back to the card channel and is never re-popped. Because the card exists first, however the popup dies the board stays honest.
  3. 回批入口 — the maintainer saying 「处理决策卡」 sweeps every open decision card for one batch ruling. This is written as the standing trigger for the already-ruled 「我会定期和ai讨论」 consumption path, and explicitly not a revival of the retired periodic decision-summary issue (2026-08-19 ruling) — the two are one line apart in the same paragraph, so a later reader cannot mistake one for the other.

The old closing sentence 「交互会话可另发 AskUserQuestion,带标签的 issue 恒为持久记录」 — the permissive default this card is about — is gone.

Landing ruling (verbatim, untranslated)

Maintainer, 2026-08-23: 「A:立即派发,真删付账(推荐)」

No ceiling was raised. Payment is genuine deletion in the same file.

Payment ledger — .claude/skills/pm-dispatch/SKILL.md, 682 → 682 lines

Ceiling 682, headroom 0 before and after. Every deletion is text another covered file already owns verbatim, or a narrative the ratchet's own verdict message rules out of operational text. No re-wrap was used as a source of lines: each reflow below is the consequence of characters actually removed.

# Deleted from SKILL.md Why it is a true duplicate
D1 「六项写法要求(一句话问题、客户可感知代价的选项表、业务直译与行业类比、四轴业务论证、推荐+回退+置信缺口带低摩擦裁决格式、裁后执行段)」 and 「四棱块固定形状(首行机器可寻标记、四棱各一行中文、字母选项、强制置信缺口行「本分析看不见什么」)」 (~127 chars) references/decision-analysis.md §落卡分析模板 numbers those six items 1–6 in full, and §四棱卡面块固定形状 owns the block shape in full. The same sentence already said 细则见 that file — this is the collapse-to-pointer the compressed references exist for. Kept as the named list 「落卡分析模板、写法六项、适用边界与四棱块固定形状」.
D2 「—— 只约束 needs-user-decision 卡与决策箱讨论,dev 派发四维照旧、不强加行业类比;只管新记录,存量 ⛔ 不回改。」 (~71 chars) references/decision-analysis.md §适用面(边界) owns both boundary rules verbatim. Folded into the pointer as the word 「适用边界」.
D3 「(维护者 2026-08-20 裁定,原话:「四维分析应该从业务的角度写我才好判断」;实测:实现视角让维护者追问一轮,业务视角当场裁决)」 (~68 chars) references/decision-analysis.md lines 3–5 are that ruling's 出处: same date, same verbatim quote, same 实测, in fuller form. SKILL.md keeps the rule + date and now says 「细则连同出处原话见」 so the words are one hop away, not lost.
D4 「—— 块标准化把提取从 LLM 理解题降级成 grep」 (~48 chars incl. surrounding punctuation) Same rationale is owned by references/decision-analysis.md §四棱卡面块固定形状 (「首行机器可寻固定标记…提取按字面文本 grep,不依赖注释形状」).
D5 「—— 案例(2026-08-15):两张四棱同向、低风险、全绿、已复核的 PR 仍因分析看不见的方向性前提被整体作废 ——」 (~61 chars) A story in operational text. The ratchet's own red message and the file header both rule 「stories live on cards, not in operational text」. Its operative residue 「推荐是输入,永不是放行,人工地板不变」 is retained verbatim.
D6 云卡四课's four titles 「(① 授权面随 source 不随环境;② 派发词必带自驱条款;③ 交付通道 = 自开 draft PR + 终报 issue 评论;④ draft PR 一存在立即 subscribe_pr_activity 硬步骤)」 (~106 chars) references/dispatch-runbook.md §云卡四课 carries all four as numbered bold headings with their full text. The same sentence says 全文见 runbook. Now reads 「云卡四课全文见 runbook」.
D7 「(全仓一轮翻完;翻转后的pin 断言新语义的实质,真非法形状的拒收断言逐字保留 —— 丢第二句就退化成「全仓删光」)」 (~60 chars) references/dispatch-runbook.md §派发词构造细则 → 「全仓 pin 清扫两句原文」 owns both sentences in fuller form, and the section header already points there. Now reads 「两句缺一不可(两句原文见 runbook)」.

Line math (per file, the only file touched)

Region before after Δ
派发词原则 pin-sweep bullet (D7) 4 3 −1
云卡四课 paragraph (D6) 3 2 −1
升级与决策 tail paragraph (D1–D5 out, rules 1–3 in, +1 blank separator) 14 16 +2
file total 682 682 0

Character accounting for the tail paragraph: 820 chars before → 859 after; ~375 chars of duplication removed, ~414 chars of new rule text added. The paragraph grew in content and shrank in duplication — it did not get re-wrapped tighter.

Nothing was compressed lossily: no rule changed meaning, and every deleted passage's full text still exists, verbatim, in a file the surviving sentence points at.

Frame isomorphism

The four-axis frame block (check:skill-frame-sync, 4 hand-written copies across 3 files) was not touched — the start anchor, the axis entries and the binding sentence 「推荐意见必须基于这四条轴给出理由」 are byte-identical; only text after the binding sentence moved. Gate re-run and green below.

Gates — all run on the final commit 43e751535c

Derived with node scripts/pm/dispatch-gates.mjs (no paths passed; it took the change set from the merge base itself). 7 families matched; all run, plus check:nul-bytes and the ratchet self-test. Verdict lines as each gate printed them:

✓ check-skill-line-ratchet: .claude/skills/pm-dispatch/SKILL.md is 682 lines (ceiling 682; headroom 0).
✓ check-skill-line-ratchet: .claude/skills/pm-dispatch/references/decision-analysis.md is 38 lines (ceiling 38; headroom 0).
✓ check-skill-line-ratchet: .claude/skills/pm-dispatch/references/dispatch-runbook.md is 243 lines (ceiling 243; headroom 0).
✓ check-skill-line-ratchet self-test: 19 cases pass.
✓ check-skill-frame-sync: 4 copies of the decision frame are structurally isomorphic across 3 files
  4 axes: business-need → long-term-soundness → ai-authoring-safety → startup-scope-discipline
  binding sentence present in all 4; 4 count mention(s) agree; 42 markdown files scanned for undeclared copies.
✓ check-skill-frame-sync self-test: 12 cases pass, plus 5 dispatch-gates declaration cases.
✓ check-skill-id-lint: 17 file(s) clean (pattern /#[0-9]{3,}/g).
✓ check-governed-prose: 2 instruction surface(s) name all 5 registered governed surfaces (docs/adr/** · .claude/** · skills/** · AGENTS.md · CLAUDE.md) and claim no others.
✓ doc authoring guard: 389 files clean — no bare metadata literals.
✓ check:doc-formula-expressions: 22 record-scoped formula example(s) across 416 files / 1447 TS blocks judged clean by @objectstack/formula.
✓ check-governed-merges --self-test: 119 assertions
check-nul-bytes: OK (scanned 6503 text file(s) -- 6503 tracked, 0 untracked-not-ignored; skipped 5 binary; no raw ASCII control bytes).

packages/lint needed its dependency closure built first (pnpm --filter '@objectstack/lint^...' build) — before that, check:doc-formula-expressions failed with ERR_MODULE_NOT_FOUND on @objectstack/formula/dist, which is a missing build, not a finding.

Landing class — GOVERNED

node scripts/pm/check-governed-merges.mjs --test .claude/skills/pm-dispatch/SKILL.md:

governed-surface predicate: 1 of 1 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/** ×1 — the agent instruction tree (skills, agents, hooks, settings)
        - .claude/skills/pm-dispatch/SKILL.md

This PR stays a draft. No ready flip, no merge queue, no auto-merge — the human merge is the review record. Assigned to os-zhuang (request-review is rejected on self-authored PRs).

Changeset

.claude/**-only — publishes nothing. Declared with the skip-changeset label per this repo's mechanism (label written additively after the size labeler settles, then read back; the read-back is what closes the step, not the write).


Generated by Claude Code

…presence accelerator only

The PM skill's self-description already routes maintainer decisions to
`needs-user-decision` cards, but the body never stated the ORDER between a card
and a blocking popup. Seats therefore treated AskUserQuestion as the default
channel: the whole seat round halts while it is pending, and its content lands
on no queryable surface.

Three rules now sit in "升级与决策", where a seat reads them at decision time:

1. Card first — file the `needs-user-decision` card as the first action
   (options + recommendation + evidence + facet block, the same content the
   popup would carry); the blocked execution card takes `pm:blocked` +
   `Blocked-by:` in the SAME write; the rest of the queue keeps moving.
2. AskUserQuestion is a presence accelerator only — allowed when the maintainer
   gave human input in this session within ~30 minutes, every ask carries a
   recommended option, a Skip or a long-pending ask falls back to the card
   channel and is never re-popped.
3. Batch intake — the maintainer saying 「处理决策卡」 sweeps every open
   decision card for one batch ruling, the standing trigger for the already
   ruled "定期和ai讨论" consumption path.

Paid for by genuine deletion in the same file (line ratchet 682/682, unchanged):
duplicated enumerations that references/decision-analysis.md and
references/dispatch-runbook.md already own verbatim, plus one narrative case
that belongs on a card. Payment ledger in the PR body.

Co-Authored-By: Claude <noreply@anthropic.com>
@github-actions github-actions Bot added size/s documentation Improvements or additions to documentation labels Aug 23, 2026
@claude claude Bot added the skip-changeset PR has no user-facing published change; bypasses the changeset gate label Aug 23, 2026

Copy link
Copy Markdown
Contributor

ACCEPT — session 757f0dc0-5dae-51d7-9053-c15c57ebfe3b(派发席,卡 #11212)。

全量 diff 复核(SKILL.md 单文件 +20/−20,682→682 零余量持平)+ 付账抽验:

  1. 三条规则落点正确:§升级与决策 尾部,决策时必经段落——卡先于弹窗(同笔 pm:blocked + Blocked-by,队列不做人质)、AskUserQuestion 降格为 ~30 分钟在场判据的加速器(Skip/长挂转卡 ⛔ 不重弹)、「处理决策卡」回批口令显式挂接 08-19「定期和ai讨论」裁决且钉死 ⛔ 不复活已退役的汇总 issue——与 08-18/08-19 两次既有裁决零冲突。维护者 2026-08-23 报告原话入文。
  2. 付账七笔逐笔核过属主(抽验实测):decision-analysis.md 1-37 行逐字持有 08-20 裁决原话+实测、六项写法、适用边界、四棱块固定形状;dispatch-runbook.md 133-144 持云卡四课全文、224 持全仓 pin 清扫两句原文。SKILL.md 删的每一段都在被指向文件里有更全形态,操作性残句(「推荐是输入,永不是放行,人工地板不变」)逐字保留——真删,非重排,无语义损失。
  3. 门禁全绿引用在案:line-ratchet 682/682 + 19 例自测、frame-sync 4 副本同构 + 12 例自测、governed-prose、nul-bytes;GOVERNED 判定(.claude/** ×1)已引用;skip-changeset 已读回。

留 draft、已 assign 维护者——合并后各席位下次加载技能生效:维护者不在场时席位落卡续跑,回来一句「处理决策卡」清积压。


Generated by Claude Code

@os-zhuang
os-zhuang marked this pull request as ready for review August 23, 2026 04:14
@os-zhuang
os-zhuang enabled auto-merge August 23, 2026 04:14
@os-zhuang
os-zhuang added this pull request to the merge queue Aug 23, 2026
Merged via the queue into main with commit 41ae8d6 Aug 23, 2026
26 checks passed
@os-zhuang
os-zhuang deleted the claude/issue-11212-decision-card-first branch August 23, 2026 04:33
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

Development

Successfully merging this pull request may close these issues.

pm 席位把 AskUserQuestion 当裁决通道,维护者不在场即整席人质——规则:先落 needs-user-decision 卡,弹窗仅作在场加速器

2 participants