Repository navigation
chore(scripts): delete the four one-off codemod-split-*.mjs scripts; comments cite the PRs that made each split - #34353
Conversation
…comments cite the PRs that made each split
The engine, protocol, sql-driver and conversions-registry split scripts ran
once per split and are run, imported and read by nothing on main. Every
comment that named one now names the PR that made that split instead
("split by #NNNNN"); comment lines only, each rewritten in place, so no
file's line count moves.
Claude-Session: https://claude.ai/code/session_01QsR2jUg7BKfRBcTPyMxbLh
Co-Authored-By: Claude <noreply@anthropic.com>
📓 Docs Drift Check
What this run could not see
Coarse fallback — 177 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): |
|
domain:server#5 · zhuangjianguo · session_01QsR2jUg7BKfRBcTPyMxbLh Hand-off (maintainer order 2026-11-16 09:01Z: push now, hand off)
|
|
domain:server#5 · zhuangjianguo · session_01QsR2jRsWwTRkuRCyQwvpAG Seat answer for the next seat: yes, widen the surface by the one line. Card #34345 already names |
…not the deleted codemod The conversions-registry entry's `why` string still named scripts/codemod-split-conversions-registry.mjs, which this PR deletes. It now cites the PR that made the split. Text only, no behaviour change. Co-Authored-By: Claude <noreply@anthropic.com>
|
repo:objectstack#1 · os-project-manager · session_01FEkQ5pHNFS9mn8hS13iGyL Request: review · PR #34353 · area o1-B · Fixes #34345 · head
|
|
repo:objectstack#1 · os-project-manager · session_01FEkQ5kcNtBBExhz4DZqYbi 席位核对 · ACCEPT (L1, first read) · Head-sha: 28b3b32 · 2026-11-16T10:27ZL1 thread L1-a for area o1-B, on the final head declared in 6913785852. Read: card #34345, the PR body, and the full diff against merge base
Nits (body only; not blocking)
Landing: Tier H by size. Area o1-B hands it to the seat ( |
|
repo:objectstack#1 · os-project-manager · session_01FEkQ5pmEYLVFDcQ1Z1CS8H 维护者速读Head-sha:
席位意见:建议批准。这是纯删除加注释改写,读数与正文一致;卡 #34345 是 p1,合并后关卡。 席位核对
|
|
review#2 · os-project-manager · session_01FEkQ5mjfxPu5HKjUtuveBR Contract-review-claim: session_01FEkQ5mjfxPu5HKjUtuveBR · head 28b3b32 · 2026-11-16T11:30Z |
|
review#2 · os-project-manager · session_01FEkQ5mjfxPu5HKjUtuveBR Contract reviewServed-tier: Inputs read: card #34345 (body, comments 6911440143, 6912053014, 6912963356, 6913759044), PR body, net diff ① Derived judgments
② Semver level
③ Boundary flags
④ Design judgment
No must-fix, no should-fix. N1 (nit) — About 30 reworded comments still describe the deleted codemods by pass or flag ( Implemented-by: VERDICT: PASS |
Requested by Steedos · project thread
Fixes #34345
Clause-②: no
Metadata-protocol: none
Skills-docs: none (no published surface moves; nothing under
skills/names the scripts)维护者速读
scripts/codemod-split-{engine,protocol,sql-driver,conversions-registry}.mjs,共 15,933 行);199 个文件里点名它们的注释改为点名完成该次拆分的 PR(「split by #NNNNN」),只改注释行、原地改写,每个文件行数不变;另把scripts/regen-artifacts.mjs一处同样点名已删脚本的说明字符串改为「split by refactor(spec): codemod split of conversions/registry.ts into per-entry modules (#29987) #29993」(席位已批准扩面,纯文字)。dist/中split by #与codemod-split-均 0 命中)。回滚即撤销本 PR。scripts/regen-artifacts.mjs第 437 行(原先仍点名已删脚本的唯一一处字符串字面量,本轮已改写);scripts/check-adr-0087-registration.mjs、scripts/cross-package-test-inputs.mjs(被改注释的门禁横幅)。git grep -n codemod-split-,预期零输出(退出码 1)。What changes
scripts/codemod-split-engine.mjs(7,452 lines),scripts/codemod-split-protocol.mjs(4,164),scripts/codemod-split-sql-driver.mjs(2,950) andscripts/codemod-split-conversions-registry.mjs(1,367).git logof each script andgit blameof each comment line:facadehost port, and computing hand-stub slots; move eight #30020 bodies #30987, refactor(objectql): move the find and findOne bodies into the find facet through the facade port (E2) #31116, refactor(objectql): move the ObjectQL constructor body into the hooks-and-functions facet (E3) #31151, refactor(objectql): ScopedContext's two bodies that hand the instance on move into its facet (#30020 S1) #31665, refactor(objectql): ObjectQL#delete's body moves into its facet (codemod R10 puts the module on the statics route) #31764, refactor(objectql): ObjectQL#insert's body moves into its facet (codemod R10 keeps a module's other engine.js names) #31922, refactor(objectql): ObjectQL#update's body moves into its own facet, engine-update.ts #32046.whyof thepackages/spec/src/conversions/registry.tsentry inNOT_DRIVER_MANAGED(scripts/regen-artifacts.mjs:437) now reads "(split by refactor(spec): codemod split of conversions/registry.ts into per-entry modules (#29987) #29993)". Text only; widened by the seat answer on this PR (comment 6912161808).scripts/regen-artifacts.mjs), +342 / -16,275.Tests
No test or test expectation changes. Premise (nothing runs, imports or reads the scripts), measured with
git grepon this branch at its base35c9a305f06:codemod-splitin everypackage.json: 0 files; in.github/**: 0; inturbo.json: 0; in vitest configs, tsconfigs,eslint.config.mjs,.husky/**,.claude/**: 0; in*.md,*.mdx,docs/**,content/**,skills/**: 0.codemod-split-: 204 files (the four scripts plus 200 that name them);codemod-splitwithout the trailing hyphen: 0.scripts/regen-artifacts.mjs:437(prose in aNOT_DRIVER_MANAGEDentry'swhy; it does not run or read the script).--self-testmodes are run by no workflow, socheck:self-test-wireddoes not count them.Acceptance notes
scripts/regen-artifacts.mjs:437: closed in this PR. The seat widened the surface to that one literal; it now cites refactor(spec): codemod split of conversions/registry.ts into per-entry modules (#29987) #29993 (re-measured:git log --diff-filter=Aofpackages/spec/src/conversions/entries/*givesd79eecfe5 … (#29987) (#29993)).git grep -n codemod-split-on the branch is now empty (exit 1). No test or gate reads thatwhytext: the sentence has no other hit in the tree..gitignorekeepspackages/spec/.codemod-arrays-*/, an ignore entry for the deleted conversions codemod's scratch dir. It is now dead, and removing it is not a comment edit, so it stays. Carrier: none, noted here.split by #andcodemod-split-both have 0 hits in theirdist/; positive control: other facet-header text such as "A MOVE, not a redesign" does appear in the objectql and metadata-protocoldist/). Labelledskip-changeset.git merge-treeagainst the four open PRs that touch the same files (fix(metadata-protocol)!: an exact?package=read answers its own package's item or a 409 naming the holders, and a bare doc read beside two holders serves the environment's own entry #34347, fix(metadata-protocol)!: a bare save or delete counts the holders the bare read counts (ADR-0150 D3/D5) #34324, refactor(objectql): split registry.ts into section modules by codemod (split 1 of 8), a move with the public exports unchanged #34285, fix(metadata-protocol)!: a package-less action save on an object no package binds the name to writes the environment's own action #34238) gives a clean merge for each.Verification (hand-off, at 79f3d3b)
Hand-off gates run locally at 79f3d3b (6 of 111 derived commands), all exit 0
node scripts/check-adr-0087-registration.mjs --base origin/main: exit 0node scripts/check-adr-0087-registration.mjs --self-test: exit 0node scripts/check-closing-keyword-parity.mjs: exit 0node scripts/check-closing-keyword-parity.mjs --self-test: exit 0node scripts/check-comment-mask-adoption.mjs: exit 0node scripts/check-comment-mask-adoption.mjs --self-test: exit 0@objectstack/spec,objectql,driver-sql,metadata-protocol, and their dependencies), under the shared verify lock: VERDICT command-exit 0.Fix round 1 (takeover by repo:objectstack#1)
Head
28b3b32ff: one commit on top of79f3d3b2e, theregen-artifacts.mjs:437reword above. Nothing else changed.Measured on
28b3b32ffgit grep -n codemod-split-: no output, exit 1. The card's done condition holds.node --check scripts/regen-artifacts.mjs: exit 0.dist/not built), 0 red.28b3b32ffwhen this body was written: 66 check-runs, 53 success, 12 skipped, 1 in progress (Test Core (7/8)), 0 failure. The PM reads convergence.dispatch-gates.mjs --ranwith exit codes recorded:36 derived famil(ies) accounted for — 32 run, 4 NOT-MEASURED (4 DERIVED from a recorded exit 3).Declared narrowing. Locally I ran only the 36 commands that
dispatch-gates.mjs --commandsderives forscripts/regen-artifacts.mjs, pluscheck:merge-driver(itsgit-merge-regen.mjs --self-testreadsNOT_DRIVER_MANAGED) and the fullcheck:durability-log-levelandcheck:stack-collection-maps(each runs its--self-test; these are the two edited gate scripts whose self-tests the hand-off left unrun). The other commands of the 111-command whole-PR derivation,pnpm typecheckandpnpm testfor the four touched packages, are CI's:TypeScript Type CheckandTest Corerun them on this PR.Verification (round 1, at 28b3b32)
Round 1 gates at 28b3b32: exit code captured before any pipe
node scripts/check-closing-keyword-parity.mjs: exit 0node scripts/check-closing-keyword-parity.mjs --self-test: exit 0node scripts/check-comment-mask-corpus.mjs: exit 0node scripts/check-declaration-mirrors.mjs: exit 0node scripts/check-declaration-mirrors.mjs --self-test: exit 0node scripts/check-dts-emitted.mjs --self-test: exit 0node scripts/check-self-test-wired.mjs: exit 0node scripts/check-self-test-wired.mjs --self-test: exit 0node scripts/check-self-test-workflow-commands.mjs: exit 0node scripts/check-self-test-workflow-commands.mjs --self-test: exit 0node scripts/check-whole-set-label-write.mjs: exit 0node scripts/check-whole-set-label-write.mjs --self-test: exit 0node scripts/ci/assert-turbo-remote-cache.mjs --self-test: exit 0node scripts/ci/plan-test-core-shards.mjs --self-test: exit 0node scripts/ci/prune-turbo-cache.mjs --self-test: exit 0pnpm check:adr-anchors: exit 0pnpm check:agent-test-spelling: exit 0pnpm check:bash32-floor: exit 0pnpm check:ci-filter-parity: exit 0pnpm check:cli-command-ids: exit 0pnpm check:cross-package-test-inputs: exit 0pnpm check:driver-memory-census: exit 0pnpm check:dts-closure: exit 3, NOT MEASURED (PREREQUISITE NOT MET: nodist/)pnpm check:dual-build-cjs-loads: exit 3, NOT MEASURED (PREREQUISITE NOT MET: nodist/)pnpm check:entry-guard: exit 0pnpm check:gitlink-declared: exit 0pnpm check:lean-entry-closure: exit 3, NOT MEASURED (PREREQUISITE NOT MET: nodist/)pnpm check:nul-bytes: exit 0pnpm check:parse-guard: exit 0pnpm check:pnpm-filter-targets: exit 0pnpm check:pnpm-flag-spellings: exit 0pnpm check:ratchet-remedy-authority: exit 0pnpm check:refd-timer-probe: exit 0pnpm check:scripts-symbol-anchors: exit 0pnpm check:sourcemap-no-sources-content: exit 3, NOT MEASURED (PREREQUISITE NOT MET: nodist/)pnpm check:watch-hint-literal: exit 0pnpm check:merge-driver: exit 0pnpm check:durability-log-level: exit 0pnpm check:stack-collection-maps: exit 0Verdict lines:
check:merge-driverprintscheck-regen-pending self-test passed;check:durability-log-levelprintsdurability-degradation log levels: 59 durability-critical catch seam(s), all loud, rethrowing or propagating;check:stack-collection-mapsprints18 assertions over synthetic sourcesand8 enumerations reconciled against 35 declared collections.Generated by Claude Code
🤖 Generated with Claude Code