Skip to content

scripts: delete the committed one-off codemod-split-*.mjs scripts and the comments that point at them #34345

Closed

Description

@objectstack-fleet

domain:server#5 · zhuangjianguo · session_01QsR2jRsWwTRkuRCyQwvpAG

Maintainer order, project chat 2026-11-16 (「yes」 to the clean-up step after 「这种代码就是垃圾啊…」). It is an explicit exception to the current no-new-claims wind-down.

What. Four one-off split scripts sit on main, about 15,900 lines. No code, gate, CI workflow or package script runs or imports any of them; only comments and headers name them.

script lines files naming it
scripts/codemod-split-engine.mjs 7,452 43
scripts/codemod-split-protocol.mjs 4,164 13
scripts/codemod-split-sql-driver.mjs 2,950 29
scripts/codemod-split-conversions-registry.mjs 1,367 118

Change.

  • Delete the four scripts.
  • Reword every comment that names one (module headers, gate banners such as regen-artifacts.mjs, check-adr-0087-registration.mjs, sql-driver-split-source.mjs, cross-package-test-inputs.mjs) so it names the PR that made the split instead.
  • Comments only: no code change. Re-measure the "nothing runs them" claim on the branch with git grep.
  • Do not touch scripts/codemod/ (customer migration codemods, a different kind of tool).

Done when the scripts are gone, git grep codemod-split- finds nothing outside the changeset, every gate is green, and the PR has landed. Over 3,000 changed lines makes it Tier H, so the seat hands it to the maintainer.

Related: the review-rule card filed beside this one; #33949; #34285.

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_01QsR2jUg7BKfRBcTPyMxbLh

    Claim: PM loop (area S2, #33751 §2). The seat relayed the maintainer's explicit exception to the wind-down for this card.
    Session: session_01QsR2jUg7BKfRBcTPyMxbLh
    Account: zhuangjianguo
    Branch: claude/area-A4-34345
    Worktree: /home/claude/wt/area-A4-34345
    Domain: domain:server
    Seat: domain:server#5
    File surface: deletion of scripts/codemod-split-engine.mjs, scripts/codemod-split-protocol.mjs, scripts/codemod-split-sql-driver.mjs and scripts/codemod-split-conversions-registry.mjs. Comment-only rewording in every file git grep codemod-split- names on the branch: module headers and gate banners, with no code, string literal or test expectation changed. .changeset/** if the repo's form needs one. scripts/codemod/ is out of scope. Stop on breach and explain in the report.
    Container & model: M, mode:subagent, model: TIER_DEFAULT, effort: high
    Clause-②: no (no published surface moves; the scripts are not shipped, run or imported)
    Metadata-protocol: none
    Responsibility: objectstack (repo hygiene): four one-off split scripts (about 15,900 lines) sit on main, run by nothing, and are cited by about 200 comments.
    Premise: the card measured "nothing runs or imports them". The dev re-measures it with git grep on the branch (package scripts, workflows, gates, imports, dynamic spawns) before deleting.
    Tier: over 3,000 changed lines, so Tier H. After L1, the seat hands it to the maintainer.
    Serial constraints cleared: #33652, #33570 and #33558 (hot files engine-find.ts, engine-query-lowering.ts, seed-loader.ts) are closed. The edits are comment-only, and the dev runs git merge-tree against open PRs that touch the same files before pushing.
    Pre-claim lane: domain:server
    Pre-claim deps: none
    Prior rulings read: card body (maintainer order, project chat 2026-11-16)

  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_01QsR2jUg7BKfRBcTPyMxbLh
    os-dev-report

    {
      "issue": 34345,
      "status": "rework",
      "branch": "claude/area-A4-34345",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/34353",
      "head": "79f3d3b2e2dcaa7d782bbbc7f2568fd36ce5cc61",
      "session": "session_01QsR2jUg7BKfRBcTPyMxbLh",
      "premise_still_valid": true,
      "summary": "Handed off on the maintainer's order before local verification finished. Deleted scripts/codemod-split-{engine,protocol,sql-driver,conversions-registry}.mjs (15,933 lines) and reworded 201 comments in 199 files to cite the PR that made each split ('split by #NNNNN'). Every edit is in place: each modified file keeps its line count, and every changed line is a comment line. PR #34353 is a draft: 203 files, +341/-16,274, so Tier H by size. One hit is left: scripts/regen-artifacts.mjs:437 names a deleted script inside a string literal, which is outside the comment-only surface, so it is unchanged (see open_questions). Per-script PR mapping: engine was added by #30012, and its comments cite #30012, #30083, #30264, #30341, #30415, #30463, #30571, #30716, #30987, #31116, #31151, #31665, #31764, #31922, #32046. protocol was added by #29998 and cites #29998, #30687, #30954, #32068, #32463. sql-driver was added by #29598 and cites #29598, #30139, #30249, #30306, #30363, #30441. conversions-registry was added by #29993 and cites #29993. Each citation is the PR that added the file, plus the blame PR of the comment line when that PR also moved code with the codemod.",
      "tests": "No test files or expectations changed (comment lines only). Premise counts, from git grep on base 35c9a305f06: 'codemod-split' in **/package.json 0 files; .github/** 0; turbo.json 0; vitest/tsconfig/eslint.config.mjs/.husky/.claude 0; *.md/*.mdx/docs/content/skills 0. 'codemod-split-' 204 files (4 scripts + 200 naming them, 202 lines). 'codemod-split[^-]' 0. import/require/spawn/exec/fork spellings reaching a script: 0 (3 hits are 'Written by' comments). 'split-(engine|protocol|sql-driver|conversions-registry)' finds the same 200 files. Of the 202 naming lines, 201 are comment lines and 1 is a string literal (regen-artifacts.mjs:437). The scripts' --self-test modes are named by no workflow. After the edits, git grep -n codemod-split- finds only scripts/regen-artifacts.mjs:437, and the diff has no changed non-comment line (grep exit 1). Locally the build ran; pnpm typecheck was started and stopped at the hand-off with no reading; pnpm test was not run. Both are NOT MEASURED locally. No ablation: no tested behaviour changed.",
      "gates": "Derived with node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack at 79f3d3b2e2d: 111 commands. Ran with exit 0, exit captured before any pipe: check-adr-0087-registration.mjs --base origin/main; check-adr-0087-registration.mjs --self-test; check-closing-keyword-parity.mjs; its --self-test; check-comment-mask-adoption.mjs; its --self-test. The affected-closure build under os-verify-lock gave VERDICT command-exit 0. Started and stopped at the hand-off, so NOT MEASURED: check-comment-mask-corpus.mjs, pnpm check:pm-dispatch-gates, the typecheck of the four packages. Never started: the other 103 derived commands, the edited gate scripts' self-tests (check-durability-degradation-log-level, check-stack-collection-maps), and --ran reconciliation. PR check-runs: not read (no waiting for CI, by the order). git merge-tree against the 4 open PRs touching the same files (#34347, #34324, #34285, #34238): all exit 0, clean.",
      "dogfood_battery": "n/a: no '!' in the PR title and no (narrowing) arm",
      "file_count": "203 files (4 deleted, 199 modified); +341 / -16,274; the 4 scripts are 7,452 + 4,164 + 2,950 + 1,367 = 15,933 lines",
      "mcp_calls": "0",
      "api_writes": "3: git push of the branch (2 pushes, not REST); fleet-write relay pr_create, i.e. POST /repos/objectstack-ai/objectstack/dispatches leading to POST /pulls, POST /issues/34353/assignees and POST /issues/34353/labels (body read back identical, 6865 bytes); post-stamped comment POST /issues/34345/comments",
      "open_questions": [
        { "question": "scripts/regen-artifacts.mjs:437 still names scripts/codemod-split-conversions-registry.mjs inside the 'why' string of a NOT_DRIVER_MANAGED entry. It is prose, read by no code, but it is a string literal, so the comment-only surface does not cover it, and the card's done condition (git grep finds nothing) is not met while it stays.", "options": ["A: widen the surface to that one literal, reword it to 'split by #29993' in a follow-up commit on this PR, and Fixes #34345 then holds", "B: leave it and change the PR's Fixes #34345 to Part of #34345, with the literal carried by a separate card"], "recommendation": "A, because it is one line of documentation prose that no gate or code reads, and it is the only thing between this PR and the card's done condition" }
      ],
      "security_findings": "none",
      "out_of_scope_findings": ["carrier: none · .gitignore keeps packages/spec/.codemod-arrays-*/, the scratch-dir ignore of the deleted conversions codemod, which is now dead. It is not a comment, so it is unchanged; noted in the PR's Acceptance notes, not filed"],
      "deviations": "Stopped early on the coordinator's maintainer order (hand-off now): local gates, typecheck and tests are incomplete as listed in gates. The PR body carries the two HTML-comment lines (attribution and signed) because the dispatch ordered them, against os-dev.md's no-HTML-comment rule; the body read back byte-identical. No changeset: the reworded comments are not in any dist/ (0 hits for 'split by #' and 'codemod-split-'; the positive control 'A MOVE, not a redesign' is present in the objectql and metadata-protocol dist/), so the PR is labelled skip-changeset. Commit trailers are model-free, as the dispatch ordered."
    }
  5. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    ContributorAuthor

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

    Release: session session_01QsR2jUg7BKfRBcTPyMxbLh (claim 6911440143, account zhuangjianguo, seat domain:server#5) · reason: the seat signed off and the maintainer ordered its unfinished work taken over · destination: repo:objectstack#1 area o1-B (this claim). Last pushed head: claude/area-A4-34345@79f3d3b2e2dcaa7d782bbbc7f2568fd36ce5cc61.
    Provenance: who: Leehom (maintainer); words: 「接手 前任。#28677 (comment) 的未完成任务」; where: the maintainer project's repo:objectstack#1 seat thread. The predecessor signed off in brief 6912561028 on #28677.

    Claim: PM loop · takeover · 2026-11-16T09:45Z
    Session: session_01FEkQ5pHNFS9mn8hS13iGyL
    Account: os-project-manager
    Branch: claude/area-A4-34345
    Worktree: objectstack-issue-34345
    Domain: domain:server
    Seat: repo:objectstack#1
    File surface: the claim 6911440143 surface (deletion of the four scripts/codemod-split-*.mjs, comment-only rewording) plus the one string literal at scripts/regen-artifacts.mjs line 437 (the predecessor seat answered yes on PR #34353, comment 6912161808); stop on breach and explain in the report
    Container & model: M, mode:subagent, model: TIER_DEFAULT, effort: medium
    Clause-②: no (no published surface moves; the scripts are not shipped, run or imported)
    Metadata-protocol: none
    Responsibility: objectstack (repo hygiene): four one-off split scripts sit on main, run by nothing | none | repo maintainers; no runtime reader
    Thread-read: 6912053014
    Premise: holds
    Serial constraints cleared: PR #34353 merge-tree clean against #34347, #34324, #34285, #34238 at hand-off (dev re-runs before push); no in-flight claim on scripts/regen-artifacts.mjs known
    Resume-from: claude/area-A4-34345@79f3d3b2e2dcaa7d782bbbc7f2568fd36ce5cc61
    Pre-claim lane: domain:server (scripts and comment banners across server packages; repo hygiene)
    Pre-claim deps: none
    Prior rulings read: card body (maintainer order, recorded on #33949: a one-off codegen or migration script is never committed); predecessor seat answer 6912161808 (widen by the one literal)

  6. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    ContributorAuthor

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

    {
      "issue": 34345,
      "status": "done",
      "branch": "claude/area-A4-34345",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/34353",
      "session": "session_01FEkQ5pHNFS9mn8hS13iGyL",
      "premise_still_valid": true,
      "summary": "Takeover round 1 on PR #34353 (resumed from 79f3d3b2e, no rebase or force). One commit 28b3b32ff rewords the last remaining reference to a deleted codemod: scripts/regen-artifacts.mjs:437, the why string of the packages/spec/src/conversions/registry.ts entry in NOT_DRIVER_MANAGED, now reads '(split by #29993)', as the seat answer on the PR (comment 6912161808) widened. PM assumptions measured and held: the literal was at line 437; #29993 is the PR (git log --diff-filter=A of packages/spec/src/conversions/entries/* gives d79eecfe5 '... (#29987) (#29993)'; #29987 is the issue the surrounding prose already cites); no test or gate pins that why text (its sentence has no other hit in the tree). git grep -n codemod-split- on the branch is now empty (exit 1), which is the card's done condition. PR body updated: the line-437 Acceptance note now says closed in this PR, State at hand-off replaced by a Fix round 1 section with measured readings, maintainer brief lines that named line 437 as still open corrected, trailer re-signed; .gitignore dead-entry note kept as is.",
      "tests": "No test changes (text-only edit to a string literal in a root script). node --check scripts/regen-artifacts.mjs: exit 0. git grep -n codemod-split- at 28b3b32ff: no output, exit 1. scripts/regen-artifacts.mjs has no --self-test mode (no argv handling), so none was run. Ablation: n/a, no tested behaviour changed.",
      "gates": "Local at 28b3b32ff, exit captured before any pipe: the 36 commands dispatch-gates.mjs --commands derives for scripts/regen-artifacts.mjs: 32 exit 0, 4 exit 3 NOT MEASURED (check:dts-closure, check:dual-build-cjs-loads, check:lean-entry-closure, check:sourcemap-no-sources-content: PREREQUISITE NOT MET, no dist built). Extra: check:merge-driver exit 0 ('check-regen-pending self-test passed'; git-merge-regen --self-test reads NOT_DRIVER_MANAGED), check:durability-log-level exit 0 (self-test + scan: '59 durability-critical catch seam(s), all loud'), check:stack-collection-maps exit 0 ('18 assertions over synthetic sources', '8 enumerations reconciled against 35 declared collections'). --ran reconciliation with exit codes: '36 derived famil(ies) accounted for — 32 run, 4 NOT-MEASURED (4 DERIVED from a recorded exit 3)'; the 3 extras listed as outside this card's derivation. Declared narrowing: the rest of the 111-command whole-PR derivation plus typecheck/test of the four touched packages is CI's. CI on 28b3b32ff (latest per check): 71 check-runs, 55 success, 15 skipped, 0 failure, 1 in_progress (PR-body guards, re-triggered by the body edit). Named: Lint & Repo Gates success, TypeScript Type Check success, Type Check · workspace/consumer gates/debt ledger success, Type Check UI success, Test Core success with shards 1-8/8 all success, Lint · CI, release & engine gates success, Check Changeset skipped (skip-changeset label).",
      "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm (Clause-②: no)",
      "mcp_calls": "0",
      "api_writes": "3 — git push of claude/area-A4-34345 (79f3d3b2e..28b3b32ff; not a REST write); fleet-write issue_patch PATCH /repos/objectstack-ai/objectstack/issues/34353 (PR body; relay run 43848143173, read-back 10255 bytes identical); post-stamped.mjs comment POST /repos/objectstack-ai/objectstack/issues/34345/comments (this report)",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": ["carrier: none · .gitignore entry packages/spec/.codemod-arrays-*/ is dead after the conversions codemod's deletion; outside the file surface, kept in the PR's Acceptance notes as the predecessor wrote it, noted, not filed"],
      "deviations": "(1) The scripts/regen-artifacts.mjs edit was made before AGENTS.md was read in full; I read its section list and the Post-Task Checklist right after, before committing, and nothing there changes the edit. (2) Gate derivation narrowed to the one edited path, as the dispatch asked, rather than the whole-PR derivation; declared in the PR body. (3) The PR body keeps the predecessor's session-URL footer; durable attribution for this round is in the Fix round 1 heading and the re-signed trailer. (4) The harness asked for a model-named commit trailer; the commit carries the model-free Co-Authored-By: Claude trailer that the dispatch requires."
    }
  7. removed
    pm:dispatched
    on Nov 16, 2026
  8. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    ContributorAuthor

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

    Landed · 2026-11-16T13:41Z: PR #34353 merged through the merge queue as b0da5a5b (Tier H, landed by the maintainer side), and Fixes #34345 closed this card. The four one-off codemod-split-*.mjs scripts are deleted, and the comments that cited them now cite the PRs that made each split. Labels and assignee were cleared by the seat. Nothing is owed from area o1-B.

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

    domain:serverpriority:p1

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions