Skip to content

ADR: record-scoped AI inquiry — context pack type, get_record_context, conversation focus, ask_ai, skill context, citation shape #36997

Description

@os-bob

maintainer · os-bob · session_012dn2AecKpLaYkUtNRiqtby

Filing gate: ③ maintainer-directed. Source: topic #36996.
Grading: area:ai · Task · p2 (blocks the epic's children from being dispatched) · reach: n/a · evidence: read.

维护者速读

  • 做什么:把「记录资料包」怎么声明、怎么读、怎么交给模型,以及「问 AI」按钮、对话焦点、技能指定资料包、答复引用的格式写成一份决定记录。
  • 需要你做的:手工合并这份 ADR;后面的子卡等它。

What

One ADR in docs/adr/, with a ## Provenance section naming the cloud record (objectstack-ai/cloud#4960) and its date. It decides:

  1. Admission of the ai_context metadata type under ADR-0088 (own lifecycle, declarable governance, a real consumer), and its v1 keys. Only keys with an enforcer in the first implementation PR are listed (ADR-0049); a body fallback to knowledge search is named as later work.
  2. Why the recipe is not on the object: packages/spec/src/data/ai-read-exposure.ts keeps the object-level ai key refused on business objects, and this ADR does not reopen that ruling.
  3. The render contract: read as the caller; labelled fields with option labels; "not visible to you" for a field hidden by field-level rules; an unreadable related row is absent; a long body becomes an outline; output wrapped as data, not instructions (one shared wrapper).
  4. get_record_context: one definition in spec, one executor, every transport (ADR-0149 D2); under data:read; the system-object and API-exposure refusals of the record tools apply.
  5. Which package owns the render service (a name here is a proposal; the tree's precedent decides, AGENTS.md).
  6. ToolExecutionContext.focus (client-reported, advisory, one record in phase 1) beside surfaceContext.
  7. The ask_ai action type: an action that dispatches to the assistant, never materialised as an action tool, absent where the edition has no in-app assistant.
  8. The skill key context (names a context pack) and its readers (MCP skill prompts in this repository; the in-app runtime in cloud).
  9. The citation shape an answer may carry (object, id, optional anchor, quote). Shape only; rendering is a later card.
  10. Not decided here: field egress.

Acceptance

  • PR open, Status Proposed; anchors under scripts/adr-anchors/ are left to the implementing cards. Governed surface: the maintainer merges by hand.

Blocked-by: objectstack-ai/cloud#4960
Parent: #36996. Reader: the seat that takes spec ADR text.
Dedupe: is:open metadata type admission ADR-0088 3 (#36868: precedent, no overlap) · ai_context 0.

Activity

  1. added theissue type on Nov 24, 2026
  2. added
    priority:p2
    area:ai
    on Nov 24, 2026
  3. objectstack-fleet commented on Nov 24, 2026

    @objectstack-fleet
    Contributor

    triage#1 · os-warren · session_01JQwxbZKP5YM48rWMWTS7wE

    Triage: state pm:blocked. Grade, area and type stay as the maintainer filed them. The card's own Blocked-by: names objectstack-ai/cloud#4960, which is still open, so it waits as blocked. The unlock scan moves it to pm:queue when that closes. Topic order per the parent's table.

  4. added
    pm:blocked
    on Nov 24, 2026
  5. objectstack-fleet commented on Nov 24, 2026

    @objectstack-fleet
    Contributor

    triage#1 · os-warren · session_01JQwxbZKP5YM48rWMWTS7wE

    Triage: unblocked 2026-11-24T16:43Z

    • Blocked-by objectstack-ai/cloud#4960 closed.
    • pm:blocked → pm:queue. Grade and area unchanged.
    • Route: area:ai queue, p2 (ADR, Tier H review).
  6. added
    pm:queue
    and removed
    pm:blocked
    on Nov 24, 2026
  7. objectstack-fleet commented on Nov 24, 2026

    @objectstack-fleet
    Contributor

    repo:cloud#1 · os-warren · session_01JQwxbZSA7o5vcLjQjM1myV

    Claim: epic #36996 hand-off, round 1
    Session: session_01JQwxbZSA7o5vcLjQjM1myV
    Account: os-warren
    Branch: claude/project-thread-qmmhf6
    Worktree: objectstack
    Domain: domain:skills (docs/adr/**, SKILL.md lane table; no domain:* label written — triage owns it)
    Seat: repo:cloud#1 (holder of epic #36996)
    File surface: docs/adr/** (a new docs/adr/0160-*.md, and the index row in docs/adr/README.md if the index lists ADRs)
    Container & model: M, mode:thread, model: CONTRACT_REVIEW_TIER (MANDATORY: docs/adr/0160-record-scoped-ai-inquiry.md ⇢ 'docs/adr/**' — the 2026-10-25 order; the card thread cannot be opened at this tier, so an isolated subagent at this tier drafts the text), effort: xhigh (reason: ADR revision — 定档 standing order for docs/adr/**)
    Clause-②: no
    Metadata-protocol: none
    Responsibility: n/a — not a defect card
    Thread-read: 7138120669
    Premise: holds — read at origin/main e1dee7a: packages/spec/src/data/ai-read-exposure.ts exists and refuses the object-level AI read key (enable.aiReadable) on business objects; ToolExecutionContext.surfaceContext exists (packages/spec/src/contracts/ai-service.ts); cloud#4960 closed, ADR-0119 (cloud) Accepted.
    Serial constraints cleared: none — no open PR touches docs/adr/** at claim time; next free number 0160.
    Pre-claim lane: docs/adr/** = governed ADR text; maintainer hand-off of the whole epic to this seat.
    Pre-claim deps: Blocked-by objectstack-ai/cloud#4960 closed (ADR-0119 merged).
    Prior rulings read: ai_context,get_record_context,ask_ai,surfacecontext,aireadable,citation,focus → 2 hits; ADR-0079 D3, ADR-0093 D9 (both on the word "citation", unrelated); thread: none; repo: objectstack-ai/objectstack

    Source of the hand-off: maintainer (Warren), project chat, 2026-11-24T19:17Z, verbatim 「36996 你接手整个专题的任务,现在就开专区派发」.

  8. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 24, 2026
  9. objectstack-fleet commented on Nov 24, 2026

    @objectstack-fleet
    Contributor

    repo:cloud#1 · os-warren · session_01JQwxbZSA7o5vcLjQjM1myV

    ACCEPT → PR #37115 comment 7144068209 (head 1fc3853349219086768123e814c6369208a29b47; contract review PASS 7143824235). Tier H hand-off 7144090043: pm:awaiting-merge, review requested from the governed approver. Waits on the maintainer's merge; rows 5–10 of #36996 are filed by this seat after it.

  10. removed
    pm:dispatched
    on Nov 24, 2026
  11. os-justin commented on Nov 24, 2026

    @os-justin
    Collaborator

    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.

    seat repo:objectstack#4 close-out sweep

    Generated by Claude Code


    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:aipriority:p2

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions