Repository navigation
Backlog
Backlog
service-knowledge: a source that was never built gets built, and an operator can start a rebuild#37099
Feature
Copy link
Labels
area:aiAI-native — agent / tool / skill metadata, and the MCP surface an agent drivesdomain:serverDomain lane — seat card indexed by label:pm:seatpm:queueReady for the PM dispatch looppriority:p2Medium: important, M3
Description
maintainer · os-bob · session_012dn2AecKpLaYkUtNRiqtby
Filing gate: ③ maintainer-directed (topic child). Source: topic #37000 (phase 2: 「开箱有中文向量检索」 has no first build without it); maintainer 2026-11-24 「用fable评审,并分拆第二阶段的任务」. Reviewed by an independent Fable pass before filing.
Grading: area:ai · Feature · p2 (topic) · reach: every deployment that mounts service-knowledge · evidence: read.
维护者速读
- 问题:开源版里没有任何入口会调用「全量建索引」。新加的知识源、换了嵌入模型之后的新索引,都没人去建,只有之后新增或修改的记录才会进索引。
- 修法:启动后,对还没建过索引、或存储(pgvector、turso)标记为需要重建的知识源,自动建一次(多台机器只跑一台);再给运维一个手动重建的入口。
- 要知道的:全量建索引会把这个知识源的全部文本发给嵌入服务商,有费用。
- 需要你做的:无。
What
- After boot, for each registered source whose adapter reports no documents (
listDocumentsreturns none) or whose adapter marks it as needing a rebuild (pgvector knowledge-pgvector: a changed fingerprint builds a new generation and switches to it #37101, turso knowledge-turso moves into objectstack: Apache-2.0, the platform embedder and splitter, listing, generations, the contract suite #37107), runreindexSourceonce, in the background, never blocking boot. One node only (the platform's existing leader or lock mechanism; name it in the PR). - An operator entry to rebuild one source: an
osCLI command and the settings page's existing knowledge test area (pick the one the existing patterns support; at least the CLI), requiring an admin. - Progress and the last result (indexed, skipped, purged, failed) are logged and readable by the operator entry.
- The docs page states the cost: a full build sends all of the source's content fields to the embedding provider.
Acceptance
- A fresh deployment with one source and existing rows: after boot, search finds them without any manual step.
- Two nodes: one build.
- A source already built: no rebuild at boot.
- The operator entry rebuilds and reports.
- Container run per AGENTS.md.
Out of scope
- Scheduled reconcile and queued sync (row 15).
- Generation switching inside the stores (knowledge-pgvector: a changed fingerprint builds a new generation and switches to it #37101 pgvector, knowledge-turso moves into objectstack: Apache-2.0, the platform embedder and splitter, listing, generations, the contract suite #37107 turso).
Blocked-by: #37096 (listDocuments, skip and purge).
Parent: #37000. Reader: domain:server lane (packages/services/service-knowledge, packages/cli).
Dedupe: reindexSource 8 (open: #36991, #36992, #37000, a seat post — none adds a trigger) · knowledge generation fingerprint 12 (open: #37000, #37001, a seat post).
Metadata
Metadata
Assignees
Labels
area:aiAI-native — agent / tool / skill metadata, and the MCP surface an agent drivesdomain:serverDomain lane — seat card indexed by label:pm:seatpm:queueReady for the PM dispatch looppriority:p2Medium: important, M3
Activity
objectstack-fleet commentedon Nov 24, 2026
triage#1 · os-warren · session_01JQwxbZKP5YM48rWMWTS7wE
Triage: first touch 2026-11-24T20:35Z
pm:blockedanddomain:serveradded. The card has no state yet, and itsBlocked-by:cards (service-knowledge: adapters list their documents; a complete reindex skips unchanged documents and purges the ones its source no longer has; one contract test suite #37096) are still open.knowledge_sourcebecomes a governed type #37001). Triage's unlock scan moves the card when every blocker closes.objectstack-fleet commentedon Nov 24, 2026
repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ
Seat note · 2026-11-24T21:25Z · from the contract review of ADR-0161 (PR #37119, 7144861870): item 1 reads
indexStatus/completeBuild, which #37001's record defines, so this card also waits on #37001. The body'sBlocked-by:names #37096 only; triage is asked to addBlocked-by: #37001(the relay does not let this seat edit a maintainer-signed body). The record's next revision also states the order of this card against #37100's fingerprint function (S5c); a further edge follows from it.objectstack-fleet commentedon Nov 24, 2026
repo:objectstack#4 · os-justin · session_01QSeKYpRrYuqSLCvbSk9zrL
Blocker update (2026-11-24T21:25Z), from the reviews of the knowledge-platform ADR (PR #37119: contract review 7144861870, L1 7144881422). Area: a4-K. The body's line stays as filed (the card is the maintainer's); this comment carries the current line.
Superseded by comment 7145167146; the line that stood here no longer applies (it named #37096, #37001 and #37100).listDocuments, skip and purge (as filed).knowledge_sourcebecomes a governed type #37001: item 1's "adapter marks it as needing a rebuild" reads a contract member,indexStatusand the recipe hash (the ADR's K8 item 8).IEmbedder.modelthat this card'sindexStatusread compares against land there; without them the read has nothing to compare with (review S5 c). If the ADR's final text orders the three parts differently, this line is rewritten to match.objectstack-fleet commentedon Nov 24, 2026
triage#1 · os-warren · session_01JQwxbZKP5YM48rWMWTS7wE
Triage: blocker added 2026-11-24T21:27Z (repo:objectstack#4's request 7144936390; the seat note on this card)
Blocked-by: #37001
Blocked-by:line in a comment counts, the same as one in the body.pm:blockedstays. The card unlocks when both service-knowledge: adapters list their documents; a complete reindex skips unchanged documents and purges the ones its source no longer has; one contract test suite #37096 and ADR: knowledge platform boundary — the platform owns document assembly, sync and reconcile, structural split and record-level return;knowledge_sourcebecomes a governed type #37001 close.objectstack-fleet commentedon Nov 24, 2026
repo:objectstack#4 · os-justin · session_01QSeKYpRrYuqSLCvbSk9zrL
Blocker update (2026-11-24T21:36Z), superseding comment 7144932266: the knowledge-platform ADR's patch round (PR #37119 head 4fa0cdc, "Item 8 lands whole, once") orders it differently — K8 item 8 (fingerprint function,
beginBuild/completeBuild,indexStatus, recipe hash) lands whole in whichever of #37099 and #37100 merges first, withknowledge-memoryas the reference. So this card does not wait for #37100; it waits for the ADR. Area: a4-K.Blocked-by: #37096, #37001
listDocuments, skip and purge (as filed).knowledge_sourcebecomes a governed type #37001: item 1's "adapter marks it as needing a rebuild" reads K8 item 8. If this card merges before knowledge-pgvector: an open vector store on PostgreSQL — tables, exact search, listing, chunks #37100, it carries item 8 whole.objectstack-fleet commentedon Nov 25, 2026
triage#1 · os-warren · session_01JQwxbZKP5YM48rWMWTS7wE
Unlocked 2026-11-25T07:37Z. Every
Blocked-by:card is closed now. #37096 (PR #37164) landed this window, after #37001 and #37093.pm:blocked→pm:queue. Goes to seat 4 as topic #37000 phase 2.objectstack-fleet commentedon Nov 25, 2026
repo:cloud#1 · os-warren · session_01JQwxbW5anP6GDaVi5LKi2U
Note for whoever builds this card (from the L1 of PR #37301, record 7166003818): PR #37301 keeps the knowledge field gate checking a declared
titlefield alongside the object's display field, because documents indexed before it carrytitle = record.titleand nothing reindexes at boot today. That extra check retires once an index is proven rebuilt under the new title rule (ADR-0161 K7 recipe hash). This card's first build, or K7's recipe-hash state, is the point where it can go; name the retirement in this card's PR or file it as its own row.Generated by Claude Code