Repository navigation
Labels
area:clouddomain:serverDomain lane — seat card indexed by label:pm:seatenhancementNew feature or requestpriority:p1High: required for production / M2
Description
coordinator#1 · hotlong · session_85eb0287cb754f0f9c2bed54cab9abff
立卡门类别:④ 协调节点的子单,承父单 #34571(控制台核心业务操作体验专题,维护者直派)。⛔ 不是认领。
维护者 2026-11-19 原话:「我在使用过程中,如果接入了AI,可以提问吗?比如什么是发票,什么是回款?可以的审批流程是怎样的?」;「AI 的回答是真实的查了系统中的元数据和相关文档,还是编的」;对 objectstack-ai/cloud#4892:「这个标准平台的 mcp 应该先处理吧 4892 等平台处理完再优化」;优先级:「都是 p1」。
现状
- 「在应用文档中查找 / 阅读应用文档」这两个工具名登记在平台(
packages/spec/src/system/constants/platform-tool-names.ts:66,68:read_package_doc、search_package_docs),但实现和使用说明只在 cloud 的应用内助手里(cloudpackages/service-ai-studio/src/skills/package-docs-skill.ts)。 - 平台 MCP 这一侧:2026-11-19 连接到一个环境的 ObjectStack MCP(自报
@objectstack/skills 18.5.0+unreleased.8436f67a2d52)列出的工具里有describe_metadata、list_metadata、get_metadata_schema、get_authoring_rules、query_records等,没有查找或阅读应用文档的工具;服务端说明里也没有「回答应用规则前先查手册」这一类指引。(依据是该连接的工具清单,未逐行核对packages/mcp源码,车道接手时请先确认。) - 结果:通过 MCP 接入的外部 AI(用户自己的 Claude 等)问「什么是回款」「商机审批流程是怎样的」,没有标准途径读到已安装应用的手册;应用内助手能读,是 cloud 自己加的一层。
- 应用内助手同日实测(cloud#4892 有全文):流程类问题读了手册、答案与手册一致,但没读流程定义、没给出处;概念类问题完全没查手册。
要做的
- 平台 MCP 提供应用文档的两个工具(沿用已登记的名字):按关键词在已安装应用的手册里查找;按名称读一篇。遵守调用者的可见范围(看不到的包的文档不返回)。
- 在 MCP 服务端说明或已发布的 skills 里写明回答应用问题的顺序:
- 概念类(「什么是 X」,X 是已安装应用里的对象、字段或手册术语):先查手册;手册没有再用通用解释,并说明手册未涉及。
- 流程与规则类(审批、路由、门槛):读手册,同时用
describe_metadata读实际的流程或规则定义;两者不一致时以实际配置为准并指出。 - 回答末尾写明依据(手册篇名、流程名)。
- 工具返回里带上可打开的文档地址(
/_console/apps/<app>/docs/<book>/<doc>),让调用方能给出可点击的出处。 - 加一组评测或契约测试:上面两句原话,经 MCP 能查到《订单与回款手册》和《商机——阶段、提醒与审批》。
不做的
- 不改 cloud 应用内助手(cloud#4892 等本卡落地后在其上优化,届时改为复用平台这套工具与说明)。
- 不改文档内容。
验收
- 用 MCP 连接一个装了 HotCRM 的环境:工具清单里有查找与阅读应用文档的工具;问「什么是回款」能读到《订单与回款手册》的相应篇目并给出地址。
- 问「商机的审批流程」:既读手册,也读
opportunity_approval的定义。
Reader: MCP / skills 车道(packages/mcp、packages/skills、packages/spec 的平台工具名)。
Dedupe: MCP package docs search tool、mcp search_package_docs、MCP 文档 查找 手册(objectstack,open)→ 见立卡时检索结果,无同题卡。
Sub-issues
Collapse Sub-issuesSub-issues
Loading 2 sub-issues
Metadata
Metadata
Assignees
Labels
area:clouddomain:serverDomain lane — seat card indexed by label:pm:seatenhancementNew feature or requestpriority:p1High: required for production / M2
Activity
objectstack-fleet commentedon Nov 19, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Triage: lands in
domain:server·pm:queue; rationale: area:ai · Feature (platform MCP gains the app-docs search and read tools plus the answer-order rule) · the p1 stands as the maintainer set it in his own words quoted on the card (「都是 p1」).objectstack-fleet commentedon Nov 19, 2026
repo:objectstack#5 · os-bill · session_01Utp6CY9JfbUzkuca2gUyu6
Claim: PM loop round 2 · area ai-1 (the maintainer, verbatim, 2026-11-19 project chat: 「再开一个 ai 区」「暂时都只派 p1 p2 的卡」) · 2026-11-19T14:21Z
Area: ai-1
Session:
session_01Utp6CY9JfbUzkuca2gUyu6Account:
os-billBranch: pending — mode:thread: the card thread pushes only the branch the platform assigns it; the area posts a
Branch:amendment here when the thread opensWorktree: the card thread's own checkout
Domain:
domain:serverSeat:
repo:objectstack#5File surface:
packages/mcp/src/**(two door tools, their tests, the answer-order text where the door's served instructions already carry the ask-data selection rule),packages/spec/src/system/constants/platform-tool-names.ts(+ its test) only if the door's tool-name constant must name the pair, the matchingchatbot.tool.*labels only if the registry demands them,packages/mcp/README.md, root.changeset/. Askills/**edit (served-skill single source) is allowed but makes the PR governed — say so in the report. Stop on any other breach and report.Container & model:
M,mode:thread,model: default,effort: highClause-②: yes — two new tools on the published MCP door widen its public surface; L2 at CONTRACT_REVIEW_TIER owed by surface, build at the default tier
Metadata-protocol: none
Responsibility: n/a — not a defect card
Thread-read: 7005560178
Premise: holds — at
origin/mainfca72df:read_package_doc/search_package_docsare registered only as cloudservice-aitools (packages/spec/src/system/constants/platform-tool-names.ts:66,68);packages/mcp/src/**registers no doc tool (greppackage_doc: 0 hits there); the platform already servesdocitems behind the ADR-0046 §6.7 docs-audience gate (packages/rest/src/meta-item-read-gate.ts~275-283, ~406). Not yet measured (owed by the thread before code): whether a door tool may reuse a name the cloud registry already holds (MCP_DOOR_TOOL_NAMESvsPLATFORM_PROVIDED_TOOL_NAMESdisjointness, bridge collision).Serial constraints cleared: none blocking — overlap-check (probe surface vs open PRs) clean; only release PR #35129 shares a file and merges cleanly. Not in the #34659 tree (parent is #34571), but
packages/mcp/**is that epic's territory: its ruling 6940528935 (server answers "what this environment has"; the client is taught by skills) binds the design; #34689 (slim the door's tool list, p2, unclaimed) is related, not a blocker. Sibling #35345 (this area) is file-disjoint.Pre-claim lane:
domain:server(packages/mcp/**);packages/spec/**touch stays in this lane under area-lease 留道Pre-claim deps: none — cloud#4892 waits on this card, not the reverse
Prior rulings read: mcp,package,docs,search_package_docs,read_package_doc,audience,instructions → 147 hits; ADR-0024 Decision §1, ADR-0063 Decision §2, ADR-0087 D1, ADR-0090 D9, ADR-0103 D2, ADR-0110 D4, ADR-0130 D2, ADR-0131 D2; ADR-0046 §6.7 (docs audience); #34659 ruling 6940528935 (D1–D7 A); #34686 precedent (selection rule in the door's initialize instructions); thread: none; repo: objectstack-ai/objectstack
objectstack-fleet commentedon Nov 19, 2026
repo:objectstack#5 · os-bill · session_01Utp6CY9JfbUzkuca2gUyu6
Claim amendment to comment 7011826298 (area ai-1) · 2026-11-19T14:24Z
Branch:
claude/project-thread-3ozbh4(mode:thread: the platform-assigned branch of the card thread; replaces the claim'spendingline)Thread session:
session_01Utp6CZLCXjj9QDJSWktRrWWorktree: the card thread's own checkout
objectstack-fleet commentedon Nov 19, 2026
repo:objectstack#5 · os-bill · session_01Utp6CY9JfbUzkuca2gUyu6
Claim amendment to comment 7011826298 (area ai-1), on the card thread's step-0 stop (readings: thread report, A1–A4 hold; A4 no server-side doc search exists) · 2026-11-19T14:27Z
File surface (added):
packages/runtime/src/domains/mcp.ts(the HTTP door's bridge,buildMcpBridge: the two tools' bridge members through the existing docs-audience read gate, asmcp-authoring.tsdoes for its reads) and newpackages/runtime/src/domains/mcp-package-docs*.ts(helper + test). Same lane (domain:server); overlap-check of the added paths against open PRs atorigin/main94fb8db: clean, 0 PR heads.Route (area, within the card's own text): the answer-order text names only tools the connection lists. Where a definition reader is listed (
describe_metadata), the process/rule answer reads it and the configuration wins; where none is listed (an API-key ordata:readconnection), the answer comes from the manual and says the configuration was not checked. A definition reader on the data door is NOT added here: that is a widening outside this card, and the door's own metadata read (list_metadata/get_metadata) is already planned under #34659 (M-2,pm:on-hold). The PR lists the gap under## Acceptance notes.Search: substring over title, headings and body of the audience-filtered docs, capped at 10 results with excerpts (no server-side doc search exists today); the cap and the match rule go in the tool description.
The rule text goes in the door's initialize instructions, gated as the #34686 rule is;
skills/**untouched (not Tier H).objectstack-fleet commentedon Nov 19, 2026
repo:objectstack#5 · os-bill · session_01Utp6CY9JfbUzkuca2gUyu6
Claim amendment to comment 7011826298 (area ai-1), on the card thread's gate-step stop (head 6bb81b1;
pnpm check:route-envelopered) · 2026-11-19T15:06ZFile surface (added):
scripts/check-route-envelope.mjs— ONE line inDISPATCHER_DOMAINS,'mcp-package-docs.ts': { handBuilt: 0 },beside the existing'mcp-authoring.ts': { handBuilt: 0 }row (the new helper builds no response). No other row or rule touched; the helper stays its own file, as themcp-authoring.tsprecedent does.2 remaining items
objectstack-fleet commentedon Nov 19, 2026
repo:objectstack#5 · os-bill · session_01Utp6CZLCXjj9QDJSWktRrW
os-dev-report delta: fix round (L2 7014988834), PR #35564
3bbf1a9817cfeb7b09d0a60b34eb78fbcf58747a(one push on top of1e43fdb1, no merge of main; overlap-check against origin/main: merges cleanly).search_package_docsdescription, theregisterPackageDocToolsjsdoc, the helper header and the changeset.mcp-authoring.ts. Pin:mcp-package-docs.test.ts"on an OAuth grant the caller is the agent: the page is neither found nor read though the delegator holds the set". Ablation: handing the gateonBehalfOf ?? ecturns that case red (1 failed / 11 passed); file restored.#line followed by text is not a heading.Fixes objectstack-ai/objectstack#35442→Part of objectstack-ai/objectstack#35442; ranking, OAuth and url wording brought to the head; read-back identical (10,264 bytes).mcp-package-docs.test.ts12/12; mcp pair 65/65;tsc --noEmitmcp and runtime pass; the 26 gates derived for the changed files all exit 0 (record: card folderfix-round-gates.txt).3bbf1a98: 59 success, 13 skipped, 0 failed; the one cancelled run is the PR-body guards run superseded by the body edit, whose rerun passed.Report taken 2026-11-19T17:17Z.
objectstack-fleet commentedon Nov 19, 2026
repo:objectstack#5 · os-bill · session_01Utp6CY9JfbUzkuca2gUyu6
Release: area ai-1's claim 7011826298 · 2026-11-19T18:06Z
Provenance: seat 5's instruction, verbatim: "Release #35442 now. Post a signed Release comment summarizing what landed in #35564 and what remains (#35586, the live acceptance, #35584), move it pm:dispatched → pm:blocked with Blocked-by: objectstack-ai/cloud#4905, and drop the os-bill assignee." · said in seat 5's project thread, 2026-11-19T18:05Z · relayed to area ai-1 (the maintainer handed the ai area to a new seat, 2026-11-19T15:25Z).
Blocked-by: objectstack-ai/cloud#4905
Landed in PR #35564 (merged 2026-11-19T18:03Z, 53c9575,
Part of objectstack-ai/objectstack#35442):search_package_docsandread_package_doc, served on the HTTP door through the existing docs-audience read gate (no second visibility rule). Search: substring over title, headings and body of the audience-filtered pages, ranked by terms matched, then place, then title, capped at 10 with excerpts. Results carry the Console address where the page has one.initializetext where both tools register. It names only a definition reader the connection lists, and otherwise says the configuration was not checked.Remains before this card closes:
initializetext also carry the answer order (card item 2 on hosted environments). Seat 6 has been told.Next owner: the ai seat (seat 4) after objectstack-ai/cloud#4905 lands, per seat 5.
fix(runtime): read a delegated MCP token's docs audience against the …
objectstack-fleet commentedon Nov 24, 2026
triage#1 · os-warren · session_01JQwxbZKP5YM48rWMWTS7wE
Re-route:
area:ai→area:cloud. The grade and pm state are unchanged.Rule: the maintainer said at 2026-11-24T03:50Z 「等 cloud 的任务,应该转到 area:cloud」, naming #35442 and #35445 as examples. An objectstack card whose remaining work waits on a cloud card goes to
area:cloud. This card waits on objectstack-ai/cloud#4905 (the hosted half and acceptance).objectstack-fleet commentedon Nov 24, 2026
repo:cloud#1 · os-warren · session_01JQwxbX11yNi4DyGhuzqBpV
Unblocked → awaiting the maintainer's live acceptance. The blocker objectstack-ai/cloud#4905 landed 2026-11-20 (PR #4917,
f95ca0762) and is in production since 2026-11-24 01:35Z (cloud6618e65a, runs 45302163893 / 45304779998). The only item left is the live acceptance with both quoted questions on a hosted environment with HotCRM installed; this seat cannot reach hosted domains, so it is filed as maintainer card #36843 (assigned to Warren). On a pass the seat closes this card; on a fail it reopens cloud#4905. The p3 follow-up #35584 does not block the close. Routing: re-routed to area:cloud by triage#1 2026-11-24 03:53Z; dedupe confirmed by the project coordinator 03:59Z.pm:blocked → pm:awaiting-maintainer.
Blocked-by: #36843
objectstack-fleet commentedon Nov 24, 2026
repo:cloud#1 · os-warren · session_01JQwxbX11yNi4DyGhuzqBpV
Done. Live acceptance passed on objectstack#36843 (comment 7122547546): an external AI over MCP finds and reads the installed app's manual, cites page addresses, and for process questions also reads the flow definition. Both halves are in production (objectstack PR #35564, cloud PR #4917, cloud
6618e65a). Follow-ups: #35584 (p3), #36854, #36856. Closing as completed. Recorded 2026-11-24T05:05Z.