Skip to content

fix(pm-dispatch): a hold is a Blocked-by line on the card, every patrol picks per card, and a card thread confirms CI started (#36203) - #36205

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

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

Conversation

@objectstack-fleet

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

Copy link
Copy Markdown
Contributor

Requested by Sales · project thread

repo:objectstack#1 · os-sales · session_01L6bhgXU3aQQzivgaDDU82c

Part of #36203 (items 1-5, the skill text; items 6-7, the scripts, stay on the card)

Clause-②: no
Metadata-protocol: none
Rule-change: ruled
Ruling-ref: 「同意五条都改」 — the maintainer's choice on the decision card 「同意按卡 #36203 的五条修改技能文字吗?」, 2026-11-22T07:25Z, ruling record 7075909669 on #36203

维护者速读

  • 以后席位决定"这张卡等 #N 之后再做"时,要在卡上写 Blocked-by: #N 并挂 pm:blocked,不能只记在记忆里。#N 一合入,现有的解锁扫描就会把卡放回可派。
  • 每轮巡查都要把手上车道和专题的卡逐张过一遍(card-pick --why),不再只在"报队列空"时才做。没有挡路理由的子卡当轮派出。
  • 卡线程每次推送后 10 分钟内要核对 CI 真的开跑了、PR 没冲突;冲突的 PR 根本不跑 CI,所以先合 main 再推。等 CI 必须设兜底提醒。席位每轮读每个在飞卡 PR 的状态,遇到 0 检查、冲突、2 小时无动静就叫醒线程。
  • 你 07:25Z 选了「同意五条都改」(裁决记录 7075909669),四个技能文件的字节上限按实测增量放宽。

What changes

  • references/filing-gate.md: the order between same-epic fleet cards is the later card's Blocked-by: line, not a preference listed on the epic card. This removes the contradiction with seat-lifecycle.md 56.
  • references/execution-duties.md: deciding "this waits for #N" writes Blocked-by: #N + pm:blocked on the card in the same stroke, never only in memory or a comment. The ③ status probe covers card threads as well as devs.
  • references/seat-lifecycle.md: card-pick.mjs --order <序> --why runs every patrol round over the lanes and epics the seat holds, not only when the seat reports an empty queue. A card with no hold reason is dispatched that round.
  • Item 3's second arm (a card that is not dispatched gets its reason written on the card) is not repeated in seat-lifecycle.md 90: it is execution-duties.md 49 (a hold is a Blocked-by: line + pm:blocked on the card, which then shows as a hold point in card-pick --why), and restating it would need bytes the ruled ceiling does not have.
  • references/dispatch-runbook.md (card-thread section), two lines: (1) within 10 min after a push, the thread confirms that Actions started and the PR is not dirty (a conflicting PR starts no pull_request workflow), else it merges origin/main and pushes again; a CI wait sets a send_later fallback of at most 30 min. (2) Each round, the seat reads pr-state.mjs for every in-flight card PR and wakes the thread that round on zero Actions 30 min after the push, dirty, or 2 h with no push and no report.

Why

The two misses on 2026-11-21, read in #36203: #35890 / #35892 sat undispatched for 3 h and 8 h after their blockers closed, because the hold lived only in memory. PR #35923 waited 15.5 h on a head with zero Actions runs (it was already dirty), and its thread and the seat each waited for the other.

Verification

  • node scripts/pm/check-skill-line-ratchet.mjs: green, 0 ✗. Ruling record 7075909669 orders the text; CEILINGS rows move by exactly the ruled deltas (dispatch-runbook 20070 → 20354, +284, the text itself +286 over main's 20068 because main sat 2 bytes under its old ceiling; execution-duties 20154 → 20277, +123 (main's own +6 raise, ruling 7073679594, landed first); seat-lifecycle 9070 → 9076, +6; filing-gate 9096 → 9101, +5), each row quoting the id. --self-test: 116 cases pass. Merging main (7971a71) took one byte of dispatch-runbook headroom that main had used (20067 → 20068), so one space in the new CI line is dropped to stay at the ruled 20354.
  • The only script touched is the ratchet's CEILINGS table. No workflow or published file changes. No changeset (nothing publishes; skip-changeset).

Human Minimum

  • 1. Schemas start as Zod; packages/spec holds no runtime logic. (No packages/spec change.)
  • 2. Every name I added uses the casing for its kind. (None added.)
  • 3. No formatter ran; pnpm lint passes. (Markdown only.)
  • 4. One issue, one branch off an up-to-date main, one pull request.
  • 5. A change that publishes carries a changeset. (Nothing publishes.)
  • 6. packages/spec touched: its generated artifacts are regenerated and committed. (Not touched.)
  • 7. No hand edits to content/docs/references/, packages/*/CHANGELOG.md or content/docs/releases/.
  • 8. Title, body and comments are in English. (The 维护者速读 section is the maintainer's Chinese summary.)
  • The Before Submitting list in CONTRIBUTING.md is done.

🤖 Generated with Claude Code

https://claude.ai/code/session_01L6bhgXU3aQQzivgaDDU82c

…ol picks per card, and a card thread confirms CI started (#36203)

- filing-gate: the order between same-epic cards is the later card's Blocked-by line, not a preference listed on the epic.
- execution-duties: deciding "waits for #N" writes Blocked-by + pm:blocked in the same stroke; the status probe covers card threads.
- seat-lifecycle: card-pick --why runs every patrol round over the seat's lanes and epics, not only when reporting empty.
- dispatch-runbook: after each push the thread confirms Actions started and the PR is not dirty; a CI wait sets a send_later fallback; the seat reads pr-state for every in-flight card PR each round.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L6bhgXU3aQQzivgaDDU82c
@objectstack-fleet
objectstack-fleet Bot requested a review from os-sales November 21, 2026 22:58
@github-actions github-actions Bot added the documentation Improvements or additions to documentation label Nov 21, 2026
@objectstack-fleet objectstack-fleet Bot added the skip-changeset PR has no user-facing published change; bypasses the changeset gate label Nov 21, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgXU3aQQzivgaDDU82c

Expected red, no push yet. Lint · repo & tooling gates fails only on the PM skill line ratchet step: the four edited files are over their byte ceilings by the measured deltas in the body (dispatch-runbook +284, execution-duties +123, seat-lifecycle +6, filing-gate +5). A raise needs the maintainer's ruling id, and the decision is with the maintainer now. When it lands, the ruling record goes on #36203 and one commit moves the four CEILINGS rows by exactly those deltas, quoting the id. Check Changeset is cleared by skip-changeset (nothing publishes).


Generated by Claude Code

…ling record 7075909669 (#36203)

dispatch-runbook +284, execution-duties +123, seat-lifecycle +6, filing-gate +5.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L6bhgXU3aQQzivgaDDU82c
…-ok94d8

# Conflicts:
#	scripts/pm/check-skill-line-ratchet.mjs
@github-actions github-actions Bot added size/s and removed size/xs labels Nov 22, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob

Posted 2026-11-22T07:44Z. The brief handed to the isolated rules-face reviewer for PR #36205 (CONTRACT_REVIEW_TIER). The record follows as its own comment.

Contract review brief — PR #36205 @ 7971a7122b631e3f2f966a37ac1593894169c200 (card #36203)

You review at CONTRACT_REVIEW_TIER. Render ONE ## Contract review record on this head — its shape is
node scripts/pm/record-recognisers.mjs --template --paths .claude/skills/pm-dispatch/references/dispatch-runbook.md .claude/skills/pm-dispatch/references/execution-duties.md .claude/skills/pm-dispatch/references/filing-gate.md .claude/skills/pm-dispatch/references/seat-lifecycle.md — with a PASS or FAIL verdict, and post it as ONE comment
on the PR or its card.

Inputs — these and nothing else:
· card #36203: its body and EVERY comment (rulings and earlier records included)
· the maintainer ruling record 7075909669 on #36203 (Sales 「同意五条都改」); the PR's Rule-change: and Ruling-ref: lines are judged against it, and against the diff hunk by hunk; the CEILINGS rows in scripts/pm/check-skill-line-ratchet.mjs are judged against the measured byte deltas the diff implies
· PR #36205: its body, its file list, and the net diff against main at 7971a7122b631e3f2f966a37ac1593894169c200
· the check-runs on 7971a7122b631e3f2f966a37ac1593894169c200: their conclusions ARE the gate verdicts
⛔ Not the dispatch order, ⛔ not the dispatching seat's own conclusions — this brief is adversarial by design.

Scope — the paths reviewFace returns as hits on this PR's file list: .claude/skills/pm-dispatch/references/dispatch-runbook.md, .claude/skills/pm-dispatch/references/execution-duties.md, .claude/skills/pm-dispatch/references/filing-gate.md, .claude/skills/pm-dispatch/references/seat-lifecycle.md;
plus every file IN THIS DIFF that directly implements or enforces them — the gate that enforces a rule, the code
a jsdoc or schema line describes, the validator a skill teaches — reviewed for agreement with the contract.
Widen it freely, ⛔ never below hits; the record's Scope: line names the implementing files apart from hits.
The rest of the diff (tests, unrelated modules, lockfiles, generated output, changesets) is the lane seat's
ACCEPT at TIER_DEFAULT, exactly as a standalone PR of those files.
④ judges the hits files and those implementing files ONLY:
lockfiles, generated output, changesets and prose elsewhere in the PR are not reviewed;
code outside the diff is READ to judge them, never reviewed.

Rule change — a hits path sits under .claude/**: the PR body declares Rule-change: and you verify it against the diff.
Write Rule-change-verified: none ONLY when no changed hunk alters what an agent may do without the maintainer
(merge, bypass a check, change repository settings), what gets done and in what order (grading, dispatch, scope), or
what must go to him (decisions, maintainer actions); process steps, scripts, wording, slimming and file moves are not rule
changes. Write ruled ONLY when every such hunk copies the ruling the PR body quotes on its Ruling-ref: line — check the
copy against the quoted words, do not re-rule it. Otherwise yes: the pull request then waits for the maintainer.

⛔ READ-ONLY. No worktree, no checkout, no build, no test run, no gate re-run, no ablation: the check-runs
on the head already answered every derived gate family, and a local run costs more than it returns.
If ONE probe is unavoidable, the record's Local-runs: line says probe — REASON; otherwise none.
Scratch space is /tmp/claude-0/-home-user/3d3cbaf6-4903-5fed-92d4-c2b94a45e868/scratchpad/pr-36205/ alone; nothing there you did not write this round is read.

Judge, in the record's own sections:
① Derived judgments — every accept-set and public-surface change the diff implies, each named right or wrong.
② Semver level — the changeset (or skip-changeset) matches what the diff publishes, and the Clause-②: line.
③ Boundary flags — every dev flag and every open_questions entry answered, or escalated.
On every face, SQL push-down: a new id materialisation or in-app join where SQL could push down is a
finding unless a reason is given (AGENTS.md, Prime Directive 5: SQL first).
④ Design judgment — for EVERY hits file: does the change hold against the code it cites and the
scenario it is accepted against? A skill file against the card's eval prompt and the spec it teaches
on main; a schema file against the ruling or ADR it implements and its first consumer; an ADR
against its first consumer and its execution plan. For EVERY implementing file in the diff: does the
code agree with the contract, sentence by sentence? Read the cited code in the live tree, and try to
break the design.
Grade each finding must-fix, should-fix or nit — a nit has no effect on correctness or the contract.
A must-fix is a FAIL; a must-fix or should-fix earns a delta review of its fix; nits alone end the round.
Spell a must-fix or should-fix with its id and grade, S1 (should-fix) — …, and a clean round as
No must-fix, no should-fix.: the queue guard reads a graded finding as OPEN on this head and
refuses the record; the delta record names those it closes by id alone, S1: closed.
A nit is fixed only on the prose faces, or left as an accepted deviation or a follow-up card: a fix
anywhere else moves the head, and this record no longer covers it.
⛔ Judge the tree, never the PR body's account of it.
Sign Implemented-by: with the dev's branch and Reviewed-by: with your session id — the value is the FIRST
thing after each colon.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgVdP6nEyftgTJapu6J

维护者速读

你同意的五条技能文字,这个 PR 都写进去了。四个文件的字节上限,每个都正好按你裁决里的数字抬高,没有多留余量。合并 main 时为了守住裁决的 20354,在一处「≤30 分钟」里删掉了一个空格,意思不变。
有一处请复核一并看:第 3 条卡上原话是「没有卡点的子卡当轮派发,或者把不派的理由写在卡上」,PR 只写了前半句。我读下来,后半句基本被第 2 条(等待必须写成卡上的 Blocked-by)和现有的暂停标签覆盖了,所以不挡,但正文应该说明一句,或者把后半句补回去。
L1 结论:通过。这是受管的技能文件,需要 os-zhuang 合并。

席位核对 — ACCEPT (L1-d) · repo:objectstack#1 · head 7971a712 · 2026-11-22T07:46Z

Face: four .claude/skills/pm-dispatch/references/*.md files + four CEILINGS rows in scripts/pm/check-skill-line-ratchet.mjs. 10+ / 7−. check-governed-merges --pr 36205: Tier H (.claude/**): os-zhuang's hand or approval, then the seat lands it. A Fable rules L2 runs in parallel; this is L1 only.

Gates at 7971a712: 26 success, 22 expected skip, 0 failed, 0 pending; mergeable clean. Part of #36203 right: items 6-7 (scripts) stay on the card, per the ruling's last sentence. check-skill-line-ratchet.mjs re-run on the head: green.

The five rule changes against the ruling (7075909669, card #36203 To do 1-5 "as proposed")

  1. filing-gate.md: 「次序偏好列在专题卡」 → 「先后只写后卡 Blocked-by:」. Matches item 1, and removes the contradiction with seat-lifecycle.md 56. ✔
  2. execution-duties.md 49 (new): 「定「等 #N」即同笔写卡 Blocked-by: #N+pm:blocked;⛔ 只记记忆或评论,无读者即漏派」. Matches item 2; "the target merging releases it through the existing scan" is already the unlock scan's job (seat-lifecycle.md 待命五项), so not restating it is right. ✔
  3. seat-lifecycle.md 90: 「每轮对所接车道与专题跑 card-pick.mjs --order <序> --why,报空即贴;无卡点即当轮派,⛔ 不得报空」. Matches item 3's first half. The second arm of item 3, "or its reason is written on the card", is not in the text (see S1). ⚠
  4. dispatch-runbook.md card-thread section, two new lines: the thread checks Actions started and not dirty 10 min after each push, else merges main and pushes again; every CI wait leaves a send_later ≤ 30 min; the seat reads pr-state.mjs for every in-flight card PR each round and wakes the thread on zero Actions 30 min after a push, dirty, or 2 h with no push and no report. Every trigger and number of item 4 is there. ✔
  5. execution-duties.md 177: the status probe now covers 「dev 与卡线程」. Matches item 5. ✔

Ceilings: each raise equals the ruled delta, no extra headroom

Measured with wc -c on origin/main (b3bcfefc side of the merge) and the head:

file main bytes / old ceiling head bytes / new ceiling ceiling delta ruling
dispatch-runbook 20068 / 20070 20354 / 20354 +284 20070 → 20354 (+284) ✔
execution-duties 20154 / 20154 20277 / 20277 +123 20148 → 20271 (+123), rebased on main's +6 (ruling 7073679594) ✔
filing-gate 9096 / 9096 9101 / 9101 +5 9096 → 9101 ✔
seat-lifecycle 9070 / 9070 9076 / 9076 +6 9070 → 9076 ✔

All four end at headroom 0. Each row's comment cites 7075909669 and quotes 「同意五条都改」; the existing provenance of the execution-duties and filing-gate rows is kept.

The main-merge resolution (your third check)

git show --remerge-diff 7971a712: the only hand edit in a skill file is dispatch-runbook.md 137, 「≤30 分钟」 → 「≤30分钟」 (one space). Why: the PR's text is +287 bytes over its old base fa304140 (20067 → 20354, the ruling's +284 plus the 3 bytes of headroom the file had then); main meanwhile grew the file +1 (#36213, e4f5e56c), so a clean merge would read 20355, one over the ruled ceiling. Trimming that byte keeps the ruled number. The conflict git reported was in check-skill-line-ratchet.mjs (main's own execution-duties +6 row); its resolution keeps both raises in one row. ✔

Findings (no hold)

  • S1 (for the seat and the Fable L2). Item 3 as ruled reads "A child with no hold reason is dispatched that round, or its reason is written on the card." The line keeps only 「无卡点即当轮派」. Read against the rest of the skill, the dropped arm is mostly subsumed: item 2 now makes every wait a Blocked-by: + pm:blocked on the card, and pm:blocked / pm:on-hold / open Blocked-by: are already 卡点 (the next line's vocabulary is "the candidate definition's inverse"). What it would still cover is a hold that is none of those. Either restore it (≈ +15 bytes, paid by deletion in the same file, since the ruled ceiling is +6), or say in the body that items 2 + the 卡点 vocabulary carry it. I do not hold the PR for it; the Fable L2 is the review of record on rule text.
  • N1. The body says the rows move "by exactly the measured wc -c deltas". For dispatch-runbook the file grew +286 over current main and the ceiling +284 (2 bytes were existing headroom); "exactly the ruled deltas, ending at headroom 0" is the accurate sentence.
  • N2. 「≤30分钟」 now sits beside 「10 分钟」 / 「30 分钟」 with a space in the same two lines. Cosmetic.

L1 never replaces L2. Tier H: os-zhuang.

Generated by Claude Code

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 7971a7122b631e3f2f966a37ac1593894169c200
Local-runs: none
Scope: .claude/skills/pm-dispatch/references/dispatch-runbook.md, .claude/skills/pm-dispatch/references/execution-duties.md, .claude/skills/pm-dispatch/references/filing-gate.md, .claude/skills/pm-dispatch/references/seat-lifecycle.md + scripts/pm/check-skill-line-ratchet.mjs
Rule-change-verified: ruled
Security-touching: no

Read for this record: card #36203 (body and its three comments, ruling record 7075909669 included), PR #36205 (body, the five-file list, the net diff against main, merge-base b3bcfefcb), and the check-runs on the head. Nothing was built, run or re-run.

① Derived judgments

  • Accept-set and public surface: none changes. The diff is four skill reference files under .claude/skills/pm-dispatch/references/ and four rows of the CEILINGS map in scripts/pm/check-skill-line-ratchet.mjs. No packages/** path, no schema, no workflow, no published skills/ file. Right.
  • Gate verdicts on the head, read from its check-runs: Lint · repo & tooling gates success (the PM skill line ratchet step lives there), Lint · PM dispatch-gates success, Lint · scoped · tooling self-tests success, PR-body guards success, Governed Surface Queue Guard success, Type Check · workspace success, Test Core success. No failed and no pending run; the skipped runs are the UI, docs-build and queue families this file list does not reach.
  • The ceilings, each judged against the bytes of the head tree (git show HEAD:path | wc -c) and of main:
    • dispatch-runbook.md: head 20354 B, row 20354. Row moves 20070 → 20354 (+284), the ruling record's own figure. The text itself grows +286 over main (20068 B); the two extra bytes are headroom the old row already held, so the raise stays within the ruled delta. Right.
    • execution-duties.md: head 20277 B, row 20277. Row moves 20154 → 20277 (+123). The ruling record names 20148 → 20271; main took +6 in between under ruling record 7073679594, and the row comment says so. Same ruled delta, +123. Right.
    • seat-lifecycle.md: head 9076 B, row 9076, +6 as ruled. Right.
    • filing-gate.md: head 9101 B, row 9101, +5 as ruled. Right.
    • Every raised row quotes ruling record 7075909669 and its delta, as the ratchet's raise discipline asks; no other row moved; headroom after the PR is 0 on all four.
  • Phrase pins held by scripts: card-pick.mjs pins three phrases of seat-lifecycle.md (LIFECYCLE_PHRASES) and five of execution-duties.md (DUTIES_PHRASES); all eight are still present on the head. Right.

② Semver level

Clause-②: no

Nothing publishes: no package source, no changeset needed, and the PR carries the skip-changeset label; Check Changeset is skipped on the head. The PR body's declaration (no, with metadata protocol none) matches the tree.

③ Boundary flags

  • Dev flags: the PR body raises one, that items 6 and 7 of the card (the check-half-states.mjs H12/H16 reading of claimed draft PRs, and the post-stamped.mjs refusal of a Claim body) are left on the card. Answered: the ruling record says in its own words that those two are not covered and stay as unruled script work; the PR says Part of #36203, not a closing keyword. Right.
  • open_questions: none filed on the PR or the card.
  • The claim comment on the card (2026-11-21T23:04:23Z) declared the rule change as yes pending a ruling; the ruling record landed at 2026-11-22T07:25:53Z and the PR body now declares ruled. The sequence is consistent; the claim is a dated statement, not a contradiction.
  • SQL push-down: not applicable, the diff holds no query, no id materialisation and no join.

④ Design judgment

Rule-change reading, hunk by hunk against the five items the ruling 「同意五条都改」 adopts (card #36203, To do 1-5). All five hunks change what gets done and in what order (dispatch and hold marking, patrol reads, wake duty), so none is not available; each is a copy of its item:

  • filing-gate.md line 20 — item 1. Old tail 「次序偏好列在专题卡」 becomes 「先后只写后卡 Blocked-by」. Copies the item, and now agrees with seat-lifecycle.md line 56 (「先后只写子卡」 the same line), which was the contradiction the card names. Holds.
  • execution-duties.md line 49 (new) — item 2. Deciding 「等 #N」 writes the blocker line plus pm:blocked on the card in the same stroke, never only memory or a comment. Copies the item. The item's last sentence (a merged target releases the card through the existing scan) is not restated and need not be: dispatch-runbook.md line 56 and SKILL.md line 118 already carry that scan on main, and card-pick.mjs reads the same line-start marker. Holds.
  • execution-duties.md line 177 — item 5. 「dev」 becomes 「dev 与卡线程」 in the ③ status probe. Copies the item. Holds.
  • seat-lifecycle.md line 90 — item 3. card-pick.mjs --order … --why now runs every round over the lanes and epics the seat holds, and a card with no blocking point is dispatched that round. Copies the item; --why and --order epic:#N,area:NAME exist in card-pick.mjs on the head. Holds, see N1.
  • dispatch-runbook.md lines 137-138 (new) — item 4. Thread: within 10 minutes of a push, Actions started and the PR not dirty, else merge main and push again; any CI wait keeps a send_later fallback of at most 30 minutes. Seat: each round reads pr-state.mjs on every in-flight card PR and wakes the thread that round on zero Actions 30 minutes after the push, dirty, or 2 hours with no push and no report. Every number and every trigger is the item's. Holds, see N2.
  • No hunk carries a rule the five items do not name: the added glosses (「冲突 PR 不起 CI」, 「无读者即漏派」, 「⛔ 互等」) are the card's own stated reasons, not new duties.

Attempts to break it:

No must-fix, no should-fix.

Nits, none of which changes correctness or the contract:

  • N1 (nit) — seat-lifecycle.md line 90 renders item 3's 「areas and epics」 as 「车道与专题」 and omits the item's second branch (「or its reason is written on the card」). The omitted branch is carried by execution-duties.md line 49 (a hold is written on the card, after which the card has a blocking point), and the batch bound two lines below still stands, so the pair reads as the item. Accepted deviation.
  • N2 (nit) — dispatch-runbook.md line 138 puts all three wake triggers after pr-state.mjs, which answers two of them (dirty; no check-run on the head). It prints neither the push time nor the last report, and it counts check-runs of every app, not Actions suites alone, so a head carrying only a non-Actions check-run would not read as empty. The ruling names that script itself, and card item 6 is the script-side reader. Follow-up belongs with item 6 on the card.
  • N3 (nit) — SKILL.md line 81 (outside the diff) still points at 「逐卡表见 references/seat-lifecycle.md」; the words 「逐卡表」 no longer appear in that file, though the line it points to is still there and still the per-card pass. A wording touch for the next edit of SKILL.md.

Implemented-by: claude/project-thread-ok94d8
Reviewed-by: session_01L6bhgUkbQqRUUFSiu2HGob

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob

Seat landing · 2026-11-22T07:49Z · #36203 (why cards were missed in dispatch), the skill fix the maintainer ruled 「同意五条都改」 (record 7075909669). Five rule changes go into four pm-dispatch references:

  • Every "after #N" hold is a card-body Blocked-by: plus pm:blocked.
  • A patrol reads the PR state of every in-flight card PR.
  • A hold carries its reason on the card.
  • CI must be seen to start after each push.
  • The claim rides with its labels.
    Four ratchet ceilings rise by the ruled deltas.

Reviews:

  • L1-d: ACCEPT 7076122358 on this head. S1 (no hold): item 3's second arm lives in execution-duties.md:49, not repeated at seat-lifecycle.md:90 because the ruled ceiling has no bytes for it. That is now written in the body. N1, reword to "ruled deltas", is done in the body.
  • Contract L2 (rules face, CONTRACT_REVIEW_TIER): PASS 7076124376 on this head, No must-fix, no should-fix., Rule-change-verified: ruled. Nits N1–N3 are left as nits; N2 (pr-state.mjs answers two of the three wake triggers) belongs with the card's item 6.

Gates on this head (7971a712):

The seat readies this PR and arms auto-merge in the same step. The PR carries Part of #36203.

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 22, 2026 07:50
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 22, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob

Correction · 2026-11-22T07:51Z · to the seat landing 7076150210: its summary list of the five rule changes was wrong. The reviews, gates and the landing are unchanged. The five changes are card #36203's to-do items 1–5:

  • Ordering between same-epic cards is the later card's Blocked-by: line (filing-gate.md).
  • Deciding "this waits for #N" writes Blocked-by: #N and pm:blocked on the card in one stroke (execution-duties.md).
  • Every patrol round runs card-pick --why over the seat's areas and epics (seat-lifecycle.md).
  • A card thread confirms CI started after a push and sets a fallback wake, and the seat reads pr-state.mjs for every in-flight card PR (dispatch-runbook.md).
  • The status probe covers card threads as well as devs (execution-duties.md).
    The claim-label stroke the landing listed is not in this PR; it is to-do item 7.

Merged via the queue into main with commit 3faabd2 Nov 22, 2026
53 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/project-thread-ok94d8 branch November 22, 2026 08:32
247257110 pushed a commit to 247257110/objectstack that referenced this pull request Nov 22, 2026
… isolated L2 beside its L1; a dispatch order missing its derivation is sent back (objectstack-ai#35813) (objectstack-ai#36213)

<!-- claude-projects-attribution: {"github_login":"zhuangjianguo"} -->
_Requested by **Steedos** · [project
thread](https://claude.ai/code/project/chan_018ETKaNwMZCNRYD7D8Q9Ubb?thread=cmsg_018ETKaNwMZCNRYD7D8Q9UbbCxiFE11rsKwyNffJZKYqJs)_

Fixes objectstack-ai#35813
Part of objectstack-ai#35905 (its item 2 and the `os-dev.md` mirror land here; items 1
and 3, the two project-memory lines for `references/project-forms.md`,
are carried on branch `claude/issue-35905-project-forms-lines`, see "Not
in this PR")

Clause-②: no
Metadata-protocol: none
Rule-change: ruled
Ruling-ref: 7035727071 — the maintainer's words 「已经决定了,不是试 3 张 p1 卡,是所有
p1 都按照新规则执行」, seat thread, 2026-11-20T09:22:50Z, for the p1 hand-back
lines; 7046610679 — the maintainer's answer 「同意,立卡派发」, cost-review
thread, 2026-11-20T09:07:52Z, to 「如果确保协调者严格按照技能执行,之前有犯错,协调者用了项目记忆」, for
the missing-derivation line and its mirror; each transcribed as the
ruling record on its card

## 维护者速读

- 用户无感;车队内部:p1
卡由卡线程交回后,审核线程做普通审核的同时就起独立的契约审核,两份意见一起回到座位,不再一前一后各等一轮;派发令缺少档位或投入度的推导时,接令的线程或分区不开工并退回座位。
- 为什么做:你裁定所有 p1 卡都按精简流程走,并同意把「协调者严格照技能执行、不凭项目记忆」写进技能;这里是照这两条裁决抄写的规则文字。
- 出错会怎样:只影响车队内部的审核路由与派发文字,最坏是一张 p1 卡的两级审核仍然一前一后,或一张派发令被多退回一次,随时可整段撤回。
- 要你做什么:无;另有两条关于项目记忆的规则因所在文件的字节上限已满没有写进这次改动,座位会另行向你呈报。

## What changes

Four governed files under `.claude/`, internal only (nothing publishes).
Every added line copies one of the two rulings above; every deleted
fragment is a restatement whose fact keeps a home elsewhere (cut list
below). No ceiling row moves.

**The p1 hand-back path (ruling record 7035727071)**

1. `references/contract-review.md`, who runs L2. New line under the
existing `谁跑 = 派发席` line:
   - `` - p1 卡线程卡交回且欠 L2 ⇒ L1 线程起隔离 L2 子代理,与其 L1 并行,两份意见同回席。 ``
2. `references/contract-review.md`, the adoption line. The seat adopts
the L1 thread's sub-agent record exactly as it adopts a card thread's,
so the brief, the `Scope:` check, the independence pair and the tier
evidence read as before.
   - Before: `` - 卡线程隔离子代理照上落现 head 记录并贴简报 ⇒ 席核简报、… ``
   - After: `` - 卡线程或 L1 线程隔离子代理照上落现 head 记录并贴简报 ⇒ 席核简报、… ``
3. `references/dispatch-runbook.md`, card-thread section, the roles
line: the thread builds itself.
   - Before: `` …;线程实施、开 draft PR、驱动 CI 与可合并。 ``
   - After: `` …;线程自己实施、开 draft PR、驱动 CI 与可合并,⛔ 不起 `os-dev` 子代理。 ``
4. `references/dispatch-runbook.md`, card-thread section, the same
hand-back path in one line, directly under the roles line:
- `` - p1 卡交回且欠 L2 ⇒ L1 线程并行起 L1 与隔离 L2(`contract-review.md`),两份意见同回席。
``
5. `references/area-lease.md`, the L1 thread lines of 〈分不分区,动态定〉. This
is where the L1 thread's duties live: there is no `lanes/l1-review.md`,
and `l1-review-checklist.md` holds the L1 criteria, not who starts what.
New line:
   - `` - p1 卡线程卡交回且欠 L2 ⇒ L1 线程并行起隔离 L2 子代理(`contract-review.md`)。 ``

**A dispatch order missing its derivation (ruling record 7046610679,
item 2 of that card)**

6. `references/dispatch-runbook.md`, card-thread section, new line under
the line that says the order carries the tier, the effort and their
derivation:
   - `` - 线程或区见令缺推导 ⇒ 不开工,退回席位;⛔ 不凭记忆补档位。 ``
7. `.claude/agents/os-dev.md`, 〈何时停手不写码〉, the mirror a card thread
reads, scoped to the ruled subject (a card thread or an area), so an
ordinary sub-agent or cloud dev is not bound by it:
   - `` - 卡线程或区:派发令缺档位或 effort 的推导 ⇒ 不开工,退回席位;⛔ 不凭记忆补档位。 ``

**Cut list (bytes paid in the same file; each fact keeps a home)**

| # | File | Cut text | Bytes | Where the fact still lives |
|---|---|---|---|---|
| 1 | `contract-review.md` (section heading) | ``(按面;L2 席章程见
`lanes/l2-review.md`)`` | 45 | 按面: the file's title and its first rule
line (`欠不欠按面判`). The charter pointer: SKILL.md lane table, `l2-review`
row; the routing line of the same section (``请谁照 `lanes/l2-review.md`
``). Scripts cite the heading as 〈L2 归属与资格〉, which still matches |
| 2 | `contract-review.md` (prose-face sentence) | `:派发席按本席档在 ACCEPT
逐句对照 diff 核,ACCEPT 点名所核句` | 77 | `l1-review-checklist.md` 〈范围与
changeset〉 (`逐句核 diff,ACCEPT 点名所核句,⛔ 不起子代理` for the same three prose
faces); SKILL.md 〈审核两级〉 (L1 stays with the lane). The sentence it ended
keeps `散文面 ⛔ 不在其列` |
| 3 | `dispatch-runbook.md` (patrol line) | `;PASS 同笔摘标记、FAIL 不摘` | 35 |
`contract-review.md` 〈等 L2 标记〉, the 摘 line; the patrol line keeps its
pointer to that file |
| 4 | `dispatch-runbook.md` (disclosure line) | ``;卡线程照计 `batch` `` | 24
| SKILL.md entry table, `batch` row (one slot = one running sub-agent or
card thread) |
| 5 | `dispatch-runbook.md` (claim line) | `;线程核对最新认领指向本分支方开工` | 49 |
AGENTS.md, Multi-agent discipline, claim paragraph (a dispatched
executor verifies the newest claim names its branch and stops on a
mismatch) |
| 6 | `dispatch-runbook.md` (whole line) | `- 线程只能推指定分支是实测平台例外,认领如实写。` |
70 | `os-dev.md` rule 1 (`卡线程分支由平台指定、harness 推送`); the two lines above
it in the section (the coordinator reads the thread's branch, the seat's
claim carries that `Branch:`) |
| 7 | `dispatch-runbook.md` (derivation line) | ``:`--tier`
过路径,MANDATORY 即绑;effort 按难度`` | 53 | `execution-duties.md` dispatch
section (强制条款①; `effort 按卡难度定`); `coordinator.md` 四 (``档位引
`dispatch-gates --tier`,effort 按卡难度``); SKILL.md claim template (the
`Container & model` line quotes the `--tier` output and its MANDATORY
path line). The next line keeps ``推导(`--tier` 行或难度读数)`` |
| 8 | `area-lease.md` (L1 thread line) | ``;`lanes/l2-review.md` 席规不及它``
| 37 | SKILL.md 〈审核两级〉 (`L2 规则不及 L1`; the L2 seat's rules govern the L2
seat only) |
| 9 | `area-lease.md` (L1 request line) | `;信箱只留跨账号或跨项目` | 34 |
`lanes/l2-review.md` 路由, the same clause verbatim for requests to an L1
or L2 seat |
| 10 | `area-lease.md` (claim line) | ``;`Branch:` 照 AGENTS.md 命名`` | 31
| AGENTS.md, Multi-agent discipline §2 (branch naming) |
| 11 | `os-dev.md` (rule 1) | `(PreToolUse 钩子会拦)` | 25 | AGENTS.md Prime
Directive 11 (the two PreToolUse hooks) |
| 12 | `os-dev.md` (PR subscription line) | `,仍以本文件为准` | 22 | the head
of the same sentence (`本派发契约压过平台注入的 PR 订阅姿态`) |
| 13 | `os-dev.md` (footer line) | `耐久归属写进正文散文或评论,⛔ 不循环重贴页脚;` | 66 |
AGENTS.md, attribution footer paragraph (durable attribution lives in
body prose or a comment; never re-send a body that already carries an
appended footer). The line keeps its pointer to that paragraph |

**Ratchet readings** (`node scripts/pm/check-skill-line-ratchet.mjs`; no
ceiling or pin row touched, declared cross-file moves 0)

| File | Before (bytes / ceiling / headroom) | After (bytes / ceiling /
headroom) | Added / cut |
|---|---|---|---|
| `references/contract-review.md` | 6416 / 6419 / 3 | 6418 / 6419 / 1 |
+124 / −122 |
| `references/dispatch-runbook.md` | 20067 / 20070 / 3 | 20068 / 20070 /
2 | +232 / −231 |
| `references/area-lease.md` | 6586 / 6586 / 0 | 6584 / 6586 / 2 | +100
/ −102 |
| `.claude/agents/os-dev.md` | 38846 / 38848 / 2 | 38846 / 38848 / 2 |
+113 / −113 |
| `references/project-forms.md` | 4669 / 4669 / 0 | untouched | — |

## Not in this PR

Items 1 and 3 of the second card (the two project-memory lines for
`references/project-forms.md`) are not here: that file is at headroom 0
and is untouched by this PR. The seat carries that half on branch
`claude/issue-35905-project-forms-lines`, under its reading on that card
(record 7071003039).

## Tests

Text-only change to four internal instruction files; no package and no
test target. Gates below.

## Acceptance notes

- No changeset: `.claude/**` is on the fast path of files that publish
nothing; `skip-changeset` rides this create.
- `.claude/**` is governed. This PR stays draft for the seat's
contract-review record at `CONTRACT_REVIEW_TIER`, which must read
`Rule-change-verified: ruled`. The dev knocks nobody.
- "Brief still posted": the brief, the independence pair and the tier
evidence are carried by extending the existing adoption line to the L1
thread's sub-agent, so they are the same sentences as before. That
line's wording `落现 head 记录并贴简报` is not reordered; the brief template
itself says the brief is posted beside the record for the seat to read
before it adopts.
- "No `os-dev` sub-agent" is written for every card thread, not only p1:
the section already calls the card thread the dev (`coordinator 调度卡线程(即
dev)`, `线程实施`), so the clause states what the section meant, and the
ruling orders it for p1.
- The hand-back line sits under the roles line, not under the `交回:`
line, because open draft PR objectstack-ai#36205 inserts two lines at that point;
`overlap-check` now reads clean against it. That PR also adds bytes to
`dispatch-runbook.md`, which lands here at headroom 2, so whichever
lands second pays again.
- The tool text printed by `record-recognisers.mjs --brief-template`
names a card thread as the one handing the brief to its isolated
sub-agent; it does not yet name the L1 thread. Noted, not changed:
scripts are outside this card's file surface.
- Base: the branch was cut at `cbd582f4` (the dispatch order named
`fa304140`; `origin/main` had moved). `git diff --stat fa30414 cbd582f
-- .claude scripts/pm` is empty, and so is the same reading from the
branch base to `origin/main` at `1d060265`, so no merge of `main` was
taken before opening.
- Fix round 1 (review record 7071038753, S1): the `os-dev.md` mirror
line named no subject and so read as binding every dev that reads the
file; it now names the ruled subject, 16 bytes inside that file's
headroom. No other text changed. `origin/main` at `99fbaa6d` had moved
`area-lease.md` and the ratchet table, so `main` was merged (clean)
before the push; the four files measure the same after the merge and no
ceiling row of theirs moved.

## Verification

First files to read, by risk:

1. `references/contract-review.md`: the new p1 line under `谁跑`, the
adoption line, and the two cut hunks at the top of the file (the heading
and the prose-face sentence).
2. `references/dispatch-runbook.md`, card-thread section: the derivation
pair (cut 7 and the new line under it), the roles line and the hand-back
line.
3. `.claude/agents/os-dev.md` 〈何时停手不写码〉: the mirror line.

Two-minute check: `node scripts/pm/check-skill-line-ratchet.mjs | grep
-E 'contract-review|dispatch-runbook|area-lease|os-dev' | grep ceiling`
prints the four files at 20068, 6418, 6584 and 38846 bytes under
ceilings 20070, 6419, 6586 and 38848, every line ticked.

<details><summary>Local gates at head 1b94ad0 (re-run after the fix
round and the merge of main)</summary>

Derived with `node scripts/pm/dispatch-gates.mjs --commands --repo
objectstack-ai/objectstack` (26 commands); reconciled with `--ran`: `26
derived famil(ies) accounted for — 26 run, 0 NOT-MEASURED (a DERIVED
zero — all 26 recorded an exit code and none of them is 3)`.

- exit 0: `check-closing-keyword-parity` (and its `--self-test`),
`check-comment-mask-corpus`, `check-governed-queue-guard --self-test`,
`check-harness-current --self-test`, `check:adr-anchors`,
`check:agent-model-declared`, `check:agent-test-spelling`,
`check:commit-card-trailers`, `check:cross-package-test-inputs`,
`check:doc-authoring`, `check:driver-memory-census`,
`check:gitlink-declared`, `check:nul-bytes`, `check:pm-expected-skips`,
`check:pm-governed-merges`, `check:pm-label-write`,
`check:pm-prior-rulings`, `check:pm-record-recognisers`,
`check:pm-settings-deny-roster`, `check:pm-skill-id-lint` (`131 file(s)
clean`), `check:pm-skill-ratchet`, `check:refd-timer-probe`,
`check:skill-frame-sync`, `check:watch-hint-literal`.
- `check:doc-formula-expressions` (lint package): exit 0, run after
`turbo run build --filter=@objectstack/formula
--filter=@objectstack/lint` under the verify lock (`VERDICT command-exit
0`); without that build it exits 3, prerequisite not met.
- Outside the derivation: `check:skill-frame-freshness` exit 0 (local
reading: `1/1 framework files are byte-identical to the ref`);
`check:pm-governed-prose` exit 0.
- `node scripts/pm/overlap-check.mjs
--branch=claude/issue-35813-lean-review-and-memory-rules`: `VERDICT
clean exit 0` (merges cleanly with `origin/main` at `99fbaa6d18` and
with the two open PR heads that share a file, objectstack-ai#36215 on `os-dev.md` and
objectstack-ai#36205 on `dispatch-runbook.md`).

</details>

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

<!-- signed: repo:objectstack#7 · zhuangjianguo ·
session_01QsR2jTeURPvEm465RcoYEC -->

---------

Co-authored-by: Claude <noreply@anthropic.com>
247257110 pushed a commit to 247257110/objectstack that referenced this pull request Nov 22, 2026
…er is derived, effort tops at high (objectstack-ai#36376)

<!-- claude-projects-attribution: {"github_login":"zhuangjianguo"} -->
_Requested by **Steedos** · [project
thread](https://claude.ai/code/project/chan_018ETKaNwMZCNRYD7D8Q9Ubb?thread=cmsg_018ETKaNwMZCNRYD7D8Q9UbbCxiFE11rsKwyNffJZKYqJs)_

repo:objectstack#7 · zhuangjianguo · session_01QsR2jSQkebczqNyjnNrLRH

Part of objectstack-ai#36358 (items 1-10, the ruled copy; items 11-15, the five new
rule lines the maintainer approved as Q13, stay on the card for a second
pull request)

Clause-②: no
Metadata-protocol: none
Rule-change: ruled
Ruling-ref: 「要把规则文字同统一整理一下,避免散落在各处,避免ai犯错」 — the maintainer, project
thread, 2026-11-22T07:47Z (Q10 of ruling record 7076315104 on objectstack-ai#36358,
which holds Q1-Q13 verbatim; its addendum 7076338827 holds Q14)

## 维护者速读

- 用户无感:这是车队内部规则文字的整理,档位和 effort 的取值从十几个文件收到一处,其他文件只留指向它的一句话。
- 为什么做:有两张派单把「改产品契约」读成了「要用最高档开发」;现在写明只有改车队自己规则的卡才用最高档开发,effort 最高用
high,更高的只留 ADR 修订和高危安全修复的对抗复核两处。
- 出错会怎样:席位派单时档位或 effort 可能取错,表现为某张卡开错档;撤回本次合并即可恢复原文,不影响产品和用户数据。
- 要你做什么:无。

## What changes

One section now holds every tier and effort value: `### 定档` at the end
of the dispatch section of
`.claude/skills/pm-dispatch/references/execution-duties.md`. Every other
file points at it and states no value.

**The home, read top to bottom**

- Lines 1-3 answer the question that was misread (items 1 and 3; Q1,
Q8). A card is built at the ceiling tier for two reasons only:
`dispatch-gates.mjs --tier` prints a MANDATORY line for its paths, or
the maintainer's own words name it. Size, difficulty, heavy process,
doubt, p1, the `security` label and a product-contract change are named
as non-reasons. A product-contract card (`Clause-②: yes`, a
`Metadata-protocol` kind, a `packages/spec/src/**` path) is built at the
default tier; those three signals decide whether a card thread opens and
which L2 review is owed, never the build tier.
- Clause ① and the mandated set are re-laid, not changed (Q8): the four
surfaces, the one-line-class exit, its absence for `skills/**` and
`docs/adr/**`, the compensating L2 review, the two quota exits, no
downgrade for a missing grant. The term 协议语义面 is renamed 车队规则面, with the
old name kept beside it and a clause saying it never means the product
protocol or a product contract (item 10).
- By role (item 8a): seat sessions, the director seat (tier only; no
effort row, the card orders it left out), decision threads, card
threads, area threads, sub-agents.
- Effort (item 5; Q2-Q6, Q9, Q12): S, nit and text cards `medium`; M, L
and XL `high`; L2 review, design re-read, red-line re-read and the
four-axis decision analysis `high`; a medium-severity security change
`high`. `high` is the top. Above it only two cases: an ADR revision (the
standing order, unchanged), and the read-only adversarial review of a
high-severity security change, whose value is passed to that sub-agent
and never claimed. That case is graded by consequence whatever its
carrier (Q4 and Q12 name no carrier).
- Gone: the unattended-over-30-minutes and measured-gain exits to the
higher effort, and the top effort level by name or standing order. The
measurement line now chooses among `low`, `medium`, `high`.

**Former restatements and the pointer that replaced each (item 9)**

| File | Was | Now |
|---|---|---|
| `references/coordinator.md` 四 | its own tier sentence for 协议语义面 cards
| "values live only in the home; the coordinator opens the thread as the
order says" |
| `references/coordinator.md` 五 | decision thread at the ceiling, effort
stated | pointer to the home |
| `references/decision-analysis.md` | decision-thread tier and effort,
the named-only top level | pointer; plus the Q14 line (below) |
| `references/dispatch-runbook.md` | probe tier, long-thread reader
tier, scope-review agent tier, "the `--tier` line or the difficulty
reading" | no tier words; the contract line says the three signals only
decide whether a thread opens; the order quotes the `--tier` line for
the tier and the difficulty reading for effort (item 2) |
| `references/seat-lifecycle.md` | seat-session effort value | pointer |
| `references/area-lease.md` | thread effort value, option-set review
tier | pointer |
| `references/triage-duties.md` | triage sub-agent tier | no tier word
(the invariant line in `SKILL.md` names the home) |
| `references/lanes/l2-review.md` | seat-session tier and effort |
pointer (the account-capability sentence stays: it is a seating
condition, not a value) |
| `references/lanes/security.md` | review-agent tier | pointer |
| `references/lanes/skills.md` | "the pm-dispatch root is always the
ceiling" (wrong for `references/**`) | pointer |
| `references/lanes/server.md`, `lanes/spec.md` | pointers to a table
`SKILL.md` does not hold | pointer to the home |
| `references/filing-gate.md`, `.claude/agents/os-dev.md` |
"ceiling-tier decision thread" | "decision thread" |
| `references/readings-session.md` | the no-downgrade rule restated |
pointer |
| `references/seat-post-protocol.md` | "pick the tier by duty" | pointer
|
| `.claude/skills/pm-dispatch/SKILL.md` | triage default tier; "ceiling"
before decision thread, twice; the director-tier rule | one invariant
line naming the home; the director line keeps only its ledger duty |
| `SKILL.md` claim template, effort slot (item 6) | four levels, with
timing and measured-record citations | `medium` or `high` by difficulty;
the higher level only for an ADR revision; a security change claims
`high` and the review value goes to the sub-agent only |
| `.claude/skills/checklist-test/SKILL.md` (item 7) | its sentence
naming the higher level | "anything higher follows the pm-dispatch
home"; its own QA-runner values stay |
| `docs/qa/platform-checklist/RUNNER.md` | the security effort values
restated in a parenthesis | pointer to the home |

- `os-dev.md` keeps its front-matter and the one line a card thread acts
on without reading the skill (an order with no derivation is sent back),
now pointing at the home for values.
- One line is deleted from `dispatch-runbook.md` to pay bytes: "a thread
or area that sees an order with no derivation does not start". The same
rule stays in `os-dev.md`, which every thread and area reads.
- `contract-review.md` is untouched: it keeps the review tier by face,
and the home points at it.

**Q14 (addendum 7076338827)**, built in as the order says:
`decision-analysis.md` gains one line. A simple question, one whose
answer no ruling, pull request or other seat will cite, still gets the
at-tier independent analysis first and is then asked in chat, and need
not be written as a file or a decision card (the ruling's own modality,
「不一定」); a question whose answer will be cited is recorded on a card as
before. `SKILL.md` says the exception on each of the three lines of
〈升级与决策〉 it qualifies: "card before the prompt" (277), "do not ask the
maintainer in your own session" (280) and "a ruling is put only through
the director seat and decision threads" (284).

**Review round, folded in at this head**: the L1 item (the "card before
the prompt" line contradicted Q14) and the contract review's S1 (the
same section, lines 277 and 284), N1 (the chat-question line copies the
ruling's modality), N3 (the named effort cases again say they win over
the size line, as main's text did), N5 (a pointer in `triage-duties.md`
that named no file is dropped) and N6 (three ratchet row comments). N2,
N4 and N7 were accepted as they stand; N7 is met anyway, since the
invariant line no longer says "nowhere else". The L1 nit on the clause-②
line of the dispatch section is left: the card says those lines stay as
they are.

## Why

Orders for two cards on 2026-11-22 named the ceiling tier for the build
because the cards changed a product contract. The rule text never said
that, but it was spread over more than a dozen files that disagreed, and
one sentence used 协议 for the fleet's own rule files while the same word
names the product protocol elsewhere. The maintainer ordered the text
into one place (Q10) and set the effort scale (Q2-Q6, Q9, Q12).

Two earlier readings are superseded here, both by the maintainer's later
words: the red-line re-read moves to `high` (Q3; it was set higher by
decision 二 of ruling record 7024443457, landed by objectstack-ai#36254), and the
long-unattended and measured-gain exits that objectstack-ai#35270 had left standing
are removed (Q5). objectstack-ai#36267 (the adversarial review keyed on the advisory
carrier only) is folded in: the home keys it on consequence. One
follow-up is filed and not part of this diff:
objectstack-ai/hotcrm#2738, whose `AGENTS.md` still states the old
review effort.

## Tests

No test file changes: the diff is rule text and the ratchet's `CEILINGS`
rows. No self-test row changes outside
`scripts/pm/check-skill-line-ratchet.mjs`.
`scripts/pm/dispatch-gates.mjs` and `dispatch-gates.data.mjs` are not
touched.

## Acceptance notes

- `git grep -n -E 'xhigh|\bmax\b'` over `.claude/skills/pm-dispatch`,
`.claude/agents/os-dev.md`, `.claude/skills/checklist-test/SKILL.md` and
`docs/qa/platform-checklist/RUNNER.md` returns five lines: three in the
home (the ADR-revision rule, the security adversarial review, the 拿不准
prohibition), the `SKILL.md` claim template's effort slot, and
`os-dev.md` 93, which is the Node flag `--max-old-space-size`, not an
effort level.
- The home's first three lines, read alone, answer "does a
`packages/spec/src/**` card build at the ceiling?" with no.
- `dispatch-gates.mjs --tier` on `SKILL.md` and `os-dev.md` prints the
same MANDATORY rows as on main; the tool is byte-identical.
- No skill line carries a card number, a comment id or a dated
quotation; the sources are in this body and in the ratchet's row
comments.
- Tier and effort words that remain outside the home, each on purpose:
`checklist-test/SKILL.md` keeps its QA-runner values (item 7);
`SKILL.md` keeps the claim template's spelling of the two slots and one
`TIER_DEFAULT` in a review-routing pointer; `lanes/l2-review.md` keeps
the account capability; `readings-session.md` keeps one measured fact
about Routine seats.

## Verification

**Bytes** (`node scripts/pm/check-skill-line-ratchet.mjs`, exit 0 at the
head; main is ed33f8a, which holds the four rows objectstack-ai#36205 raised, and
the deltas below are measured on top of them)

| File | main | head | delta | ceiling row |
|---|---|---|---|---|
| `execution-duties.md` (the home) | 20272 | 22158 | +1886 | 20277 →
22158 (+1881), raised by ruling record 7076315104 (Q10); the other 5
bytes are headroom main's row already had |
| `decision-analysis.md` | 4892 | 5023 | +131 | 4892 → 5023, raised by
addendum 7076338827 (Q14) |
| `SKILL.md` | 33865 | 33881 | +16 | 33872 → 33881 (+9), raised by
addendum 7076338827 (Q14: the exception on lines 277 and 284); the other
7 bytes are headroom main's row already had |
| `coordinator.md` | 4265 | 4230 | -35 | lowered to 4230 |
| `readings-session.md` | 4874 | 4828 | -46 | lowered to 4828 |
| `filing-gate.md` | 9101 | 9089 | -12 | lowered to 9089 |
| `dispatch-runbook.md` | 20354 | 20344 | -10 | lowered to 20344 |
| `lanes/skills.md` | 2666 | 2656 | -10 | lowered to 2656 |
| `seat-lifecycle.md` | 9076 | 9070 | -6 | lowered to 9070 |
| `triage-duties.md` | 13559 | 13544 | -15 | lowered to 13544 |
| `lanes/l2-review.md`, `lanes/security.md`, `lanes/server.md`,
`checklist-test/SKILL.md` | | | -2 each | lowered to the landed size |
| `os-dev.md` | 38845 | 38846 | +1 | 38848, unchanged |
| `area-lease.md`, `lanes/spec.md`, `seat-post-protocol.md` | | | 0 |
unchanged |

The home's raise of +1881 is the measured cost of the section: it takes
in the role, sub-agent and decision-thread values that lived in ten
other files, and spells out lines 1-3 and the renamed term so that no
line needs a second file to be read. The three raised rows quote their
ruling ids in the row comments. `docs/qa/platform-checklist/RUNNER.md`
has no ratchet row (88986 → 88872).

**Gates** (head bc2415b, which merges main ed33f8a and carries the
review round): the 51 commands `dispatch-gates.mjs --commands` derives
for this diff all exit 0, each code captured before any pipe.
`dispatch-gates.mjs --ran` reads the record as "51 derived, 51 run, 0
NOT-MEASURED, 0 UNRUN". `check:doc-formula-expressions` needs `turbo run
build --filter=@objectstack/formula --filter=@objectstack/lint` first
(run under the verify lock; without it the gate exits 3, nothing
measured). The phrase-pin self-tests the card names (`card-pick.mjs`,
`check-prior-rulings.mjs`, `fleet-roster.mjs`, `label-write.mjs`) exit
0. `overlap-check.mjs` at this head: clean, no open pull request shares
a file. Two merges of main: the first took one conflict, in the
ratchet's rows only (the four rows objectstack-ai#36205 raised are re-measured on top
of its values); the second was clean.

**Read first** (by risk)

1. `references/execution-duties.md`, the `### 定档` section: lines 1-7
(the ceiling's two reasons and the mandated set) against Q8. A change in
meaning there is REWORK.
2. `SKILL.md` 277, 280 and 284: the Q14 exception, said on each line it
qualifies (review finding S1 of the contract review and item 1 of the L1
review, both folded in), and the 9-byte raise of that file's row.
3. `references/dispatch-runbook.md` 122-127: the contract line, the
derivation line, and the deleted third line.

**Two-minute check**: run `git grep -n -E 'xhigh|\bmax\b' --
.claude/skills/pm-dispatch .claude/agents/os-dev.md
.claude/skills/checklist-test/SKILL.md
docs/qa/platform-checklist/RUNNER.md` and expect the five lines listed
above.

## Human Minimum

- [x] 1. Schemas start as Zod; `packages/spec` holds no runtime logic.
(No `packages/spec` change.)
- [x] 2. Every name I added uses the casing for its kind. (None added.)
- [x] 3. No formatter ran; `pnpm lint` passes. (Markdown and one data
table.)
- [x] 4. One issue, one branch off an up-to-date `main`, one pull
request.
- [x] 5. A change that publishes carries a changeset, and both
declaration lines are filled in here and in the changeset. (Nothing
publishes; `skip-changeset`.)
- [x] 6. `packages/spec` touched: its generated artifacts are
regenerated and committed. (Not touched.)
- [x] 7. No hand edits to `content/docs/references/`,
`packages/*/CHANGELOG.md` or `content/docs/releases/`.
- [x] 8. Title, body and comments are in English. (The 维护者速读 section is
the maintainer's Chinese summary.)
- [x] The *Before Submitting* list in CONTRIBUTING.md is done.

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

https://claude.ai/code/session_01QsR2jSQkebczqNyjnNrLRH

<!-- signed: repo:objectstack#7 · zhuangjianguo ·
session_01QsR2jSQkebczqNyjnNrLRH -->

---------

Co-authored-by: Claude <noreply@anthropic.com>
247257110 pushed a commit to 247257110/objectstack that referenced this pull request Nov 22, 2026
…ses a lone Claim: comment (objectstack-ai#36434)

<!-- claude-projects-attribution: {"github_login":"zhuangjianguo"} -->
_Requested by **Steedos** · [project
thread](https://claude.ai/code/project/chan_018ETKaNwMZCNRYD7D8Q9Ubb?thread=cmsg_018ETKaNwMZCNRYD7D8Q9UbbCxiFE11rsKwyNffJZKYqJs)_

Fixes objectstack-ai#36203

Clause-②: no
Metadata-protocol: none

## 维护者速读

- 用户无感:这是车队内部工具。巡查脚本现在会标出"已认领卡的草稿 PR 有冲突,或推上去后 CI
根本没跑";发评论的工具不再接受单独发出的认领评论,会提示改用连标签一起改的一笔写法。
- 属于"派发为什么会出现疏漏"那张卡的最后两条脚本项(技能文字五条已合入),替席位和卡线程解决"互相等 CI、其实 CI 根本没开跑"的问题。
- 出错最坏是巡查报告多一行或少一行提醒,或某条认领评论被拒、换一种写法重发;不改任何数据,可以直接撤回。
- 无

## What changes

Items 6 and 7 of the card's To do (items 1-5, the skill text, merged in
objectstack-ai#36205). Script-only: `scripts/pm/check-half-states.mjs` and
`scripts/pm/post-stamped.mjs`, each with its self-test battery. No skill
text, no ceiling, no workflow.

**Item 6 — new row H82 in the half-state patrol: a claimed card's PR
that CI cannot see.** The release note offered "widen H12/H16 to claimed
drafts, or a new row"; this takes the new row. H16's pinned non-draft
scope stays true for every other PR, H12 (orphan landing of a *ready*
PR) has no meaning on a draft, and the second signal the card asks for
(no Actions ever ran) is a read neither row makes.
- Population: an open PR whose body binds (closing keyword or `Part of`,
H16's extractor) a card the sweep holds under `pm:dispatched` — the
state model's claimed bit, free from the label pages the sweep already
lists. Silent past 30 min by `updated_at` (H16's age proxy), the
card-thread wake rule's own number (`dispatch-runbook.md`, 卡线程: 推后 30
分钟零 Actions、`dirty`).
- Leg 1: a DRAFT with `mergeable_state: dirty`. A non-draft dirty PR
stays H16's row alone, never reported twice.
- Leg 2: any claimed PR, draft or ready, not dirty, whose head answers
`total_count: 0` on `/commits/SHA/check-suites?app_id=15368` (the GitHub
Actions app). The filter is load-bearing: measured on the incident head
`473c7ff4` (PR objectstack-ai#35923), the unfiltered read answers 5 suites (deploy
previews, the fleet app) and the Actions-filtered one 0; a head CI ran
on answers 10 Actions suites of 15.
- Reads: the PR row (reused from H16's pass when both want it) and one
check-suites page, for candidates only. A failed PR-row read drops that
PR, all-failed rethrows (H16's posture). A failed check-suites read is
UNJUDGED, counted on the summary line, never a zero and never rethrown.
- Registered as a `stall` band row, four count keys on the sweep
contract, one summary clause (`Claimed card PRs (H82): …`) with its
anchor.

**Item 7 — `post-stamped.mjs` refuses a comment whose first keyed line
is `Claim:`** (exit 2, zero writes). The first line after the signature
is read through the patrol's own marker (`CLAIM_COMMENT_MARKER`,
`markerMatches`, so `> Claim:` counts as it does for H2). The refusal
prints the stroke that folds the same comment: `label-write.mjs --issue
N --comment-file PATH --add pm:dispatched --remove pm:queue --assign
LOGIN`.
- Judged in `main` after the route is resolved, deliberately NOT in
`judgeBody`: `judgeBody` is the path `label-write --comment-file` folds
the comment through, and that fold is the remedy.
- One arm is route-aware. `label-write`'s header says `--comment-file`
is RELAY-ONLY and that on a route resolved `direct` the claim goes
"through post-stamped and the labels here, as before". Refusing there
would leave no claim route at all, so on `direct` the claim is still
written, with a stderr note that the labels follow as a second write.
Every other route refuses, an undecidable one included (it cannot prove
the fold absent).

## Tests

<details><summary>Self-tests, at the head that also ran the gates
(6efbcf5)</summary>

- `pnpm check:pm-half-states`: exit 0, `check-half-states self-test:
5420 cases pass`, battery `H82 claimed card PR CI cannot see 24/24` (pin
at the count). Each leg's firing case sits beside the control that
silences it: the dirty draft vs. the same draft clean; H16 silent on the
dirty draft H82 fires on; zero suites vs. an unread (null) reading; a
non-draft dirty PR left to H16 while H16 does fire on it; unclaimed vs.
claimed; the 30-minute boundary; the gate never narrower than the
predicate; band, summary pair, count keys, wiring.
- `pnpm check:pm-post-stamped`: exit 0, `post-stamped self-test: 802
cases pass across 30 batteries` (787 / 29 before). New battery, 15
cases: refused on the relay route and on an undecidable one; the
`direct` control; a `Claim:` quoted further down a round report, a card
body and a non-claim comment pass; the refusal text; **control: the same
claim through `judgeBody` (label-write's fold path) passes**; CLI dry
runs (refused exit 2 off `direct`, rendered exit 0 on `direct`, a
non-claim body exit 0 on the same route); structural placement.
- `pnpm check:pm-label-write`: exit 0, `398 cases pass across 19
batteries` (its fold battery folds a signed `Claim:` through
`judgeBody`).
</details>

<details><summary>Live reads (read-only, this container)</summary>

- Live patrol sweep (`node scripts/pm/check-half-states.mjs`, no flags,
report-only, writes nothing): `Claimed card PRs (H82): PR row read on 15
of 15 open PR(s) bound to a pm:dispatched card and silent past 30 min,
and the Actions check suites read on 15 of 15 head(s) not in conflict.`
No H82 row today: no claimed card PR on the board is currently blind.
- `post-stamped.mjs --dry-run --comment=36203` with a signed claim:
route `dispatch`, exit 2, the refusal naming the fold stroke.
- `label-write.mjs --issue 36203 --add pm:dispatched --comment-file SAME
--dry-run`: exit 0, packed as ONE relay dispatch with the comment,
nothing sent.
</details>

## Acceptance notes

- **Third wake trigger not read.** The runbook's third trigger (2 h with
no push and no report) is still read by nobody mechanically; seat 1's
release note names item 6 as the place to close it. This PR reads only
the two signals the dispatch names (dirty, zero Actions suites).
- **The patrol workflow grants no `checks:` scope.**
`half-state-patrol.yml` lists `contents`, `issues`, `pull-requests`. If
its `GITHUB_TOKEN` cannot read check suites, the runner's leg 2 reads
UNJUDGED (said on the summary line) and leg 1 still runs. Not measured
on a runner, because the workflow is on demand only. The seat-container
sweep, the live consumer, reads them (15 of 15 above).
- **Population is the label, not the claim comment.** "Claimed" is a
bound card under `pm:dispatched`. A label without its claim is H1/H2's
row, and re-reading every bound card's thread would cost requests.
- **Age proxy.** `updated_at`, as H16. A quiet PR whose base just moved
flags at once. A comment on the PR defers the row by one threshold.

## Verification

- Targeted gates (`dispatch-gates --commands`, 70 families, at
`6efbcf556bd`): 68 exit 0. `--ran` reconciliation: 70 derived, 69 run, 1
NOT-MEASURED. NOT MEASURED, `pnpm check:i18n-coverage`, exit 3:
prerequisite not met (no package `dist/` built, and the diff touches no
package). Red locally but NOT MEASURED, `node
scripts/check-self-test-workflow-commands.mjs`: an unrelated child
self-test (`check-adr-0087-registration.mjs --self-test`) runs past its
120 s spawn budget on the shared box (measured 3 min 1 s standalone,
exit 0). CI owns both.
- `overlap-check.mjs`: clean against `origin/main`, 0 PR heads.

**Read first:** `check-half-states.mjs`, the H82 sweep pass after H16's
rethrow (the two read postures). `h82ClaimedPrBlind` (the leg split with
H16). `post-stamped.mjs`, `main`'s `claimStrokeRefusal` call and its
`direct` arm.

**Two-minute check:** `node scripts/pm/post-stamped.mjs --self-test 2>&1
| grep "claim stroke\|refuses the claim"` lists the claim-stroke cases,
every one ✓.

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

https://claude.ai/code/session_01QsR2jTeURPvEm465RcoYEC

<!-- signed: repo:objectstack#7 · zhuangjianguo ·
session_01QsR2jTeURPvEm465RcoYEC -->

---------

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/s skip-changeset PR has no user-facing published change; bypasses the changeset gate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants