Repository navigation
Description
maintainer · os-bob · session_012dn2AecKpLaYkUtNRiqtby
Filing gate: ③ maintainer-directed (topic child). Source: topic #36996, M2. An independent Fable review of rows 5–10 (2026-11-25) found that no card assembles the service. Maintainer 2026-11-25: 「同意你的建议」.
Grading: area:ai · Feature · p2 (topic child; without it an app that declares packs gets no tool) · reach: every open deployment that ships aiContexts · evidence: read.
维护者速读
- 做什么:应用在配置里声明
requires: ['record-context'],开源运行时就自动挂上情境包服务,外部 AI 经 MCP 就能用get_record_context。不声明的部署,什么都不变。 - 为什么:PR feat(ai): ai_context context packs and the get_record_context tool over MCP (ADR-0160 row 5) #37173 里,这个工具只有在宿主手工挂上
RecordContextServicePlugin时才会出现。BrightRule 这种纯元数据应用(制品启动)没有办法挂插件,写了情境包也没人读。 - 为什么用令牌、不按「有情境包就自动挂」:和知识检索的
requires: ['knowledge'](Open runtime: requires: ['knowledge'] mounts the knowledge service, and pgvector on PostgreSQL #37102)保持同一种写法;而且是否对外开放一个读工具,应该由应用显式声明,不该随元数据出现而悄悄打开。 - 需要你做的:无。
What
- A capability token
record-context:- in
packages/spec/src/kernel/platform-capabilities.ts(PLATFORM_CAPABILITY_TOKENS/PLATFORM_CAPABILITY_PROVIDERS); - and in
packages/core/src/capability-providers.ts#CAPABILITY_PROVIDERS, mapped to@objectstack/service-record-context'sRecordContextServicePlugin.
- in
- Readers in the same PR (ADR-0049):
packages/cli/src/commands/serve.tsand@objectstack/verify'sbootStack. - A host that already mounts the plugin by hand keeps its own (the
Serve.providesCapabilityrule); the runtime adds no second one. - Without the token, nothing changes: no tool, no service.
- Docs: where
get_record_contextandaiContextsare documented, add one line on the token.
Acceptance
- A stack with
requires: ['record-context']and one pack: over MCP,tools/listcarriesget_record_context, and a call returns the pack. - A stack without the token: no tool.
- A host that mounts the plugin by hand gets no second mount.
- An artifact boot (
os serveon a compiled app) with the token serves the tool. - Container run per AGENTS.md.
Out of scope
- The hosted kernel and EE. Cloud folds that into its row-9 card, objectstack-ai/cloud#4978.
- Auto-mounting on the presence of
aiContexts: not taken, see 维护者速读. - The knowledge token (Open runtime: requires: ['knowledge'] mounts the knowledge service, and pgvector on PostgreSQL #37102).
Blocked-by: #37140 (the package and plugin land there; PR #37173).
Parent: #36996. Reader: the runtime and capability lane (packages/core, packages/spec/src/kernel, packages/cli).
Dedupe: RecordContextServicePlugin 0 · record-context service mount 95 (none on mounting this service; #37103 is knowledge) · requires record-context 221 (no capability card for it).
Activity
objectstack-fleet commentedon Nov 25, 2026
triage#1 · os-warren · session_01JQwxbZKP5YM48rWMWTS7wE
Triage: first touch 2026-11-25T03:33Z
Featurekept.pm:blockedadded: the body carriesBlocked-by: #37140(PR feat(ai): ai_context context packs and the get_record_context tool over MCP (ADR-0160 row 5) #37173).ai_contextpacks · read · size S.objectstack-fleet commentedon Nov 25, 2026
triage#1 · os-warren · session_01JQwxbZKP5YM48rWMWTS7wE
Triage: unblocked 2026-11-25T03:45Z
pm:blocked→pm:queue. Its blocker PR feat(ai): ai_context context packs and the get_record_context tool over MCP (ADR-0160 row 5) #37173 merged at 2026-11-25T03:39Z, and 记录 AI 问询 5:资料包类型 ai_context、渲染服务与 get_record_context 工具(MCP) #37140 is closed.objectstack-fleet commentedon Nov 25, 2026
triage#1 · os-warren · session_01JQwxbZKP5YM48rWMWTS7wE
2026-11-25T06:41Z
pm:queue→pm:blocked, at seat 3's request (mailbox #36743, 7154907865). Mounting the record-context service now would expose a tool that finds no pack (#37243).Blocked-by: #37243
objectstack-fleet commentedon Nov 25, 2026
triage#1 · os-warren · session_01JQwxbZKP5YM48rWMWTS7wE
Triage: unblocked 2026-11-25T10:34Z
pm:blocked→pm:queue. Its blocker get_record_context finds no context pack a real protocol serves: getMetaItems adds _diagnostics, the strict AiContextSchema parse drops every pack #37243 closed as completed (PR fix(mcp,runtime): get_record_context reads a package's context packs on both MCP doors #37255 merged).