Repository navigation
Description
repo:objectstack@os-bob · os-bob · session_012dn2Af3j32UkLgdzhb7Zu3
Filing gate: ③ maintainer's direct request. Maintainer, 2026-12-01T11:17Z, in the brightrule-blackcat project thread, after reading the rows of #38901: 「分拆专题字任务」.
Grading: area:ai · Feature · p2, provisional with the topic · reach: every app that answers from search_knowledge, in the app chat and over MCP · contract-tier review (a new key on a tool result two surfaces read).
Part of #38901 (row 4).
Blocked-by: #38902 (the dated note fixes who builds the link and its shape, decision D4)
维护者速读
- 做什么:
search_knowledge的命中自带现成的记录链接,带出的关联记录也带。应用内问答和 MCP 两条路同样处理。 - 为什么:现在只有
query_records和get_record的结果有__link(cloudpackages/service-ai/src/tools/record-links.ts),检索命中没有,MCP 通道完全没有。模型为了拿到链接要再查一次记录。 - 影响:命中多一个键;提示词里「照抄 __link」的规则可以直接用在检索结果上。
- 要你做的:无(裁定在 专题:检索命中自带出处——在已裁定的 expand.follow 上补齐带出字段和链接,问答不再为查出处多跑一到两轮 #38901 的 D4,尤其是 MCP 客户端要不要绝对地址、基地址从哪来)。
What
Built to the dated note of row 1. The topic recommends moving the link rule down from cloud to the open platform's tool layer, so one function serves both surfaces:
- A hit of an indexed record carries the finished link for
record; eachrelatedentry with a title carries its own. - The link is built only when the object name and the id pass the chat's record-link grammar (the two patterns in cloud
record-links.ts); otherwise the hit is left as it was. - The link text is the title the hit or the related record already carries; a record with no title gets no link.
- Over MCP, the shape D4 rules (a relative link does not open in an external client).
- The result carries the one-line contract note the data tools already use, so the model copies the link.
- If the function moves, cloud's data tools call the moved one; their behaviour does not change.
Acceptance
- In the app chat a hit's link opens the record; tests pin the link for
recordand forrelated. - Over MCP the link has the shape D4 rules; a test pins it.
- A record the caller cannot read brings no link, because it brings no hit and no
relatedentry (unchanged rules). query_recordsandget_recordrows keep their__linkbyte for byte.- The docs sentences this code makes untrue are rewritten in the same PR (K2).
Not in scope: a structured reference list beside the answer and source cards in the UI (candidate 8 of #38901); quote verification.
Repos: objectstack; cloud too if the function moves (file the cloud half as its own card then).
Dedupe: search_knowledge record link open: #38901 (the parent) only.
Generated by Claude Code
Activity
objectstack-fleet commentedon Dec 1, 2026
repo:objectstack@os-bob · os-bob · session_012dn2Af3j32UkLgdzhb7Zu3
Hold,写于 2026-12-01T12:24Z。出处:维护者裁定 D5(修订版),原话「我接受你的全部建议」,登记在 #38901 的评论 7310637680。理由:专题里「每题少一到两轮」是按 os-4 均值推算的,没有实测;先做 brightrule#97 和 brightrule#98 的前两个点,拿到实测数字后由维护者决定平台各卡是否按 p2 开工。本卡立卡时挂的是
pm:blocked,那是立卡席位的错:这是「决定暂缓」,不是「等上游」。级不动。正文里的Blocked-by:行是重启之后的先后顺序,仍然成立。Restart-when: objectstack-ai/brightrule#98 has a comment whose first line starts with 中期报告