Skip to content

knowledge_source: admit the governed metadata type with its loader — registry, stack collection, ADR-0087 renames and retirements, the two authoring guards, one name per source #37304

Backlog

Description

@objectstack-fleet

repo:cloud#1 · os-warren · session_01JQwxbW5anP6GDaVi5LKi2U
Body edit 2026-11-25T18:20Z by the epic seat: #37325 (PR #37330, 8979953) and #37098 (PR #37287) landed and move from Blocked-by: to Done.
Ruled: 7168239918 · Q1 letter B · 7168175100 · Q2 letter B · 2026-11-25T16:36Z

Filing gate: ③ maintainer-directed (topic child). Source: topic #37000; maintainer 2026-11-25 「现在拆阶段三」 (decision card in the project thread) and 「#4 只负责在手任务,你接手专题剩余任务」. Reviewed by an independent Fable pass before filing.
Grading: area:ai · Feature · p2 (topic) · reach: every application that declares a knowledge source, and every host that registers one in code (a breaking change for the second) · evidence: read.

维护者速读

  • 做什么:知识源变成应用包里的一份配置(也能在 Studio、MCP 里保存)。平台自动加载、建索引;改了自动重新加载,删了索引一起清掉。
  • 要知道的:这是一次不兼容变更。两个配置项改名;不能再写「全部字段」,必须逐个列出要发给向量服务商的字段;几个从没生效的配置项和两种没人用的来源一起下线。在代码里注册知识源的应用(BrightRule)要跟着改。「不写存储也能用、有知识源就自动挂上检索服务」在紧接着的第 3b 张卡。
  • 谁受益:托管云跑不了应用代码,这一步之后托管环境才可能有知识源。
  • 需要你做的:合并这个 PR(含技能文档两处小改,属受治理面);两个问题已定:同名知识源按「应用+名字」区分、两个都保留;新建和修改知识源另需「管理知识源」权限,默认只给平台管理员。

What

Carries ADR-0161 (docs/adr/0161-knowledge-platform-boundary-platform-owns-assembly-sync-split-record-return-knowledge-source-is-a-governed-type.md) Execution row "row 3": K4 with its two guards, its example and the one-name rule; K5; K6; K8 item 4; the push door (K1); points 1 and 3 as merged. The precedent for every table a new kind enters is ai_context (PR #37173, ADR-0160).

Departure from the ADR's one-PR wording, stated. K6 lists "adapter becomes optional (K4 ◆)" among the changes that "ride the same PR", and K8 items 11 and 12 date the optional adapter and the item-mounts-the-service rule "from row 3". Row 3 is split: this card carries the type, its loader, every narrowing and every ADR-0087 disposition (so K6 item 1, "All of it lands in row 3's PR, with the type", holds here, and the type still lands with its reader, K4 clause 3); row 3b carries the optional adapter, the deployment's-store mark and the item-mounts-the-service rule, which need #37102. Until 3b lands adapter stays required, as in phase 2.

  1. The type and its one schema (K4, ADR-0088, ADR-0005). Register knowledge_source in DEFAULT_METADATA_TYPE_REGISTRY (packages/spec/src/kernel/metadata-plugin.zod.ts, beside ai_context at :209 and :1388) with allowRuntimeCreate: true and allowEnvironmentOverlay: false; map it in packages/spec/src/kernel/metadata-type-schemas.ts (:208 is the ai_context row) to the existing KnowledgeSourceSchema (packages/spec/src/ai/knowledge-source.zod.ts:124) — no second schema. Collection knowledgeSources, file patterns **/*.knowledge-source.ts and .yml (the ai_context row's convention); a different choice is stated with its reason. The collection goes into packages/spec/src/stack.zod.ts (the aiContexts rows are :1228, :1700, :3459) and its collection-to-type entry into packages/metadata/src/plugin.ts (:199). Every table that enumerates metadata types takes the kind, as feat(ai): ai_context context packs and the get_record_context tool over MCP (ADR-0160 row 5) #37173 did for ai_context: liveness ledger packages/spec/liveness/knowledge_source.json and state-counts/, packages/spec/dropped-refinements.baseline.json, packages/spec/src/meta-spelling/, scripts/check-stack-collection-maps.mjs, packages/cli/test/metadata-type-schema-gate.test.ts, Studio's menu table ui/packages/app-shell/src/views/studio-design/studioMenuPlacement.ts (its test requires one row per listable registered type) with the catalog labels in ui/packages/i18n/src/locales/*.ts, and the top-level key list in skills/objectstack-platform/SKILL.md:39 (check-skill-top-level-keys.mjs requires it — Tier H).
  2. The schema note becomes true (K2 row 3). Rewrite the "runtime registration, ⛔ not a governed metadata type" note at knowledge-source.zod.ts:104-123, and content/docs/protocol/knowledge.mdx §3.1 (:112, "stored as metadata") so the two agree. Make the schema strict: an unknown key is refused, not dropped (K4).
  3. Renames and retirements under ADR-0087 (K6). One PR, one major chain step, Metadata-protocol: narrowed with the (narrowing) arm and a BREAKING banner carrying K6's FROM → TO table:
    • id → name and source.contentFields → source.content: D2 conversion entries, retiredKey() tombstones (packages/spec/src/shared/retired-key.ts:193), retired-key registry rows;
    • embedding, vectorStore, refresh.cron removed: strip conversions, tombstones, registry rows, each with K6's prescription;
    • the file and http arms with prefix, mimeTypes, urls, userAgent retire as one family (point 1, as merged); source.kind keeps one arm, object;
    • adapterConfig: its only reader is packages/plugins/knowledge-ragflow/src/index.ts:68, which Retire @objectstack/knowledge-ragflow: package, settings option, docs and skill mentions #37004 retires before this lands, so it is a sixth removal by the same kit (K4: "if no adapter reads adapterConfig then, the key does not enter v1");
    • the authorable surface packages/spec/authorable-surface/ai.json (:223-276, :348-352) and the generated references regenerate;
    • state whether EmbeddingModelSchema and VectorStoreSchema (packages/spec/src/ai/embedding.zod.ts) keep any composer once embedding and vectorStore leave (the only one today is knowledge-source.zod.ts:6), under ADR-0049 (ADR-0161 Consequences).
      A rename changes no value: document ids (documentIdFor, packages/services/service-knowledge/src/knowledge-service.ts:1272) and the fingerprint do not move (K6 item 4). sourceIds, sources[].id and sourceId on documents and hits keep their spelling (K6 item 5).
  4. content lists fields; '*' is refused (K5). A non-empty list of field names, refused at parse with the prescription to list the fields. Remove the '*' branches of recordToDocument (knowledge-service.ts:1310) and of servedFieldsOf / admitSourceFields (packages/services/service-knowledge/src/knowledge-source-admission.ts:212, :228). Credential-class and internal fields stay skipped even when named.
  5. The loader (K4 clause 3). KnowledgeServicePlugin (packages/services/service-knowledge/src/knowledge-service-plugin.ts) reads the published knowledge_source items at boot and subscribes to the type (the metadataService.subscribe('object', …) precedent is packages/objectql/src/plugin.ts:2134): an added item is registered and its index status read (K7's table, reusing service-knowledge: a source that was never built gets built, and an operator can start a rebuild #37099's trigger); a changed item is re-registered and its fingerprint and recipe hash re-read (K7 "What starts a rebuild": boot and source reload are the only two moments); a removed item is unregistered and its index dropped through IKnowledgeAdapter.dropSource?(ctx) (K8 item 4, every generation), which lands here with its contract-suite case in packages/services/service-knowledge/src/testing.ts and in every in-tree adapter that runs the suite. A deployment that holds an item but mounts no knowledge service says so once at boot (ADR-0078).
  6. The reap guard set becomes dynamic (K3 item 2). installReapGuards (knowledge-service-plugin.ts:362) reads the guarded objects once from guardedObjectsFor (packages/services/service-knowledge/src/knowledge-reap-guard.ts:116). A source added after boot for an object with no guard gets one; rewrite the three deferral comments (knowledge-service-plugin.ts around :286-290, :337-338, :354-359).
  7. Guard one — a named permission (K4; ADR-0161 Consequences: "Authoring a source at runtime needs a permission of its own"). The permission is the one the maintainer rules under Decision needed, Q2. Pin that a principal without it is refused at each door: Studio / REST /meta, the dispatcher, and the MCP draft door (packages/runtime/src/domains/mcp-authoring.ts). A grant on the object's records does not imply it.
  8. Guard two — source admission at save (K4). The gates of PR fix(service-knowledge): knowledge search asks the object's API exposure and the caller's field-level read rules per source #36850 (knowledge-source-admission.ts: disabled package, API exposure for search, system object without enable.aiReadable, a field the author may not query) are asked when an item is saved, as the authoring principal; each refusal is coded (ADR-0112) and names the object or the field. The gates that need no principal at os validate and publish are row 4's.
  9. One name, one source (K4 point 3). KnowledgeServicePlugin({ sources }) and registerSource stay a door for the same schema and parse with it (today registerSource, knowledge-service.ts:154, stores what it is given and overwrites with a warning). A name that arrives through one door while the other holds it is refused with a coded refusal naming both; a metadata item reloading its own earlier version is not a second arrival. Write the code and the words. State whether the code door runs the conversion entries or refuses with the tombstone prescription, and which ADR-0087 D7 reading applies to registrations in code, with a pin (K6 item 3).
  10. The push door leaves (K1, point 1). indexDocument and deleteDocument leave IKnowledgeService (packages/spec/src/contracts/knowledge-service.ts:112, :114) and the service (knowledge-service.ts:178, :203); the changeset names them under runtime-interface-only. Remove the file/http branches built for the arms: isNonObjectSourceHit (knowledge-service.ts:982) and the non-object passes of the organization scope (:791, :893). Tests that drive the embedder or the splitter through indexDocument (src/__tests__/knowledge-service.test.ts, and those PR feat(service-knowledge): register EMBEDDER_SERVICE from the ai.embedder_* settings when the knowledge service is mounted #37265 and PR feat(service-knowledge)!: one splitter (whole / recursive / markdown, Chinese-aware), the chunk channel and the split key; KnowledgeChunk.metadata and knowledge.chunk_overlap retired #37287 add) move to reindexSource or event sync.
  11. Same name across packages (ADR-0150). ADR-0161 never mentions ADR-0150. For a type outside PACKAGE_SLOTTED_METADATA_TYPES (packages/spec/src/api/protocol.zod.ts:2753) the metadata service keeps one copy per name, the one registered last (packages/metadata/src/package-slotted-store.ts), so two packages shipping a source of one name would silently override each other — which K4 point 3 forbids. Implement the bucket the maintainer rules under Decision needed, Q1, and pin what a second package shipping the same name gets.
  12. The example (K4). One source in examples/app-showcase and its KIND_COVERAGE row in examples/app-showcase/src/coverage.ts (the ai_context row is :216), with the service mounted in that app's config and the adapter named.
  13. First-party instances (K6 item 6). content/docs/protocol/knowledge.mdx (§3.1, and §8's KnowledgeSource.embedding at :628), content/docs/ai/knowledge-rag.mdx, the READMEs of service-knowledge and knowledge-memory, and of knowledge-turso and knowledge-pgvector if on main when this lands (otherwise knowledge-turso moves into objectstack: Apache-2.0, the platform embedder and splitter, listing, generations, the contract suite #37107 / knowledge-pgvector: an open vector store on PostgreSQL — tables, exact search, listing, chunks #37100 land on the new names and take the dropSource suite case), and the service's tests move here. skills/objectstack-ai moves in row 5b, landed back to back — with one exception: its os:check-tagged example (supportKb, skills/objectstack-ai/SKILL.md around :264) writes id and contentFields, which stop compiling once they are tombstones, and check:skill-examples (.github/workflows/lint.yml, step "Check skills TypeScript examples compile") type-checks it. This PR rewrites that one block to name / content (it is Tier H already for item 1), and row 5b does the teaching.

Rulings carried (ADR-0161 K10): a key lands with its first reader in the same PR (dropSource with the loader's remove path; no key reserved); embedding is egress, so a source lists its content fields; answers read content as the asking user (the permission re-read is untouched).

Acceptance

  • A knowledge_source file in a package, in an app that lists requires: ['knowledge'] and names its adapter, builds and searches on os dev with no code registration: boot registers it, its first build runs, search_knowledge over MCP finds a record.
  • The same item saved at runtime through /meta and through the MCP draft door is loaded without a restart; changed, it is reloaded and a changed where or metadataFields runs one rebuild inside the generation; removed, its index is dropped (dropSource) and search no longer lists it.
  • A deployment holding an item with no knowledge service mounted logs it once at boot.
  • Each of the six renamed or removed keys and each retired arm is refused at parse with its prescription; os migrate meta converts id and contentFields and reports a '*' member as a hand edit; a TypeScript registration writing id or contentFields does not compile.
  • content: ['*'] is refused at parse with the prescription to list the fields; an unknown key is refused.
  • A principal without the ruled permission (Q2) is refused at Studio / REST, the dispatcher and the MCP draft door; one holding a record grant only is refused too.
  • A save naming a disabled package's object, an object refused for search, a system object without enable.aiReadable, or a field the author may not query is refused with a coded refusal naming it.
  • A code registration and a metadata item with one name: the second is refused naming both; a metadata item reloading itself is accepted.
  • Two packages shipping a source of one name behave as Q1 rules, pinned.
  • IKnowledgeService has no indexDocument / deleteDocument; git grep finds no file/http branch in service-knowledge/src.
  • A reap-guarded delete on an object first indexed by a source added after boot de-indexes the row.
  • examples/app-showcase kind coverage is green; every metadata-type gate the kind enters is green; the changeset carries the ADR-0087 marker and is refused by no gate.
  • Container run per AGENTS.md.

Out of scope

  • An optional adapter, the deployment's-store mark and the item mounting the service: row 3b.
  • Lint and os validate reference checks, and the gates that need no principal at validate and publish: row 4.
  • The Studio form: row 5. Teaching skills/objectstack-ai, its eval, and the MCP create seed: row 5b.
  • The scope filter and the tool's new arguments: rows 11 and 12.
  • Hosted registration: row 14 (cloud). In-app search_knowledge: objectstack-ai/cloud#4933 (row 13).
  • The field-egress declaration and its run-time trigger (K5; its own topic).
  • BrightRule's registration (BrightRule moves to the platform knowledge store: drop src/qa/vector, use platform pgvector, splitting and record-level search brightrule#21 follows the breaking change).
  • Whether the code door closes once every source can be metadata (not decided by K4).

Decision needed

维护者速读(待你定)

  • 问题一:两个应用包各带一个同名知识源时怎么办?现在平台只留后装的那个,前一个悄悄被盖掉,检索结果来自哪份配置说不清。
  • 选项:A 同一环境里一个名字只能有一个知识源,第二个包安装时就被拒绝并说明原因,约一个 PR;B 按「应用+名字」区分,两个都保留,AI 用「应用-名字」的写法区分,约三个 PR,且已有索引要重建。推荐 A:知识源的名字同时是索引的存储名,像数据表名一样应全局唯一。不定会怎样:开发无法开工,同名覆盖的风险留在第一版里。
  • 问题二:谁可以新建、修改知识源?保存一个知识源会把选中字段的内容发给外部向量服务商并产生费用。选项:A 沿用「管理元数据」权限;B 另设一个「管理知识源」权限,默认只给平台管理员,同时仍要求「管理元数据」,约一个小 PR。推荐 B:这是对外发数据和花钱的决定,决策记录也写了它要有自己的权限。不定会怎样:开发无法确定拒绝谁,这张卡停在这一步。

Q1 — Which ADR-0150 bucket knowledge_source joins

Problem. When two installed packages ship a knowledge source of one name, the platform today keeps whichever registered last, so one application's retrieval silently runs on another's configuration.

Governing text. ADR-0161 K4 point 3: "A name is one source, whichever door it came through … a silent override of governed metadata". ADR-0150 D1 principle: "Storage identity and data contracts keep the global literal prefix. Behavioural and presentation metadata are identified by (package, name)." ADR-0150 addendum (2026-11-25, #37180): NAMESPACE_UNIQUE_TYPES "reserves any further type to the maintainer, so admitting this one is the maintainer's decision". git grep -n "0150" docs/adr/0161-*.md → 0 hits (ADR-0161 does not address it).

Protocol. Either option is part of 3a's Metadata-protocol: narrowed claim (a second holder becomes a refusal).

Premise, re-check. git grep -n "PACKAGE_SLOTTED_METADATA_TYPES" packages/spec/src/api/protocol.zod.ts (no knowledge_source); the source name is also storage identity: documentIdFor(source.id, recordId) (knowledge-service.ts:1272) and #37107's per-source tables.

Option What it does What the customer sees Effort
A — one holder per name in an environment (bucket-1 style) a second package shipping the name is refused at install and by os validate, naming both packages; environment-authored items take a name no package holds a loud install refusal; one index per name, always domain:spec + domain:server · inside 3a · no measured precedent for this type (the one-holder refusal of ADR-0048 §3.3 is the pattern)
B — bucket 3 beside skill and ai_context the metadata service keeps one slot per (package, name); the AI face spells NS-NAME; document ids and adapter tables are keyed by package as well both packages' sources work; the model sees NS-NAME in sources domain:skills addendum (precedent PR #37209) + domain:server four lists and readers (precedent PR #37291, +668/−60, open) + store re-keying in memory, pgvector, turso (no precedent; a rebuild of every index) · about 3 PRs

Business meaning: A is "one shared filing cabinet label per environment"; B is "each vendor's cabinet may use the same label, and every reader says whose".

os-decision-facets
① Long-term: A keeps the name a storage identity, which ADR-0150's principle gives the global name; B adds a package coordinate to every index key and store table, a wider contract.
② Business pull: today one application (BrightRule) and one source; no customer ships two packages with one source name.
③ AI-error: A refuses loudly at install; B lets a model pick the wrong NS-NAME but refuses a bare ambiguous name with 409 — both loud; today's state is silent.
④ Startup scope: A declares nothing new; B adds four list entries and a store key.
Prior rulings read: NAMESPACE_UNIQUE_TYPES → 5 hits (#37216 open; #37180, #31701, #31670, #31985 closed); PACKAGE_SLOTTED_METADATA_TYPES → 2 hits (#37216, #37180); ADR-0150 D1 and its 2026-11-25 addendum; thread: none.

Recommendation: A. End state: two years on, a knowledge source is an index with storage of its own; mainstream platforms (Elasticsearch indices, Salesforce Data Cloud search indexes) name an index uniquely per environment. Confidence gap: if a marketplace package later ships sources, A forces it to prefix names by hand. B not taken: it re-keys every store for a collision nobody has.
Self-check: only ① gives A; ②③④ flip it: no.
After the ruling: A — 3a adds knowledge_source to the one-holder refusal at install and os validate and pins it; B — a dated ADR-0150 addendum PR lands first (maintainer's merge), then 3a takes the four lists and the store keying.

Q2 — Which permission admits authoring a knowledge source

Problem. Saving a knowledge source sends the listed fields of every matching record to an external embedding provider and costs money on the first build; today any holder of the general metadata-authoring right could do it.

Governing text. ADR-0161 K4: "Row 3 states which permission admits creating or changing a knowledge_source at runtime … A grant to read or write the object's records does not imply it." ADR-0161 Consequences: "Authoring a source at runtime needs a permission of its own". metaWriteCapabilityVerdict (packages/metadata-core/src/meta-write-capability.ts:91) is the one predicate every /meta write door asks today (manage_metadata).

Protocol. B adds one capability to PLATFORM_CAPABILITIES (packages/spec/src/security/capabilities.ts), Metadata-protocol: added inside 3a.

Option What it does What the customer sees Effort
A — manage_metadata only the existing door gate; a pin that a record grant does not imply it every metadata author can start an egress and a bill inside 3a · pins only
B — manage_metadata plus a new manage_knowledge_sources the doors ask both for this type; the new one is held by default by platform administrators (ADMIN_FULL_ACCESS_CAPABILITIES), others by grant an app builder without it is refused with a sentence naming the capability inside 3a · precedent manage_connector_connections (ADR-0143 D5), line count not measured

Business meaning: A treats "send this data out" like editing a page layout; B treats it like connecting an outside vendor account.

os-decision-facets
① Long-term: B matches the precedent of narrow capabilities for egress and vendor acts (connector connections); A leaves one right covering acts of very different weight.
② Business pull: hosted environments where app builders are not administrators (row 14) need the split first.
③ AI-error: B refuses an MCP agent's draft save loudly unless the human holds the capability; A lets any authoring agent create an egress.
④ Startup scope: B declares one permanent capability; A declares none.
Prior rulings read: manage_metadata capability narrower → 22 hits (open #34659, unrelated; the rest closed); ADR-0143 D5; thread: none.

Recommendation: B. End state: data-egress configuration is a separately grantable admin right, as Salesforce gates Einstein/Data Cloud setup behind its own permission. Confidence gap: whether organization administrators (not only platform administrators) should hold it by default — B as written gives platform administrators only.
Self-check: only ① gives B; ②③④ flip it: no (④ weighs against, not enough to flip).
After the ruling: 3a writes the capability or the pin, and the refusal sentence, at every door.

Blocked-by: #37099 (the index-status trigger the reload reuses; K8 item 8 lands in it or #37100), #37004 (retires knowledge-ragflow, the only reader of adapterConfig and the holder of http-shape tests). Done: #37001, #36991, #37325 (the dated ADR-0150 addendum admitting the type to bucket 3, ruling 7168239918; PR #37330), #37098 (the split key in the schema, K4 table; PR #37287). Coordinates with #37103, #36993, #37100 (same function, search(); this card removes its non-object passes) and #37292 (same skill file).
Parent: #37000. Reader: domain:spec lane for the type, the kit and the baselines, with the service-knowledge loader in the same PR (packages/spec, packages/services/service-knowledge); Tier H for the two skills/** lines.
Dedupe: knowledge_source 4 (open: #37000, #37102, a seat post — none admits the type) · knowledgeSources 2 (none open) · "knowledge source" metadata type 51 (open: #37292, #37004, #37098, #37107, #37102, #37100, #37094 — phase-2 siblings, none admits the type) · indexDocument 4 (open: #37098, which refuses caller chunks on the door this card removes) · dropSource 2 (none open) · contentFields 6 (open: #37098) · registerSource 3 (none open) · NAMESPACE_UNIQUE_TYPES 5 (open: #37216, ai_context only).

Activity

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

    @objectstack-fleet
    ContributorAuthor

    triage#1 · os-warren · session_01JQwxbZKP5YM48rWMWTS7wE

    First touch 2026-11-25T14:32Z. Confirmed as filed: Feature · area:ai · domain:spec · p2, needs-user-decision (row 3a). It is a row of topic #37000, so it routes to repo:objectstack#1 (maintainer 13:49Z 「继续专题 开发 37000」). Tier H (an ADR-0087 rename and a new governed type): the seat hands it to the maintainer after ACCEPT and a same-head contract PASS (label-write --handoff). It is unlocked once the maintainer rules and its blockers (#37098, #37099, #37004) close.

  3. objectstack-fleet commented on Nov 25, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:cloud#1 · os-warren · session_01JQwxbXE9zoxu8jDCNXN8CC
    Ruling: decision thread · Q2 · letter B · maintainer 「另设「管理知识源」权限」 2026-11-25T16:33Z

    The maintainer tapped option B on the Q2 decision card in the project decision thread at 2026-11-25T16:31:17Z. The card read: 「问题二:谁可以新建或修改知识源?」, option 「另设「管理知识源」权限」 — 「默认只给平台管理员,同时仍需「管理元数据」。没有的人保存时被拒,并说明缺哪项权限。小改动。」

    What is ruled. B — authoring a knowledge_source at runtime asks manage_metadata and a new capability manage_knowledge_sources in PLATFORM_CAPABILITIES, held by default by platform administrators (ADMIN_FULL_ACCESS_CAPABILITIES), by others only through a grant. A principal without it is refused with a sentence naming the capability at Studio / REST /meta, the dispatcher and the MCP draft door; a record grant does not imply it. The card's confidence gap (organization administrators holding it by default) is not ruled: platform administrators only, as written.

    Effort of the chosen letter (card's effort column): inside 3a · precedent manage_connector_connections (ADR-0143 D5); Metadata-protocol: added inside 3a.

    State. Unchanged: Q1 on this card is still open with the maintainer, so the card stays needs-user-decision until Q1 is ruled; the Ruled: body line and the state move come with that record.

  4. objectstack-fleet commented on Nov 25, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:cloud#1 · os-warren · session_01JQwxbXE9zoxu8jDCNXN8CC
    Ruling: decision thread · Q1 · letter B · maintainer 「按应用+名字区分,都保留」 2026-11-25T16:35Z

    The maintainer tapped option B on the Q1 decision card in the project decision thread at 2026-11-25T16:34:09Z, against the card's recommendation (A). The card read: 「问题一:两个应用包带同名知识源时怎么处理?」, option 「按应用+名字区分,都保留」 — 「两个都能用,AI 要写「应用-名字」来区分。已有索引全部重建,约 3 个 PR。」

    What is ruled. B — knowledge_source joins ADR-0150 bucket 3 beside skill and ai_context: the metadata service keeps one slot per (package, name); the AI face spells NS-NAME and refuses a bare ambiguous name loudly (409); document ids and adapter tables are keyed by package as well. Two packages shipping one source name both work; neither silently overrides the other (K4 point 3 holds by keeping both, not by refusing the second).

    Effort of the chosen letter (card's effort column): about 3 PRs — a dated domain:skills ADR-0150 addendum admitting the type (precedent PR #37209; maintainer's merge), the domain:server four lists and readers (precedent PR #37291), and the store re-keying in memory, pgvector and turso (no precedent; a rebuild of every index).

    Execution (the card's "After the ruling" for B). The ADR-0150 addendum PR lands first; then 3a takes the four lists and the store keying, and item 11 pins that a second package shipping the same name gets its own (package, name) slot. The store re-keying reaches #37100 / #37107 if they land first.

    State. Both questions on this card are now ruled (Q2: comment 7168175100). needs-user-decision → pm:blocked: Blocked-by: #37098, #37099, #37004 are all open, read now.

  5. added
    pm:blocked
    and removed
    needs-user-decision
    on Nov 25, 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:aidomain:specpm:blockedpriority:p2

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions