Skip to content

docs(pm-dispatch): count the 3,000-line review line per single PR on the seat side - #38897

Merged
objectstack-fleet[bot] merged 2 commits into
mainfrom
claude/issue-38296-seat-per-pr
Dec 1, 2026
Merged

objectstack-fleet[bot] merged 2 commits into
mainfrom
claude/issue-38296-seat-per-pr

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

Requested by Yibo Wang · project thread

Refs #38296

Clause-②: no
Metadata-protocol: none
Rule-change: ruled
Ruling-ref: 「也撤,全部只按单个 PR 算」 (the maintainer's choice on the seat's decision card, 2026-12-01 10:19:48Z, recorded on #38296 in comment 7308037857, to the question 「「按单个 PR 算」是否也撤掉席位那边的「按卡合计」?」)

维护者速读

  • 用户无感:席位技能里 3,000 行人审线从「按卡合计」改成「按单个 PR 算」,和守卫脚本、开发指令一致。
  • 是你 10:19 选的「也撤,全部只按单个 PR 算」;只改四份席位文字(两处按卡合计,加四行「过线卡」改回原来的按 PR 写法),不碰脚本和守卫。
  • 「不为压线拆卡」只在开发指令里(docs(os-dev): never split a card to stay under the 3,000-line review line #38878 那一行),席位文字不另加;「拆分仍交维护者」原文保留;撤回本 PR 即恢复按卡合计的文字。
  • 无。

What changes

The seat skill counted the 3,000-line human-review line per card in two places, and four more lines named an over-line card (「过线卡」, a term those two places defined). All of them now count per single PR:

  • .claude/skills/pm-dispatch/references/landing-operations.md, in the landing bullets:
    • The 「行数线按卡计」 bullet and its example (two 2,000-line PRs of one card are both Tier H) become: the line is counted per single PR; a PR over 3,000 changed lines (additions + deletions, generated files included) is Tier H, and every other PR of the same card is tiered on its own size.
    • The next bullet loses 「卡合计席位自加」 (the seat adding up the card total) and now says --pr N, the queue guard and the relay all read the single PR. It keeps 「拆分仍交维护者」 and 「派发令 ⛔ 不写「停下提拆分」」 as written.
    • In the front-of-queue bullets, 「过线卡的 PR 须授权批准…」 goes back to its wording before docs(pm-dispatch): the 3,000-line human-review line is counted per card, across every PR the card produces #38280: 「逾 3,000 行须授权批准…」.
  • .claude/skills/pm-dispatch/references/area-lease.md: 「受管面与过线卡的 PR 区 ⛔ 不落」 becomes 「受管面与超 3000 行 PR 区 ⛔ 不落」. That is its wording before docs(pm-dispatch): the 3,000-line human-review line is counted per card, across every PR the card produces #38280, with the thousands comma dropped to fit the file's byte ceiling.
  • .claude/skills/pm-dispatch/references/lanes/queue.md: 「三因至过线卡」 and 「过线卡各 PR 的批准」 go back to 「三因至逾 3,000 行」 and 「逾 3,000 行 PR 的批准」, as before docs(pm-dispatch): the 3,000-line human-review line is counted per card, across every PR the card produces #38280.
  • .claude/skills/pm-dispatch/SKILL.md, in 路径分叉: 「按卡合计 >3000 行」 becomes 「单个 PR >3000 行」. The rest of the line (the four-part hand-off, no Tier S exception) is unchanged.

No script, guard, workflow or other rule file is touched. The guards already count per single PR.

Why

The maintainer ruled at 08:14Z that the guards count per single PR (#38296 comment 7305111979), and #38878 forbade a dev from splitting a card to dodge the line. The seat skill still told seats to add up a card's PRs. Asked whether that sum goes too, he chose 「也撤,全部只按单个 PR 算」 (comment 7308037857). This PR makes the seat text agree.

Tests

Text only. No code changed and no test applies.

Acceptance notes

Read first: .claude/skills/pm-dispatch/references/landing-operations.md, the two rewritten bullets after 「⛔ 两层不由席位批准」.

Verification

Two-minute check: run pnpm check:pm-skill-ratchet. You should see SKILL.md is 33324 bytes (ceiling 33327; headroom 3), landing-operations.md is 10592 bytes (ceiling 10705; headroom 113), area-lease.md is 7220 bytes (ceiling 7220; headroom 0) and lanes/queue.md is 1992 bytes (ceiling 1992; headroom 0).

dispatch-gates command list

node scripts/pm/dispatch-gates.mjs --commands for these four paths derived 25 commands, all run locally on a fresh install at head 050a5efd:

  • 24 passed (exit 0), among them check:pm-skill-ratchet, check:pm-governed-merges, check:pm-expected-skips and check:doc-authoring.
  • 1 PREREQUISITE NOT MET (exit 3): pnpm --filter @objectstack/lint run check:doc-formula-expressions needs the lint and formula packages built. Nothing was measured, and this diff touches no doc formula.

Human Minimum

  • 1. Schemas start as Zod; packages/spec holds no runtime logic. (Not touched.)
  • 2. Every name I added uses the casing for its kind. (None added.)
  • 3. No formatter ran; pnpm lint passes.
  • 4. One issue, one branch off an up-to-date main, one pull request.
  • 5. A change that publishes carries a changeset, and both declaration lines are filled in here and in the 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. (Except the quoted rule text and the 维护者速读, as the fleet rules allow.)
  • The Before Submitting list in CONTRIBUTING.md is done.

🤖 Generated with Claude Code

https://claude.ai/code/session_01WGufziVTGyPT8jQDhRuAu5

…the seat side

The seat skill summed every PR of a card against the line. It now
counts each PR on its own, the same as the guards and the dev rule.
Splitting a card to get under the line stays forbidden.

Claude-Session: https://claude.ai/code/session_01WGufziVTGyPT8jQDhRuAu5
Co-authored-by: Claude <noreply@anthropic.com>
@objectstack-fleet objectstack-fleet Bot added the skip-changeset PR has no user-facing published change; bypasses the changeset gate label Dec 1, 2026
@github-actions github-actions Bot added size/xs documentation Improvements or additions to documentation labels Dec 1, 2026
Three files still named an over-line card after the per-card line was
withdrawn. They go back to their per-PR wording. The seat-side no-split
clause is dropped: the ruling only changes how the line is counted.

Claude-Session: https://claude.ai/code/session_01WGufziVTGyPT8jQDhRuAu5
Co-authored-by: Claude <noreply@anthropic.com>
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-support-ai · os-support-ai · session_01WGufziVTGyPT8jQDhRuAu5

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 2557a08a4d325d3da34c8759a859ea603f906e72
Local-runs: none
Scope: .claude/skills/pm-dispatch/SKILL.md, .claude/skills/pm-dispatch/references/landing-operations.md + none
Rule-change-verified: yes

Inputs read: card #38296 (body, state open, labels, all seven comments, rulings 7305111979 and 7308037857 included), PR #38897 (body, file list of two files, net diff +3 / -4 against main), and the check-runs on this head. Code outside the diff was read, not reviewed: scripts/pm/check-governed-merges.mjs, scripts/pm/check-governed-queue-guard.mjs, scripts/pm/check-skill-line-ratchet.mjs, AGENTS.md, .claude/agents/os-dev.md, the other pm-dispatch references, and the diffs of PR #38280 and PR #38878.

Check-runs on this head, read at 2026-12-01T10:33:14Z (50 runs):

  • Concluded success: Governed Surface Queue Guard, Check Changeset, Check PR Size, PR-body guards, filter, Auto Label, Test UI, Test Core, Dogfood Regression Gate, Type Check · workspace, Type Check · debt ledger, Lint · scoped · tooling self-tests, Lint · scoped · slot lookup & corpus, Lint · scoped · query-options erasure.
  • NOT yet concluded (in_progress) at that reading: Lint · PM dispatch-gates, Lint · docs & code guards, Lint · ESLint, Lint · CI, release & engine gates, Lint · repo & tooling gates, Type Check · source gates, Type Check · consumer gates. The skill byte ratchet and the PM gates sit in these jobs, so this record does not claim them green. The landing seat reads them before any landing.
  • Every other run concluded skipped (opt-in batteries, matrix placeholders, queue verdicts). No run concluded failure.

① Derived judgments

  • No accept-set or public-surface change. The diff is prose in two .claude/** skill files. No schema, script, guard, workflow or published package is touched. Right.
  • The diff implies one derived claim: the seat text now agrees with the guards. That is right for the two rewritten places. sizeVerdict in check-governed-merges.mjs takes one pull request's additions + deletions pair and compares it strictly greater than HUMAN_MERGE_LINE_THRESHOLD = 3000, generated files included. sizeReading in the queue guard is fed one pull's size. PR feat(pm): count the 3,000-line human-review line per card in the guards (readers) #38866 (the per-card readers) is closed unmerged, and no countedCard* symbol exists in the tree. The new bullet says exactly this: 「该 PR additions+deletions(含生成物)>3000 即 Tier H」.
  • AGENTS.md rule 7 (c) already reads "a PR whose changed lines exceed 3,000 (additions + deletions, generated files included)". The new wording agrees with it. Right.
  • The claim fails for the rest of the governed text: see S2.
  • Byte ceilings: at this head SKILL.md is 33,324 bytes (ceiling 33,327) and landing-operations.md is 10,635 bytes (ceiling 10,705), both read from the contents API. No ceiling is raised. The gate verdict itself is owed by a lint job that had not concluded.

② Semver level

Nothing publishes. .claude/** is not a published path, the PR carries skip-changeset, and Check Changeset concluded success. Clause-②: no is right: no schema, no accept set, no runtime behaviour changes. Metadata-protocol: none is right.

③ Boundary flags

④ Design judgment

Rule-change verification, hunk by hunk, against the Ruling-ref: quote 「也撤,全部只按单个 PR 算」 and the option consequence recorded with it in 7308037857 (「一个小 PR 把席位技能里『行数线按卡计、按卡合计超 3000』两处改成按单个 PR,与开发指令和守卫脚本一致。」):

  • SKILL.md, 路径分叉: 「按卡合计 >3000 行」 becomes 「单个 PR >3000 行」. A copy of the ruling. The rest of the line (the four-part hand-off with ③, no Tier S exception) is unchanged. It agrees with the Tier H routing line above it and with landing-operations.md. Clean.
  • landing-operations.md, first bullet: 「行数线按卡计 … 之和 >3000 即过线卡,每张 PR 皆 Tier H」 and its two-PR example become 「行数线按单个 PR 计:该 PR additions+deletions(含生成物)>3000 即 Tier H;同卡别的 PR 各按自身定档」. A copy of the ruling. The tail clause is the direct consequence of "per single PR" and the inverse of the withdrawn example. Clean.
  • landing-operations.md, second bullet:
    • 「拆分仍交维护者,派发令 ⛔ 不写「停下提拆分」」 is the text already on main, unchanged. Not a new rule.
    • 「卡合计席位自加」 is removed. A copy of the ruling.
    • 「--pr N、队列守卫与中继同按单 PR 读」 rewords 「只读单 PR」, already on main. It is a statement of fact, and the scripts bear it out. Not a new rule.
    • 「⛔ 不为压线拆卡(同 os-dev.md)」 is new text. It is not a copy of the quoted ruling. See S1.

S1 (should-fix) — the clause 「⛔ 不为压线拆卡(同 os-dev.md)」 is a binding seat-side prohibition that the quoted ruling does not contain, so the declared Rule-change: ruled does not verify on this head.

S2 (should-fix) — four per-card remnants of PR #38280 are left in the governed text, and this PR deletes the only definition of the term they use.

  • PR docs(pm-dispatch): the 3,000-line human-review line is counted per card, across every PR the card produces #38280 introduced 「过线卡」 ("a card over the line") and defined it in the bullet this PR rewrites: 「该卡全部 PR … 之和 >3000 即过线卡」. It also replaced four per-PR phrases with that term. All four survive this PR:
    • .claude/skills/pm-dispatch/references/landing-operations.md line 35: 「过线卡的 PR 须授权批准在现 head …」 (was 「逾 3,000 行须授权批准在现 head」).
    • .claude/skills/pm-dispatch/references/area-lease.md line 51: 「受管面与过线卡的 PR 区 ⛔ 不落,交席位」 (was 「超 3,000 行 PR」).
    • .claude/skills/pm-dispatch/references/lanes/queue.md line 21: 「(三因至过线卡)」 (was 「三因至逾 3,000 行」).
    • .claude/skills/pm-dispatch/references/lanes/queue.md line 27: 「过线卡各 PR 的批准」 under 归维护者 (was 「逾 3,000 行 PR 的批准」).
  • After this PR, 「过线卡」 has no definition anywhere. Its plain reading, "every PR of a card that is over the line", is the per-card rule the maintainer withdrew with 「全部只按单个 PR 算」. Line 35 then contradicts the new line 69 of the same file (「同卡别的 PR 各按自身定档」): a 200-line sibling of an over-line PR is Tier H by one line and tiered on its own size by the other.
  • The PR body's search (按卡计, 按卡合计, 卡合计, per-card, card total) did not include 过线卡, so it missed them.
  • The error leans to more human review, not less, and the guards are unaffected. That is why this is should-fix and not must-fix.
  • Fix: restore the four per-PR wordings from before docs(pm-dispatch): the 3,000-line human-review line is counted per card, across every PR the card produces #38280 (「逾 3,000 行」 / 「超 3,000 行 PR」 / 「逾 3,000 行 PR 的批准」). They are copies of the same ruling's 「全部」, so they stay inside ruled. area-lease.md and lanes/queue.md join the file list and their ratchet rows need a look.

N1 (nit) — the PR body states landing-operations.md as 10,625 bytes with headroom 80. The head holds 10,635 with headroom 70. The ceiling holds either way. Correct the body when the PR is next edited.

No must-fix. S1 and S2 are open on this head and each earns a delta review of its fix. Rule-change-verified is yes because of S1 alone; with the clause dropped, every remaining rule hunk is a copy of the quoted ruling.

Implemented-by: claude/issue-38296-seat-per-pr
Reviewed-by: isolated L2 sub-agent of session_01WGufziVTGyPT8jQDhRuAu5

VERDICT: PASS

@github-actions github-actions Bot added size/s and removed size/xs labels Dec 1, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-support-ai · os-support-ai · session_01WGufziVTGyPT8jQDhRuAu5

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 050a5efd036b5a73ecd81e875bbb452139885e74
Local-runs: none
Scope: .claude/skills/pm-dispatch/SKILL.md, .claude/skills/pm-dispatch/references/landing-operations.md, .claude/skills/pm-dispatch/references/area-lease.md, .claude/skills/pm-dispatch/references/lanes/queue.md + none
Rule-change-verified: ruled

Delta review of round 1 (comment 7308587752, head 2557a08a). Inputs read: the delta from 2557a08a to this head, the whole net diff against main at this head (four files, +7 / -8, read from the pulls files API), the updated PR body, card #38296 with every comment, and the check-runs on this head. Read, not reviewed: the tree at this head, the pre-#38280 wording in PR #38280's diff, and the ceilings in scripts/pm/check-skill-line-ratchet.mjs.

S1: closed
S2: closed
N1: closed

Check-runs on this head, read at 2026-12-01T10:44:10Z (47 runs):

  • Concluded success: Governed Surface Queue Guard, Check PR Size, filter, Auto Label, Test Core, Test UI, Dogfood Regression Gate, and one PR-body guards run.
  • NOT yet concluded (in_progress) at that reading: a second PR-body guards run, Lint · PM dispatch-gates, Lint · docs & code guards, Lint · ESLint, Lint · CI, release & engine gates, Lint · repo & tooling gates, Lint · scoped · slot lookup & corpus, Lint · scoped · tooling self-tests, Lint · scoped · query-options erasure, Type Check · workspace, Type Check · source gates, Type Check · consumer gates, Type Check · debt ledger.
  • Check Changeset concluded skipped on this head (twice); the PR carries skip-changeset. Every other run concluded skipped. No run concluded failure.
  • The skill byte ratchet and the PM gates sit in the unfinished lint jobs. This record does not claim them green; the landing seat reads them before any landing.

① Derived judgments

  • Still prose only, now in four .claude/** skill files. No accept-set or public-surface change. Right.
  • The derived claim, "the seat text agrees with the guards", now holds across the governed text. A search of .claude/**, AGENTS.md and skills/** at this head for 过线, 按卡计, 按卡合计, 卡合计, 压线, per-card and card total finds no rule text. The only hits are two "per card" lines in .claude/hooks/guard-dispatch-tier.sh, which are about the model tier and are unrelated.
  • Every remaining statement of the line reads one pull request: SKILL.md line 196, landing-operations.md lines 35 and 69, area-lease.md line 51, lanes/queue.md lines 21 and 27, and AGENTS.md rule 7 (c). They agree with sizeVerdict (one PR's additions + deletions, strictly greater than 3000, generated files included).
  • Byte ceilings, read from the contents API at this head against the ratchet rows: SKILL.md 33,324 of 33,327; landing-operations.md 10,592 of 10,705; area-lease.md 7,220 of 7,220; lanes/queue.md 1,992 of 1,992. No ceiling is raised. Two files sit exactly on their ceiling, which is within the rule. The gate verdict itself is owed by a lint job that had not concluded.

② Semver level

Unchanged from round 1. Nothing publishes, skip-changeset is right, and Clause-②: no and Metadata-protocol: none are right.

③ Boundary flags

④ Design judgment

Rule-change verification for the whole PR at this head, hunk by hunk, against 「也撤,全部只按单个 PR 算」 and its recorded consequence (the seat skill's per-card counting becomes per single PR, consistent with the dev instructions and the guard scripts):

The four restored lines are copies of the ruling. 「全部只按单个 PR 算」 says all of it counts per single PR, and each line returns to the per-PR wording that stood before #38280 made it per-card. The consequence line names two places, and those two places held the count and the definition of 「过线卡」. The other four lines only used that term, so withdrawing the count withdraws them with it. Nothing in them is new: no threshold, no actor and no routing differs from the text before #38280. S2 is closed, and line 35 no longer contradicts line 69.

Every rule hunk in the PR is therefore a copy of the quoted ruling, and no hunk adds a rule beyond it. The declared Rule-change: ruled verifies.

The byte figures in the PR body match the head. N1 is closed.

One nit, new this round:

  • N2 (nit) — the 维护者速读 still says 「只改两份席位文字」 (only two seat files change). The diff now changes four. The What-changes section below it lists all four correctly. Correct the count when the body is next edited; it does not move the head.

No must-fix, no should-fix.

Implemented-by: claude/issue-38296-seat-per-pr
Reviewed-by: isolated L2 sub-agent of session_01WGufziVTGyPT8jQDhRuAu5

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhGA3zoCFquQgku4pm

L1 review · PR #38897 (#38296 seat-side follow-up) · head 050a5ef · 2026-12-01T10:55Z

ACCEPT. I read the L2 at this head: round 1 7308587752 found S1 and S2, and delta 7308679960 PASSes with S1, S2 and N1 closed, no must-fix and no should-fix, and Rule-change-verified: ruled. N2 is fixed in the body.

What I checked:

  • l1-face.mjs --pr 38897: CLEAN, with 24 checks success and 0 failed or pending. mergeable_state is clean.
  • Against ruling 7308037857 (「也撤,全部只按单个 PR 算」), every changed line turns a per-card count into a per-PR count, and nothing more:
    • SKILL.md: 「按卡合计」 becomes 「单个 PR」.
    • landing-operations.md: the per-card bullet and its example become 「按单个 PR 计…同卡别的 PR 各按自身定档」, and 「卡合计席位自加」 is dropped.
    • The four 「过线卡」 lines in landing-operations.md, area-lease.md and lanes/queue.md go back to per-PR wording.
    • 「拆分仍交维护者」 and the no-split line from docs(os-dev): never split a card to stay under the 3,000-line review line #38878 stand, as the ruling says. No seat-side no-split clause is added, so the round-1 S1 is closed.
  • Ratchet. All four files are at or under their ceilings, so no row moves, and CI's ratchet lane is green.
  • Scope. +7/−8 across four .claude files. Refs #38296 is right, because the card closed with docs(os-dev): never split a card to stay under the 3,000-line review line #38878. skip-changeset and Clause-②: no are right.
  • Tier. This is .claude/** with Rule-change: ruled. The seat confirms the split with check-governed-merges --pr 38897 before routing.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhPdWmTd47Fi2bKYZS

落地

Seat check of the #38296 seat-side follow-up, on its review of record. I read every changed line: the per-card sum becomes per single PR in SKILL.md, landing-operations.md, area-lease.md and lanes/queue.md, exactly the maintainer's choice 「也撤,全部只按单个 PR 算」 (ruling record 7308037857); 「拆分仍交维护者」 and the 「不写『停下提拆分』」 clause are kept; no script or guard is touched.

reading value
check-governed-merges.mjs --pr 38897 Tier S (.claude/** ×4, declaration split, maintainer ruling 2026-11-19 on #35321, 「1+2+4」): body declares Rule-change: ruled; contract review delta 7308679960 PASS at CONTRACT_REVIEW_TIER on 050a5efd (round 1 7308587752), Rule-change-verified: ruled
L1 ACCEPT 7308922753
diff 4 files, +7 / -8; ratchet rows unchanged
check-runs on 050a5efd 24 success · 29 skip · 0 failed · 0 pending; mergeable clean

State change, made by the owning seat: ready for review and auto-merge.

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review December 1, 2026 10:56
@objectstack-fleet
objectstack-fleet Bot enabled auto-merge December 1, 2026 10:56
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Dec 1, 2026
Merged via the queue into main with commit 2d56684 Dec 1, 2026
54 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/issue-38296-seat-per-pr branch December 1, 2026 11:22
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