Skip to content

docs(os-dev): never split a card to stay under the 3,000-line review line - #38878

Merged
objectstack-fleet[bot] merged 2 commits into
mainfrom
claude/issue-38296-no-split-rule
Dec 1, 2026
Merged

objectstack-fleet[bot] merged 2 commits into
mainfrom
claude/issue-38296-no-split-rule

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Requested by Yibo Wang · project thread

Fixes #38296

Clause-②: no
Metadata-protocol: none
Rule-change: ruled
Ruling-ref: 「开发的技能是否可以不要可以拆开绕过审核」 (the maintainer, project thread, 2026-12-01 08:15Z, recorded on #38296 in comment 7305111979), and his card choice "只在开发指令加一行" (2026-12-01 08:55Z, scope note 7305995610)

维护者速读

  • 用户无感:开发子代理的指令里加一句,不准为了压到 3,000 行人审线以下把一张卡拆成多个 PR,超线就开一个 PR 走人审。
  • 是你撤掉"守卫按卡合计"之后要的替代做法:守卫照旧按单个 PR 计,改为在开发侧直接禁止拆卡绕审核。
  • 只改一行指令文字,不碰任何脚本;写错了直接撤回这一行即可。
  • 无。

What changes

.claude/agents/os-dev.md, under "Definition of done", right after the draft-PR line, gets one new line:

  • ⛔ 不为压 3,000 行人审线拆卡:超线一个 PR 走人审。

This is the dev side of the rule. The seat side, where a card's PRs are summed and a split card still goes to the maintainer, already stands in references/landing-operations.md and is unchanged. The guard instruments keep counting per single PR, per the maintainer's reversal in comment 7305111979. The per-card guard work in #38866 is withdrawn and closed unmerged.

Tests

Text only. No code changed and no test applies.

Acceptance notes

  • The line was compressed to 70 bytes to fit the file's byte ceiling in check:pm-skill-ratchet (33,477 of 33,491 bytes, headroom 14). The longer wording first proposed to the maintainer was 85 bytes over that ceiling. The clause it dropped, "a split still goes to the maintainer", is already the seat's rule in landing-operations.md.
  • Changeset: none. .claude/** is not published (fast path), so skip-changeset rides on this create.

Read first: .claude/agents/os-dev.md, the added line under "Definition of done".

Verification

Two-minute check: run pnpm check:pm-skill-ratchet. You should see .claude/agents/os-dev.md is 33477 bytes (ceiling 33491; headroom 14).

dispatch-gates command list

node scripts/pm/dispatch-gates.mjs --commands for this path derived 25 commands, all run locally:

  • 24 passed (exit 0), among them check:pm-skill-ratchet after the compression and check:commit-card-trailers.
  • 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 line 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

@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
@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: de60b2f2023ff96386c0f3a877b3fd13b779ceb5
Local-runs: none
Scope: .claude/agents/os-dev.md + none
Rule-change-verified: ruled

Inputs read: card #38296 (body and all six comments, through scope note 7305995610), the PR body, the file list (one file), the net diff against main (one added line, +1/-0, two commits ahead, zero behind), and the check-runs on this head. The live tree was read for context only: .claude/agents/os-dev.md, .claude/skills/pm-dispatch/references/landing-operations.md lines 69-71, .claude/skills/pm-dispatch/SKILL.md line 196, AGENTS.md rule 7 (c), and the os-dev.md row of scripts/pm/check-skill-line-ratchet.mjs.

Rule-change verification. The PR body declares Rule-change: ruled. The one changed hunk does alter what a dev agent may do (it forbids a split made to stay under the human-review line), so none is not available. The hunk was checked against the words quoted on the Ruling-ref: line:

  • The maintainer's words, verbatim on the card in comment 7305111979: 「开发的技能是否可以不要可以拆开绕过审核」. The added line's first clause, 「⛔ 不为压 3,000 行人审线拆卡」, is that sentence turned into a prohibition in the dev's instructions. It names the same act (splitting) and the same purpose (getting under review). It forbids nothing else.
  • His card choice, as recorded in scope note 7305995610: "只在开发指令加一行". The diff is exactly one line, in the dev agent's instruction file, and touches no script and no other rule file.
  • The second clause, 「超线一个 PR 走人审」, adds no rule. It states what already follows once the split is forbidden: an unsplit over-line change is one PR, and AGENTS.md rule 7 (c) already sends a PR over 3,000 changed lines down the Tier H path.
  • The same four quoted lines keep the guards counting per single PR (「3000 行人审线按单个 PR 算」, 「撤掉」). The diff touches no guard, so it does not contradict that half of the ruling.

Every rule-changing hunk copies the quoted ruling, so the line is verified as ruled.

① Derived judgments

  • Accept-set and public surface: none. The diff is one line of agent instruction prose under .claude/**. No schema, no exported symbol, no script, no workflow and no published package is touched. Right.
  • Governed path: .claude/agents/os-dev.md is on the rules face, so this review is owed at CONTRACT_REVIEW_TIER and the PR lands on this record only if the Rule-change-verified: line above equals the body's Rule-change: value. It does (ruled). Right.
  • Byte ceiling: the file is 33,477 bytes at this head (33,407 on main, plus the 70-byte line), under the 33,491 ceiling on its check-skill-line-ratchet.mjs row. The PR body's figures match the tree. Lint · PM dispatch-gates is success on this head.
  • Check-runs on this head at the time of this record: Governed Surface Queue Guard, PR-body guards, Check Changeset, Check PR Size, Test Core, Test UI, Dogfood Regression Gate, Type Check · workspace, Lint · PM dispatch-gates and the three scoped lint jobs are success. Seven jobs were still in_progress: Lint · ESLint, Lint · docs & code guards, Lint · repo & tooling gates, Lint · CI, release & engine gates, Type Check · debt ledger, Type Check · source gates, Type Check · consumer gates. None had failed. This record does not stand in for them: the landing gate reads their conclusions on this head.

② Semver level

Nothing publishes. .claude/** is not a published path, the PR carries skip-changeset, and Check Changeset is success on this head. The Clause-②: no line is correct: the diff changes no published contract and narrows nothing. Metadata-protocol: none is correct for the same reason.

③ Boundary flags

  • Dev flag, "the line was compressed to 70 bytes; the dropped clause, a split still goes to the maintainer, is already the seat's rule": answered, and it holds. landing-operations.md line 71 reads 「拆分仍交维护者」. The dev line loses nothing a dev needs, because what a split owes is the seat's side.
  • Dev flag, one dispatch-gates command reported PREREQUISITE NOT MET (check:doc-formula-expressions): answered. The diff touches no doc formula, and the CI lint jobs on this head are the measurement.
  • open_questions: none are stated in the PR body or in the scope note.
  • SQL push-down: not applicable. The diff contains no code.
  • Raised for the seat, outside this diff and not a finding on this head: the maintainer's words in 7305111979 read 「3000 行人审线按单个 PR 算」, and the card applied them to the guard instruments. landing-operations.md lines 69-70 and SKILL.md line 196 still count the line per card on the seat side (「行数线按卡计」, 「按卡合计」 over 3000 lines). The PR body says the seat-side rule "already stands and is unchanged". Whether the maintainer's sentence also withdraws the seat's per-card sum was not put to him on the card. The added line is correct under either reading, since a card that is never split has the same total per PR and per card. The seat should confirm this with the maintainer or record his answer on the card, so the two texts are not left to be reconciled by a later reader.

④ Design judgment

.claude/agents/os-dev.md (the only hits file; no implementing file is in the diff).

  • Against the ruling it implements: the line holds. See the rule-change verification above.
  • Against the seat-side rule: it agrees. landing-operations.md line 71 already tells the seat that a dispatch order never says "stop and propose a split". The new line is the matching instruction on the dev side: the dev does not split for size on its own initiative either. Lines 69-70 make a split card Tier H in every PR, and the new line removes the case at its source.
  • Against the guards counting per single PR: it agrees, and it is what makes the reversal safe. With the guards reading one PR each, the only way to pass under the line is to split, and the dev is now told not to. The line asks no guard to behave differently, and it does not describe any guard, so there is no instrument for it to disagree with.
  • Placement: right. It sits in "Definition of done", directly after the draft-PR line that offers Part of #N and "say which half is left". That line is the one mechanism a dev has for a partial PR, so the limit on it is read at the moment it applies.
  • Consistency with the rest of the file: no conflict found. No existing line tells a dev to propose or perform a split for size. The three other uses of "拆" are different acts and stay valid: line 74 (a file over 1,000 lines gets a new sibling module; moving existing code is a separate split card), line 103 (a -wip backup branch holds the half a split leaves for later), and line 307 (the seat splits the blocked part of a card into its own card). The new line is scoped by purpose (「为压 … 线」), so those splits are untouched.
  • Attempt to break it: a dev could split for a stated reason other than size and still end up under the line. The line does not catch that, and it is not meant to: the seat's per-card sum in landing-operations.md is the backstop, and the PR does not claim otherwise. A dev could also read the second clause alone as "an over-line card is always exactly one PR", which would forbid a split the seat ordered for another reason. The first clause and the colon scope it, and a seat-ordered split is the seat's rule, so this is a wording point, graded below.

Findings:

  • N1 (nit) — 「超线一个 PR 走人审」 read on its own is absolute. A few bytes would make the purpose scope explicit, but the file has 14 bytes of headroom and the first clause already scopes it. Accepted deviation; no change asked on this head.
  • N2 (nit) — "拆卡" elsewhere in the fleet text (SKILL.md line 121) means triage splitting one card into several cards; here it means splitting one card's change into several PRs. Both readings are forbidden acts for a dev trying to get under the line, so the wider reading does no harm. Accepted deviation.
  • N3 (nit) — the card records the maintainer's follow-up choice by its option label only ("只在开发指令加一行"), without the question and the consequence line that ruling 7303003476 recorded for the earlier tap, and without the wording put to him. The Ruling-ref: line carries the three things os-dev.md asks for (his words, the source, the time), so the declaration is complete. A card comment adding the question and consequence line verbatim would make the copy checkable by a later reader. This is a card-side prose fix and does not move the head.

No must-fix, no should-fix.

Implemented-by: claude/issue-38296-no-split-rule
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 #38878 (#38296, repurposed) · head de60b2f · 2026-12-01T09:09Z

ACCEPT. I read L2 7306137297 at this head: PASS at the contract-review tier, Rule-change-verified: ruled, no must-fix and no should-fix, and three nits accepted.

What I checked:

  • l1-face.mjs --pr 38878: CLEAN, with 23 checks success and 0 failed or pending. mergeable_state is clean.
  • The diff is one added line in .claude/agents/os-dev.md under Definition of done: 「⛔ 不为压 3,000 行人审线拆卡:超线一个 PR 走人审。」. It copies the maintainer's ask 「开发的技能是否可以不要可以拆开绕过审核」 (comment 7305111979) in the scope he chose, "只在开发指令加一行" (scope note 7305995610). It is neither wider nor narrower.
  • Ratchet. os-dev.md is 33477 bytes against a ceiling of 33491, so no row moves.
  • Scope. The one file matches claim 7305995610. Fixes #38296 is right for the repurposed card. skip-changeset and Clause-②: no match a diff that publishes nothing.
  • Consistency. The seat-side per-card sum in landing-operations.md and SKILL.md is unchanged, and the new line holds under either reading of 「按单个 PR 算」. The L2's open note, whether that sum is also withdrawn, was not put to the maintainer and is the seat's to route. It does not block this PR.
  • Tier. This is a .claude/** path with Rule-change: ruled. The seat confirms the split with check-governed-merges --pr 38878 before routing.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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

落地

Seat check of card #38296's repurposed PR, on its review of record.

reading value
check-governed-merges.mjs --pr 38878 Tier S (.claude/** declaration split, maintainer ruling 2026-11-19 on #35321, 「1+2+4」): body declares Rule-change: ruled; contract review 7306137297 PASS at CONTRACT_REVIEW_TIER on de60b2f2, Rule-change-verified: ruled
L1 ACCEPT 7306304198
diff .claude/agents/os-dev.md +1 / -0, the one line his card choice asked for (scope note 7305995610)
check-runs on de60b2f2 23 success · 29 skip · 0 failed · 0 pending; mergeable clean

State change, made by the owning seat: ready for review and auto-merge. On merge it closes #38296.

The open point L2 raised (whether 「按单个 PR 算」 also withdraws the seat-side per-card sum in landing-operations.md lines 69-70 and SKILL.md line 196) does not block this line, which holds under either reading. The seat puts that question to the maintainer and records his answer on #38296.

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review December 1, 2026 09:12
@objectstack-fleet
objectstack-fleet Bot enabled auto-merge December 1, 2026 09:12
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Dec 1, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Dec 1, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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

落地

Re-arm after a dequeue that is not this PR's. Queue group gh-readonly-queue/main/pr-38878-3c617a28, run 46614276568: job 142527158660 "Lint · docs & code guards" stalled in step 2 "Checkout repository" from 2026-12-01T09:13:12Z until the 40-minute timeout cancelled it at 2026-12-01T09:53:12Z; no step after checkout started. "Lint & Repo Gates" failed 3 s later only by reading that cancel. Every other workflow on the group was green, the same job passed in 7–8 minutes on four other queue groups (runs 46617606292, 46618188137, 46618612929, 46619455305) and on this PR's head, and the diff is one line of .md.

Head unchanged at de60b2f2; contract review 7306137297 and L1 7306304198 still name it; land record 7306363210 stands. This is the one re-run the stalled job gets: the seat re-arms auto-merge once. A second checkout stall goes to triage instead.

@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Dec 1, 2026
Merged via the queue into main with commit 01a80a0 Dec 1, 2026
53 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/issue-38296-no-split-rule branch December 1, 2026 10:38
Nenzyz pushed a commit to Nenzyz/objectstack that referenced this pull request Dec 1, 2026
…the seat side (objectstack-ai#38897)

<!-- claude-projects-attribution: {"github_login":"os-support-ai"} -->
_Requested by **Yibo Wang** · [project
thread](https://claude.ai/code/project/chan_01BVUyyPie8gHwoPM18iABwB?thread=cmsg_01BVUyyPie8gHwoPM18iABwBAaFqBXVHz1V3gDNV3Gped3)_

Refs objectstack-ai#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 objectstack-ai#38296 in comment
7308037857, to the question 「「按单个 PR 算」是否也撤掉席位那边的「按卡合计」?」)

## 维护者速读

- 用户无感:席位技能里 3,000 行人审线从「按卡合计」改成「按单个 PR 算」,和守卫脚本、开发指令一致。
- 是你 10:19 选的「也撤,全部只按单个 PR 算」;只改四份席位文字(两处按卡合计,加四行「过线卡」改回原来的按 PR
写法),不碰脚本和守卫。
- 「不为压线拆卡」只在开发指令里(objectstack-ai#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 objectstack-ai#38280: 「逾 3,000 行须授权批准…」.
- `.claude/skills/pm-dispatch/references/area-lease.md`: 「受管面与过线卡的 PR 区
⛔ 不落」 becomes 「受管面与超 3000 行 PR 区 ⛔ 不落」. That is its wording before
objectstack-ai#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 objectstack-ai#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
(objectstack-ai#38296 comment 7305111979), and objectstack-ai#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

- **Round-1 contract review (comment 7308587752), each finding:**
- S1 (should-fix), the seat-side no-split clause went beyond the ruling:
dropped. The no-split rule lives only in the dev instructions, as his
card choice 「只在开发指令加一行」 said.
- S2 (should-fix), 「过线卡」 still appeared in `landing-operations.md`,
`area-lease.md` and `lanes/queue.md` after its definition was removed:
all four lines go back to their per-PR wording from before objectstack-ai#38280.
  - N1 (nit), the byte figures in this body were stale: corrected below.
- The ratchet ceilings are not raised; every file holds under its row:
  - `SKILL.md`: 33,324 of 33,327 bytes.
  - `landing-operations.md`: 10,592 of 10,705 bytes.
  - `area-lease.md`: 7,220 of 7,220 bytes.
  - `lanes/queue.md`: 1,992 of 1,992 bytes.
  - The widest-row pins are unchanged.
- No other `.claude/**`, `AGENTS.md` or `skills/**` text sums PRs per
card or names an over-line card. A search for 按卡计, 按卡合计, 卡合计, 过线卡,
per-card and card total finds nothing else.
- objectstack-ai#38296 may already be closed by objectstack-ai#38878, so this pull says `Refs`.
- Changeset: none. `.claude/**` is not published (fast path), so
`skip-changeset` rides on this create.

**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)`.

<details><summary>dispatch-gates command list</summary>

`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.

</details>

## Human Minimum

- [x] 1. Schemas start as Zod; `packages/spec` holds no runtime logic.
(Not touched.)
- [x] 2. Every name I added uses the casing for its kind. (None added.)
- [x] 3. No formatter ran; `pnpm lint` passes.
- [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.)
- [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. (Except the quoted
rule text and the 维护者速读, as the fleet rules allow.)
- [x] The *Before Submitting* list in CONTRIBUTING.md is done.

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

https://claude.ai/code/session_01WGufziVTGyPT8jQDhRuAu5

<!-- signed: repo:objectstack@os-support-ai · os-support-ai ·
session_01WGufziVTGyPT8jQDhRuAu5 -->

---------

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/xs 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.

pm: guards read the 3,000-line human-review line per pull request — make them follow the per-card total (#36914 follow-up)

2 participants