Repository navigation
docs(spec,skills): SkillSchema.tools decides whether an MCP server offers the skill - #33188
Conversation
…kill The class JSDoc, the tools JSDoc and its describe text, the agents guide and the objectstack-ai skill still called the tool binding inert in the open framework. registerSkillPrompts offers a skill on prompts/list and prompts/get only when the server it is installed on lists every tool the skill binds, so each text now states that rule. Claude-Session: https://claude.ai/code/session_01L9qibwQwWBkRyhGGhaPUST Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L9qibwQwWBkRyhGGhaPUST Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L9qibwQwWBkRyhGGhaPUST Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L9qibwQwWBkRyhGGhaPUST Co-authored-by: Claude <noreply@anthropic.com>
📓 Docs Drift CheckThis PR changes 3 package(s): 2 hand-written doc(s) NAME something this change touched and may need an implementation-accuracy re-verification:
⛔ 1 release-owned page(s) also name something this change touched. These are read-only:
What this run could not see
Coarse fallback — 182 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): Which tree this was computed onThis run read A worktree cut from an older # while this PR is open — GitHub drops the merge commit once it closes
git fetch origin 83fed9c6fc7b6e87f8bd173798d897bced972a49 && git checkout 83fed9c6fc7b6e87f8bd173798d897bced972a49
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 3e19223bf561694fdbb575dd2490847038916132 63201e823f8db029a3525d239cc9525e9d49e210 && git checkout -B drift-repro 3e19223bf561694fdbb575dd2490847038916132 && git merge --no-ff 63201e823f8db029a3525d239cc9525e9d49e210
node scripts/docs-audit/affected-docs.mjs --json 3e19223bf561694fdbb575dd2490847038916132
|
…uide, the mcp README and the liveness ledger The MCP connection guide and the mcp README still said every skill with instructions is served to any connected client, the liveness ledger named only cloud readers for SkillSchema.tools, and a runtime comment called the binding cloud-runtime-only. Each now says that registerSkillPrompts offers a skill only when its server lists every tool the skill binds. Claude-Session: https://claude.ai/code/session_01L9qibwQwWBkRyhGGhaPUST Co-authored-by: Claude <noreply@anthropic.com>
|
epic:#32897#1 · os-tesla · session_01L9qibzoApSyVPuia3NCrBY Adopted by the seat: rendered by an at-tier ( Contract reviewServed-tier: PR #33188 for card #32885, net diff against ① Derived judgments
② Semver levelClause-②: no
③ Boundary flags
④ Design judgment
Findings:
No must-fix and no should-fix. Nits alone end the round. Implemented-by: VERDICT: PASS |
|
epic:#32897#1 · os-tesla · session_01L9qibzoApSyVPuia3NCrBY 维护者速读 · PR #33188 @
|
⛔ merge queue 构建失败 — 先分诊,再决定要不要重排队列构建 43557405828 红了。队列跑的是全量套件(PR 侧 CI 只跑 affected 子集), 分类: 失败的 job(日志抽取,best effort):
跨 PR 相同签名(24h,按失败测试文件聚合):
历史信号:
分诊清单:
Generated by Claude Code · merge-queue-triage workflow (#4859) |
Requested by Tesla · project thread
Fixes #32885
Clause-②: no
Metadata-protocol: none
Skills-docs: updated here
维护者速读
tools绑定写成「开源版无效」,也不再说「带 instructions 的技能对任何连接都提供」:spec 的skill.zod.ts(类注释、tools注释与它的 describe 文案,连带再生的参考页)、content/docs/ai/agents.mdx、skills/objectstack-ai/SKILL.md,以及席位追加的四处:content/docs/ai/connect-mcp.mdx、packages/mcp/README.md、packages/spec/liveness/skill.json的tools条目、packages/runtime/src/domains/mcp.ts的一处注释。现在都写明:registerSkillPrompts安装的 MCP 提示面,只有在该服务器列出技能绑定的每一个工具时,才在prompts/list/prompts/get提供这个技能。objectstack-ai技能 5813 → 5929 token(上限 6801)。packages/spec/src/ai/skill.zod.ts里tools的注释和 describe(规则全文在这里);②skills/objectstack-ai/SKILL.md内置技能表下面那一段;③content/docs/ai/connect-mcp.mdx的「A skill is offered only where its tools are」一段(含actions:execute的例子)。git grep -n "runtime only" content/docs/references/ai/skill.mdx,预期只剩surface和triggerConditions两行,tools行不再出现。skills/**属 Tier H)。What changes
The rule is written from PR #32880's changeset and from
registerSkillPromptsinpackages/mcp/src/skill-prompts.tsonmain588596a, not from the card's summary (card comment 6840247483):packages/spec/src/ai/skill.zod.tsinstructionsruns in both distributions, and whereregisterSkillPromptsinstalls the prompt surface the skill is offered only on a server that serves every tool it binds.toolsis bound by the cloud runtime and read by MCP.surfaceandtriggerConditionsstay cloud-runtime-only and inert in the open framework.toolsJSDoc: the last paragraph states the rule. A plain name is served by a tool of that name, a trailing wildcard by any listed tool it matches, and anaction_NAMEentry (oraction_*) also byrun_action(bindingEntryServedreads the literal or wildcard match first, then theaction_family door). A skill that binds no tool is offered as before, andprompts/getanswers a withheld skill as it answers a prompt name no skill derives. The reach isMCPServerRuntime's HTTP door and any host that drives its ownMcpServerand callsregisterSkillPrompts, stdio included;MCPServerRuntime.bridgePrompts, which projects skills onto the long-lived server without it, applies no filter.toolsdescribe text: "bound by the cloud agent runtime only" becomes "bound by the cloud agent runtime; an MCP server whose promptsregisterSkillPromptsinstalls offers the skill only when it serves every tool named here (anaction_entry also throughrun_action)". No tracker number in it.content/docs/references/ai/skill.mdx(thetoolsrow).check:generatedfound only that artifact stale.content/docs/ai/agents.mdx: the two rows of the two-halves table, and one paragraph under it that states the rule and the advice that follows (bind a skill only to tools its intended connections serve).skills/objectstack-ai/SKILL.md: the note under the built-in skills table.surfaceandtriggerConditionsare inert on the open edition;toolsbinds nothing there but is read, with the rule and which servers apply it.Added in the rework round, at the seat's order (claim amended, comment 6868603309), the same stale claim in four more files:
content/docs/ai/connect-mcp.mdx, section "Prompts: your skills, served to the client": the intro no longer says every skill is served; a new paragraph, "A skill is offered only where its tools are", states the rule on the page's own example (case_triagebindsquery_recordsandaction_resolve_case, so a token without theactions:executescope, which lists norun_action, is not offered it); the "Only the instructions half projects" paragraph saystoolsis bound by the in-product runtime and read here only to decide the offer.packages/mcp/README.md, Prompts section:bridgePromptslists every skill that carries instructions on the long-lived server; the HTTP door and any server a host installsregisterSkillPromptson apply the rule.packages/spec/liveness/skill.json,toolsentry: the evidence gains the in-repo reader as a local anchor after the cloud clauses (packages/mcp/src/skill-prompts.ts#skillBindingServed), and the note no longer says there is nothing to read server-side.verifiedAtandevidenceScopeare unchanged, because the cloud readers were not re-read. The file note gains one dated sentence.packages/runtime/src/domains/mcp.ts: one code comment.Two more sentences changed, both in files the card names and both the same stale claim. The order says to rewrite only the named sentences, so these are declared here and in the report as a deviation:
skill.zod.ts,instructionsfield JSDoc: "a connected client can list this skill by name and fetch this text" gains "on a server that serves the tools the skill binds (seetools)".SKILL.md,instructionsrow: "The one field the open edition reads" becomes "serves". The open edition now readstoolsas well, so "reads" contradicted the paragraph this PR rewrites.Tests
Text only: comments, one describe string, docs and skill prose. No tested behaviour changed, so no ablation.
pnpm --filter @objectstack/spec test: 840 files, 26832 tests passed (1 todo) at f58d610;pnpm --filter @objectstack/spec typecheckexit 0.Acceptance notes
skills/**readings.skills/objectstack-ai/SKILL.md: 421 → 427 lines, 23270 → 23736 bytes, 5813 → 5929 tokens (ceiling 6801, headroom 872). AllSKILL.mdfiles together: 4595 → 4601 lines, 235154 → 235620 bytes. No ceiling is raised.stack.toolsrecords are still described as inert in thetoolsJSDoc ("no runtime reader until that lands"). That sentence is about tool records, not about the binding, and is unchanged.Verification
Rework head 63201e8: local gates and CI
pnpm check:adr-symbol-anchors,pnpm check:error-status-conformance,pnpm check:optional-error-sink,pnpm check:platform-checklist,pnpm check:route-envelope. The whole workspace was rebuilt first (exit 0).--ranreconciliation: 115 derived, 115 run, 0 NOT-MEASURED, 0 UNRUN. All 115 exit 0.pnpm --filter @objectstack/spec run check:livenessexit 0 on the edited ledger entry: 1502 of 1502path#symbolpointers name a symbol the cited file contains.main. The skill file is untouched in this round, so its readings stand (5929 tokens, ceiling 6801).@objectstack/runtimeand@objectstack/mcptests (one code comment and a README).Lint & Repo Gates,TypeScript Type Check,Test Core,Build Core,Governed Surface Queue Guard,Type Check UI,Test UI,Build & E2E UI,Live E2E UI,Dogfood Regression GateandCheck Changesetconcluded success;Lint UIwas skipped by the path filter.Local gates at 021f00c
node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstackat 021f00c (main588596a merged once, no conflict; the merge moved none of this PR's five files). 110 commands, each run with stdin closed and its exit code recorded before any pipe.--ranreconciliation: 110 derived, 110 run, 0 NOT-MEASURED, 0 UNRUN. All 110 exit 0.pnpm --filter @objectstack/spec build, then the whole workspace (pnpm buildunder the verify lock, 119 tasks, exit 0), rebuilt after the merge (exit 0).pnpm --filter @objectstack/spec check:generatednamed one stale artifact (content/docs/references/**);gen:docsrewrote one row. All 14 artifacts are current in the sweep.node scripts/check-skills-token-ratchet.mjs:skills/objectstack-ai/SKILL.md is 5929 tokens (ceiling 6801; headroom 872); bundle total 244089 to 244205.pnpm check:changeset-fixedexit 0 at 021f00c (roster under.changeset);pnpm lintexit 0 at f58d610.check-plugin-teardown-shape.mjs --self-testanswered exit 3 on this shallow clone until its pinned fixture commit was fetched; it then passed (48 cases).!in the title and no narrowing arm, so no local dogfood run).Generated by Claude Code
🤖 Generated with Claude Code
https://claude.ai/code/session_01L9qibwQwWBkRyhGGhaPUST