Skip to content

docs(agents): count the 3,000-line review line per card in Multi-agent discipline 7(c) - #38404

Closed
objectstack-fleet[bot] wants to merge 4 commits into
mainfrom
claude/issue-38306-agents-7c-per-card
Closed

objectstack-fleet[bot] wants to merge 4 commits into
mainfrom
claude/issue-38306-agents-7c-per-card

Conversation

@objectstack-fleet

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

Copy link
Copy Markdown
Contributor

Requested by Leehom · project thread
Fixes #38306
Clause-②: no
Metadata-protocol: none
Rule-change: yes

维护者速读

  • 用户无感;车队总说明里"改动超过三千行须你亲自审"这一条,从按单个合并请求计改为按整张卡的全部合并请求(含已合并的)加总计,不挂卡的合并请求按自己一张计。
  • 属于车队自身规则收口:技能手册已按整张卡计,总说明仍是旧说法,读总说明的代理可能以为拆成小请求就能绕开你的审核。
  • 只影响代理判断哪些合并请求须你亲审,不碰产品代码,文件还净减了字节;有问题可直接撤回这一处文字。
  • 这是受管规则文字,需要你审核批准本合并请求。

What changes

AGENTS.md, Multi-agent discipline item 7, class (c) now counts per card, keeps a PR that names no card in the class as
a card of one, and names the rule's home instead of restating it. This executes the maintainer's split-dodge ruling on
#36860 and his merge of #38280 (which moved the pm-dispatch skill to the per-card count); it is not a new rule decision.

7(c) before (origin/main 3579cf1, AGENTS.md:503-506):

(c) a PR whose changed lines exceed 3,000 (additions + deletions, generated files included) — it lands the way a
Tier H surface does: an authorized APPROVED review and then the owning seat, or the maintainer's merge or enqueue.
Read the PR's file list (get_files), its author and its size before you arm anything.

7(c) after (head fac77ca, AGENTS.md:502-506):

(c) every PR of a card whose PRs, merged ones included, total over 3,000 changed lines (generated files included;
a PR naming no card is a card of one; the rule's home: pm-dispatch references/landing-operations.md) — it lands
the way a Tier H surface does. Read the PR's file list (get_files), its author and its card's total before you
arm anything.

The threshold is unchanged (strictly more than 3,000). A carded PR is counted only with its card. A PR that names no
card (a card-less security order, a grouped dependency bump, a task PR opened under the Post-Task Checklist) is a card
of one, so its card's total is its own size: class (c) and the arming check still hold it exactly as the old sentence
did.

Deleted spans (the byte payment, all inside AGENTS.md item 7)

AGENTS.md lands at 78675 bytes, 29 under origin/main's 78704. Every addition is paid by deletion, no headroom is
used, and no ceiling is raised.

  1. 7(a): , which names them and. Prime Directive 14 is the pointer, and "holds the current list" already says it names them.
  2. 7(a): — **this file and `CLAUDE.md` are on it**, plus the joining so. These restate two rows of Prime
    Directive 14's list, which names AGENTS.md and CLAUDE.md itself. 7(a) now reads
    (**Prime Directive #14** holds the current list — re-read it rather than recalling it).
  3. 7(c): `additions + deletions`, (the counting definition is held at the rule's home; "generated files included" stays, see N2).
  4. 7(c), round 2: : an authorized APPROVED review and then the owning seat, or the maintainer's merge or enqueue. This
    restates how a Tier H surface lands, which Prime Directive 14 states ("Tier H by the maintainer's hand (merge or
    enqueue) or an authorized approval", then the owning seat). "it lands the way a Tier H surface does" still points there.

No other rule's meaning changes. 7(a) still sends the reader to Prime Directive 14 and tells them to re-read it, and
Prime Directive 14 still lists this file and CLAUDE.md and still says how a Tier H surface lands.

Ratchet row

scripts/pm/check-skill-line-ratchet.mjs CEILINGS: AGENTS.md goes from 78712 to 78675, the landed size (headroom 0).
The comment now says what happened: the item 7 deletions take the file from 78704 to 78675 bytes, and the 8 bytes of
standing headroom are given back. This is a lowering, so no ruling id is owed.

Round 2

Answers contract record 7248112342 (FAIL at 5b40521). origin/main is merged in (merge commit b812842, no rebase,
no force-push), which brings in #38331.

  • M1, arm (a), item 7 only. The unit stays the card, and a PR naming no card is a card of one. The arming check
    reads "its card's total", which for such a PR is its own size. The clause defines a card, not a per-PR count, so it
    cannot be read as counting a carded PR alone. The done-when grep stays clean: see Acceptance notes.
  • N1 taken: "its card's size" becomes "its card's total", which cannot be read as the triage size or a size/* label.
  • N2 taken: "generated files included" is back in 7(c), paid for by deletion 4.
  • N3 taken: the row comment is rewritten. It no longer credits the rewording with the lowering. It states the landed
    size, the item 7 deletion and the headroom given back.

Tests

No code behaviour changed. Reading at head fac77ca:

  • node scripts/pm/check-skill-line-ratchet.mjs: ✓ check-skill-line-ratchet: AGENTS.md is 78675 bytes (ceiling 78675; headroom 0).
  • Derived gates: see Verification.

Acceptance notes

  • Acceptance grep, git grep -n "3,000" AGENTS.md .claude/skills/pm-dispatch/:
    • before (origin/main 3579cf1): AGENTS.md:503: release (**Prime Directive #15**); (c) a PR whose **changed lines exceed 3,000** (`additions + deletions`, (counts per pull request)
    • after (head fac77ca): AGENTS.md:503: a card whose PRs, merged ones included, total **over 3,000 changed lines** (generated files included; (counts per card)
    • The skill writes the number as 3000 (SKILL.md:196, references/landing-operations.md:69). Both count per card, so the grep's only hit was this line.
  • Observation, not filed: the ratchet run prints an info hint that the AGENTS.md table-row pin (MAX_TABLE_ROW_BYTES, 768) has 17 bytes of headroom over the widest row (751). The hint predates this PR, and that row is off this card's file surface.
  • The guards that read the line per pull request (the queue guard, check-governed-merges.mjs --pr N, the relay) are pm: guards read the 3,000-line human-review line per pull request — make them follow the per-card total (#36914 follow-up) #38296's, not this card's.

Verification

Two-minute check: git grep -n "3,000" AGENTS.md .claude/skills/pm-dispatch/ prints one line, and that line counts a card's PRs together.

Read first: AGENTS.md:500-506 (item 7, the whole hunk). It carries the rule change, the card-of-one clause and the deletions that pay for them.

Local gates at head fac77ca: 37 derived by dispatch-gates --commands, 37 run, all exit 0

Run under os-verify-lock.sh (slot issue-38306): VERDICT command-exit 0 · held the lock 993s (shared-box seconds).
dispatch-gates --ran: 37 derived famil(ies) accounted for — 37 run, 0 NOT-MEASURED (a DERIVED zero — all 37 recorded an exit code and none of them is 3).

node scripts/check-closing-keyword-parity.mjs :: exit 0
node scripts/check-closing-keyword-parity.mjs --self-test :: exit 0
node scripts/check-comment-mask-corpus.mjs :: exit 0
node scripts/check-declaration-mirrors.mjs :: exit 0
node scripts/check-declaration-mirrors.mjs --self-test :: exit 0
node scripts/check-self-test-wired.mjs :: exit 0
node scripts/check-self-test-wired.mjs --self-test :: exit 0
node scripts/check-self-test-workflow-commands.mjs :: exit 0
node scripts/check-self-test-workflow-commands.mjs --self-test :: exit 0
node scripts/check-whole-set-label-write.mjs :: exit 0
node scripts/check-whole-set-label-write.mjs --self-test :: exit 0
node scripts/ci/plan-test-core-shards.mjs --self-test :: exit 0
node scripts/pm/bare-root-worklist.mjs --self-test :: exit 0
pnpm check:adr-anchors :: exit 0
pnpm check:agent-test-spelling :: exit 0
pnpm check:bash32-floor :: exit 0
pnpm check:ci-filter-parity :: exit 0
pnpm check:cli-command-ids :: exit 0
pnpm check:cross-package-test-inputs :: exit 0
pnpm check:docs-audit-scope :: exit 0
pnpm check:driver-memory-census :: exit 0
pnpm check:entry-guard :: exit 0
pnpm check:gitlink-declared :: exit 0
pnpm check:nul-bytes :: exit 0
pnpm check:parse-guard :: exit 0
pnpm check:pm-dispatch-gates :: exit 0
pnpm check:pm-governed-merges :: exit 0
pnpm check:pm-governed-prose :: exit 0
pnpm check:pm-skill-id-lint :: exit 0
pnpm check:pm-skill-ratchet :: exit 0
pnpm check:pnpm-filter-targets :: exit 0
pnpm check:pnpm-flag-spellings :: exit 0
pnpm check:ratchet-remedy-authority :: exit 0
pnpm check:refd-timer-probe :: exit 0
pnpm check:required-contexts :: exit 0
pnpm check:scripts-symbol-anchors :: exit 0
pnpm check:watch-hint-literal :: exit 0

Verdict lines worth reading:

  • check:pm-skill-ratchet: AGENTS.md is 78675 bytes (ceiling 78675; headroom 0).
  • check:pm-governed-prose: 2 instruction surface(s) name all 17 registered governed surfaces that govern objectstack ... and claim no others.
  • check:pm-skill-id-lint: 134 file(s) clean.
  • check:nul-bytes: OK ... no raw ASCII control bytes.
  • Not in the derived list, but run because it reads AGENTS.md: node scripts/check-published-list-mirrors.mjs exit 0, OK: 1 published list mirror(s) match their constants line for line.
  • overlap-check before the push: VERDICT clean exit 0 against origin/main 3579cf1 (no open PR shares a path).

No changeset (skip-changeset): AGENTS.md and scripts/pm/** publish nothing from any released package. Every
family CI runs beyond this list (artifact rosters, wide-population families, type-check lanes) is CI's to run.

🤖 Generated with Claude Code

https://claude.ai/code/session_01FEkQ5oPfjnm2yWHEwkiYrn

…t discipline 7(c)

7(c) now reads per card (every PR of a card whose PRs together, merged
ones included, change over 3,000 lines) and names pm-dispatch
references/landing-operations.md as the rule's home instead of restating
the count. Paid by deleting 7(a)'s restatement of Prime Directive #14's
list; the AGENTS.md ceiling is lowered 78712 -> 78710 to the landed size.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FEkQ5oPfjnm2yWHEwkiYrn
…t zero bytes

Rewords the per-card clause so AGENTS.md lands at its base size (78708
bytes) with no use of the standing headroom; the ceiling follows to
78708.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FEkQ5oPfjnm2yWHEwkiYrn
@objectstack-fleet objectstack-fleet Bot added the skip-changeset PR has no user-facing published change; bypasses the changeset gate label Nov 28, 2026
@github-actions github-actions Bot added size/s documentation Improvements or additions to documentation labels Nov 28, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-project-manager · session_01FEkQ5oPfjnm2yWHEwkiYrn

Final green head · 2026-11-29T00:17Z · area o5-fleet

  • Head-sha: 5b4052145f8ed06f427d4ce1cfb88066ea0637d3
  • Fixes #38306. AGENTS.md Multi-agent discipline 7(c) now counts per card and names its home (pm-dispatch references/landing-operations.md). The added words are paid by deletions inside item 7 (7(a)'s restatement of Prime Directive 14's list, 7(c)'s counting parenthetical). AGENTS.md stays at 78708 bytes, net 0, and its ratchet row drops from 78712 to 78708. os-dev report 7247752631 on AGENTS.md Multi-agent discipline 7(c): count the 3,000-line review line per card, as the pm-dispatch skill now does #38306.
  • Checks at that head: 26 success · 23 expected skip · 0 failed · 0 pending. mergeable_state clean. 14 changed lines ≤ 3000.
  • Landing tier: check-governed-merges --pr 38404 reads H (AGENTS.md is on the register). Rule-change: yes.
  • Owed: the contract-tier L2 (rules face: AGENTS.md; this area, isolated subagent at CONTRACT_REVIEW_TIER) and L1 (thread L1-a). The seat hands it to the approvers.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-project-manager · session_01FEkQ5nNJM8FQkBco82NDFb

席位核对

L1 (thread L1-a, area o5-fleet) · read 2026-11-29T00:19Z · Head-sha: 5b4052145f8ed06f427d4ce1cfb88066ea0637d3 · verdict ACCEPT

This is the first L1 record on this PR, a full review.

Checklist (l1-face --pr 38404 at 5b40521: CLEAN, 13 items, exit 0)

  • Shape: open, draft, base main. Fixes #38306 is right: the card's one ask (reword 7(c) per card, name its home, keep the ratchet) is the whole diff, and its Blocked-by: #38280 is merged.
  • Scope: 2 files, +7/−7. AGENTS.md item 7 only, and the ratchet row lowered 78712 → 78708. No package, skip-changeset. Clause-②: no · Metadata-protocol: none · Rule-change: yes. AGENTS.md is a governed surface, so this is Tier H and goes to the maintainer through the seat.
  • Gates at 5b40521: 26 success, 23 expected skip, 0 failed, 0 pending; mergeable_state clean.

My readings, at this head

  • Acceptance grep git grep -n "3,000" AGENTS.md .claude/skills/pm-dispatch/ → one rule hit, AGENTS.md:503 "a card whose PRs, merged ones included, total over 3,000 changed lines". The skill spells it 3000 at SKILL.md:196 (按卡合计) and landing-operations.md:69 (行数线按卡计 …含已合并…含生成物). So no line counts per PR, and the pointer's target really holds the counting definition the 7(c) text dropped. The other 3000 hits are port 3000 and a dispatch-runbook character budget, which are not this rule.
  • Wider grep over docs/agents, .claude/agents, CLAUDE.md, skills for 3,000 / 3000 changed: no other restatement left behind.
  • Wording compared against the rule's home: the threshold stays strictly over 3,000; "every PR of a card … merged ones included" matches 「该卡全部 PR(含拆出的后续与已合并)」; the landing path text is unchanged; "its size" becomes "its card's size".
  • Deletions that pay the bytes: 7(a) loses "which names them and" and "this file and CLAUDE.md are on it, so". Prime Directive feat: Comprehensive CRM example demonstrating all ObjectStack protocol features #14 (AGENTS.md:276) still holds the list, and 7(a) still sends the reader there to re-read it, so no class leaves the "never on green alone" rule. wc -c AGENTS.md = 78708 at head, equal to base; check-skill-line-ratchet exit 0.
  • check-governed-merges.mjs --pr 38404: AGENTS.md on the register, 14 changed lines ≤ 3000.

Accepted (no action): the table-row pin headroom note and the #38331 overlap (both orders stay ≤ 78708) are stated in the body with readings. The per-PR guards are #38296's, named.

Owed before hand-off: the contract-tier L2 (governed rule text; running in the area). Then the seat does the Tier H hand-off.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-project-manager · session_01FEkQ5oPfjnm2yWHEwkiYrn

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 5b4052145f8ed06f427d4ce1cfb88066ea0637d3
Local-runs: none
Scope: AGENTS.md + scripts/pm/check-skill-line-ratchet.mjs

Inputs read: card #38306 (body; triage 7240502400, claim 7247429047, dev report 7247752631), its parent #36914 (body and five comments), PR #38280 (merged c091d28; its nine comments, both contract records included), the maintainer's split ruling as recorded on #36860 (seat correction 7126249846, withdrawing 7122844515), PR #38404 (body, its one comment, the two-file list, the net diff of the head against merge base ff69bcabb2), and the 49 check-runs on the head. Cited text was read in the head tree and on origin/main (f42bcc18c6) with git show. Nothing was built, run or re-run.

① Derived judgments

  • 7(c), the per-card limb: right. It agrees with its named home, .claude/skills/pm-dispatch/references/landing-operations.md:69-71, and with SKILL.md:196 on every point the new sentence states. Unit: the card. Members: all of the card's PRs, merged ones included (the home adds the split-off follow-ups, which "a card whose PRs" already covers). Threshold: strictly over 3,000 (home: the sum over 3000; guard constant HUMAN_MERGE_LINE_THRESHOLD, strictly greater). Consequence: every PR of such a card lands as Tier H; the landing clause of 7(c) is unchanged text and SKILL.md:196 adds no Tier S exception.
  • 7(c), the single-PR limb: wrong. The old sentence caught any PR over 3,000 changed lines, card or none. The new one catches only "every PR of a card". A PR that names no card is no longer in the text, and the home does not hold it either: landing-operations.md:69-71 and SKILL.md:196 speak of cards only. Judged in ④ as M1.
  • The arming check, "its author and its card's size": right for a PR that has a card, and it follows from the limb above. It also stops telling the reader to read the PR's own size, which is the same loss as M1; and see N1.
  • Deletion in 7(a), , which names them and: right. No rule is carried by it; "holds the current list" stays.
  • Deletion in 7(a), — **this file and CLAUDE.md are on it**, so: right. Prime Directive 14 names both files in its own list at AGENTS.md:279 (AGENTS.md, CLAUDE.md), AGENTS.md:132 still says "this file is governed", the register GOVERNED_SURFACES carries both rows, and 7(a) still orders the re-read. AGENTS.md:1023-1024 still says Prime Directive 14 names more than ADRs. No other rule's meaning moves with this span.
  • Deletion in 7(c), the counting parenthetical: right as to where it is held. The home at :69 states additions plus deletions, generated files included (含生成物), and the guard states the same in its header and in the words it prints (check-governed-merges.mjs, check-governed-queue-guard.mjs). See N2 for the distance.
  • Ratchet row: right. Blob sizes: AGENTS.md is 78708 bytes at the merge base and 78708 at the head, 1058 lines both; the row moves 78712 to 78708, the head's size, headroom 0. Lowering is allowed by the script's header without a ruling. No other row moves.
  • Done-when grep at the head: git grep -n "3,000" AGENTS.md .claude/skills/pm-dispatch/ prints one line, AGENTS.md:503, and it counts a card. Spelled 3000, the skill has SKILL.md:196 and landing-operations.md:69, both per card, and dispatch-runbook.md:45, a character budget. Met at this head. M1's fix must keep it met; see ④.
  • The guards' accept-set is unchanged: sizeVerdict, the queue guard and the relay still read one PR. That half is pm: guards read the 3,000-line human-review line per pull request — make them follow the per-card total (#36914 follow-up) #38296's. So no landing the queue refuses today is admitted by this diff; what moves is the rule text.
  • No published package surface, schema, export or generated artifact is touched.
  • Check-runs on the head: 49 runs, 26 success, 23 skipped, 0 failed, 0 pending. Success includes Lint & Repo Gates, Lint · PM dispatch-gates, Lint · repo & tooling gates, TypeScript Type Check, Test Core, Test UI, Dogfood Regression Gate, Governed Surface Queue Guard, Check Changeset, Check PR Size and the PR-body guards.

② Semver level

The diff publishes nothing: one hunk in AGENTS.md and one number in a repo-internal script under scripts/pm/. skip-changeset is right and Check Changeset is success. Clause-②: no is right: no accept-set of a published contract moves. Metadata-protocol: none is right. Rule-change: yes is the true value: the hunk changes which PRs go to the maintainer. The record template for these paths prints no rule-change line of its own, so this record carries none.

③ Boundary flags

  • Dev deviation 1, the worktree base is ff69bcabb2 and not 33778d0684. Accepted. 33778d0684 is an ancestor of ff69bcabb2, six commits behind it, and none of the six touches AGENTS.md, the ratchet script or .claude/skills/pm-dispatch/. The claim's premise (7(c) per PR at :503) is the left side of this diff.
  • Dev deviation 2, Rule-change: yes with no .claude/** path in the diff. Accepted. The line decides the tier only for .claude/**; AGENTS.md is Tier H by its own row whatever the line says. The value is true and the card asks for it.
  • Dev deviation 3, the first local gate run stopped and re-run on the final head. Accepted. The gate verdicts this record reads are the check-runs on the head, all success or skipped.
  • The PR body's statement that no other rule's meaning changes and that this is not a new rule decision. Not accepted as written: the reworded 7(c) drops a class the old sentence held, and neither the body nor the dev report names it. See M1.
  • Overlap, ci(required-contexts): register Temporal Conformance (live PG + MySQL) as a required context again #38331. It is no longer open: merged 2026-11-28T23:45:29Z as c610020e2f. On main AGENTS.md is now 78704 bytes and its row still reads 78712. Its hunk (AGENTS.md:510-515, the required-contexts sentence) and this one (:501-506) do not share a line, and GitHub reads this PR mergeable and clean against f42bcc18c6. Merged file, derived from the two blob deltas and not measured: 78704 bytes under this PR's row of 78708, headroom 4. The reverse order no longer exists.
  • Overlap, chore(pm): probe classifier carve-out, paste-safe rerun line, runnable probe rule (#35237 slice 13) #38393. Open; it edits the same script but the .claude/agents/os-dev.md row, a different line. Other open PRs were not swept for AGENTS.md: NOT MEASURED here, and the seat's overlap-check before landing is the reading.
  • Dev out-of-scope note, the table-row pin has 17 bytes of headroom over the widest AGENTS.md row. It predates this PR and is not in the diff. No finding; filing it is the seat's call.
  • What "a card's PRs" are mechanically (a Part of tracker card, a PR naming several cards, a closed and unmerged PR) is unruled and sits with the maintainer on pm: guards read the 3,000-line human-review line per pull request — make them follow the per-card total (#36914 follow-up) #38296. 7(c) inherits the home's letter, which over-routes and fails safe. Not this PR's to settle.
  • Fixes #38306: right once M1 is closed; the card has no other open bullet.
  • SQL push-down (Prime Directive 5): no query, id materialisation or join in the diff.

④ Design judgment

AGENTS.md

M1 (must-fix) — the reworded 7(c) releases, in the text, a PR that names no card. Before: "a PR whose changed lines exceed 3,000", any PR. After: "every PR of a card whose PRs, merged ones included, total over 3,000 changed lines", and the arming check reads "its card's size" where it read "its size". A PR with no card is not "a PR of a card", so class (c) and the arming check are both silent on it.

  • It is a real class, not a corner. security-findings.md:27 has public-repo security fixes dispatched on card-less orders (无卡派发令). .github/dependabot.yml opens grouped npm bumps with no card, and their lockfile churn counts, since generated files are included. AGENTS.md:1019-1022 tells any agent that finishes a task to open a PR and arm it under item 7, and asks for no card.

  • The named home does not hold it. landing-operations.md:69-71 and SKILL.md:196 state the line per card only. The one place that still says a single pull request over the line lands by a human, whatever its paths, is the guard's own header and printed words (check-governed-merges.mjs:228-235, the maintainer's words of 2026-09-18 and 2026-10-09). That is an instrument, not rule text a reader of AGENTS.md is sent to.

  • It contradicts the card's premise and its source. Card AGENTS.md Multi-agent discipline 7(c): count the 3,000-line review line per card, as the pm-dispatch skill now does #38306 says the per-card rule is a strict superset of 7(c); with this wording it is not. Contract record 7238652086 on docs(pm-dispatch): the 3,000-line human-review line is counted per card, across every PR the card produces #38280, which the card names as its source, found the skill text silent on a pull request that names no card and relied on AGENTS.md 7(c) to catch it by its own size. That catch is what this hunk removes.

  • No ruling covers it. The split ruling (7126249846 on 元数据列表列改为在 spec 里声明,经 /meta/types 下发(像表单布局一样);第一批补上 hook、flow、job 等类型的关键列 #36860) adds the per-card count; nothing in it or in the merge of docs(pm-dispatch): the 3,000-line human-review line is counted per card, across every PR the card produces #38280 releases a PR counted alone.

  • Reach: the queue guard still refuses such a PR mechanically, so the damage is to the text. The single source of truth becomes looser than the guard, and "open it without a card" becomes arguable there, which is the same family of dodge this card exists to close.

  • Fix, either arm, both in item 7 only. (a) Keep the unit per card and say a PR that names no card is counted alone. (b) Keep both limbs: a PR over the line, and every PR of a card whose PRs total over it. In both, the arming check reads the PR's own size as well as its card's total. Arm (a) keeps the card's done-when grep clean by construction. Under arm (b) the single-PR limb must read as an addition for the card-less case and never as the count for a carded PR, or the seat rules the grep's reading on the card.

  • Bytes: pay by deletion. The row on main is 78712 and the file there is 78704, so after merging main any row up to 78712 is no raise and needs no ruling; only a row above 78712 would.

  • N1 (nit) — "its card's size" names the card's total changed lines only by leaning on (c). The fleet also writes "size S" for a card's triage estimate (triage 7240502400 on this card) and size/s as a PR label, so a reader can satisfy the sentence with the wrong number. "its card's total", or the wording M1's fix lands, removes it.

  • N2 (nit) — "generated files included" was the property the original ruling turned on (PR feat(spec): pin every export by its .d.ts declaration text, and retire the 27 signature hashes #18971, 237,706 regenerated lines). It is now one hop away, in a pm-dispatch reference that an agent reading only AGENTS.md does not load. The card orders the pointer in place of the copy and the guard counts generated lines regardless. Accepted deviation, unless M1's round has bytes to spare for two words.

The rest of the hunk holds. The pointer spelling, pm-dispatch references/landing-operations.md, is the form AGENTS.md:442-443 already uses for references/readings-write-shapes.md. The file exists at the head and its :69 states the rule the pointer claims. "merged ones included" and "over 3,000" read one way only. 7(a) reads cleanly after its two cuts and still sends the reader to Prime Directive 14. Nothing else in AGENTS.md or in docs/agents/ states the line, so no second per-PR sentence is left behind.

scripts/pm/check-skill-line-ratchet.mjs (implementing file)

The one changed row agrees with the contract it enforces: 78708 is the head blob's size, a lowering is allowed to any PR by the header, and no ruling id is owed. No other row and no code moves.

  • N3 (nit) — the row comment says the row was lowered by the rewording, "paid by deleting 7(a)'s restatement". The rewording is byte-neutral (78708 before and after); the 4 bytes are standing headroom the row gives back. M1's round re-pins this row anyway, so the comment is rewritten with it.

Implemented-by: claude/issue-38306-agents-7c-per-card
Reviewed-by: session_01FEkQ5oPfjnm2yWHEwkiYrn

VERDICT: FAIL

Round 2 of the per-card rewording. A PR naming no card is a card of
one, so class (c) and the arming check ("its card's total") still hold
it by its own size while a carded PR is counted only with its card.
"generated files included" is back. Paid by deleting 7(c)'s restatement
of how a Tier H surface lands (Prime Directive 14 states it). AGENTS.md
78704 -> 78675 bytes; the ceiling follows to 78675.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FEkQ5oPfjnm2yWHEwkiYrn
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-project-manager · session_01FEkQ5oPfjnm2yWHEwkiYrn

Final green head (round 2) · 2026-11-29T01:16Z · area o5-fleet

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-project-manager · session_01FEkQ5nNJM8FQkBco82NDFb

席位核对

L1 (thread L1-a, area o5-fleet) · read 2026-11-29T01:18Z · Head-sha: fac77ca6284d449a944f0b7e37691d7e0937a747 · verdict ACCEPT (delta)

This is a delta from my ACCEPT 7248035503 at 5b405214. It answers contract FAIL 7248112342 (M1). Only what moved is read here.

Checklist (l1-face --pr 38404 at fac77ca: CLEAN, 13 items, exit 0)

My readings, at this head

  • M1, arm (a). The text now reads "every PR of a card whose PRs, merged ones included, total over 3,000 changed lines (… a PR naming no card is a card of one …)". A card-less PR is back in class (c), counted alone, which is the old single-PR limb. For a carded PR the card's total includes the PR's own lines, so "its card's total" in the arming check covers the PR's own size in both cases. N1 ("size" vs triage size S) is closed by "total".
  • "generated files included" is back in place, so N2 is closed.
  • The landing path. "an authorized APPROVED review and then the owning seat, or the maintainer's merge or enqueue" became "it lands the way a Tier H surface does". Prime Directive feat: Comprehensive CRM example demonstrating all ObjectStack protocol features #14 (AGENTS.md:276, :291–293) states that path whole: the maintainer's merge or enqueue, or an authorized APPROVED review by a GOVERNED_APPROVERS account, after which the owning seat lands it. Nothing is lost, and the pointer is the card's own pattern.
  • The rule's home lacks "card of one". landing-operations.md:69 speaks of cards only. This is not a defect. The mechanical guard counts each PR alone whatever it names (check-governed-merges.mjs:1408, HUMAN_MERGE_LINE_THRESHOLD = 3000, :3613 changedLines > HUMAN_MERGE_LINE_THRESHOLD), so a card-less PR over the line is caught either way. The contract review's M1 fix ordered "item 7 only".
  • Done-when grep git grep -n "3,000" AGENTS.md .claude/skills/pm-dispatch/ gives one line, AGENTS.md:503, which counts a card.
  • Bytes: wc -c AGENTS.md = 78675 at head, equal to the ratchet row (78712 → 78675). The row comment now says the 8 B of headroom were given back and the rewording was paid inside item 7, so N3 is closed.

Owed before hand-off: the delta contract-tier L2 on this head (running in the area). Then the seat does the Tier H hand-off.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-project-manager · session_01FEkQ5oPfjnm2yWHEwkiYrn

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: fac77ca6284d449a944f0b7e37691d7e0937a747
Local-runs: none
Scope: AGENTS.md + scripts/pm/check-skill-line-ratchet.mjs

Delta review from 5b4052145f8ed06f427d4ce1cfb88066ea0637d3 (record 7248112342, which named M1 and nits N1 to N3) to this head.

Inputs read: record 7248112342; PR #38404 (its body with the Round 2 note, its four other comments, the two-file list); card #38306 (body, triage 7240502400, claim 7247429047, dev reports 7247752631 and 7248666867); the net diff of the head against merge base 3579cf136d (2 files, +7/−7); the round-2 delta 5b4052145f..fac77ca628 on the two files; the 48 check-runs on the head. Cited text was read in the head tree with git show and git grep on the head's objects: AGENTS.md item 7 and Prime Directive 14, landing-operations.md, SKILL.md 〈路径分叉〉, the ratchet script, and the size section of check-governed-merges.mjs. Nothing was built, run or re-run.

① Derived judgments

  • 7(c), the card-less limb: right. "a PR naming no card is a card of one" puts every PR without a card back in the class by its own size. A card-less security order (security-findings.md:27), a grouped dependabot bump and a Post-Task Checklist PR (AGENTS.md:1020-1022) each name no card, so each is a card of one whose total is its own changed lines. That is what the sentence on main held.
  • 7(c), the carded limb: right, and unchanged in meaning from the round-1 head. The clause speaks only of a PR that names no card, so it cannot be read as counting a carded PR alone. A carded PR is counted with its card and nowhere else.
  • The class is now a superset of the old one, as card AGENTS.md Multi-agent discipline 7(c): count the 3,000-line review line per card, as the pm-dispatch skill now does #38306 says it should be. Any PR over the line is held on every reading: a carded PR's own lines are part of its card's total, and a card-less PR's total is its own lines.
  • The arming check, "its author and its card's total": right. For a carded PR it is the card's sum. For a card-less PR the clause two lines above makes the total its own size. A separate own-size clause would add nothing, since no PR's own size can exceed the total it is counted in.
  • Done-when grep at the head, git grep -n "3,000" AGENTS.md .claude/skills/pm-dispatch/: one line, AGENTS.md:503, "a card whose PRs, merged ones included, total over 3,000 changed lines (generated files included;". It counts a card. The card-of-one clause sits on :504 and carries no number. No line counts per pull request. Spelled 3000, the skill has SKILL.md:196 and landing-operations.md:69, both per card, and dispatch-runbook.md:45, a character budget.
  • Agreement with the home (landing-operations.md:69-71) and SKILL.md:196. Unit: the card. Members: all of the card's PRs, merged ones included (the home adds split-off follow-ups). Threshold: a sum strictly over 3,000. Generated files: included in both ("generated files included", 含生成物). Consequence: every PR of such a card is Tier H, and SKILL.md:196 allows no Tier S exception. 7(c) agrees on all five. It adds the card-of-one limb, on which the home is silent (see N4).
  • ①′ The landing clause: right, nothing is lost. The deleted words were "an authorized APPROVED review and then the owning seat, or the maintainer's merge or enqueue". Prime Directive 14 states the same landings for Tier H. AGENTS.md:276-277: "Tier H by the maintainer's hand (merge or enqueue) or an authorized approval". AGENTS.md:291-293: the four bans lift "only for an authorized APPROVED review by an account in GOVERNED_APPROVERS, on ANY commit and not dismissed", and "the OWNING seat then lands it". AGENTS.md:302-303 adds that no agent seat approves and that an authorized account's enqueue is a review record. So who may land a class-(c) PR is unchanged: the maintainer by merge or enqueue, or the owning seat after an authorized approval. "Tier H" appears in AGENTS.md only in Prime Directive 14 and in this line, and 7(a) names that directive in the same sentence, so a reader of AGENTS.md alone reaches it. The guard prints the same landings for the size limb (check-governed-queue-guard.mjs:3160).
  • The counting definition: right. "generated files included" is back in 7(c). additions + deletions stays deleted and is held at the home (:69) and in the guard's header.
  • The two 7(a) deletions are unchanged since round 1 and stay right: Prime Directive 14 lists AGENTS.md and CLAUDE.md itself, and 7(a) still orders the re-read.
  • Ratchet row: right. Blob sizes: AGENTS.md is 78704 bytes at the merge base and on origin/main, and 78675 at the head (1058 lines). The row moves 78712 to 78675, the head's size, headroom 0. It is a lowering, which the script's header allows any PR that shrinks its file, with no ruling owed. The comment's figures hold: 78704 to 78675 by the item 7 deletions, and 8 bytes of standing headroom (78712 less 78704) given back. No other row differs from main.
  • The guards' accept-set is unchanged: sizeVerdict, the queue guard and the relay still read one PR. No landing the queue refuses today is admitted by this diff.
  • No published package surface, schema, export or generated artifact is touched.
  • Check-runs on the head: 48 runs, 26 success, 22 skipped, 0 failed, 0 pending. Success includes Lint & Repo Gates, Lint · PM dispatch-gates, Lint · repo & tooling gates, TypeScript Type Check, Test Core, Test UI, Dogfood Regression Gate, Governed Surface Queue Guard, Check PR Size and the PR-body guards.

② Semver level

The diff publishes nothing: one hunk in AGENTS.md and one row in a repo-internal script under scripts/pm/. skip-changeset is right; Check Changeset is skipped on the head, which is that label's exemption path in pr-automation.yml. Clause-②: no is right: no accept-set of a published contract moves. Metadata-protocol: none is right. Rule-change: yes is the true value: the hunk changes which PRs go to the maintainer, and AGENTS.md is Tier H by its own row. The record template for these paths prints no rule-change line, so this record carries none.

③ Boundary flags

  • Round-2 deviation 1, the local branch ref deleted and the worktree resumed at 5b4052145f. Accepted. The remote history is intact: 81949d4ecd, 5b4052145f, the merge b8128422a5 (parents 5b4052145f and 3579cf136d), then fac77ca628. The round-1 head is an ancestor of this head, so nothing was rewritten or force-pushed. The deleted ref was local and equal to the remote.
  • Round-2 deviation 2, the arming check has no separate own-size clause. Accepted, for the reason given in ①: the card-of-one clause makes it redundant. Record 7248112342 asked for the own-size reading in the arming check; the clause delivers it by definition.
  • The three round-1 deviations stay accepted as record 7248112342 left them. open_questions is empty in both dev reports.
  • The PR body's statement that no other rule's meaning changes. It now holds at this head: the card-less class is back, the 7(a) cuts restate Prime Directive 14, and the cut landing clause is that directive's own text.
  • The merge b8128422a5 brings in ci(required-contexts): register Temporal Conformance (live PG + MySQL) as a required context again #38331 and chore(pm): probe classifier carve-out, paste-safe rerun line, runnable probe rule (#35237 slice 13) #38393. The net diff against the merge base is still the two files, 7 lines each way. origin/main (28c2fe88b7) is five commits past the merge base; none touches AGENTS.md, the ratchet script or .claude/skills/pm-dispatch/. GitHub reads the PR mergeable and clean.
  • Other open PRs that edit AGENTS.md were not swept: NOT MEASURED here. With headroom 0 at 78675, one that adds bytes meets a red ratchet after this lands. The seat's overlap-check before landing is the reading.
  • The table-row pin note (17 bytes of headroom over the widest AGENTS.md row) predates this PR and is not in the diff. No finding.
  • What ties a PR to a card mechanically is unruled and sits on pm: guards read the 3,000-line human-review line per pull request — make them follow the per-card total (#36914 follow-up) #38296. See N5.
  • Fixes #38306: right. The card's done-when is met at this head.
  • SQL push-down (Prime Directive 5): no query, id materialisation or join in the diff.

④ Design judgment

AGENTS.md

  • M1: closed. The fix is arm (a) of record 7248112342, inside item 7 only. The card-less class is back in the text of class (c) and of the arming check, the unit for a carded PR is still the card, and the done-when grep is clean by construction.
  • N1: taken. "its card's total" cannot be read as a triage size or a size/* label.
  • N2: taken. "generated files included" is restored in 7(c).
  • N4 (nit) — the pointer to the rule's home shares a parenthetical with the card-of-one clause, but the home does not hold that clause. landing-operations.md:69-71 and SKILL.md:196 speak of cards only, so AGENTS.md alone holds a card-less PR, as it did before this PR. Which PRs are held does not change: the stricter text applies and the guard refuses a single PR over the line. A line at the home is a .claude/** edit outside this card's file surface. Follow-up at the seat's call; no change on this head.
  • N5 (nit) — "naming" makes the card-less limb turn on what the PR declares. The home counts a card's split-off follow-ups (含拆出的后续) and does not say how a PR is tied to its card. A split-off half opened without naming its card reads as a card of one in 7(c) and as the card's PR at the home. Nothing is released: the home binds the dispatching seat, and the per-PR sentence on main did not hold that case either. It is the membership question pm: guards read the 3,000-line human-review line per pull request — make them follow the per-card total (#36914 follow-up) #38296 carries. The seat carries it there; no change on this head.

The rest of the hunk holds. 7(c) is one sentence that reads one way: the class, its counting notes, its home, its landing. The pointer spelling matches the form AGENTS.md already uses for pm-dispatch references, and the file exists at the head with the rule at :69. Nothing else in AGENTS.md or docs/agents/ states the line, and no other file in the head tree quotes the sentences this hunk replaced.

scripts/pm/check-skill-line-ratchet.mjs (implementing file)

  • N3: taken. The row comment now states the landed size, the item 7 deletion (78704 to 78675 bytes) and the 8 bytes of headroom given back. It no longer credits the rewording with the lowering.

The one changed row agrees with the contract it enforces: 78675 is the head blob's size, a lowering needs no ruling id, and no other row or code moves.

No must-fix, no should-fix.

Implemented-by: claude/issue-38306-agents-7c-per-card
Reviewed-by: session_01FEkQ5oPfjnm2yWHEwkiYrn

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-project-manager · session_01FEkQ5mzSTSPADAvwapnhxr

维护者速读

席位意见:同意合并。文字只指向规则所在的 landing-operations.md,不另行复述;为守字节上限删去「本文件和 CLAUDE.md 也在名单上」一句(第 14 条名单本身照列,含义不变),AGENTS.md 78,712 → 78,675 字节,上限行同步下调。

席位核对 — ACCEPT · repo:objectstack#5 · Head-sha fac77ca6284d449a944f0b7e37691d7e0937a747 · 2026-11-29T01:24Z

  1. 形态:open draft → main,2 files(AGENTS.md、scripts/pm/check-skill-line-ratchet.mjs 上限行),+7/−7,Fixes #38306,Clause-②: no,Metadata-protocol: none,Rule-change: yes,skip-changeset。
  2. 前提实测:席位自读 AGENTS.md 全部改动行:7(c) 由「a PR whose changed lines exceed 3,000」改为「every PR of a card whose PRs, merged ones included, total over 3,000 changed lines … a PR naming no card is a card of one」,指向 references/landing-operations.md;与已合并 docs(pm-dispatch): the 3,000-line human-review line is counted per card, across every PR the card produces #38280 的技能文字同义。删去的括注只是重复第 14 条名单。
  3. 门禁 check-runs:本 head 全绿,mergeable_state clean(area 定稿评论 7248682360)。
  4. 接受的偏差:N4(landing-operations.md 未写 "card of one" 一句;守卫已逐 PR 计数,可选的一行 .claude/** 跟进由 o5-fleet 视情况立卡);N5(拆出的一半不点名卡即自成一卡,属 pm: guards read the 3,000-line human-review line per pull request — make them follow the per-card total (#36914 follow-up) #38296 的成员归属问题)。
  5. 范围外去向:N5 → pm: guards read the 3,000-line human-review line per pull request — make them follow the per-card total (#36914 follow-up) #38296。落地后 AGENTS.md 字节余量为 0:任何增字节的 AGENTS.md PR 落地前须先过 overlap-check 与 ratchet。Skills-docs: 不欠。
  6. 落地条款:Tier H(AGENTS.md,Rule-change: yes);契约档 L2 复审 PASS 7248756804 在本 head(第一轮 FAIL 7248112342,M1 已闭),无未闭须修/应修;L1-a delta ACCEPT 7248702502(首轮 7248035503)。维护者批准后由席位落地(ready + auto-merge),⛔ 未批不入队。

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-project-manager · session_01FEkQ5mzSTSPADAvwapnhxr

Approval requested (Tier H, AGENTS.md, Rule-change: yes) · 2026-11-29T01:25Z

  • Head-sha: fac77ca6284d449a944f0b7e37691d7e0937a747
  • 维护者速读 and the seat's ACCEPT: the seat record above. Contract-tier delta PASS on this head: 7248756804 (no open must-fix or should-fix). L1-a delta ACCEPT: 7248702502.
  • After your approval the seat lands it (ready + auto-merge); it stays draft until then.

@objectstack-fleet objectstack-fleet Bot added the pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue label Nov 29, 2026
@os-zhuang
os-zhuang marked this pull request as ready for review November 29, 2026 01:37
@os-zhuang
os-zhuang added this pull request to the merge queue Nov 29, 2026
@os-zhuang
os-zhuang removed this pull request from the merge queue due to a manual request Nov 29, 2026
@os-zhuang

Copy link
Copy Markdown
Contributor

这个规则没必要,直接关闭。

@os-zhuang os-zhuang left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个规则不需要,关闭

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-project-manager · session_01FEkQ5mzSTSPADAvwapnhxr

Closed, not planned · 2026-11-29T01:39Z · on the governed approver's word on this PR, verbatim: 「这个规则没必要,直接关闭。」 (os-zhuang, comment 7248924941, after dequeuing it at 2026-11-29T01:38Z). Card #38306 closes with it, not planned. AGENTS.md 7(c) stays as it is on main. The per-card reading already merged in the pm-dispatch skill (PR #38280, references/landing-operations.md) is not touched by this close; whether it should also go is a separate question and is not acted on here.

@objectstack-fleet objectstack-fleet Bot removed the pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue label Nov 29, 2026
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.

AGENTS.md Multi-agent discipline 7(c): count the 3,000-line review line per card, as the pm-dispatch skill now does

3 participants