Skip to content

专题:知识检索平台化(应用写一份知识源配置就有可用的检索:开源、托管、企业版都能用) #37000

Backlog
7 of 21 issues completed

Description

@os-bob

maintainer · os-bob · session_012dn2AecKpLaYkUtNRiqtby

Filing gate: ③ maintainer-directed (topic parent). Source: maintainer. Key words (maintainer, 2026-11-24, this session): 「专题 ② 知识检索平台化 也一起立」「需要拍板的事项 都同意」「这几个专题任务用fable 审核之后立卡」「目前开发的策略是按专题派」; restructured the same day: 「37000 现在就启动,就是要和你讨论分阶段」「合并,按四阶段改,先立第一阶段的卡」 (#36990 merged into this epic). Reviewed by an independent Fable pass before filing.
Supersedes: the maintainer's 2026-11-15 positioning on #33933 (「知识库 根本还没开始开发」「目前不是本项目的重点」) and its cloud consequence cloud#4569 (closed); the earlier knowledge positioning in #4606 (engines by integration, no new open-core commitment, vector stores Enterprise) and the no-reconcile option in #4672. The decisions are written down in objectstack-ai/cloud#4960 and #37001.

维护者速读

阶段一:地基(现在开工)

业务结果:现有知识服务的结果是对的——失效版本搜不到,重建不撑爆内存,大批量嵌入不失败;边界决定落地。

Child Blocked-by Lane
objectstack-ai/cloud#4960 — ADR (cloud): open/closed line (parent: #36996; shared) none cloud
#37001 — ADR: knowledge platform boundary and knowledge_source admission cloud#4960 spec
#36991 — event sync honours the source where; a restored record re-enters the index #36650 server
#36992 — reindexSource pages instead of one unbounded read #36991 server
#36995 — embedder-openai splits inputs into per-provider batches none plugins

阶段二:自建部署和本地开发可用(企业版、开源)

业务结果:开箱有中文向量检索——PostgreSQL 部署用 pgvector,os dev(默认 SQLite)用本地 libSQL 文件上的 turso;搜出来的是「哪几份制度」;BrightRule 改用平台检索。知识源仍在代码里注册(不必等元数据化),应用以 requires: ['knowledge'] 打开知识能力。卡于 2026-11-24 拆出(维护者:「用fable评审,并分拆第二阶段的任务」「现在就调整」——第 7 行 turso 迁移从阶段三提前到这里),立卡前经 Fable 独立评审。

Child Blocked-by
#37093 — embedder-openai: an over-limit input is refused, not truncated none
#37094 — open edition registers EMBEDDER_SERVICE from the ai.embedder_* settings none
#37095 — CI: the PostgreSQL job runs on an image with pgvector (governed: maintainer merges) none
#37096 — row 2: listDocuments, docHash skip, safe purge, adapter contract suite #37001, #36992
#37097 — documents carry their organization; search passes the caller's organizations #37001, #36991
#37098 — row 6: service-layer splitter, chunk channel, split key #37001, #37096, #37093
#37099 — a never-built source gets built; operator rebuild entry #37096
#37100 — row 8a: knowledge-pgvector tables, exact search, listing, chunks #37001, #37096, #37098, #37095, #37097
#37101 — row 8b: knowledge-pgvector builds a new generation on a fingerprint change #37100, #37099
#37107 — row 7 (moved up): knowledge-turso moves into objectstack (Apache-2.0, platform embedder and splitter, listing, generations, contract suite) #37001, #37096, #37098, #37097
#37102 — row 9: requires: ['knowledge'] mounts the service: pgvector on PostgreSQL, turso on a local libSQL file otherwise #37001, #37100, #37107, #37094
#36993 — search refills after the permission filter (moved up from phase 4: #37103 builds on it) none
#37103 — row 10: records, not chunks: granularity + groupBy #37001, #36993, #37098, #37096
#37104 — knowledge settings: every key gets a reader or is removed (incl. enforce_rls) #37098, #37102, #37004
objectstack-ai/brightrule#21 — BrightRule moves to the platform knowledge store (related, not a child) #37100, #37103, #37102

Can start now: #37093, #37094, #37095, #36993. The rest wait for #37001. The contract additions these cards propose are listed on #37001 for the ADR to decide. Related, not a child: #37106 (evaluate making os dev's default database libSQL).
Cloud follow-up (maintainer's session): once #37107 lands, remove packages/knowledge-turso from the cloud repo.

阶段三:托管可用 + 零代码配置

业务结果:管理员在 Studio 或 MCP 里配置「哪些数据能检索」,随应用包发布;托管云可用(托管跑不了应用代码插件,所以必须和元数据化一起做);应用内对话和 MCP 都能检索,并能限定在一份制度里搜。

Row Blocked-by
3. knowledge_source governed type with its loader in one PR (registry, stack collection, liveness, baselines, ADR-0087 renames and retirements, subscribe-and-reload, reap-guard set dynamic); content refuses '*' #37001, #36991
4. lint and os validate reference checks (area:build) 3
5. Studio form (area:build); 5b. skills/objectstack-ai + MCP authoring schema 3
14. cloud: the kernel registers the knowledge service and reads the embedder from settings (replaces cloud#4569) #37107
13. cloud: the in-app agent registers the shared search_knowledge definition — objectstack-ai/cloud#4933 (adopted child) #36650
11. scope filter: scope: [{object, ids}] → typed adapter filter 2
12. MCP search_knowledge gains scope / granularity / groupBy #36650, 10, 11

阶段四:可运维

业务结果:保存不再等向量服务;服务宕机后索引能自动追平;管理员能看到同步状态。

Child / row Blocked-by
15. sync through the queue service + daily reconcile sharing row 2's purge 2, #36991
sync-failure counts per source (row; its reader is row 15's reconcile) 15
#36994 — hit title from the object's display field #36991, #36839

Rulings that bound every child

Done when

A knowledge source written as metadata builds and searches Chinese text on (a) os dev, (b) a hosted environment, (c) an enterprise PostgreSQL deployment ((b) and (c) verified on the cloud cards); the MCP door and the in-app agent serve byte-identical search_knowledge definitions; a reindex after an outage converges.

Exception note (pm:epic on a cross-layer line): opened by the maintainer's words above; territory = packages/services/service-knowledge, packages/plugins/knowledge-*, packages/plugins/embedder-openai, packages/spec/src/ai/knowledge-*, packages/spec/src/contracts/knowledge-*, content/docs/protocol/knowledge.mdx.
Related, not children: #36650 / PR #36823 (MCP knowledge tool; merged), #36839 / PR #36850 (merged), #33933 / PR #36975 (settings only where the service is mounted), #36990 (closed, merged here), #37106 (default database evaluation).
Reader: phases 1–2 → repo:objectstack seat 4 (#34830), which holds the same files (#37095 → the devx lane); cloud-repo work → the maintainer's session (seat 4 has no cloud access).
Dedupe: knowledge_source 0 · knowledge-turso 65 / cloud 40 (none on moving it) · pgvector 2 (no adapter card) · KnowledgeServicePlugin 9 (open: #33933) · knowledge service-queue reconcile 25 (none open).

Sub-issues

Sub-issues

7 of 21 Issues completed
Loading 21 sub-issues

Activity

  1. added
    pm:epic
    area:ai
    on Nov 24, 2026
  2. os-bob commented on Nov 24, 2026

    @os-bob
    ContributorAuthor

    maintainer · os-bob · session_012dn2AecKpLaYkUtNRiqtby

    Children filed: 0 → objectstack-ai/cloud#4960 (parented under #36996, blocks child 1 here) · 1 → #37001 · 13 → objectstack-ai/cloud#4933 (adopted, scope comment on it). Rows 2–12, 14, 15 are filed when the epic is scheduled (after BrightRule's locate evaluation). Row 14 replaces cloud#4569, closed today.


    Generated by Claude Code

  3. added
    priority:p2
    and removed on Nov 24, 2026
  4. os-bob commented on Nov 24, 2026

    @os-bob
    ContributorAuthor

    maintainer · os-bob · session_012dn2AecKpLaYkUtNRiqtby

    Ruling-ref: priority:p2 and start now — maintainer 2026-11-24: 「37000 现在就启动,就是要和你讨论分阶段」「合并,按四阶段改,先立第一阶段的卡」.

    Body rewritten into four phases; #36990 merged here (closed). Phase 1 cards, all p2: objectstack-ai/cloud#4960 (shared ADR), #37001, #36991, #36992, #36995. Phases 2–4 stay rows until their phase starts.


    Generated by Claude Code

  5. os-bob commented on Nov 24, 2026

    @os-bob
    ContributorAuthor

    maintainer · os-bob · session_012dn2AecKpLaYkUtNRiqtby

    Correction: my 15:01Z priority update on #37001, #36991, #36992 and #36995 replaced the whole label set and dropped triage's state labels. Restored as triage set them: #37001 / #36991 / #36992 pm:blocked, #36995 pm:queue; priority stays p2.

    Routing: triage noted on #36995 that no seat holds area:ai below p1. The maintainer routed this epic's phase 1 to repo:objectstack seat 4 (#34830, notified 15:04Z), which holds the same files.


    Generated by Claude Code

  6. os-bob commented on Nov 24, 2026

    @os-bob
    ContributorAuthor

    maintainer · os-bob · session_012dn2AecKpLaYkUtNRiqtby

    Note for row 14 (cloud: the kernel registers the knowledge service), to be added to that card's acceptance when it is filed:

    • A narrowed AI identity's search_knowledge returns no hit from an object outside its grant, on both doors. The test sits beside the cloud actor-scope tests.

    Source: the 2026-11-24 analysis behind objectstack-ai/cloud#4969. A narrowed call is admitted at L1 as a no-record tool, and the knowledge service re-reads each hit as the caller (knowledge-service.ts:370). The data door then drops objects outside the grant. This was read from the code only; row 14 is the first point where it can be run.


    Generated by Claude Code

  7. added sub-issues on Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:aipm:epicpriority:p2

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions