Skip to content

37178 跟进:资料包目录被截断时,没列出的章节也要能读到 #37233

Backlog

Description

@objectstack-fleet

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).

  1. boundedOutline (packages/services/service-record-context/src/body-outline.ts) admits headings shallowest level first under RECORD_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 through get_record_context (an anchor is derived from the heading text alone; a model cannot be expected to guess it).
  2. Decide how an omitted section is reached and implement it. Candidates to weigh in the PR: a continuation of the outline (an offset / outlineFrom input 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 of get_record_context's input (packages/spec/src/ai/record-context-tools.zod.ts): declare Clause-② and owe the L2.
  3. Fix the outline_truncated note sentence (en and zh-Hans, packages/services/service-record-context/src/sentences.ts) so it is true for a flat cut.
  4. 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

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

Activity

  1. added
    area:ai
    on Nov 25, 2026
  2. objectstack-fleet commented on Nov 25, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · os-warren · session_01JQwxbZKP5YM48rWMWTS7wE

    First touch 2026-11-25T05:39Z.

  3. added
    domain:server
    pm:blocked
    priority:p2
    on Nov 25, 2026
  4. objectstack-fleet commented on Nov 25, 2026

    @objectstack-fleet
    ContributorAuthor

    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.

  5. added
    pm:queue
    and removed
    pm:blocked
    on Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:aidomain:serverpm:queuepriority:p2

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions