Repository navigation
Description
maintainer · os-bob · session_012dn2AecKpLaYkUtNRiqtby
Filing gate: ③ maintainer-directed (topic parent). Source: maintainer. Key words (maintainer, 2026-11-24, this session): 「先立专题 ① 记录范围 AI 问询 ;⑤ 应用技能进入应用内 AI ,M0 那几项知识服务缺陷 也立专题,目前开发的策略是按专题派」「需要拍板的事项 都同意」「这几个专题任务用fable 审核之后立卡」. Reviewed by an independent Fable pass before filing.
Batch-of: 4 epics filed together on 2026-11-24 (this one, #36990, 「知识检索平台化」, cloud 「应用技能进入应用内 AI」).
维护者速读
- 做什么:用户在一条记录上(一份制度、一个客户)点「问 AI」,对话固定在这条记录上;平台按应用作者的配置,把这条记录的资料(字段、关联记录目录、正文)以提问人的权限读出来交给模型,第一轮就能答;外部 AI 通过 MCP 拿到同一份资料。
- 谁受益:任何元数据应用。第一个用户是制度问询应用(BrightRule),客户管理里「问这个客户」是同一机制换配置。
- 开源与企业版:机制开源(MCP 也要用);审计、正则脱敏、AI 身份收窄留企业版(决定记录在 cloud 子卡 1)。
- 不做:字段级「不许发给 AI」的声明、向量检索,各自另立专题。
- 需要你做的:合并两份 ADR(子卡 1 在 cloud,子卡 2 在本仓)。
Children
| Milestone | Child | Blocked-by | Lane |
|---|---|---|---|
| M1 | 1. objectstack-ai/cloud card (filed below) — ADR: the record context mechanism is open; governance over it is Enterprise | none | cloud |
| M1 | 2. (filed below) ADR: record context pack, its tool, conversation focus, the ask_ai action type, the skill context key, the citation shape |
1 | spec |
| M1 | 3. (filed below) the assistant cannot be opened while a record drawer is open (area:cloud) | none | ui |
| M1 | 4. (filed below) conversation focus: a pinned record in the chat request, shown as a chip (area:cloud) | none | ui + spec |
| M2 | 5. context pack: ai_context type + render service + get_record_context over MCP + one data wrapper — type and its reader in one PR (row; filed when child 2 merges) |
2 | spec + server |
| M2 | 6. action type ask_ai, spec and console executor in one PR (row) |
2, 4 | spec + ui |
| M2 | 7. Studio form and authoring surfaces for ai_context, area:build (row) |
5 | ui |
| M2 | 8. skill key context; MCP skill prompts take a record argument (row) |
5 | server |
| M2 | 9. cloud: the in-app chat persists the focus and pre-reads the pack as a tool call on the first turn (row) | 4, 5, 8 | cloud |
| M3 | 10. answer citations that open the record at the cited place (row; split after child 2 merges) | 2 | — |
Rows are filed as cards when their milestone starts (rolling split); their full draft bodies are kept with the maintainer session.
Rulings that bound every child
- A context pack is its own governed metadata type that names a root object. Objects carry no AI recipe; the object-level
aikey stays refused on business objects (packages/spec/src/data/ai-read-exposure.ts). - Read as the asking user: field- and row-level rules hold. A field hidden from the caller reads "not visible to you"; a related row the caller cannot read is absent, with no dangling id.
- One tool definition, declared once in spec and served by every transport (the ADR-0149 D2 pattern). The pack reaches a model as a tool result, never as system-prompt text.
- A key lands with its first reader in the same PR (ADR-0049).
- Focus is per conversation, one record in phase 1, client-reported and advisory: never an access decision.
- Field egress is not a dependency of this epic.
Done when
On a record page with an ask_ai action, in an edition with the in-app assistant, the first answer needs no tool call beyond the context read; the focus survives navigation; the same context is served by get_record_context over MCP on the open edition; the open edition shows no AI button.
Reader: triage routes each child by content; children 3, 4, 6 are area:cloud (they serve only editions with the in-app assistant).
Dedupe (objectstack, is:issue): get_record_context 0 · ai_context 0 · "ask_ai" 0 · "context pack" 8 (closed, unrelated) · conversation focus record chat 13 (none on this mechanism) · is:open ChatDock 2 (#35445: its rest waits on cloud#4894; the page chip already sits in the composer) · is:open AiChatPage 5 (#36969 in flight on the same file) · is:open metadata type admission ADR-0088 3 (#36868: precedent, no overlap).
Related, not children: #35445 (assistant panel, page chip), #36969 (same files), #34659 (its sourceLine covers dataset answers, not record citations), #36650 (MCP knowledge tool), #32749 (reading uploaded files in chat).
Activity
get_record_context, conversation focus,ask_ai, skillcontext, citation shape #36997os-bob commentedon Nov 24, 2026
maintainer · os-bob · session_012dn2AecKpLaYkUtNRiqtby
Children filed: 1 → objectstack-ai/cloud#4960 · 2 → #36997 · 3 → #36998 · 4 → #36999. Rows 5–10 are filed when child 2 merges.
Generated by Claude Code
objectstack-fleet commentedon Nov 24, 2026
repo:cloud#1 · os-warren · session_01JQwxbZSA7o5vcLjQjM1myV
Rows 5–10 filed (2026-11-24T22:38Z). ADR-0160 (child 2) merged in #37115, and each row follows its "Implementation split":
ai_context, render service,get_record_contextover MCPpm:queueask_aipm:blockedai_contextpm:blockedcontext; MCP prompt record argumentpm:blockedpm:blockedpm:blockedRows 5–8 and 10 are sub-issues here. The relay writes no cross-repo sub-issue link, so cloud#4978 points here with its
Parent:line.objectstack-fleet commentedon Nov 25, 2026
triage#1 · os-warren · session_01JQwxbZKP5YM48rWMWTS7wE
Routing change 2026-11-25T02:45Z. The maintainer, relayed by the project coordinator: 「36996 记录范围问询有哪些和cloud相关的需要你处理,其他的都可以交给3号座位」
pm:blocked, and triage sends each to seat 3 when it unlocks.pm:queuenow: 37140 跟进:get_record_context 在运行时 HTTP 通道上用真执行器测一遍(含拒绝) #37175, 37140 跟进:资料包(ai_context)的作者错误在保存时报出 #37176, 37140 跟进:技能文档教作者写资料包(ai_context) #37177, 37140 跟进:资料包正文目录设条数上限 #37178 and 37140 跟进:资料包(ai_context)按包区分同名,补进 ADR-0150 的分桶表 #37180. This replaces the "→ repo:objectstack#1" route lines in their first-touch audits.requires: ['record-context']mounts the record-context service, soget_record_contextexists without hand wiring #37189get_record_contextjoinsPLATFORM_TOOLS_BY_PACKAGEand gets itschatbot.toollabel in every locale #37190os-bob commentedon Nov 25, 2026
maintainer · os-bob · session_012dn2AecKpLaYkUtNRiqtby
M2 review record (2026-11-25). The maintainer asked for an independent Fable analysis of ADR-0160 points 1, 2 and 10, and a Fable review of the rows 5–10 cards. To the outcome the maintainer said: 「同意你的建议」.
requires: ['record-context']mounts the record-context service, soget_record_contextexists without hand wiring #37189 (default assembly,requires: ['record-context']);get_record_contextjoinsPLATFORM_TOOLS_BY_PACKAGEand gets itschatbot.toollabel in every locale #37190 (row 9's objectstack half);related, a protocol addition that needs its own ADR amendment.Seat notice: #6026.
Generated by Claude Code
objectstack-fleet commentedon Nov 25, 2026
repo:cloud#2 · os-bob · session_012dn2AecKpLaYkUtNRiqtby
Maintainer 2026-11-25, verbatim: 「related 的筛选和排序 同意」.
relatedentries gainwhere(child's own fields, a small operator set),orderByandlimit; a filter grants nothing; a hidden filter/order field drops the section with the not-visible statement; the read set is unchanged. docs(adr): ADR-0160 amended — a related child this caller is not served is left out; pack selection conditions; carried-text bound #37196 was already in the merge queue when this came in, so the decision rides a stacked follow-up: ADR-0160 amendment: related lists gain where / orderBy / limit (row 11 contract) #37202 (governed; merge after docs(adr): ADR-0160 amended — a related child this caller is not served is left out; pack selection conditions; carried-text bound #37196).where: { is_current: { $eq: true } }andorderBy sort_no.