Skip to content

pm-dispatch review rules: a one-off codegen or migration script is never committed, and a refactor accounts for growth beyond a pure move #34343

Closed

Description

@objectstack-fleet

domain:server#5 · zhuangjianguo · session_01QsR2jRsWwTRkuRCyQwvpAG

Maintainer order, project chat 2026-11-16 (「这种代码就是垃圾啊,我为什么要合并,以及如何避免类似的问题」, then 「yes」 to the proposal). It is an explicit exception to the current no-new-claims wind-down.

Why. PR #34285 (registry.ts split 1 of 8, #33949) committed a 3,073-line one-off script, scripts/codemod-split-registry.mjs, about 1,900 lines of it copied from codemod-split-engine.mjs. Nothing runs it after merge. The PR showed +5.7k net lines for "a move". Neither the L1 nor the hand-off questioned the growth.

Change (.claude/skills/pm-dispatch/references/review-checklist.md, plus the line in SKILL.md or contract-review.md that points at it, if one is needed):

  1. Never committed. A one-off code generator, codemod or migration script whose output is the PR's own diff stays off the repo. It goes on the PR branch history or as a PR attachment, and the reviewer runs it to verify. Its proof (for example byte-identity and exports-equality readings) goes in the PR body. A reviewer FAILs a PR that commits such a script.
    • Out of scope: tools that run again after merge, such as a gate, a regen step, or a codemod that customers run from a migration guide.
  2. Growth accounted for. When a refactor presented as a move or split has net growth far beyond what a pure move produces, the reviewer accounts for the extra lines before PASS: per file, and what each block is for. If they can't, it's a FAIL. The account goes in the review record.
  3. The rule is recorded on [Decision] next codemod splits for the large hot files, in order, and whether to name a shrink-only line ceiling (hot-file card F) #33949 for splits 2 to 8.

Done when both rules are in the review checklist, the checklist gates are green, and the PR has landed through the seat (PM-skill text is governed, so Tier H if the governed check says so).

Related: #34285 (rework drops the script), and the clean-up card that deletes the existing codemod-split-*.mjs.

Activity

  1. added
    priority:p1
    pm:queue
    domain:server
    on Nov 16, 2026
  2. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:server#5 · zhuangjianguo · session_01QsR2jUcj2x2Wr4UErwBi12

    Claim: area S5 (lease E1b). This card is the maintainer's explicit exception to the wind-down, which the card body records. The seat routed it to this area.
    Session: session_01QsR2jUcj2x2Wr4UErwBi12
    Account: zhuangjianguo
    Branch: claude/area-E1b-34343
    Worktree: objectstack-e1b-34343
    Domain: domain:server
    Seat: domain:server#5
    File surface:

    • .claude/skills/pm-dispatch/references/review-checklist.md (two rules).
    • One pointer line in .claude/skills/pm-dispatch/SKILL.md or references/contract-review.md, and only if one is needed.
    • No code, no changeset unless a gate requires one.
      Container & model: M, mode:subagent, model: default judgment tier, effort: high
      Clause-②: no
      Metadata-protocol: none
      Responsibility: objectstack internal agent tooling (pm-dispatch review checklist) | none | none
      Thread-read: none
      Premise: card. PR refactor(objectql): split registry.ts into section modules by codemod (split 1 of 8), a move with the public exports unchanged #34285 committed a one-off split script, and its net growth went unquestioned at review.
      Pre-claim lane: domain:server. The seat routed this PM-skill text to this area. The PR lands through the seat as Tier H if the governed check says so.
      Pre-claim deps: none. Run a merge-tree against origin/main and against any open PR that touches review-checklist.md before the push.
      Prior rulings read: the card body as written (two rules plus their out-of-scope list); the governed-merge rule for PM-skill text.
  3. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 16, 2026
  4. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:server#5 · zhuangjianguo · session_01QsR2jUcj2x2Wr4UErwBi12
    os-dev-report

    {
      "issue": 34343,
      "status": "done",
      "branch": "claude/area-E1b-34343",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/34356",
      "head": "83479c1d7627c95155bb4e01654e83c821213175",
      "session": "session_01QsR2jUcj2x2Wr4UErwBi12",
      "premise_still_valid": true,
      "summary": "Both rules are in the L1 checklist in four lines, in its own verdict words (REWORK for FAIL, ACCEPT for PASS). (1) A one-off codegen, codemod or migration script whose output is the PR's own diff is never committed: it lives in branch history or an attachment, the reviewer runs it, and its proof readings go in the PR body; post-merge tools are out of scope. (2) A move or split whose net growth exceeds a pure move is accounted per file in the ACCEPT comment, or it is REWORK. The checklist had been renamed by #34052, so the claim's path review-checklist.md is a one-line pointer stub. On the area's 'ok l1', the rules went into l1-review-checklist.md. No pointer line was added, because execution-duties.md L1 already routes every reviewer there. The file was at headroom 0, so on the area's 'ok A' the CEILINGS row went from 76 to 80 (+4, the measured delta), citing the card body as the ruling of record.",
      "files_changed": [
        ".claude/skills/pm-dispatch/references/l1-review-checklist.md (+4)",
        "scripts/pm/check-skill-line-ratchet.mjs (+5/-1: CEILINGS row 76->80 plus a 4-line ruling comment)"
      ],
      "line_budget": "l1-review-checklist.md 76 -> 80 lines, ceiling 76 -> 80, headroom 0; no added line over 120 bytes",
      "tests": "pnpm check:pm-skill-ratchet (includes --self-test) exit 0 at 83479c1d76: 'l1-review-checklist.md is 80 lines (ceiling 80; headroom 0)'. Red leg before the raise: exit 1 at e91d783b49, 'is 81 lines; the ratchet ceiling is 76' (5-line first draft). No ablation, because no tested behaviour changed (text and a ceiling number).",
      "gates": "Derived on 4217bb13fc via dispatch-gates --commands --repo objectstack-ai/objectstack: 39 commands. 37 exited 0. check:doc-formula-expressions first exited 3 (PREREQUISITE NOT MET), then exited 0 after formula and lint were built under the lock. check:pm-dispatch-gates exited 1: 1 of 2217 self-test cases ('that listing is the tracked corpus itself, not a trimmed copy of it') failed. It ran while I merged origin/main into the worktree, which changed the tracked-file count mid-run. The diff does not touch dispatch-gates, but this was not re-run, so it is NOT MEASURED and left to CI. Also exit 0: check:skill-links, skill-identifier-liveness, skill-top-level-keys, skill-compatibility, skill-frame-freshness (local-only), skill-frame-sync, pm-governed-prose, check-skills-token-ratchet, check-published-list-mirrors. check-single-claim-paths exited 2 (needs PR context; CI). At the final head 83479c1d76: pm-skill-ratchet 0, pm-skill-id-lint 0, eslint on the script 0. PR-body gates (closing-keyword-parity, changeset-no-major, adr-0087-registration, partof-closing-keyword) all exited 0. check-governed-merges --pr 34356 exited 3: GOVERNED Tier S, not Tier H (.claude/** x1; scripts/pm not on the register; 10 changed lines). PR check-runs: in_progress, not awaited per the maintainer's 09:01Z hand-off order. Not run, per os-dev local scope: repo-wide pnpm lint (narrowed to eslint on the one changed .mjs).",
      "declaration_self_check": "Clause-②: no, Metadata-protocol: none, copied verbatim from the claim. The diff is rules text and a ceiling number: no served-to-refused change, no ! in the title, no BREAKING banner. dispatch-gates --tier exited 0 with no path-derived mandate and 10 changed lines, under the threshold. The PR carries skip-changeset because .claude/** and scripts/pm/** publish nothing.",
      "dogfood_battery": "n/a: no ! in the PR title and no (narrowing) arm",
      "mcp_calls": "0",
      "api_writes": "3: git push (not REST), relay pr_create (PR #34356, read back byte-identical, labels skip-changeset), post-stamped comment on #34343",
      "deviations": [
        "Edited l1-review-checklist.md instead of the claim's literal review-checklist.md (renamed by #34052), on the area's ok.",
        "Edited scripts/pm/check-skill-line-ratchet.mjs, outside the claim surface, on the area's ok A, for the ceiling raise.",
        "The PR body's maintainer quick-read (维护者速读) asks the maintainer to approve as if the PR were Tier H. check-governed-merges says Tier S, so the seat should correct that line through issue_patch. I did not PATCH the body.",
        "common-S5 rule 6 lists .claude/** as out of bounds. The order explicitly sends this card there."
      ],
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: none · noted, not filed: the dispatch-gates self-test case 'listing is the tracked corpus itself' can go red when the worktree's tracked-file set changes mid-run (merge during the run). Not reproduced on a quiet tree."
      ],
      "left": "The seat's L2 contract review record (Tier S) and landing; CI convergence; a rerun of check:pm-dispatch-gates on a quiet tree if CI reds it."
    }
  5. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-project-manager · session_01FEkQ5obaLbqgzRUR9xXfft

    Release: session session_01QsR2jUcj2x2Wr4UErwBi12 (claim 6911436586, account zhuangjianguo, seat domain:server#5) · reason: cross-account takeover; the old seat signed off (brief #28677 comment 6912561028) · provenance: who = Leehom (maintainer); words = 「接手 前任。#28677 (comment) 的未完成任务」; where = this account's Claude Code project, seat thread 「运行 objectstack 仓库车道席位」 (repo:objectstack#1) · hand-over record: comment 6912118544 (branch claude/area-E1b-34343, last pushed sha 83479c1d7627c95155bb4e01654e83c821213175; both rules written, check-governed-merges --pr 34356 reads Tier S, L1 owed)

    Claim: repo:objectstack#1 area o1-D (lease o1-D), takeover of domain:server#5's in-flight PR #34356 on the maintainer's order above
    Session: session_01FEkQ5obaLbqgzRUR9xXfft
    Account: os-project-manager
    Branch: claude/area-E1b-34343
    Worktree: objectstack-e1b-34343
    Domain: domain:server
    Seat: repo:objectstack#1
    File surface: unchanged from claim 6911436586 and its amendments; the PR's committed tree at 83479c1d76 is the surface
    Container & model: S, mode:subagent, model: default judgment tier, effort: high
    Clause-②: no
    Metadata-protocol: none
    Responsibility: n/a — not a defect card
    Thread-read: 6912067907
    Premise: holds (carried from claim 6911436586; rule 6911407209 unchanged)
    Serial constraints cleared: none (merge-tree against origin/main before landing; no open PR in this area touches references/l1-review-checklist.md)
    Pre-claim lane: repo:objectstack#1 area o1-D; PM-skill text under .claude/skills/pm-dispatch/references/ (governed, Tier S per check-governed-merges); listed under o1-D in seat post #34366's lease table.
    Pre-claim deps: none; rule 6911407209 records the order
    Prior rulings read: 6911407209 (no committed split script; growth accounted per file); re-read at takeover, no newer ruling on the card.
    Resume-from: claude/area-E1b-34343@83479c1d7627c95155bb4e01654e83c821213175

  6. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-project-manager · session_01FEkQ5mww9UksbwbjvM4aYn

    L1 · 2026-11-16T10:18Z · ACCEPT → PR #34356 comment 6913639534 (head 83479c1d)

  7. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-project-manager · session_01FEkQ5obaLbqgzRUR9xXfft
    os-dev-report

    Fix round on PR #34356 (contract review record 6913331084, S1). Read at 2026-11-16T13:13Z.

    {
      "issue": 34343,
      "status": "done",
      "branch": "claude/area-E1b-34343",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/34356",
      "session": "session_01FEkQ5obaLbqgzRUR9xXfft",
      "premise_still_valid": true,
      "summary": "S1 fixed in place: line 31 of .claude/skills/pm-dispatch/references/l1-review-checklist.md now names the head diff as the REWORK trigger instead of any commit. Before: '- 一次性 codegen/codemod/迁移脚本,产物即本 PR 自身 diff ⇒ ⛔ 不入仓,提交即判 REWORK。' (109 bytes). After: '- 一次性 codegen/codemod/迁移脚本,产物即本 PR 自身 diff ⇒ ⛔ 不入仓,head diff 含它即判 REWORK。' (119 bytes). The reviewer's example wording with 的 measured 123 bytes, over the 120-byte cap, so 的 was dropped. File stays 80 lines (ceiling 80, headroom 0); no other line changed. Commit d5291e64, then origin/main f84dc192 merged in (branch was 19 behind; clean, no rebase, no force-push); head 7fcc9d03. N1/N2 left as is. PR body not patched; PR is non-draft, a state this round did not set and did not touch.",
      "tests": "No tested behaviour changed (one prose line in a skill reference); no ablation owed. Byte check: awk over the file reports no line over 120 bytes; line 31 = 119 bytes; wc -l = 80.",
      "gates": "Local on 7fcc9d03, exit captured before any pipe: check:pm-skill-ratchet 0 (l1-review-checklist.md 80 lines, ceiling 80, headroom 0); check:pm-skill-id-lint 0 (118 files clean); check:pm-governed-prose 0; check:nul-bytes 0; check:doc-authoring 0; check:skill-frame-sync 0; check-skills-token-ratchet 0; plus 31 more derived commands all exit 0. NOT MEASURED locally: check-comment-mask-corpus (exceeded a 240s local timeout, exit 124), lint check:doc-formula-expressions (exit 3 PREREQUISITE NOT MET, formula package not built), check:pm-dispatch-gates (over the foreground cap). The derived set is driven by scripts/pm/check-skill-line-ratchet.mjs from the earlier round, unchanged here. CI on 7fcc9d03: 23 success, 19 skipped, none failed, including Lint & Repo Gates, Lint · PM dispatch-gates, Lint · repo & tooling gates, TypeScript Type Check, Governed Surface Queue Guard, Dogfood Regression Gate and both PR-body guards; Test Core (1/8) in_progress at report time.",
      "dogfood_battery": "n/a — no ! in the PR title and no (narrowing) arm",
      "mcp_calls": "0",
      "api_writes": "1 — this os-dev-report comment on #34343 via post-stamped.mjs; git push is not a REST write",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": []
    }
  8. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-project-manager · session_01FEkQ5obaLbqgzRUR9xXfft

    Close-out · #34343 · area o1-D · 2026-11-16T13:47Z

    • Delivered: PR docs(pm-dispatch): L1 review refuses a committed one-off codemod and asks for growth beyond a pure move to be accounted for #34356 merged (merge commit cfcba539205a2b11e363168ccc2647e74addac0d) on review#1 CONTRACT_REVIEW_TIER PASS 6917565058 and L1-b ACCEPT 6917520548 at 7fcc9d03; Fixes #34343 closed the card (completed). l1-review-checklist.md now REWORKs a PR whose head diff contains a one-off codegen/codemod/migration script, and asks for growth beyond a pure move to be accounted for; the line ratchet ceiling moved 76 → 80.
    • Left: N1/N2 of record 6913331084 are nits kept (N2, a dev-side line in os-dev.md, is the seat's to weigh). State labels cleared in this stroke (pm:dispatched, lease:o1-D); domain:server and the priority label stay.
  9. removed
    pm:dispatched
    on Nov 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

domain:serverpriority:p1

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions