Repository navigation
Description
repo:cloud#1 · os-warren · session_01JQwxbW5anP6GDaVi5LKi2U
Body edit 2026-11-25T18:11Z by the epic seat: item 1 narrowed after #37292 (PR #37334, record 7170551931) taught split and removed the hygiene pitfall; eval and token notes added.
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 · Task · p2 (topic) · reach: every AI author that writes a knowledge source from the published skill or over the MCP draft door · evidence: read.
维护者速读
- 问题:教 AI 写知识源的技能文档还在教旧写法(在代码里注册、可以写「全部字段」、推荐已下线的引擎)。第 3 行落地后这些写法会被拒绝,AI 照着写就出错。
- 做什么:技能改成教新的元数据写法(
name、逐个列出content字段、为什么不能写'*'),点名退役的键;MCP 搭建时新建知识源给一份能直接保存的起始模板。 - 谁受益:用 AI(MCP)搭建应用的作者。
- 需要你做的:无(
skills/**是受治理面,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 "rows 4, 5, 5b" for its teaching half: K6 item 6 ("First-party instances move in the same PR or its paired teaching card (row 5b) … skills/objectstack-ai, which teaches contentFields and the * member today"), and K4 clause 2 (authored through MCP). K2's closing note: skills/** is a governed surface and takes its own PR.
skills/objectstack-ai/SKILL.md, section "Knowledge Sources (RAG)". Rewrite it to the type rows 3a and 3b admit:- a source is a
knowledge_sourceitem in a package (knowledgeSources,*.knowledge-source.ts/.yml, unless row 3a stated another), authored in Studio or over MCP; registration in code stays a second door for the same schema, and one name is one source (K4 point 3); - the key table:
name,label,description,adapter(optional: the deployment's store),source.object,source.content(an explicit list; why'*'is refused — embedding is egress, K5),source.metadataFields,source.where,source.split(service-knowledge: one service-layer splitter (whole / recursive / markdown, Chinese-aware), the chunk channel and the split key #37098),refresh.onRecordChange,aiExposed; - the retired keys and arms by name with their prescriptions (
id,contentFields,embedding,vectorStore,refresh.cron, thefileandhttparms, andadapterConfig); - authoring is an egress and cost decision (K4): the first build sends every listed field of every matching record to the provider; the named permission and the save-time admission row 3a adds;
adaptermay be omitted for the deployment's store (row 3b); - the
objectrow's Hygiene cell is now the only carrier of the curated-fields advice (the old pitfall 3 was removed by skills/objectstack-ai: teach the knowledge sourcesplitkey (strategy, maxChars, minChars) that #37098 adds #37292); it sayscontentunder the key-table rewrite; - what is left of the closing note: the "Top-K, score thresholds and rerankers … adapter or application code" line and the
adapterConfigwording. Rewrite it so rerank and hybrid weights stay the adapter's plugin options; the "platform splits" half already landed with skills/objectstack-ai: teach the knowledge sourcesplitkey (strategy, maxChars, minChars) that #37098 adds #37292; - the
splitpassage skills/objectstack-ai: teach the knowledge sourcesplitkey (strategy, maxChars, minChars) that #37098 adds #37292 added: markstrategyas required oncesplitis written (recursiveis the default only whensplitis omitted), and drop its "(memory)" / "(ragflow)" asides with the adapter rewrite.
- a source is a
- The eval.
skills/objectstack-ai/evals/skills-tools-knowledge.jsongains or rewrites a case whose expected source usesname, an explicitcontentlist and no wildcard, and fails oncontentFieldsor'*'. Cases 3 and 9 (case 9 added by skills/objectstack-ai: teach the knowledge sourcesplitkey (strategy, maxChars, minChars) that #37098 adds #37292) still carrycontentFields,adapter: 'memory'andadapter: 'ragflow'; rewrite them so the acceptance grep below clears (theragflowparts are coordinated with Retire @objectstack/knowledge-ragflow: package, settings option, docs and skill mentions #37004).
Token budget.scripts/check-skills-token-ratchet.mjsleaves this file 1 token of headroom after skills/objectstack-ai: teach the knowledge sourcesplitkey (strategy, maxChars, minChars) that #37098 adds #37292, and the cheap restatement deletions are spent. Pay for new text by the standing ruling (record 6513306068): delete duplicates first, then raise the ceiling by the measured remainder, quoting that record. - The MCP authoring contract (K4 clause 2).
list_metadata_itemswithcontract: trueserves a kind's JSON Schema and itscreateSeed(packages/runtime/src/domains/mcp-authoring.ts, header). Add a create seed forknowledge_sourceinpackages/spec/src/kernel/metadata-create-seeds.tsthat passes the schema — K5 makescontentnon-empty, so an empty list cannot be the seed — or the type stays onKNOWN_UNSEEDED(packages/spec/src/kernel/metadata-create-seeds.test.ts:58, whereai_contextsits today) with the reason. Check that the served contract carries thecontentrule and the tombstones' prescriptions as the describes read, and that a draft saved from the seed passes row 3a's parse and row 4's checks. - The routing line in
skills/objectstack-mcp-build/SKILL.md:62("An agent skill, tool or knowledge source | objectstack-ai") stays true; update it only if the section name changes. - Generated references. Regenerate the skill reference indexes the skill gates read (
packages/spec/scripts/build-skill-references.tsmentionsEmbeddingModelSchema, which may lose its composer in row 3a).
Rulings carried (ADR-0161 K10): embedding is egress, so the skill teaches an explicit content list; one search_knowledge definition — the skill names the tool, never a second shape.
Acceptance
- The
os:checkandos:check-yamlexamples in the section compile and parse against the spec on main (check:skill-examplesand the YAML gate green). git grep -n -E "contentFields|'\*'|adapter: 'ragflow'" skills/objectstack-aireturns only lines that name a retired key as retired.- The eval case passes on the skills eval runner with the updated skill and fails against the old text (one ablation run recorded in the PR).
- Over the MCP draft door,
list_metadata_itemswithcontract: trueforknowledge_sourcereturns its schema with thecontentrule; if a seed was added, saving it with one object and one content field filled publishes a source that builds; if not, the PR states why the type stays unseeded. - Container run per AGENTS.md.
Out of scope
- The checked example block that row 3a must move to keep
check:skill-examplesgreen: row 3a (only that block). - Teaching the
splitkey alone: skills/objectstack-ai: teach the knowledge sourcesplitkey (strategy, maxChars, minChars) that #37098 adds #37292 (lands first). - Removing the
ragflowmentions: Retire @objectstack/knowledge-ragflow: package, settings option, docs and skill mentions #37004 owns that rewrite (done through row 3a, which waits for it). - The Studio form: row 5. Lint rules: row 4.
content/docs/**pages: rows 3a and 3b (K2, K6 item 6).
Blocked-by: #37306 (row 3b), #37292 (same section of skills/objectstack-ai/SKILL.md; clears when PR #37334 merges). Done through row 3a: #37004.
Parent: #37000. Reader: domain:skills lane (skills/objectstack-ai, Tier H), with the create seed in packages/spec/src/kernel reviewed by the domain:spec lane.
Dedupe: skills objectstack-ai knowledge 273 (open: #37292 — teaches split in the same section, same file; #37004 — removes the ragflow example in the same section; the rest are phase-2 siblings and seat posts) · knowledge createSeed 4 (none open) · list_metadata_items contract knowledge 1 (none open).
Activity
objectstack-fleet commentedon Nov 25, 2026
triage#1 · os-warren · session_01JQwxbZKP5YM48rWMWTS7wE
First touch 2026-11-25T14:35Z. Confirmed as filed: Task · area:ai · domain:skills · p2,
pm:blockedon #37306 and #37292 (row 5b). It is a row of topic #37000, so it routes to repo:objectstack#1 (maintainer 13:49Z 「继续专题 开发 37000」). Tier H (skills/**): the seat hands it to the maintainer after ACCEPT and a same-head contract PASS (label-write --handoff). #37292, thesplitfollow-up of #37098 in the same SKILL.md section, has no seat of its own, so repo:objectstack#1 may fold it here when it claims.