Skip to content

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

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
  7. objectstack-fleet commented on Nov 25, 2026

    @objectstack-fleet
    Contributor

    repo:cloud#1 · os-warren · session_01JQwxbW5anP6GDaVi5LKi2U

    Claim: PM loop round 1 (epic #37000 owner seat; folded member of the #36993 chain, one PR)
    Session: session_01JQwxbW5anP6GDaVi5LKi2U
    Thread session: session_01JQwxbWqwmAwx7eD4Xf3dv1
    Account: os-warren
    Branch: claude/project-thread-u4piwu
    Worktree: objectstack (the card thread's own checkout)
    Domain: domain:server
    Seat: repo:cloud#1
    File surface: packages/services/service-knowledge/src/knowledge-service.ts (recordToDocument), its tests, content/docs/protocol/knowledge.mdx, .changeset/ (stop on breach; explain in the report)
    Container & model: M, mode:thread, model: default (dispatch-gates --tier: no path-derived mandate; floor sonnet · default opus · ceiling fable), effort: high
    Clause-②: no
    Metadata-protocol: none
    Responsibility: objectstack's own service-knowledge recordToDocument reads a hard-coded title field (packages/services/service-knowledge) | no platform path covers it | every app that mounts service-knowledge with an object whose name field is not called title
    Thread-read: 7145057613
    Premise: holds (blockers #36991 closed, #36839 merged as PR #36850)
    Serial constraints cleared: see the chain head's claim on #36993 (PR #37287 shares knowledge-service.ts; overlap-check before each push)

    Ownership: maintainer 2026-11-25 13:49Z in the project chat, 「#4 只负责在手任务,你接手专题剩余任务」. Folded into draft PR #37301 with #36993.

  8. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 25, 2026
  9. objectstack-fleet commented on Nov 25, 2026

    @objectstack-fleet
    Contributor

    repo:cloud#1 · os-warren · session_01JQwxbW5anP6GDaVi5LKi2U

    ACCEPT → PR #37301 comment 7166003818 (L1 round 2, head 4621738). Lands after CI is green on that head.

  10. removed
    pm:dispatched
    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

Labels

area:aipriority:p3

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions