Skip to content

knowledge_source: a hit brings one declared lookup hop (expand.follow, #38412 ruling) #38505

Backlog

Description

@objectstack-fleet

repo:objectstack#5 · os-project-manager · session_01FEkQ5mzSTSPADAvwapnhxr

Filing gate: ① ruled. Ruling-ref: 7251603512 on #38412 (maintainer 「A 精简:排序加带出」, option A-lean; analysis 7251063339). Built to the ADR-0161 dated note of 2026-11-29 (PR #38511, merged; card #38502). Body rewritten by the seat after the note landed (the first body said "declared fields"; the note fixes the hop's three).
Grading: area:ai · Feature · p3, dispatched in the topic's order · reach: every app with a knowledge source · contract-tier review (a new authorable key, built to the note).
Part of #38346.
Blocked-by: #38503 (its three-arm measurement must not have sent this slice back to the maintainer)

维护者速读

What

Build source.expand.follow exactly as the note fixes it (bullets "◆ expand.follow", "◆ How an expansion rides", "Refused when it is written"):

  • A list of lookup or master_detail fields of the indexed object that the source lists in metadataFields, one hop each.
  • Each hop brings related { field, object, id, title? }: the title is that object's display field, as a hit's title is (K5). The id is read from the hit's record as it reads now; the related record is read as the caller, under every gate a read through the record tools passes. Nothing is stored in an index.
  • A multiple lookup brings each record it names up to a bound this slice sets and states on the key.
  • Rides beside the hits on the report the tool already reads; KnowledgeHit gains no key; the tool gains no argument.
  • Refusals at write time: a member not in metadataFields; not a lookup / master_detail field; a target the record tools serve to no caller (a system object without enable.aiReadable).

Acceptance

  • A source declaring follow returns each hit with related for each declared field; a source not declaring it answers as before.
  • A related record the caller may not read, one that no longer exists, and an empty lookup all bring nothing, with no marker and no count; tests pin the three as indistinguishable.
  • The multiple bound is pinned.
  • The docs sentences this code makes untrue are rewritten in the same PR (K2).

Not in scope: a list of fields to bring, a second hop, a user field as a hop (each returns by a dated note with a consumer); expand.window (#38504); affinity (#38503).

Dedupe: expand follow lookup hop knowledge_source 0 open.

Activity

  1. added
    area:ai
    domain:server
    on Nov 29, 2026
  2. objectstack-fleet commented on Nov 29, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · sunhaolin · session_017xRBcSxvUE3fDrox79CL9t

    Triage: lands in packages/spec/src/ai/knowledge-source.zod.ts (expand.follow, one lookup hop) and packages/services/service-knowledge (read the followed record as the caller and attach it to the hit), with pins · area:ai · domain:server (+ domain:spec) · Feature · p3 · pm:blocked (Blocked-by: #38502 and #38503, in the body) · size M. Rationale: a slice the maintainer's #38412 ruling names (record 7251603512). It waits until #38503's three-arm measurement passes, so it is pre-authorised execution with ordered blockers. The card carried no pm state, a half state this touch resolves. If #38503's result goes back to the maintainer, this card follows that ruling.

    Recorded 2026-11-29T06:55Z.

  3. added
    pm:blocked
    on Nov 29, 2026
  4. objectstack-fleet commented on Dec 2, 2026

    @objectstack-fleet
    ContributorAuthor

    triage@os-warren · os-warren · session_01JQwxbZzZ2f5mzcvJbRrRNZ

    Unlock · 2026-12-02T06:04Z

    两个 Blocked-by 都已关闭:#38502(ADR 注记)与 #38503(completed)。本卡附带的条件「#38503 的三臂测量没有把这一片送回维护者」:#38503 线程里没有送回维护者的记录,条件成立 → pm:queue,分级不变(p3)。

  5. added
    pm:queue
    and removed
    pm:blocked
    on Dec 2, 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:p3

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions