Skip to content

pm-dispatch: group work by mechanism — security advisories and area cards get one analysis and one combined fix PR per group #35283

Description

@objectstack-fleet

repo:objectstack#5 · os-bill · session_01Utp6CbUb7TcZK1XUAddUmQ

Filing gate ③: maintainer-directed task. Ruling-ref: the maintainer said 「按机制归组,每组做一次分析、出一个合并修复 PR, 同意,立卡修改skills」 (2026-11-19, seat 5 thread), answering seat 5's cost proposal for security fixes. ⛔ Not a claim. Sibling of #35270 (effort policy); the two may land in one PR. Not part of epic #35205; overlap-check its open step PRs first (same files). This card names no advisory, count or mechanism, and the PR ⛔ must not either.

Why

The security lane today handles advisories one at a time: one read, one analysis note, one fix dispatch at xhigh, one PR, one L2 review each (.claude/skills/pm-dispatch/references/lanes/security.md:17-28, security-findings.md:27). Many open advisories share a root mechanism, so the same analysis and the same fix shape are paid for again per advisory.

What to do

Edit .claude/skills/pm-dispatch/references/lanes/security.md and the matching lines of references/security-findings.md (re-read line numbers on main):

  1. Group before fixing. On intake and on each patrol, the security seat sorts every draft advisory into a group by shared root mechanism (same missing check, same door family, same owning package). A group has one lead advisory. An advisory that shares nothing is a group of one.
  2. One analysis per group. The seat writes one analysis for the group and appends it to the lead advisory via relay advisory_note; every other advisory in the group gets a one-line note pointing at the lead. Mechanism stays only in advisories and the dispatch order, as today.
  3. One combined fix PR per group. One no-card dispatch order per group, one branch, one PR, one L2 review. A group never spans two owning packages' release lines, and a PR stays inside the normal size limits; a group too large splits into ordered PRs. Each advisory in the group gets its own regression test that reproduces its attack (fails before the fix, passes after), so the PR proves every member, not just the lead.
  4. Ledger. The seat post's ledger row gains an opaque group tag (G1, G2, …), never a mechanism word. Every member moves fixing → merged → closed together when the group PR merges.
  5. Order. Groups holding a high- or medium-severity advisory go first. Low-severity advisories are fixed only inside such a group (riding it), not on their own, in line with the maintainer's p1/p2-only dispatch rule.
  6. Effort follows pm-dispatch: set effort by the official criteria — xhigh only for long hardest builds and high-severity security fixes #35270 (high-severity: high build plus an xhigh read-only diff review; medium: high; grouping and analysis at high). Replace the flat xhigh at security-findings.md:27 accordingly.
  7. Publishing list (security.md:35) lists by group, members under their lead, high and medium first.

Folding for ordinary cards (maintainer ruling: option C)

Ruling-ref: the maintainer chose 「C 收敛版」 on seat 5's decision card (2026-11-19 03:55Z), after asking 「其他 area 可以用类似的方案吗?」 and 「是否建议合并开发,技能是怎么约定的,是否需要优化」. Analysis: project file objectstack-seat5/fold-policy-review.md (§ 建议文本改动 has the exact old → new lines, each ≤120 bytes, measured at bc75bcdbcd).

  1. references/execution-duties.md:27-34 (fold gates): when all five gates pass, fold by default (≤5 cards). Gate ① gains an arm, "or same-file text-only cards (Clause-②: no)". Gate ② adds "members share the landing tier and the L2 tier; a p1 only leads a chain". Gate ⑤ adds "a p3 riding a same-file PR is exempt from ①". New exit line: a member whose premise fails, or whose delta is not cleared in one round, has its commit and Fixes line taken out and is released back to the queue, ⛔ never holding the group. The fold-or-serial answer is owed whenever the seat or area has ≥2 claimable cards with the same mechanism or a shared hot file. Triage's suggestion is spelled Fold-with: #N.
  2. references/area-lease.md:47: claim must answer: same-area cards that pass the five gates go into one PR by default, otherwise serial. :46 (p3 rides, ≤5 cards) unchanged unless the maintainer makes "p3 never alone" a standing rule.
  3. references/triage-duties.md:77: the triage audit comment may carry Fold-with: beside Size/model suggestion:. ⛔ No Same-mechanism: marker (it collides with the duplicate-card rule at triage-duties.md:81-83). "One analysis per fold" needs no new text: a card in the decision box cannot fold (gate ③), and merged questions are already one ask (SKILL.md:234-236).
  • execution-duties.md grows by 1 line: cite this ruling to raise its line-ratchet ceiling, or pay with an equal same-file cut.
  • The security grouping (items 1–3) points at the same five gates instead of restating them.

Done when

The lane and area text say the above, the public lane file still names no finding, count, path or mechanism, the skill gates pass, and the PR carries a contract review (governed .claude/**). Seat 5 reviews and lands.

Activity

  1. added
    priority:p1
    pm:queue
    domain:skills
    on Nov 19, 2026
  2. changed the title [-]pm-dispatch security lane: group advisories by mechanism — one analysis and one combined fix PR per group[/-] [+]pm-dispatch: group work by mechanism — security advisories and area cards get one analysis and one combined fix PR per group[/+] on Nov 19, 2026
  3. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in domain:skills · pm:queue; rationale: area:fleet · Task (group work by mechanism: one analysis and one combined fix per group) · Ruling-ref: the maintainer's 「按机制归组…同意,立卡修改skills」 → p1 as set; may land with #35270.

  4. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-sales · session_01L6bhgU5A6GGM3TKKSyjU28

    Claim: PM loop round 1 · skills-text chain thread of repo:objectstack#1 (area b1-S; the card was released to seat 1 on mailbox comment 7014064164, so its "Seat 5 reviews and lands" line is void and seat 1 reviews and lands) · 2026-11-19T16:10Z · fold member of the chain head #35270, whose claim 7014658145 carries the fold-or-serial answer and the full serial reading: the same os-dev subagent, the same branch, one draft PR (Fixes #35283, Part of #35270)
    Session: session_01L6bhgU5A6GGM3TKKSyjU28
    Thread session: session_01L6bhgU5A6GGM3TKKSyjU28
    Account: os-sales
    Branch: claude/project-thread-paydb0 (the fold's shared branch, named on the chain head's claim; it is the branch this thread's harness assigns and the only one it may push, so the repo's claude/issue-35270-* spelling is not available here)
    Worktree: objectstack-issue-35270
    Domain: domain:skills
    Seat: repo:objectstack#1
    Area: b1-S
    File surface: .claude/skills/pm-dispatch/references/lanes/security.md, .claude/skills/pm-dispatch/references/security-findings.md, .claude/skills/pm-dispatch/references/execution-duties.md (the fold gates), .claude/skills/pm-dispatch/references/area-lease.md (the fold line), .claude/skills/pm-dispatch/references/triage-duties.md (the audit-comment line), and scripts/pm/check-skill-line-ratchet.mjs (ceiling rows and their comments only). Stop and report before touching any other path.
    Container & model: M, mode:subagent, model: CONTRACT_REVIEW_TIER — this card's own files are references only and carry no path mandate; it rides the chain head's dev, where dispatch-gates --tier at 5cd2b540 answers MANDATORY on path .claude/skills/pm-dispatch/SKILL.md (clause ① of the model-tiering ruling), effort: high (rule lines composed against rulings; no build that runs unattended for over 30 minutes)
    Clause-②: no
    Metadata-protocol: none
    Responsibility: n/a — not a defect card
    Thread-read: 7014518483
    Premise: holds — read at origin/main 5cd2b540. The card's line numbers were taken at an older commit; today lanes/security.md handles advisories one at a time on lines 16 to 23 (intake and ledger) and 27 to 28 (fix dispatch), and its release list is line 35; security-findings.md line 27 carries the flat xhigh; the fold gates are execution-duties.md lines 24 to 31; the fold line is area-lease.md line 47; the audit-comment line is triage-duties.md line 77. Each reads as the card describes. The analysis file the card cites is not in this project's files, so the new lines are composed from the card's own text.
    Pre-claim lane: .claude/skills/** rule text plus the skill line ratchet's ceiling rows: domain:skills under area:fleet, the fleet partition of seat 1, to which seat 5 released this card (7014064164). No other seat's or area's claim on the card.
    Pre-claim deps: the card names no Blocked-by:; its sibling #35270 is the chain head of this fold. It asks for an overlap check against epic #35205's open step PRs: no step PR is open. overlap-check.mjs over the fold's planned files at 5cd2b540: one open PR shares a file, #35532 (triage-duties.md, another hunk), and merges cleanly, VERDICT clean exit 0; it runs again before each push.
    Prior rulings read: fold,折叠,group,mechanism,advisory → 70 hits; ADR-0067 D1, ADR-0019 D1, ADR-0019 D3, ADR-0019 D4, ADR-0022 Decision §1, ADR-0027 Decision §13, ADR-0029 D9.2, ADR-0037 Decision §3; thread: none; repo: objectstack-ai/objectstack. None of the ADR hits rules on folding a dispatch or on the security lane's procedure. The texts that bind these lines are the five fold gates in execution-duties.md and the standing-rule test in filing-gate.md.
    Serial constraints cleared: #35532 (open, shares triage-duties.md, clean today; the check before each push decides). The other same-file cards are named on the chain head's claim 7014658145; none is in flight on these lines.

    Notes for the reviewers:

    • The card, the commits and the PR name no advisory, no count and no mechanism.
    • Item 5 (a low-severity advisory is fixed only inside a group that goes first) is written as the card says, on the card's Ruling-ref. The card also calls it "in line with" the p1/p2-only dispatch order; the PR does not quote that order as a standing rule, and it flags the line for the approver.
    • area-lease.md line 46 (a p3 rides, at most five cards) is left as it is, as the card says.
  5. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 19, 2026
  6. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-sales · session_01L6bhgU5A6GGM3TKKSyjU28

    Ruling record for item 5 of this card (the order of the advisory groups). The full record, with the message the maintainer answered, is comment 7024443457 on the sibling card #35270.

    • Who: the maintainer, in this card's project thread.
    • The maintainer's words, verbatim and untranslated: 「同意」
    • When: 2026-11-19T22:20:47Z
    • The option agreed to, as worded: 「排在最后;没有高危、中危的组在等的时候再派,并按所属的产品包攒成一批一起修」. It replaces "fixed only inside a group that goes first, not on their own" in item 5.

    Commit 5cb1c475 on PR #35591 writes it.

  7. objectstack-fleet commented on Nov 20, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-sales · session_01L6bhgU5A6GGM3TKKSyjU28

    Ruling record: the maintainer's answer to the question that the delta contract review of PR #35591 left for the maintainer (record 7025214949, section ③), the p1 clause of fold gate ②. Transcribed by the card thread that holds this card's claim. The answer was given by choosing an option on a decision card in this card's project thread: the card's question and option texts were written by the thread, and the choice is the maintainer's. The reading at the end is the thread's.

    • Who: the maintainer, in this card's project thread.
    • When: 2026-11-20T00:36:52Z
    • The question on the decision card, verbatim and untranslated: 「确认几张 p1 卡能不能合成一单来做」
    • The option the maintainer chose, verbatim: 「可以,由一张 p1 领头」. The card described it as: 「保留现在的写法,规则文字不用再改。几张 p1 卡可以合成一个合并请求一起做,这张 PR 就是这样合的。」
    • The option not chosen, verbatim: 「不可以,一单只放一张 p1」. The card described it as: 「改回卡上的原话。以后每单最多一张 p1,其余 p1 各开一单,花费更多;这张 PR 要再改一轮文字并重新审核。」
    • The card recommended the first option, with this reason: 「你今天说过「能合并处理的卡尽量合并处理」;由 p1 领头,整单仍按最高优先级处理。」
    • What the thread's message just before the card told the maintainer, verbatim: 「审核者只留下一句规则要你确认:几张最高优先级(p1)的卡能不能合成一单。卡上原话是「p1 只作链首」,按字面一单只能放一张 p1;现在写的是「有 p1 则 p1 领头」,几张 p1 可以合成一单,这张 PR 自己就是两张 p1 卡合的。」 In that message 「p1 只作链首」 renders this card's English wording, "a p1 only leads a chain", in the words of the PR's first head, and 「有 p1 则 p1 领头」 paraphrases the line at the current head, which reads 「有 p1 则 p1 为首」.

    Reading taken by the thread: the p1 clause of gate ② stays as PR #35591 writes it at head 5cb1c475 (references/execution-duties.md line 27, a fold that holds a p1 is headed by a p1), in place of this card's wording "a p1 only leads a chain". Several p1 cards may fold into one order, headed by one of them. No rule line changes on this answer. The answer was given to that one question and to nothing else: the size of a batch under the security lane's order line (nit N4 of record 7025214949) was not asked, and stays a remaining item of card #35270.

  8. objectstack-fleet commented on Nov 20, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-sales · session_01L6bhgU5A6GGM3TKKSyjU28

    Close-out · 2026-11-20T01:14Z · PR #35591 merged as 1bf30f8b and closed this card (Fixes #35283). This stroke takes off pm:dispatched.

    Delivered, as rule text: the card's ten items. Grouping by mechanism in the security lane (references/lanes/security.md 20 to 34 and 43, references/security-findings.md 27), the default fold and its gates (references/execution-duties.md 25 to 33), the claim's fold answer (references/area-lease.md 47) and the Fold-with: line of the triage audit comment (references/triage-duties.md 78). Two lines depart from this card's wording, each on a later answer of the maintainer: item 5, the order of the advisory groups (ruling record 7024456329), and the p1 clause of fold gate ② (ruling record 7026582389).

    Left over, carried on the sibling card #35270, which stays open: contract review nits N4 (the bound of a batch under line 34 of the security lane file is stated nowhere) and N6 (a row comment in the line ratchet's ceiling table still names the older ruling for the p1 clause). Both are listed in the release comment on that card.

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

Metadata

Metadata

Assignees

Labels

area:fleetdomain:skillspriority:p1

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions