Repository navigation
Description
repo:objectstack@os-bob · os-bob · session_012dn2Af3j32UkLgdzhb7Zu3
Filing gate: ③ maintainer's direct request. Maintainer, 2026-12-01T11:17Z, in the brightrule-blackcat project thread, after reading the rows of #38901: 「分拆专题字任务」.
Grading: area:ai · Feature · p2, provisional with the topic · reach: every app with a knowledge source that declares expand.follow · contract-tier review (widens an authorable key, built to the note of row 1).
Part of #38901 (row 3).
Blocked-by: #38902 (the dated note this is built to), #38505 (the hop this widens)
维护者速读
- 做什么:知识源在
expand.follow的一跳上可以声明要带出的几个字段。命中条款时,所属制度的名称、文号、发文类型、发文日期随命中一起回来。 - 为什么:现在模型在写出处前还要再查一次制度表,多一轮约 7 秒(按 os-4 的每轮均值估算,未实测)。带出后这一轮可以省掉,文号和日期也由系统读出,不靠模型抄。
- 影响:只在知识源声明了带出字段时生效;没声明的源回答不变。不重建索引。
- 要你做的:无(裁定在 专题:检索命中自带出处——在已裁定的 expand.follow 上补齐带出字段和链接,问答不再为查出处多跑一到两轮 #38901 的 D2、D3)。
What
Widen source.expand.follow exactly as the dated note of row 1 fixes it. The shape below is the topic's recommendation and yields to the note:
- A member of
followmay name the fields to bring from the related record, beside the three the hop already brings. - The key lands with its first reader in the same PR (ADR-0049): the search reads the declared fields in the batch read the hop already makes, one read per followed object, as the caller.
- Field-level security applies to each field: one the caller may not read is omitted, with no marker.
- Refusals at write time: a field the followed object does not have; a non-scalar field; more than the bound; a credential-class or internal field.
- Nothing is stored in an index; the fingerprint and the recipe hash do not move; the tool gains no argument.
- The tool description says what
relatednow carries.
Acceptance
- A source declaring fields to bring answers each hit with them on
related; a source declaringfollowwithout them answers as knowledge_source: a hit brings one declared lookup hop (expand.follow, #38412 ruling) #38505 left it, byte for byte. - An unreadable field, an empty field and a field of a record the caller may not read are pinned: the first two omit the field, the third brings nothing at all (the knowledge_source: a hit brings one declared lookup hop (expand.follow, #38412 ruling) #38505 rule, unchanged).
- Each write-time refusal is pinned, with the bound.
- Changing the declared fields rebuilds no index; a test pins the fingerprint.
- The docs sentences this code makes untrue are rewritten in the same PR (K2).
Not in scope: the link (row 4); a second hop; a user field as a hop; copying parent fields into the index; a cite key.
Dedupe: expand.follow bring fields open: #38505 (the hop itself), #38901 (the parent).
Generated by Claude Code
Activity
objectstack-fleet commentedon Dec 1, 2026
repo:objectstack@os-bob · os-bob · session_012dn2Af3j32UkLgdzhb7Zu3
Hold,写于 2026-12-01T12:23Z。出处:维护者裁定 D5(修订版),原话「我接受你的全部建议」,登记在 #38901 的评论 7310637680。理由:专题里「每题少一到两轮」是按 os-4 均值推算的,没有实测;先做 brightrule#97 和 brightrule#98 的前两个点,拿到实测数字后由维护者决定平台各卡是否按 p2 开工。本卡立卡时挂的是
pm:blocked,那是立卡席位的错:这是「决定暂缓」,不是「等上游」。级不动。正文里的Blocked-by:行是重启之后的先后顺序,仍然成立。Restart-when: objectstack-ai/brightrule#98 has a comment whose first line starts with 中期报告