You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
service-knowledge: the split algorithm version is global, so a change to one strategy rebuilds every source #38349
area:aiAI-native — agent / tool / skill metadata, and the MCP surface an agent drivesdomain:serverDomain lane — seat card indexed by label:pm:seatpriority:p2Medium: important, M3
Filing gate: ③ maintainer-directed (topic child). Source: topic #38346 (opened on the maintainer's words quoted there: 「立一个专题卡 包括 阶段 0 1 2」「专题派发此卡」).
Grading: area:ai · Task · p2 (a Task defaults to p3; raised to p2 because it blocks the phase-0 correctness fix, which would otherwise rebuild every source) · reach: every deployment with a knowledge source that takes chunks · evidence: read from the code on main 600197a.
What
The index fingerprint carries one global split algorithm version, so any change to one strategy's output rebuilds every source, including whole and recursive sources whose passages did not change.
packages/services/service-knowledge/src/knowledge-index-fingerprint.ts:103: splitAlgorithm: split === undefined ? null : SPLIT_ALGORITHM_VERSION, (the resolved strategy is already a separate component, line 98).
The constant is re-exported from the package entry (packages/services/service-knowledge/src/index.ts:23).
Ask
Read the algorithm version per strategy (whole, recursive, markdown): a change that alters one strategy's passages bumps that strategy's version only.
Acceptance
A fingerprint test pins: with only the markdown version bumped, the fingerprints of a whole source and a recursive source are byte-identical to before; a markdown source's changes.
Every existing fingerprint is unchanged by this card itself (all three versions start at the current value), so landing it rebuilds nothing.
The dev states in the report whether the package's exported surface changes (the re-export at index.ts:23) and declares Clause-② from that reading.
Reader
repo:objectstack#8, zone knowledge-split, after triage's first touch. Phase-0 sibling (the markdown correctness fix) is filed next and names this card in Blocked-by:.
Dedupe: SPLIT_ALGORITHM_VERSION 0 · split algorithm version 0 open (#37098 closed, the splitter itself).
Triage: lands in packages/services/service-knowledge/src/split/splitter.ts (SPLIT_ALGORITHM_VERSION) and knowledge-index-fingerprint.ts (~L103) · area:ai · domain:server · Task · p2 (as filed: it blocks the phase-0 fix #38350) · pm:queue · size S. Rationale: a child of topic #38346 (maintainer-opened). The fingerprint carries one global split version, so changing one strategy rebuilds every source. It heads the phase-0 chain (#38350 and #38351 wait on it), so it enters the queue first. Dispatch follows the topic's order.
Path: none
Claim: PM loop round 1 · zone knowledge-split (topic #38346; zone concurrency 5 by the maintainer, recorded on seat post #37865)
Session: session_017xRBcSSm1UGomShRsemA1N
Account: sunhaolin
Branch: claude/issue-38349-split-version-per-strategy
Worktree: objectstack-issue-38349
Domain: domain:server
Area: knowledge-split
Seat: repo:objectstack#8
File surface: packages/services/service-knowledge/src/split/splitter.ts, packages/services/service-knowledge/src/split/index.ts, packages/services/service-knowledge/src/knowledge-index-fingerprint.ts, packages/services/service-knowledge/src/__tests__/index-fingerprint.test.ts, one changeset. Not packages/services/service-knowledge/src/index.ts (PR #38307 edits it).
Container & model: S, mode:subagent, model: default tier (dispatch-gates --tier: "no path-derived mandate"), effort: high (reason: S, but a design judgement on the version's shape beside a published export)
Clause-②: no
Metadata-protocol: none
Responsibility: n/a — not a defect card
Thread-read: 7240913900
Premise: holds (re-read on origin/main c6a1328: splitter.ts:65export const SPLIT_ALGORITHM_VERSION = 1;, knowledge-index-fingerprint.ts:103splitAlgorithm: split === undefined ? null : SPLIT_ALGORITHM_VERSION,, index.ts:23 re-export; in-package readers: the fingerprint and its test only)
Prior rulings read: split_algorithm_version, splitalgorithm, fingerprint → 15 hits; ADR-0106 D3 (a metadata-cache ETag fingerprint, unrelated); ADR-0161 K7 table row "Split algorithm version — a constant the splitter exports; it changes when the splitter gives different passages for the same text and settings" (kept: the strategy is part of the settings; an ADR wording note is owed at landing); thread: none
Serial constraints cleared: #37736 (claim 7235629045, seat 1, PR #38307) names packages/services/service-knowledge/**; its 52 files at head include none of this card's files, and it edits src/index.ts, which this card leaves untouched (a route that needs it stops and queues behind #37736). #38350 waits on this card (Blocked-by: #38349). check-handover --inflight: that one overlap; overlap-check: clean; os-verify-lock --depth: depth 1, go.
Clause-② reading: the seat does not build; the dev measures whether the package's built entry declarations change and reports it, and the measurement decides.
{
"issue": 38349,
"status": "done",
"branch": "claude/issue-38349-split-version-per-strategy",
"pr": "https://github.com/objectstack-ai/objectstack/pull/38375",
"session": "session_017xRBcSSm1UGomShRsemA1N",
"premise_still_valid": true,
"summary": "Premise held on origin/main c6a1328d: splitter.ts:65 SPLIT_ALGORITHM_VERSION = 1, fingerprint L103 read it for every strategy, index.ts:23 re-exported it. splitter.ts now carries a frozen SPLIT_ALGORITHM_VERSION_BY_STRATEGY ({whole:1, recursive:1, markdown:1}, typed as a readonly record keyed by every KnowledgeSplitStrategy), exported from split/index.ts only, and the fingerprint's splitAlgorithm component reads the entry for the resolved strategy (null without a split, as before). Every value starts at 1, so no fingerprint changes: whole, recursive, markdown and no-split fingerprints are pinned to the values measured on c6a1328d before the edit. SPLIT_ALGORITHM_VERSION keeps its name and value; its JSDoc now says the fingerprint no longer reads it. src/index.ts is untouched. K7 is refined, not contradicted: the ADR's rejected alternative is one version per adapter, and the resolved strategy is part of the settings the row names.",
"tests": "Package at the merge head 49bcd520 (closure rebuilt; build, test, typecheck under the verify lock): VERDICT command-exit 0; Test Files 20 passed (20); Tests 698 passed (698); check:test-typecheck OK. Pre-merge at a3b2b4f5: 19 files, 685 tests, all passed. The fingerprint test file: 8 passed (8), 2 of them new: per-strategy pins against c6a1328d values, and a markdown-only bump done via vi.doMock of the split module over a fresh import of the fingerprint module. Ablation at 4897d470 through scripts/ablation-replace.mjs, with the read changed to the recursive entry (anchor 1 to 0, blob f55b94bf1ccf to 45095300c800): Tests 1 failed | 7 passed (8), the bump test red on markdown fingerprint equal to the pin. Restored: blob == HEAD and git diff HEAD empty. No dist rebuild needed for the ablation: the test imports src relatively.",
"gates": "dispatch-gates --commands --repo objectstack-ai/objectstack derived 64 commands at 49bcd520 (5 paths). All 64 were run at 49bcd520, exit codes captured before any pipe: 63 exit 0; node scripts/check-plugin-teardown-shape.mjs --self-test exit 3, PREREQUISITE NOT MET (positive control pinned to a commit the shallow clone cannot reach), which is NOT MEASURED. --ran reconciliation: 64 derived famil(ies) accounted for — 63 run, 1 NOT-MEASURED. Pre-merge run at a3b2b4f5: pnpm check:dual-build-cjs-loads also exit 3 (PREREQUISITE NOT MET, no dist for most packages); exit 0 at 49bcd520. The platform-checklist rename check was not run: no exported symbol was renamed or deleted. PR check-runs: NOT MEASURED, reason: report delivered at pr_create, CI not yet concluded.",
"dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
"built_surface": "dist built on c6a1328d and at a3b2b4f5, then at 49bcd520 with and without this PR's 3 source files (restored to origin/main bytes, worktree only). testing.d.ts is byte-identical. index.d.ts and index.d.cts each differ in 6 lines, all of them lines of the JSDoc comment on SPLIT_ALGORITHM_VERSION; 0 declaration lines differ. SPLIT_ALGORITHM_VERSION_BY_STRATEGY is declared in neither entry. The surface neither widens nor narrows, so Clause-②: no.",
"files_changed": [".changeset/38349-split-version-per-strategy.md", "packages/services/service-knowledge/src/__tests__/index-fingerprint.test.ts", "packages/services/service-knowledge/src/knowledge-index-fingerprint.ts", "packages/services/service-knowledge/src/split/index.ts", "packages/services/service-knowledge/src/split/splitter.ts"],
"line_budget": "121 changed lines (+108 / -13) across 5 files vs origin/main, under the 3000 threshold",
"deviations": "Merged origin/main into the branch once before pr_create (merge commit 49bcd520), because #38307 had landed changes to the same package; the delta vs origin/main is still exactly the 5 files. Four git pushes: the probe and three commits. Commit trailers and the PR footer use the AGENTS.md model-free forms. The harness reminder asked for a model-named Co-Authored-By trailer and an emoji PR footer; both were not used, reported here only.",
"mcp_calls": "0",
"api_writes": "2 relay strokes: (1) pr_create, sent as repository_dispatch POST /repos/objectstack-ai/objectstack/dispatches (204), which executed POST /repos/objectstack-ai/objectstack/pulls (draft) and POST /repos/objectstack-ai/objectstack/issues/38375/assignees; (2) this report comment, via post-stamped.mjs, POST /repos/objectstack-ai/objectstack/issues/38349/comments through the relay",
"open_questions": [],
"security_findings": "none",
"out_of_scope_findings": ["carrier: none · SPLIT_ALGORITHM_VERSION is read by no runtime code after this change (only the entry re-export and the pin test); retiring a published export is a separate narrowing card if the seat wants one · noted in the PR Acceptance notes, not filed", "carrier: repo:objectstack#8 · the ADR-0161 K7 wording note the claim records as owed at landing (per-strategy reading of the split algorithm version) · noted, not filed"]
}
area:aiAI-native — agent / tool / skill metadata, and the MCP surface an agent drivesdomain:serverDomain lane — seat card indexed by label:pm:seatpriority:p2Medium: important, M3
Activity
objectstack-fleet commentedon Nov 28, 2026
triage#1 · sunhaolin · session_017xRBcSxvUE3fDrox79CL9t
Triage: lands in
packages/services/service-knowledge/src/split/splitter.ts(SPLIT_ALGORITHM_VERSION) andknowledge-index-fingerprint.ts(~L103) · area:ai · domain:server · Task · p2 (as filed: it blocks the phase-0 fix #38350) · pm:queue · size S. Rationale: a child of topic #38346 (maintainer-opened). The fingerprint carries one global split version, so changing one strategy rebuilds every source. It heads the phase-0 chain (#38350 and #38351 wait on it), so it enters the queue first. Dispatch follows the topic's order.Path: none
Recorded 2026-11-28T14:45Z.
objectstack-fleet commentedon Nov 28, 2026
repo:objectstack#8 · sunhaolin · session_017xRBcSSm1UGomShRsemA1N
Claim: PM loop round 1 · zone knowledge-split (topic #38346; zone concurrency 5 by the maintainer, recorded on seat post #37865)
Session:
session_017xRBcSSm1UGomShRsemA1NAccount:
sunhaolinBranch:
claude/issue-38349-split-version-per-strategyWorktree:
objectstack-issue-38349Domain:
domain:serverArea: knowledge-split
Seat:
repo:objectstack#8File surface:
packages/services/service-knowledge/src/split/splitter.ts,packages/services/service-knowledge/src/split/index.ts,packages/services/service-knowledge/src/knowledge-index-fingerprint.ts,packages/services/service-knowledge/src/__tests__/index-fingerprint.test.ts, one changeset. Notpackages/services/service-knowledge/src/index.ts(PR #38307 edits it).Container & model: S,
mode:subagent, model: default tier (dispatch-gates --tier: "no path-derived mandate"), effort: high (reason: S, but a design judgement on the version's shape beside a published export)Clause-②: no
Metadata-protocol: none
Responsibility: n/a — not a defect card
Thread-read: 7240913900
Premise: holds (re-read on origin/main c6a1328:
splitter.ts:65export const SPLIT_ALGORITHM_VERSION = 1;,knowledge-index-fingerprint.ts:103splitAlgorithm: split === undefined ? null : SPLIT_ALGORITHM_VERSION,,index.ts:23re-export; in-package readers: the fingerprint and its test only)Prior rulings read: split_algorithm_version, splitalgorithm, fingerprint → 15 hits; ADR-0106 D3 (a metadata-cache ETag fingerprint, unrelated); ADR-0161 K7 table row "Split algorithm version — a constant the splitter exports; it changes when the splitter gives different passages for the same text and settings" (kept: the strategy is part of the settings; an ADR wording note is owed at landing); thread: none
Serial constraints cleared: #37736 (claim 7235629045, seat 1, PR #38307) names
packages/services/service-knowledge/**; its 52 files at head include none of this card's files, and it editssrc/index.ts, which this card leaves untouched (a route that needs it stops and queues behind #37736). #38350 waits on this card (Blocked-by: #38349).check-handover --inflight: that one overlap;overlap-check: clean;os-verify-lock --depth: depth 1, go.Clause-② reading: the seat does not build; the dev measures whether the package's built entry declarations change and reports it, and the measurement decides.
objectstack-fleet commentedon Nov 28, 2026
repo:objectstack#8 · sunhaolin · session_017xRBcSSm1UGomShRsemA1N
os-dev-report
{ "issue": 38349, "status": "done", "branch": "claude/issue-38349-split-version-per-strategy", "pr": "https://github.com/objectstack-ai/objectstack/pull/38375", "session": "session_017xRBcSSm1UGomShRsemA1N", "premise_still_valid": true, "summary": "Premise held on origin/main c6a1328d: splitter.ts:65 SPLIT_ALGORITHM_VERSION = 1, fingerprint L103 read it for every strategy, index.ts:23 re-exported it. splitter.ts now carries a frozen SPLIT_ALGORITHM_VERSION_BY_STRATEGY ({whole:1, recursive:1, markdown:1}, typed as a readonly record keyed by every KnowledgeSplitStrategy), exported from split/index.ts only, and the fingerprint's splitAlgorithm component reads the entry for the resolved strategy (null without a split, as before). Every value starts at 1, so no fingerprint changes: whole, recursive, markdown and no-split fingerprints are pinned to the values measured on c6a1328d before the edit. SPLIT_ALGORITHM_VERSION keeps its name and value; its JSDoc now says the fingerprint no longer reads it. src/index.ts is untouched. K7 is refined, not contradicted: the ADR's rejected alternative is one version per adapter, and the resolved strategy is part of the settings the row names.", "tests": "Package at the merge head 49bcd520 (closure rebuilt; build, test, typecheck under the verify lock): VERDICT command-exit 0; Test Files 20 passed (20); Tests 698 passed (698); check:test-typecheck OK. Pre-merge at a3b2b4f5: 19 files, 685 tests, all passed. The fingerprint test file: 8 passed (8), 2 of them new: per-strategy pins against c6a1328d values, and a markdown-only bump done via vi.doMock of the split module over a fresh import of the fingerprint module. Ablation at 4897d470 through scripts/ablation-replace.mjs, with the read changed to the recursive entry (anchor 1 to 0, blob f55b94bf1ccf to 45095300c800): Tests 1 failed | 7 passed (8), the bump test red on markdown fingerprint equal to the pin. Restored: blob == HEAD and git diff HEAD empty. No dist rebuild needed for the ablation: the test imports src relatively.", "gates": "dispatch-gates --commands --repo objectstack-ai/objectstack derived 64 commands at 49bcd520 (5 paths). All 64 were run at 49bcd520, exit codes captured before any pipe: 63 exit 0; node scripts/check-plugin-teardown-shape.mjs --self-test exit 3, PREREQUISITE NOT MET (positive control pinned to a commit the shallow clone cannot reach), which is NOT MEASURED. --ran reconciliation: 64 derived famil(ies) accounted for — 63 run, 1 NOT-MEASURED. Pre-merge run at a3b2b4f5: pnpm check:dual-build-cjs-loads also exit 3 (PREREQUISITE NOT MET, no dist for most packages); exit 0 at 49bcd520. The platform-checklist rename check was not run: no exported symbol was renamed or deleted. PR check-runs: NOT MEASURED, reason: report delivered at pr_create, CI not yet concluded.", "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm", "built_surface": "dist built on c6a1328d and at a3b2b4f5, then at 49bcd520 with and without this PR's 3 source files (restored to origin/main bytes, worktree only). testing.d.ts is byte-identical. index.d.ts and index.d.cts each differ in 6 lines, all of them lines of the JSDoc comment on SPLIT_ALGORITHM_VERSION; 0 declaration lines differ. SPLIT_ALGORITHM_VERSION_BY_STRATEGY is declared in neither entry. The surface neither widens nor narrows, so Clause-②: no.", "files_changed": [".changeset/38349-split-version-per-strategy.md", "packages/services/service-knowledge/src/__tests__/index-fingerprint.test.ts", "packages/services/service-knowledge/src/knowledge-index-fingerprint.ts", "packages/services/service-knowledge/src/split/index.ts", "packages/services/service-knowledge/src/split/splitter.ts"], "line_budget": "121 changed lines (+108 / -13) across 5 files vs origin/main, under the 3000 threshold", "deviations": "Merged origin/main into the branch once before pr_create (merge commit 49bcd520), because #38307 had landed changes to the same package; the delta vs origin/main is still exactly the 5 files. Four git pushes: the probe and three commits. Commit trailers and the PR footer use the AGENTS.md model-free forms. The harness reminder asked for a model-named Co-Authored-By trailer and an emoji PR footer; both were not used, reported here only.", "mcp_calls": "0", "api_writes": "2 relay strokes: (1) pr_create, sent as repository_dispatch POST /repos/objectstack-ai/objectstack/dispatches (204), which executed POST /repos/objectstack-ai/objectstack/pulls (draft) and POST /repos/objectstack-ai/objectstack/issues/38375/assignees; (2) this report comment, via post-stamped.mjs, POST /repos/objectstack-ai/objectstack/issues/38349/comments through the relay", "open_questions": [], "security_findings": "none", "out_of_scope_findings": ["carrier: none · SPLIT_ALGORITHM_VERSION is read by no runtime code after this change (only the entry re-export and the pin test); retiring a published export is a separate narrowing card if the seat wants one · noted in the PR Acceptance notes, not filed", "carrier: repo:objectstack#8 · the ADR-0161 K7 wording note the claim records as owed at landing (per-strategy reading of the split algorithm version) · noted, not filed"] }objectstack-fleet commentedon Nov 28, 2026
repo:objectstack#8 · sunhaolin · session_017xRBcSSm1UGomShRsemA1N
ACCEPT → PR #38375 comment 7242660995 (head 49bcd52). Landing armed: ready + auto-merge.
objectstack-fleet commentedon Nov 28, 2026
repo:objectstack#8 · sunhaolin · session_017xRBcSSm1UGomShRsemA1N
Delivered by PR #38375 (merged, ba33ea2); the card closed on merge. Removing the leftover
pm:dispatched(state labels leave with the close).