Skip to content

refactor(service-knowledge)!: retire SPLIT_ALGORITHM_VERSION - #38452

Merged
os-zhuang merged 5 commits into
mainfrom
claude/issue-38377-retire-split-algorithm-version
Nov 29, 2026
Merged

os-zhuang merged 5 commits into
mainfrom
claude/issue-38377-retire-split-algorithm-version

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

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, .claude at 4fa2f8e: 0 hits); the ADR text is item 2, carried by the lander

维护者速读

  • 用户能看到什么变化:用户无感;只有直接引用知识服务包里那个旧常量的宿主代码,升级后编译会提示删掉这行引用。
  • 为什么做:知识平台「切分版本按策略计」之后的收尾,撤掉一个已经没有任何运行代码读取的公开常量,免得作者和 AI 以为改它有效。
  • 出错会怎样:最坏是某个宿主仍引用它而编译失败,删掉那行引用即可;可直接撤回本改动,不会触发任何索引重建。
  • 要你做的:无。

What changes

SPLIT_ALGORITHM_VERSION leaves @objectstack/service-knowledge at once, with no alias (the card's stage posture). Since the per-strategy split version landed, the index fingerprint (ADR-0161 K7) reads SPLIT_ALGORITHM_VERSION_BY_STRATEGY for 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.
  • Area-ordered additions (the sibling split card's L2 nit, comment text only, no assertion, value or snapshot changed): two comments now name both changes markdown version 2 carries, the body-less heading as its own passage and a fitting section as one passage whatever minChars is. One is the markdown: 2 entry comment in SPLIT_ALGORITHM_VERSION_BY_STRATEGY (splitter.ts); the other is the PINNED docblock in index-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 (kind none), 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 disposition not-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). Fixes stays 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. At 987b09ca, the last commit that touched code or tests, index-fingerprint.test.ts alone 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)
pnpm --filter @objectstack/service-knowledge test
 Test Files  21 passed (21)
      Tests  727 passed (727)
pnpm --filter @objectstack/service-knowledge typecheck
check:test-typecheck: OK, the test layer compiles under tsconfig.test.json; 0 file(s) / 0 error(s) held in test-typecheck-debt.json
Ablation of the new retirement pin

With export const SPLIT_ALGORITHM_VERSION = 1; appended to src/index.ts on disk, index-fingerprint.test.ts went red: publishes no global split version beside the per-strategy table failed with expected ... to not have property "SPLIT_ALGORITHM_VERSION" (1 failed, 8 passed). Restored with git checkout HEAD, tree clean.

Full dogfood (the narrowing arm), at `4fa2f8ee`

pnpm turbo run build --filter='@objectstack/dogfood^...' then pnpm --filter @objectstack/dogfood test under the verify lock: VERDICT command-exit 0, Test Files 495 passed, 3 skipped (498), Tests 4183 passed, 68 skipped (4251). 987b09ca differs from 4fa2f8ee by comments only (git diff --stat 4fa2f8ee..HEAD: 2 files changed, 4 insertions, 1 deletion; one hunk in splitter.ts, one in index-fingerprint.test.ts, both comment lines). The final head 42214359 adds one changeset sentence. So the battery was not re-run.

Acceptance notes

  • Whole-tree search before deleting, at 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.md and five generated CHANGELOG.md files. They are left alone: existing changesets are never edited, and CHANGELOGs are release-owned. No skills, content/docs, docs, examples, apps, ui or .claude hit.
  • The package has no API-surface baseline, so no generator was owed.

Verification

Local gates (derived with dispatch-gates --commands, reconciled with --ran: 63 derived, 63 run)
  • 60 of 63 exited 0 on the first pass.
  • node scripts/check-adr-0087-registration.mjs --base origin/main exit 1 on 0c4609e7 (the FROM column spelled an import statement, not the operand); after the fix, exit 0 on 4fa2f8ee: not-required (runtime-export-retired) -- verified: @objectstack/service-knowledge#SPLIT_ALGORITHM_VERSION.
  • node scripts/check-plugin-teardown-shape.mjs --self-test exit 3 (shallow clone could not reach its pinned fixture commit); after fetching that commit, exit 0, 48 cases pass.
  • pnpm check:dual-build-cjs-loads exit 3, PREREQUISITE NOT MET (needs every package built). NOT MEASURED locally, CI runs it.
  • Re-run at 4fa2f8ee after 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 at f76ba9c9 and at 987b09ca. At 42214359 (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/main exit 0: 0 anchored files in the change set.
  • node scripts/pm/overlap-check.mjs before each push: clean; at f76ba9c9, 987b09ca and 42214359 it 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

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
@github-actions github-actions Bot added size/s documentation Improvements or additions to documentation tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 29, 2026
@github-actions

github-actions Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

2 anchor(s) derived from 1 changed package(s); no hand-written page names any of them. ⚠️ 2 changed file(s) yielded no anchor (packages/services/service-knowledge/src/index.ts, packages/services/service-knowledge/src/split/index.ts), so the pages documenting them are NOT COVERED by this run — this is not a clean bill of health for those files.

What this run could not see
  • 2 changed file(s) yielded no anchor (packages/services/service-knowledge/src/index.ts, packages/services/service-knowledge/src/split/index.ts) — pages documenting those are invisible to this run
  • a page that states a rule by its inputs shares no identifier with the emitter that implements the rule, so an emitter-only diff cannot list it — not on this run and not on any run. Measured on fix(driver-sql): emit varchar(maxLength) for a text field a declared index keys on #11430: content/docs/protocol/objectql/types.mdx documents the text-family column mapping by the ObjectQL type names it maps FROM (text / textarea / html) while the diff changed createColumn; it went unlisted, and it was the page that diff falsified, in four places. No shared token exists to detect this on, so a rule your change carries has to be re-read by hand in the pages that restate it.
  • a key NAME is not a key, so the hand re-read the line above prescribes can land on the wrong schema. The same spelling is authorable on one governed type and a [REMOVED] tombstone on another for each of active, aria, joins, objects, template, tools and version (censused on [finding] tools is a key on BOTH AgentSchema (tombstoned, dead) and SkillSchema (live, cloud-attested), so a name-based search attributes skill examples to the agent key — it produced a false stop-the-line alarm on PR #19059 #19093 over the liveness ledger's governed types, top-level keys); nothing in a search result distinguishes the two, so a grep hit on a LIVE example reads as evidence about the DEAD key. Measured on fix(spec): the agent.tools liveness row says dead — it claimed live on a key the schema tombstoned #19059: content/docs/ai/agents.mdx was reported as contradicting the agent.tools tombstone over its tools: example at :161, which is inside the defineSkill({ block opened at :155 — the page was already correct. Settle ownership by PARSING the value against both schemas, never by the name: that literal PASSES SkillSchema, and as an AgentSchema it FAILS at tools with the tombstone prescription. ⛔ These names are not the whole class — a key retired through a .strict() guidance map leaves no tombstone in the walked shape and none of them here (tool.category, live as AIToolDefinition.category).

Coarse fallback — 4 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): node scripts/docs-audit/affected-docs.mjs --json 1afd9c133815ee818c7a50fd8547b9ca816c1777 → packageMentionDocs.

Which tree this was computed on

This run read content/docs from 5b6a47b35a1a7ac4677a109befe352e6735a1bcc — the merge of head 42214359722832dd0e4e1216a1c7d931f86f3bf9 into base 1afd9c133815ee818c7a50fd8547b9ca816c1777, which is what actions/checkout gives a pull_request run. Not the PR head.

A worktree cut from an older main holds a different content/docs, so re-deriving there can legitimately return a different list — that is a different tree, not a wrong row. To answer on the same tree:

# 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

⚠️ That checkout carried uncommitted changes, so the commit above does not fully identify what was read.

…own version 2 carries

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FEkQ5omA3kZCsWzBMMqF11
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-project-manager · session_01FEkQ5omA3kZCsWzBMMqF11
Contract-review-claim: session_01FEkQ5omA3kZCsWzBMMqF11 · head 987b09c · 2026-11-29T02:29Z
Face: narrowing (Clause-②: no (narrowing) on the PR body and changeset) ⇒ CONTRACT_REVIEW_TIER, run by an isolated at-tier sub-agent of the card thread.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-project-manager · session_01FEkQ5omA3kZCsWzBMMqF11

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 987b09ca62488a70776dd499d7fdf6fa9fb8d495
Local-runs: none
Scope: packages/services/service-knowledge/src/split/splitter.ts, packages/services/service-knowledge/src/split/index.ts, packages/services/service-knowledge/src/index.ts, packages/services/service-knowledge/src/tests/index-fingerprint.test.ts + packages/services/service-knowledge/src/knowledge-index-fingerprint.ts, packages/services/service-knowledge/package.json, packages/services/service-knowledge/tsup.config.ts, packages/services/service-knowledge/src/testing.ts
Security-touching: no
Rule-change-verified: none

Face: narrowing (Clause-②: no (narrowing) on the PR body and the changeset). The four paths before + are the whole diff outside the prose face; no implementing file sits in the diff beside them. The files after + are the code those hunks make a claim about, read at the head, not reviewed. Also read to judge, not reviewed: docs/adr/0161 K7 components table, docs/adr/0087 changeset-disposition addendum, scripts/check-adr-0087-registration.mjs (the seventh category), AGENTS.md pre-PR step 3, and the splitter.ts diff of PR #38439 at c645c319.

Inputs: card #38377 body and its five comments (7243233288, 7248468525, 7249394946, 7249429872, 7249447861); PR #38452 body, its five files, the net diff against main (merge base d751790c).

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: Check Changeset (both runs; it hosts check-adr-0087-registration.mjs --base), Governed Surface Queue Guard, PR-body guards (both), Build Core, TypeScript Type Check with its four lanes (workspace, source gates, consumer gates, debt ledger), Lint & Repo Gates with Lint · ESLint, Lint · CI, release & engine gates, Lint · docs & code guards and Lint · repo & tooling gates, and Test Core (7/12) to (12/12). Pending at the read: Test Core (1/12) to (6/12). Dogfood Regression Gate reads success with its shard matrix skipped, so CI did not run the dogfood battery on this head. Landing still waits for every check green; this record does not stand in for the pending six.

① Derived judgments

  • Entry . of @objectstack/service-knowledge (ESM and CJS, both built from src/index.ts per tsup.config.ts): the value export SPLIT_ALGORITHM_VERSION leaves. It was published (the pgvector changeset under .changeset/pre/ lists it among the new exports, and the package CHANGELOG carries it), so this is a narrowing of a published surface. Declared as one. Right.
  • Entry ./testing: src/testing.ts never named it. Unchanged. Right.
  • src/split/index.ts: not a key of the exports map, so not a published accept-set. Its lost re-export is internal. Right.
  • Fingerprint: computeIndexFingerprint reads SPLIT_ALGORITHM_VERSION_BY_STRATEGY[split.strategy] (knowledge-index-fingerprint.ts:103) at the base and at the head. The table's values, the four PINNED digests and MARKDOWN_V1 are outside the diff. No fingerprint moves and no index is rebuilt. Right.
  • Metadata accept-set: no packages/spec path, no schema, no stored shape, no form. Nothing an author can write changes. Right.
  • Readers of the retired name at the head: none in code. git grep at the head finds it only in two earlier changesets, five generated CHANGELOG files, this changeset, and the test's two absence strings. No ui/, apps/, examples/, skills/, content/docs or docs/adr hit. Right.

② Semver level

  • @objectstack/service-knowledge: patch, the one package the diff moves. AGENTS.md pre-PR step 3: kind none takes patch, and a non-protocol breaking change ships patch with its BREAKING banner and ADR-0087 disposition. Banner, FROM/TO table and one-line fix are all there. Right.
  • Clause-②: no (narrowing): line-initial and identical on the PR body and the changeset. Right, a published export leaves.
  • Metadata-protocol: none: right. The kind is the change to what a metadata author can write. A numeric constant of a service package's runtime entry is not authorable, no schema or stored shape names it, and the ADR-0087 addendum says the same from the other side: where a change refuses nothing an author could write, narrowed is the wrong line.
  • ADR-0087 marker: exactly one, not-required (runtime-export-retired @objectstack/service-knowledge#SPLIT_ALGORITHM_VERSION). That is the seventh category's package#Export operand, the FROM column names that operand and nothing else, and the constant has no metadata surface at the base. The gate's three predicates are its own to prove; Check Changeset is green on this head.
  • The changeset's facts hold in the tree: the fingerprint reads the per-strategy version; computeIndexFingerprint and indexExpectation, the TO column's replacements, are both exports of the entry.
  • N2 (nit), prose face: .changeset/38349-split-version-per-strategy.md is still pending and says the export "keeps its name and its value". It will print in the same release's Patch Changes as this BREAKING line. One sentence here saying this retirement replaces that statement would spare an upgrader the contradiction. A changeset edit only; this record keeps covering the head.

③ Boundary flags

  • open_questions: empty in both reports. Nothing to answer.
  • Dev flag, both reports: the two added comment clauses are "true only after PR feat(service-knowledge): under the markdown split, a section that fits is one passage #38439 merges". Answered in ④ as N1, and ESCALATED to the seat as a landing condition: this PR lands after PR feat(service-knowledge): under the markdown split, a section that fits is one passage #38439, with markdown still at 2 there. Today the order is carried by one sentence of the PR body; card review follow-ups of PR #38375 #38377 has no Blocked-by: line. .claude/skills/pm-dispatch/references/execution-duties.md asks for Blocked-by: #38439 on the card in the same stroke as the decision to wait. If PR feat(service-knowledge): under the markdown split, a section that fits is one passage #38439 is dropped, or lands with another markdown version, the two clauses are reworded on a new head, and that head owes its own record.
  • Dev flag: dogfood measured at 4fa2f8ee, not at the head. Read: 4fa2f8ee..987b09ca is 4 added and 1 removed lines, every one inside a comment (the markdown: 2 entry comment, the PINNED docblock). No runtime byte differs, so the battery's result carries. CI adds nothing here (matrix skipped). The letter of the L1 rule, a battery pinned to the head, is the seat's to accept as a deviation.
  • Dev flag: the ADR-0087 marker is in the changeset, not the PR body. That is where AGENTS.md puts it. Right.
  • Dev flag: worktree rebuilt by hand in round 2. No effect on the tree; nothing to judge.
  • Out-of-scope finding 1 (stale PINNED docblock): closed inside this PR by 987b09ca.
  • Out-of-scope finding 2, card item 2 (the ADR-0161 K7 revisions row): not in this diff, by the triage note and the claim. ESCALATED to the lander: Fixes #38377 closes the card on merge with that box open, so the row is written on the weekly ADR revisions card in the same stroke (carrier: PR fix(service-knowledge): read the split algorithm version per strategy #38375). K7's table still says "a constant the splitter exports", which stays true of the per-strategy table at module level.
  • Scope note 7249429872 (the sibling review's nit, carried here): answered by f76ba9c9 and 987b09ca.
  • SQL push-down: the diff holds no query, no id materialisation and no join. Nothing to find.
  • Author: the PR's user.login is objectstack-fleet[bot]. No off-relay author to name.

④ Design judgment

No must-fix, no should-fix.

The narrowing, against what main publishes. The name's declared meaning is ADR-0161 K7's split algorithm version. Since PR #38375 that meaning is false of it: the fingerprint is computed from the per-strategy entry, markdown is at 2, and the constant still reads 1 and is read by nothing. Retiring it takes no working capability from a consumer. It removes a declaration that had stopped being true. Whether an index is current is answered by computeIndexFingerprint and indexExpectation, both still published. The per-strategy table itself is not an export of the entry, before or after; the changeset does not promise it. A TypeScript or ESM host is told at compile or link time. A CJS host reading the property gets undefined, silently; with no runtime reader of the value in the platform, that reaches nothing.

src/split/splitter.ts

  • The constant and its docblock are deleted. No reader is left in src/. Holds.
  • Table docblock, "Every entry started at 1, the one split version the fingerprint read before this table, so introducing it changed no fingerprint": true of the base, where the constant was 1, and pinned by the test case "is unchanged for every strategy". It also removes the only {@link} to the retired symbol. Holds.
  • N1 (nit): the markdown: 2 entry comment gains "And a section that fits the bounds is one passage, whatever minChars is; it was cut as recursive cuts and its pieces merged up to minChars." At this head that is not what the file does: withPrefix hands every section with text to splitRecursive (lines 619 and 644), and the file's own head bullet still says "each section is cut as recursive cuts". The clause describes PR feat(service-knowledge): under the markdown split, a section that fits is one passage #38439 (c645c319), whose withPrefix returns a fitting section as one passage on both branches and keeps markdown at 2. Read against that diff the clause is accurate, in both halves, and the two PRs touch disjoint, non-adjacent lines of the file, so the merged tree carries both whole. Landing order matters: feat(service-knowledge): under the markdown split, a section that fits is one passage #38439 first leaves no state of main where the comment is false; this PR first leaves main with a comment the code contradicts until feat(service-knowledge): under the markdown split, a section that fits is one passage #38439 lands, and for good if it does not. A comment in a table the entry does not publish: no effect on behaviour, on any fingerprint, or on the published surface. Accepted deviation under the landing condition escalated in ③; a fix is not on a prose face and would move the head.

src/split/index.ts

  • The re-export is deleted; the per-strategy table stays exported for knowledge-index-fingerprint.ts. Holds.

src/index.ts

  • The re-export line is deleted and nothing else. The four fingerprint constants and three functions beside it stay. Holds.

src/__tests__/index-fingerprint.test.ts

  • The pin drops the retired constant and keeps ['fp1', 1]; the table pin, the frozen check and the inline snapshot are untouched. Holds.
  • New case: absence on the split barrel and on the package entry, with a positive control (INDEX_FINGERPRINT_VERSION is fp1 on the package entry's namespace), so the absence assertion cannot pass there on a namespace the matcher cannot read. It reads src/index.ts, the file both builds are made from. The static namespace imports are not disturbed by the later vi.doMock of the split barrel, which is scoped by vi.resetModules to a fresh dynamic import. Holds. The dev's ablation was not repeated; the ADR-0087 gate's own read of the entry's export list at the base and the head is the independent proof, and it is green.
  • N1 again, same clause in the PINNED docblock: same reading, same condition.
  • N3 (nit): the case title says no global version is published "beside the per-strategy table". The entry does not publish that table either. Wording only.

Tried to break it: a second reader of the constant anywhere in the tree (none); a subpath entry still carrying it (./testing does not); a baseline or ADR anchor naming it (none); a fingerprint that moves (no value in the diff); a kind other than none (nothing authorable); a text conflict with PR #38439 (changed lines 60 to 91 here, 19 to 24 and 100 onward there).

Implemented-by: claude/issue-38377-retire-split-algorithm-version
Reviewed-by: session_01FEkQ5omA3kZCsWzBMMqF11

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-project-manager · session_01FEkQ5omA3kZCsWzBMMqF11
Regen-provenance: 7249553146 · 987b09ca62488a70776dd499d7fdf6fa9fb8d495 → 42214359722832dd0e4e1216a1c7d931f86f3bf9 · git diff --name-only 987b09ca 42214359 -- . ':!.changeset/' → (empty)

Prose arm: the only change since the at-tier record is one sentence in .changeset/38377-retire-split-algorithm-version.md (its nit N2). The record 7249553146 keeps covering this head.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-project-manager · session_01FEkQ5omA3kZCsWzBMMqF11
Final green head: 42214359722832dd0e4e1216a1c7d931f86f3bf9 · 2026-11-29T03:10Z

  • Checks at this head: 40 success, 18 expected skip, 0 pending (pr-state). The one PR-body guards run reading cancelled (job 141202837043, started 02:40:07Z) was superseded by the same check re-run on the body edit, success (job 141202957180, 02:40:36Z).
  • Contract review: at-tier PASS 7249553146 on 987b09ca, carried to this head by Regen-provenance 7249591275 (changeset sentence only).
  • Dogfood (narrowing arm): green at 4fa2f8ee (Test Files 495 passed, 3 skipped; Tests 4183 passed, 68 skipped). 4fa2f8ee..42214359 touches comments in two files and the changeset only; no runtime byte differs. Accepted deviation from "dogfood at the final head".
  • Landing condition: this PR lands AFTER PR feat(service-knowledge): under the markdown split, a section that fits is one passage #38439 (two comment clauses describe its change; L2 N1). Card item 2 (ADR-0161 K7 revisions row) is the lander's, same stroke as the merge (carrier: PR fix(service-knowledge): read the split algorithm version per strategy #38375).
  • Tier: narrowing ⇒ handed to the seat for the four pieces; this card thread does not land it.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-project-manager · session_01FEkQ5nNJM8FQkBco82NDFb

席位核对

L1 (thread L1-a, area o5-ai37000) · read 2026-11-29T03:13Z · Head-sha: 42214359722832dd0e4e1216a1c7d931f86f3bf9 · verdict ACCEPT

This is the first L1 record on this PR, a full review. Contract PASS 7249553146 was rendered on 987b09ca, and Regen-provenance 7249591275 carries it to this head. The delta 987b09ca..42214359 is one changeset sentence.

Checklist (l1-face --pr 38452 at 4221435: 2 flags, both read below)

  • Shape: open, draft, base main, a ! title. Fixes #38377 is right if the lander does item 2 before merge (see Owed). Item 1, the retirement, is the whole diff.
  • Scope: 5 files. They are the two re-exports (src/index.ts, src/split/index.ts), the const and its docblock in splitter.ts, the pin test, and one changeset. Clause-②: no (narrowing) · Metadata-protocol: none, so patch with a BREAKING banner, a FROM/TO table and the ADR-0087 not-required (runtime-export-retired …) disposition. The contract-tier L2 is owed and is on record (above).
  • Gates at 4221435: 40 success, 18 expected skip, 0 pending, mergeable_state clean.
    • The flagged failure is a superseded run. PR-body guards check run 141202837043 was cancelled at 02:40:33Z. Run 141202957180 on the same head, started 02:40:36Z, is success. This is the superseded-run artefact, not a red gate.
  • Dogfood flag: accepted as a stated deviation. The full battery is recorded at 4fa2f8ee (495 files and 4183 tests passed). I diffed 4fa2f8ee..42214359 myself: one hunk in splitter.ts and one in index-fingerprint.test.ts, all comment lines, plus changeset text. No executable line moves, so the battery result carries. The queue runs the dogfood gate again.

My readings, at this head

  • Retirement: SPLIT_ALGORITHM_VERSION is gone from the declaration and from both entries, with no alias, as the card's stage posture asks. The pin now asserts that the barrel and the package entry both lack it. The index fingerprint (ADR-0161 K7) reads SPLIT_ALGORITHM_VERSION_BY_STRATEGY only, so no runtime reader is lost.
  • The whole-tree search in the body holds. The 7 remaining hits are history: two pending changesets and five generated CHANGELOGs, none to be edited. No skill, doc, example, app, ui or .claude hit, so Skills-docs: none is true.
  • The changeset, read sentence by sentence: the FROM/TO table, the no-alias line, and that this retirement supersedes the pending 38349 changeset's "keeps its name and value" note without editing that file. Each claim matches the diff.
  • Landing order. The markdown: 2 comment and the PINNED docblock now say a fitting section is one passage whatever minChars is. That is true only once feat(service-knowledge): under the markdown split, a section that fits is one passage #38439 merges. The body states it ("the seat lands this PR after it"), and overlap-check merges cleanly with feat(service-knowledge): under the markdown split, a section that fits is one passage #38439 at this head.

Owed before landing (the lander):

  1. Land feat(service-knowledge): under the markdown split, a section that fits is one passage #38439 first.
  2. Append the ADR-0161 K7 row to the weekly card ADR revisions, week of 2026-11-29: rolling checklist of ADR text out of step with main (one governed PR) #38438 ("ADR revisions, week of 2026-11-29"), so that Fixes delivers the card's item 2.
    Then the area lands it.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-project-manager · session_01FEkQ5mzSTSPADAvwapnhxr

维护者速读

  • 用户无感:知识服务包 @objectstack/service-knowledge 不再导出一个旧常量 SPLIT_ALGORITHM_VERSION(全局切分算法版本号);切分版本早已改为按策略分开记,索引指纹只读按策略的那张表。指纹不变,已建的索引不用重建。
  • 为什么做:两个版本号并存,容易有人改错那个、以为指纹会跟着变。全仓已无代码读它,只剩历史 changeset 和生成的 CHANGELOG。
  • 出错会怎样:外部若有代码 import 这个常量,升级后编译报错;changeset 写了 BREAKING 说明和替代用法(computeIndexFingerprint / indexExpectation)。可整笔撤回。
  • 要你做什么:批准合并 PR refactor(service-knowledge)!: retire SPLIT_ALGORITHM_VERSION #38452。这是收窄已发布导出(Clause-②: no (narrowing)),按 2026-11-19 裁定须你批准后才能入队,虽然路径不在受管名单上。契约档复审 PASS 7249553146,Head-sha 42214359722832dd0e4e1216a1c7d931f86f3bf9。

席位意见:同意合并。落地顺序:PR #38439(随 markdown:2,已挂 auto-merge)先合并,本 PR 再入队,因为新加的两句注释描述的是 #38439 的行为。

席位核对 — ACCEPT · repo:objectstack#5 · Head-sha 42214359722832dd0e4e1216a1c7d931f86f3bf9 · 2026-11-29T03:14Z

  1. 形态:open draft → main,! 标题,5 files(splitter.ts、两处 re-export、指纹 pin 测试、一个 changeset),+44/−18,Fixes #38377,Clause-②: no (narrowing),Metadata-protocol: none,@objectstack/service-knowledge: patch + BREAKING 说明 + ADR-0087 not-required (runtime-export-retired …)。
  2. 前提实测:check-governed-merges.mjs 读为非受管(0/5),label-write --handoff 的档位读数为收窄档(维护者落地)。契约记录经队列守卫的 contractReviewRecordReading 本地读:VERDICT PASS,open 与 unreadable 均为空,Security-touching: no。
  3. 门禁 check-runs:本 head 40 success、18 skipped、0 pending,mergeable_state clean(定稿评论 7249891960);一条 cancelled 的 PR-body guards 已被同 head 的 success 取代。
  4. 接受的偏差:dogfood 电池在 4fa2f8ee 跑(495 files / 4183 tests 通过),到本 head 只差注释与 changeset 文字,无可执行行变化,结果沿用(L2 与 L1 都已读这段 diff);契约 N1(落地顺序,见下)、N3(用例标题措辞)。
  5. 范围外去向:卡第 2 项(ADR-0161 K7 修订行)不在本 diff,落地同一笔写到每周 ADR 修订卡 ADR revisions, week of 2026-11-29: rolling checklist of ADR text out of step with main (one governed PR) #38438(载体 PR fix(service-knowledge): read the split algorithm version per strategy #38375),使 Fixes 交付完整。Skills-docs: 不欠(全仓无技能、文档引用)。
  6. 落地条款:收窄档,维护者批准后才入队;契约档 L2(fable)PASS 7249553146,由 Regen-provenance 7249591275 带到本 head(只改 changeset 一句);L1-a ACCEPT 7249918998。批准后席位:① 确认 feat(service-knowledge): under the markdown split, a section that fits is one passage #38439 已合并;② 同一笔在 ADR revisions, week of 2026-11-29: rolling checklist of ADR text out of step with main (one governed PR) #38438 记 K7 行;③ ready + auto-merge。⛔ 未批不入队。

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-project-manager · session_01FEkQ5mzSTSPADAvwapnhxr

Approval requested (narrowing, Clause-②: no (narrowing): the queue guard's narrowed leg, ruling 2026-11-19 on #35321) · 2026-11-29T03:15Z

@objectstack-fleet objectstack-fleet Bot added the pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue label Nov 29, 2026
@os-zhuang
os-zhuang marked this pull request as ready for review November 29, 2026 03:54
@os-zhuang
os-zhuang added this pull request to the merge queue Nov 29, 2026
Merged via the queue into main with commit a705be0 Nov 29, 2026
64 of 65 checks passed
@os-zhuang
os-zhuang deleted the claude/issue-38377-retire-split-algorithm-version branch November 29, 2026 04:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue size/s tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

review follow-ups of PR #38375

3 participants