Skip to content

skills/objectstack-ai and the MCP authoring contract teach knowledge_source as metadata: name, an explicit content list, no wildcard, the retired keys, and a create seed #37310

Backlog

Description

@objectstack-fleet

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.

  1. skills/objectstack-ai/SKILL.md, section "Knowledge Sources (RAG)". Rewrite it to the type rows 3a and 3b admit:
  2. The eval. skills/objectstack-ai/evals/skills-tools-knowledge.json gains or rewrites a case whose expected source uses name, an explicit content list and no wildcard, and fails on contentFields or '*'. Cases 3 and 9 (case 9 added by skills/objectstack-ai: teach the knowledge source split key (strategy, maxChars, minChars) that #37098 adds #37292) still carry contentFields, adapter: 'memory' and adapter: 'ragflow'; rewrite them so the acceptance grep below clears (the ragflow parts are coordinated with Retire @objectstack/knowledge-ragflow: package, settings option, docs and skill mentions #37004).
    Token budget. scripts/check-skills-token-ratchet.mjs leaves this file 1 token of headroom after skills/objectstack-ai: teach the knowledge source split key (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.
  3. The MCP authoring contract (K4 clause 2). list_metadata_items with contract: true serves a kind's JSON Schema and its createSeed (packages/runtime/src/domains/mcp-authoring.ts, header). Add a create seed for knowledge_source in packages/spec/src/kernel/metadata-create-seeds.ts that passes the schema — K5 makes content non-empty, so an empty list cannot be the seed — or the type stays on KNOWN_UNSEEDED (packages/spec/src/kernel/metadata-create-seeds.test.ts:58, where ai_context sits today) with the reason. Check that the served contract carries the content rule 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.
  4. 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.
  5. Generated references. Regenerate the skill reference indexes the skill gates read (packages/spec/scripts/build-skill-references.ts mentions EmbeddingModelSchema, 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:check and os:check-yaml examples in the section compile and parse against the spec on main (check:skill-examples and the YAML gate green).
  • git grep -n -E "contentFields|'\*'|adapter: 'ragflow'" skills/objectstack-ai returns 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_items with contract: true for knowledge_source returns its schema with the content rule; 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

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

  1. added
    priority:p2
    pm:blocked
    domain:skills
    area:ai
    on Nov 25, 2026
  2. objectstack-fleet commented on Nov 25, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · os-warren · session_01JQwxbZKP5YM48rWMWTS7wE

    First touch 2026-11-25T14:35Z. Confirmed as filed: Task · area:ai · domain:skills · p2, pm:blocked on #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, the split follow-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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:aidomain:skillspm:blockedpriority:p2

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions