Skip to content

记录 AI 问询 10(占位):答复引用,点开即到记录的被引位置 #37144

Not planned

Description

@objectstack-fleet

repo:cloud#1 · os-warren · session_01JQwxbZSA7o5vcLjQjM1myV

Filing gate: ③ maintainer-directed. Source: topic #36996. Key words (maintainer, 2026-11-24 19:17Z, handing the epic to this seat): 「36996 你接手整个专题的任务,现在就开专区派发」.
Grading: area:ai · Feature · p2 (topic child at the epic's level) · reach: n/a (new capability) · evidence: read.

维护者速读

  • 做什么:AI 的回答带上引用:哪条记录、正文哪一节、原文摘句。用户点引用就打开这条记录,并停在被引的位置。这张是占位卡,第 5 行落地后拆成具体卡。
  • 谁受益:制度问询这类应用的用户,可以核对 AI 说的话出自哪里。
  • 不做会怎样:回答的来源无法核对。
  • 需要你做的:无。

What

ADR-0160 D9 fixes only the shape, { object, id, anchor?, quote }. This card is a placeholder and cannot be dispatched as it stands. When row 5 merges, the owning seat splits it and closes this card in favour of the split. The anchor and the verbatim check both read get_record_context's output, so it waits for row 5. The expected split:

  • spec: the citation schema enters spec with its first reader (ADR-0049), along with which answer member carries the list;
  • reader: a check that quote is found verbatim in what get_record_context returns to the reading user for object, id and anchor;
  • surface: rendering, and opening the record at the anchor (the console; cloud's in-app answer). Blocked-by objectstack-ai/cloud#4978 (row 9a), where the in-app answer comes from.

Expected Metadata-protocol: added once the shape enters spec.

Dispatch note (added 2026-11-25)

Added by the maintainer's session (maintainer · os-bob · session_012dn2AecKpLaYkUtNRiqtby) after an independent Fable review of rows 5–10, which the maintainer accepted: 「同意你的建议」.

When #37140 closes, triage will move this card from pm:blocked to pm:queue on its own. Do not dispatch it as it stands. The seat that picks it up splits it at that moment, as above, and closes this card.

Blocked-by: #37140

Parent: #36996 (row 10). Reader: the epic's owning seat (repo:cloud#1), which splits it when row 5 merges.
Dedupe (objectstack, is:issue, open and closed): citation in:title 56 (none on record citations; #34894 closed is the dataset sourceLine decision) · "sourceLine" citation 9 (dataset-answer work, all but the epic closed).

Activity

  1. added
    priority:p2
    pm:blocked
    area:ai
    on Nov 24, 2026
  2. objectstack-fleet commented on Nov 25, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · os-warren · session_01JQwxbZKP5YM48rWMWTS7wE

    2026-11-25T04:37Z Line form of the blocker already named in the body (row 9a), so the unlock scan reads it. #37140 is closed; this one is still open:

    Blocked-by: objectstack-ai/cloud#4978

  3. objectstack-fleet commented on Nov 25, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · os-warren · session_01JQwxbZKP5YM48rWMWTS7wE

    Triage: unblocked 2026-11-25T15:38Z

  4. added
    pm:queue
    and removed
    pm:blocked
    on Nov 25, 2026
  5. objectstack-fleet commented on Nov 25, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6CbeF2saT6wUBV4E9uc

    Split held for three maintainer questions · 2026-11-25T20:10Z · area ai-36996 (topic #36996, maintainer 2026-11-25T12:57Z 「开一个 36996 专题,接手剩余任务」)

    维护者速读

    • 占位卡按原计划拆三张:10a 引用格式进 spec+服务端核对原文(本仓),10b 控制台显示引用并打开记录停在被引的那一节(本仓),10c 云端应用内回答产出并保存引用(cloud 仓)。
    • 拆之前有三件事要你定:① 什么时候核对引用;② 一个对象有多个资料包时,引用怎么指明是哪一个;③ 引用来自关联记录的内容时,打开主记录还是那条关联记录。
    • 推荐:① 回答生成时以提问人身份核对一次,核不上的丢掉;② 给 D9 的引用格式加一个可选的 context(要改 ADR,受管面);③ 打开主记录。

    Governing text: ADR-0160 D9 (citation shape { object, id, anchor?, quote }; "whether a surface verifies before it renders" left to row 10), ADR-0049 (a key lands with its first reader).

    Questions (readings on origin/main a182fbe37; full draft with file:line readings at /mnt/project-files/objectstack-seat5/ai-36996/split-37144/split-draft.md)

    • Q1 · when a citation is verified. A: once, when the answer is produced, as the asking user; unverified citations are dropped. B: on every display, per reader (needs a new HTTP door for the console). C: show all, flag unverified. Recommend A: a conversation has one reader; B adds an open endpoint; C shows a claim the platform could not check.
    • Q2 · which pack. Since PR feat(core,objectql,spec,service-record-context,mcp,runtime)!: a context pack is identified by its package and its name; get_record_context selects a pack by its face on both MCP doors #37291 a pack is identified by package + name and an object can have several, but the D9 shape has no context member, so a citation on such an object cannot be verified. A: amend D9 with optional context (the tool input's spelling; Tier H ADR amendment). B: the verifier tries every pack the caller is served on that object. C: fail closed. Recommend A: one optional key the model already holds; B widens "verbatim in what the tool returned".
    • Q3 · a quote from a related row's cell. A: object/id is the pack's root record; the quote is matched across that answer's related cells; the citation opens the root. B: the child row (needs a pack rooted on the child). Recommend A: matches "what get_record_context returns for object, id".

    pm:queue → needs-user-decision; unassigned. The split is filed once the three are ruled.

  6. added
    needs-user-decision
    and removed
    pm:queue
    on Nov 25, 2026
  7. objectstack-fleet commented on Nov 25, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6CXJF9qUdikxm8sBGR8

    Decision analysis: the three questions of the citation split · 2026-11-25T23:09Z · model claude-fable-5-1 (the maintainer's standing rule for decisions) · supersedes the option list in the split-held comment above (7173298192); the questions are the same, the analysis is new.

    维护者速读

    • 问题:AI 回答带引用、点开即到记录被引位置这张占位卡要拆成三张施工卡;拆之前有三件事没定:引用什么时候核对、一个对象有多个资料包时引用指哪个包、引用来自关联记录的文字时打开哪条记录。制度问询这类应用的用户会直接碰到这三件事的结果。
    • 选项:核对时机,甲回答生成时按提问人权限核一次、核不上的不显示,乙每次显示时重核(控制台要新开一个接口),丙全显示但标出没核过的;指哪个包,甲引用里写明包名(改一处架构记录,受管面)、乙核对器把该对象上能看到的包挨个试、丙多包对象一律不核;关联文字,甲打开主记录、乙打开那条关联记录(需要关联对象自己的资料包)。全部按甲做是三张卡加一个小的架构记录修订。
    • 推荐三问都选甲:引用就是「重新读一次就能对上」的地址,包名是地址的一部分;生成时核一次最省也最稳;关联文字的锚点只存在于主记录正文里。
    • 不定会怎样:占位卡拆不下去,这一行的三张卡都开不了工;专题的其余行不受影响。

    Background

    Row 10 of #36996 ships record citations: an answer names the record, the place in its body and the verbatim passage it rests on, and a click opens the record there. ADR-0160 D9 fixed the shape { object, id, anchor?, quote } and left three things to row 10: which answer member carries the list, whether a surface verifies before it renders, and how a citation opens the record. Since PR #37291 (merged 2026-11-25T18:35Z) a pack is identified by package + name and an object can have several packs, which D9's shape did not foresee. The split draft with file:line readings is at /mnt/project-files/objectstack-seat5/ai-36996/split-37144/split-draft.md (§1 readings, §2 proposed cards 10a/10b/10c, §4 independent review).

    Governing text. ADR-0160 D9 (docs/adr/0160-record-scoped-ai-inquiry.md): "quote must be found verbatim in what get_record_context returns for object, id and anchor to the reading user … Shape only … Which member of an answer carries the list, whether a surface verifies before it renders, and how a citation opens the record are row 10's." D4: input { objectName, recordId, context?, anchor? }; pack selection with context omitted and several packs ⇒ refused, candidates listed. D3: anchor is an outline heading of the pack's body; "an anchor that does not resolve is refused". ADR-0049: a key enters spec with its first reader. grep -n "context?: string, anchor?: string" docs/adr/0160-record-scoped-ai-inquiry.md → 1 hit (D4 input).

    Protocol declaration, and whether it changes. The citation schema is new spec (Metadata-protocol: added, ADR :384). Q2 option A changes D9's declared shape (one optional key), which is a Tier H ADR amendment; Q1 and Q3 change no declared shape. None of the options touches the tool input/output of D4.

    Premises (each with its re-check; all read on main a182fbe37)

    • P1 A conversation has one reader: no sharing or visibility member in the conversation schema. git grep -nE "shar|visib" packages/spec/src/ai/conversation.zod.ts → 0 hits.
    • P2 D9's shape has no context. grep -n "object: string, id: string, anchor?: string, quote: string" docs/adr/0160-record-scoped-ai-inquiry.md → 1 hit.
    • P3 A call without context on an object with several packs is refused. grep -n "selection.kind === 'several'" packages/services/service-record-context/src/record-context-tools.ts → 1 hit.
    • P4 The door can enumerate packs (what Q2 option B would use). grep -n "listContextPacks" packages/services/service-record-context/src/door.ts → 1 hit.
    • P5 The tool answer names the pack it read through, so the model holds the face. grep -n "pack: z.object" packages/spec/src/ai/record-context-tools.zod.ts → 1 hit.
    • P6 anchor is a heading slug of the root body only; a related row's text is a cell, with no outline. grep -n "slugOf" packages/services/service-record-context/src/body-outline.ts → hits; git grep -n "anchor" packages/spec/src/ai/record-context-tools.zod.ts → input, outline entry, body only.
    • P7 No record URL param opens a body section today. grep -nE "section|anchor" ui/packages/app-shell/src/urlParams.ts → 0 hits.

    The problem, one sentence

    A user who clicks a citation under an AI answer must land on text that really is in that record and that they are allowed to read, and today nothing says who checks that, which pack the check reads through, or which record a quote from a child row opens.

    Options × real cost × workload

    Q Option What it does What the customer sees Workload (lane · PRs · precedent)
    Q1 A verify once at production, as the asking user; unverified citations are dropped the runtime re-reads each cited place after the turn and keeps only what matches only citations that open on matching text; a fabricated one never appears inside 10a (verifier) + 10c (runtime call); no extra PR. Precedent for a spec shape + its reader: PR #32024 +340/−14, 17 files
    Q1 B verify on every display, per reader the console calls a new HTTP endpoint before drawing same as A, plus a loading state; identical for the one reader +1 PR domain:server (new HTTP door) + console call; L; no precedent of a verify endpoint
    Q1 C show all, flag unverified nothing is dropped; a badge marks what did not match the user sees claims the platform could not confirm same as A plus a badge state in 10b
    Q2 A amend D9: optional context (the pack's face, as the tool input spells it) the citation names the pack it was read through; the verifier re-reads with it none visible; multi-pack objects verify ADR amendment PR, Tier H, S: precedent PR #37196 +46/−17, 2 files; then one optional key in 10a
    Q2 B verifier tries every pack the caller is served on that object enumerates packs through the door, reads each until one matches none visible; multi-pack objects verify +~60 lines in 10a; no ADR change; no precedent
    Q2 C fail closed on several packs a multi-pack object never verifies citations silently vanish on such objects 0 lines
    Q3 A object/id is the root record; quote matched across the pack's related cells; click opens the root as drafted in 10a/10b the policy opens; the user finds the row in its related list by the shown quote as drafted
    Q3 B the child row needs a pack rooted on the child to verify; the console opens the child the version document opens directly 10a + a child-rooted pack per application; no precedent (BrightRule has none)

    Business translation. Q1-A: the platform signs each citation before it ships, like a bank stamping a statement once at issue. Q1-B: the reader re-checks on every view, a notary at every reading. Q1-C: unsigned statements shown with a warning. Q2-A: a citation is a complete address (record, lens, section, passage) that anyone can re-read in one call. Q2-B: the address omits the lens and the platform tries every lens. Q2-C: objects with more than one lens get no citations. Q3-A: a quote from a policy's version text opens the policy. Q3-B: it opens the version document.

    Four axes (business stance)

    • ① Long-term platform shape (≥50%). Two years out, a record citation is the thing a compliance officer re-reads to check an AI answer, and the thing an external MCP client re-reads too. D9 built the shape so that "a reader can check the claim without a model". That holds only if the citation is a complete address: the same four arguments the tool takes (object, id, context, anchor) plus the quote. Q2-A keeps that symmetry; Q2-B makes verification something only the platform's own verifier can do (an outside reader would need the pack list, which no tool exposes); Q2-C leaves a hole that grows as packages ship packs. Q1-A matches how provenance is shipped on every mainstream assistant (verified at generation, persisted with the message; Perplexity, Notion AI, Copilot all attach sources at answer time, none re-verify per view); Q1-B adds a public endpoint for a benefit no reader has while conversations are per user (P1). Q3-A keeps anchor meaning one thing (a root-body heading); Q3-B would need a second locator kind in the shape. Reading on ① alone: A / A / A.
    • ② Real business pull today. The first application (BrightRule policy inquiry) has one pack per object and keeps policy text on version documents (child rows). So Q1 and Q3 are pulled now; Q2's multi-pack case is pulled by packaged packs (PR feat(core,objectql,spec,service-record-context,mcp,runtime)!: a context pack is identified by its package and its name; get_record_context selects a pack by its face on both MCP doors #37291, no customer yet). Zero pull for per-reader re-verification (Q1-B) and for child-row opening (Q3-B).
    • ③ Keeping AI from writing wrong things. The model writes the citation, so it is a claim. Q1-A fails closed: a wrong quote or a stale anchor is dropped before anyone sees it (loud to the eval, silent to the user; Q1-C would show the user the bad claim with a badge). Q2-A makes the model state the pack it read, and a wrong face is a loud refusal; Q2-B is consumer-side tolerance (the verifier guesses what the model meant), the pattern this axis rejects. Q3-A gives the verifier one search space (the root pack's answer); Q3-B would require guessing which child pack to read.
    • ④ No proliferation at startup stage. Q2-A adds one optional declared key and an ADR amendment, a permanent obligation; Q2-B adds none but hides a guessing loop in the service; Q2-C adds nothing and ships a known hole. Q1-B adds a public endpoint for no reader. Q3-B adds a pack per child object per application. Nothing here adds a gate.

    os-decision-facets
    ① 长远合理性: Q2-A keeps the citation a complete, one-call-checkable address mirroring the tool input; Q1-A and Q3-A keep one verifier and one locator kind; special cases shrink, contract growth is one optional key.
    ② 实际业务拉动: Q1/Q3 pulled by BrightRule today (one pack per object, text on child rows); Q2 multi-pack pulled by packaged packs (PR #37291), no customer yet; Q1-B and Q3-B have zero pull.
    ③ 防 AI 犯错: Q1-A drops unverified claims before display; Q2-A makes the model name the pack and refuses a wrong one loudly, Q2-B is a verifier that guesses; Q3-A gives one search space.
    ④ 创业阶段不扩散: Q2-A is one optional key plus a Tier H amendment, accepted because ① needs it; no endpoint (Q1-B), no child packs (Q3-B), no new gate.
    Prior rulings read: citation / 引用 / context pack / D9 / 37144 in the coordinator rulings ledger → 0 hits; GitHub is:issue "record citation" → 226 hits, phrase not honoured, the card’s own dedupe line reads none on record citations; ADR-0160 D9, D4, D3; thread: 裁决 #37144 引用卡三问.

    Recommendation and confidence gaps

    A / A / A. Q1-A because the conversation has one reader and a dropped claim is safer than a flagged one. Q2-A because a citation is the tool call that re-reads it plus the quote, and that call needs the pack; the Tier H cost is one small ADR amendment (precedent +46/−17). Q3-A because the anchor only exists in the root body and the first application has no child-rooted pack. Not taken: Q1-B (endpoint for no reader), Q1-C (shows unverified claims), Q2-B (a guessing verifier that only the platform can replay), Q2-C (a growing hole), Q3-B (a second locator kind and packs per child).

    Gaps: objectstack-ai/cloud#4978 (row 9a) could not be read from this session (HTTP 403), so how the in-app answer stream carries a data part is taken from the open-tree precedent (BUILD_PROGRESS_FRAME_TYPE) and not from cloud's code. Whether the cloud runtime keeps the turn's tool results in reach after the turn (which would let the verifier match against them first and re-read only on a miss) is unverified; it changes cost, not the ruling.

    Self-check: 只看①选 A/A/A;②③④ 是否翻转:否。

    After the ruling

    1. The decision thread records the ruling on this card (Ruled: line, needs-user-decision → pm:queue) and tells the topic thread (area ai-36996).
    2. If Q2 = A: the topic thread files the ADR-0160 D9 amendment as its own S card first (Tier H, domain:skills, reviewers os-zhuang + hotlong), and 10a carries Blocked-by: it. If Q2 = B or C: no amendment; 10a as drafted with the chosen verifier rule.
    3. The topic thread files 10a (spec schema + verifier, Metadata-protocol: added, Clause-② yes), 10b (console, Blocked-by: 10a) and 10c (cloud runtime, in objectstack-ai/cloud, Blocked-by: 10a), closes this placeholder in their favour, and dispatches 10a once the amendment lands.
  8. objectstack-fleet commented on Nov 25, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6CXJF9qUdikxm8sBGR8

    Ruling recorded · 2026-11-25T23:19Z · decision thread 裁决 #37144 引用卡三问

    Ruled: Q1 A · Q2 A · Q3 A — by the maintainer (os-bill), who picked the option 「生成时核·D9加context·开主」 on the decision card at 2026-11-25T23:18Z, after the four-axis analysis in comment 7177223845 (Governing text: ADR-0160 D9, D4, D3; ADR-0049).

    维护者速读

    • 三问已定:引用在回答生成时按提问人权限核一次、核不上的不显示;引用格式加可选包名(先改一处架构记录);引用来自关联记录的文字时打开主记录。
    • 接下来专题线程先开改架构记录的小卡,再开三张施工卡,并关掉这张占位卡。

    The ruling

    1. When a citation is verified (Q1 = A). Once, when the answer is produced, by the platform as the asking user. A citation whose quote is not found verbatim in the data member of get_record_context's answer for its object, id, context and anchor is dropped before the answer is shown; the verified list is persisted with the message, and a surface never re-verifies on display.
    2. Which pack (Q2 = A). ADR-0160 D9's shape gains an optional context: the pack's face, spelt as the tool input's context argument takes it. The verifier passes it through. A citation without context on an object with several packs is not verified (the tool's refusal stands); on an object with one pack it verifies as before. This is a Tier H amendment of docs/adr/0160-record-scoped-ai-inquiry.md (reviewers os-zhuang + hotlong), filed as its own S card ahead of 10a.
    3. A quote from a related row (Q3 = A). object/id name the pack's root record. The quote is matched across that answer's data member, related-list cells included. The surface opens the root record; anchor keeps its one meaning, a root-body heading.

    Execution (area ai-36996, topic #36996)

    • File the D9 amendment card (S, domain:skills, Tier H) first; 10a carries Blocked-by: it.
    • File 10a (spec citation schema + verifier, Metadata-protocol: added, Clause-② yes), 10b (console: draw verified citations, open the record at the anchor; Blocked-by: 10a) and 10c (objectstack-ai/cloud: the in-app runtime writes, verifies and persists citations; Blocked-by: 10a) as drafted in /mnt/project-files/objectstack-seat5/ai-36996/split-37144/split-draft.md §2, with the three rulings above folded in; close this placeholder in their favour.
    • needs-user-decision → pm:queue in this same write; the card stays unassigned until the topic thread splits it.
  9. added
    pm:queue
    and removed
    needs-user-decision
    on Nov 25, 2026
  10. objectstack-fleet commented on Nov 25, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6CbeF2saT6wUBV4E9uc

    Split and closed per ruling 7177410380 (Q1 A · Q2 A · Q3 A, the maintainer on the decision card). The three rulings are folded into each card:

    Row 10c, draft card for objectstack-ai/cloud

    Filing gate: ③ maintainer-ruled. Split of placeholder #37144 per ruling 7177410380 there (the maintainer, decision card, 2026-11-25T23:18Z: Q1 A · Q2 A · Q3 A). Filed here because the in-app answer runtime is cloud's; for the cloud seat to triage and own.
    Grading: Feature · p2 (topic child of #36996, row 10c) · reach: in-app assistant users · evidence: read on the open tree only (no cloud code read).

    维护者速读

    • 做什么:应用内 AI 读过记录资料后作答时,同时给出引用。平台在作答当时用提问人的权限核对一次,只把核对通过的引用随回答发出并存下来,重新打开对话时不再重核。
    • 谁受益:制度问询(BrightRule)等应用的用户,可以核对 AI 的话出自哪一节。
    • 不做会怎样:控制台有引用的显示(10b),但应用内助手不产出引用。
    • 需要你做的:无。

    What

    1. The model writes citations, shaped as objectstack's RecordCitationSchema (object, id, context?, anchor?, quote; objectstack-ai/objectstack 10a). The channel is cloud's choice: a structured output or a terminal tool, under the get_record_context skill guidance.
    2. After the turn, the runtime calls verifyRecordCitations once, as the asking user (ruling Q1). Unverified citations are dropped before the answer is shown.
    3. It emits the verified list as the data-record-citations part through the stream's data-part channel, and persists it with the message. A reload redraws the stored list and never re-verifies.
    4. Prompt guidance:
      • quote verbatim;
      • pass the context face that was called (ruling Q2);
      • pass the outline anchor;
      • cite the root record the tool was called on, even for text from a related row (ruling Q3).

    Acceptance

    • On a BrightRule policy pack, an answer citing section X opens at X in the console.
    • A fabricated quote is dropped (eval scenario).
    • An answer with no get_record_context call carries no part.
    • A reload shows the same citations with no second verification call.

    Out of scope: the MCP door; audit.

    Governing text: objectstack ADR-0160 D9 as amended by #37363; ruling 7177410380.
    Blocked-by: #37364
    Parent: #36996 (row 10c; replaces placeholder #37144)
    Size: M

  11. removed
    pm:queue
    on Nov 25, 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:aipriority:p2

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions