Skip to content

docs(spec,skills): SkillSchema.tools decides whether an MCP server offers the skill - #33188

Merged
os-zhuang merged 5 commits into
mainfrom
claude/project-thread-3bu5cn
Nov 14, 2026
Merged

os-zhuang merged 5 commits into
mainfrom
claude/project-thread-3bu5cn

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

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 提供这个技能。
  • 为什么改:这条收窄已随 18.4.0 发布(PR fix(mcp)!: offer a skill prompt only where the connection serves the tools it binds #32880),文字却还说绑定无效。照旧文写技能的人或 AI 会给技能绑上 MCP 不提供的工具,技能就在连接上不出现,而文档里找不到原因。
  • 风险与回滚:只改注释、describe 文案、文档和技能文字;schema 形状、接受集、运行行为都不变。回滚即 revert。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 行不再出现。
  • 需要你做的:席位契约复审通过后批准本 PR(skills/** 属 Tier H)。

What changes

The rule is written from PR #32880's changeset and from registerSkillPrompts in packages/mcp/src/skill-prompts.ts on main 588596a, not from the card's summary (card comment 6840247483):

the exported registerSkillPrompts(server, bridge) offers a skill on prompts/list and prompts/get only when the server it is installed on lists every tool in the skill's binding, read from that server's own tool registry when the prompt request is answered

  • packages/spec/src/ai/skill.zod.ts
    • Class JSDoc, "Where each half of a skill runs": instructions runs in both distributions, and where registerSkillPrompts installs the prompt surface the skill is offered only on a server that serves every tool it binds. tools is bound by the cloud runtime and read by MCP. surface and triggerConditions stay cloud-runtime-only and inert in the open framework.
    • tools JSDoc: 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 an action_NAME entry (or action_*) also by run_action (bindingEntryServed reads the literal or wildcard match first, then the action_ family door). A skill that binds no tool is offered as before, and prompts/get answers a withheld skill as it answers a prompt name no skill derives. The reach is MCPServerRuntime's HTTP door and any host that drives its own McpServer and calls registerSkillPrompts, stdio included; MCPServerRuntime.bridgePrompts, which projects skills onto the long-lived server without it, applies no filter.
    • tools describe text: "bound by the cloud agent runtime only" becomes "bound by the cloud agent runtime; an MCP server whose prompts registerSkillPrompts installs offers the skill only when it serves every tool named here (an action_ entry also through run_action)". No tracker number in it.
    • Regenerated: content/docs/references/ai/skill.mdx (the tools row). check:generated found 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. surface and triggerConditions are inert on the open edition; tools binds 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_triage binds query_records and action_resolve_case, so a token without the actions:execute scope, which lists no run_action, is not offered it); the "Only the instructions half projects" paragraph says tools is bound by the in-product runtime and read here only to decide the offer.
  • packages/mcp/README.md, Prompts section: bridgePrompts lists every skill that carries instructions on the long-lived server; the HTTP door and any server a host installs registerSkillPrompts on apply the rule.
  • packages/spec/liveness/skill.json, tools entry: 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. verifiedAt and evidenceScope are 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, instructions field 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 (see tools)".
  • SKILL.md, instructions row: "The one field the open edition reads" becomes "serves". The open edition now reads tools as 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 typecheck exit 0.

Acceptance notes

  • Published skills/** readings. skills/objectstack-ai/SKILL.md: 421 → 427 lines, 23270 → 23736 bytes, 5813 → 5929 tokens (ceiling 6801, headroom 872). All SKILL.md files together: 4595 → 4601 lines, 235154 → 235620 bytes. No ceiling is raised.
  • stack.tools records are still described as inert in the tools JSDoc ("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
  • The extended diff (9 files, +128 / -35) derives 115 commands, 5 of them new: 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). --ran reconciliation: 115 derived, 115 run, 0 NOT-MEASURED, 0 UNRUN. All 115 exit 0.
  • pnpm --filter @objectstack/spec run check:liveness exit 0 on the edited ledger entry: 1502 of 1502 path#symbol pointers name a symbol the cited file contains.
  • No second merge of main. The skill file is untouched in this round, so its readings stand (5929 tokens, ceiling 6801).
  • Not run locally: @objectstack/runtime and @objectstack/mcp tests (one code comment and a README).
  • CI on 63201e8: 68 check-runs, none failed. 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 Gate and Check Changeset concluded success; Lint UI was skipped by the path filter.
Local gates at 021f00c
  • Derivation: node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack at 021f00c (main 588596a 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. --ran reconciliation: 110 derived, 110 run, 0 NOT-MEASURED, 0 UNRUN. All 110 exit 0.
  • The same 110 commands all exit 0 at f58d610, before the merge.
  • Built first, so no gate answered exit 3: pnpm --filter @objectstack/spec build, then the whole workspace (pnpm build under the verify lock, 119 tasks, exit 0), rebuilt after the merge (exit 0).
  • pnpm --filter @objectstack/spec check:generated named one stale artifact (content/docs/references/**); gen:docs rewrote 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.
  • Outside the derived list: pnpm check:changeset-fixed exit 0 at 021f00c (roster under .changeset); pnpm lint exit 0 at f58d610.
  • One reading repaired on the way: check-plugin-teardown-shape.mjs --self-test answered exit 3 on this shallow clone until its pinned fixture commit was fetched; it then passed (48 cases).
  • Left to CI: the workspace type-check lanes, Build Core, Test Core and the dogfood battery (no ! 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

…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>
@github-actions github-actions Bot added size/m documentation Improvements or additions to documentation protocol:ai tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 14, 2026
@github-actions

github-actions Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

This PR changes 3 package(s): @objectstack/mcp, @objectstack/runtime, @objectstack/spec, touching 2 documentable anchor(s). ⚠️ 2 changed file(s) yielded no anchor (packages/mcp/README.md, packages/spec/liveness/skill.json), so the pages documenting them are NOT COVERED by this run — this is not a clean bill of health for those files.

2 hand-written doc(s) NAME something this change touched and may need an implementation-accuracy re-verification:

  • content/docs/ai/skills.mdx (via SkillSchema (symbol, a top-level const))
  • content/docs/permissions/authorization.mdx (via buildMcpBridge (symbol, a top-level function))

⛔ 1 release-owned page(s) also name something this change touched. These are read-only:

  • content/docs/releases/v17/17-0.mdx (via SkillSchema (symbol, a top-level const))

content/docs/releases/ is RELEASE-OWNED (AGENTS.md "Documentation Guardrails"): release
notes are written centrally at release time, and a code PR that edits them is the exact PR
that guardrail exists to stop. They are still audited — read-only. If one of them is actually
wrong, file an issue or open a dedicated docs-only PR; do not edit it here.

What this run could not see
  • 2 changed file(s) yielded no anchor (packages/mcp/README.md, packages/spec/liveness/skill.json) — pages documenting those are invisible to this run
  • the SDK route bridge reached 65 of 247 client-bound route-ledger rows — the other 182 have no registrar path: tail to select them, so pages documenting THEIR client methods cannot appear above, on this or any run. Of those 182: 0 are remediable by widening that discovery convention (an in-repo file declares the path; the convention did not scan it); 59 are structural — on a ledger where NOT ONE row is declared in-repo, so no discovery change reaches them at any price; 123 are undecided (no in-repo declaration, on a ledger that has other in-repo registrars — absence and an unreadable spelling are not distinguishable here). The rows themselves: node scripts/docs-audit/affected-docs.mjs --bridge-coverage
  • a page that states a rule by its inputs shares no identifier with the emitter that implements the rule, so an emitter-only diff cannot list it — not on this run and not on any run. Measured on fix(driver-sql): emit varchar(maxLength) for a text field a declared index keys on #11430: content/docs/protocol/objectql/types.mdx documents the text-family column mapping by the ObjectQL type names it maps FROM (text / textarea / html) while the diff changed createColumn; it went unlisted, and it was the page that diff falsified, in four places. No shared token exists to detect this on, so a rule your change carries has to be re-read by hand in the pages that restate it.
  • a key NAME is not a key, so the hand re-read the line above prescribes can land on the wrong schema. The same spelling is authorable on one governed type and a [REMOVED] tombstone on another for each of active, aria, joins, objects, template, tools and version (censused on [finding] tools is a key on BOTH AgentSchema (tombstoned, dead) and SkillSchema (live, cloud-attested), so a name-based search attributes skill examples to the agent key — it produced a false stop-the-line alarm on PR #19059 #19093 over the liveness ledger's governed types, top-level keys); nothing in a search result distinguishes the two, so a grep hit on a LIVE example reads as evidence about the DEAD key. Measured on fix(spec): the agent.tools liveness row says dead — it claimed live on a key the schema tombstoned #19059: content/docs/ai/agents.mdx was reported as contradicting the agent.tools tombstone over its tools: example at :161, which is inside the defineSkill({ block opened at :155 — the page was already correct. Settle ownership by PARSING the value against both schemas, never by the name: that literal PASSES SkillSchema, and as an AgentSchema it FAILS at tools with the tombstone prescription. ⛔ These names are not the whole class — a key retired through a .strict() guidance map leaves no tombstone in the walked shape and none of them here (tool.category, live as AIToolDefinition.category).

Coarse fallback — 182 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): node scripts/docs-audit/affected-docs.mjs --json 3e19223bf561694fdbb575dd2490847038916132 → packageMentionDocs.

Which tree this was computed on

This run read content/docs from 83fed9c6fc7b6e87f8bd173798d897bced972a49 — the merge of head 63201e823f8db029a3525d239cc9525e9d49e210 into base 3e19223bf561694fdbb575dd2490847038916132, which is what actions/checkout gives a pull_request run. Not the PR head.

A worktree cut from an older main holds a different content/docs, so re-deriving there can legitimately return a different list — that is a different tree, not a wrong row. To answer on the same tree:

# 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

⚠️ That checkout carried uncommitted changes, so the commit above does not fully identify what was read.

Advisory only, and a precision-first one (#9192): a page is listed because it names a
symbol, wire route or SDK method this diff touched — not because it mentions a changed
package. Each row says which anchor put it there, so a wrong row is reportable rather than
merely annoying. To re-verify, run the docs-accuracy-audit workflow scoped to these files:
node scripts/docs-audit/affected-docs.mjs 3e19223bf561694fdbb575dd2490847038916132 → pass the list as
args.docs, on the commit named under Which tree this was computed on.

…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>
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

epic:#32897#1 · os-tesla · session_01L9qibzoApSyVPuia3NCrBY

Adopted by the seat: rendered by an at-tier (CONTRACT_REVIEW_TIER) agent of this seat on the brief from record-recognisers.mjs --brief-template, inputs = card, PR, check-runs only; the drafter (card thread) did not review. Posted 2026-11-14T00:42Z.

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 63201e823f8db029a3525d239cc9525e9d49e210
Local-runs: none
Scope: packages/spec/src/ai/skill.zod.ts, skills/objectstack-ai/SKILL.md + packages/spec/liveness/skill.json, packages/runtime/src/domains/mcp.ts

PR #33188 for card #32885, net diff against main 3e19223 (9 files, +128 / -35). Read: the card body and all seven comments, the PR body and file list, the net diff, the check-runs on the head, packages/mcp/src/skill-prompts.ts, mcp-server-runtime.ts, mcp-http-tools.ts and plugin.ts on main, and PR #32880's changeset. The remainder (content/docs/ai/agents.mdx, content/docs/ai/connect-mcp.mdx, packages/mcp/README.md, the generated content/docs/references/ai/skill.mdx, the changeset) is the lane seat's ACCEPT at TIER_DEFAULT; it was read for contradiction with the two hits files and none was found.

① Derived judgments

  • Accept set of SkillSchema: unchanged. Right. The tools line keeps z.array(z.string().regex(/^[a-z_][a-z0-9_]*\*?$/)); only the .describe() argument and JSDoc move. No key added, removed, renamed or re-typed.
  • Published surface that does change: the tools description string. It reaches the generated JSON Schema description and content/docs/references/ai/skill.mdx (one row, regenerated in this diff and identical to the source string). No other copy of the old string remains at the head (git grep "bound by the cloud agent runtime" finds the source, the reference page and the changeset only). Right.
  • Runtime behaviour: unchanged. Right. packages/runtime/src/domains/mcp.ts changes three comment lines inside buildMcpBridge; no statement moves. packages/spec/liveness/skill.json changes the _note and the tools entry's evidence / note strings; status, verifiedAt and evidenceScope are untouched, so no liveness verdict moves and no cloud reading is re-stamped (the ledger's own rule).
  • Published skill objectstack-ai: two prose edits, no ceiling raised. SKILL.md is unchanged between 021f00c and this head, so the dev's token reading (5813 to 5929, ceiling 6801) still describes it.

② Semver level

Clause-②: no

  • The changeset .changeset/32885-skill-tools-binding-prose.md names @objectstack/spec patch, @objectstack/skills patch, @objectstack/mcp patch. That matches what the diff publishes: a description string and JSDoc in spec, skill prose in skills, the README that ships in the mcp tarball. Patch is the right level for each; nothing here is a feature or a narrowing.
  • @objectstack/runtime is not named and need not be: its change is a source comment, and the package rides the fixed group with spec.
  • Clause-②: no and Metadata-protocol: none stand on both the PR body and the changeset, and both are right: the narrowing itself shipped in 18.4.0 under PR fix(mcp)!: offer a skill prompt only where the connection serves the tools it binds #32880's own Clause-②: no (narrowing) changeset (confirmed in packages/mcp/CHANGELOG.md on main, entry b4f6971 under ## 18.4.0). So the changeset's "Since 18.4.0" is true, and the card's "lands in the same release as PR fix(mcp)!: offer a skill prompt only where the connection serves the tools it binds #32880" can no longer be met by any PR.
  • Check Changeset: completed, success.

③ Boundary flags

  • Dev deviation, two sentences beyond the card's three (the instructions JSDoc clause; "reads" to "serves" in the SKILL.md row). Answered: accepted in place by the claim amendment (card comment 6868603309). Both are required by the rewritten paragraphs; leaving either would contradict them.
  • Dev deviation, one added paragraph in agents.mdx. Answered by the same amendment.
  • open_questions 1 (four more texts with the same stale claim: extend or family card). Answered by the amendment: all four are added to this PR's surface, which goes one step past the dev's option A (the ledger and the code comment ride too). Both extra files hold against the code; see ④.
  • The card's "Nothing else in those files changes". Held apart from the accepted sentences above.
  • Check-runs on the head, as read at review time. Completed and green: Check Changeset, Spec property liveness, Governed Surface Queue Guard, PR-body guards, Lint · PM dispatch-gates, Lint · scoped · tooling self-tests, Check Documentation Links, Check PR Size, Dogfood Regression Gate, Flag docs affected by code changes, Plan Test Core shards, Plan Test UI shards, Auto Label, filter. Still running: Build Core, Build Docs, Build UI Deps, Lint · ESLint, Lint · docs & code guards, Lint · repo & tooling gates, Lint · CI, release & engine gates, Lint · scoped · query-options erasure, Lint · scoped · slot lookup & corpus, Type Check (workspace, source gates, consumer gates, debt ledger), Test Core 1/8 to 8/8, Live E2E UI. None failed. This record judges the contract; it does not stand in for the lanes still running, and the dev's 110-command local sweep was taken at 021f00c, not at this head.
  • Escalated to the seat, not a contract matter: the card carries no os-dev-report for the rework round that produced this head (the one report names 021f00c and five files), and the PR is still a draft.

④ Design judgment

packages/spec/src/ai/skill.zod.ts (against registerSkillPrompts / skillBindingServed on main and PR #32880's changeset): holds, sentence by sentence.

  • "only when the server it is installed on lists every tool named here, read from that server's own tool registry when the prompt request is answered": servedToolNames(server) is called inside both request handlers, and skillBindingServed is binding.every(...).
  • Plain name / trailing wildcard: bindingEntryServed reads served.has(entry), or any startsWith(stem) for a wildcard.
  • "action_NAME (and action_*) is also served when run_action is listed": TOOL_FAMILY_DOORS = [['action_', 'run_action']], read after the literal or wildcard match, which is the order card comment 6840247483 asked for ("also").
  • "A skill that binds no tool is offered as before; prompts/get answers a withheld skill as it answers a prompt name no skill derives": an empty or absent binding returns true; a withheld skill is filtered before lookupSkillPrompt, so it reaches the same not-found branch.
  • Reach: registerSkillPrompts has one in-repo caller, the per-request HTTP server in MCPServerRuntime (line 2663 on main), and is exported for hosts; bridgePrompts goes through listSkillPrompts, which passes served = undefined, so no filter. plugin.ts calls bridgePrompts for the long-lived server. The JSDoc says exactly this.
  • The .describe() string compresses the same rule without overstating it, and carries no tracker number.
  • Break attempts that did not break it: a wildcard whose stem is not in the action_ family gets no door (the prose claims none); an entry such as a cloud-only platform tool name resolves at authoring time yet is offered on no native server (the last paragraph says so, and keeps ai-skill-tool-unresolved as a separate statement); the surface and triggerConditions field JSDoc and describe strings, unchanged, still agree with the rewritten class JSDoc.

skills/objectstack-ai/SKILL.md (against the card's Expected section, the spec it teaches, and an author binding a skill for an MCP connection; the card names no eval prompt): holds.

  • The note under the built-in skills table states the rule, the three ways an entry is served, which servers apply it and which does not, in six lines. Each clause matches the code as above.
  • "(the MCP table above)" resolves: the table under "MCP — the open-edition AI path" lists the native tool families, and its run_action row already says the stdio bridge serves no action tools, which agrees with "the plugin's own stdio transport lists every skill".
  • The file's own Skill Example binds query_records, get_record and action_crm_escalate_case: under the new rule it is offered on a connection with the data and action families, so the skill does not teach an example its own note would withhold.
  • instructions row, "serves": right, since tools is now read as well.

packages/spec/liveness/skill.json (implementing: the ledger the liveness gate reads for this schema): agrees. The added evidence packages/mcp/src/skill-prompts.ts#skillBindingServed follows a ;, so it is a local anchor by the file's own stated rule, and the symbol is an export of that file on main. verifiedAt is not re-stamped. Spec property liveness: success.

packages/runtime/src/domains/mcp.ts (implementing: the listSkills seam the JSDoc's HTTP door reads): agrees. "this request's server" is exact for buildMcpBridge, whose bridge feeds the per-request server.

Findings:

  • N1 · nit · PR body (prose face). The body describes the 021f00c head, not this one. Its Acceptance notes list connect-mcp.mdx, packages/mcp/README.md, liveness/skill.json and runtime/src/domains/mcp.ts as "left untouched"; all four are changed at this head. The maintainer summary says three texts and the Verification block says five files and "Local gates at 021f00c". No effect on the tree, but the approving maintainer is told the diff is smaller than it is. Fix on the PR body before the approval is asked for; it does not move the head.
  • N2 · nit · skill.zod.ts class JSDoc. "All three are still validated" follows three bullets, one of which is instructions; the sentence means the three wiring keys (tools, surface, triggerConditions), and the lead-in still says "the two halves". Accepted deviation or follow-up; a fix moves the head.
  • N3 · nit · skill.zod.ts tools JSDoc. "Bound by the cloud runtime, read by MCP (Skills are declared the only third-party extension primitive, but nothing in the open distribution consumes them #3905)" keeps the Skills are declared the only third-party extension primitive, but nothing in the open distribution consumes them #3905 tag on a sentence whose "read" half is mcp: prompts/list projects a skill whose bound tools the connection does not serve, and a host has no declared seam to withhold one #32767. Accepted deviation.
  • N4 · nit · liveness/skill.json. The tools entry keeps evidenceScope: cross-repo with a local anchor beside the cloud ones. That is the file's existing convention (description and instructions do the same), so nothing to change here.
  • Out of the diff, read not reviewed (carrier: none): the module header of packages/mcp/src/skill-prompts.ts on main still says the tools[] / surface half "is consumed by the cloud agent runtime only, and says so in the schema's own JSDoc". After this PR the schema's JSDoc no longer says that of tools. The header's next section already states the read, so it is a stale cross-reference, not a wrong rule; a candidate for the same family if another card touches that file.

No must-fix and no should-fix. Nits alone end the round.

Implemented-by: claude/project-thread-3bu5cn
Reviewed-by: subagent of session_01L9qibzoApSyVPuia3NCrBY (adopting seat epic:#32897#1)

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

epic:#32897#1 · os-tesla · session_01L9qibzoApSyVPuia3NCrBY

维护者速读 · PR #33188 @ 63201e82 · 2026-11-14T01:12Z

席位核对

  • 形态: draft → main。正文 Fixes #32885,合并后应当关卡;正文其余处没有挨着别的 open 卡号的闭合关键词。Clause-②: no、Metadata-protocol: none、Skills-docs: updated here。changeset 32885-skill-tools-binding-prose.md:@objectstack/spec、@objectstack/skills、@objectstack/mcp 都是 patch。没有改 content/docs/releases/。文件面 = 认领 6867331653 加上修订 6868603309。正文已改写为本 head 的版本(经中继 issue_patch,回读一致)。
  • 前提实测: 文字照 PR fix(mcp)!: offer a skill prompt only where the connection serves the tools it binds #32880 的 changeset 和 main 上的 registerSkillPrompts / skillBindingServed 来写,按卡上 6840247483 的要求;契约复审在代码里逐句核过(6868711489 ④)。
  • 门禁 check-runs @ 63201e82: 共 68 个,58 success、10 skipped、0 失败(含 Governed Surface Queue Guard、Check Changeset、Spec property liveness、Test Core、Type Check)。本地在本 head 跑了 115 个派生门禁,全部 exit 0;pnpm lint 0。SKILL.md 从 5813 token 增到 5929,上限 6801。
  • 契约复审: CONTRACT_REVIEW_TIER PASS,评论 6868711489,由席位的另一个 agent 按 brief 模板做,写这个 PR 的卡线程没有参与复核。Scope 是 skill.zod.ts、SKILL.md,加上台账和 runtime 那句注释。nit N1 是 PR 正文还停在旧 head,已经通过改写正文修好(不动 head)。N2–N4 作为接受的偏差:类注释里「All three」的指代、#3905 标签放在哪一句、台账 evidenceScope 沿用原有写法。
  • 接受的偏差: 卡上三处之外,同文件里另有两句同样过时(instructions JSDoc、SKILL.md 中的 reads → serves),加上 agents.mdx 一段,都在认领修订 6868603309 中列出。
  • 范围外去向: packages/mcp/src/skill-prompts.ts 模块头还有一句过时的交叉引用(「says so in the schema's own JSDoc」)。复核判定只是过时的引用,规则本身没写错,记入 Acceptance notes,下张碰这个文件的卡顺手改。
  • 落地条款: Tier H(check-governed-merges --pr 33188:1/9 命中 skills/**);163 行。要等 os-zhuang 授权批准后,席位才过落地前检、翻 ready、挂 auto-merge。本笔同时挂上 pm:awaiting-merge 并请 os-zhuang 审。

Generated by Claude Code

@objectstack-fleet objectstack-fleet Bot added the pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue label Nov 14, 2026
@os-zhuang
os-zhuang marked this pull request as ready for review November 14, 2026 04:03
@os-zhuang
os-zhuang requested a review from hotlong as a code owner November 14, 2026 04:03
@os-zhuang
os-zhuang added this pull request to the merge queue Nov 14, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 14, 2026
@github-actions

Copy link
Copy Markdown
Contributor

⛔ merge queue 构建失败 — 先分诊,再决定要不要重排

队列构建 43557405828 红了。队列跑的是全量套件(PR 侧 CI 只跑 affected 子集),
所以失败的测试可能在本 PR 没碰过的包里 —— 那不是重排能修的。每次盲目重排都会让排在后面的所有 PR 重建一轮。

分类:failure —— 按下面的日志分诊。

失败的 job(日志抽取,best effort):

  • Dogfood Regression Gate (1/3) — 失败步骤: Boot example apps and exercise real user flows

    @objectstack/dogfood:test:  FAIL   isolated  test/bare-name-one-holder-ai-family.dogfood.test.ts > agent, skill and tool names held per namespace, on a booted showcase > [#31985] a package-less tool r
      ↳ 失败原因: @objectstack/dogfood:test: Error: Test timed out in 5000ms.
    

↳ 失败原因 是判读的关键:超时(Test timed out in … / Hook timed out in …)多半是负载/时序,不是本 PR 的回归;
断言(AssertionError: …)才指向真实的行为改变。两者的 FAIL 行长得一模一样,只有这一行能区分。

⚠️ 断言这一侧有一类例外,判据是断言在测什么,不是它是不是 AssertionError。 断言的对象是产品行为(一个值、一个形状、一次拒收)⇒ 照上面读:真实的行为改变,去查,⛔ 不要重排掉;
断言的对象是这次实验自身的有效性前提(跑完的耗时、负载下的先后、任何只在时间预算内才成立的条件)⇒ 它跟超时是同一类,同样对负载敏感,重排一次是合法的判别手段。
识别是机械的:断言的消息或它比较的值本身点名了一段时长、一个时间戳、一个耗时计数。实测过的一对 —— AssertionError: SecurityPlugin.init() ran: expected false to be true 测的是产品行为(真回归);
AssertionError: this run took over a second, so second-precision stamps could have differed too: expected 1006 to be less than 1000 测的是实验前提:它守护的那条不变式当时是绿的,同一个 head 原样重排一次即成功。
穿着 AssertionError 外衣的时间测量,仍然是时间测量。(⛔ 这只改「怎么读一次红」,不改「哪些测试可以重排」——后者由别处管。)

跨 PR 相同签名(24h,按失败测试文件聚合):

  • test/bare-name-one-holder-ai-family.dogfood.test.ts — 24h 窗口内只有本 PR 撞到过,暂不汇总(再有一个不同 PR 撞到就会自动开汇总 issue)。
  • ⚠️ 24h 评论账本没读完(超过 5 页仍未读到窗口尽头),所以上面的「不同 PR 数」是下界,不是全量。

历史信号:

  • 本 PR 过去 24h 无队列失败记录(首次)。
  • 过去 24h 队列共有 6 个失败构建(不含本次)。

分诊清单:

  1. 失败测试在本 PR 改动的包里 → 真回归,修 PR。
  2. 失败测试与本 PR 无关 → 看上面的「跨 PR 相同签名」;已有汇总 issue ⇒ flaky/环境问题实锤,去那张 issue 上谈,修好前重排只会再烧一轮全队列。
  3. 两者都不是 → 可能与同组 PR 语义冲突;等前面的 PR 落地或失败出队后再重排一次即可,不要连续重排。

Generated by Claude Code · merge-queue-triage workflow (#4859)

@os-zhuang
os-zhuang added this pull request to the merge queue Nov 14, 2026
Merged via the queue into main with commit 6c5d31f Nov 14, 2026
77 of 78 checks passed
@os-zhuang
os-zhuang deleted the claude/project-thread-3bu5cn branch November 14, 2026 06:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue protocol:ai size/m tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

3 participants