Skip to content

记录 AI 问询 10 前置:ADR-0160 D9 引用格式加可选 context,并写入引用核对的三条裁决 #37363

Description

@objectstack-fleet

repo:objectstack#5 · os-bill · session_01Utp6CbeF2saT6wUBV4E9uc

Filing gate: ③ maintainer-ruled. Ruling 7177410380 on #37144 (Q2 = A, the maintainer on the decision card, 2026-11-25T23:18Z, 「生成时核·D9加context·开主」; four-axis analysis 7177223845).
Grading: area:ai · Task (ADR amendment) · p2 (blocks row 10a) · reach: n/a (contract text) · evidence: read.

维护者速读

  • 做什么:在 ADR-0160 的引用格式(D9)里加一个可选的包名 context,并把 记录 AI 问询 10(占位):答复引用,点开即到记录的被引位置 #37144 的三条裁决写进 D9:生成时按提问人核一次、关联记录的摘句指向主记录。
  • 谁受益:后面三张施工卡(10a/10b/10c)照这段文字做,不再各自解释。
  • 不做会怎样:一个对象有多个资料包时,引用无法核对。
  • 需要你做的:这是受管文件(Tier H),合并需要 os-zhuang 与 hotlong 批准。

What

Amend docs/adr/0160-record-scoped-ai-inquiry.md D9 (the citation shape {object, id, anchor?, quote}) with the three rulings of 7177410380:

  1. Shape (Q2 = A). Add optional context: the pack's face, spelt exactly as get_record_context's input context argument takes it. 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.
  2. When it 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. This replaces D9's sentence that leaves "whether a surface verifies before it renders" to row 10.
  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 heading of the root record's body.

Record the amendment in the ADR's amendment log, with the ruling id. Text only; no code.

Acceptance

  • D9 states the three points above. Nothing else in the ADR changes.
  • Rule-change: line and governed-surface review per AGENTS.md: Tier H, reviewers os-zhuang + hotlong.

Governing text: ADR-0160 D9, D4, D3; ruling 7177410380.
Parent: #36996 (row 10). Unblocks: row 10a.
Size: S
Dedupe (objectstack, is:issue): ADR-0160 amendment → #37196 and #37202 (both merged/closed, other points); none carries D9 context.

Activity

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

    @objectstack-fleet
    ContributorAuthor

    triage#1 · os-warren · session_01JQwxbZKP5YM48rWMWTS7wE

    First touch, 2026-11-25T23:33Z.

  3. objectstack-fleet commented on Nov 25, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6CYRWEQbrHTNYDXienp
    os-dev-report

    Card thread for #37363 (mode:thread, area ai-36996 under seat 5) · 2026-11-25T23:59Z

    {
      "issue": 37363,
      "status": "done",
      "branch": "claude/project-thread-je0ymy",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/37370",
      "session": "session_01Utp6CYRWEQbrHTNYDXienp",
      "premise_still_valid": true,
      "summary": "Third amendment of docs/adr/0160-record-scoped-ai-inquiry.md (+22/-7, one file, head 44767fb0). D9's citation shape gains an optional `context` (the pack's name as get_record_context's `context` argument takes it; without it on a several-packs object the citation is not verified, the tool's refusal stands); a new D9 paragraph fixes when a citation is verified (once, when the answer is produced, by the platform as the asking user, quote found verbatim in the answer's data member, else dropped; the verified list persisted with the message; never re-verified on display) and replaces the sentence that left verification to row 10; a new D9 paragraph says a quote from a related row names the pack's root record, is matched across the whole data member incl. related-list cells, opens the root, and `anchor` keeps its one meaning. The amendment log records the card, ruling 7177410380 and the readings commit 98bda0ac. TL;DR point 9, the Not-decided bullet and the points list (new point 23, the one settlement past the ruling's words: every refused verifying call drops the citation) say the same. Status line unchanged, so docs/adr/README.md stays current.",
      "tests": "n/a — docs/adr/** text only; no package, test or schema touched.",
      "gates": "Derived on the final head 44767fb0: node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack → 21 commands; all 21 exit 0, each captured before any pipe; --ran: '21 derived famil(ies) accounted for — 21 run, 0 NOT-MEASURED (a DERIVED zero — all 21 recorded an exit code and none of them is 3)'. First pass hit exit 3 (no node_modules) on 8 families and was discarded; pnpm install plus building @objectstack/formula... and @objectstack/lint... cleared it. --tier: docs/adr/** ⇢ mandatory fable tier, effort floor xhigh; 29 changed lines vs 3000: under. CI families: the PR's check-runs (in_progress at report time).",
      "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
      "mcp_calls": "0 — no MCP GitHub calls; GitHub reads via gh api --jq (card, comments, ruling, PR files of precedents)",
      "api_writes": "2 — git push origin claude/project-thread-je0ymy (not REST); relay pr_create (POST /repos/objectstack-ai/objectstack/pulls + assignees + labels legs, run 45725241090); this report comment via post-stamped.mjs",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: none · consequence of the ruling as ruled (Q1 = A), not re-opened: a surface never re-verifies on display, so a later reader of a persisted message sees citations verified as the asking user, not as themselves; rows 10b/10c inherit it. Recorded in the PR's Acceptance notes for L1/L2.",
        "carrier: seat/triage · observation, not written: card #37363 carries area:ai, priority:p2, pm:queue and no domain:* label; ruling 7177410380 filed it as domain:skills.",
        "carrier: seat · served-tier reading for the Container & model line: get_session last_served_model claude-fable-5-1, configured claude-fable-5-1[1m], effort high at spawn, switched to xhigh on Bill's standing rule (ADR 用 xhigh) before editing; dispatch-gates --tier names claude-fable-5-2 as the mandated tier."
      ]
    }
  4. objectstack-fleet commented on Nov 26, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6CbeF2saT6wUBV4E9uc

    Claim: PM loop round 3 · area ai-36996 (topic #36996; ruling 7177410380 Q2 = A files this card ahead of 10a) · 2026-11-26T00:00Z
    Session: session_01Utp6CbeF2saT6wUBV4E9uc
    Thread session: session_01Utp6CYRWEQbrHTNYDXienp
    Account: os-bill
    Area: ai-36996
    Branch: claude/project-thread-je0ymy
    Worktree: objectstack-issue-37363
    Domain: domain:skills
    Seat: repo:objectstack#5
    File surface: docs/adr/** (the one file docs/adr/0160-record-scoped-ai-inquiry.md). Stop on breach and report.
    Container & model: S, mode:thread, model: claude-fable-5-1 — dispatch-gates --tier prints "Model tier — MANDATORY: claude-fable-5-2" (docs/adr/**, no one-line exit); measured unavailability: the thread's get_session last_served_model answers claude-fable-5-1, and 5-2 is not reachable from this account. Built at 5-1, above the default tier. Compensating control: the L2 review at CONTRACT_REVIEW_TIER by a reviewer who reaches it, recorded on the handoff, effort: xhigh (reason: ADR amendment, standing order; File surface is docs/adr/** alone)
    Clause-②: no
    Metadata-protocol: none
    Responsibility: n/a — not a defect card
    Thread-read: 7177743230
    Premise: holds — ruling 7177410380 is the newest decision on #37144; D9 on origin/main 98bda0a has no context member
    Serial constraints cleared: none — no other open PR touches docs/adr/0160
    Late-claim note: this claim is posted after the card thread opened draft PR #37370 at 44767fb. The seat had not written it when the thread was opened. The thread's work is unchanged; this line records the order.

  5. added
    domain:skills
    pm:dispatched
    and removed
    pm:queue
    on Nov 26, 2026
  6. removed
    pm:dispatched
    on Nov 26, 2026
  7. github-actions commented on Nov 26, 2026

    @github-actions
    Contributor

    os-closed-card-sweep — machine-findable marker for this generated comment.

    Removed the pm-loop state label(s) this closed card no longer claims: pm:dispatched.

    A state label claims work is in flight. This card is closed on a merged delivery, so the claim
    is stale; every other label is left exactly as it was found. Nothing here is a judgement about
    the card, and no verdict-bearing label is ever touched by this sweep.

    posted by half-state-patrol run 45733194792 · trigger workflow_dispatch

    Generated by Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:aidomain:skillspriority:p2

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions