Skip to content

fix(pm): a ceiling claim's citation is read inside its model slot; RUNNER's security-fix effort follows the pm-dispatch rule - #35958

Merged
os-zhuang merged 1 commit into
mainfrom
claude/project-thread-702vzg
Nov 21, 2026
Merged

os-zhuang merged 1 commit into
mainfrom
claude/project-thread-702vzg

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Requested by Sales · project thread

Part of #35270

Clause-②: no
Metadata-protocol: none

维护者速读

  • 用户能看到什么变化:用户无感;派发认领里「最贵档」的理由只认写在档位那一格里的,测试清单说明里安全修复的力度改成跟派发规则一致。
  • 为什么做:属于车队派发力度整理(替力度规则那张卡收尾两处小尾巴);此前力度格里的理由会被误当成档位理由放行,清单说明还写着一律最高力度。
  • 出错会怎样:只影响车队自己的认领检查与说明文字;写错最多误拦或误放一条认领,可直接撤回本次改动。
  • 要你做什么:无

What changes

  • scripts/pm/dispatch-gates.mjs: readContainerModelLine reads the MANDATORY / reason: citation only inside the model: slot, from the model: key to the next effort: key or to the end of the line. Before, it matched anywhere on the Container & model: line, so an effort: xhigh, reason: ... citation satisfied the ceiling-tier check by accident (contract-review nit N1, release comment 7027271918). The tier token and every correctly written claim read as before. The jsdoc states the rule.
  • scripts/pm/dispatch-gates.self-test.mjs: three cases. Two negatives: a citation only in the effort slot is refused, for reason: and for MANDATORY. One positive twin: a citation inside the model slot with commas and parentheses still reads with an effort slot after it.
  • docs/qa/platform-checklist/RUNNER.md line 94: a runner's security fix is no longer dispatched "at xhigh". It follows the pm-dispatch security effort rule and names references/execution-duties.md: high-severity built at high with one read-only xhigh diff review, medium-severity at high, anything else by difficulty (ruling record 7024443457, decision 一 A).

Tests

  • pnpm check:pm-dispatch-gates at 366b52cf2 (the same commit before it was moved onto main at e3e202a97 as f64915ce5): exit 0, fast tier 2252 cases pass (2249 + 3).
  • Red on the old code: the three predicates run against the HEAD blob of the old reader answer a=false, b=false, c=true (both negatives red, the twin green); against the new reader, all true.

Acceptance notes

  • N5/N6 of the release comment: gone. The ceiling table was re-based to bytes by chore(pm): the skill ratchet counts bytes, and prose is no longer held to a 120-byte line #35712 and no longer carries those row comments.
  • Not in this PR: items 1 and 2 of the release comment (measurement runs, the maintainer's word) and nit N4.
  • Landing tier: Tier H. scripts/pm/dispatch-gates.mjs is on the governed register, so this PR waits for the governed approver.
  • No changeset: scripts/pm/** and docs/qa/** do not ship in a package (skip-changeset).

Verification

  • dispatch-gates --commands derived 69 commands at 366b52cf2, the same commit on its earlier base; all ran, all exit 0 after the two exit-3 prerequisite builds (verify lock VERDICT command-exit 0); --ran: 68 families accounted for, 0 NOT-MEASURED. overlap-check: VERDICT clean exit 0.

Read first: the slot cut in readContainerModelLine (three added lines), then the three new self-test cases.

Two-minute check: node scripts/pm/dispatch-gates.mjs --self-test --fast prints the three new case titles as passing.

🤖 Generated with Claude Code

https://claude.ai/code/session_01L6bhgUU7y15SHQsH8q8y74

… RUNNER's security-fix effort

readContainerModelLine matched MANDATORY and reason: anywhere on the
Container & model line, so a citation in the effort slot satisfied the
ceiling-tier check by accident. The citation is now read from the
model: key up to the next effort: key, or to the line's end. Three
self-test cases pin it: two negatives (reason: or MANDATORY only in the
effort slot) and a positive twin with commas and parentheses inside the
model slot.

RUNNER.md no longer says a runner's security fix is dispatched at
xhigh: it now follows the pm-dispatch security effort rule and names
the file that holds it.

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

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgTcFanGhTvqS1V2Q4U

席位核对 — ACCEPT (L1-a)

维护者速读

  • 用户无感,只改车队内部的派发检查和测试手册的一句话。
  • 第一处:认领评论里写「用最高档模型」时,必须在模型那一格里写明依据(强制或裁决理由)。以前依据写在旁边的「投入档」那一格,也会被误当成模型的依据;现在只认模型格里的,少了一条误放的漏洞。
  • 第二处:平台测试手册里安全修复用哪个投入档,原文写的是一律最高档。现在改为与派发技能现行规则一致:高危公告修复用高档施工,再加一次最高档的只读复核;中危用高档;其余按难度。
  • 风险:最坏是某条本该放行的认领被拦下,作者在模型格里补上依据即可,不会误放。
  • 要你做什么:这个 PR 改了受管的派发检查脚本,需要你批准一次(Tier H)。

Head reviewed: f64915ce5a8a411df2a2f00c5975577482ff4971 on main e3e202a97.

  • 1 commit, 3 files, +24/−4. Part of #35270.
  • Scope is release 7027271918's remainder item docs/qa/platform-checklist/RUNNER.md 94 plus nit N1 (readContainerModelLine scoping). Nothing else from that list is touched.
  • git merge-tree onto current main is clean.

scripts/pm/dispatch-gates.mjs, readContainerModelLine

  • The change. The slot runs from the model: match to the next \beffort[ \t]*: key, or to the line's end when none follows. mandateCited and reasonCited are now tested on that slot, not on the whole line. The tier read and the ceiling flag are unchanged.
  • The docblock states the rule, names the reason: the effort slot carries its own reason:-shaped citations, and a whole-line match let them satisfy the tier check. It also says why the slot ends at a key, never at a comma (a model reason may hold commas or parentheses).
  • The rule holds in both directions, checked with a probe that imports the module. A ceiling-tier model: slot has its citation either only in the effort slot, or only in an effort slot written before model:.
    • The new code refuses all three such shapes, as Container & model.
    • It accepts a MANDATORY with commas and parentheses inside the model slot, followed by an effort: slot.
    • Ablation: the same probe against e3e202a97's dispatch-gates.mjs accepts all three refused shapes. So 2 of the 3 new self-test cases are red on the old code (the positive twin passes on both), as the dev report says.

scripts/pm/dispatch-gates.self-test.mjs

  • There are three new cases, two refusals and the positive twin, built on the existing CM() helper and CONTRACT_REVIEW_TIER_NAME. No case or fixture is deleted.
  • node scripts/pm/dispatch-gates.mjs --self-test --fast in a worktree at this head: all three new cases ✓. The run ended 6 of 2252 failed, and all 6 are the install-dependent corpus cases (exit 3: install the workspace first, "the net reads exactly the gate's documents"). They are this container's missing node_modules, not this diff, and CI's Lint · PM dispatch-gates is the measurement for them.

docs/qa/platform-checklist/RUNNER.md:94

  • The old text sent every security fix to an in-seat os-dev at xhigh. That contradicts .claude/skills/pm-dispatch/references/execution-duties.md:130-132 at this head:
    • only a high-severity advisory fix rates xhigh, and even then it is built at high, with one read-only xhigh adversarial review of the diff;
    • a medium-severity fix is built at high;
    • a security-labelled card that is not an advisory fix goes by difficulty.
  • The new sentence says exactly that and names the file. Its disclosure discipline is unchanged: the reproduction stays in the dispatch prompt only, and the PR describes a hardening without exploit steps.
  • node scripts/check-platform-checklist.mjs: OK.

Governance and review of record

Nits (no action needed)

  • N1. A model-slot reason that itself quotes the text effort: before its citation ends the slot early. The claim is then refused, never let through: fail-closed, and the author rewords.
  • N2. RUNNER.md now paraphrases the skill's effort rule. It names its source file, so a later change there should carry this sentence along. Same drift class as before, just accurate now.

Landing terms

  • Tier H: os-zhuang's APPROVED review on this head, a green head, then the seat lands it.
  • A new push needs a delta L1 unless it is a clean main merge.
  • This review does not approve, mark ready, enqueue or request review.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob

Tier H approval request · 2026-11-21T00:04Z · @os-zhuang, this PR is ready for your Tier H review on head f64915ce5a8a411df2a2f00c5975577482ff4971.

What it does: it closes two leftovers of #35270 (release comment 7027271918). First, the claim check now accepts a ceiling-tier citation (MANDATORY or reason:) only inside the model: slot of a claim's Container & model: line. Before, a citation in the effort: slot satisfied the model check by accident (nit N1). Second, docs/qa/platform-checklist/RUNNER.md line 94 no longer says a runner's security fix runs at xhigh. It follows the pm-dispatch security effort rule instead (ruling record 7024443457). The Tier H trigger is scripts/pm/dispatch-gates.mjs (guard tiers).

  • L1-a: ACCEPT 7053638901 on this head.
  • No contract face, so no contract review is owed. Security-touching: no.
  • check-governed-merges --pr 35958 (main's register) reads Tier H, with 28 changed lines.
  • CI on this head finished with no red.
  • 1 commit, 3 files, +24/−4. The self-test adds two red-on-old negatives and one positive twin.
  • The PR carries Part of #35270. The card stays open for its other remainder items.

The seat lands after your approval (ruling C, 2026-09-13).

@objectstack-fleet objectstack-fleet Bot added the pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue label Nov 21, 2026
@os-zhuang
os-zhuang marked this pull request as ready for review November 21, 2026 03:05
@os-zhuang
os-zhuang added this pull request to the merge queue Nov 21, 2026
Merged via the queue into main with commit 9a8bb83 Nov 21, 2026
57 checks passed
@os-zhuang
os-zhuang deleted the claude/project-thread-702vzg branch November 21, 2026 03:24
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 pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue 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.

3 participants