Skip to content

[Decision] Search the package manuals (doc metadata) through the knowledge service: which of three shapes #38352

Backlog

Description

@objectstack-fleet

triage#1 · sunhaolin · session_017xRBcSxvUE3fDrox79CL9t

Filing gate: ② a decision only the maintainer can make · Source: maintainer. In the triage session today the maintainer asked 「平台的文档元数据本身不是最需要使用知识库搜索的吗」, then 「docs 元数据在界面上不能修改吗?管理员不能增加新的手册吗」, then 「你觉得哪个方案更简单?」 and 「立决策卡」.

维护者速读

  • 问题:用户和 agent 在应用里问「这个流程怎么用、规则是什么」,答案就在应用手册里;现在的手册搜索只认原词,换个说法就搜不到,管理员新写的手册也一样。
  • 选项:A 手册搜索内部改用知识检索,手册的查看权限照旧,约两个 PR;B 让知识源多一种「手册」来源,作者可以自己配,约四个 PR,要改协议;C 把手册同步成一张系统表,复用表格的检索,约三到四个 PR,权限要重新对一遍。
  • 推荐 A:改动最小、不动协议,手册谁能看的规则原封不动。
  • 不定会怎样:手册继续只能按原词搜,agent 答流程类问题时常常找不到手册里写好的答案。

Background (readings at origin/main 600197a, read 2026-11-28 ~14:35 UTC)

  • Manual search today. search_package_docs and read_package_doc (MCP) are served by packages/runtime/src/domains/mcp-package-docs.ts. That file reads every page through protocol.getMetaItems({ type: 'doc' }) and the book list the same way (~L120-121). Both pass the /meta/doc docs-audience read gate (createMetaListReadGate, ADR-0046 §6.7). Its own header: "No server-side doc search exists, so the search is the smallest honest one": a term matches by substring in a page's title, a heading or its text.
    • Re-check: git show origin/main:packages/runtime/src/domains/mcp-package-docs.ts | grep -n "smallest honest\|getMetaItems"
  • Manuals are written at run time too. The registry row for doc reads allowRuntimeCreate: true, supportsOverlay: false, and book reads allowRuntimeCreate: true, supportsOverlay: true (packages/spec/src/kernel/metadata-plugin.zod.ts ~L1214, L1231). Studio lists both under 高级 → 平台 (studioMenuPlacement.ts). The doc create form writes the body on the canvas. So an admin can add pages and re-order a book, but cannot edit a page a package ships. Runtime pages are stored in sys_metadata (managedBy: 'engine-owned').
    • Re-check: git show origin/main:packages/spec/src/kernel/metadata-plugin.zod.ts | grep -n "type: 'doc'\|type: 'book'"
  • Knowledge search today. knowledge_source has one kind, object; file and http are retired (packages/spec/src/ai/knowledge-source.zod.ts ~L127-144). search_knowledge re-checks each hit against the caller's row-level security (packages/services/service-knowledge/src/knowledge-tools.ts ~L64-69). The example app indexes one business object (examples/app-showcase/objectstack.config.ts, ShowcaseTaskNotesKnowledge). No example indexes manuals.
    • Re-check: git grep -n "kind: enumWithRetiredValues" origin/main -- packages/spec/src/ai/knowledge-source.zod.ts
  • Two permission models. A manual is visible by its book's audience (org, public, { permissionSet }, { systemPermission }). A knowledge hit is visible by the source object's row-level security. Nothing maps one onto the other today.

Governing text: ADR-0161 D2 (docs/adr/0161-…): "knowledge_source becomes a governed metadata type referencing objects". ADR-0161 D1: the platform owns assembly, sync and reconcile, and adapters own embedding and retrieval. ADR-0046 §6.7: the docs-audience gate is the one visibility rule for manuals.

Protocol: option A changes no author-writable key. Option B adds a knowledge_source kind, a public-contract change that reopens ADR-0161 D2. Option C adds a system object.

The question

Should the manual search go through the knowledge service, and in which shape: an internal index behind the existing doc tools, a new knowledge-source kind authors can declare, or manuals synced into an object?

Options

Option What it does What the customer sees Effort
A · internal index behind search_package_docs The knowledge service keeps one internal index of the doc items (getMetaItems), rebuilt at boot and package install and on a doc or book save. search_package_docs ranks from it, then applies the same docs-audience gate. No new key. Where the deployment has no embedder (the memory store), it keeps today's substring match. Manual questions find pages by meaning on a deployment with an embedder; nothing changes in who may see which page. server lane · ~2 PRs (runtime doc search + reindex on doc/book save and install) · no measured precedent
B · a doc kind of knowledge_source Authors declare source: { kind: 'doc', book? }. The service syncs from metadata saves as well as record changes. search_knowledge must judge a doc hit by the book audience, not by row-level security. Authors choose which manuals are searchable, and agents search manuals and records with one tool. spec + server + lint + skills/docs + an ADR-0161 amendment · ~4 PRs · no measured precedent
C · manuals synced into a system object Each doc page is mirrored as a row of a new system object, and an ordinary object knowledge source indexes it. Book audiences must be translated into row-level security on that object. The same as A once it works. A wrong translation either shows a manual to people its book excludes, or hides it from people who may read it. server (+ spec for the object) · ~3–4 PRs · no measured precedent

Business meaning: A is upgrading the search box of an existing help center. B is letting every app owner decide which binders go into the company search engine. C is photocopying the help center into a filing cabinet and re-doing its lock list.

Four-axis analysis

os-decision-facets

  • ① Long-term soundness: A adds no special case and no contract (one search path, one visibility rule). B grows the knowledge contract back past ADR-0161 D2's one-kind shape and adds a second visibility rule inside search_knowledge. C adds a mirror object that must stay equal to the registry, plus an audience translation that is a permanent special case.
  • ② Real business pull: today's pull is the maintainer's reading that manual questions are the main use of in-app search. No external user has named it. Admins do write manuals at run time (the registry row and the Studio form are shipped). Zero measured pull for author-chosen doc sources (B).
  • ③ Preventing AI mistakes: A leaves nothing new for an AI to write wrong. B gives authors a new kind to mis-declare, and a doc hit judged by the wrong rule fails silently. C's translation fails silently in both directions, and that is the worst failure shape.
  • ④ Startup focus: A is the smallest surface and is removable without a migration. B declares a new author-facing capability that becomes a permanent obligation. C adds an engine-owned mirror to maintain.
    Prior rulings read: package doc, search_package_docs, knowledge source, doc search → 0 hits; ADR-0161 D1/D2, ADR-0046 §6.7; thread: none (the question was raised in the triage session).

Recommendation

A. The end state in two years: the help center and the record search share one retrieval engine, while each keeps its own visibility rule. That is how mainstream platforms model it (a help-center search and a record search, both on one index service, gated separately). A reaches that without a contract change. B and C each need a second visibility rule. B is not taken because it reopens ADR-0161 D2 with no author pull. C is not taken because its audience translation can leak manuals silently.

Self-check: only on ① the answer is A; does ②③④ flip it: no.

Confidence gap: not measured whether a page a package ships is also a row of sys_metadata. A does not depend on it, since it reads the registry through getMetaItems; C does. The gain of A depends on the deployment: the memory store has no embedder, so the community default keeps substring matching unless an embedder or pgvector is mounted.

After the ruling

Related: epic #37000 (knowledge platform), ADR-0161, ADR-0046, search_package_docs (#35442).

Activity

  1. added
    priority:p2
    needs-user-decision
    area:ai
    domain:server
    on Nov 28, 2026
  2. objectstack-fleet commented on Nov 28, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · sunhaolin · session_017xRBcSxvUE3fDrox79CL9t

    Note for the decision · 2026-11-28T16:17Z: #38368 (maintainer-directed ADR-0161 dated note) rules that a mounted knowledge service is enabled only when an embedder and the store are both configured. Otherwise its sources are held and search_knowledge is absent. That settles a premise of option A here: on a deployment where the knowledge service is not enabled, search_package_docs keeps today's substring match, the same fallback option A already names. Option A then needs no new switch of its own: it follows the same enablement reading (ai.embedder_provider).

  3. objectstack-fleet commented on Nov 28, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#8 · sunhaolin · session_017xRBcSAaBEfQpU2yJexSJ8

    Served-tier: CONTRACT_REVIEW_TIER
    Analysed-by: an independent subagent of seat 8 (explicit fable tier), not anchored on this card's analysis

    Re-analysis · 2026-11-28T23:20Z · a delta on this card's four-axis analysis. The seat could not confirm the tier of the existing analysis (filed by the triage session), so it re-ran it at contract-review tier before presenting it. Its live probes used the read-only search_package_docs tool of a connected test deployment. Posted unchanged apart from this header.

    Verdict: I agree with the letter A, but not with A as the card describes it. The card's A says "the knowledge service keeps one internal index of the doc items" with no contract change, in about 2 PRs. The code has no seam for that. A is only buildable today as a docs-side search that borrows the deployment's embedder, and it needs three conditions the card does not carry (below). If the maintainer wants manuals literally inside the knowledge service, that is option B's ADR amendment, not A.


    维护者速读

    • 问题:用户或智能体问「这个流程怎么用」时,手册搜索只认原词;实测搜「潜在客户」「销售机会」「催款」或整句问题都是零结果,而手册里写的是「线索」「商机」「回款」。
    • 选项:A 手册搜索自己借用部署已配的嵌入服务做按意思匹配,查看权限照旧,约两到三个 PR;B 让知识源多一种「手册」来源,由作者声明哪些手册进检索,约五到六个 PR,要先改架构决策记录;C 把手册抄成一张系统表,三到四个 PR,权限规则要再写一遍。
    • 推荐 A(修正版):手册量小、是发布方写的说明;租户自己的知识已定为放进「知识文章」这类业务对象,由知识检索负责,手册不必再进一遍。
    • 不定会怎样:手册继续只能按原词搜;换个说法的问题,智能体只能靠自己多猜几个同义词,猜不中就说手册没写。

    Where I differ from the card

    1. "Through the knowledge service, no contract change" does not hold. The service has no door for a document that is not built from a record, and its search and permission path is bound to objects. A as worded needs a new service member, which ADR-0161 already refused.
    2. Gate order. The card says A "ranks from it, then applies the same docs-audience gate". Today's code gates first, then matches. Rank-then-gate opens side channels; A must keep gate-then-rank.
    3. Egress is unaddressed. A sends every manual page, gated books included, to the embedding provider with nobody declaring it. ADR-0161 K5 treats that as a decision; it needs the maintainer's explicit word.
    4. Reach is narrower than the card implies. The embedder and its settings exist only where the knowledge service is mounted. On main today a deployment with no embedder gets an embedder whose every call errors; the "not enabled" state is ADR-0161 dated note: a mounted knowledge service is enabled by configuration; until then its sources are held and not served #38368/service-knowledge: a self-hosted deployment with no embedder holds its knowledge sources without serving them, and lists no search_knowledge #38369, both still open.
    5. The tool's shape changes. search_package_docs takes terms and answers matchedOn: 'title' | 'heading' | 'text' plus matchedTerms. A meaning match fits none of these, and a vector search never answers "nothing matched", which the server's instruction relies on.
    6. Effort. About 2–3 PRs plus one dated ADR-0046 note, not "~2 PRs, no governed text".

    Premises, re-checked

    # Card premise Reading Holds?
    1 No server-side doc search; pages read through getMetaItems and the docs-audience gate Re-check command run: mcp-package-docs.ts:36 ("No server-side doc search exists, so the search is the smallest honest one"), :120-121 (gate wraps both reads). Grep of packages/ for a second doc search: none. The Console has a client-side full-text search (ui/apps/console/src/pages/docs-index.ts:21-24). Holds
    2 doc and book registry rows Re-check run: metadata-plugin.zod.ts:1214 (doc: allowRuntimeCreate: true, supportsOverlay: false), :1231 (book: supportsOverlay: true, allowRuntimeCreate: true, allowEnvironmentOverlay: false). Studio placement: studioMenuPlacement.ts:109-110, tier advanced. Holds, with one correction: the comment at :1225-1227 says drag-editing a packaged book answers 403 not_overridable; only a new book is editable. Unverified live. managedBy: 'engine-owned' unverified.
    3 knowledge_source has one kind, object Re-check run: knowledge-source.zod.ts:143. Holds
    4 search_knowledge re-checks each hit against row-level security knowledge-tools.ts:63-68 (the card's L64-69; the file changed by 49 lines since the card's snapshot). knowledge-service.ts:3960-4030 re-reads each hit by source.source.object. Holds
    5 One example indexes a business object, none indexes manuals examples/app-showcase/objectstack.config.ts:237, src/ai/task-notes.knowledge-source.ts:32. Holds
    6 The triage note: #38368 "rules" enabled-only-when-configured, so A needs no switch #38368 is open (pm:queue) and #38369 is pm:blocked. ADR-0161 on main has no such note (grep for "not enabled" and embedder_provider: 0 hits). On main, knowledge-service-plugin.ts:1036-1073 registers an UnconfiguredEmbedder whose every use errors. ai.manifest.ts:373: embedder_provider default 'none'. The ruling is recorded on the card only. A's fallback depends on #38369 landing.
    7 "the memory store has no embedder" knowledge-memory ranks by token counts and reports no embedding descriptor (knowledge-memory/src/index.ts:83). The switch is the embedder setting, not the store. Wording wrong, conclusion unaffected
    8 B "reopens ADR-0161 D2" ADR-0161 :159: "Ruling D2: knowledge_source becomes a governed metadata type referencing objects". Holds

    The four questions asked.

    • Is there really no server-side doc search? Yes, none. ADR-0046 lists "book-level search" as deferred phase P3d (0046-…md:3, :535), governing text the card does not cite.

    • Can the knowledge service index a non-object corpus without a contract change? No. There are three candidate seams:

      • IKnowledgeService: closed. knowledge-service.ts (contracts) :165: "There is no member that pushes a document (ADR-0161 K1)". registerSource parses with the one schema, so only kind: 'object' registers. The hit re-read drops any hit whose source is not an object source (knowledge-service.ts:2727).
      • The adapter, called directly from the runtime: possible in types, but it needs a made-up KnowledgeSource, skips fingerprints, generations and purge, and runs against K9 rule 4 ("no adapter called from an agent runtime", ADR-0161 :379).
      • IEmbedder ('embedder' service), called from the docs module: the only seam needing no contract change. It does not go through the knowledge service; it shares the embedder and the enablement state.
    • Is a package-shipped page also a sys_metadata row? It depends on the package. A code package's page is not: "A code package's metadata is CODE — it is registered from an artifact at boot and has no sys_metadata rows at all" (packages/runtime/src/domains/packages.ts:1906-1908). A Studio-authored or runtime package's page is: "A Studio-authored package is sys_metadata rows bound by package_id" (:3920). getMetaItems merges four sources (meta-overlay-cache.ts:49-57), and only sys_metadata writes are observable there. Read from code, not measured on a database. So C cannot mirror from sys_metadata alone, and "reindex on save and install" has no single event to hang on.

    • Does A's gate hold if ranking happens before the gate? Not safely. Today the gate runs at mcp-package-docs.ts:360, matching at :365, and truncated is computed from gated hits at :399. Rank-then-gate adds:

      • truncated or a count computed before the gate reveals that hidden pages matched (K9 rule 6, ADR-0161 :381, forbids returning that count for records);
      • hidden pages can fill the top-K, so a caller gets fewer or no results for a query a readable page answers, and result sizes become a probe for hidden content;
      • a stale index copy could serve a title or excerpt for a page whose book audience changed, unless the live gate always runs.

      Gate-then-rank over the readable set, in process, has none of these. Titles do not leak in either order as long as nothing from the index is returned before the gate.

    Measured on the connected HotCRM test deployment (search_package_docs, run by me):

    Terms Result
    线索 / 商机 / 审批 / 回款 10 hits, truncated
    潜在客户 0 hits
    销售机会, 签批, 催款 hits on 签批 only
    谁来跟进新线索 0 hits
    prospect 1 hit, the stage name "Prospecting", not the Leads page

    So the tool-level miss is real. Whether an agent fails end to end is not measured: in the #36843 acceptance the model chose the manual's own words and passed (unverified by me beyond its transcript lines).

    New fact since the card was filed: #38372 and #38374 (maintainer-directed) put help articles in a business object with an ordinary object knowledge source. Tenant-written knowledge now has a ruled home in the engine.

    Governing text

    • ADR-0161 :114: push calls "are refused on an object source"; with the file/http arms gone "the two methods leave IKnowledgeService".
    • ADR-0161 :204: "one strict contract (Prime Directive Add comprehensive test suite for Zod schema validation #12) leaves no room for a second, code-only source shape beside the governed one." An internal, unkeyed doc corpus inside the service is that shape.
    • ADR-0161 :212: the arms "return together, as a new arm with a full design (schema, loader, reader, and an answer for permissions)". This is B's route.
    • ADR-0161 K5 :229: "Embedding is egress. The text of every listed field is sent to the embedder".
    • ADR-0161 K9 :379, :381 (quoted above). K7 and K8: an in-process index has no generation or fingerprint; K8's member list is closed (:366), and A adds no member.
    • ADR-0046 §6.7: "Gating is enforced at the read layer, not just the UI"; "A doc's effective audience is the union over the books that reference it."
    • mcp-package-docs.ts:15-16: "⛔ No second rule: this module hands the gate I/O only, and every verdict is the gate's."

    Protocol: A changes no authorable key but changes an AI-facing tool's output shape and description. B adds a knowledge_source kind and amends ADR-0161 D2. C adds a system object.

    Options

    Option What it really is What the customer sees Effort
    A (corrected) The docs module embeds manual passages through the 'embedder' service, caches by content hash in process, and ranks only pages the caller's gate already admitted. Substring hits stay first; meaning hits are added above a score floor. Substring only where knowledge is not enabled. Paraphrased questions find the page on deployments with an embedder; who sees what is unchanged; elsewhere nothing changes. server lane · 2–3 PRs + one dated ADR-0046 note · no measured precedent
    A as carded An internal index inside the knowledge service. Same. Not buildable without the member ADR-0161 :204 refused; it becomes B without the key
    B A designed doc arm of knowledge_source, with assembly from metadata, sync from metadata saves and the audience gate as its permission answer. Authors choose which manuals are indexed; egress is declared per source. ADR-0161 amendment (Tier H) + spec + service + lint + Studio form + skills/docs · 5–6 PRs · no measured precedent
    C A mirror object fed from four metadata sources, with book audiences rewritten as row-level security. Same as A when the rewrite is right; a wrong rewrite shows or hides manuals silently. 3–4 PRs · no measured precedent

    Business meaning: A is a better search box on the product manual. B is adding the manuals to the company search engine's source list. C is photocopying the manual into a filing cabinet with a second lock list.

    Four axes

    os-decision-facets

    • ① Long-term soundness: A (corrected) adds one small internal path and no contract; it keeps D2 ("referencing objects") and the single docs gate intact. B grows the contract four days after D2 was ruled, though it is the engine-consistent form if manuals ever grow large. C adds a permanent mirror and a second copy of the visibility rule, against mcp-package-docs.ts:15. A as carded contradicts ADR-0161 :204.
    • ② Real business pull: the maintainer raised it. Tool-level misses are measured (4 paraphrase probes: 2 with zero hits, 1 hitting on one of three terms, 1 on the wrong page). End-to-end agent failure is unmeasured, and no external user has named it. Tenant-written help now goes to an article object (examples/app-starter and the blank template: a help-article object with a view, a menu entry and seed articles, identical in both #38372), which removes the "admin writes manuals" half of the pull. Zero pull for author-chosen doc sources.
    • ③ Preventing AI mistakes: A gives authors nothing new to write. Its risks are the tool answering loosely related pages where it used to answer "nothing", and a tool description that is untrue on some deployments; both are pinnable. B's failure is a doc hit judged by the wrong rule, silent. C's is silent in both directions.
    • ④ Startup focus: A declares nothing and can be deleted without a migration. B is a permanent key with no pull. C is an engine-owned mirror to maintain.
      Prior rulings read: search_package_docs, knowledge_source kind doc, book-level search, manual search embedder → no prior ruling on doc search shape; ADR-0161 D1/D2/K1/K4 point 1/K5/K7/K8/K9, ADR-0046 §6.7 and P3d; thread: 1 comment (the triage note).

    Recommendation

    A, as corrected. End state in two years: tenant knowledge lives in records and is searched by the knowledge engine; a publisher's manual stays small metadata with its own search, which borrows the embedder. That matches Salesforce and ServiceNow, where knowledge articles are records under the platform search and product help is separate.

    • B is not taken: it reopens D2 with no author pull. It becomes right on a named trigger: a deployment whose manuals are too large to embed in process, or an author asking to choose which manuals are indexed.
    • C is not taken: it writes the visibility rule twice.
    • ① readings for A (corrected) and B are close and the effort gap is about 3×; named as the rule requires.

    Three conditions the ruling should carry in the same stroke:

    1. Egress, human floor. Rule in words that saving an embedder provider also sends every manual page's text to it, gated books included, and that the embedder settings help text says so (service-knowledge: a self-hosted deployment with no embedder holds its knowledge sources without serving them, and lists no search_knowledge #38369 item 5 already edits that text).
    2. Gate before rank. Rank only the gated set; truncated and counts come from gated hits; pinned by a test where a hidden page is the best match and the answer equals that of a corpus without it.
    3. The tool stays honest. Substring hits first, meaning hits added above a floor and marked as such, an empty answer still possible, and a description that is true on both kinds of deployment.

    Self-check: on ① alone the answer is A (corrected); do ②③④ flip it: no. They move timing: after #38369.

    Confidence gap

    • The ① reading rests on manuals staying small. HotCRM's manuals returned at most 10 capped hits; the total page count was not measured.
    • Cost and latency of embedding at first search on each process are unmeasured, as is the right score floor per model.
    • Whether an in-process embedder call counts as a "knowledge capability by a side path" under K9 rule 4 is a reading, not a ruling; the ADR-0046 note should say it.
    • A fourth shape is not on the card: no embeddings, just hand the agent each manual's table of contents on a zero-hit search. It would work on every deployment, including those with no embedder. Not recommended here because the card asks about the three shapes, but it is cheaper than all of them.

    After the ruling

    • A: one dated note under ADR-0046 P3d (Tier H) stating the shape and the three conditions; then one server-lane card under 专题:知识检索平台化(应用写一份知识源配置就有可用的检索:开源、托管、企业版都能用) #37000, Blocked-by: #38369. Scope: embedder use behind the enablement state, content-hash cache, gate-then-rank, the hidden-page pin, the tool's output and description, the settings help line. No reindex hooks: each search already reads the pages live.
    • B: an ADR-0161 amendment card first (Tier H), stating the doc arm's assembly, sync, permission answer and whether search_knowledge serves doc hits; then spec, service, lint, Studio and skills cards.
    • C: a spec card for the object and a server card for the mirror and the audience rewrite, with a pin per audience kind.

    Unverified, as marked above: live behaviour of packaged-book editing, managedBy: 'engine-owned', the sys_metadata answer on a running database, the #36843 transcript, and all effort figures.

  4. objectstack-fleet commented on Nov 28, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-project-manager · session_01FEkQ5kT5XV573hKPpRU5M1

    Ruling: letter E · maintainer 「E 暂停」 · 2026-11-28T23:21Z

    Maintainer ruling recorded: the manual search is paused (option E). No shape is ruled.

    Restart-when: closed #38368

    Label: the seat that holds topic #37000 (repo:objectstack#5) moves this card from needs-user-decision to pm:on-hold; this thread tells the seat thread now.

  5. added
    pm:on-hold
    and removed
    needs-user-decision
    on Nov 28, 2026
  6. objectstack-fleet commented on Nov 29, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-project-manager · session_01FEkQ5kT5XV573hKPpRU5M1

    Re-presentation analysis · 2026-11-29T01:37Z · the restart condition of record 7247382346 is met: #38368 closed when PR #38401 merged (0c1b2ff). This is a delta on the card's analysis and on seat 8's re-analysis (7247373051), read against the merged ADR-0161 note and ruling record 7248214179 on #38368. Written by this project's decision thread (Fable tier); the question goes to the maintainer on a decision card in that thread.

    维护者速读

    • 问题:ADR-0161 dated note: a mounted knowledge service is enabled by configuration; until then its sources are held and not served #38368 的注记已合并,手册搜索按约定重新提请裁定:现在定形状,还是继续暂停。
    • 选项:目录兜底(搜不到时把可看的手册目录交给智能体自己挑,约 1 个 PR,所有部署生效)并让 A 继续暂停;A 修正版(手册搜索借用已配的嵌入服务,只在知识服务已启用的部署生效,手册正文要外发给嵌入服务商);继续暂停,什么都不做。B、C 不建议。
    • 推荐:先做目录兜底,A 继续暂停,等兜底的实测结果再提。
    • 不定会怎样:手册仍只能按原词搜,换个说法的问题搜不到。

    What the merged note changes, option by option

    A as the card words it (an index inside the knowledge service) is not buildable. The note ends: "This note adds no contract member, no settings key and no capability token: the list stays closed." The knowledge service has no member that takes a document not built from a record (7247373051, seam 1). So "A" can only mean the corrected A of 7247373051: the docs module embeds manual passages through the 'embedder' service and ranks only pages the caller's gate already admitted.

    Corrected A, read with the note:

    1. Which state it follows. The note's "Enabled" is an embedder available and the deployment's store mounted, read once per boot, and point 2 of record 7248214179 rules that the state is the whole service's. Corrected A uses no store. The reading this thread recommends: it follows the service's one state, not "an embedder exists", so there is one switch and one sentence on the settings page. Where the service is not mounted or not enabled, the search stays the substring match. The ADR-0046 note that corrected A needs should say so.
    2. It still cannot start. The note says of itself that main has no such state until service-knowledge: a self-hosted deployment with no embedder holds its knowledge sources without serving them, and lists no search_knowledge #38369 builds it. service-knowledge: a self-hosted deployment with no embedder holds its knowledge sources without serving them, and lists no search_knowledge #38369 is open. The implementation card stays Blocked-by: #38369.
    3. Egress is not covered by the note. "Enabling is an egress decision" speaks of "the listed fields of its sources". A manual page is not a listed field of a source. Corrected A sends every manual page, books with a restricted audience included, to the embedding provider. That needs the maintainer's word, and service-knowledge: a self-hosted deployment with no embedder holds its knowledge sources without serving them, and lists no search_knowledge #38369 item 5's help text names sources only.
    4. The other ruled points. Points 1 (package move-in) and 4 (refusal wording) do not touch the docs search. Point 3 (no store call while not enabled) is met trivially.

    B. A doc kind reopens D2 and the list the note restated as closed one day ago. Under the note a doc source would be held like any source. Still 5–6 PRs and an ADR amendment, with no author asking.

    C. The mirror's knowledge source would be an engine write, so it installs and is held: the note does not stand in its way. Its own faults stand: a code package's pages have no sys_metadata rows, and book audiences rewritten as row-level security are a second visibility rule.

    A shape outside the card: the table of contents as a fallback

    7247373051 names it in its confidence gap and does not weigh it. Read on main 0c1b2ff:

    • The only consumer of search_package_docs is a model over MCP. The Console has its own client-side search (ui/apps/console/src/pages/docs-index.ts).
    • The tool requires terms, and no tool lists the manuals (packages/mcp/src/mcp-http-tools.ts#registerPackageDocTools: search_package_docs, read_package_doc). A model whose words miss has nothing to pick from.
    • The fallback: when a search finds nothing (or few pages), the answer also carries the table of contents of the manuals this caller may read (manual titles and page titles, through the same gate, gate first). The model picks a page and reads it with read_package_doc.
    • It needs no embedder, sends nothing out, touches no governed text and works on every deployment, the not-enabled ones included. About 1 PR.
    • Size: HotCRM ships 8 manuals and about 58 in-app pages (a file count on hotcrm main: *.book.ts and src/**/docs/*.md*; not read from a running deployment). The list is a few kilobytes.
    • Not measured: whether a model picks the right page from the list. The card's acceptance should run the four paraphrase probes of 7247373051 (潜在客户; 销售机会, 签批, 催款; 谁来跟进新线索; prospect) end to end, before and after.

    os-decision-facets

    Recommendation

    The fallback first, corrected A stays on hold. The fallback fixes the measured miss on every deployment at a third of the cost, and its probe result says whether meaning-based matching is still needed. If it is, corrected A is the shape, with the three conditions of 7247373051 and the state reading above. B and C are not recommended.

    Self-check: on ① alone the answer is the fallback; do ②③④ flip it: no.

    Confidence gap: the fallback's effect is unmeasured; a deployment with far larger manuals than HotCRM's would need the list cut by manual. Effort figures are estimates with no measured precedent.

    After the ruling

    • Fallback, A on hold: seat 5's knowledge area files one server card (the fallback, the probes as acceptance, the tool description). This card stays pm:on-hold with Restart-when: closed on that card.
    • Corrected A now: the egress word is part of the ruling; one dated ADR-0046 note (Tier H), then one server card Blocked-by: #38369.
    • Keep paused: Restart-when: closed objectstack-ai/objectstack#38369.
  7. objectstack-fleet commented on Nov 29, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-project-manager · session_01FEkQ5kT5XV573hKPpRU5M1

    Ruling: the table-of-contents fallback first, option A stays on hold (the decision card's first option; not a letter of this card's table) · maintainer 「目录兜底,A 暂停」 · 2026-11-29T02:01Z

    Maintainer ruling recorded, second round. It follows record 7247382346 (E, pause), whose restart condition fired when #38368 closed.

    • Provenance: who = the maintainer (Leehom); words = his tap on the option 「目录兜底,A 暂停」 of the decision card that asked 「定 [Decision] Search the package manuals (doc metadata) through the knowledge service: which of three shapes #38352 手册搜索:目录兜底、A 修正版,还是继续暂停」, tapped 2026-11-29T02:01:06Z; where = this project's decision thread cmsg_01TenzsRopZj4jMbvjX8uz1XTqJCBCLSLCLPc9HzWY2VRA, decision card cmsg_01TenzsRopZj4jMbvjX8uz1X3Rg7F522GtsgMPNtSdtU9x (option index 0). It is a tap on a card and not typed words: it answers what the card asked and nothing else.
    • The option's consequence line as he read it, verbatim: 「立一张小卡(约 1 个 PR):搜不到时把可看的手册目录交给智能体自己挑,所有部署都生效,内容不外发;A 等这张卡的实测结果再提。」
    • The options he did not take: 「A 修正版,现在定」 (the docs search borrows the configured embedder; the tap would have carried the egress word for manual text) and 「继续暂停」. B and C were not on the decision card; the question message said this thread does not recommend them and that he could name one in words. He did not.
    • The analysis put to him: comment 7248908940 on this card.

    What is ruled

    1. One small server card is filed for the fallback: when search_package_docs finds nothing, its answer also carries the table of contents of the manuals this caller may read, read through the same docs-audience gate, gate first. A model picks a page from it and reads it with read_package_doc. No embedder, nothing sent out, no governed text, the same on every deployment.
    2. Option A (as corrected by 7247373051) stays on hold. It comes back to the maintainer with the fallback card's measured result. None of A, B or C is ruled.

    Not ruled

    • The fallback's exact shape (whether a search with few hits also carries the list, the size cut for a large set of manuals, the field's name, the tool description's wording): the card's to state and the review's to read. The analysis recommends acceptance by the four paraphrase probes of 7247373051, run end to end before and after.
    • The egress word for manual text. It was part of the option he did not take.

    Next

    Restart-when: the table-of-contents fallback card filed from this ruling is closed and its probe result is recorded on this card

  8. objectstack-fleet commented on Nov 29, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-project-manager · session_01FEkQ5oQLfL8thb6wtUHnTb

    The table-of-contents fallback card from ruling 7249168223 is filed as #38445, under #37000. This line replaces that record's criterion. The label stays pm:on-hold. When #38445 closes, its probe result is recorded here and option A goes back to the maintainer.
    Restart-when: closed #38445

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:aidomain:serverpm:on-holdpriority:p2

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions