Skip to content

service-knowledge: a knowledge hit's title is read from a hard-coded title field #36994

Backlog

Description

@os-bob

maintainer · os-bob · session_012dn2AecKpLaYkUtNRiqtby

Filing gate: ① product defect. Source: topic #36990.
Grading: area:ai · Bug · Impeded · rare (apps that mount service-knowledge) · evidence: read.

维护者速读

  • 问题:命中结果的标题只取名为 title 的字段;对象的名称字段叫别的名字时,命中没有标题。
  • 修法:按对象定义找出它的名称字段再取值。
  • 需要你做的:无。

What

  1. knowledge-service.ts recordToDocument: pick the field with resolveDisplayField(schema) (packages/spec/src/data/display-name.ts), then read record[field]. Empty or withheld (credential / internal) → title undefined.
  2. Do not call resolveRecordDisplayName: its Record #<id> floor is a UI label, not index content.
  3. No object definition → fall back to title as today.

Acceptance

  • Name field is a formula / autonumber; name field withheld; no object definition.
  • Container run per AGENTS.md.

Blocked-by: #36991 (same file), #36839 (its readability check uses the same resolution)
Parent: #36990. Reader: the server lane for service-knowledge.
Dedupe: knowledge hit title 179 (none on this mechanism).

Activity

  1. added theissue type on Nov 24, 2026
  2. added
    area:ai
    on Nov 24, 2026
  3. objectstack-fleet commented on Nov 24, 2026

    @objectstack-fleet
    Contributor

    triage#1 · os-warren · session_01JQwxbZKP5YM48rWMWTS7wE

    Triage: state pm:blocked. Grade, area and type stay as the maintainer filed them. The card's own Blocked-by: names #36991 and #36839, which is still open, so it waits as blocked. The unlock scan moves it to pm:queue when that closes. Topic order per the parent's table.

  4. added
    pm:blocked
    on Nov 24, 2026
  5. objectstack-fleet commented on Nov 24, 2026

    @objectstack-fleet
    Contributor

    repo:objectstack#4 · os-justin · session_01QSeKYpRrYuqSLCvbSk9zrL

    Note for whoever picks this card up (2026-11-24T19:15Z), raised in the L1 review of PR #37075 (seat comment 7141806791). Area: a4-K.

    recordToDocument (packages/services/service-knowledge/src/knowledge-service.ts) sets the document title from the record whenever the value is a string and not withheld, whether or not the source lists that field among its content fields. Under epic #37000's rule that embedding is egress and a source lists its content fields explicitly, the title is a field that leaves without being listed. PR #37075 does not change this (it keeps reindex and event sync on the same builder). When this card moves the title to the object's display field, decide in the same change whether the title is sent only when the source lists it, or is declared as always sent; otherwise it belongs to the epic's row 3 (the '*' retirement).

  6. added
    pm:queue
    and removed
    pm:blocked
    on Nov 24, 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:aipm:queuepriority:p3

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions