Skip to content

docs(ai): teach the qualified action tool name on the AI pages - #39321

Merged
objectstack-fleet[bot] merged 1 commit into
mainfrom
claude/issue-39289-qualified-action-tool-docs
Dec 3, 2026
Merged

objectstack-fleet[bot] merged 1 commit into
mainfrom
claude/issue-39289-qualified-action-tool-docs

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Requested by Bill · project thread

Fixes #39289
Clause-②: no
Metadata-protocol: none

维护者速读

  • 用户能看到什么变化:写 AI 技能的作者在四篇 AI 文档里看到动作工具的新拼法(对象名加两个下划线再加动作名),示例也改成新拼法;产品行为不变。
  • 为什么做:属于 AI 能力的文档与平台一致;平台早已按对象区分动作工具名,文档仍教旧拼法,作者照抄会一次匹配所有同名动作。
  • 出错会怎样:只是文档文字,最坏是某句说法不准,作者写出的旧拼法仍能解析;可直接撤回本次合并。
  • 要你做什么:无。

What changes

Four hand-written pages under content/docs/ai/ (tools.mdx, agents.mdx, actions-as-tools.mdx, connect-mcp.mdx) now teach the tool name an AI-exposed Action materialises as:

  • each page says once, in one short paragraph where it first shows the tool name, that an object-bound Action's tool is action_OBJECT__ACTION and a top-level Action's is action_ACTION; that a qualified name over 64 characters is shortened, with actionToolName from @objectstack/spec/ai as the way to get the exact spelling; that the older action_ACTION spelling of an object-bound Action still resolves, to every exposed Action of that name; and that action_* still means every exposed Action;
  • every example that names an object-bound Action's tool uses the qualified spelling (action_support_case__escalate_case, action_crm_lead__convert_lead, action_support_case__resolve_case, action_crm_lead__lookup_company / action_crm_lead__enrich_contact);
  • the generic mentions elsewhere use the qualified spelling or "action tools", rather than repeating the paragraph. No new sections.

Every sentence was checked against packages/spec/src/ai/action-tool-name.ts (the two spellings, the 64-character limit and the head-plus-hash shortening, legacyActionToolName resolving to every action of that name) and packages/lint/src/validate-ai-tool-references.ts (both spellings in the resolvable universe, the trailing wildcard) on main at dc4a2cd. actionToolName is exported from the @objectstack/spec/ai entry (packages/spec/src/ai/index.ts re-exports ./action-tool-name; package.json exports ./ai). The MCP door sentences were checked against bindingEntryServed in packages/mcp/src/skill-prompts.ts: any entry starting with action_ is served by run_action, so both spellings are.

Tests

Docs-only. The os:check blocks that changed (tools.mdx) type-check under check:skill-examples (green, below).

Acceptance notes

Verification

Read first: the rule paragraph in content/docs/ai/tools.mdx under the first example, then the same paragraph in agents.mdx.
Two-minute check: grep the four pages for the old generic spelling (action_ followed by name in angle brackets); on this head it hits only the quoted spec description at tools.mdx line 22.

Local gates at 0901922

node scripts/pm/dispatch-gates.mjs --commands derived 46 commands for the four paths; all 46 exited 0 on this head (the lint/spec/client builds were run first for the five gates that read built output). --ran reconciliation: 46 derived, 46 run, 0 NOT-MEASURED, 0 UNRUN. overlap-check.mjs --pr=39304: origin/main and #39304 merge cleanly.


Generated by Claude Code

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-bill · os-bill · session_01Utp6CZyaZyJWdzKPF2U7EQ

L1 ACCEPT — zone ai-1203 of seat repo:objectstack@os-bill, card #39289, head 0901922bbd6d45f89d46e3910795d3ab2e40d841.

席位核对

  • Shape: draft against main, 4 files (content/docs/ai/{tools,agents,actions-as-tools,connect-mcp}.mdx), +66/-26, all inside the claim's surface (7377443383); body carries the attribution line, Fixes #39289, Clause-②: no, Metadata-protocol: none; skip-changeset correct (no package's files[] ships content/docs).
  • Premise measured: every changed sentence read against packages/spec/src/ai/action-tool-name.ts, packages/lint/src/validate-ai-tool-references.ts (:214–:215, :234) and packages/mcp/src/skill-prompts.ts (:412–:428) on main by an isolated L1 reviewer: qualified/top-level spellings, 64-char shortening of the qualified name only, actionToolName exported from @objectstack/spec/ai (src/ai/index.ts:59, package.json:91), legacy spelling resolving to every action of that name, action_* = every exposed action. Every object-bound example qualified (tools.mdx :76 :196, agents.mdx :230 :478–:479, connect-mcp.mdx :640).
  • Gates: check-runs at head — 30 success, 26 skipped, 0 failed. Dev ran 46 derived gate commands, all exit 0; check:skill-examples 344 examples type-check.
  • Accepted deviations: tools.mdx:22 keeps the word-for-word quote of the stack.tools describe (its source is outside this card); the paragraph repeats once per page because the card requires each page to say it.
  • Out of scope: the remaining unqualified statements (skills/objectstack-ai/SKILL.md:47,:60, packages/spec/src/stack.zod.ts:1223, packages/mcp/README.md:297, content/docs/getting-started/common-patterns.mdx:407) → filed AI tool names: the remaining unqualified action_<name> statements outside the four AI pages (skill, spec describe, MCP README, getting-started) #39325. Skills-docs: n/a (Metadata-protocol none).
  • Landing: not governed (content/docs only), 92 lines; handed to the seat for landing.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-bill · os-bill · session_01Utp6CaQsbKBMQtm6Tpsamd

Landing: 2026-12-03T12:44Z · head 0901922b, CI green, zone L1 ACCEPT 7378740610 at this head. Not governed (content/docs/** only, 92 lines). The seat marks it ready and arms auto-merge. Follow-up #39325 carries the unqualified spellings left elsewhere.

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review December 3, 2026 12:45
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Dec 3, 2026
Merged via the queue into main with commit ccc0838 Dec 3, 2026
57 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/issue-39289-qualified-action-tool-docs branch December 3, 2026 13:05
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 size/s skip-changeset PR has no user-facing published change; bypasses the changeset gate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

docs(ai): teach the qualified action tool name action_<object>__<action> on the AI pages

2 participants