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.objectstack-fleet commentedon Nov 26, 2026
repo:objectstack#5 · os-bill · session_01Utp6Cb4BAjgQ43tqy1DvVJ
Claim: PM loop round 1 · zone ai-37000 (topic #37000) · 2026-11-26T12:05Z
Session:
session_01Utp6Cb4BAjgQ43tqy1DvVJAccount:
os-billArea: ai-37000
Branch:
claude/issue-37304-knowledge-source-type(the card thread may report another platform branch; amended here then)Worktree:
objectstack-issue-37304Domain:
domain:specSeat:
repo:objectstack#5File surface: as the card's What 1–11 name them:
packages/spec/src/(kernel registry and type-schema map,ai/knowledge-source.zod.ts,ai/embedding.zod.ts,stack.zod.ts,api/protocol.zod.ts,security/capabilities.ts,contracts/knowledge-service.ts,shared/retired-key.ts,meta-spelling/),packages/spec/liveness/,packages/spec/authorable-surface/and other generated spec baselines,packages/metadata/src/,packages/metadata-core/src/,packages/core/src/package-scoped-resolution.ts,packages/objectql/src/(package-scoped read/resolver, namespace list),packages/services/service-knowledge/src/,packages/plugins/knowledge-*/src/(dropSource and contract-suite case),packages/runtime/src/domains/mcp-authoring.ts,packages/cli/test/metadata-type-schema-gate.test.ts,scripts/check-stack-collection-maps.mjs,ui/packages/app-shell/src/views/studio-design/studioMenuPlacement.tsandui/packages/i18n/src/locales/*.ts,skills/objectstack-platform/SKILL.md(the top-level key line only),content/docs/knowledge pages,.changeset/(stop on breach; explain in the report)Container & model:
XL,mode:thread,model: CONTRACT_REVIEW_TIER (dispatch-gates --tier: MANDATORY — skills/objectstack-platform/SKILL.md ⇢ 'skills/**', clause ①),effort: highClause-②: yes
Metadata-protocol: added
Responsibility:
n/a — not a defect cardThread-read: 7168239918
Premise: holds (Blocked-by #37099 and #37004 both closed — PR #37439 a7bf18f, PR #37477 c349576; Q1 and Q2 ruled 7168239918 / 7168175100; ADR-0150 addendum merged in PR #37330). Step 0 re-runs every premise re-check line and answers ADR-0150 addendum points 4–7 before code; an unanswered point is a fork to the maintainer.
Pre-claim lane:
domain:spec(type, kit, baselines) with the service-knowledge loader in the same PR, per the card's Reader linePre-claim deps: #37099 closed, #37004 closed
Prior rulings read: card rulings Q1 B (7168239918) and Q2 B (7168175100); ADR-0161 K1–K9; ADR-0150 #37304 addendum (points 1–3 settled, 4–7 open for this card)
Serial constraints cleared:
PR #37442 (#37102, this zone, Tier H, in rework) edits knowledge-service-plugin.ts, knowledge-service.ts and skills/objectstack-platform/SKILL.md: no push while overlap-check exits 1 against it; merge main once after it lands. #37479 (this zone) may fold its publish-time refusal into this PR; the zone re-scopes it after. #37306, #37307, #37309, #37310 wait on this card.Tier: H (skills/** line, ADR-0087 conversions); draft only, seat hands off after ACCEPT + same-head contract PASS.
9 remaining items
objectstack-fleet commentedon Nov 27, 2026
repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X
维护者裁定记录 —
manage_knowledge_sourcesreachThe maintainer chose on the seat's decision card (2026-11-27 01:28Z), option A: every write door of an existing package asks
manage_knowledge_sourceswhen the package holds aknowledge_sourceitem or draft. That covers publish, revert/rollback, duplicate, and delete/disable, in addition to the three doors in ruling Q2. Thecapabilities.tssentence stays as written.Not covered by this ruling: installing a package by manifest (
POST /packages), which ADR-0161 K4 leaves to row 4. It stays ungated unless the maintainer extends this.Seat terms already relayed to the area for PR #37676: duplicate also runs save admission as the caller, and the REST door's quiet skip without
kernelServiceProvideris stated in its JSDoc.objectstack-fleet commentedon Nov 27, 2026
repo:objectstack#5 · os-bill · session_01Utp6Cb4BAjgQ43tqy1DvVJ
Claim amend (claim 7203310811) · 2026-11-27T01:41Z
File surface added for REWORK 7206423476 and maintainer ruling 7207325373 (package write doors ask
manage_knowledge_sources):packages/runtime/src/domains/packages.ts, the dispatcher door inpackages/runtime/src/domains/meta.ts, and the existing runtime tests the gate reaches, with assertions unchanged except where noted:packages-publish-drafts-request-conformance,packages-publish-drafts-probe-caller-context,package-state-host-store,domains/error-passthrough(callers also hold the capability, or a per-package stub is added), andpackages-ensure-customization("duplicate: 400 before a row is read" counts only the reads insideprotocol.duplicatePackage, since guard two now reads the source's knowledge sources first). Main is merged after #37723 (D3 rule moved topackages/metadata-core). Theknowledge_sourceentry lives there, and core stays a re-export.objectstack-fleet commentedon Nov 27, 2026
repo:objectstack#5 · os-bill · session_01Utp6CZe3KTAXogcUJuvYEx
os-dev-report
{ "issue": 37304, "status": "done", "branch": "claude/project-thread-23bpce", "pr": "https://github.com/objectstack-ai/objectstack/pull/37676", "session": "session_01Utp6CZe3KTAXogcUJuvYEx", "premise_still_valid": true, "supersedes": "report comment 7206197293 (head 45ed21271)", "summary": "Review round 1, head 20f929970 (draft PR #37676). The full contract review on 45ed21271 read PASS with findings (7206413701) and the seat ordered a rework (7206423476). This head answers it; the delta reviews read PASS on cf128e59f (7208152877) and on 20f929970 (7208323495), seat ACCEPT 7208335574. What changed since report 7206197293, in neutral terms (the findings' detail is with the seat): authoring guards cover more doors and more of what a source reads. (1) The fields a source's `where` reads are judged with the fields it serves, at save and at search. (2) The dispatcher and the MCP draft door resolve the knowledge service by the classified lookup, so a registered service that cannot be resolved refuses the save 503. (3) Maintainer's ruling A (record 7207325373): the twelve doors that write an existing package ask manage_knowledge_sources when the package holds a knowledge source (item, pending draft, or for the commit revert and the rollback a commit that touched one); a holding that cannot be read refuses 503; a host with no metadata store holds none. Install and ensure-customization are not asked (zone and seat confirmed the second; a pin shows the pair of a base that holds a source holds none). (4) The duplicate door admits each knowledge source it would copy for the caller. (5) `content` refuses an empty-string member. (6) The changeset lists the twelve removed exports and states the package gate's order and its 503. (7) A third merge of main at 8b9b9d235, forced by #37723: core's package-scoped-resolution.ts is main's re-export and the knowledge_source row sits in metadata-core's PACKAGE_SCOPED_TYPES; default-changes.ts keeps both protocol 19 entries; the merge is its own commit and authorable-defaults/ai.json was regenerated in the next (737f44341). No rebase, no force-push. (8) Edits outside the card's first surface, on the zone's order (claim amend 7207505784): packages/runtime/src/domains/packages.ts, meta.ts, mcp-authoring.ts; five existing runtime test files adjusted for the read the package gate makes for a caller without the capability (publish-drafts request conformance and probe caller context, package-state host store, domains/error-passthrough: caller or stub only, assertions unchanged; packages-ensure-customization 'duplicate: 400 before a row is read' now counts the reads made inside protocol.duplicatePackage, still 0, because the door reads the source's knowledge sources first); content/docs/permissions/system-context.mdx rows 46 and 55 name the two package-door guards and the register is regenerated. The PR body was patched for the round (run 45928008416, read back identical); the N3 wording and the four ADR-0150 narrowing counts (all 0 on this tree, which holds one source) are in it. Tier H: the PR stays draft, not readied, no reviewer requested by this thread.", "tests": "Exit code of each command read before any pipe; heavy runs under os-verify-lock. On cf128e59f (20f929970 adds three files on top: one changeset sentence, the census page, one import line in domains/error-passthrough.test.ts): turbo build of packages and examples 0 (85 tasks); @objectstack/runtime full 657 files, 13676 passed, 25 skipped; @objectstack/core 158 files, 3782 passed; metadata-core exit 0; service-knowledge 17 files, 524 passed; example-showcase 49 files, 554 passed; rest 435 files, 9214 passed, 376 skipped; ui app-shell studio-design 286 files, 2371 passed; tsc --noEmit on packages/runtime 0. On 20f929970: domains/error-passthrough.test.ts 13 passed. Before the third merge, on 150c85438: workspace typecheck 169 of 169 tasks; spec knowledge-source.test.ts 32 passed; pnpm --filter @objectstack/spec check:generated 0 (again 0 after the merge, on 737f44341). The first local run of the runtime suite on 150c85438 was red (13 files, 59 tests: existing package-door tests met the new gate); nothing was pushed until it was green.", "gates": "CI on cf128e59f had two red lint lanes, both fixed in 20f929970 and reproduced green locally: 'Docs anchors resolve to real headings' (pnpm check:doc-anchors 0; pnpm check:system-context-census 0, self-test all cases passed) and 'Test-source alias gate' (node scripts/check-test-source-alias.mjs OK). node scripts/check-skills-token-ratchet.mjs 0 (objectstack-platform 6156 of 6156, objectstack-ai 6799 of 6801, ratcheted bundle 199665 of 204478). node scripts/pm/overlap-check.mjs on 20f929970 ran to completion: origin/main merges cleanly; conflicts with open PRs #37422 and #37366. CI on 20f929970 is the seat's to read before landing. CI on 20f929970 as read at 03:16Z (scripts/pm/pr-state.mjs --pr 37676): 64 check runs success, 17 expected skips, 0 unexpected skips, 0 pending; one Check Changeset run shows cancelled (superseded).", "dogfood_battery": "20f929970 (tree, clean) · os-verify-lock: VERDICT command-exit 0 · held the lock 2127s (the dogfood battery alone) · Test Files 490 passed | 3 skipped (493) · Tests 4144 passed | 68 skipped (4212) · no failure. Full battery, no shard, no path, once: pnpm --filter @objectstack/dogfood test.", "deviations": [ "The package gate turned 13 existing runtime test files red on its first local run (150c85438); found before any push. Fixed in the gate where the gate was wrong (items read per package only; a host with no metadata store holds none) and by five fixture edits the zone approved (claim amend 7207505784); one of them changes how an assertion measures (reads counted inside protocol.duplicatePackage).", "cf128e59f was pushed on the affected suites alone, at the seat's request to start the delta review early; CI then found two lint gates this thread had not run locally (system-context census, test-source alias). Both fixed in 20f929970.", "The derived gate list and the workspace type check were not re-run to completion on 20f929970 before this report: the run that carried them was stopped to run the dogfood battery first, as the landing needs. They run after this report and their readings go in the PR body.", "capabilities.ts: one comment sentence beyond the order (names ensure-customization beside install); told to the zone, which kept it." ], "mcp_calls": "17 — the 14 of report 7206197293, plus one comment read of the contract review and mcp__github__get_job_logs x2 (the two red lint jobs). No write tool.", "api_writes": "Relay strokes since report 7206197293: PATCH /issues/37676 (PR body, run 45928008416); POST /issues/37304/comments (this report). git push x2 to claude/project-thread-23bpce (cf128e59f, 20f929970), each after overlap-check ran to completion. No force-push.", "open_questions": [], "security_findings": "withheld", "out_of_scope_findings": [ "carrier: filed by the zone under #37304 · N2 (ADR-0084 prose) and N5 (tombstone wording for code-door registrants) from review 7206413701.", "carrier: none · noted, not filed: a kernel with ObjectQL and no driver answers the package gate's listing with an uncoded '[ObjectQL] No driver available' error, which the gate reads as a failed read (503 for a caller without the capability). Seen only in a test kernel (package-state-host-store.test.ts)." ] }objectstack-fleet commentedon Nov 27, 2026
repo:objectstack#5 · os-bill · session_01Utp6CZe3KTAXogcUJuvYEx
os-dev-report
{ "issue": 37304, "status": "done", "branch": "claude/project-thread-23bpce", "pr": "https://github.com/objectstack-ai/objectstack/pull/37676", "session": "session_01Utp6CZe3KTAXogcUJuvYEx", "premise_still_valid": true, "supersedes": "report comment 7208957305 (head 20f929970)", "summary": "Queue round, head ebc0b7ce8d73163d64f830fb8e24906a59afb3d5. #37676 entered the merge queue at 03:11Z on 20f929970 and was removed at 03:35Z (CI_FAILURE). Cause: merge-group run 45932677422, lane 'Type Check · source gates', gate 'Published skills token ratchet (#10473)': on the merged tree skills/objectstack-ai/SKILL.md read 6802 tokens against a ceiling of 6801. Main took that file to 6801 of 6801 while this PR was queued, and this PR's two key renames in the supportKb example add two bytes. PR-side CI on 20f929970 could not see it, since the file had headroom on the older base. Two commits on top of 20f929970: fafa914c6 merges main at 6e8f66371 (clean, no conflict, lockfile unmoved, no generated path moved by both sides); ebc0b7ce8 shortens the trailing comment on the example line this PR already changes ('concatenated into' reads 'joined into', six bytes), so the file reads 6800 of 6801. No ceiling moves, no other skills/** file is touched, no code changes. Everything else in report 7208957305 stands. The seat confirmed this route before the push and carries the contract records over; the PR was enqueued again at 04:20Z.", "tests": "Exit code of each command read before any pipe; heavy runs under os-verify-lock, all on ebc0b7ce8 (git rev-parse HEAD read before and after the run). turbo build of packages, apps and examples 0 (86 tasks). @objectstack/service-knowledge 17 files, 528 passed; @objectstack/knowledge-turso 3 files, 162 passed; @objectstack/runtime src/domains 243 files, 7190 passed, 4 skipped. These are the packages where main and this PR both moved files. The other suites of report 7208957305 were not re-run locally; CI on ebc0b7ce8 ran them and the PR's checks read clean (mergeable_state clean, check_suite completed with none failed).", "gates": "node scripts/check-skills-token-ratchet.mjs 0 (objectstack-ai 6800 of 6801, objectstack-platform 6156 of 6156, ratcheted authored 199714 of 204536) and its --self-test 0; pnpm --filter @objectstack/spec check:generated 0. The workspace type check, census, doc-anchor and test-source-alias gates were left to CI on this head (the local run that carried them was stopped after the build so the dogfood battery could start alongside CI, as the zone asked). node scripts/pm/overlap-check.mjs ran to completion before the push, exit 1: open PRs #37783 (generated metadata-forms translations), #37366 (generated reference docs) and #36158 (scripts/check-skills-token-ratchet.mjs, marked by the tool as that PR against main) would conflict with this head; none is a conflict with main; reported to the zone.", "dogfood_battery": "run on ebc0b7ce8d73163d64f830fb8e24906a59afb3d5: pnpm --filter @objectstack/dogfood test exit 0 — 490 files passed, 3 skipped (493); 4144 tests passed, 68 skipped (4212). Under os-verify-lock, VERDICT command-exit 0, lock held 2680s for this battery plus the three suites above (shared box, not an idle one).", "deviations": [ "A skills/** edit after ACCEPT (one comment, six bytes, on a line the PR already changes). Told to the zone before the push; the zone and the seat confirmed it, with no ceiling raise.", "The push went out before the local suites finished, on the zone's order; CI and the dogfood battery ran in parallel on the pushed head." ], "mcp_calls": "22 read calls in this session in all (issue_read 9, get_job_logs 9, actions_list 3, pull_request_read 1); this round added actions_list and get_job_logs reads of the merge-group run. No write tool.", "api_writes": "Since report 7208957305: POST /issues/37304/comments (this report). git push x1 to claude/project-thread-23bpce (ebc0b7ce8), after overlap-check ran to completion. No force-push, no rebase. No PR body edit.", "open_questions": [], "security_findings": "withheld", "out_of_scope_findings": [ "carrier: none · noted for the zone: a published skill file that sits at exactly its ratchet ceiling on main turns any open PR that adds a byte to it red only in the merge group, never on the PR's own CI. Two files sit there now (objectstack-ai 6801 of 6801 on main, objectstack-platform 6156 of 6156)." ] }objectstack-fleet commentedon Nov 27, 2026
repo:objectstack#5 · os-bill · session_01Utp6CZe3KTAXogcUJuvYEx
os-dev-report
{ "issue": 37304, "status": "done", "branch": "claude/project-thread-23bpce", "pr": "https://github.com/objectstack-ai/objectstack/pull/37676", "session": "session_01Utp6CZe3KTAXogcUJuvYEx", "premise_still_valid": true, "supersedes": "report comment 7209929034 (head ebc0b7ce8)", "summary": "Second queue round, head 2a2218d120a98cd4b69c54ab412c26f0e23ba78a. #37676 was enqueued again at 04:20Z on ebc0b7ce8 and removed at 04:41Z (CI_FAILURE). Cause, reproduced locally on a merge with main: #37747 (cac93cc627) landed while this PR was queued, and the skills token ratchet now refuses a row whose ceiling sits above its file's measurement. skills/objectstack-ai/SKILL.md reads 6800 on this branch after the six-byte trim of ebc0b7ce8; its row was 6801. The gate's own instruction is to lower the row in the PR (shrink-only, no ruling needed). Two commits on top of ebc0b7ce8: d92226cbaa merges main at ff9ee21084 (clean; the only path both sides moved is scripts/check-skills-token-ratchet.mjs, without conflict; no generated path moved by both sides); 2a2218d120 lowers that one row 6801 to 6800 with a two-line note. No skill text and no product code moves. Everything else in reports 7208957305 and 7209929034 stands. Seat ACCEPT on this head: 7210090045.", "tests": "Exit code of each command read before any pipe; one run under os-verify-lock on 2a2218d120 (git rev-parse HEAD read before and after). turbo build of packages, apps and examples 0 (86 tasks). No package suite was re-run locally for this delta: main's merge moved no file this PR touches except the ratchet script, and CI on 2a2218d120 ran the suites (62 success, 9 expected skip, 0 failed, 0 pending; mergeable_state clean).", "gates": "node scripts/check-skills-token-ratchet.mjs 0 (objectstack-ai 6800 of 6800, ratcheted authored 199714 of 199714) and its --self-test 0 (111 cases); pnpm --filter @objectstack/spec check:generated 0. node scripts/pm/overlap-check.mjs ran to completion before the push, exit 1, main merges cleanly: open PRs #37797 (lowers the same ratchet row and edits the same skill file), #37798, #37783, #37366 and #36158 would conflict with this head; reported to the zone, which rang #37797 to wait behind this PR.", "dogfood_battery": "run on 2a2218d120a98cd4b69c54ab412c26f0e23ba78a: pnpm --filter @objectstack/dogfood test exit 0 — 490 files passed, 3 skipped (493); 4144 tests passed, 68 skipped (4212). Under os-verify-lock, VERDICT command-exit 0, lock held 2726s for the build, the three gates above and this battery (shared box, not an idle one).", "deviations": [ "An edit to scripts/check-skills-token-ratchet.mjs after ACCEPT: one ceiling number lowered to the measurement, as the gate asks. The PR already edits that script. Told to the zone at the push; the seat accepted it (7210090045).", "The push went out on the ratchet and its self-test alone; the build, check:generated and the battery ran after it, alongside CI." ], "mcp_calls": "22 read calls in this session in all, unchanged since report 7209929034 (the second eviction was diagnosed by local reproduction, not from job logs). No write tool.", "api_writes": "Since report 7209929034: POST /issues/37304/comments (this report). git push x1 to claude/project-thread-23bpce (2a2218d120), after overlap-check ran to completion. No force-push, no rebase. No PR body edit.", "open_questions": [], "security_findings": "withheld", "out_of_scope_findings": [ "carrier: none · noted for the zone: with ratchet rows pinned at the measurement, two open PRs that touch the same published skill file cannot both pass the merge group; the second must merge main and re-measure. #37797 and #37661 touch objectstack-ai/SKILL.md." ] }objectstack-fleet commentedon Nov 27, 2026
repo:objectstack#5 · os-bill · session_01Utp6CZe3KTAXogcUJuvYEx
os-dev-report
{ "issue": 37304, "status": "done", "branch": "claude/project-thread-23bpce", "pr": "https://github.com/objectstack-ai/objectstack/pull/37676", "session": "session_01Utp6CZe3KTAXogcUJuvYEx", "premise_still_valid": true, "supersedes": "report comment 7209929034 (head ebc0b7ce8)", "summary": "Second queue round, head 2a2218d120a98cd4b69c54ab412c26f0e23ba78a. #37676 was enqueued again at 04:20Z on ebc0b7ce8 and removed at 04:41Z (CI_FAILURE). Cause, reproduced locally on a merge with main: #37747 (cac93cc627) landed while this PR was queued, and the skills token ratchet now refuses a row whose ceiling sits above its file's measurement. skills/objectstack-ai/SKILL.md reads 6800 on this branch after the six-byte trim of ebc0b7ce8; its row was 6801. The gate's own instruction is to lower the row in the PR (shrink-only, no ruling needed). Two commits on top of ebc0b7ce8: d92226cbaa merges main at ff9ee21084 (clean; the only path both sides moved is scripts/check-skills-token-ratchet.mjs, without conflict; no generated path moved by both sides); 2a2218d120 lowers that one row 6801 to 6800 with a two-line note. No skill text and no product code moves. Everything else in reports 7208957305 and 7209929034 stands. Seat ACCEPT on this head: 7210090045.", "tests": "Exit code of each command read before any pipe; one run under os-verify-lock on 2a2218d120 (git rev-parse HEAD read before and after). turbo build of packages, apps and examples 0 (86 tasks). No package suite was re-run locally for this delta: main's merge moved no file this PR touches except the ratchet script, and CI on 2a2218d120 ran the suites (62 success, 9 expected skip, 0 failed, 0 pending; mergeable_state clean).", "gates": "node scripts/check-skills-token-ratchet.mjs 0 (objectstack-ai 6800 of 6800, ratcheted authored 199714 of 199714) and its --self-test 0 (111 cases); pnpm --filter @objectstack/spec check:generated 0. node scripts/pm/overlap-check.mjs ran to completion before the push, exit 1, main merges cleanly: open PRs #37797 (lowers the same ratchet row and edits the same skill file), #37798, #37783, #37366 and #36158 would conflict with this head; reported to the zone, which rang #37797 to wait behind this PR.", "dogfood_battery": "2a2218d120a98cd4b69c54ab412c26f0e23ba78a · VERDICT 0 · pnpm --filter @objectstack/dogfood test exit 0 — 490 files passed, 3 skipped; 4144 tests passed, 68 skipped", "deviations": [ "An edit to scripts/check-skills-token-ratchet.mjs after ACCEPT: one ceiling number lowered to the measurement, as the gate asks. The PR already edits that script. Told to the zone at the push; the seat accepted it (7210090045).", "The push went out on the ratchet and its self-test alone; the build, check:generated and the battery ran after it, alongside CI." ], "mcp_calls": "22 read calls in this session in all, unchanged since report 7209929034 (the second eviction was diagnosed by local reproduction, not from job logs). No write tool.", "api_writes": "Since report 7209929034: POST /issues/37304/comments (this report). git push x1 to claude/project-thread-23bpce (2a2218d120), after overlap-check ran to completion. No force-push, no rebase. No PR body edit.", "open_questions": [], "security_findings": "withheld", "out_of_scope_findings": [ "carrier: none · noted for the zone: with ratchet rows pinned at the measurement, two open PRs that touch the same published skill file cannot both pass the merge group; the second must merge main and re-measure. #37797 and #37661 touch objectstack-ai/SKILL.md." ] }objectstack-fleet commentedon Nov 27, 2026
repo:objectstack#5 · os-bill · session_01Utp6CZe3KTAXogcUJuvYEx
os-dev-report
{ "issue": 37304, "status": "done", "branch": "claude/project-thread-23bpce", "pr": "https://github.com/objectstack-ai/objectstack/pull/37676", "session": "session_01Utp6CZe3KTAXogcUJuvYEx", "premise_still_valid": true, "supersedes": "report comment 7210725851 (head 2a2218d120)", "summary": "Third queue round, head e2949f08100433f8dd6754eafc7347511ebabad5. #37676 was enqueued a third time at 05:33Z on 2a2218d120 and removed at 05:59Z: it conflicted with main after #37783 landed (packages/spec/src/conversions/registry.ts and packages/spec/llms.txt). Two commits on top of 2a2218d120. e958f857c5 merges main at 9b50fedbfa; the two conflicts are resolved by hand: the registry keeps all four major-19 conversions in identifier order with their own order values (the tie at order 2 between the agent's and the knowledge source's settles by id, as the file's rule states), with one sentence of this PR's own comment made true for the second tie; the llms.txt inventory reads 231 schemas (this PR removes one ai module, main adds one ui module). e2949f0810 is the regeneration the repo's commit hook requires as its own commit after such a merge: the merge driver had kept this branch's side of two generated paths both sides moved, so content/docs/references/index.mdx (main's new ui page and the totals) and packages/spec/authorable-surface/ai.json (main's retired marker on AIModelConfig:provider) are regenerated on the merged tree, 2 files and 10 lines. No hand-written product code changes beyond the merge resolution. Everything else in reports 7208957305, 7209929034 and 7210725851 stands.", "tests": "Exit code of each command read before any pipe; runs under os-verify-lock on e2949f0810 (git rev-parse HEAD read before and after the battery run). @objectstack/spec src/conversions + src/migrations + the retired-key removal-version pin: 30 files, 1090 passed. @objectstack/runtime src/domains/mcp-authoring.test.ts (a file both sides moved) + packages-knowledge-source-gate.test.ts: 2 files, 138 passed. turbo build of packages, apps and examples 0 (86 tasks). The remaining suites were left to CI on this head: 62 success, 9 expected skip, 0 failed, 0 pending; mergeable_state clean.", "gates": "All exit 0 on the merged tree: pnpm --filter @objectstack/spec build, gen:schema, gen:export-origins, gen:api-surface, gen:skill-refs, gen:docs (run after the merge was committed, never in MERGE state), check:generated (again after the workspace build), check:llms-txt (98 claims re-derived, 231 schemas), pnpm check:i18n, node scripts/check-skills-token-ratchet.mjs. The commit hook reported the deferred regeneration discharged, all artifacts current. node scripts/pm/overlap-check.mjs ran to completion before the push, exit 1, main merges cleanly: open PRs #37797, #37366 and #36158 would conflict with this head, as reported before.", "dogfood_battery": "e2949f08100433f8dd6754eafc7347511ebabad5 · VERDICT 0 · pnpm --filter @objectstack/dogfood test exit 0 — 490 files passed, 3 skipped; 4144 tests passed, 68 skipped", "deviations": [ "The zone asked for the regeneration inside the merge commit so the head would stay a base merge. The repo's commit hook requires it as a separate commit after the merge, so it is one (e2949f0810); told to the zone before the push, which then ordered the push and a battery on the new head.", "One sentence of this PR's own comment in conversions/registry.ts changed inside the merge commit, to stay true beside main's new entry." ], "mcp_calls": "22 read calls in this session in all, unchanged since report 7209929034. No write tool.", "api_writes": "Since report 7210725851: POST /issues/37304/comments (this report). git push x1 to claude/project-thread-23bpce (e2949f0810), after overlap-check ran to completion. No force-push, no rebase. No PR body edit.", "open_questions": [], "security_findings": "withheld", "out_of_scope_findings": [] }objectstack-fleet commentedon Nov 27, 2026
repo:objectstack#5 · os-bill · session_01Utp6CZe3KTAXogcUJuvYEx
os-dev-report
{ "issue": 37304, "status": "done", "branch": "claude/project-thread-23bpce", "pr": "https://github.com/objectstack-ai/objectstack/pull/37676", "session": "session_01Utp6CZe3KTAXogcUJuvYEx", "premise_still_valid": true, "supersedes": "report comment 7211969284 (head e2949f0810)", "summary": "Fourth queue round, head 261dc7527bbb002633b5724a365f3e3e3be4f15a. #37676 was enqueued on e2949f0810 and removed at 07:42Z: it conflicted with main after #37366 landed (the `form` metadata type and the defineMetadataForm rename). Four commits on top of e2949f0810. 00d616e553 merges main at e69fa46dd3; 21 conflicted files resolved by hand, keeping both new types (`form` and `knowledge_source`) in every enumeration: the cli schema-gate map, the rolled-back overlay tier, app-plugin's collection list, the liveness README and GOVERNED list, the create-seeds list, check-stack-collection-maps, eleven ui locale files and two platform-objects ledgers. Pins both sides had raised by one now count both (35 registry types, 17 bare types, 28 bare leaves, 47 governed types). The objectstack-platform skill row is 6158: main's 6153 after its `forms` row plus this PR's own 20 bytes for `knowledgeSources`, under the enumeration-row ruling the PR already cites. dfcdfb8aaa is the regeneration the commit hook requires as its own commit: six generated files (meta URL spelling data, ai export origins, four reference pages). ae2b4ac153 merges main at b620c4b2c6 (one conflict: the objectstack-ai ratchet row, both sides had lowered it; it reads the merged measurement 6799; no regeneration owed). 261dc7527b merges main at 2a4ad3043c (one conflict: a translated-leaf pin, main 844 plus this PR's one label reads 845; no regeneration owed). The two commits above ae2b4ac153's parent chain since the battery head are merges of main only. No product behaviour of this PR changes in any of the four.", "tests": "Exit code of each command read before any pipe; runs under os-verify-lock. On dfcdfb8aaa: full suites of @objectstack/spec (1001 files, 30263 passed), platform-objects (130 files, 2214 passed), metadata-protocol (372 files, 23595 passed, 45 skipped), metadata (83 files, 2914 passed), metadata-core (29 files, 1111 passed), rest (437 files, 9278 passed, 376 skipped), runtime src/domains + app-plugin (267 files, 7513 passed, 4 skipped), the cli schema-gate test (14 passed), and the workspace type check 0. On ae2b4ac153: turbo build 0 (86 tasks), runtime src/domains + app-plugin (268 files, 7573 passed, 4 skipped), service-knowledge (17 files, 528 passed). On 261dc7527b nothing was run locally before the push (the merge was made in a scratch worktree with no build, so the running battery's tree did not move); its one resolved pin (845) is arithmetic and is held by CI on that head.", "gates": "On dfcdfb8aaa, all exit 0: spec build, gen:meta-url-spelling, gen:schema, gen:export-origins, gen:api-surface, gen:skill-refs, gen:docs (after the merge was committed), check:generated, check:llms-txt, check:i18n, check:stack-collection-maps, check:system-context-census, check:doc-anchors, the test-source alias gate, check:skill-top-level-keys, spec check:liveness, the skills ratchet and its self-test; the hook reported the deferred regeneration discharged. On ae2b4ac153, all exit 0: check:generated, check:llms-txt, check:i18n, the skills ratchet (objectstack-ai 6799 of 6799, objectstack-platform 6158 of 6158) and its self-test. On 261dc7527b: check-regen-pending 0 (nothing deferred), the skills ratchet 0; check:i18n could not run in the scratch worktree and is left to CI. overlap-check ran to completion before each of the three pushes, exit 1 each time with main merging cleanly; on the last, open PRs #37797 and #36158 would conflict.", "dogfood_battery": "ae2b4ac153af62b7d7e667018471be3e0a17371e · VERDICT 0 · pnpm --filter @objectstack/dogfood test exit 0 — 490 files passed, 3 skipped; 4144 tests passed, 68 skipped. The PR head 261dc7527bbb002633b5724a365f3e3e3be4f15a is one merge of main (2a4ad3043c) above this commit.", "deviations": [ "The battery ran on ae2b4ac153, one merge of main below the pushed head, at the zone's instruction (the landing accepts a battery below the head when everything above it is a merge of main).", "A ratchet ceiling was raised inside merge commit 00d616e553 (objectstack-platform 6153 to 6158): the row had to carry both sides' enumeration rows; told to the zone at the push.", "The last merge was made in a scratch worktree and pushed with its pin and bundles unverified locally; told to the zone at the push, CI on that head is the check." ], "mcp_calls": "22 read calls in this session in all, unchanged since report 7209929034. No write tool.", "api_writes": "Since report 7211969284: POST /issues/37304/comments (this report). git push x3 to claude/project-thread-23bpce (dfcdfb8aaa, ae2b4ac153, 261dc7527b), each after overlap-check ran to completion. No force-push, no rebase. No PR body edit.", "open_questions": [], "security_findings": "withheld", "out_of_scope_findings": [] }objectstack-fleet commentedon Nov 27, 2026
repo:objectstack#5 · os-bill · session_01Utp6Cb4BAjgQ43tqy1DvVJ
Delivered · 2026-11-27T10:44Z · zone ai-37000
PR #37676 merged as
d58bf7ab99(head261dc7527b; narrowing, landed like Tier H. Maintainer approval 02:12Z, os-zhuang APPROVED; contract delta-4 record 7214923094; os-dev report 7215256363, battery onae2b4ac153with the head one merge of main above it; landing 7215594763).pm:dispatchedremoved. Epic mailbox #37634 rung by the seat (7216238037); seat 1 rung on #37561 for #37797 and #37306.