Repository navigation
docs(adr): ADR-0161 dated note — an adapter embeds a search's question once, and its refusals stay ahead of the embed - #38812
Conversation
…n once, and its refusals stay ahead of the embed
A seventh dated note under K8 ("Rules for every member"), its line in the
header's amendment list, and one cross-reference under K1. Add-only: 17 lines
added, none changed and none removed.
The note registers exactly two optional adapter-contract members,
IKnowledgeAdapter.embedQuery and AdapterSearchOptions.queryVector, and the
list stays closed beyond them. It records the maintainer's ruling of
2026-12-01 (ruling record 7296268226 on the card) and settles the three
readings contract review 7290045524 left open: the adapter still embeds, with
its own embedder and query prefix, and the service computes no vector; one
vector serves every source a search binds to an adapter instance; a handed
vector is checked by its width.
It states the ruling's condition as an outcome: an adapter's refusals are
answered as on main, and no question is sent to an embedding provider for a
source the adapter refuses. The means it names: the second member is a
function that answers a promise of the vector, and the adapter calls it at
the point where it embeds today.
It declares and builds nothing: no file under packages/ changes.
Claude-Session: https://claude.ai/code/session_01JQwxbXfgA45f3y5YpDPT5h
Co-authored-by: Claude <noreply@anthropic.com>
…ed statements rest on Review pass on the seventh dated note. Two sentences change; the diff against main stays add-only (17 lines added, none changed and none removed). - The note's opening says what is not marked with a diamond rests on the ruling record, the analysis, or a reading of main. It also rests on contract review 7290045524 (the suite case, the reading that the method takes no source), on this record's own rules, on PR #38798 at its head and on the body of the card. The sentence now lists them. - The signature of IKnowledgeAdapter.embedQuery is the one PR #38798 declares at head 4561e81. The members bullet now says so, so that an approver does not read an unmarked shape with no source. Nothing the note decides moves: the two members, the type of the second, the three readings, the condition and the means are as committed. Claude-Session: https://claude.ai/code/session_01JQwxbXfgA45f3y5YpDPT5h Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#2 · os-warren · session_01JQwxbXfgA45f3y5YpDPT5h Contract reviewServed-tier: Rendered by an isolated review sub-agent of this seat's thread; the seat adopts it as written. PR #38812, card #38676 (cause 3, phase 0 of ruling 7296268226). Read: the card body and its comments (ruling 7296268226, analysis 7290428149, dev report 7297417901), contract review 7290045524 on PR #38798, this PR's body, file list (one file) and net diff against ① Derived judgments
② Semver level
③ Boundary flags
④ Design judgment
No must-fix, no should-fix. Against ruling 7296268226: held. Exactly the two members, list closed beyond them (rules 3 and 5); the condition as an outcome in the ruling record's words with its case ( Against the three readings of M1 in 7290045524: each settled in the analysis's own sentence. The adapter embeds with its own embedder and prefix where it embeds today, the service holds a promise and reads no vector, and the K1 row, the list's second sentence and item 15 stand unamended. One vector per adapter instance; an adapter whose query embedding depends on the source does not implement the method (embedder and Against the condition: held by construction and checked in code. In both stores on Against the first consumer, PR #38798 at Against the record's own rules: rule 1 (first readers and one suite case in one PR), rule 2 (optional), rule 3 (stop clause), rule 4 (a request parameter, no configuration), rule 5 (this note), item 15 (prefix stays the adapter's). The six earlier notes' conventions are followed; the diff is add-only. N1 (nit) — the suite case asks that the adapter "makes no embedding call of its own for the query", but The ◆ items await the approver, and this PR stays Tier H. This record approves nothing. Implemented-by: VERDICT: PASS |
|
repo:objectstack#2 · os-warren · session_01JQwxbXfgA45f3y5YpDPT5h 席位核对ACCEPT at head
Contract review → comment 7297709290 |
|
repo:objectstack#2 · os-warren · session_01JQwxbXfgA45f3y5YpDPT5h 维护者速读
Seat opinion: approve as is; land after #38809. ACCEPT → the |
main at 00f97b3 carries f5d6ca3, which added a seventh and an eighth dated note to ADR-0161, both of 2026-12-01, and their two header lines at the place this branch added its own. The conflict is in the header list of that one file. Every line main has is kept as main has it. This branch's header line stands after main's two, in date order as the list runs, and its ordinal moves from "a seventh dated note" to "a ninth dated note": main's list now ends at "an eighth dated note". Nothing else of this branch's text changes. The cross-reference under K1 and the note under K8 merged without conflict and are byte-identical to the branch's previous head. Claude-Session: https://claude.ai/code/session_01JQwxbXfgA45f3y5YpDPT5h Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#2 · os-warren · session_01JQwxbXfgA45f3y5YpDPT5h Contract reviewServed-tier: Delta record, rendered by an isolated review sub-agent of this seat's thread; the seat adopts it as written. It follows PASS record 7297709290 on head ① Derived judgments
② Semver level
③ Boundary flags
④ Design judgment
No must-fix, no should-fix. The ordinal is right: nine Against #38809's K7 note (split algorithm version kept per strategy): no contradiction, no new ambiguity. This note reads K7 only for where the model is judged ("on the fingerprint the service expects of the index"). Several sources of one instance where one needs a rebuild: answered source by source, fingerprint compared ahead of the embed, the refused source asks for no vector. Against #38809's Consequences note (a per-source sync state across searches): no contradiction; this note holds one promise "for the length of one search" and lists a memo kept past one search under "Not in this note". #38809's header lines say "It decides nothing and adds no contract member" of their own notes; the line after them registers two; read in order they do not conflict. Sentences naming other notes, re-read on this head, each still true and naming one note: "the note of 2026-11-30 on #38760", "The note of 2026-11-29 under K1", "What "capabilities" became", "the rules above", "every earlier note are left as written". The earlier PASS's reasoning holds: the text is the same one word apart, and the six cited paths are byte-identical between Earlier ids N1–N4 of 7297709290 stand; none closed or reopened. N5 (nit) — the K1 cross-reference names its note by date and place alone; this record's later references add the card where a date carries several notes ("on #38676" would follow that form). The place already names one note; leave it. The two ◆ items still await the approver, and this PR stays Tier H. This record approves nothing. Implemented-by: VERDICT: PASS |
|
repo:objectstack#2 · os-warren · session_01JQwxbXfgA45f3y5YpDPT5h 席位核对ACCEPT (delta) at head
Contract review → comment 7300685095 |
… notes across three records) (objectstack-ai#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 objectstack-ai#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, objectstack-ai#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 | objectstack-ai#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 | objectstack-ai#38375, objectstack-ai#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 | objectstack-ai#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 | objectstack-ai#38185, objectstack-ai#38389, objectstack-ai#38545, objectstack-ai#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`: objectstack-ai#38307, objectstack-ai#38375, objectstack-ai#38452, objectstack-ai#38742, objectstack-ai#38185, objectstack-ai#38389, objectstack-ai#38545 and objectstack-ai#38598, and objectstack-ai#38679 and objectstack-ai#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 objectstack-ai#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, objectstack-ai#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 objectstack-ai#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". objectstack-ai#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, objectstack-ai#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 objectstack-ai#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 objectstack-ai#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 · objectstack-ai#38676 behind objectstack-ai#38438`, mailbox objectstack-ai#38766 comment 7297489558); objectstack-ai#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>
Requested by Warren · project thread
Part of #38676
Update, head
a28863cef9. PR #38809 (card #38438) landed first, at 2026-12-01T03:58Z, and took the seventh and eighth**Amended**lines of ADR-0161. This head mergesmaininto the branch (merge commita28863cef9, no rebase): main's lines are kept as they are, this PR's header line follows them, and its ordinal reads "a ninth dated note". That one word is the only change to this PR's text (delta report 7300564224 on #38676); the net diff againstmainis still this note alone, +17 / -0. The gate readings and the overlap paragraph further down are of the earlier headf3cd7dba76; the 21 derived gates were re-run ata28863cef9, all exit 0.This is phase 0 of the card's cause 3 and nothing else: the dated note in ADR-0161. The card stays open for phase 1, the patch round on PR #38798, which waits for this note to merge.
Clause-②: yes (widening) — the two optional adapter-contract members the note registers
Metadata-protocol: none
The two lines above are the claim's (comment
7296290387on the card) and cover both phases. This pull request changes no contract file: the widening is what the note registers and PR #38798 builds.维护者速读
What changes
One file, add-only.
docs/adr/0161-knowledge-platform-boundary-platform-owns-assembly-sync-split-record-return-knowledge-source-is-a-governed-type.mdgains its ninth dated note: 17 lines added, none changed and none removed (659 lines to 676 onmainafter #38809). Three commits carry it, the third being the merge ofmain,a28863cef9:f00518e716, the note, andf3cd7dba76, a review pass over it (Acceptance notes).Ruling. The maintainer chose option A for cause 3 on 2026-12-01T00:22Z: ruling record
7296268226on the card, given on analysis7290428149. He ruled by choosing an option of a decision card, and the note quotes the card's words unchanged: the option 「写进约定,一次提问只转一次」 and the condition 「附带条件:存储驱动原本会给出的拒绝提示(比如“需要重建索引”)要保持在前面,不能被转向量的报错盖掉。」 Nothing of the ruling is opened again here.Three insertions, in the form the six earlier notes of this record use. Line numbers are at head
a28863cef9.**Amended**line of the eighth note**Amended**line, dated 2026-12-01: the two members, the texts the note is read with, the ruling record, the chosen option and the condition.What the note decides:
IKnowledgeAdapter.embedQuery?(query: string), which answers a promise of anumber[], andAdapterSearchOptions.queryVector?. No capability flag: the method's presence is the signal.number[]. It is not the vector itself. For one search the knowledge service makes one such function for each adapter instance that hasembedQuery. The first call of the function calls that instance'sembedQuery; every later call in that search answers the same promise, a rejected one too. An adapter calls it at the point of itssearchwhere it embeds the query today. This is the per-search memoised provider the analysis recommends, and the one choice the ruling record leaves to the note.7290045524left open.main, code, status and remedy, and no question is sent to an embedding provider for a source the adapter refuses. The ruling record's case: a source that needs a rebuild behind a failing embedder answersKNOWLEDGE_REBUILD_REQUIRED409 with 0 embedder calls. The function gives this by construction, because an adapter asks for the vector only after everything it decides first.embedQueryis searched as before.embedQuery, and a form that embeds several questions at once.No file under
packages/,content/,skills/orui/changes, and no other ADR does. The note declares; it builds nothing.Why
K8 rule 5 of this record: "The list is closed. A member that is not in the table needs a dated note on this record first." PR #38798 built the two members before the record named them, and its contract review is FAIL on that point (M1). The ruling puts the record before the code: this note first, then the patch round on #38798.
Tests
The diff touches no package, so there is no build closure to make and no package test or type-check owed. What was measured, at head
f3cd7dba76:mainat0fc9eab900, the commit this branch starts from. A refilled search still embeds the question twice:packages/services/service-knowledge/src/knowledge-service-search.ts:232is the firstsearchRoundcall and:245is the refill's.:957, insidesearchRound, callsadapter.searchonce for each source.packages/plugins/knowledge-turso/src/turso-adapter.ts:741andpackages/plugins/knowledge-pgvector/src/pgvector-adapter.ts:657embed the query inside that call.packages/,content/ordocs/namesembedQueryorqueryVector(git grepexit 1).origin/mainhas since moved one commit, tod97aaaea9a(docs(skills): the objectstack-api entry file becomes a router #38802: one skill file, one ratchet script and a changeset). It changes none of the files read here, so each reading holds there too, and this branch merges with it cleanly. The branch was not merged with it.7296268226. 27 spans in double quotation marks: each is verbatim in that record, in analysis7290428149, in review7290045524or in the ADR at the base. 0 mismatches. (The nested title "What "capabilities" became" counts as two spans.)mainat0fc9eab900: an empty organization set, a scope with no ids and atopKof zero answer no hits; the store and the embedder are present and the store is ready; the source has an active generation; that generation holds the searched fingerprint and the embedder's width, or the refusal isKNOWLEDGE_REBUILD_REQUIRED(409, with its remedy); the mode is one the adapter runs; andkeywordnever embeds. Each is ahead of the embed inturso-adapter.ts(lines 699 to 741) and inpgvector-adapter.ts(lines 581 to 657).4561e81d0e:queryVectoris the vector itself there, a read-onlynumber[], andembedQueryhas the signature the note writes.check:adr-symbol-anchorsreads all of them (its verdict line is below).No ablation: the diff changes no behaviour a test pins.
Acceptance notes
The committed note took the function, not a plain array. A plain array has to exist before
searchis called, so the service would have to embed ahead of every decision the adapter makes. A refused source would then cost an embedding call, and a failing embedder would answer in place of the adapter's own refusal. That is the shape review7290045524graded S2, and it cannot meet the condition. The function can, and the note names it as the means it takes.The review pass, commit
f3cd7dba76. Two sentences of the note changed; nothing it decides moved.main. Some rest on review7290045524, on this record's own rules, on PR perf(knowledge): embed the search question once per search, the refill round included #38798 at its head or on the body of the card. The sentence now lists them.embedQueryis the one PR perf(knowledge): embed the search question once per search, the refill round included #38798 declares at head4561e81d0e. The bullet on the two members now says so.Two things are marked with a diamond, for the approver to accept with the note or strike.
queryVectoris kept though the member is now a function; the service hands the function on everysearchcall of that search and does not judge whether a call will embed; and a rejected promise is shared like a fulfilled one, so one failed embedding call refuses each source that asked for the vector in that search.searchdirectly and hands the member answers for the function, and the adapter does not verify it.Wording that is the note's and not a quotation, each resting on a text named beside it:
7290045524asks for under S1, rewritten with the function in the vector's place.Overlap with an open draft on this file.
node scripts/pm/overlap-check.mjs --repo=objectstack-ai/objectstack, run atf3cd7dba76againstorigin/mainatd97aaaea9a, printedVERDICT overlap exit 1:origin/mainmerges cleanly, and draft #38809 (the weekly ADR revisions, second part, opened 2026-12-01T00:50Z by another seat's thread) conflicts with this branch in this file. Both insert header lines after line 24, and both call their first line "a seventh dated note" (#38809 adds a seventh under K7 and an eighth under Consequences). Its two notes and this one touch no common passage. Whichever lands second mergesmain, keeps both sets of header lines and corrects its ordinals. Which lands first is the seats' to settle; it is put as a question in the report on the card.What the note asks of PR #38798, none of it done here.
queryVectorchanges type there, from the vector to the function, and the service stops callingembedQueryahead ofsearch.Text of ADR-0161 that the note is read beside. Listed for the seat, not changed.
embedQueryjoins them by this note; the paragraph is left as written.Not done here. No changeset:
docs/adr/is published by no package. The two earlier note pull requests on this record, #38714 and #38764, each carry theskip-changesetlabel, hung in the stroke that opened them. This one is opened with no label, as its dispatch order says, so that label is owed by the seat, andCheck Changesethas no exemption until it is hung.Verification
Read first, by risk. One file changes, so these are its three places of most risk.
Two-minute check. One click: open the "Files changed" tab. Expected: one file, +17 −0, three hunks, every changed line an addition.
Landing.
docs/adr/**is a governed surface. This is opened as a draft. The hand-off is the seat's and the approval is the maintainer's. Nothing here requests a reviewer, marks it ready or arms auto-merge.CI. NOT MEASURED: the check-runs of this pull request, reason: it did not exist when this body was written. The report on the card carries the reading taken after it opened.
Gates, run locally on head
f3cd7dba76.node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstackderived 21 commands from the diff. All 21 ran in the foreground, each exit code was captured before any pipe, and all 21 are exit 0. The reconciliation:The 21 commands and their exit codes
Verdict lines of the gates that read the ADR
One gate first read NOT MEASURED, then green
pnpm --filter @objectstack/lint run check:doc-formula-expressionsfirst answered exit 3, PREREQUISITE NOT MET: two workspace packages it imports were not built in this worktree. That is a run that measured nothing, not a red gate. The two packages were built under the shared verify lock, with the command the gate printed, and the gate was run again at the same head:Left to CI, not run locally. The repo-wide lint, the type-check lanes, the test shards, and the families
dispatch-gatesprints outside the derived list. The commit trailer gate ran in the pre-push hook on the pushed range and is green.Human Minimum
pnpm lintis NOT MEASURED locally: the repo-wide scan is CI's, and the diff is one Markdown file.mainat0fc9eab900, one pull request for this phase.packages/specis not touched.content/docs/references/, to aCHANGELOG.mdor tocontent/docs/releases/.pnpm lintis as item 3 says.🤖 Generated with Claude Code
https://claude.ai/code/session_01JQwxbXfgA45f3y5YpDPT5h