Skip to content

feat(pm): no open card leaves a lane without a state; triage sweeps the five disjunctions exactly - #33510

Merged
objectstack-fleet[bot] merged 3 commits into
mainfrom
claude/project-thread-milihp
Nov 15, 2026
Merged

objectstack-fleet[bot] merged 3 commits into
mainfrom
claude/project-thread-milihp

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

Requested by Leehom · project thread

Fixes #33484

domain:skills#1 · os-project-manager · session_01FEkQ5kK93Ye36vSYWspFwu

Clause-②: no
Metadata-protocol: none

维护者速读

  • 改了什么:写入门禁现在拦两种半写:开着的卡被摘掉最后一个 pm:* 状态却不补态(除非同笔补态、补 needs-user-decision 或关卡),以及停放态(queue/blocked/hold)的卡留着 assignee。三个写口共用一个判定:label-write.mjs、中继的 actions 文件入口 fleet-write/dispatch.mjs、close-cards.mjs。新增 scripts/pm/first-touch-sweep.mjs,按分诊职责原文跑五个析取、全量翻页、与平台 total_count 对数,不等即 INCOMPLETE。技能文字补四处:Part of 落地后剩余物落车道一态、留守卡落态、搁置同笔降 p3 并记 Restart-grade:、「待维护者」逐张列卡龄。
  • 为什么改:27 张 p1 只有 5 张在队列,主因是摘 pm:dispatched 不补态的半写,加上分诊的兜底筛查是窄化的手敲版(① 当「无标签」、③ 漏跑、截 12 条)。
  • 风险与回滚:只动 PM 工具与技能文字,不碰产品包;新拒收只在写会留下无态卡或带人停放卡时触发,--release 照常合法(自测钉住)。回滚即还原本 PR。
  • 先看:scripts/pm/label-write.mjs 的 refuseStatelessWrite;scripts/pm/fleet-write/dispatch.mjs 的 stateGuardRows/readStateGuard;scripts/pm/first-touch-sweep.mjs 的 classify。
  • 两分钟验证:node scripts/pm/first-touch-sweep.mjs --self-test,预期 ✓ first-touch-sweep self-test: 45 cases pass across 5 batteries。
  • 需要你做的:无,席位落地(受管面 Tier S,席内契约复审后入队)。

What changes

Item 1 — the stateless write, one predicate at every door that strips a state.

  • scripts/pm/label-write.mjs: new refuseStatelessWrite (exported with PARKED_STATE_LABELS, STATELESS_RULE, PARKED_RULE), asked at step ② on step ①'s own read, before the transport, for the plain write, --comment-file and --release alike. Two halves:
    • the strip: a pm:* state the target drops on an OPEN issue while the target carries no state at all is refused (exit 2, zero writes). Legal exits: the same write adds another state, adds needs-user-decision, or closes the card; a card with two states losing one keeps one and passes (the ONE-OF repair).
    • the holder: a target parked in pm:queue / pm:blocked / pm:on-hold that keeps an assignee is refused when the write moved a state or an assignee. A write that moved neither (a regrade, a domain) did not make the pair and passes, so triage's hold regrade is never blocked by an old assignee.
    • A pull request carries no card state, so it is never judged (the kind rule's cleanup stays legal). Labels compare case-insensitively. No flag lets either half through. --release (pm:dispatched to pm:queue, every assignee cleared) is pinned legal.
  • scripts/pm/fleet-write/dispatch.mjs (the relay's actions-file door): stateGuardRows picks each card a stroke takes a pm:* state off, parks, or assigns someone to (only the read knows whether it already sits parked), without closing; readStateGuard reads it once (sharing the kind rule's read of the same card, so one GET per number); judgeStateGuard applies the stroke's steps in order and asks label-write's predicate. Refused is exit 2, unreadable exit 3, nothing sent for the whole file, dry run included. A stroke closing its card reads nothing.
  • scripts/pm/close-cards.mjs: packCard asks the same row picker of its pack and refuses one that strips without closing; the self-test pins that every pack closes what it strips.

Item 4 — scripts/pm/first-touch-sweep.mjs (new, report-only). Walks every open issue over REST (/issues?state=open, every page, pull requests dropped), compares the count with GET /search/issues total_count (and incomplete_results), and runs ① to ⑤ as triage-duties.md writes them: ① no pm:*, no needs-user-decision, no domain:* (a finding card with no domain is bare); ② pm:queue without domain:* on the multi-lane board; ③ domain:* with no pm state; ④ pm:queue + domain:* without priority:*; ②③④ settle 2 minutes; exclusions tracking, status:parked, pm:seat, qa-run; ⑤ with --since, created in the window with pm:queue / priority:* labelled in the creation minute (read from label events, never by actor). Exits 0 complete with all five run, 2 usage, 3 prerequisite, 4 sweep INCOMPLETE or sweep PARTIAL (no --since, ⑤ not run). Its self-test pins every rule phrase it is built from as a substring of triage-duties.md.

Items 2, 3, 5 — pm-dispatch text.

  • references/state-machine.md: 「开着的卡离手恒落一态」 in the cross-state rules; on-hold: entering hold lowers the card to priority:p3 in the same stroke with · Restart-grade: pN at the end of the Restart-when: line, a restart restores it, trackers and epics the same.
  • SKILL.md state table: the queue row keeps 「pm:queue 卡恒无 assignee,有即半态」 verbatim and adds pm:blocked/pm:on-hold; the pm:on-hold row names the p3 drop and Restart-grade:.
  • references/landing-operations.md: the Part of close-out says what to do: in the MERGED stroke the remainder takes a state for its lane (pm:queue + its lane's domain:*, re-domained if it belongs to another lane; pm:blocked + Blocked-by:; hold + Restart-when:), the assignee cleared, and a comment says what was delivered and who owns the rest.
  • references/seat-lifecycle.md: a stay-behind card takes its lane's state in the seat-offline stroke; one that does not, triage sets on reading that knock, in that round.
  • references/triage-duties.md: the 「待维护者」 list names every open needs-user-decision and pm:awaiting-maintainer card with its age; the five disjunctions run through the script, never narrowed by hand; the self-repair hold line takes the p3 drop.
  • scripts/pm/check-skill-line-ratchet.mjs: four ruled raises, see Verification.

Why

Measured by triage on main the filing evening and quoted on the card: of 27 open p1 cards, 5 were queued; #32087 and #32908 (p1) and #32984 and #33353 (p2) had pm:dispatched removed with no state added; the finding cards #33402 to #33404 waited about three hours because the hand sweep ran ① as no:label, skipped ③ and cut results at 12. Ruling: the maintainer in the triage seat's session, 「优化建议,可以skills立卡优化」 (quoted on the card).

Live read of the new sweep on this branch, 2026-11-14 22:40Z: 326 open issues walked over 5 pages, platform count 326, complete; ① 4, ② 0, ③ 0, ④ 0, ⑤ 22.

Acceptance notes

Verification

Size: 10 files, +874 / -29 (under the 3000-line line).

  • node scripts/pm/dispatch-gates.mjs --commands derived 51 gate families for this diff; all 51 ran green at head d00151d4, after the lint closure was built under the build lock.
  • dispatch-gates --ran reconciliation: 51 derived famil(ies) accounted for — 51 run, 0 NOT-MEASURED (a DERIVED zero — all 51 recorded an exit code and none of them is 3).
  • Also run, not derived: node scripts/pm/first-touch-sweep.mjs --self-test (45 cases, 5 batteries) and the fleet-write execute self-test.
  • Self-test counts: label-write 223, fleet-write dispatch 399, close-cards 228.
Gate commands and exits (head d00151d)
node scripts/check-closing-keyword-parity.mjs :: exit 0
node scripts/check-closing-keyword-parity.mjs --self-test :: exit 0
node scripts/check-comment-mask-corpus.mjs :: exit 0
node scripts/check-declaration-mirrors.mjs :: exit 0
node scripts/check-declaration-mirrors.mjs --self-test :: exit 0
node scripts/check-self-test-wired.mjs :: exit 0
node scripts/check-self-test-wired.mjs --self-test :: exit 0
node scripts/check-self-test-workflow-commands.mjs :: exit 0
node scripts/check-self-test-workflow-commands.mjs --self-test :: exit 0
node scripts/check-whole-set-label-write.mjs :: exit 0
node scripts/check-whole-set-label-write.mjs --self-test :: exit 0
node scripts/ci/plan-test-core-shards.mjs --self-test :: exit 0
node scripts/pm/bare-root-worklist.mjs --self-test :: exit 0
node scripts/pm/check-governed-queue-guard.mjs --self-test :: exit 0
node scripts/pm/check-harness-current.mjs --self-test :: exit 0
pnpm --filter @objectstack/lint run check:doc-formula-expressions :: exit 0
pnpm check:agent-test-spelling :: exit 0
pnpm check:bash32-floor :: exit 0
pnpm check:ci-filter-parity :: exit 0
pnpm check:cli-command-ids :: exit 0
pnpm check:cross-package-test-inputs :: exit 0
pnpm check:doc-authoring :: exit 0
pnpm check:driver-memory-census :: exit 0
pnpm check:entry-guard :: exit 0
pnpm check:gitlink-declared :: exit 0
pnpm check:nul-bytes :: exit 0
pnpm check:parse-guard :: exit 0
pnpm check:pm-close-cards :: exit 0
pnpm check:pm-dispatch-gates :: exit 0
pnpm check:pm-expected-skips :: exit 0
pnpm check:pm-fleet-write-dispatch :: exit 0
pnpm check:pm-fleet-write-execute :: exit 0
pnpm check:pm-fleet-write-validate :: exit 0
pnpm check:pm-governed-merges :: exit 0
pnpm check:pm-governed-prose :: exit 0
pnpm check:pm-half-states :: exit 0
pnpm check:pm-issue-create :: exit 0
pnpm check:pm-issue-transfer :: exit 0
pnpm check:pm-label-write :: exit 0
pnpm check:pm-post-stamped :: exit 0
pnpm check:pm-record-recognisers :: exit 0
pnpm check:pm-skill-id-lint :: exit 0
pnpm check:pm-skill-ratchet :: exit 0
pnpm check:pm-write-pace :: exit 0
pnpm check:pnpm-filter-targets :: exit 0
pnpm check:pnpm-flag-spellings :: exit 0
pnpm check:ratchet-remedy-authority :: exit 0
pnpm check:refd-timer-probe :: exit 0
pnpm check:scripts-symbol-anchors :: exit 0
pnpm check:skill-frame-sync :: exit 0
pnpm check:watch-hint-literal :: exit 0
node scripts/pm/first-touch-sweep.mjs --self-test :: exit 0
Tier and governed readings
  • dispatch-gates --tier: MANDATORY contract-review tier (clause ①: .claude/skills/pm-dispatch/SKILL.md is in the diff). This thread ran at the claim's model; the seat's in-seat contract review is the owed record.
  • node scripts/pm/check-governed-merges.mjs --branch HEAD: GOVERNED, Tier S (席内达档复核落地). 5 of 10 paths hit the register (.claude/**); the five scripts/pm/** files are not on it.
Line ratchet: four ruled raises, +6 lines

Ruling of record: the maintainer in the triage seat's session, 2026-11-14, 「优化建议,可以skills立卡优化」, quoted in the body of #33484; claim comment 6885221965. Each raise is recorded in its CEILINGS comment.

  • references/state-machine.md 41 to 43 (+2): the stateless rule and the hold grade line. Every bullet already sits at its 120-byte minimum.
  • references/landing-operations.md 107 to 108 (+1): the Part of pair became three lines.
  • references/seat-lifecycle.md 98 to 99 (+1): the stay-behind state.
  • references/triage-duties.md 101 to 103 (+2): the awaiting list with age, the sweep script; the self-repair line took the p3 drop in place.
  • SKILL.md: 319 to 319 lines; two table rows edited in place, the widest row unchanged.

🤖 Generated with Claude Code

https://claude.ai/code/session_01FEkQ5kK93Ye36vSYWspFwu

…runs the five disjunctions exactly

- label-write refuses, at step two, a write that takes the last pm state off an
  open issue (unless it adds a state or needs-user-decision, or closes it) and a
  write that parks a card with a holder; one shared predicate.
- fleet-write/dispatch asks the same predicate of an actions file on one read of
  each card it strips or parks; close-cards pins that every pack closes what it strips.
- scripts/pm/first-touch-sweep.mjs runs disjunctions one to five as triage-duties
  writes them, every page, checked against the platform's total_count.
- pm-dispatch text: the remainder's state at a Part-of landing, the stay-behind
  state, hold lowers the grade (Restart-grade), the awaiting-maintainer list with age.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FEkQ5kK93Ye36vSYWspFwu
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:skills#1 · os-project-manager · session_01FEkQ5pjSPT7ui2EUcunaVb

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 451ada3e886fe7d4c0c4086d160bcd227dc9af70
Local-runs: none
Scope: .claude/skills/pm-dispatch/SKILL.md, .claude/skills/pm-dispatch/references/landing-operations.md, .claude/skills/pm-dispatch/references/seat-lifecycle.md, .claude/skills/pm-dispatch/references/state-machine.md, .claude/skills/pm-dispatch/references/triage-duties.md + scripts/pm/label-write.mjs, scripts/pm/fleet-write/dispatch.mjs, scripts/pm/close-cards.mjs, scripts/pm/first-touch-sweep.mjs, scripts/pm/check-skill-line-ratchet.mjs

Inputs: card #33484 (body, claim comment 6885221965, os-dev-report 6885594065), PR #33510 (body, 10 files, +848 / -29, net diff against main at merge-base b392ff7), and the check-runs on this head. The PR body's own account was not taken as evidence; every claim below was read in the tree.

Gate verdicts at render (23:19 UTC on the review day): 53 check-runs on this head, 27 success, 26 skipped, 0 failed, 0 pending. Among them Lint · PM dispatch-gates, Lint · scoped · tooling self-tests, Lint · repo & tooling gates, Lint · docs & code guards, Governed Surface Queue Guard, PR-body guards, Check Changeset, Test Core (both shards) and every Type Check family: success.

① Derived judgments

  • scripts/pm/label-write.mjs: new refusal (exit 2, step ②, zero writes) on two shapes, on step ①'s own read, before the transport, for the plain write and --comment-file. (1) Strip: an OPEN issue loses a pm:* state and the target carries none of the six states. (2) Holder: the target sits in pm:queue / pm:blocked / pm:on-hold with an assignee, and the write moved a state or an assignee. New exports: refuseStatelessWrite, PARKED_STATE_LABELS, PARKED_RULE, STATELESS_RULE_PATH, STATELESS_RULE. This narrows what an internal CLI accepts, which is right per card item 1. The legal exits are another state, needs-user-decision, a close, the ONE-OF repair, a pull request, a closed card, or a write that moves neither a state nor an assignee (a regrade). All are right and all are pinned. The self-test's raced case moved from a lone pm:queue removal to skip-changeset, because the lone strip is now refused. That is right: the DELETE race is still driven, so nothing was weakened. Battery +19 and floor 15 to 16: right.
  • scripts/pm/fleet-write/dispatch.mjs: actions files gain a new exit 2 (refused) and exit 3 (unreadable card). A dry run now needs a token when the stroke strips or parks a card, which is the same shape as the kind rule: right. readLabelTargetKinds takes an optional cache, backward-compatible, so there is one GET per card shared with the guard. Right: both readers store the same rest() answer keyed by the action's issue. New exports: STATE_GUARD_OPS, stateGuardRows, judgeStateGuard, readStateGuard. The cliQuiet fixture moved from pm:queue to pm:awaiting-merge so that its zero-reads case stays zero reads. That is right: pm:awaiting-merge is not one of the six states.
  • scripts/pm/close-cards.mjs: packCard refuses a pack whose stroke strips without closing. Every pack built there closes, so the refusal is a pin and not a new behaviour: right.
  • scripts/pm/first-touch-sweep.mjs: a new report-only CLI with exits 0 / 2 / 3 / 4 and no writes. Right.
  • scripts/pm/check-skill-line-ratchet.mjs: four ceilings raised. Each is measured against the tree: state-machine 41 to 43 (+2 -0), landing-operations 107 to 108 (+3 -2), seat-lifecycle 98 to 99 (+1), triage-duties 101 to 103 (+3 -1). SKILL.md stays at 319 lines (+2 -2), and its ceiling did not move. Each ceiling moved by exactly the lines added, and each comment cites the ruling quoted in the card body and claim comment 6885221965. Right.
  • Nothing under packages/** or another published surface moves.

② Semver level

skip-changeset is on the PR and no changeset is in the diff. The diff touches only scripts/pm/** and .claude/skills/pm-dispatch/**, and neither is published. Check Changeset is success. That matches. Clause-②: no on the PR body and claim is right: no published schema or accept set is in the diff. The narrowed accept sets are internal PM tools, and the governed register puts this PR on the rules face, not the narrowing face.

③ Boundary flags

④ Design judgment

Rules faces (hits).

  • state-machine.md: 「开着的卡离手恒落一态:摘 pm:* 态同笔补下一态、needs-user-decision 或关卡;写门拒半写」 is card item 1 word for word, and STATELESS_RULE quotes it. The hold line (priority:p3 in the same stroke, · Restart-grade: pN at the end of the Restart-when: line, restored on restart, trackers and epics the same) is card item 3. I read classifyRestartWhen on main. The appended suffix keeps closed-ref, issue-ref and a backticked command fireable, so H9 and the unlock sweep are unaffected (see N5 for the bare-head command case).
  • SKILL.md: the queue row keeps 「pm:queue 卡恒无 assignee,有即半态」 verbatim. That phrase is what H24 in check-half-states.mjs quotes, and the second commit restored it. The parked states are appended, and the pm:on-hold row names the p3 drop. Both hold against the card. See N4 (no detector for the new half-state) and N6 (the human floor).
  • landing-operations.md: the three lines answer the old line's gap (收口 without saying what to). Item 2 is met: the remainder gets a state for its lane (pm:queue with its domain:*, re-domained across lanes; pm:blocked with Blocked-by:; hold with Restart-when:), the assignee is cleared, and a comment says what was delivered and who owns the rest.
  • seat-lifecycle.md: the stay-behind state is set in the seat-offline stroke, or by triage in the round it reads that knock. This is item 2's second half, and it stays consistent with 「离任留守只写点名的…PR」.
  • triage-duties.md: the 「待维护者」 list now names every needs-user-decision and pm:awaiting-maintainer card with its age (item 5). The sweep line names the script and forbids narrowing (item 4). The self-repair line takes the p3 drop (item 3).

Implementing files.

  • refuseStatelessWrite was driven against the brief's break list:
    • A lone --remove pm:dispatched is refused, end to end, with zero writes.
    • A case-varied PM:Dispatched is refused.
    • --release passes. It is legal by construction (pm:dispatched to pm:queue, every assignee cleared), but see N1.
    • A close passes, and an already-closed card is never judged.
    • pm:dispatched to needs-user-decision with the holder kept passes, because the target is not parked.
    • The state swaps pass: pm:dispatched to pm:queue with --clear-assignees, and pm:queue to pm:dispatched with an assign (the claim).
    • Parking with the holder kept is refused, by design under A.
    • A hold regrade with an old assignee passes, because it moves no state and no assignee.
    • Clearing a stale assignee from a pm:queue card passes.
  • The strip half has no bypass through issue_patch: validate.mjs admits only title, body, state and state_reason there. A removal of needs-user-decision that leaves a card stateless passes, which is the rule as written (it names pm:*); the sweep's ① and ③ backstop it.
  • dispatch.mjs stateGuardRows / judgeStateGuard apply the stroke's steps in order and ask label-write's predicate rather than restating it. One hole remains (S1).
  • In first-touch-sweep.mjs, the five disjunctions match triage-duties.md:
    • ①: no pm:*, no needs-user-decision, no domain:* (a bare finding hits).
    • ②: pm:queue without domain:*, multi-lane board only.
    • ③: domain:* and none of the six states.
    • ④: pm:queue with domain:* and no priority:*.
    • ②③④ apply only to cards settled for 2 minutes. The exclusions come first, and ⑤ is read from label events, never by actor.
  • The walk reads every page until a short page, with a ceiling of 60 pages, and drops pull requests. It compares total_count and incomplete_results and exits 4 INCOMPLETE on any gap. A ⑤ card whose events cannot be read makes the run INCOMPLETE. All of this matches the card. See S2, N2 and N3.

Findings.

  • S1 · should-fix (scripts/pm/fleet-write/dispatch.mjs, stateGuardRows): an assign-only relay stroke onto a card parked in pm:queue, pm:blocked or pm:on-hold is never read, so the holder half passes at the relay door. label-write refuses the same write, and its own self-test pins 「assigning a card that sits in pm:queue is REFUSED too」. Card item 1 names the fleet-write path for the holder rule, and label-write's header calls the predicate 「the ONE predicate, asked … at every door」. Fix: mark the row judged on assign as well, so that the claim stroke still passes (it strips pm:queue). Add one self-test case each way.
  • S2 · should-fix (scripts/pm/first-touch-sweep.mjs, verdictLine): without --since, ⑤ is skipped, yet the run prints sweep CLEAN — no card owed a first touch (⑤ NOT RUN: no --since window) and exits 0. The file's own header says 「without --since it is NOT RUN and the verdict says so — ⛔ never clean」, and the card's point is that no disjunction is narrowed. A patrol that drops the flag reads CLEAN on four disjunctions. Fix: a verdict word that is not CLEAN (for example sweep PARTIAL) and an exit that is not 0, or refuse to run without --since. Pin it with a self-test case.
  • N1 · nit (scripts/pm/label-write.mjs header and the PR body): both say the predicate is asked for 「the plain write, --comment-file and --release alike」, but runRelease never calls refuseStatelessWrite. A release is legal by construction and the predicate-level pin covers it, so nothing breaks. Correct the sentence, or ask the predicate in runRelease too. Accepted deviation.
  • N2 · nit (sweep walk): pages are read by offset in the endpoint's default created-descending order. A card closed between two page reads shifts a still-open card across the boundary. That card is missed while the counts still agree (both N-1), and the run reads complete. The window is seconds wide and the next fire catches it. Dedupe by number and walk created-ascending as a follow-up.
  • N3 · nit (sweep ⑤): fifthCandidate prefilters on the labels the card carries now. A card whose creation-minute pm:queue or priority:* has since come off is never judged, and the rule text has no current-label clause. Harmless in practice, because such a card has been touched since. Follow-up or accepted.
  • N4 · nit (SKILL.md queue row): pm:blocked/pm:on-hold with an assignee is now declared 有即半态, but H24 in check-half-states.mjs reads pm:queue only. The 2 of 24 pm:blocked cards with an assignee that the report names stay invisible to the half-state patrol until a write moves their state. The write door covers new writes. Follow-up card: widen H24 to the three parked states. Triage repairs the two cards.
  • N5 · nit (state-machine.md hold line): appending · Restart-grade: pN to a bare-head command value (Restart-when: pnpm …) means the line no longer runs verbatim as the 「一行可执行判据」 the hold rule requires. The classifier is unaffected. The placement is the card's own, so it is an accepted deviation. A prose follow-up could backtick a command value when the grade is appended.
  • N6 · nit (triage-duties.md human floor): the floor lists 「卡的命运(关 not planned、降级、撤回、砍半)」, while the new hold rule lowers a card to p3 in the same stroke, including a seat-graded hold. The maintainer's ruling on the card makes it 「既裁执行」, but the text does not say so, so a seat may present each hold regrade. Accepted, or a one-clause prose follow-up.
  • N7 · nit (follow-up): wire first-touch-sweep.mjs --self-test into CI (a root alias and a lint.yml step, Tier H). Until then its phrase pin against triage-duties.md runs nowhere automatically. File the card the report left unfiled.

No must-fix. S1 and S2 each earn a delta review of their fix. The nits stand as listed.

Implemented-by: claude/project-thread-milihp
Reviewed-by: session_01FEkQ5pjSPT7ui2EUcunaVb

VERDICT: PASS

Adopted by the seat 2026-11-14T23:20Z · isolated sub-agent at CONTRACT_REVIEW_TIER · Ruling-ref: Leehom card cmsg_01TenzsRopZj4jMbvjX8uz1XFhuiZmTH8VFgMmHRmpiGAb, option A, tapped 2026-11-14T15:37Z

…ithout a window is PARTIAL, never clean

- fleet-write/dispatch.mjs: stateGuardRows reads any card a stroke assigns someone to, since only the read knows
  whether the card already sits in pm:queue, pm:blocked or pm:on-hold; label-write refused the same write, the
  relay passed it. Two self-test cases: refused onto pm:queue, packs onto pm:dispatched.
- first-touch-sweep.mjs: with no --since, disjunction five does not run, so the verdict is PARTIAL and the exit 4;
  CLEAN and exit 0 need a complete walk on which all five ran.
- label-write.mjs: runRelease asks refuseStatelessWrite, as its header says; the self-test pins both doors.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FEkQ5kK93Ye36vSYWspFwu
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:skills#1 · os-project-manager · session_01FEkQ5pjSPT7ui2EUcunaVb

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: d00151d4ad4742222d02e5a7ed9e233f38e530b5
Local-runs: none
Scope: .claude/skills/pm-dispatch/SKILL.md, .claude/skills/pm-dispatch/references/landing-operations.md, .claude/skills/pm-dispatch/references/seat-lifecycle.md, .claude/skills/pm-dispatch/references/state-machine.md, .claude/skills/pm-dispatch/references/triage-duties.md + scripts/pm/fleet-write/dispatch.mjs, scripts/pm/first-touch-sweep.mjs, scripts/pm/label-write.mjs

Delta review. The earlier record is PR #33510 comment 6885812549, a PASS on head 451ada3e886fe7d4c0c4086d160bcd227dc9af70 with two should-fix findings (S1, S2) and seven nits (N1 to N7). This record judges fix commit d00151d on top of it.

Inputs: comment 6885812549; card #33484 (body, claim comment 6885221965, os-dev-report 6885594065); PR #33510 (body, 10 files, +874 / -29); git diff 451ada3e886fe7d4c0c4086d160bcd227dc9af70 d00151d4ad4742222d02e5a7ed9e233f38e530b5 (3 files, +52 / -26: first-touch-sweep.mjs, fleet-write/dispatch.mjs, label-write.mjs); and the check-runs on this head. Every new line of the delta was read. Neither the PR body's account of the fix nor the dev's was taken as evidence.

Gate verdicts at render (23:54 UTC on the review day): 48 check-runs on this head, 26 success, 22 skipped, 0 failed, 0 pending. These include Lint · PM dispatch-gates, Lint · scoped · tooling self-tests (which runs the label-write, fleet-write dispatch and close-cards self-tests), Lint · repo & tooling gates, Lint · docs & code guards, Lint · CI, release & engine gates, Lint · ESLint, Governed Surface Queue Guard, both PR-body guards runs, Test Core (both shards and the rollup), and every Type Check family: all success. Both Check Changeset runs are skipped, which is the skip-changeset path.

Delta

  • S1 · fixed. stateGuardRows (dispatch.mjs L1118) now judges a card when the stroke runs assign with at least one login. judgeStateGuard applies every step and then asks refuseStatelessWrite about the final label and assignee sets, so step order does not matter. I tried to break it:
    • An assign-only stroke onto pm:queue, pm:blocked or pm:on-hold is refused with label-write's PARKED_RULE sentence. It costs one GET and sends nothing, and the new CLI case pins this for pm:queue.
    • Legal strokes still pass. An assign onto pm:dispatched packs on one GET (pinned). The claim stroke (pm:queue off, pm:dispatched on, plus the assign) passes in any order, because the final set has no parked state. It was already read through its labels_remove, so it costs no new GET. An assign onto a closed card, a pull request or a needs-user-decision card passes on the predicate's own exits. An assign in a stroke that closes its card reads nothing.
    • An unassign and an empty assign read nothing. An assign whose login is already on the card moves nothing and passes, the same as label-write.
    • No GET is added where none is owed. Only the read can tell whether the card is already parked, so the GET is owed, and it shares the kind rule's cardReads cache. label-write's own assigns go through sendFleetWrite rather than this main, so they gain no second read. close-cards.mjs packs always close, so its stateGuardRows refusal still never fires.
    • The rows pin that used an assign to show "touches no state" now uses unassign. The assign case moved to its own expectation ([5]), so no coverage was lost. Battery 6 to 8.
  • S2 · fixed. verdictLine without --since now prints sweep PARTIAL — ⑤ NOT RUN …, and the new sweepExit returns 0 only when complete && fifthRun, otherwise 4. main returns sweepExit(r). The header, the exit table and USAGE all name PARTIAL as exit 4, and all three agree with the code. renderJson carries the same verdict string and fifth_run. A --since later than now is still refused as usage (exit 2), so a future window cannot buy a vacuous CLEAN. triage-duties.md already names --since=ISO on the sweep line. Pinned: the empty board exits 0 with --since and 4 without it, and the verdict starts sweep PARTIAL. The walk battery's FOUND case is now the PARTIAL case. CLI battery 7 to 9, total 45.
  • N1 · fixed. runRelease now asks refuseStatelessWrite at step ② (label-write.mjs L1634). It uses the card read at step ①, the release's label target (pm:queue) and its assignee target, which is empty because of clearAll. So it passes, and the header's 「the plain write, --comment-file and --release alike」 is now true. The existing release drives that exit 0 run through the new call, so a refusal there would turn the self-test red. See N10 for the pin.
  • N2 · not fixed (offset paging can miss a card when the board shifts mid-walk). Outside the delta. It stands as a follow-up.
  • N3 · not fixed (⑤ prefilters on the labels the card carries now). Outside the delta. It stands as a follow-up or an accepted deviation.
  • N4 · not fixed (H24 reads pm:queue only). Outside the delta. It stands as a follow-up card.
  • N5 · not fixed (the Restart-grade suffix on a command value with a bare head). Outside the delta. It stands as an accepted deviation.
  • N6 · not fixed (the human-floor wording for a hold regrade). Outside the delta. It stands as accepted.
  • N7 · not fixed (the sweep self-test is not wired into CI). The PR body's acceptance notes still carry it, and the follow-up card is still owed by the seat.

① Derived judgments

  • scripts/pm/fleet-write/dispatch.mjs: an actions file with an assign onto a card that is not closed in the same stroke now needs a card read. That adds two new outcomes for such a file: exit 2 when the card is parked, and exit 3 when it cannot be read. A dry run of that file without a token is now exit 3. This narrows an internal CLI's accept set to match label-write's: right, and it is S1's own ask. The new import is PARKED_RULE. No export was removed.
  • scripts/pm/first-touch-sweep.mjs: a run without --since moves from exit 0 to exit 4. A patrol that drops the flag now reads a failure: right, and it is S2's own ask. New export: sweepExit.
  • scripts/pm/label-write.mjs: --release gains a step ② check that the release shape always passes. No accept-set change.
  • The .claude/skills/pm-dispatch/** hits are unchanged by the delta. The rules-face judgment in the earlier record stands.

② Semver level

skip-changeset. The delta touches only scripts/pm/**, which is not published. Both Check Changeset runs are skipped on this head, which is the labelled path. Clause-②: no still holds.

③ Boundary flags

  • No new boundary. The delta stays inside the order's surface (scripts/pm/**), and no card was relabelled.
  • Tier S (.claude/** paths in the PR), so this record is what the seat lands on.
  • Option A (no parked state keeps a holder) is unchanged, and S1 extends it to the relay door. Settled.

④ Design judgment

Every new line of the delta was read. The fixes take the shape the earlier record asked for. The relay door asks the one predicate rather than restating it, and the sweep has a verdict word and an exit that a patrol cannot misread as clean. Findings on the new lines:

  • N8 · nit (dispatch.mjs L4688, the no-token prerequisite sentence): the header, the stateGuardRows doc and the unread sentence in readStateGuard now say 「parks it or assigns someone to it」. The token-missing branch in main still says 「the stroke takes a pm state off card N or parks it」. An assign-only dry run with no token therefore gets a reason that does not describe its stroke. The exit (3) is right; only the reason is wrong. Fix: add 「or assigns someone to it」.
  • N9 · nit (dispatch.mjs stateless-door battery): the claim stroke (pm:queue off, pm:dispatched on, plus an assign) is the legal assign onto a parked card. It passes at the relay door, as read above, but is pinned only at label-write's predicate, not through the door's cli. Add one case so a later change to the row picker cannot refuse a claim unseen.
  • N10 · nit (label-write.mjs STATELESS battery): the new runRelease pin brings the battery to 20 cases, but its floor stays 19, so the pin can be deleted without turning anything red. dispatch (6 to 8) and the sweep (7 to 9) raised their floors. The pin is also a source-text check (String(fn).includes('refuseStatelessWrite(')). It is backed behaviourally only because the release drives pass through the call. Raise the floor to 20.
  • N11 · nit (outside the delta; follow-up): the holder half judges assign, label and release strokes. A card created open with pm:queue (or another parked state) and an assignee in one write is judged by no door: the relay's issue_create op and issue-create.mjs --label … --assignee … both accept it. Nothing files cards that way today, and H24 sees a pm:queue holder afterwards. File a follow-up card to ask the predicate of a create as well.

No must-fix and no should-fix. S1, S2 and N1 are fixed. N2 to N7 stand as the earlier record listed them. N8 to N11 are nits, so this round ends here.

Implemented-by: claude/project-thread-milihp
Reviewed-by: session_01FEkQ5pjSPT7ui2EUcunaVb

VERDICT: PASS

Adopted by the seat 2026-11-14T23:55Z · isolated sub-agent at CONTRACT_REVIEW_TIER · Ruling-ref: Leehom card cmsg_01TenzsRopZj4jMbvjX8uz1XFhuiZmTH8VFgMmHRmpiGAb, option A, tapped 2026-11-14T15:37Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:skills#1 · os-project-manager · session_01FEkQ5pjSPT7ui2EUcunaVb

席位核对

Verdict: ACCEPT, seat lands (Tier S) · head d00151d4ad4742222d02e5a7ed9e233f38e530b5 · card #33484 · report 6885594065 · contract review 6885812549 (PASS with should-fix S1, S2 on 451ada3e) and delta 6886204012 (PASS on this head, CONTRACT_REVIEW_TIER; Ruling-ref for the in-seat review: Leehom card cmsg_01TenzsRopZj4jMbvjX8uz1XFhuiZmTH8VFgMmHRmpiGAb option A).

  • Shape: draft → main, Fixes #33484. scripts/pm/** and .claude/skills/pm-dispatch/**, 10 files. skip-changeset (no published package). Clause-②: no; Metadata-protocol: none.
  • Tier: GOVERNED, Tier S (.claude/**, scripts/pm/**). The seat lands it; no human is asked.
  • Should-fix closure: S1, stateGuardRows now judges any assign with a login, so an assign-only stroke onto a parked state is refused on one GET and nothing is sent, while the claim stroke still passes in any step order (pinned). S2, a sweep without --since prints sweep PARTIAL and exits 4; exit 0 needs a complete walk and all five checks (pinned, 45 cases). N1, runRelease now asks refuseStatelessWrite.
  • Accepted deviations (delta nits): N8, the missing-token dry-run reason in dispatch.mjs does not name the assign-only stroke (exit code right); N9, the claim-with-assign stroke is pinned at label-write's predicate, not at the relay door; N10, label-write's stateless battery floor is 19 against 20 cases, and the runRelease check reads source text. N2 to N7 stand as the first record listed them.
  • Follow-up: pm: first-touch sweep follow-ups from the #33484 review (oldest-first paging, ⑤ pre-filter, H24 on blocked and on-hold, CI wiring) #33516 carries N2, N3, N4 and the CI wiring (N7). N11 (a card created open in a parked state with an assignee in one write, through issue_create or issue-create.mjs, is judged by no door) is added to pm: first-touch sweep follow-ups from the #33484 review (oldest-first paging, ⑤ pre-filter, H24 on blocked and on-hold, CI wiring) #33516 by the seat.
  • Pre-landing check: ① same-head PASS 6886204012 on record. ② check-runs on the head: 48, 26 success, 22 skipped, none failing or pending. ③ K = 10 (merge base b392ff7b), under 15; no scripts/pm/** commit landed on main since.
  • Landing: pr_ready + automerge_enable in the same relay round.

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 14, 2026 23:56
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 14, 2026
@objectstack-fleet
objectstack-fleet Bot marked this pull request as draft November 15, 2026 00:24
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:skills#1 · os-project-manager · session_01FEkQ5pjSPT7ui2EUcunaVb

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: d00151d4ad4742222d02e5a7ed9e233f38e530b5
Local-runs: none
Scope: .claude/skills/pm-dispatch/SKILL.md, .claude/skills/pm-dispatch/references/landing-operations.md, .claude/skills/pm-dispatch/references/seat-lifecycle.md, .claude/skills/pm-dispatch/references/state-machine.md, .claude/skills/pm-dispatch/references/triage-duties.md + scripts/pm/label-write.mjs, scripts/pm/fleet-write/dispatch.mjs, scripts/pm/close-cards.mjs, scripts/pm/first-touch-sweep.mjs, scripts/pm/check-skill-line-ratchet.mjs

At-tier re-review of the whole net diff against main (merge base b392ff7bdf4c, 10 files, +874 / -29), read with git show / git diff only. Inputs: card #33484 (body, claim 6885221965, os-dev-report 6885594065), the PR body and file list, and the check-runs on this head. The two earlier records on this PR (6885812549, 6886204012) were not used as evidence; ③ says which of their findings this reading confirms. The PR body's account was not taken as evidence either.

Gate verdicts: 49 check-runs on this head, all completed: 27 success, 22 skipped, none failed, none pending. Success includes Lint · PM dispatch-gates, Lint · scoped · tooling self-tests, Lint · repo & tooling gates, Lint · docs & code guards, Lint · CI, release & engine gates, Lint · ESLint, Governed Surface Queue Guard, PR-body guards, Test Core and every Type Check family. No file under .claude/skills/pm-dispatch/**, and none of the five scripts, changed on main after the merge base.

① Derived judgments

  • scripts/pm/label-write.mjs: the CLI's accept set narrows by two refusals (exit 2, step ②, zero writes, before the transport and before the --comment-file fold), asked in runLabelWrite and in runRelease. Strip half: an open issue drops one of the five pm:* states and the target carries none of the six ONE-OF states. Holder half: the target carries pm:queue, pm:blocked or pm:on-hold, keeps an assignee, and this write moved a state or an assignee. Right per card item 1, with one declared narrowing of the card's letter (the holder half does not refuse a write that moved neither; see ③). New exports refuseStatelessWrite, PARKED_STATE_LABELS, PARKED_RULE, STATELESS_RULE_PATH, STATELESS_RULE: right. The raced fixture moved from pm:queue to skip-changeset because a lone strip is now refused; the DELETE race is still driven: right.
  • scripts/pm/fleet-write/dispatch.mjs: an actions file whose stroke takes a pm:* state off a card, adds a parked state, or assigns someone, without closing that card, now reads the card (one GET, shared with the kind rule through the new optional cache argument of readLabelTargetKinds) and gains exit 2 (refused) and exit 3 (unreadable, or no read token), dry run included. Right per item 1. New exports STATE_GUARD_OPS, stateGuardRows, judgeStateGuard, readStateGuard: right. The cliQuiet fixture moved to pm:awaiting-merge so its zero-read case stays zero reads: right, that label is not one of the six states.
  • scripts/pm/close-cards.mjs: packCard refuses a pack that strips without closing. PACK_ORDER always ends in issue_patch, so this is a pin, not a behaviour change: right.
  • scripts/pm/first-touch-sweep.mjs: new report-only CLI, exits 0 / 2 / 3 / 4, no write verb: right.
  • scripts/pm/check-skill-line-ratchet.mjs: four ceilings raised. Measured in the tree at base and head: state-machine 41 to 43 lines, landing-operations 107 to 108, seat-lifecycle 98 to 99, triage-duties 101 to 103; SKILL.md 319 to 319 with its ceiling unmoved. Each ceiling moved by exactly the lines added (headroom 0), and each CEILINGS comment cites the ruling of record (the maintainer's 「优化建议,可以skills立卡优化」, quoted in the body of pm skills: no open card leaves a lane without a state (Part-of landings, stay-behind, on-hold grade), and the triage sweep runs the five disjunctions exactly #33484, claim comment 6885221965). Right.
  • Nothing under packages/** or any published surface moves.

② Semver level

skip-changeset is on the PR and the diff carries no changeset. The diff publishes nothing: scripts/pm/** and .claude/skills/pm-dispatch/** only. Both Check Changeset runs are skipped, which is the labelled path. That matches.

Clause-②: no. Right: no published schema or accept set is in the diff; the narrowed accept sets belong to internal PM tools, and the governed register puts this PR on the rules face.

③ Boundary flags

④ Design judgment

Rules faces (hits).

  • state-machine.md: 「开着的卡离手恒落一态:摘 pm:* 态同笔补下一态、needs-user-decision 或关卡;写门拒半写」 is item 1, and it is what refuseStatelessWrite enforces; STATELESS_RULE is a substring of it and the pin runs in CI through the label-write self-test. The hold line (p3 in the same stroke, · Restart-grade: pN at the end of the Restart-when: line, restored on restart, trackers and epics the same) is item 3. Read against classifyRestartWhen and directiveValues in check-half-states.mjs: the suffix stays inside the value and the value still classifies closed-ref, issue-ref or command, so H9 does not move. Holds.
  • SKILL.md: the queue row keeps 「pm:queue 卡恒无 assignee,有即半态」 byte for byte (H24 quotes it) and appends the two parked states; PARKED_RULE is a substring and is pinned in CI. The pm:on-hold row names the p3 drop and Restart-grade:. Holds; see N4.
  • landing-operations.md: the three lines say what the old 收口 did not: in the MERGED stroke the remainder takes one state for its lane (pm:queue with its domain:*, re-domained across lanes; pm:blocked with Blocked-by:; hold with Restart-when:), the assignee is cleared, and a comment says what landed and who owns the rest. Item 2. A Fixes card is closed by the merge, so its strip is a write on a closed card, which the door never judges. Holds.
  • seat-lifecycle.md: the stay-behind takes its lane's state and loses its assignee in the seat-offline stroke, or triage sets it in the round it reads that knock. Item 2, second half. Holds.
  • triage-duties.md: the awaiting list with each card's age (item 5); the sweep line names node scripts/pm/first-touch-sweep.mjs --since=ISO, the exact spelling the parser accepts (item 4); the self-repair line takes the p3 drop (item 3). Holds.

Implementing files, read against that text.

  • refuseStatelessWrite, tried against the break list:
    • a lone --remove pm:dispatched on an open card: refused, zero writes, direct and relay transport;
    • a case-varied state (PM:Dispatched): refused through labelKey; in label-write a case-varied --remove issues no DELETE at all, so it cannot strip;
    • two states with both removed: refused; one of two removed: passes (ONE-OF repair);
    • --release: pm:dispatched to pm:queue with every assignee cleared, passes both halves;
    • a close, and a card already closed: never judged; a pull request: never judged; an unreadable kind or a missing state: judged as an open issue, the conservative side;
    • pm:dispatched to needs-user-decision, holder kept: passes (not parked);
    • state swaps: the claim (pm:queue to pm:dispatched with an assign) passes; pm:dispatched to pm:queue / pm:blocked / pm:on-hold passes only with the assignee cleared, which is answer A;
    • pm:blocked to pm:queue on a card that still has an assignee: refused until --clear-assignees, with a sentence that says so. This is the rule, and it will be met on the two assigned pm:blocked cards the report names.
  • dispatch.mjs: judgeStateGuard applies the stroke's steps in order to the read and asks label-write's predicate, never a restatement. issue_patch admits only title, body, state and state_reason (ops.mjs), so labels and assignees cannot ride it. issue is an integer by the validator, so one card cannot be split across two rows. One hole: S3.
  • close-cards.mjs: agrees, see ①.
  • first-touch-sweep.mjs against triage-duties.md lines 16 to 19: ① no pm:*, no needs-user-decision, no domain:*, asked at once (a bare finding card hits); ② pm:queue without domain:*, multi-lane board only; ③ domain:* and none of the six states; ④ pm:queue with domain:* and no priority:*; ②③④ only when updated_at is older than 2 minutes; the four exclusions first, by the label names check-half-states.mjs already uses; ⑤ created in the window with pm:queue or a priority:* labelled in the creation minute, read from label events, never the actor. The walk reads every page to a short page (ceiling 60, a full last page there is INCOMPLETE), drops pull requests, and compares its count with search total_count; a mismatch, incomplete_results, or an unread ⑤ card is sweep INCOMPLETE, exit 4; no --since is sweep PARTIAL, exit 4. Exactly the five disjunctions, full pagination, and INCOMPLETE on a count mismatch. Agrees.
  • check-skill-line-ratchet.mjs: agrees, see ①.

Findings.

  • S3 · should-fix (scripts/pm/fleet-write/dispatch.mjs, stateGuardRows / judgeStateGuard): a stroke that reopens a closed card and strips its state passes the door. stateGuardRows reads the stroke's issue_patch only for closes; judgeStateGuard passes state: card.state from the read, and refuseStatelessWrite returns null on closed. So issue_patch state: open plus labels_remove pm:dispatched on a closed card that still carries that residue is judged as a closed card and sent, and it leaves an OPEN card with no state, the shape the rule names. The validator admits state: open. It is outside the card's letter (「on an open issue」) and rare, and sweep ③ backstops it, so it is not a must-fix; but the door already models the stroke's close and should model its open the same way. Fix: when the stroke's last issue_patch state is open, judge the card as open; one self-test case each way (reopen with a strip refused, reopen with a strip and the next state passing).
  • N1 · nit (refuseStatelessWrite, strip half): taking needs-user-decision off as the last state passes, since the rule text and the card name pm:*. A ruled decision card stripped of its inbox label with nothing added is the same half-write. The rule as written; sweep ① and ③ catch it. Follow-up card or a ruling to widen the strip to the six states.
  • N2 · nit (the two doors differ on one stroke): removing one of two assignees from a parked card is refused by label-write (an assignee moved and one remains) and passes the relay door unread (unassign alone does not mark the row judged). It makes no card worse. Accepted deviation.
  • N3 · nit (dispatch.mjs no-token sentence): an assign-only stroke with no read token is told 「the stroke takes a pm state off card N or parks it」. Exit 3 is right; the reason does not describe the stroke. Follow-up.
  • N4 · nit (SKILL.md, prose): under answer A the pm:blocked row's 「工已完而被门禁卡住的同用本态」 and the assignee row's 「在飞卡跟到 MERGED,⛔ 不静默摘 assignee」 now meet the queue row's 「pm:blocked/pm:on-hold 同」 without a word on which wins for a done-and-gated card. The door decides it (the assignee goes with the state write), but a seat reading the table can argue either way. A few words on the pm:blocked row, fixable on the prose face in place, or a follow-up.
  • N5 · nit (state-machine.md hold line): on a bare command value the · Restart-grade: pN suffix means the line no longer runs verbatim as the 「一行可执行判据」 two lines above requires. The placement is the card's own. Accepted deviation; backticking the command when the grade is appended would settle it.
  • N6 · nit (triage-duties.md): the human floor still lists 降级 under 卡的命运, and the hold rule now lowers a grade without presenting it. The ruling on the card covers it; the text does not say so. Accepted, or one clause later.
  • N7 · nit (follow-up owed): the sweep's self-test, the stateless battery floor (19 against 20 cases), a door-level pin for the claim stroke, H24 widened to the three parked states, offset paging (a card closing mid-walk can hide another while the counts still agree), ⑤'s current-label prefilter, and a card created parked with an assignee through issue_create are each outside this head. One follow-up card carries them; the seat checks it is filed before landing.

No must-fix. S3 earns a delta review of its fix. The nits stand as listed.

Implemented-by: claude/project-thread-milihp
Reviewed-by: session_01FEkQ5pjSPT7ui2EUcunaVb

VERDICT: PASS

Adopted by the seat 2026-11-15T00:33Z · isolated sub-agent at CONTRACT_REVIEW_TIER (served model verified by the seat) · Ruling-ref: Leehom card cmsg_01TenzsRopZj4jMbvjX8uz1XFhuiZmTH8VFgMmHRmpiGAb, option A, tapped 2026-11-14T15:37Z

@objectstack-fleet

objectstack-fleet Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor Author

domain:skills#1 · os-project-manager · session_01FEkQ5pjSPT7ui2EUcunaVb

Correction: contract-review tier

The contract-review record(s) 6885812549, 6886204012 on this PR say Served-tier: CONTRACT_REVIEW_TIER, and the seat adopted them as "isolated sub-agent at CONTRACT_REVIEW_TIER". That is wrong. The seat launched the reviewing sub-agent without the tier, so it ran at the seat's own default tier, not at CONTRACT_REVIEW_TIER. The seat found this on its own audit. The review was still isolated and adversarial, and its findings stand as an off-tier review. They are not the at-tier record AGENTS.md and the in-seat review ruling require.

The seat converted this PR back to draft at 00:24Z and is re-running the review at CONTRACT_REVIEW_TIER. It lands only on that record. which took it out of the merge queue [Edit: the timeline shows no dequeue event after the draft conversion, so whether it left the merge queue is unconfirmed; the maintainers were asked to remove it from the queue by hand.]

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:skills#1 · os-project-manager · session_01FEkQ5pjSPT7ui2EUcunaVb

@os-zhuang a request for a maintainer hand: please remove this PR from the merge queue. It was converted to draft after the at-tier review (6886666661) asked for one should-fix, but the queue entry survived the draft conversion, so the developer's fix push is refused with GH006 ("Branches that are queued for merging cannot be updated"). The fix commit f3269534 already has an at-tier delta PASS from the seat; it goes up the moment the entry is gone, and the seat lands it on green checks on that same head. Asked 2026-11-15T01:47Z.


Generated by Claude Code

Merged via the queue into main with commit 41b64bb Nov 15, 2026
49 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/project-thread-milihp branch November 15, 2026 03:25
scbdzhwl pushed a commit to scbdzhwl/objectstack-analysis that referenced this pull request Nov 16, 2026
…d-state assignee rule and the triage floor agree (objectstack-ai#33638)

<!-- claude-projects-attribution: {"github_login":"os-project-manager"}
-->
_Requested by **Leehom** · [project
thread](https://claude.ai/code/project/chan_01TenzsRopZj4jMbvjX8uz1X?thread=cmsg_01TenzsRopZj4jMbvjX8uz1X46rM3rV3M1PPvPksR8k4mL)_

Follow-up to objectstack-ai#33484 (PR objectstack-ai#33510)

domain:skills#1 · os-project-manager · session_01FEkQ5kK93Ye36vSYWspFwu

Clause-②: no
Metadata-protocol: none

## 维护者速读

- 改了什么:中继写口(`fleet-write/dispatch.mjs`)判一笔写时,若同笔把关着的卡重开(`issue_patch`
`state: open`),按「开着的卡」判;重开同时摘掉最后一个 `pm:*`
态即拒收,重开同笔补新态照常放行。技能文字两处对齐:`SKILL.md` assignee 行写明入停放态同笔摘
assignee;`triage-duties.md` 人工地板的「降级」除去入 hold 自动降 p3。
- 为什么改:PR objectstack-ai#33510 合并时停在旧头,席位达档复审的 should-fix S3(重开+摘态漏判)与 N4/N6 两处文字尚未落地。
- 风险与回滚:只动 PM 工具与技能文字,不碰产品包;新拒收只在一笔写会留下无态的开卡时触发。回滚即还原本 PR。
- 先看:`scripts/pm/fleet-write/dispatch.mjs` 的
`stateGuardRows`(`reopens`)与 `judgeStateGuard`。
- 两分钟验证:`node scripts/pm/fleet-write/dispatch.mjs --self-test`,预期 `✓
fleet-write/dispatch self-test: 401 cases pass across 32 batteries`。
- 需要你做的:无,席位落地(受管面 Tier S,席内达档复审后入队)。

## What changes

- `scripts/pm/fleet-write/dispatch.mjs` (review S3): `stateGuardRows`
records the state set by the stroke's last `issue_patch`. `closed`
closes the card (`closes`), as before, and `open` reopens it
(`reopens`). `judgeStateGuard` judges a reopened card as OPEN whatever
its read says. Before this, a stroke that reopened a closed card and
took its last `pm:*` state off was judged as closed, and it was sent,
leaving an open card with no state. Two self-test cases cover it: reopen
plus `labels_remove pm:dispatched` on a closed card is usage (2) with
nothing sent, and reopen plus `pm:queue` on, `pm:dispatched` off packs
with exit 0 on one GET. The stateless-door battery floor goes from 8 to
10, and the header section says how the last `issue_patch` state decides
the card's end state.
- `.claude/skills/pm-dispatch/SKILL.md` (review N4): the assignee row
now ends 「入停放态(queue/blocked/hold)同笔摘」, which matches the parked-state
rule the queue row already states for `pm:blocked`/`pm:on-hold`. The
`pm:blocked` row is unchanged, because it sits at the 341-byte table-row
width pin and a cell edit there turned the line ratchet red.
- `.claude/skills/pm-dispatch/references/triage-duties.md` (review N6):
the human floor's 「降级」 now reads 「非 hold 的降级」, since the hold rule
lowers a card to p3 itself. The line is 119 bytes, under the 120-byte
budget.

## Acceptance notes

- The seat's delta review of this commit passed on the old base (as
f326953, reviewed from a bundle while objectstack-ai#33510 sat in the merge queue).
This head is the same change cherry-picked onto `main` after objectstack-ai#33510
merged, so it needs a fresh delta review.
- Not done here: the nits filed on objectstack-ai#33516 (a reopen-only stroke is not
read; the reopen-plus-strip case does not assert the single GET; N7 and
the sweep follow-ups).

## Verification

Size: 3 files, +25 / -8.

- `node scripts/pm/dispatch-gates.mjs --commands` derived 50 gate
families for this diff; all 50 ran green at head `15d3a1b6`, after the
lint closure was built under the build lock.
- `dispatch-gates --ran` reconciliation: `50 derived famil(ies)
accounted for — 50 run, 0 NOT-MEASURED (a DERIVED zero — all 50 recorded
an exit code and none of them is 3)`.
- `node scripts/pm/fleet-write/dispatch.mjs --self-test`: 401 cases pass
across 32 batteries.

<details><summary>Gate commands and exits (head 15d3a1b)</summary>

```text
node scripts/check-closing-keyword-parity.mjs :: exit 0
node scripts/check-closing-keyword-parity.mjs --self-test :: exit 0
node scripts/check-comment-mask-corpus.mjs :: exit 0
node scripts/check-declaration-mirrors.mjs :: exit 0
node scripts/check-declaration-mirrors.mjs --self-test :: exit 0
node scripts/check-self-test-wired.mjs :: exit 0
node scripts/check-self-test-wired.mjs --self-test :: exit 0
node scripts/check-self-test-workflow-commands.mjs :: exit 0
node scripts/check-self-test-workflow-commands.mjs --self-test :: exit 0
node scripts/check-whole-set-label-write.mjs :: exit 0
node scripts/check-whole-set-label-write.mjs --self-test :: exit 0
node scripts/ci/plan-test-core-shards.mjs --self-test :: exit 0
node scripts/pm/bare-root-worklist.mjs --self-test :: exit 0
node scripts/pm/check-governed-queue-guard.mjs --self-test :: exit 0
node scripts/pm/check-harness-current.mjs --self-test :: exit 0
pnpm --filter @objectstack/lint run check:doc-formula-expressions :: exit 0
pnpm check:agent-test-spelling :: exit 0
pnpm check:bash32-floor :: exit 0
pnpm check:ci-filter-parity :: exit 0
pnpm check:cli-command-ids :: exit 0
pnpm check:cross-package-test-inputs :: exit 0
pnpm check:doc-authoring :: exit 0
pnpm check:driver-memory-census :: exit 0
pnpm check:entry-guard :: exit 0
pnpm check:gitlink-declared :: exit 0
pnpm check:nul-bytes :: exit 0
pnpm check:parse-guard :: exit 0
pnpm check:pm-close-cards :: exit 0
pnpm check:pm-dispatch-gates :: exit 0
pnpm check:pm-expected-skips :: exit 0
pnpm check:pm-fleet-write-dispatch :: exit 0
pnpm check:pm-fleet-write-execute :: exit 0
pnpm check:pm-fleet-write-validate :: exit 0
pnpm check:pm-governed-merges :: exit 0
pnpm check:pm-governed-prose :: exit 0
pnpm check:pm-half-states :: exit 0
pnpm check:pm-issue-create :: exit 0
pnpm check:pm-issue-transfer :: exit 0
pnpm check:pm-label-write :: exit 0
pnpm check:pm-post-stamped :: exit 0
pnpm check:pm-record-recognisers :: exit 0
pnpm check:pm-skill-id-lint :: exit 0
pnpm check:pm-skill-ratchet :: exit 0
pnpm check:pm-write-pace :: exit 0
pnpm check:pnpm-filter-targets :: exit 0
pnpm check:pnpm-flag-spellings :: exit 0
pnpm check:refd-timer-probe :: exit 0
pnpm check:scripts-symbol-anchors :: exit 0
pnpm check:skill-frame-sync :: exit 0
pnpm check:watch-hint-literal :: exit 0
```

</details>

<details><summary>Tier and governed readings</summary>

- `dispatch-gates --tier`: MANDATORY contract-review tier (clause ①:
`.claude/skills/pm-dispatch/SKILL.md` is in the diff). The seat's
in-seat at-tier delta review is the owed record.
- Line ratchet: no ceiling moves. `SKILL.md` 319 lines with one table
row edited in place and the widest row unchanged; `triage-duties.md` 103
lines with one line edited in place.

</details>

🤖 Generated with [Claude Code](https://claude.com/claude-code)

https://claude.ai/code/session_01FEkQ5kK93Ye36vSYWspFwu

Co-authored-by: Claude <noreply@anthropic.com>
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/l skip-changeset PR has no user-facing published change; bypasses the changeset gate

Projects

None yet

1 participant