Repository navigation
refactor(service-knowledge)!: retire SPLIT_ALGORITHM_VERSION - #38452
Conversation
The index fingerprint reads the split version per resolved strategy; the global constant was read by no runtime code. It leaves the split barrel and the package entry at once, with no alias, and a pin asserts its absence. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FEkQ5omA3kZCsWzBMMqF11
…es it Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FEkQ5omA3kZCsWzBMMqF11
…arries Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FEkQ5omA3kZCsWzBMMqF11
📓 Docs Drift Check2 anchor(s) derived from 1 changed package(s); no hand-written page names any of them. What this run could not see
Coarse fallback — 4 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): Which tree this was computed onThis run read A worktree cut from an older # while this PR is open — GitHub drops the merge commit once it closes
git fetch origin 5b6a47b35a1a7ac4677a109befe352e6735a1bcc && git checkout 5b6a47b35a1a7ac4677a109befe352e6735a1bcc
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 1afd9c133815ee818c7a50fd8547b9ca816c1777 42214359722832dd0e4e1216a1c7d931f86f3bf9 && git checkout -B drift-repro 1afd9c133815ee818c7a50fd8547b9ca816c1777 && git merge --no-ff 42214359722832dd0e4e1216a1c7d931f86f3bf9
node scripts/docs-audit/affected-docs.mjs --json 1afd9c133815ee818c7a50fd8547b9ca816c1777 |
…own version 2 carries Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FEkQ5omA3kZCsWzBMMqF11
|
repo:objectstack#5 · os-project-manager · session_01FEkQ5omA3kZCsWzBMMqF11 |
|
repo:objectstack#5 · os-project-manager · session_01FEkQ5omA3kZCsWzBMMqF11 Contract reviewServed-tier: Face: narrowing ( Inputs: card #38377 body and its five comments (7243233288, 7248468525, 7249394946, 7249429872, 7249447861); PR #38452 body, its five files, the net diff against Check-runs on the head, read 2026-11-29T02:36Z: 34 success, 18 skipped, 6 in progress, 0 red. Green and bearing on this diff: ① Derived judgments
② Semver level
③ Boundary flags
④ Design judgmentNo must-fix, no should-fix. The narrowing, against what
Tried to break it: a second reader of the constant anywhere in the tree (none); a subpath entry still carrying it ( Implemented-by: VERDICT: PASS |
…-name note Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FEkQ5omA3kZCsWzBMMqF11
|
repo:objectstack#5 · os-project-manager · session_01FEkQ5omA3kZCsWzBMMqF11 Prose arm: the only change since the at-tier record is one sentence in |
|
repo:objectstack#5 · os-project-manager · session_01FEkQ5omA3kZCsWzBMMqF11
|
|
repo:objectstack#5 · os-project-manager · session_01FEkQ5nNJM8FQkBco82NDFb 席位核对L1 (thread L1-a, area o5-ai37000) · read 2026-11-29T03:13Z · Head-sha: This is the first L1 record on this PR, a full review. Contract PASS 7249553146 was rendered on Checklist (l1-face
My readings, at this head
Owed before landing (the lander):
|
|
repo:objectstack#5 · os-project-manager · session_01FEkQ5mzSTSPADAvwapnhxr 维护者速读
席位意见:同意合并。落地顺序:PR #38439(随 markdown:2,已挂 auto-merge)先合并,本 PR 再入队,因为新加的两句注释描述的是 #38439 的行为。 席位核对 — ACCEPT · repo:objectstack#5 · Head-sha
|
|
repo:objectstack#5 · os-project-manager · session_01FEkQ5mzSTSPADAvwapnhxr Approval requested (narrowing,
|
Requested by Leehom · project thread
Fixes #38377
Clause-②: no (narrowing)
Metadata-protocol: none
Skills-docs: none — no published skill, doc page or example names the retired constant (git grep over
skills,content/docs,docs,examples,apps,ui,.claudeat 4fa2f8e: 0 hits); the ADR text is item 2, carried by the lander维护者速读
What changes
SPLIT_ALGORITHM_VERSIONleaves@objectstack/service-knowledgeat once, with no alias (the card's stage posture). Since the per-strategy split version landed, the index fingerprint (ADR-0161 K7) readsSPLIT_ALGORITHM_VERSION_BY_STRATEGYfor the source's resolved strategy, and the global constant was read by no runtime code.src/split/splitter.ts: the constant and its docblock are deleted. The per-strategy table's docblock linked to it ("Every entry started at" the constant); it now says every entry started at 1, the one split version the fingerprint read before the table, which names no retired symbol and stays true.src/split/index.ts,src/index.ts: both re-exports are deleted.src/__tests__/index-fingerprint.test.ts: the version pin keeps the two remaining constants (INDEX_FINGERPRINT_VERSION,ASSEMBLY_RULE_VERSION), and a new case pins the retirement: neither the split barrel nor the package entry has the property, with a positive control on the entry.markdownversion 2 carries, the body-less heading as its own passage and a fitting section as one passage whateverminCharsis. One is themarkdown: 2entry comment inSPLIT_ALGORITHM_VERSION_BY_STRATEGY(splitter.ts); the other is thePINNEDdocblock inindex-fingerprint.test.ts. The second clause is true only once PR feat(service-knowledge): under the markdown split, a section that fits is one passage #38439 merges; the seat lands this PR after it. The table's docblock does not tie version 2 to one change, so it needed no edit..changeset/38377-retire-split-algorithm-version.md:patch(kindnone), BREAKING banner, FROM/TO table, a sentence saying this retirement replaces the still-pending 38349 changeset's note that the constant keeps its name and value (that changeset is not edited), ADR-0087 dispositionnot-required (runtime-export-retired @objectstack/service-knowledge#SPLIT_ALGORITHM_VERSION).Item 2 of the card (the ADR-0161 K7 revisions row) is not in this PR: no
docs/adr/**edit. The landing seat appends it to the weekly ADR revisions card (carrier:PR #38375).Fixesstays because that row is landing bookkeeping.Landing: a narrowing of a published surface. It owes one contract-review-tier L2 on its final head before the queue.
Read first: (1)
src/split/splitter.ts— the reworded docblock is the only prose a reader of the table keeps; (2) the changeset — it ships as the CHANGELOG line an upgrader greps; (3) the new test case.Two-minute check:
pnpm --filter @objectstack/service-knowledge exec vitest run src/__tests__/index-fingerprint.test.ts— expect 9 tests passing, including "publishes no global split version beside the per-strategy table".Tests
Package suite at
f76ba9c9. At987b09ca, the last commit that touched code or tests,index-fingerprint.test.tsalone under the verify lock: Test Files 1 passed (1), Tests 9 passed (9), VERDICT command-exit 0.service-knowledge test + typecheck (lock VERDICT command-exit 0)
Ablation of the new retirement pin
With
export const SPLIT_ALGORITHM_VERSION = 1;appended tosrc/index.tson disk,index-fingerprint.test.tswent red:publishes no global split version beside the per-strategy tablefailed withexpected ... to not have property "SPLIT_ALGORITHM_VERSION"(1 failed, 8 passed). Restored withgit checkout HEAD, tree clean.Full dogfood (the narrowing arm), at `4fa2f8ee`
pnpm turbo run build --filter='@objectstack/dogfood^...'thenpnpm --filter @objectstack/dogfood testunder the verify lock: VERDICT command-exit 0, Test Files 495 passed, 3 skipped (498), Tests 4183 passed, 68 skipped (4251).987b09cadiffers from4fa2f8eeby comments only (git diff --stat 4fa2f8ee..HEAD: 2 files changed, 4 insertions, 1 deletion; one hunk insplitter.ts, one inindex-fingerprint.test.ts, both comment lines). The final head42214359adds one changeset sentence. So the battery was not re-run.Acceptance notes
d751790c:git grep -n 'SPLIT_ALGORITHM_VERSION\b'gave 13 lines. 5 were the declaration, the two re-exports and the pin's import and assertion (all removed here); 1 was the per-strategy docblock link (reworded); the other 7 are history:.changeset/38349-split-version-per-strategy.md,.changeset/pre/37100-knowledge-pgvector.mdand five generatedCHANGELOG.mdfiles. They are left alone: existing changesets are never edited, and CHANGELOGs are release-owned. Noskills,content/docs,docs,examples,apps,uior.claudehit.Verification
Local gates (derived with dispatch-gates --commands, reconciled with --ran: 63 derived, 63 run)
node scripts/check-adr-0087-registration.mjs --base origin/mainexit 1 on0c4609e7(the FROM column spelled an import statement, not the operand); after the fix, exit 0 on4fa2f8ee:not-required (runtime-export-retired) -- verified: @objectstack/service-knowledge#SPLIT_ALGORITHM_VERSION.node scripts/check-plugin-teardown-shape.mjs --self-testexit 3 (shallow clone could not reach its pinned fixture commit); after fetching that commit, exit 0, 48 cases pass.pnpm check:dual-build-cjs-loadsexit 3, PREREQUISITE NOT MET (needs every package built). NOT MEASURED locally, CI runs it.4fa2f8eeafter the changeset fix: check-changeset-no-major, check-empty-changeset, check:changeset-gate-self-tests, check:nul-bytes, check:doc-authoring, check:issue-citations: all exit 0. check:nul-bytes exit 0 again atf76ba9c9and at987b09ca. At42214359(changeset sentence only), check-adr-0087-registration, check-changeset-no-major, check-empty-changeset and check:nul-bytes: all exit 0.node scripts/check-platform-checklist.mjs --changed-from origin/mainexit 0: 0 anchored files in the change set.node scripts/pm/overlap-check.mjsbefore each push: clean; atf76ba9c9,987b09caand42214359it also merges cleanly with PR feat(service-knowledge): under the markdown split, a section that fits is one passage #38439.🤖 Generated with Claude Code
https://claude.ai/code/session_01FEkQ5omA3kZCsWzBMMqF11