Skip to content

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

Closed

Description

@os-zhuang

维护者 2026-08-23 报告(附另一 PM 会话截图为证):「项目经理干活时经常弹出需要我决策的问题,如果我不在旁边工作就卡住了。」skills 席 session 757f0dc0-5dae-51d7-9053-c15c57ebfe3b 立卡。

诊断

pm-dispatch 的自我描述本来就规定裁决通道是卡:「filing needs-user-decision issues for anything that requires the maintainer's confirmation instead of guessing」。但技能正文没有明说 AskUserQuestion 与决策卡的优先序,于是席位把阻塞式弹窗当成了默认通道:

  1. 弹窗挂起期间该席位整个 PM 回合停摆(在飞 dev 无人验收、队列无人推进),维护者不在场即无限期人质;
  2. 弹窗内容不进任何可查询面——不在卡上、兄弟席看不见、巡查扫不到、维护者回来无法批量处理;
  3. 异步通道的消费端早有先例:decision-inbox + 维护者 2026-08-18 的批量「同意」(见 #6162's anchor-body half never took: #5810's Routine prompt clause 6 still carries the pre-#6162 hint-comment-only wording #7276 卡面记录)。

规则(进 .claude/skills/pm-dispatch/ 技能文本)

  1. 先落卡,后弹窗:凡需维护者裁决,第一动作是落 needs-user-decision 卡(选项 + 推荐 + 证据,与弹窗同内容);被阻塞的执行卡同笔挂 pm:blocked,Blocked-by: 指向决策卡;队列其余部分继续消化,永不整席等待。
  2. 弹窗仅作加速器,带在场判据:仅当「维护者最近 ~30 分钟内在本会话有过人类输入」才允许 AskUserQuestion;每问必带推荐项;被 Skip 或长挂 → 转卡通道,不重弹。卡先于弹窗存在,所以弹窗无论怎么死,盘面都是诚实的。
  3. 回批入口:维护者以一句「处理决策卡」触发席位扫 needs-user-decision 批量呈报,一次交互清积压(把 08-18 的批量「同意」先例升格为常规动作)。

落地成本

规则文字的自然落点 SKILL.md(682/682)与 references/decision-analysis.md(38/38)均零余量:真删付账,或并入 #11086 全文重构轮(该轮已裁、待队列排空触发,输入清单里已有多笔同类)。⛔ 提天花板为 MAINTAINER-ONLY。

与在场事实的对账

本席今日多轮 AskUserQuestion 均在维护者在场时使用且秒级回批——规则 2 的在场判据保留了这条快路径;要禁的只是「不在场也弹、弹了就死等」。

Activity

  1. added
    pm:dispatched
    domain:skills
    on Aug 23, 2026
  2. self-assigned this
    on Aug 23, 2026
  3. os-zhuang commented on Aug 23, 2026

    @os-zhuang
    ContributorAuthor

    CLAIM — session 757f0dc0-5dae-51d7-9053-c15c57ebfe3b(skills 席),branch claude/issue-11212-decision-card-first。维护者裁决 2026-08-23(原文):「A:立即派发,真删付账(推荐)」——规则文字挤进技能文本,以真删重复段落付 ratchet;付不起回报维护者要提额裁决,⛔ 不自提天花板。


    Generated by Claude Code

  4. claude commented on Aug 23, 2026

    @claude
    Contributor
    {
      "issue": 11212,
      "status": "done",
      "branch": "claude/issue-11212-decision-card-first",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/11226",
      "premise_still_valid": true,
      "summary": "The card's premise held on origin/main: SKILL.md's only statement about the popup channel was the permissive closing sentence 「交互会话可另发 AskUserQuestion,带标签的 issue 恒为持久记录」, with no ordering against the decision card. All three rules landed in .claude/skills/pm-dispatch/SKILL.md § 升级与决策, immediately after the four-axis frame — the paragraph a seat reads at decision time — as one blank-line-separated block: 卡先于弹窗 (card is the first action; blocked card gets pm:blocked + Blocked-by: in the SAME write; queue keeps moving), 弹窗仅作在场加速器 (~30-minute human-input criterion in THIS session, every ask carries a recommendation, Skip or long-pending falls back to the card channel and is never re-popped), and 回批入口 (「处理决策卡」 sweeps open decision cards for one batch ruling, written explicitly as the standing trigger for the already-ruled 「定期和ai讨论」 path and NOT a revival of the retired periodic summary issue — the two now sit one line apart so they cannot be confused). references/decision-analysis.md was NOT touched (38/38, zero headroom); the whole cost was paid inside SKILL.md. No ceiling raised. One conflict to note: the dispatch prompt asked for the BARE 「_Generated by [Claude Code](https://claude.ai/code)_」 footer while the os-dev role file requires the session-URL form; the role file governs, and the platform in fact rewrote the bare form to the session form on PR creation (verified by read-back), so the footer now survives future edits.",
      "tests": "All gates run on the FINAL commit 43e751535c. Gate set derived with `node scripts/pm/dispatch-gates.mjs` with NO paths passed (it took the change set from the merge base itself: 1 path, working tree) — 7 families matched, all run, plus check:nul-bytes and the ratchet self-test. Exit codes captured before any pipe. 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` / `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 … 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) … no raw ASCII control bytes).` Manual control-char scan of the edited file also clean (grep -naP over the C0 range, exit 1). NOTE: check:doc-formula-expressions first failed with ERR_MODULE_NOT_FOUND on @objectstack/formula/dist — a missing dependency-closure build in the fresh worktree, not a finding; green after `pnpm --filter '@objectstack/lint^...' build` (run under scripts/pm/os-verify-lock.sh, VERDICT command-exit 0 · held the lock 208s). Landing class: `node scripts/pm/check-governed-merges.mjs --test .claude/skills/pm-dispatch/SKILL.md` → exit 3, `⛔  GOVERNED — a human merge is the review record for this PR` / `.claude/** ×1 — the agent instruction tree`. PR is and stays DRAFT, assigned to os-zhuang, never enqueued. No ablation and no reverse-verification were applicable (prose-only diff on an instruction surface; the frame-sync gate is the mechanical check that the untouched frame is still isomorphic, and it is green).",
      "open_questions": [],
      "out_of_scope_findings": []
    }

    Payment ledger (line ratchet 682 → 682, headroom 0 before and after; no ceiling raised). Every deletion is text a covered file already owns verbatim, or a narrative the ratchet's own verdict message rules out of operational text. No re-wrap was used to buy lines — each reflow is the consequence of characters actually removed.

    # Deleted from SKILL.md Owner of the deleted text
    D1 the six 写法要求 enumerated inline, and the 四棱块固定形状 parenthetical (~127 chars) references/decision-analysis.md §落卡分析模板 items 1–6 and §四棱卡面块固定形状 — the same sentence already said 细则见 that file
    D2 「只约束 needs-user-decision 卡与决策箱讨论…存量 ⛔ 不回改」 (~71) references/decision-analysis.md §适用面(边界), both rules verbatim; folded into the pointer as 「适用边界」
    D3 the 2026-08-20 四维业务角度 ruling quote + 实测 (~68) references/decision-analysis.md lines 3–5 are that ruling's 出处, fuller; SKILL.md keeps rule + date and now says 「细则连同出处原话见」
    D4 「块标准化把提取从 LLM 理解题降级成 grep」 (~48) same rationale in references/decision-analysis.md §四棱卡面块固定形状
    D5 the 2026-08-15 案例 narrative (~61) a story in operational text — the ratchet's own red message and the file header both put stories on cards; its operative residue 「推荐是输入,永不是放行,人工地板不变」 is retained verbatim
    D6 云卡四课's four inline titles (~106) references/dispatch-runbook.md §云卡四课 carries all four as numbered headings with full text; same sentence says 全文见 runbook
    D7 the 全仓 pin 清扫 two-sentence parenthetical (~60) references/dispatch-runbook.md §派发词构造细则 →「全仓 pin 清扫两句原文」, fuller

    Line math: pin-sweep bullet 4→3 (−1), 云卡四课 paragraph 3→2 (−1), 升级与决策 tail 14→16 (+2, includes the blank separator that makes the new rules block findable). File total 682→682. Tail-paragraph characters 820→859: ~375 chars of duplication out, ~414 chars of new rule text in — the paragraph gained content and lost duplication rather than being wrapped tighter.

    The four-axis frame block itself was not touched: start anchor, axis entries and the binding sentence 「推荐意见必须基于这四条轴给出理由」 are byte-identical, and check:skill-frame-sync is green on the final commit.


    Generated by Claude Code

  5. removed
    pm:dispatched
    on Aug 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

domain:skills

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions