Repository navigation
Backlog
Labels
area:aiAI-native — agent / tool / skill metadata, and the MCP surface an agent drivesdomain:serverDomain lane — seat card indexed by label:pm:seatpm:queueReady for the PM dispatch looppriority:p2Medium: important, M3
Description
repo:objectstack#3 · os-support-ai · session_01WGufzi4PechTRCTBrfxV8W
Filing gate: ③ maintainer-directed (topic #36996 handed to seat 3). Source: nit N2 of the L1 ACCEPT on PR #37222 (#37178), comment 7153812992, accepted for a follow-up card.
Grading: area:ai · Task · p2 (topic child; before row 9 serves the tool in-app, cloud#4978) · evidence: read.
Blocked-by: #37222
维护者速读
- 背景:37140 跟进:资料包正文目录设条数上限 #37178 给资料包正文目录设了 80 条上限。标题层级不同时,没列出的小标题落在某个已列章节下面,读那个章节就能看到;但如果所有标题都在同一层(比如 300 个并列的二级标题),超出的章节没有任何锚点露出来,AI 就没有办法读到它们。
- 另外,截断提示里那句「已列章节的正文包含它下面的标题」在这种情况下会误导。
- 要做的:定一个让 AI 能拿到被截掉章节的办法(例如目录分页:带一个偏移再取下一段目录),并改正那句提示。
- 要你做的:无。
What
Measured on PR #37222's head 2831c87e (on main once it merges).
boundedOutline(packages/services/service-record-context/src/body-outline.ts) admits headings shallowest level first underRECORD_CONTEXT_OUTLINE_MAX_ENTRIES(80) and a character bound. In a flat cut every omitted heading sits under no listed section, so its anchor is never issued and its section cannot be read throughget_record_context(an anchor is derived from the heading text alone; a model cannot be expected to guess it).- Decide how an omitted section is reached and implement it. Candidates to weigh in the PR: a continuation of the outline (an offset /
outlineFrominput on the tool, returning the next page of headings with the same caps), or listing the omitted headings' anchors in a compact form. Any new tool input is a published widening ofget_record_context's input (packages/spec/src/ai/record-context-tools.zod.ts): declareClause-②and owe the L2. - Fix the
outline_truncatednote sentence (en and zh-Hans,packages/services/service-record-context/src/sentences.ts) so it is true for a flat cut. - Fold the accepted prose nits of the same review where they touch the same lines: N4 (the changeset's "only heading" wording) needs no change once merged; N3 (one very long first-admitted heading drops the whole outline to truncated text) may be revisited if the paging design makes it cheap, else stated as is.
Acceptance
- A body of 300 headings at one level: every section is reachable through the tool by anchors it issued, each answer within the existing bounds.
- The note sentence is true for a nested cut and for a flat cut; both pinned by test.
Out of scope
- ADR-0160's D3 naming the outline cap (N5): carried by the ADR-0160 amendment of ADR-0160 amendment: related lists gain where / orderBy / limit (row 11 contract) #37202. If this card adds a tool input, the ADR text for it is that card's or a later amendment's, stated in the PR.
Parent: #36996. Related: #37178, #37222, #37202.
Dedupe words: outline_truncated · RECORD_CONTEXT_OUTLINE_MAX_ENTRIES · get_record_context outline offset · context pack outline omitted section.
Generated by Claude Code
Metadata
Metadata
Assignees
Labels
area:aiAI-native — agent / tool / skill metadata, and the MCP surface an agent drivesdomain:serverDomain lane — seat card indexed by label:pm:seatpm:queueReady for the PM dispatch looppriority:p2Medium: important, M3
Activity
objectstack-fleet commentedon Nov 25, 2026
triage#1 · os-warren · session_01JQwxbZKP5YM48rWMWTS7wE
First touch 2026-11-25T05:39Z.
get_record_contextinput (a published widening), which is new capability. It is pre-authorized as a topic 专题:记录范围 AI 问询(在一条记录上问 AI:对话钉在这条记录上、平台按配置交给模型这条记录的资料、外部 AI 经 MCP 拿到同一份) #36996 child, so no ruling is needed.pm:blockedon PR feat(service-record-context): cap the body outline's entries and state the cut #37222 (37140 跟进:资料包正文目录设条数上限 #37178). It goes to seat 3 zone ai-A on merge, as a non-cloud row of 专题:记录范围 AI 问询(在一条记录上问 AI:对话钉在这条记录上、平台按配置交给模型这条记录的资料、外部 AI 经 MCP 拿到同一份) #36996.objectstack-fleet commentedon Nov 25, 2026
triage#1 · os-warren · session_01JQwxbZKP5YM48rWMWTS7wE
Unlocked 2026-11-25T06:37Z. PR #37222 (#37178) merged.
pm:blocked→pm:queue. Goes to seat 3 zone ai-A, as a non-cloud row of #36996.