Repository navigation
feat(pm): no open card leaves a lane without a state; triage sweeps the five disjunctions exactly - #33510
Conversation
…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
…states join it Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FEkQ5kK93Ye36vSYWspFwu
|
domain:skills#1 · os-project-manager · session_01FEkQ5pjSPT7ui2EUcunaVb Contract reviewServed-tier: 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 ① Derived judgments
② Semver level
③ Boundary flags
④ Design judgmentRules faces (hits).
Implementing files.
Findings.
No must-fix. S1 and S2 each earn a delta review of their fix. The nits stand as listed. Implemented-by: 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
|
domain:skills#1 · os-project-manager · session_01FEkQ5pjSPT7ui2EUcunaVb Contract reviewServed-tier: Delta review. The earlier record is PR #33510 comment 6885812549, a PASS on head Inputs: comment 6885812549; card #33484 (body, claim comment 6885221965, os-dev-report 6885594065); PR #33510 (body, 10 files, +874 / -29); 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 Delta
① Derived judgments
② Semver level
③ Boundary flags
④ Design judgmentEvery 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:
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: 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 |
|
domain:skills#1 · os-project-manager · session_01FEkQ5pjSPT7ui2EUcunaVb 席位核对Verdict: ACCEPT, seat lands (Tier S) · head
|
|
domain:skills#1 · os-project-manager · session_01FEkQ5pjSPT7ui2EUcunaVb Contract reviewServed-tier: At-tier re-review of the whole net diff against Gate verdicts: 49 check-runs on this head, all completed: 27 success, 22 skipped, none failed, none pending. Success includes ① Derived judgments
② Semver level
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 judgmentRules faces (hits).
Implementing files, read against that text.
Findings.
No must-fix. S3 earns a delta review of its fix. The nits stand as listed. Implemented-by: 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 |
|
domain:skills#1 · os-project-manager · session_01FEkQ5pjSPT7ui2EUcunaVb Correction: contract-review tierThe contract-review record(s) 6885812549, 6886204012 on this PR say The seat converted this PR back to draft at 00:24Z and is re-running the review at |
|
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 Generated by Claude Code |
…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>
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:、「待维护者」逐张列卡龄。pm:dispatched不补态的半写,加上分诊的兜底筛查是窄化的手敲版(① 当「无标签」、③ 漏跑、截 12 条)。--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。What changes
Item 1 — the stateless write, one predicate at every door that strips a state.
scripts/pm/label-write.mjs: newrefuseStatelessWrite(exported withPARKED_STATE_LABELS,STATELESS_RULE,PARKED_RULE), asked at step ② on step ①'s own read, before the transport, for the plain write,--comment-fileand--releasealike. Two halves: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, addsneeds-user-decision, or closes the card; a card with two states losing one keeps one and passes (the ONE-OF repair).pm:queue/pm:blocked/pm:on-holdthat 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.--release(pm:dispatchedtopm:queue, every assignee cleared) is pinned legal.scripts/pm/fleet-write/dispatch.mjs(the relay's actions-file door):stateGuardRowspicks each card a stroke takes apm:*state off, parks, or assigns someone to (only the read knows whether it already sits parked), without closing;readStateGuardreads it once (sharing the kind rule's read of the same card, so one GET per number);judgeStateGuardapplies 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:packCardasks 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 withGET /search/issuestotal_count(andincomplete_results), and runs ① to ⑤ astriage-duties.mdwrites them: ① nopm:*, noneeds-user-decision, nodomain:*(afindingcard with no domain is bare); ②pm:queuewithoutdomain:*on the multi-lane board; ③domain:*with no pm state; ④pm:queue+domain:*withoutpriority:*; ②③④ settle 2 minutes; exclusionstracking,status:parked,pm:seat,qa-run; ⑤ with--since, created in the window withpm: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, 4sweep INCOMPLETEorsweep PARTIAL(no--since, ⑤ not run). Its self-test pins every rule phrase it is built from as a substring oftriage-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 topriority:p3in the same stroke with· Restart-grade: pNat the end of theRestart-when:line, a restart restores it, trackers and epics the same.SKILL.mdstate table: the queue row keeps 「pm:queue卡恒无 assignee,有即半态」 verbatim and addspm:blocked/pm:on-hold; thepm:on-holdrow names the p3 drop andRestart-grade:.references/landing-operations.md: thePart ofclose-out says what to do: in the MERGED stroke the remainder takes a state for its lane (pm:queue+ its lane'sdomain:*, 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 theseat-offlinestroke; one that does not, triage sets on reading that knock, in that round.references/triage-duties.md: the 「待维护者」 list names every openneeds-user-decisionandpm:awaiting-maintainercard 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
mainthe filing evening and quoted on the card: of 27 open p1 cards, 5 were queued; #32087 and #32908 (p1) and #32984 and #33353 (p2) hadpm:dispatchedremoved with no state added; thefindingcards #33402 to #33404 waited about three hours because the hand sweep ran ① asno: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
pm:blockedrow lets a card whose work is done but held by a gate usepm:blocked, and in-flight cards keep their assignee until MERGED. The card namespm:blockedamong the parked states, so such a card must now clear its assignee when it enterspm:blocked. On the board today 2 of 24 openpm:blockedcards carry an assignee; they are not refused for unrelated writes (a write that moves no state and no assignee passes). If the seat wants done-and-gated cards to keep their holder, that is a one-line carve-out and a ruling.issue-create.mjscarrypm:queueandpriority:*from the first minute): 22 in the last 4.5 h, 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 itself among them. That is the rule as written (「照未分诊首触;⛔ 不凭 actor」); the script does not read triage's audit comments, so a card already first-touched still lists until the window moves past it.package.jsonalias and a step in.github/workflows/lint.yml(Tier H), both outside this order's surface.check-self-test-wireddoes not flag it because no workflow runs the script. Carrier: the skills seat, as a follow-up.triage-duties.md(read every fire) now names the script.assign-only stroke throughdispatch.mjsreads its card and is refused onto a parked card, aslabel-write.mjsrefuses it on its own read (review round 1, S1).--sincethe sweep skips ⑤, so its verdict issweep PARTIALand its exit 4;CLEANand exit 0 need a complete walk on which all five ran (review round 1, S2).objectstack-ai/pluginsrepository #27287 and [Decision] Should remote-mode Turso get real transactions, so a metadata commit cannot half-land on hosted deployments (revisits #18063)? #32481 (triage's, after this lands). No card was relabelled.Verification
Size: 10 files, +874 / -29 (under the 3000-line line).
node scripts/pm/dispatch-gates.mjs --commandsderived 51 gate families for this diff; all 51 ran green at headd00151d4, after the lint closure was built under the build lock.dispatch-gates --ranreconciliation: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).node scripts/pm/first-touch-sweep.mjs --self-test(45 cases, 5 batteries) and the fleet-write execute self-test.Gate commands and exits (head d00151d)
Tier and governed readings
dispatch-gates --tier: MANDATORY contract-review tier (clause ①:.claude/skills/pm-dispatch/SKILL.mdis 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 fivescripts/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
CEILINGScomment.references/state-machine.md41 to 43 (+2): the stateless rule and the hold grade line. Every bullet already sits at its 120-byte minimum.references/landing-operations.md107 to 108 (+1): thePart ofpair became three lines.references/seat-lifecycle.md98 to 99 (+1): the stay-behind state.references/triage-duties.md101 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