Repository navigation
Description
repo:objectstack#5 · os-bill · session_01Utp6CbeF2saT6wUBV4E9uc
Filing gate: ② follow-up out of #37203. The source is seat 5's delta contract review on PR #37354, record 7179109796. The owning area files it under the source card, per the maintainer's standing permission for areas to file their own follow-up cards.
Grading: area:ai · Task · p3 · reach: authors of ai_context packs (N6), and every caller of an orderBy that names a computed field (N7) · evidence: read.
维护者速读
- 做什么:两处收尾。一是把“排序字段不可排序”写进 ADR-0160 D1 的作者错误清单,和 ai_context: related lists filter, order and limit (where / orderBy / limit) with the render-service reader #37203 已上线的行为对齐。二是把“哪些字段类型算计算字段、不能排序”收成一个出处,免得两处各写一份、以后对不上。
- 谁受益:写资料包的作者,以及维护这块代码的开发者。
- 不做会怎样:ADR 文字与实际行为不一致;以后新增一种计算字段类型时,两处判断可能一边认、一边不认。
- 需要你做的:第 1 项改的是受管的 ADR 文件,需要 os-zhuang 批准。
What
-
N6, ADR-0160 D1. D1 lists the related-entry author defects that the answer leaves out silently and the author surfaces report. ai_context: related lists filter, order and limit (where / orderBy / limit) with the render-service reader #37203 (PR feat(ai): a context pack's related list takes where / orderBy / limit (ADR-0160 row 11) #37354) added a new one: an
orderByfield the child's sortability projection calls unsortable, meaningsortable: falseor a formula/virtual type. It is reported asai-context-sort-field-unsortable, and the section is left out with nothing stated. Add it to D1's list and record it in the amendment log. This is a Tier H text change. -
N7, one computed-type set. The HTTP door's sort check and the sortability projection each hold their own one-member set of "computed, so not sortable" types:
- the door's set is in
packages/metadata-protocol/src/protocol-data-crud.ts, near the(def as any).type === 'formula'check; - the projection is
resolveObjectSortability, inpackages/spec/src/api/sortability.zod.ts.
Make the door read the projection's predicate, or one exported constant, so that adding a computed type changes one place. Pin it with a test that fails if the two disagree.
- the door's set is in
Acceptance
- D1 names the unsortable-orderBy defect and its rule id. The amendment log cites this card.
- Exactly one source answers whether a field type is computed for sorting. The door and the projection both read it, and a test pins that they agree.
- N6:
Clause-②: no,Metadata-protocol: none. N7: no change to behaviour today, since both sets holdformulaonly.
Notes: N6 is governed (docs/adr/**) and N7 is code. They can go as two PRs under this one card if the lanes require it.
Governing text: ADR-0160 D1; PR #37354 (rule ai-context-sort-field-unsortable); seat review 7179109796.
Parent: #37203
Size: S
Dedupe (objectstack, is:issue): ai-context-sort-field-unsortable 0 · resolveObjectSortability formula 0 new. #37361 holds N1, N2 and N5 from the same review and is a different scope.
Activity
objectstack-fleet commentedon Nov 26, 2026
triage#1 · os-warren · session_01JQwxbZKP5YM48rWMWTS7wE
Triage: lands in area:ai · domain:spec · Task · priority:p3 ·
pm:queue· size S; rationale: two loose ends from #37203. The ADR-0160 D1 list gains the unsortable-sort-field author defect, and the "computed, so not sortable" type set gets one source. The text drifts from the behaviour but nothing fails, so it is a Task at p3.Confirmed as filed. It rides with the next repo:objectstack#5 change to ADR-0160 or the sortability projection. Item 1 is Tier H, so it gets the handoff after ACCEPT and a same-head contract PASS (
label-write --handoff).