Skip to content

Commit f5d6ca3

Browse files
docs(adr): ADR revisions, week of 2026-11-29, second part (four dated notes across three records) (#38809)
<!-- claude-projects-attribution: {"github_login":"os-support-ai"} --> _Requested by **Yibo Wang** · [project thread](https://claude.ai/code/project/chan_01BVUyyPie8gHwoPM18iABwB?thread=cmsg_01BVUyyPie8gHwoPM18iABwBHuLciv5hYVYUu4pypDP48J)_ Fixes #38438 Clause-②: no Metadata-protocol: none This pull request carries the card's last four rows. The first seven landed with the first pull request of this card, #38774, merged 2026-11-30. ## 维护者速读 - 用户能看到什么变化:用户无感;只在三份设计记录里补了四条带日期的说明,写明主线现在实际怎么做,原有的决定文字一个字没动。 - 为什么做:属于「每周设计记录修订」滚动清单(11 月 29 日这一周);上一张合并请求已带走七行,这次补齐剩下四行,这份清单就此收口。 - 出错会怎样:最坏是某条说明写得不准,照着设计记录干活的人会被带偏;纯文档、只增不删,可以直接撤回,不影响任何功能。 - 要你做什么:请审这四条说明并批准一次(设计记录须由你本人批)。 ## What changes Three ADR files gain four notes dated 2026-12-01. Every diff line is an addition: 43 lines added, 0 removed. No original decision text is rewritten, and no decision changes. Each note follows the note convention its own record already uses, and each says that the passage it is read with is left as written. Each row's "what is true now" was read against the code on `main` before its note was written. All four rows hold. Where a row's wording did not match the tree, the note says what `main` does; the last column says so and the list under the table gives the detail. | ADR · section | Was (the record's words) | Now (what the note records) | Source PR | Row on the card · result | |:---|:---|:---|:---|:---| | ADR-0161 · Consequences, the bullet "A stored fingerprint and recipe hash are the only index state the service relies on" | "The service keeps none of its own" | The service keeps a sync state for each source: its last build, and the record syncs that failed and are not yet repaired. Where the knowledge plugin can keep it, it is one durable record per source; otherwise the last build is kept in the process and failed syncs are not counted. Whether an index is due for a build is still read from the stored fingerprint and recipe hash, so the bullet's first sentence stands for that decision. The K8 note of 2026-11-28 already names this state | #38307 | Card body row · **written, corrected to the tree** (the in-process case) | | ADR-0161 · K7, the components table, row "Split algorithm version" | "a constant the splitter exports; it changes when the splitter gives different passages for the same text and settings" | The version is kept per split strategy, and the fingerprint reads the entry for the strategy the source resolves to. A change to one strategy's passages starts a new generation only for the sources that resolve to it. The single exported constant is retired, with no alias | #38375, #38452 | Card body row · **written, corrected to the tree** (no version value is written) | | ADR-0085 · the note of 2026-11-27, and the note of 2026-11-30 under it | "Neither key is in the spec yet", and in the later note "The second half stands: `fieldTabs` is not in the spec" | `fieldTabs` is in the spec, an optional list of `{ key, groups }` entries on `ObjectSchema`, so both keys are built. The parse refuses a group the object does not declare, a group two tabs name, a group that places a related list, and a repeated `key`. The tabs are drawn on every tier of the standard record page: the full page, the side preview and a phone. Only the standard record page reads the key, and an object extension does not carry it | #38742 | 7282251133 · **written** | | ADR-0084 · the table "What the amendment replaces", row "Entries that are not a type", and three sentences that count four entries | "The organization's own flows retire when the door that moves loose items ships."; "The menu also holds four entries that open no type's list"; "Of the four entries that are not a type, the cross-package directory is to leave the menu"; "The four entries that are not a type are 高级 on a package" | The door has shipped and the flows have retired, the entry and the package-less scope it opened alike. Four changes carried it, each named with what it did. The three sentences count the rows of the table under "Entries that are not a type" as it was first written. The note names the entries of a package's menu that open no type's list today: 概览 Overview, the default sharing overview, Diagnostics and 全部类型 All types | #38185, #38389, #38545, #38598 | 7283216315 · **written, corrected to the tree** (names and no count; a third sentence; the change that built the door) | Every prerequisite of the four rows is merged on `main`: #38307, #38375, #38452, #38742, #38185, #38389, #38545 and #38598, and #38679 and #38401, which two of the notes point back to. The newest comment on the card when this was opened is the claim amendment, 7296007044; a row added after it is not in this pull request. ### Where a note differs from its row - **ADR-0161, Consequences.** The row says the service keeps a sync state per source. On the tree that state is a durable record only where the knowledge plugin can keep it, with its object registered and a data engine bound. Otherwise the last build is kept in the process and failed syncs are not counted. The note says both. It also says what the row asks for: the stored fingerprint and recipe hash are still what a build is decided from, at boot and on reload alike. - **ADR-0161, K7.** The row says no fingerprint value moves. That is true of the change that brought the table in, and the note says so in those terms. It is not true of every entry since: one strategy's entry has been raised on `main` for a change to its own passages. So the note writes no version value, and says that an entry raised since was raised for its own strategy. - **ADR-0161, the header.** This record lists every dated note in its header, one "Amended" line each. The two notes add two such lines, the seventh and the eighth. That is the record's own convention and it is why the file gains 17 lines for two notes. - **ADR-0085.** The first pull request of this card wrote a note dated 2026-11-30 that says "The second half stands". That sentence was true for one day. The new note is placed under it and names both sentences it is read with; neither older note is edited. It does not repeat what the 2026-11-30 note says of `pinOverview`. The three tiers are read from the code: the list of field tabs is built with no regard to the tier. No test names the three tiers one by one. - **ADR-0084.** The row asks for the entry count as it now stands. The note names the entries and writes no number, since a count in a record goes stale with the next entry. The row names two sentences that count four entries with no note beside them: the one that opens "Entries that are not a type", and "Of the four entries that are not a type, the cross-package directory is to leave the menu", in the note of 2026-11-26 under "The two tiers". The note reads both. It also reads a third, which the row does not name and which has no note either: "The four entries that are not a type are 高级 on a package", under the same heading, quoted as it renders (the record links part of it). So the note says three. As first pushed, the note said two and left out the sentence the row asks about; the contract review found it, and `128528c5` corrects the note. The row names three pull requests. The note names four and says which did which part: the door itself was built by #38185. The note stays in step with the two ADR-0084 notes of the first pull request, which it does not touch. ## Tests Docs only. No package source is touched, so no package test and no type check is owed for the change. No tested behaviour changed, so there is no ablation. Checked on the committed text: - Each phrase a note quotes from its ADR is in that file as it stands on `main`. A script compared them. One quotation, in the ADR-0084 note, reads as the sentence renders. - Each path a note cites exists on the tree, and each of the seven symbols a note anchors is a declaration in the file named. `pnpm check:adr-symbol-anchors` judges the same and is green. - A probe on the spec source: `ObjectSchema` accepts `fieldTabs` with a declared group. It refuses a group the object does not declare, a group two tabs name, and a repeated `key`. `ObjectExtensionSchema` refuses `fieldTabs` as an unrecognised key, with its guidance. - `ui/packages/app-shell/src/views/studio-design/studioMenuPlacement.test.ts` reads ADR-0084's type table from disk. It was run under the verify lock on the final commit `128528c5`: `Test Files 1 passed (1)`, `Tests 21 passed (21)`. It read the same on `808e249f`, the first commit of the notes. The local gate set is the `dispatch-gates --commands` derivation for this change set, 21 commands, run on the final commit `128528c5`. Each exit code was captured before any pipe. Reconciliation: `Run reconciliation — 21 derived, 21 run, 0 NOT-MEASURED, 0 UNRUN`. The same 21 were derived and run on `808e249f` and on `f7bae5cfb`, with the same result. On `128528c5` the derivation warns that the branch is one commit behind `main` and that one file it derives from changed there. The branch does not merge `main` again while this pull request is open and mergeable, so the list was derived a second time on a throwaway tree of `main` (`d97aaaea9a`) plus this branch: the same 21 commands, and no warning. <details><summary>ADR gates on 128528c (all exit 0)</summary> | Command | Exit | Verdict line | |:---|:---|:---| | `pnpm check:adr-symbol-anchors` | 0 | `check-adr-symbol-anchors: 4606 anchors across 165 records resolve — 1726 symbol (1697 declaration, 29 literal)`, 0 line anchors survive. Seven of the symbol anchors are new with this change. | | `node scripts/check-adr-links.mjs` | 0 | `check-adr-links: 1284 relative link destination(s) under docs/adr/ resolve` | | `node scripts/check-adr-links.mjs --self-test` | 0 | | | `pnpm check:adr-anchors` | 0 | `check-adr-anchors: OK (135 anchored file(s), every governing ADR still referenced` | | `pnpm check:adr-index` | 0 | `adr-index --report: OK — docs/adr/README.md is current, every record parsed` | | `pnpm check:doc-authoring` | 0 | | | `pnpm check:nul-bytes` | 0 | `check-nul-bytes: OK (scanned 29077 text file(s)`, no raw control bytes | | `pnpm check:closed-ceremony-text` | 0 | | | `pnpm check:pm-governed-merges` | 0 | | | `pnpm --filter @objectstack/lint run check:doc-formula-expressions` | 0 | run after building the build closure of `@objectstack/lint` under the verify lock | </details> <details><summary>The other derived families on 128528c (all exit 0)</summary> `node scripts/check-closing-keyword-parity.mjs` and its `--self-test`, `node scripts/check-comment-mask-corpus.mjs` (`24511 files, 0 disagree, 0 unparseable`), `node scripts/ci/plan-test-core-shards.mjs --self-test`, `pnpm check:ci-filter-parity`, `pnpm check:cross-package-test-inputs`, `pnpm check:driver-memory-census`, `pnpm check:gitlink-declared`, `pnpm check:pm-prior-rulings`, `pnpm check:refd-timer-probe`, `pnpm check:watch-hint-literal`. Before the last push: `node scripts/check-commit-card-trailers.mjs --range origin/main..HEAD` exit 0, three commit messages, no card relation and no model identifier in the trailer pair. </details> <details><summary>The overlap check answers exit 1 against one open pull request, #38812; the reading is below</summary> `node scripts/pm/overlap-check.mjs` on `128528c5`: - Against `main` (`d97aaaea9a`): `origin/main: merges cleanly`. - Against the open pull request #38812 (a draft opened after this one, head `f3cd7dba76`, one file, 17 lines added to ADR-0161): `VERDICT overlap exit 1`, with the conflict named in the ADR-0161 file. No other open pull request shares a file with this branch. What the conflict is made of, measured on the two heads: - Both add to the header list of dated notes in ADR-0161, at the same place, under its sixth line. This branch adds two lines, "a seventh dated note" and "an eighth dated note". #38812 adds one line, and it also says "a seventh dated note". - That is the only conflict hunk. The notes themselves sit apart and merge: this branch's under K7 and under Consequences, the other's under K8 with a cross-reference at K1. So this overlap is real, and it is more than text: the two pull requests number their notes from the same count. Whichever lands second has to merge `main`, keep all three header lines, and renumber its own. See the acceptance notes. An earlier reading, on `f7bae5cfb`, answered 1 against the approvals trunk, #38497. That pull request has since ended without a merge (2026-12-01T01:02Z), and the check no longer lists it. </details> Not run locally: the repository test project behind `test:repo`, and every package suite. CI runs them on the pull request and on the merge group. Every other family CI runs is read from this pull request's check runs, not re-run here. ## Acceptance notes - **Changeset.** None, and the pull request carries `skip-changeset`. `docs/adr/**` ships in no package. - **Governed surface.** `docs/adr/**` lands on the maintainer's approval. This pull request stays a draft; the seat arranges the review at the tier this surface owes and hands it over. - **Why this one ends the card.** The card says it ends when its pull request merges. Seven rows landed with the first pull request and these four are the rest, so every row is carried. The card is open and is not waiting on a decision. - **Claim binding.** The claim amendment, 7296007044, names this branch on a line spelled `Branch (round 2):`, which the guard "The card this PR closes must claim this branch" does not read. The seat restated the claim in the shape the guard reads (comment 7296908473 on the card), and the guard is green on this pull request. - **Landing order against #38812.** Both pull requests add header lines to ADR-0161 at the same place, and both call their note the seventh; the overlap check answers 1 for that file. Whichever lands second merges `main`, keeps all three header lines and renumbers its own. If this one lands second, its two lines become the eighth and the ninth. If #38812 lands second, its line becomes the ninth. The seats set the order: this pull request first, by claim stamp (seat 2's `Notify: serial · #38676 behind #38438`, mailbox #38766 comment 7297489558); #38812 renumbers its line after this lands. - **Seen and left alone.** Outside the four rows, and not changed here. - ADR-0084's table "What the amendment replaces" has a row on the cross-package directory that says "In force until it moves". The amendment of 2026-11-26 moved that entry to Setup, and the menu model on this tree has no entry kind for it. A candidate row for the next weekly card. - The items the first pull request of this card listed under this heading stand as listed there. ## Verification ### Read first 1. `docs/adr/0161-knowledge-platform-boundary-platform-owns-assembly-sync-split-record-return-knowledge-source-is-a-governed-type.md`, the note of 2026-12-01 under the list of Consequences. The highest-risk hunk: it says a sentence of the record no longer describes `main`, and it draws the line between the state a build is decided from and the state that only reports. Check the sentence pair "Where the knowledge plugin can keep it" and "Otherwise", and the bullet "What decides a build is unchanged". 2. `docs/adr/0084-application-builder-information-architecture.md`, the amendment of 2026-12-01 under the table "What the amendment replaces". It says which of four pull requests did which part, it names the three sentences that count four entries, and it names a package's menu entries where the record counts them. Check the four attributions, the three quoted sentences and the four names. 3. `docs/adr/0085-object-semantic-roles-over-surface-hint-blocks.md`, the note of 2026-12-01. It answers a sentence that the note of the day before wrote, and its claim of three tiers is read from code with no test that names them. Check the tier sentence and the list of what the parse refuses. ### Two-minute check Run `git diff --numstat origin/main...HEAD` on this branch. Expect three rows under `docs/adr/`, each with `0` in the removed column, and 43 added lines in total (2, 24 and 17). Then run `pnpm check:adr-symbol-anchors` and expect exit 0 with a line that contains `anchors across 165 records resolve`. --- _Generated by [Claude Code](https://claude.ai/code/session_01WGufzhPdWmTd47Fi2bKYZS)_ <!-- signed: repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhPdWmTd47Fi2bKYZS --> --------- Co-authored-by: Claude <noreply@anthropic.com>
1 parent 1aa9c57 commit f5d6ca3

3 files changed

Lines changed: 43 additions & 0 deletions

‎docs/adr/0084-application-builder-information-architecture.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -513,6 +513,8 @@ ADR-0070 is not edited by this amendment. Where the ruling restates its D1 and D
513513
| [ADR-0070](./0070-package-first-authoring.md) D1–D6 | Not edited. D2 as amended stands by the ruling on question 1: a package is disabled, enabled and deleted in Setup. D1 and D5 are restated by the ruling under [Organization-level content](#amendment-2026-11-26-org), and the phase-4 cards mark them. |
514514
| [ADR-0159](./0159-forms-are-their-own-metadata-type-public-forms-are-form-items-view-is-lists-only.md) D10: "ADR-0084 needs no change" for `form` | Written before the type → group table took one pinned row per type. `form` now needs a row, and this amendment says where it goes. ADR-0159 is not edited. |
515515

516+
*(Amended 2026-12-01, card [#38438](https://github.com/objectstack-ai/objectstack/issues/38438), which decides nothing: the table's row "Entries that are not a type" says "The organization's own flows retire when the door that moves loose items ships." The door has shipped and they have retired, the entry and the package-less scope (`~org`) it opened alike, as the note of 2026-11-29 under [Organization-level content](#amendment-2026-11-26-org) records. Four changes carried it: the door itself, `POST /api/v1/packages/:id/move-in`, which moves a selection of loose items into a package ([#38185](https://github.com/objectstack-ai/objectstack/pull/38185)), the cross-package list's selection that calls it ([#38389](https://github.com/objectstack-ai/objectstack/pull/38389)), the retirement of the bulk adopt ([#38545](https://github.com/objectstack-ai/objectstack/pull/38545)), and the retirement of the package-less scope with its entry ([#38598](https://github.com/objectstack-ai/objectstack/pull/38598)). Three sentences still count four entries with no note beside them: "The menu also holds four entries that open no type's list", which opens [Entries that are not a type](#entries-not-a-type); "The four entries that are not a type are 高级 on a package", under "The two tiers" in the amendment of 2026-11-25; and "Of the four entries that are not a type, the cross-package directory is to leave the menu", in the note of 2026-11-26 under the same heading. Each counts the rows of the table under [Entries that are not a type](#entries-not-a-type) as it was first written. Of those rows, a package's menu draws the default sharing overview and Diagnostics today, both 高级, as the note of 2026-11-29 under [item 3](#amendment-2026-11-25-silent) says; the organization's own flows are retired, and the cross-package directory is the entry the 2026-11-26 amendment moved to Setup. With the entries the amendments of 2026-11-25 and 2026-11-26 added, the entries of a package's menu that open no type's list are 概览 Overview, the default sharing overview, Diagnostics and 全部类型 All types (`ui/packages/app-shell/src/views/studio-design/studioMenuModel.ts#StudioMenuEntryKind` names the three inside the fold, and 概览 is the menu's first row). The row and the three sentences are left as written; read them with this note.)*
517+
516518
### Written here where the rulings were silent (for the approver's merge) {#amendment-2026-11-26-silent}
517519

518520
Merging accepts them; an objection names the number.

‎docs/adr/0085-object-semantic-roles-over-surface-hint-blocks.md‎

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,30 @@ Keys that merely hide/re-arrange correct information (`hideRelatedTab`, `showRef
189189
> [#37802](https://github.com/objectstack-ai/objectstack/issues/37802) lands it. The 2026-11-27 note
190190
> is left as written; read that sentence with this note.
191191
192+
> **Note (2026-12-01, [#37802](https://github.com/objectstack-ai/objectstack/issues/37802), carried
193+
> by [#38438](https://github.com/objectstack-ai/objectstack/issues/38438)).** The second half of
194+
> that sentence of the 2026-11-27 note is answered too, so both keys are built, and no decision
195+
> changes. The 2026-11-30 note above says "The second half stands: `fieldTabs` is not in the spec";
196+
> that no longer describes `main`. `fieldTabs` is in the spec: `ObjectSchema.fieldTabs` is an
197+
> optional list of `{ key, groups }` entries
198+
> (`packages/spec/src/data/object.zod.ts#ObjectFieldTabSchema`). `key` names the tab, and `groups`
199+
> lists keys of the object's own `fieldGroups`: those groups are drawn in that order in a tab of
200+
> their own and leave the overview. The tabs come right after the overview, in declared order, ahead
201+
> of every other tab, as the 2026-11-27 note says. A tab takes its title and icon from its first
202+
> group, and the reader's arrangement neither moves nor hides it. The parse refuses a group the
203+
> object does not declare, a group two tabs name, a group that places a related list, and a repeated
204+
> `key`. The field tabs are drawn on every tier of the standard record page: the full page, the side
205+
> preview and a phone. The limit to the wide full page in the 2026-11-27 note is `pinOverview`'s
206+
> alone. Only the standard record page reads the key: the entry form, print pages and authored
207+
> `full`, `html` and `react` pages lay out every group as before. Like `pinOverview`, it is not an
208+
> object-extension key: `ObjectExtensionSchema` refuses it with guidance that names
209+
> `ObjectSchema.fieldTabs`. The placement is
210+
> `ui/packages/plugin-detail/src/synth/buildDefaultPageSchema.ts#fieldTabPlacement`. Built by
211+
> [#38742](https://github.com/objectstack-ai/objectstack/pull/38742); `pinOverview` was built by
212+
> [#38679](https://github.com/objectstack-ai/objectstack/pull/38679), as the note above records. The
213+
> two notes above are left as written; read "Neither key is in the spec yet" and "The second half
214+
> stands" with this note.
215+
192216
### 3. Deletions (all evidenced zero-author)
193217

194218
- **`detail` block removed from `ObjectSchema`** — all three typed keys. `renderViaSchema` retires *together with* the legacy monolith renderer path in objectui (separate execution PR; the key is only that path's steering wheel, deleting it alone saves nothing). `hideReferenceRail`/`hideRelatedTab` are removed outright (the former is a proven no-op for spec authors; the latter's raison d'être — overriding rail/tab dedup — died with the rail).

‎docs/adr/0161-knowledge-platform-boundary-platform-owns-assembly-sync-split-record-return-knowledge-source-is-a-governed-type.md‎

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222
- **Amended** (2026-11-29, [#38502](https://github.com/objectstack-ai/objectstack/issues/38502)): a fourth dated note, under "What follows from the two lists" in [K1](#k1--the-boundary), amends that list's sentence "The service does not choose a model, compute a vector, score a candidate, rerank or parse a file": the service may re-order the hits it is about to answer by an ordering their source declares against a fact about the caller, by position and never by score, and a source may declare what a hit brings with it (`source.affinity`, `source.expand`). It is written on the maintainer's ruling of that day, his choice of the decision card's option 「A 精简:排序加带出」 (record [`7251603512`](https://github.com/objectstack-ai/objectstack/issues/38412#issuecomment-7251603512) on #38412). It adds no contract member. A cross-reference stands under [K4](#k4--knowledge_source-is-admitted-as-a-metadata-type). The status line above is left as it is.
2323
- **Amended** (2026-11-30, [#38692](https://github.com/objectstack-ai/objectstack/issues/38692)): a fifth dated note, under "Rules for every member" in [K8](#k8--the-contract-additions-decided-item-by-item), amends rule 4 of that list and the reading of the "Hybrid retrieval" row of [K1](#k1--the-boundary), and with it of "hybrid retrieval" in the title, in the D1 key-words line above and in TL;DR item 1: a knowledge source declares which retrieval legs run and the vector leg's share (`source.retrieval`), the adapter reports the modes it supports and still decides how candidates are found and how the legs are fused, and a parameter of one search request is not configuration. Decided by the maintainer on 2026-11-30: ruling record [`7270218011`](https://github.com/objectstack-ai/objectstack/issues/38692#issuecomment-7270218011) on #38692, given on his words 「同意,更新决策卡」 (2026-11-30T06:00Z) and revised after an independent review on his words 「全部采纳,修正裁决」 (2026-11-30T06:16Z); the note records the revised text. It registers two contract members, `AdapterCapabilities.retrieval` and `AdapterSearchOptions.retrieval`; that the second is optional, like the first, is his choice of the decision card's option 「可选(推荐)」 at 2026-11-30T07:57Z (record [`7272337479`](https://github.com/objectstack-ai/objectstack/issues/38692#issuecomment-7272337479) on #38692). It is in force from the maintainer's merge of the PR that carries it, which the record keeps for him: 「单独 PR,Tier H,由维护者亲手合并」. Cross-references stand under [K1](#k1--the-boundary) and [K4](#k4--knowledge_source-is-admitted-as-a-metadata-type). The status line above is left as it is.
2424
- **Amended** (2026-11-30, [#38760](https://github.com/objectstack-ai/objectstack/issues/38760)): a sixth dated note, under "What follows from the two lists" in [K1](#k1--the-boundary), amends the reading of the "Rerank" row of that section, and with it of "rerank" in the title, in the D1 key-words line above and in TL;DR item 1. It amends again the sentence of that list which the fourth note amended, and rule 4 of [K8](#k8--the-contract-additions-decided-item-by-item) as the fifth note left it: a knowledge source may declare that its searches are reranked (`source.retrieval.rerank`), the reranker is the deployment's configuration and no source names a model, and the knowledge service reranks, after the permission re-check and before the cut to `topK`. The adapter contract does not change. Decided by the maintainer on 2026-11-30, after the rulings the fifth note records: on his words 「有就用」 (10:13Z) and 「所以还是应该按照主流系统的做法,开了开关,一律重排」 (10:37Z), as the body of [#38750](https://github.com/objectstack-ai/objectstack/issues/38750), the epic for knowledge retrieval rerank, records them, and on his 「全部同意」 (10:47Z) to the six decisions of that card (ruling record [`7276086125`](https://github.com/objectstack-ai/objectstack/issues/38750#issuecomment-7276086125) on #38750). The first of the six, which is not ruling D1 of the key-words line above, says of this note: "Accepting row 1's ADR-0161 note records it; no separate decision card." It adds no contract member, no tool argument and no settings key. Cross-references stand under [K2](#k2--the-texts-this-record-revises), [K4](#k4--knowledge_source-is-admitted-as-a-metadata-type) and [K8](#k8--the-contract-additions-decided-item-by-item). The status line above is left as it is.
25+
- **Amended** (2026-12-01, [#38438](https://github.com/objectstack-ai/objectstack/issues/38438)): a seventh dated note, under the components table of [K7](#k7--one-index-fingerprint-a-changed-fingerprint-is-a-new-generation), records that the split algorithm version of that table is kept per strategy and read for the strategy the source resolves to, where the row says "a constant the splitter exports". Built by [#38375](https://github.com/objectstack-ai/objectstack/pull/38375); the single constant was retired by [#38452](https://github.com/objectstack-ai/objectstack/pull/38452). It decides nothing and adds no contract member. The status line above is left as it is.
26+
- **Amended** (2026-12-01, [#38438](https://github.com/objectstack-ai/objectstack/issues/38438)): an eighth dated note, under the list of [Consequences](#consequences), records that the service keeps a sync state for each source, where the bullet "A stored fingerprint and recipe hash are the only index state the service relies on" says "The service keeps none of its own". Built by [#38307](https://github.com/objectstack-ai/objectstack/pull/38307). Whether an index is due for a build is still read from the stored fingerprint and recipe hash. It decides nothing and adds no contract member. The status line above is left as it is.
2527

2628
---
2729

@@ -333,6 +335,14 @@ The index of a source has **one fingerprint**. The service computes it, in one f
333335
- **Whose embedder.** K1 gives the embedding calls to the adapter, and an adapter may call the platform's embedder service, an embedder it was built with, or an engine that embeds inside itself. So the first two components are always what the adapter reports, for every adapter. The service never reads them from the deployment's settings around the adapter.
334336
- **The split that was applied, not the split that was written.** #37098 resolves `maxChars` as the smaller of the configured value and a share of the embedder's limit, with a settings key beneath the source's own. A changed setting or a changed limit changes the passages, so the resolved values are what is hashed.
335337

338+
> **Note (2026-12-01, [#38438](https://github.com/objectstack-ai/objectstack/issues/38438), built by [#38375](https://github.com/objectstack-ai/objectstack/pull/38375) and [#38452](https://github.com/objectstack-ai/objectstack/pull/38452)) — the "Split algorithm version" row of the table above: the version is kept per strategy, and the fingerprint reads the entry for the strategy the source resolves to.** The row says "a constant the splitter exports; it changes when the splitter gives different passages for the same text and settings". The splitter no longer exports one constant, and no decision changes. Since #38375 the version is a table with one entry for each split strategy (`packages/services/service-knowledge/src/split/splitter.ts#SPLIT_ALGORITHM_VERSION_BY_STRATEGY`), and the fingerprint reads the entry for the strategy the source resolves to (`packages/services/service-knowledge/src/knowledge-index-fingerprint.ts#computeIndexFingerprint`). The strategy is one of the settings the row names, so the row's rule holds entry by entry: an entry changes when its strategy gives different passages for the same text and the same resolved split. A change to one strategy's passages then starts a new generation only for the sources that resolve to that strategy. The sources of the other strategies keep their fingerprint and are not rebuilt. A change that several strategies share moves every entry whose passages it changes.
339+
>
340+
> - **No fingerprint moved when the table came in.** Every entry started at the one version the fingerprint read before, so #38375 rebuilt nothing. An entry that has been raised since was raised for a change to its own strategy's passages.
341+
> - **The single constant is retired.** #38452 removed the exported `SPLIT_ALGORITHM_VERSION` at once, with no alias. The per-strategy table is the only split version the fingerprint reads, and the package publishes no other.
342+
> - **A new strategy cannot reach the fingerprint without a version.** The table is typed over every strategy.
343+
>
344+
> The table is left as written; read its "Split algorithm version" row with this note.
345+
336346
**A changed fingerprint means a new generation.** A generation is one complete index of one source under one fingerprint.
337347

338348
1. **Generations never mix.** Every stored passage belongs to one generation. Vectors of two models, or passages of two splits, are never ranked against each other.
@@ -571,6 +581,13 @@ The children are the epic's, in its layout as it stands after the phase-2 cards
571581
- **The docs stay as they are until the children land** (K2). For that time the opening sentence of the protocol page states a position this record has replaced.
572582
- **The cloud record owes a pointer to this number** ([Provenance](#provenance)).
573583

584+
> **Note (2026-12-01, [#38438](https://github.com/objectstack-ai/objectstack/issues/38438), built by [#38307](https://github.com/objectstack-ai/objectstack/pull/38307)) — the bullet "A stored fingerprint and recipe hash are the only index state the service relies on" above: the service keeps a sync state for each source, and a build is still decided by what the adapter holds.** The bullet goes on: "The service keeps none of its own". That sentence no longer describes `main`, and no decision changes. Since #38307 the service keeps a sync state for each source: its last build, and the record syncs that failed and are not yet repaired. Where the knowledge plugin can keep it, with the object registered and a data engine bound, it is one durable record per source (`packages/services/service-knowledge/src/knowledge-sync-state.ts#KNOWLEDGE_SYNC_STATE_OBJECT`). The service alone writes it and every node of a deployment reads it, so what a source reports of its last build is the same on every node, and a restart forgets nothing. Otherwise the last build is kept in the process and failed syncs are not counted. The note of 2026-11-28 under the table of [K8](#k8--the-contract-additions-decided-item-by-item) already names this state, in its bullet "A known gap".
585+
>
586+
> - **What decides a build is unchanged.** Whether a source's index is due for a build is read from what the adapter holds for it, the stored fingerprint and recipe hash (`packages/services/service-knowledge/src/knowledge-service-indexing.ts#readIndexStateOf`), at boot and on reload alike. The sync state is not read there. So the bullet's first sentence stands for the decision it was written about, and so does its last clause: an adapter that stores neither can only tell an empty index from a built one.
587+
> - **What the sync state is for.** It reports the last build of a source and how it ended, and how many record syncs failed. A reconcile of the source that completes clears the failures that came before its walk. It does not say which record changes were never attempted, which is the gap the note of 2026-11-28 records.
588+
>
589+
> The bullet is left as written; read "The service keeps none of its own" with this note.
590+
574591
## Alternatives considered
575592

576593
- **Keep #4606's posture**: the contract in the core, engines by integration, nothing added. Not taken: ruling D1.

0 commit comments

Comments
 (0)