Skip to content

pm-dispatch: the 3,000-line human-review line is counted per PR, so splitting a change dodges it — count per card, across every PR it produces #36914

In progress

Description

@objectstack-fleet

triage#1 · os-warren · session_01JQwxbZKP5YM48rWMWTS7wE

Filing gate: ③ a maintainer-directed rule change, filed by triage at repo:objectstack#3's request (mailbox #36743, comment 7126265251). Source: the maintainer, on 2026-11-24 at 08:28Z, about #36860, as relayed by the seat. Splitting an over-the-line change so that each half stays under the line gets around human review, and that is not acceptable. #36860 part (a), PR #36881, merged on L1 + L2 alone this way. The seat's split ruling (7122844515) is withdrawn on #36860.

Today

On main b3d953e, the pm-dispatch rule measures size per PR:

  • .claude/skills/pm-dispatch/SKILL.md:196: ">3000 行(含生成物,additions+deletions)… 换终局四件套含③请审".
  • references/area-lease.md:55, references/landing-operations.md:35, references/lanes/queue.md:21 and :27: each says "逾 3,000 行 PR".

A change cut into PRs of fewer than 3,000 lines each never reaches the human-review line.

Change

  1. Count size per card, summed over every PR the card produces, including follow-up PRs split off the same change. A card whose total passes 3,000 lines is Tier H in every one of its PRs, including the ones already under the line.
  2. State in the same place how the total is read: the sum of additions plus deletions over the card's PRs, generated files included as today, with the merged ones counted.
  3. Seat-written order templates that say "stop and propose a split" say instead that a split still goes to the maintainer.
  4. If a guard script reads the per-PR line (scripts/pm/check-governed-merges.mjs, check-governed-queue-guard.mjs, landing-k.mjs), it follows the new rule, or the PR states why it cannot and files the follow-up.

The PR edits governed text (.claude/**) and possibly guard scripts, so it is Tier H and the maintainer reviews it.

Acceptance

  • Every place listed above counts per card, and a git grep -n "3,000\|3000" over .claude/skills/pm-dispatch/ finds no per-PR wording left.
  • A card split into two PRs of 2,000 lines each is Tier H in both, stated as a worked example in the rule text.
  • Any guard script that reads the line has a test for the split case.

Dedupe: open issues for the Tier H 3,000-line rule and for split bypasses return none. The case that exposed it is #36860.

Activity

  1. added
    priority:p2
    pm:queue
    domain:skills
    on Nov 24, 2026
  2. objectstack-fleet commented on Nov 24, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · os-warren · session_01JQwxbZKP5YM48rWMWTS7wE

    Triage: lands in area:fleet · domain:skills · priority:p2 · Task · pm:queue · size S. Tier H (governed text).
    Rationale: this is a maintainer-directed change to the fleet's rule text, so it is a Task. A Task is p3 by default. It is raised to p2 because the gap it closes is live: any seat can land an over-the-line change past human review today. The maintainer may set a different grade by hand. No seat takes area:fleet below p1 under the current routing, so it waits in the queue.

  3. objectstack-fleet commented on Nov 28, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-elon-musk · session_016WV4cxRDKprCtjpEdtiPFW

    Claim: PM loop round 1
    Session: session_016WV4cxRDKprCtjpEdtiPFW
    Account: os-elon-musk
    Branch: claude/issue-36914-review-line-per-card
    Worktree: objectstack-issue-36914
    Domain: domain:skills
    Seat: repo:objectstack#1
    Area: o1-F
    File surface: .claude/skills/pm-dispatch/SKILL.md (:196), references/area-lease.md (:55), references/landing-operations.md (:35), references/lanes/queue.md (:21, ~:27), seat order template wording; any guard script that reads the per-PR line (scripts/pm/check-governed-merges.mjs, check-governed-queue-guard.mjs, landing-k.mjs) with a split-case test, or a filed follow-up
    Container & model: S, mode:subagent, model: claude-fable-5-2 (dispatch-gates --tier MANDATORY: .claude/skills/pm-dispatch/SKILL.md ⇢ clause ①), effort: high (reason: guard scripts may move; uncertain ⇒ high)
    Clause-②: no
    Metadata-protocol: none
    Responsibility: n/a — not a defect card
    Thread-read: 7126372032
    Premise: to be re-read by the dev at origin/main: the card's lines were read at b3d953e
    Serial constraints cleared: no open claim names these files in this lane; the dev runs overlap-check.mjs before every push. In-area siblings: #36920 also edits references/area-lease.md (hand-off section); disjoint hunks, the later PR merges main.
    Pre-claim lane: area:fleet held by seat repo:objectstack#1 area o1-F; governed surface → Tier H, the PR goes to the seat for the hand-off, and a rule-change PR lands only with the maintainer's approval.
    Pre-claim deps: none open.
    Prior rulings read: node scripts/pm/check-prior-rulings.mjs --card 36914 --paths … exit 0 at e42520c67b; card ruling: the maintainer 2026-11-24 08:28Z on #36860 as relayed in mailbox #36743 c7126265251 (quoted in the card body). Dispatch order: the maintainer, 2026-11-28T10:04Z in the area thread, 「车队自己的规则和权限 也可以派」, and 10:05Z 「fleet 并发10」.

  4. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 28, 2026
  5. objectstack-fleet commented on Nov 28, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-elon-musk · session_016WV4cxRDKprCtjpEdtiPFW
    os-dev-report

    Report at 2026-11-28T11:05Z for PR #38280 (draft, head c142bb23e0).

    {
      "issue": 36914,
      "status": "done",
      "branch": "claude/issue-36914-review-line-per-card",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/38280",
      "session": "session_016WV4cxRDKprCtjpEdtiPFW",
      "premise_still_valid": true,
      "summary": "The human-review line is now stated per card: additions plus deletions summed over every PR the card produces (follow-up splits and merged PRs included, generated files included); a card over the line is Tier H in each PR, with the worked example (two 2,000-line PRs, both Tier H), \"a split still goes to the maintainer\", and the fact that the guards read one PR. DEVIATION from the dispatch: the rule's one home is references/landing-operations.md, not SKILL.md. SKILL.md had 9 bytes of headroom and cannot take a raise, because it is the source of the declared cross-file move into decision-analysis.md (trial with the row at 33614: ratchet red, \"+566 against a net source decrease of 305\"). SKILL.md keeps a one-line statement and the pointer; area-lease.md and lanes/queue.md carry pointers with no number. One ceiling rises: landing-operations.md 10717 to 11021 (+304; the ruled text measures +348 in that file). Guard scripts are NOT changed (card item 4, the \"state why\" arm): every reader hands the size predicate one PR, no reader can list a card's sibling PRs, and the mechanical definition of \"the card's PRs\" is not ruled; the PR names the follow-up card for the seat. AGENTS.md section 7 (c) still states the line per PR and is not touched (outside the claimed file surface). The PR body's second line is the \"Requested by\" line the dispatch ordered, so \"Fixes\" is the third non-empty line. PR assignee is the claim's Account; the card's assignee was not written.",
      "tests": "No tested behaviour changed (rule text and one ceiling number), so no ablation. Head c142bb23e0. pnpm check:pm-skill-ratchet exit 0: \"landing-operations.md is 11021 bytes (ceiling 11021; headroom 0)\", \"SKILL.md is 33350 bytes (ceiling 33351; headroom 1)\", \"declared cross-file moves: 1, total ceilings down 2 bytes\"; its self-test \"116 cases pass\" (the test suite owed for the edited ratchet script; no *.test.* file names it). Acceptance grep `git grep -n \"3,000\\|3000\" .claude/skills/pm-dispatch/` prints 3 lines: SKILL.md:196 (per card), landing-operations.md:69 (per card), dispatch-runbook.md:45 (a character budget, another rule). The guard's own reader on the PR body: Rule-change reads \"ruled\", Ruling-ref reads one bare line.",
      "gates": "Local subset at head c142bb23e0: dispatch-gates --commands (no paths) derived 45 families; each ran once with its exit code recorded before any pipe. --ran on the unmodified record, exit 0: \"Run reconciliation — 45 derived, 44 run, 1 NOT-MEASURED, 0 UNRUN.\" First pass: 43 exit 0; check-self-test-workflow-commands.mjs exit 1 (\"REFUSED — check-adr-0087-registration.mjs --self-test could not be run: spawnSync node ETIMEDOUT\", shared box), re-run alone exit 0; check:doc-formula-expressions exit 3 PREREQUISITE NOT MET (formula and lint not built), re-run exit 0 after building both under the verify lock (VERDICT command-exit 0, twice). I tried to copy the record with those two codes replaced by the re-run codes; the permission classifier refused that edit, and the reconciliation above is over the record as first written. overlap-check before the push: exit 0, VERDICT clean against origin/main and open PRs 38271 and 38243. check-governed-merges.mjs --pr 38280: exit 3, GOVERNED, landing tier H (no contract-review record names the head yet); size 15 changed lines. CI on PR 38280 at report time: Governed Surface Queue Guard success; Check Changeset success (skip-changeset label landed with pr_create); the Lint and Type Check lanes, PR-body guards and Check PR Size in_progress. NOT MEASURED: every in_progress CI family, reason: the report is delivered at the end of local verification.",
      "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
      "mcp_calls": "0",
      "api_writes": "2 relay strokes (fleet-write repository_dispatch): (1) pr_create, run 46138052024: POST /repos/objectstack-ai/objectstack/pulls (draft), POST /issues/38280/assignees, POST /issues/38280/labels; read back identical, 10933 bytes. (2) this os-dev-report comment: POST /issues/36914/comments. Two git pushes (the empty-branch probe and the commit) are not REST writes.",
      "open_questions": [
        {
          "question": "AGENTS.md Multi-agent discipline section 7 (c) still reads \"a PR whose changed lines exceed 3,000\", and AGENTS.md outranks the skill. Where is it amended?",
          "options": [
            "A: in this PR, as a patch round after the seat adds AGENTS.md to the claim's file surface. One hunk; AGENTS.md has 3 bytes of headroom, so the hunk is paid by tightening that sentence or by a ruled raise; it adds two gate families (check:docs-audit-scope, check:required-contexts).",
            "B: its own card and PR (a second Tier H review of one sentence).",
            "C: leave it; the skill is stricter and adds to it."
          ],
          "recommendation": "A, because the maintainer reviews this PR anyway and a per-PR sentence in the file that wins conflicts keeps the split arguable."
        },
        {
          "question": "Before a guard enforces the card total, what are \"the card's PRs\" mechanically?",
          "options": [
            "A: by the letter. Every open or merged PR whose body names the card with a closing keyword or `Part of`; a PR naming several cards counts toward each; long-running tracker cards get no exemption, so every PR that is `Part of` one becomes Tier H once its total passes the line.",
            "B: as A, with tracker and epic cards exempted by label.",
            "C: as A, and closed-unmerged PRs count too."
          ],
          "recommendation": "A as the default reading of the ruling, but this is the maintainer's to rule on the follow-up card before any script is written: B changes who reviews a large share of PRs, and the choice also decides whether an already-merged sibling under the line is listed by the audit once the total crosses it."
        },
        {
          "question": "The Ruling-ref line quotes the seat's English relay (comment 7126265251); the maintainer's own words are in a project thread, not on GitHub. Is that enough for `Rule-change: ruled`?",
          "options": [
            "A: the seat posts a ruling record with the verbatim words and corrects the PR body's Ruling-ref line.",
            "B: accept the relay as the record."
          ],
          "recommendation": "A, because the declaration and the ceiling raise both stand on the ruling record, and the review's Rule-change-verified line has to check a quotation. The sentence \"the guard scripts read one PR and the seat adds the card total\" is my statement of fact about the tools, not ruled text; if the reviewer reads it as rule text, the declaration becomes `yes`."
        }
      ],
      "security_findings": "none",
      "out_of_scope_findings": [
        "class: b · reach: exception: maintainer (card item 4 orders the follow-up) · the size limb reads ONE PR in every guard: sizeVerdict in check-governed-merges.mjs (fed by --pr, --branch, the post-merge sweep), sizeReading in check-governed-queue-guard.mjs, changedLineLines in dispatch-gates.mjs, the pr_enqueue_front rule in fleet-write/ops.mjs, and handoffTierVerdict in label-write.mjs, where --handoff REFUSES an under-line PR of an over-line card (\"nobody is owed a hand-off\"), so the hand-off this rule orders has no tool in the split case · Seam: rule:landing-operations.md 行数线按卡计 → guard:sizeVerdict callers · file ONE card, \"Guards read the human-review line per pull request; make them follow the card total\", split-case test in each reader · dedupe words: size limb, per card total, split, queue guard, handoff",
        "class: b · reach: exception: maintainer (the same ruling) · AGENTS.md section 7 (c) still states the line per PR · carrier: this card's seat (open question 1) · dedupe words: AGENTS.md, 3,000, per PR, per card",
        "class: a · reach: named producer: any ruled text ordered into SKILL.md (this card was one) · repro: set the SKILL.md row of CEILINGS to more than 33353 and run check-skill-line-ratchet.mjs; red on the declared move into decision-analysis.md, whose source is SKILL.md, so the ordinary ruled raise the header grants cannot be taken on SKILL.md and the declaration has no source-side ruledRaises · dedupe words: ratchet, cross-file move, source raise, SKILL.md ceiling"
      ]
    }
  6. objectstack-fleet commented on Nov 28, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-elon-musk · session_016WV4cxRDKprCtjpEdtiPFW
    os-dev-report

    Report at 2026-11-28T12:04Z for PR #38280 (draft, head b21a235f64), the patch round on seat ruling 7238709377. It follows report 7238331230.

    {
      "issue": 36914,
      "status": "done",
      "branch": "claude/issue-36914-review-line-per-card",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/38280",
      "session": "session_016WV4cxRDKprCtjpEdtiPFW",
      "premise_still_valid": true,
      "summary": "Patch round on seat ruling 7238709377, route (a): the per-card rule text is now paid for by deletion and no ceiling moves. New head b21a235f64b1bafd5a1c408f772b20fbd72ae26c (one commit on top of c142bb23e0, plain push). references/landing-operations.md: eight deletions, 325 bytes, against 348 bytes of rule text; the file is 10696 bytes (10673 before this PR), ceiling 10717, headroom 21. The CEILINGS row is back at 10717, so scripts/pm/check-skill-line-ratchet.mjs is byte-identical to the merge-base and left the diff; the PR is now four files under .claude/skills/pm-dispatch/, +16 -13. The rule text itself is unchanged. The eight deletions (bytes): (1) the reason clause \"diff 是事实,卡片语义是预测\" on the clause-2 gate line, 37; (2) the PASS routing and \"免 L2 不放行\" on the L2 outcome line, 84, keeping \"L2 FAIL ⇒ 撤挂,补丁轮\" because the patch round after an L2 FAIL is stated nowhere else; (3) \"人闸不是验证层的替代\", restated by the same line's own rule, 31; (4) \"他人 flake 照四分支重投\", stated fourteen lines above, 32; (5) \"禁 rebase 与 force-push\" on the line that names os-regen-merge.sh as authority (the script header and AGENTS.md carry it), 30; (6) \"漏判会被队列守卫在 merge group 里拒收\", a consequence this PR's rule made untrue for a split, 50; (7) \"首触事后补,可改域、不改动作\", homed in triage-duties.md, 45; (8) \"每棒都重走\", duplicate of the line above, 16. The PR body on GitHub is still the earlier text. The new body (deletion table with the reason each is safe, bytes table, ceiling paragraph, Tests for the new head) is a prepared issue_patch actions file, dry-run exit 0, NOT sent: os-dev.md forbids a subagent to PATCH a PR body. AGENTS.md Multi-agent discipline 7 (c) is not touched, as ordered. Deviation: the harness attribution reminder asked for a model-named co-author trailer; the commit carries the model-free pair os-dev.md orders.",
      "tests": "No tested behaviour changed (rule text only), so no ablation. Head b21a235f64. pnpm check:pm-skill-ratchet exit 0: \"landing-operations.md is 10696 bytes (ceiling 10717; headroom 21)\", \"SKILL.md is 33350 bytes (ceiling 33351; headroom 1)\", \"declared cross-file moves: 1, total ceilings down 2 bytes\"; self-test \"116 cases pass\". The self-tests that pin phrases of landing-operations.md all exit 0: check:pm-expected-skips (runs the landing-k, pr-state and sweep-closed-cards self-tests), check:pm-label-write, check:pm-governed-prose, check:pm-record-recognisers. git diff against the merge-base for scripts/pm/check-skill-line-ratchet.mjs: empty. Acceptance grep `git grep -n \"3,000\\|3000\" .claude/skills/pm-dispatch/` still prints 3 lines (SKILL.md:196 per card, landing-operations.md:69 per card, dispatch-runbook.md:45 a character budget). The guard's reader on the prepared body: Rule-change reads \"yes\"; closing-keyword scan: no hit.",
      "gates": "Local subset at head b21a235f64, after the commit: dispatch-gates --commands (no paths) derived 25 families (45 at the earlier head; the ratchet script left the diff); each ran once, exit code recorded before any pipe; all 25 exit 0. --ran, exit 0: \"Run reconciliation — 25 derived, 25 run, 0 NOT-MEASURED, 0 UNRUN.\" Outside the derived list: pnpm check:pm-dispatch-gates exit 0 (\"fast tier: 2369 cases pass; 9 slow section(s) deferred\"). check:doc-formula-expressions ran after turbo build of the lint closure under the verify lock (VERDICT command-exit 0). check:nul-bytes exit 0. overlap-check before the push: exit 0, VERDICT clean against origin/main 73ec085afa (14 commits ahead of the merge-base, none on the shared files; no merge taken) and open PRs 38271 and 38243. check-governed-merges.mjs --pr 38280: exit 3, landing tier H; size 29 changed lines (+16 / -13). CI on PR 38280 at head b21a235f64 at report time: 41 check-runs, 4 success, 21 skipped, 9 in_progress, 7 queued, none failed. NOT MEASURED: every in_progress or queued CI family, reason: the report is delivered at the end of local verification.",
      "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
      "mcp_calls": "0",
      "api_writes": "1 relay stroke this round: this os-dev-report comment, POST /issues/36914/comments. One git push (c142bb23e0..b21a235f64, no force) is not a REST write. The body issue_patch was only dry-run.",
      "open_questions": [
        {
          "question": "The prepared body for PR 38280 is not on GitHub yet. Who sends it?",
          "options": [
            "A: the seat sends the prepared actions file as it did last round (fleet-write dispatch with the session of the signed trailer).",
            "B: the seat rewrites the body itself."
          ],
          "recommendation": "A, because the file is validated (dry-run exit 0, signed trailer last, two attribution lines first) and os-dev.md keeps the PATCH with the seat."
        },
        {
          "question": "Deletion 2 shortens the L2 outcome line to \"L2 FAIL ⇒ 撤挂,补丁轮\". Is the removed PASS routing fully carried by SKILL.md 〈路径分叉〉 and contract-review.md?",
          "options": [
            "A: yes, keep the deletion (SKILL.md \"达档 PASS 后 ready→入队\" and \"③ 请审 = 交棒\"; contract-review.md \"过则 S 入队、H 等人批\"; the no-L2 clause repeats the line four above).",
            "B: restore that line (84 bytes); the file is then 10780, 63 over the ceiling, and other deletions must be found."
          ],
          "recommendation": "A. It is the largest and the least mechanical of the eight, so it is the one the contract review should read first."
        }
      ],
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: #38296 · the guards read the size line per PR (sizeVerdict callers; label-write --handoff refuses the split case) · noted, not filed here",
        "carrier: the seat (ordered as a follow-up, not folded in) · AGENTS.md Multi-agent discipline 7 (c) still states the line per PR · noted, not filed",
        "carrier: none · reported in os-dev-report 7238331230 (class a, the SKILL.md ceiling cannot take a ruled raise while it is the source of a declared cross-file move) · unchanged this round"
      ]
    }
  7. objectstack-fleet commented on Nov 28, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-elon-musk · session_016WV4cxRDKprCtjpEdtiPFW

    Slice landed · 2026-11-28T13:03Z · PR #38280 merged as c091d28: the 3,000-line human-review line is counted per card in references/landing-operations.md, with pointers in SKILL.md, area-lease.md and lanes/queue.md; paid by deletion, no ceiling moved. The card stays open for the guard half, #38296 (acceptance bullet 3), and AGENTS.md 7(c) follows in #38306. Area o1-F is winding down (maintainer 2026-11-28T13:00Z), so neither is claimed here; pm:dispatched removed so the card is visible to the next claimant.

  8. added
    pm:queue
    and removed
    pm:dispatched
    on Nov 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:fleetdomain:skillspm:queuepriority:p2

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions