Repository navigation
Description
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.
- The type and its one schema (K4, ADR-0088, ADR-0005). Register
knowledge_sourceinDEFAULT_METADATA_TYPE_REGISTRY(packages/spec/src/kernel/metadata-plugin.zod.ts, besideai_contextat :209 and :1388) withallowRuntimeCreate: trueandallowEnvironmentOverlay: false; map it inpackages/spec/src/kernel/metadata-type-schemas.ts(:208 is theai_contextrow) to the existingKnowledgeSourceSchema(packages/spec/src/ai/knowledge-source.zod.ts:124) — no second schema. CollectionknowledgeSources, file patterns**/*.knowledge-source.tsand.yml(theai_contextrow's convention); a different choice is stated with its reason. The collection goes intopackages/spec/src/stack.zod.ts(theaiContextsrows are :1228, :1700, :3459) and its collection-to-type entry intopackages/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 forai_context: liveness ledgerpackages/spec/liveness/knowledge_source.jsonandstate-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 tableui/packages/app-shell/src/views/studio-design/studioMenuPlacement.ts(its test requires one row per listable registered type) with the catalog labels inui/packages/i18n/src/locales/*.ts, and the top-level key list inskills/objectstack-platform/SKILL.md:39(check-skill-top-level-keys.mjsrequires it — Tier H). - 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, andcontent/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). - Renames and retirements under ADR-0087 (K6). One PR, one major chain step,
Metadata-protocol: narrowedwith the(narrowing)arm and a BREAKING banner carrying K6's FROM → TO table:id→nameandsource.contentFields→source.content: D2 conversion entries,retiredKey()tombstones (packages/spec/src/shared/retired-key.ts:193), retired-key registry rows;embedding,vectorStore,refresh.cronremoved: strip conversions, tombstones, registry rows, each with K6's prescription;- the
fileandhttparms withprefix,mimeTypes,urls,userAgentretire as one family (point 1, as merged);source.kindkeeps one arm,object; adapterConfig: its only reader ispackages/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 readsadapterConfigthen, 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
EmbeddingModelSchemaandVectorStoreSchema(packages/spec/src/ai/embedding.zod.ts) keep any composer onceembeddingandvectorStoreleave (the only one today isknowledge-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[].idandsourceIdon documents and hits keep their spelling (K6 item 5).
contentlists fields;'*'is refused (K5). A non-empty list of field names, refused at parse with the prescription to list the fields. Remove the'*'branches ofrecordToDocument(knowledge-service.ts:1310) and ofservedFieldsOf/admitSourceFields(packages/services/service-knowledge/src/knowledge-source-admission.ts:212, :228). Credential-class andinternalfields stay skipped even when named.- The loader (K4 clause 3).
KnowledgeServicePlugin(packages/services/service-knowledge/src/knowledge-service-plugin.ts) reads the publishedknowledge_sourceitems at boot and subscribes to the type (themetadataService.subscribe('object', …)precedent ispackages/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 throughIKnowledgeAdapter.dropSource?(ctx)(K8 item 4, every generation), which lands here with its contract-suite case inpackages/services/service-knowledge/src/testing.tsand 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). - The reap guard set becomes dynamic (K3 item 2).
installReapGuards(knowledge-service-plugin.ts:362) reads the guarded objects once fromguardedObjectsFor(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.tsaround :286-290, :337-338, :354-359). - 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. - 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 forsearch, system object withoutenable.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 atos validateand publish are row 4's. - One name, one source (K4 point 3).
KnowledgeServicePlugin({ sources })andregisterSourcestay a door for the same schema and parse with it (todayregisterSource,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). - The push door leaves (K1, point 1).
indexDocumentanddeleteDocumentleaveIKnowledgeService(packages/spec/src/contracts/knowledge-service.ts:112, :114) and the service (knowledge-service.ts:178, :203); the changeset names them underruntime-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 throughindexDocument(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 toreindexSourceor event sync. - 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. - The example (K4). One source in
examples/app-showcaseand itsKIND_COVERAGErow inexamples/app-showcase/src/coverage.ts(theai_contextrow is :216), with the service mounted in that app's config and the adapter named. - First-party instances (K6 item 6).
content/docs/protocol/knowledge.mdx(§3.1, and §8'sKnowledgeSource.embeddingat :628),content/docs/ai/knowledge-rag.mdx, the READMEs ofservice-knowledgeandknowledge-memory, and ofknowledge-tursoandknowledge-pgvectorif 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 thedropSourcesuite case), and the service's tests move here.skills/objectstack-aimoves in row 5b, landed back to back — with one exception: itsos:check-tagged example (supportKb,skills/objectstack-ai/SKILL.mdaround :264) writesidandcontentFields, which stop compiling once they are tombstones, andcheck:skill-examples(.github/workflows/lint.yml, step "Check skills TypeScript examples compile") type-checks it. This PR rewrites that one block toname/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_sourcefile in a package, in an app that listsrequires: ['knowledge']and names its adapter, builds and searches onos devwith no code registration: boot registers it, its first build runs,search_knowledgeover MCP finds a record. - The same item saved at runtime through
/metaand through the MCP draft door is loaded without a restart; changed, it is reloaded and a changedwhereormetadataFieldsruns 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 metaconvertsidandcontentFieldsand reports a'*'member as a hand edit; a TypeScript registration writingidorcontentFieldsdoes 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 withoutenable.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.
IKnowledgeServicehas noindexDocument/deleteDocument;git grepfinds no file/http branch inservice-knowledge/src.- A reap-guarded delete on an object first indexed by a source added after boot de-indexes the row.
examples/app-showcasekind 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 validatereference 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
objectstack-fleet commentedon Nov 25, 2026
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.objectstack-fleet commentedon Nov 25, 2026
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_sourceat runtime asksmanage_metadataand a new capabilitymanage_knowledge_sourcesinPLATFORM_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: addedinside 3a.State. Unchanged: Q1 on this card is still open with the maintainer, so the card stays
needs-user-decisionuntil Q1 is ruled; theRuled:body line and the state move come with that record.objectstack-fleet commentedon Nov 25, 2026
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_sourcejoins ADR-0150 bucket 3 besideskillandai_context: the metadata service keeps one slot per(package, name); the AI face spellsNS-NAMEand 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:skillsADR-0150 addendum admitting the type (precedent PR #37209; maintainer's merge), thedomain:serverfour 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.