Repository navigation
Description
repo:objectstack#1 · os-elon-musk · session_016WV4cwPhGV4g9p1BGQaZbP
Filing gate: ① follow-ups of PR #37971 (#37307): contract review 7221784031 nits N3, N4 and N6, L1-a 7221796788 ("file the admitAuthoredSource wording as a card, and use the same wording as the S2 fix"), plus one gap the dev found beside M1 (dev report 7223340311); one card per PR, review-follow-ups exception · Source: topic #37000
Grading: area:ai · Task · p3 (suggested: wording, one sibling field-existence gap, and an upgrade-guide filter; no data path changes) · reach: authors of knowledge_source and ai_context items, and readers of the 19 upgrade guide · evidence: read (the review records and the dev report named above).
Dedupe: is:issue "PR #37971" → #37307 only; is:issue admitAuthoredSource wording → none open; is:issue validate-ai-context injectedColumnDefsFor id → none open.
Reader: area o1-C of seat repo:objectstack#1 claims it after triage's first touch.
维护者速读
- 问题:几处收尾小问题:知识源保存被拒时,提示的原因写错(让作者去开放一个已退役的
search方法);AI 上下文的字段检查把id当成不存在;发布时对带平台前缀但不存在的对象名没有判错;升级指南里知识源相关的条目没有「只在用到知识源时显示」的条件。 - 做什么:按 PR fix(lint)!: a knowledge source is checked for its object, its fields and the search gates that need no caller, also at publish #37971 已定的措辞改提示;
id等注入列按存在处理;补上发布时的判断和升级条目的显示条件。 - 谁受益:写知识源和 AI 上下文的作者,看升级指南的人。
- 需要你做的:无。
What
- N4, the save-door wording.
admitAuthoredSource(packages/services/service-knowledge, the object-api-not-served refusal) says the object'senable.apiMethodslist "does not include search".searchis a retired list value: it is stripped at parse, and search derives fromlistunlessenable.searchableis false. Use the wording PR fix(lint)!: a knowledge source is checked for its object, its fields and the search gates that need no caller, also at publish #37971 settled for its S2 fix: cause, "the API does not serve object 'X' forsearch(enable.apiEnabledis false, itsenable.apiMethodslist does not grantlist, from which search derives, or it grantslistbesideenable.searchable: false)"; fix, "Serve 'X' for search: keepenable.apiEnabledtrue and, where it declaresenable.apiMethods, includelistwithenable.searchablenot false; or index another object". ai_contextandid.packages/lint/src/validate-ai-context.tsresolves field existence throughinjectedColumnDefsFor, which leavesidout by contract, the same gap PR fix(lint)!: a knowledge source is checked for its object, its fields and the search gates that need no caller, also at publish #37971's M1 closed for knowledge sources. Resolve existence throughinjectedColumnsFor, assystem-fields.tsprescribes; pinid.- N3, a prefixed name at the door. The knowledge-source rule does not judge an absent platform-prefixed object name against the whole served collection at publish. Judge it there as an error, as unprefixed names now are; the CLI's warning arm stays.
- N6,
relevantWhen. The knowledge-source upgrade entries underpackages/spec/src/migrations/entries/semantic/19.knowledge-source-*carry norelevantWhen(stack declaresknowledgeSources), so every reader of the 19 guide sees them. Add it across the family.
Acceptance
- A save refused for an object the API does not serve for search names
listandsearchable, neversearch, as the cause and the fix. ai_contextnamingidpassesos validate; pinned.- A
knowledge_sourcenaming an absent platform-prefixed object is refused at publish; pinned. - The knowledge-source upgrade entries are listed only for a stack that declares knowledge sources.
Blocked-by: #37307
Activity
objectstack-fleet commentedon Nov 27, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Triage: lands in area:ai · domain:server · Task · p3 · pm:blocked · size S; rationale: review nits on the knowledge source admission: refusal wording,
ai_contextacceptingid, and prefixed names. Wording and edge cases with no user harm, so the filer's p3 stands. It waits per itsBlocked-by:line. Recorded 2026-11-27T17:12Z.objectstack-fleet commentedon Nov 27, 2026
repo:objectstack#1 · os-elon-musk · session_016WV4cwPhGV4g9p1BGQaZbP
Claim: PM loop round 8 · area o1-C (epic #37000; area concurrency 8 by the maintainer 2026-11-27T11:26Z) · 2026-11-27T17:20Z
Session:
session_016WV4cwPhGV4g9p1BGQaZbPAccount:
os-elon-muskBranch:
claude/area-o1C-38019Worktree:
objectstack-issue-38019Domain:
domain:serverArea: o1-C
Seat:
repo:objectstack#1File surface:
packages/services/service-knowledge/src/knowledge-service.ts(theobject-api-not-servedrefusal text :2632) +knowledge-source-admission.ts(item 1),packages/lint/src/validate-ai-context.ts(item 2, existence throughinjectedColumnsFor),packages/lint/src/validate-knowledge-source.ts(item 3, from PR #37971),packages/spec/src/migrations/entries/semantic/19.knowledge-source-*(item 4,relevantWhen), tests, a changeset.Container & model: S,
mode:subagent, model: default tier (dispatch-gates --tier: "no path-derived mandate"), effort: medium (reason: S; four review nits, each a one-condition or one-sentence change with a pin)Clause-②: no (narrowing)
Metadata-protocol: none
Responsibility: objectstack's own code,
packages/lint/src/validate-knowledge-source.ts| review follow-ups of PR #37971: a wrong cause on a search refusal,idrefused inai_context, an absent prefixed name not judged at publish, the 19 guide listing knowledge-source entries for every stack | authors of knowledge sources andai_contextThread-read: 7224148251
Premise: holds, read on origin/main 8d598aa and on PR #37971's head 8301509 — the
object-api-not-servedcase atknowledge-service.ts:2632;validate-ai-context.tsimportsinjectedColumnDefsFor(:65);validate-knowledge-source.tsexists only on PR #37971's branch.Serial constraints cleared: STACKED on
claude/area-o1C-37307at 8301509 (PR #37971, frozen pending its dogfood battery and the seat's handoff): item 3 edits a file only that branch has. The dev branches from it, opens a DRAFT PR, and merges main once #37971 lands; until then the draft shows #37971's commits too, and its body says so. Probe overlap-check on the other files against origin/main, #38026 and #37963: VERDICT clean exit 0.Pre-claim lane:
packages/services/service-knowledge/**,packages/lint/**⇒domain:server.Pre-claim deps: #37307 (PR #37971) stacked on, not merged — the maintainer asked for the serial chains to be re-read 2026-11-27T17:15Z.
Prior rulings read: card thread 0 rulings (triage 7224148251); PR #37971 records 7221784031, 7224039424 (the source of these nits).
Fold-or-serial: not folded into #37971 (its head is frozen for the battery; L1 ruled these follow-ups).
objectstack-fleet commentedon Nov 27, 2026
repo:objectstack#1 · os-elon-musk · session_016WV4cwPhGV4g9p1BGQaZbP
os-dev-report