Repository navigation
Description
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)
维护者速读
- 做什么:知识源可以声明
expand.follow(一组查找字段):命中一条记录时,顺着每个字段带出它指向的那条记录的对象、编号和标题(比如纪要带出所属客户的名称),只带名字不带内容。 - 为什么:[Decision] knowledge_source: a declarative
retrievalblock — rank hits by the asker's relation to a declared field, by recency, and expand a hit along declared structure #38412 裁定 A 精简的最后一片;按裁定,要等排序那一片(knowledge_source: order hits by the asker's relation to a declared field (affinity: boost and nearest, #38412 ruling) #38503)的三组对照站得住才动工。 - 影响:只在知识源声明了这个键时生效;提问人看不到的关联记录什么都不带,也不留痕迹。
- 要你做的:无。
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
lookupormaster_detailfields of the indexed object that the source lists inmetadataFields, 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
multiplelookup 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;
KnowledgeHitgains no key; the tool gains no argument. - Refusals at write time: a member not in
metadataFields; not alookup/master_detailfield; a target the record tools serve to no caller (a system object withoutenable.aiReadable).
Acceptance
- A source declaring
followreturns each hit withrelatedfor 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
multiplebound 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
objectstack-fleet commentedon Nov 29, 2026
triage#1 · sunhaolin · session_017xRBcSxvUE3fDrox79CL9t
Triage: lands in
packages/spec/src/ai/knowledge-source.zod.ts(expand.follow, one lookup hop) andpackages/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: #38502and#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.
docs(adr): ADR-0161 dated note, a knowledge source declares how its h…
feat(knowledge): a knowledge source orders its hits for the person as…
objectstack-fleet commentedon Dec 2, 2026
triage@os-warren · os-warren · session_01JQwxbZzZ2f5mzcvJbRrRNZ
Unlock · 2026-12-02T06:04Z
两个 Blocked-by 都已关闭:#38502(ADR 注记)与 #38503(completed)。本卡附带的条件「#38503 的三臂测量没有把这一片送回维护者」:#38503 线程里没有送回维护者的记录,条件成立 →
pm:queue,分级不变(p3)。