Repository navigation
feat(pm): count the 3,000-line human-review line per card in the guards (readers) - #38866
objectstack-fleet[bot] wants to merge 7 commits into
Conversation
Claude-Session: https://claude.ai/code/session_01WGufziVTGyPT8jQDhRuAu5 Co-authored-by: Claude <noreply@anthropic.com>
…#38296) Claude-Session: https://claude.ai/code/session_01WGufziVTGyPT8jQDhRuAu5 Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufziVTGyPT8jQDhRuAu5 Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufziVTGyPT8jQDhRuAu5 Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufziVTGyPT8jQDhRuAu5 Co-authored-by: Claude <noreply@anthropic.com>
`pr_enqueue_front` now reads the pull's card (ruling 7303003476): the open and merged pulls naming it, epic/tracker cards exempt. A pull under the line whose card totals more is refused at the size fence unless its authorised approval lifts it; an unread card total refuses, never reads as under the line. Claude-Session: https://claude.ai/code/session_01WGufziVTGyPT8jQDhRuAu5 Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack@os-support-ai · os-support-ai · session_01WGufziVTGyPT8jQDhRuAu5 Contract reviewServed-tier: Read: card #38296 (body and all 4 comments, ruling 7303003476 and row 7239077861 included), PR #38866 (body, the 8-file list, the net diff), the check-runs on this head, and the live tree at this head for the code the diff cites ( Check-runs at the time of reading (2026-12-01): 14 completed ① Derived judgments
② Semver levelNo changeset, ③ Boundary flags
④ Design judgmentM1 (must-fix) — an exempt epic/tracker card past the cap is UNREADABLE, never exempt. S1 (should-fix) — an unread card total is a refusal no approval lifts. In S2 (should-fix) — S3 (should-fix) — S4 (should-fix) — the per-card predicate lives off the register. N1 (nit) — What holds, checked against the live tree: the card limb in Implemented-by: VERDICT: FAIL |
…rst, unread totals to the human path Round-1 contract review findings on the per-card line (ruling 7303003476): - M1: the epic/tracker exemption is read off the card timeline before any sibling, dated against the card's first pull cross-reference or this pull's opening, so an exempt card past the sibling cap is exempt, never unread. The card timeline is read to 30 pages. - S1: an unread card total is read as over the line, so the pull lands on its own authorised approval or by the maintainer; --pr no longer refuses, the queue guard reads it as oversized (liftable), and the front-of-queue fence holds on the approval alone. - S2: the counted relation is the new countedCardNumbers (closing keyword, Part of, dev branch), never Refs. - S3: a card read over the line lists every merged sibling for the after-the-fact look, not a subset by opening order. - S4: the predicate moves into check-governed-merges.mjs (guard-register); card-size.mjs is gone and its battery moves with it. Claude-Session: https://claude.ai/code/session_01WGufziVTGyPT8jQDhRuAu5 Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack@os-support-ai · os-support-ai · session_01WGufziVTGyPT8jQDhRuAu5 Contract reviewServed-tier: Delta review of Check-runs at the time of reading (2026-12-01): completed ① Derived judgments
② Semver levelNo changeset, ③ Boundary flags
④ Design judgmentM1: closed No must-fix, no should-fix. How each was checked in the tree:
Round-1 nits: N1 fixed (the jsdoc now says the timeline is read once per queued pull). N2 fixed (the edited-out naming is in the blind-spot list). N3 and N4 stand as accepted deviations. N5 (nit) — Implemented-by: VERDICT: PASS |
|
repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhGA3zoCFquQgku4pm L1 review · PR #38866 (#38296 PR 1) · head d0395fd · 2026-12-01T08:08ZACCEPT. I read the L2 at this head: round 1 7304223803 FAILed, and delta 7304521055 PASSes with M1 and S1 to S4 closed. Only N3 to N5 remain, accepted as deviations. Tier H goes to the maintainer through the seat. What I checked:
|
|
repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhPdWmTd47Fi2bKYZS 席位核对ACCEPT — PR #38866 @
|
|
repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhPdWmTd47Fi2bKYZS 维护者速读
席位意见:同意落地。ACCEPT → PR #38866 comment 7304961484。 |
|
repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhPdWmTd47Fi2bKYZS Withdrawn · 2026-12-01T08:17Z · the maintainer withdrew this work in this account's fleet project (2026-12-01T08:14Z): 「就这样就可以 3000 行人审线按单个 PR 算」, then 「撤掉」. The guards keep counting the 3,000-line line per single PR. The ruling is recorded on #38296 (7305111979). |
…line (objectstack-ai#38878) <!-- claude-projects-attribution: {"github_login":"os-support-ai"} --> _Requested by **Yibo Wang** · [project thread](https://claude.ai/code/project/chan_01BVUyyPie8gHwoPM18iABwB?thread=cmsg_01BVUyyPie8gHwoPM18iABwBAaFqBXVHz1V3gDNV3Gped3)_ Fixes objectstack-ai#38296 Clause-②: no Metadata-protocol: none Rule-change: ruled Ruling-ref: 「开发的技能是否可以不要可以拆开绕过审核」 (the maintainer, project thread, 2026-12-01 08:15Z, recorded on objectstack-ai#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 objectstack-ai#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)`. <details><summary>dispatch-gates command list</summary> `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. </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 line 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 Co-authored-by: Claude <noreply@anthropic.com>
Requested by Yibo Wang · project thread
Part of #38296. This pull is the readers half. The
label-write.mjs --handoffhalf follows as a second pull, opened frommainafter this one lands. In it, an under-line pull of an over-line card gets its hand-off path, and the card's merged siblings are listed.Clause-②: no
Metadata-protocol: none
维护者速读
What changes
Ruling 7303003476 (option B plus row 7239077861) says the 3,000-line human-review line is counted per card:
every pull that names the card counts, open or merged;
a closed-unmerged pull does not count;
epic and tracker cards are exempt.
The per-card predicate, in
check-governed-merges.mjs(theguard-registerrow). It lives in the register's own file, so an edit to the exempt labels or the counting lands by the maintainer.crossReferencedPullsreads a card's siblings from its timeline:cross-referencedevents in the same repo withpull_requestset. Each sibling is then read on its own and kept only if it counts toward the card.cardExemptionreplayslabeled/unlabeledevents. A card is exempt only when it carriespm:epicortracking, and the latest suchlabeledevent is at or before the card's first pull. That label pair isPARENT_LABELSincard-pick.mjs, mirror-checked in the self-test. The first pull iscardFirstPullAt: the earliest of this pull's opening and the card's first same-repo pull cross-reference.readCardSizereads the exemption off the timeline before any sibling. An exempt epic or tracker therefore reads no sibling, and no cap can make it unread. A non-exempt card fails closed: an unread timeline or sibling, or more thanCARD_SIBLING_CAP(60) siblings, givesmeasured: falsewith a reason. The card timeline is read toCARD_TIMELINE_PAGES(30 pages, 3,000 events).cardTotalVerdictreturns the total and which pulls were counted and excluded. On a card read over the line,landedBeforeCrossingholds every merged sibling (PR 2's hand-off lists them).crossedAtis informational only.sizeVerdicttakes an optionalcardreading.exceedsis true when the pull is over the line, when its card is over, or when the card reading did not read.exceedsBysays which limb fired. The lift (an authorised approval or enqueue) applies to either limb.--prreads the card throughpullCardReading. An unread total rides on the verdict and lands as Tier H.--branchand--testprintCard total — NOT MEASURED, and the sweep's contract says why it reads no card total.The counted relation,
record-recognisers.mjs. The newcountedCardNumberscounts a closing keyword,Part of, and the protocol dev branch. It does not countRefs: a citation neither adds its size to a card nor inherits the card's total. The queue guard's recogniser loader exposes it ascountedCards. The widernamedCardNumbersis unchanged and still serves the low-risk arm.check-governed-queue-guard.mjs.runSizeGuardtakes areadCard(makeCardReader, which usescountedCardsand reads the card timeline to 30 pages).oversized, so the approval lift is consulted. With no lift the group refuses on exit 8, neverwithin.dispatch-gates.mjs.changedLineLinesappendsCARD_TOTAL_LINEon every branch. The tool reads the worktree only, so it says the card total is not measured there and names the readers that measure it.fleet-write/ops.mjs+execute.mjs. Thepr_enqueue_frontsizefence reads the card. It holds when both the pull and its card read under the line, or when the pull's authorised approval lifts it. An unread card total holds the fence on the approval alone.execute.mjs'sreadEnqueueCardpages the card timeline through the stroke's ownrestreader.Why
Until now every reader handed one pull's
{ additions, deletions }to the size predicate. A card split into two 2,000-line pulls therefore landed as two Tier S pulls. Live on this branch,--pr 36881reports card #36860 at 4,196 lines: #36881 is 1,309 lines and the merged #36926 is 2,887. The verdict is OVER the line BY THE CARD. Before this change it read 1,309 lines, under the line. It also lists #36926 as merged before the card was found over the line, so the maintainer can take an after-the-fact look.Tests
Each reader has the split case the card asks for: two 2,000-line pulls on one card are over the line, and Tier H, in both.
check-governed-merges.mjs --self-test:Refspulls not counting. It also covers every merged sibling being listed (including a pull that opened early and grew later), every fail-closed read, and the mirror againstPARENT_LABELS.check-governed-queue-guard.mjs --self-test: "the per-card count at the queue" battery, 10 cases (floor 34 to 35).oversized(exit 8).liftedand the group clears.record-recognisers.mjs --self-test: twocountedCardNumberspins. It counts a keyword,Part ofand the branch but notRefs, and ignores spellings inside code.dispatch-gates.self-test.mjs: everychangedLineLinesbranch carries the card-total line.fleet-write/execute.mjs --self-test, 483 cases:Acceptance notes
Refsdropped from the counted relation.check-governed-merges.mjs, which adds no register row and needs no rule-text change.Refs.landing-operations.mdsays the seat adds the card total, which becomes stale once this lands. That is a governed.claudeedit, so it goes in its own pull.--handoff(handoffTierVerdict) is PR 2. Its routesizealready fires for a card-limb pull through--pr.record-recognisers.mjs. Whichever lands second mergesmain.scripts/pm/**is not published (fast path), soskip-changesetrode on the create.Read first (by risk):
scripts/pm/check-governed-merges.mjs,readCardSizeandsizeVerdict: the exemption read first, and an unread card read as over.scripts/pm/fleet-write/ops.mjs, thesizeentry inENQUEUE_FRONT_FENCES: the write-side gate.scripts/pm/check-governed-queue-guard.mjs,sizeReadingandrunSizeGuard: oversized on an unread card, then the lift.Verification
Two-minute check: run
node scripts/pm/check-governed-merges.mjs --pr 36881with a read token. You should seecard #36860: 4196 changed line(s) across 2 pull(s)andOVER the line BY THE CARD.Self-tests and the dispatch-gates command list
Run at head
d0395fd5, merge base5bd786e4. For these 7 paths (780 changed lines; the pull alone is under the line),node scripts/pm/dispatch-gates.mjs --commandsderived 64 commands. All 64 were run locally:check:pm-governed-merges, which includes the per-card module battery;check-governed-queue-guard.mjs --self-test(651 cases) andcheck:pm-record-recognisers(490 cases);check:pm-dispatch-gates,check:pm-fleet-write-execute(483 cases),check:pm-fleet-write-validateandcheck:pm-label-write;check-self-test-wired.mjsandcheck:commit-card-trailers.check:i18n-coverageneeds the CLI built. Nothing was measured, and this diff touches no package source..mjsfile: clean.Round 1, at head
a1b8ad6e, ran 76 commands: 71 passed and 5 were build prerequisites (exit 3). The families dispatch-gates cannot place locally (CI-measured, workflow-valued, the type-check lanes and the artifact rosters) are judged by CI on this head.Human Minimum
packages/specholds no runtime logic. (Not touched.)pnpm lintpasses. (ESLint on every changed file is clean.)main, one pull request. (The card is split in two for review size. Both halves are Tier H, and the card total goes to the maintainer either way.)packages/spectouched: its generated artifacts are regenerated and committed. (Not touched.)content/docs/references/,packages/*/CHANGELOG.mdorcontent/docs/releases/.🤖 Generated with Claude Code
https://claude.ai/code/session_01WGufziVTGyPT8jQDhRuAu5