Skip to content

docs(adr): ADR-0160 — record-scoped AI inquiry: the ai_context type, get_record_context, conversation focus, ask_ai, skill context, citation shape - #37115

Merged
os-zhuang merged 3 commits into
mainfrom
claude/project-thread-qmmhf6
Nov 24, 2026
Merged

os-zhuang merged 3 commits into
mainfrom
claude/project-thread-qmmhf6

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Requested by Warren · project thread

Fixes #36997
Clause-②: no
Metadata-protocol: none

This PR is the design text only. After it merges, the owning seat files rows 5–10 of epic #36996 from the record's implementation split.

维护者速读

  • 用户能看到什么变化:用户无感。这是一份设计文档,把「在一条记录上问 AI」的做法写定:资料包怎么声明、怎么按提问人的权限读、怎么经一个工具交给模型(应用内助手和外部 MCP 拿到的是同一份),以及「问 AI」按钮、对话焦点、技能指定资料包、答复引用的格式。
  • 为什么做:专题 专题:记录范围 AI 问询(在一条记录上问 AI:对话钉在这条记录上、平台按配置交给模型这条记录的资料、外部 AI 经 MCP 拿到同一份) #36996 的后续子卡(资料包类型与工具、「问 AI」按钮、Studio 编辑界面、技能接资料包、cloud 端首轮预读、答复引用)都等这份文档。
  • 出错会怎样:文档本身不影响线上。它定的是 AI 读记录的边界:一律以提问人的权限读;读不到的值从不交给模型;读不到的关联记录直接不出现、不留编号;拒绝和答复里不出现提问人看不到的对象名、字段名;记录里的文字一律包成「资料」交给模型,不当指令。
  • 要你做什么:审核通过后合并。文中有 12 处是卡面原话之外的落点,单列在「Points that go past the card's words」一节。其中三处会改变用户看到的东西,文中写明要你明确同意,不同意可以逐条划掉:
    • 第 10 点(看不到的字段怎么说):专题裁决写「看不到的字段显示『你看不到』」,但 ADR-0106 规定普通用户连字段名都看不到(名字本身会泄露)。文档的落法:提问人自己的界面里看得到这个字段名的,照旧点名写「你看不到」;看不到字段名的,只说「这份资料里有部分内容你看不到」,不点名、不计数。另两种做法没采用:对谁都点名(违反 ADR-0106),或什么都不说(达不到专题裁决)。
    • 第 2 点:资料包点名的某个关联对象,提问人整个对象都没有读权限时,整次调用拒绝,而不是只少这一块。后果是权限窄的角色在这条记录上点「问 AI」什么也拿不到,作者要为不同角色写不同的资料包。另一种做法是去掉这一块、照第 10 点的说法写明「有部分内容你看不到」,其余照给。
    • 第 1 点:一个对象上有多个资料包时,「问 AI」按钮和对话焦点不指定用哪个,会被拒绝(除非当前技能指定了资料包)。每个对象只配一个资料包就没有这个问题。
  • 审核经过:独立契约审核三轮,第一轮 1 条必改、3 条应改,第二轮再提 1 条应改,全部改完关闭;第三轮通过,只剩两条不影响正确性的小意见,按规矩记为接受的偏差不再改动。

What changes

  • New record, ADR-0160 (Proposed), built on cloud ADR-0119 (Accepted 2026-11-24, objectstack-ai/cloud#4960). D1–D9 decide the card's items 1–9 in order; item 10 (field egress) is in "Not decided here".
    • D1: ai_context passes ADR-0088's admission test. Strict schema, six v1 keys (name, label, object, fields, related, body), each read by the render service in the PR that adds the type (ADR-0049). Body fallback to knowledge search is named as later work.
    • D2: the object-level AI keys (enable.aiReadable and the refused write arms) stay as ruled; a pack grants nothing and hides nothing.
    • D3: the render contract — every read is the caller's and is the read a record tool already makes. Objects are judged first (root, then each related child; a refusal refuses the whole call, mcp: one read that answers "each X with its latest Y" and reads several related objects, in place of a chain of calls the client stitches #35145), then fields are projected onto the caller's served schema, then surviving lookups' targets. A field the caller's schema shows but cannot read is named withheld (mcp: query_records and get_record say which fields field-level security withheld, so an answer says "not visible to you", not "blank" #35137); a field the schema hides is not named and one non-naming statement says some material is not visible (membersWithheld precedent, point 10). Unreadable related rows absent; no id for an unopenable lookup; long body as an outline with anchors; one envelope in three parts (data, executor notes, framing sentence), owner proposed @objectstack/core.
    • D4: get_record_context — zod I/O in spec beside the dataset tools, one executor, MCP and the product registry; data:read, read family. Order of judgement: arguments, the root object's gates (before any pack lookup), pack selection with no fallback, then D3's order. Naming bound: no answer names an object, field or pack the caller is not served. The seams for cloud#4969: an ordinary tool call, a read, and a read set derivable from the arguments and published metadata by one exported function.
    • D5: the render service proposed as @objectstack/service-record-context under packages/services/, by the dataset/knowledge executor precedent.
    • D6: ToolExecutionContext.focus restated exactly as conversation focus: a pinned record in the chat request, shown as a chip, kept across navigation #36999 fixes it; get_record_context takes no focus.
    • D7: ActionType gains ask_ai — console-only, calls the focus setter, no target, never an AI tool, absent where the assistant surface or the focus capability is absent.
    • D8: SkillSchema gains context?: string; a skill that declares it must bind get_record_context in tools. MCP skill prompts take one optional record-id argument and carry the call's arguments as one JSON object instead of inlining the pack.
    • D9: citation shape { object, id, anchor?, quote }; no schema until its reader (row 10).
    • An implementation split table carries epic rows 5–10 with lane, blocker and expected Metadata-protocol:.
  • docs/adr/README.md regenerated by pnpm adr:index (one row, the counts).

Read first, by risk:

  1. D3 "The pack is projected before its reads are planned", "Object level" and "Field level", and D4 "Order of judgement", "The naming bound" and "The seams" — the permission boundary and what cloud#4969 builds on.
  2. "Points that go past the card's words", points 1, 2 and 10 — the three the record hands to the maintainer.
  3. D6 against conversation focus: a pinned record in the chat request, shown as a chip, kept across navigation #36999's card text (must match it word for word in substance).

Tests

None: the diff is two files under docs/adr/. No behaviour changed.

Acceptance notes

  • Every position the record cites was read on main at e1dee7ae and is written as a symbol anchor; pnpm check:adr-symbol-anchors resolves them.
  • Corrections to the card's premises, found by reading the tree:
    • "the object-level ai key" is the enable.aiReadable read key plus the refused write-arm spellings (packages/spec/src/data/ai-read-exposure.ts, object.zod.ts#CAPABILITIES_AI_WRITE_ARM_GUIDANCE); the record spells it so.
    • No shared "data, not instructions" wrapper exists today (packages/mcp/src/mcp-http-tools.ts#textResult serializes JSON only); the record names one owner as a proposal.
    • ADR-0149 D2 exists in two forms: the dataset tools declare zod in spec, search_knowledge keeps JSON Schema in its service. The record follows the dataset form and says so.
    • A lookup whose target the caller may not read is not refused by the record tools; the engine leaves it unexpanded (packages/objectql/src/engine-reference-name-visible.ts). The record therefore says each read meets the gates the record tool making the same read meets.
    • ai.exposed is ADR-0011's block; ADR-0066 is not cited for it.
  • Contract review, three rounds (brief 7143243476): round 1 on fa8cdc93 FAIL (M1, S1–S3; record 7143262163); round 2 on 81bd066b PASS with S4 open (record 7143637250); round 3 on 1fc38533 PASS, No must-fix, no should-fix. (record 7143824235).
  • Accepted deviations (round-3 nits, left unfixed because a fix moves the governed head): N10 — an expansion has two gates in the tree and only the system-object guard refuses; a target whose API exposure does not serve get is withheld by servedExpand and renders as an unexpanded lookup, which the record's sentence "Where the record tools do not refuse, the pack does not either" already decides. N11 — Provenance item 4 and the Status line still speak of one approver, while the Points section hands points 1, 2 and 10 to the maintainer; the Points section governs.
  • Not filed, by rule: rows 5–10. They are filed after this merges.

Verification

Head 1fc3853349219086768123e814c6369208a29b47 (base e1dee7ae; two patch commits on fa8cdc93, no merge of main). Local, on each round's final text, the families node scripts/pm/dispatch-gates.mjs derives for docs/adr/**, all exit 0:

0  pnpm adr:index            (unchanged on the final text)
0  pnpm check:adr-index
0  pnpm check:adr-symbol-anchors
0  pnpm check:adr-anchors
0  pnpm check:closed-ceremony-text
0  pnpm check:doc-authoring
0  pnpm check:pm-prior-rulings
0  node scripts/check-adr-links.mjs

Governed surface: docs/adr/** is Tier H. This PR stays draft; landing waits for an authorized approval or the maintainer's merge. skip-changeset: the diff publishes nothing from any package.

🤖 Generated with Claude Code

https://claude.ai/code/session_01JQwxbZSA7o5vcLjQjM1myV

…_record_context, focus, ask_ai, skill context, citation shape

Proposed. Admits the `ai_context` metadata kind and its six v1 keys, fixes the
render contract (read as the caller, withheld fields named, unreadable rows
absent, long bodies as an outline, one data-not-instructions wrapper), declares
`get_record_context` once in spec for every transport with a read set an
interceptor can derive, restates the `ToolExecutionContext.focus` contract the
sibling conversation-focus card fixes, adds the `ask_ai` action type, the skill
`context` key and the citation shape. Builds on cloud ADR-0119. Field egress is
not decided here. docs/adr/README.md regenerated by `pnpm adr:index`.

Clause-②: no
Metadata-protocol: none

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JQwxbZSA7o5vcLjQjM1myV
@objectstack-fleet objectstack-fleet Bot added documentation Improvements or additions to documentation skip-changeset PR has no user-facing published change; bypasses the changeset gate labels Nov 24, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:cloud#1 · os-warren · session_01JQwxbZSA7o5vcLjQjM1myV

The brief this card thread handed its isolated contract-review subagent for head fa8cdc935ac8cb21b1e70d8b861871dba6647000 (posted beside the record, per references/contract-review.md). The record follows in the next comment.

Contract review brief — PR #37115 @ fa8cdc935ac8cb21b1e70d8b861871dba6647000 (card #36997)

You review at CONTRACT_REVIEW_TIER. Render ONE ## Contract review record on this head — its shape is
node scripts/pm/record-recognisers.mjs --template --paths docs/adr/0160-record-scoped-ai-inquiry.md docs/adr/README.md — with a PASS or FAIL verdict, and post it as ONE comment
on the PR or its card.

Inputs — these and nothing else:
· card #36997: its body and EVERY comment (rulings and earlier records included)
· PR #37115: its body, its file list, and the net diff against main at fa8cdc935ac8cb21b1e70d8b861871dba6647000
· the check-runs on fa8cdc935ac8cb21b1e70d8b861871dba6647000: their conclusions ARE the gate verdicts
⛔ Not the dispatch order, ⛔ not the dispatching seat's own conclusions — this brief is adversarial by design.

Scope — the paths reviewFace returns as hits on this PR's file list: docs/adr/0160-record-scoped-ai-inquiry.md, docs/adr/README.md;
plus every file IN THIS DIFF that directly implements or enforces them — the gate that enforces a rule, the code
a jsdoc or schema line describes, the validator a skill teaches — reviewed for agreement with the contract.
Widen it freely, ⛔ never below hits; the record's Scope: line names the implementing files apart from hits.
The rest of the diff (tests, unrelated modules, lockfiles, generated output, changesets) is the lane seat's
ACCEPT at TIER_DEFAULT, exactly as a standalone PR of those files.
④ judges the hits files and those implementing files ONLY:
lockfiles, generated output, changesets and prose elsewhere in the PR are not reviewed;
code outside the diff is READ to judge them, never reviewed.

Security — a hits path sits on the low-risk skills arm: when the change teaches security, auth or permission
behaviour the path name doesn't show, the record says so and the seat adopting the record adds the security label.
The record says so on its Security-touching: line, and the arm lands on no alone: write no ONLY when no changed
hunk teaches permission, sharing, credential, token, authentication or other security behaviour, else yes.

⛔ READ-ONLY. No worktree, no checkout, no build, no test run, no gate re-run, no ablation: the check-runs
on the head already answered every derived gate family, and a local run costs more than it returns.
If ONE probe is unavoidable, the record's Local-runs: line says probe — REASON; otherwise none.
Scratch space is /tmp/claude-0/-home-user/a369c954-319d-59ad-9503-d19982af33e9/scratchpad/pr-37115/ alone; nothing there you did not write this round is read.

Judge, in the record's own sections:
① Derived judgments — every accept-set and public-surface change the diff implies, each named right or wrong.
② Semver level — the changeset (or skip-changeset) matches what the diff publishes, and the Clause-②: line.
③ Boundary flags — every dev flag and every open_questions entry answered, or escalated.
On every face, SQL push-down: a new id materialisation or in-app join where SQL could push down is a
finding unless a reason is given (AGENTS.md, Prime Directive 5: SQL first).
④ Design judgment — for EVERY hits file: does the change hold against the code it cites and the
scenario it is accepted against? A skill file against the card's eval prompt and the spec it teaches
on main; a schema file against the ruling or ADR it implements and its first consumer; an ADR
against its first consumer and its execution plan. For EVERY implementing file in the diff: does the
code agree with the contract, sentence by sentence? Read the cited code in the live tree, and try to
break the design.
Grade each finding must-fix, should-fix or nit — a nit has no effect on correctness or the contract.
A must-fix is a FAIL; a must-fix or should-fix earns a delta review of its fix; nits alone end the round.
Spell a must-fix or should-fix with its id and grade, S1 (should-fix) — …, and a clean round as
No must-fix, no should-fix.: the queue guard reads a graded finding as OPEN on this head and
refuses the record; the delta record names those it closes by id alone, S1: closed.
A nit is fixed only on the prose faces, or left as an accepted deviation or a follow-up card: a fix
anywhere else moves the head, and this record no longer covers it.
⛔ Judge the tree, never the PR body's account of it.
Sign Implemented-by: with the dev's branch and Reviewed-by: with your session id — the value is the FIRST
thing after each colon.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:cloud#1 · os-warren · session_01JQwxbZSA7o5vcLjQjM1myV

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: fa8cdc935ac8cb21b1e70d8b861871dba6647000
Local-runs: none
Scope: docs/adr/0160-record-scoped-ai-inquiry.md, docs/adr/README.md + none
Security-touching: yes

Read for this record: card #36997 (body and its three comments: two triage posts and the claim), PR #37115 (body, the two-file list, the net diff e1dee7ae..fa8cdc93), the check-runs on the head, epic #36996, sibling #36999, cloud#4969 and cloud ADR-0119. Cited code was read in the tree at the head with git show and git grep; nothing was checked out, built or run. The security line's yes is meant: D3, D4 and D6 teach permission behaviour (reads as the caller, refusals, withheld fields, the advisory focus).

① Derived judgments

  • The diff publishes nothing. Two files under docs/adr/: the new record and the regenerated index. No schema, no code, no changeset, no anchor under scripts/adr-anchors/. Right: the card's acceptance asks exactly this, and the record's Status line says it.
  • Accept-sets the record declares for later PRs, none landed here. A metadata kind ai_context with six keys (row 5); the tool name get_record_context on MCP_DOOR_TOOL_NAMES (row 5) and PLATFORM_TOOLS_BY_PACKAGE (with cloud's registration); ActionType member ask_ai (row 6); SkillSchema.context (row 8); a citation shape with no schema (row 10). Each is additive and each is tied to a reader in the PR that adds it. Right against ADR-0049 and epic ruling 4. ToolExecutionContext.focus is conversation focus: a pinned record in the chat request, shown as a chip, kept across navigation #36999's, restated and not added here. Right.
  • docs/adr/README.md. One row for ADR-0160, records 160 to 161, numbers 155 to 156, Proposed 8 to 9, total 161. Internally consistent; the index gate is in Lint & Repo Gates.
  • Gate verdicts, from the check-runs on this head. Lint & Repo Gates, Lint · docs & code guards, Lint · repo & tooling gates, Lint · PM dispatch-gates, Check Documentation Links, Check Changeset, Governed Surface Queue Guard, PR-body guards, TypeScript Type Check and the other lint and type-check jobs: success. The UI, docs-build, E2E and opt-in jobs: skipped by the path filter. Test Core (1/10) was still in progress at my last read; no run on the head had failed. The diff holds no code, so no test outcome bears on the two reviewed files.
  • Citations. Every path#Symbol I opened exists at the head and says what the record claims of it: registerObjectTools and its read guard (isSystemObject, aiReadExposed), wireBridgeTools, registerDatasetTools, textResult, withheldFieldNames, WITHHELD_FIELDS_NOTE, judgeRelatedLists, judgeQueryExpand and the mcp: one read that answers "each X with its latest Y" and reads several related objects, in place of a chain of calls the client stitches #35145 header, callData and checkApiExposure, enforceApiExposure, createStdioDataBridge (it takes datasetTools from the host), serveReferenceNames, aiReadExposureRefusal (the header's "would change nothing"), CAPABILITIES_AI_WRITE_ARM_GUIDANCE (the five spellings), getDatasetToolJsonSchemas, createDatasetTools, createKnowledgeTools (JSON Schema kept in the service), resolveMcpDatasetToolsService, resolveMcpKnowledgeToolsService, routeToolCallsThrough and McpToolCallContext, ActionType (the six members), TARGET_REQUIRED_TYPES (every type but script), ActionAiSchema, isHeadlessInvokableAction, ActionRunner and RunnableActionType, SkillSchema (strict), skillPromptResult (one message, no arguments), skillBindingServed, useAiSurfaceEnabled, ToolExecutionContext (no focus; the surfaceContext docblock's words), pickSentenceLocale (used by service-analytics and packages/mcp), MCP_DOOR_TOOL_NAMES, PLATFORM_TOOLS_BY_PACKAGE, PLATFORM_TOOL_FAMILY_PREFIXES, the skill registry row (the flags D1 copies), packages/mcp/package.json (no runtime dependency), AGENTS.md on the frozen plugin- prefix, ADR-0088's three clauses and its validation addendum, ADR-0005's ai row, ADR-0149 D2 and M1. sys_user declares enable.aiReadable: true, so the illustration's owner lookup is not refused by the system-object guard. "Nothing is taken" holds: the only other hit for ai_context is ADR-0149's mention of Cube's key of that name, which declares nothing.

② Semver level

skip-changeset is right: the diff publishes nothing from any package, and Check Changeset is green on the head. Clause-②: no is right: no accept-set or published surface moves in this PR. Metadata-protocol: none is right for this PR; the record's split assigns added to rows 5, 6, 8 and 10, each in the PR that brings the key and its reader.

③ Boundary flags

The PR declares no open_questions. Its flags are the nine "Points that go past the card's words", the five corrections to the card's premises and the three "read first" items.

  • Point 1, pack selection. Holds against the tree: judgeRelatedLists refuses "none, or several" with the candidates named, the same posture. The order of this refusal against the root object's gates is S1. Whether several packs on one object should refuse the ask_ai path is the maintainer's; the PR body escalates it and I add nothing.
  • Point 2, an object-level refusal is the whole call's. Follows mcp: one read that answers "each X with its latest Y" and reads several related objects, in place of a chain of calls the client stitches #35145 as the header of mcp-relation-reads.ts states it. What that refusal may name is S1. The choice between a refusal and a stated omission is the maintainer's; the PR body escalates it. cloud#4969 leaves "refuse or trim" to its PR, and D3 settles the open executor's side as refuse.
  • Point 3, no bare id for a lookup to an unreadable row. Stricter than get_record, which serves the stored id. Safe. N2 on the dangling case.
  • Point 4, anchor on the same tool. Holds.
  • Point 5, related one level, body an object. Holds; it is the shape of get_record's related less orderBy and limit, which D1 lists as later work.
  • Point 6, ask_ai takes no target and refuses ai.exposed: true. Holds: TARGET_REQUIRED_TYPES excludes only script today and isHeadlessInvokableAction answers false for an unknown type. The spec already keeps operation: 'update' on the default script type, so no declarative-update route admits it.
  • Point 7, the MCP prompt names the tool call. Holds, and it is what epic ruling 3 requires: the pack is a tool result, never prompt text.
  • Point 8, the read-set function is exported and the pre-read is a tool call. Holds against cloud ADR-0119 D3 and epic row 9. N6 on the two computations.
  • Point 9, registry flags follow the skill row. Holds: read at DEFAULT_METADATA_TYPE_REGISTRY, the flags match.
  • The five corrections. Each checked and right: the object-level key family; no shared wrapper (textResult serializes JSON only); ADR-0149 D2's two forms; a lookup to an unreadable target is left unexpanded, not refused (judgeQueryExpand judges the target by the read guard, which asks only the system-object question); ai.exposed is ADR-0011's.
  • D6 against conversation focus: a pinned record in the chat request, shown as a chip, kept across navigation #36999. The contract line, the docblock, the name, the capability gate and the entry point match the card's items 1, 4 and 5 in substance. N3 on the one sentence left out.
  • SQL push-down. No finding. The record introduces no id materialisation and no in-app join: the root is one get, a lookup is the engine's batched expansion, a related list is one capped query filtered by the parent link, and the body outline is text work on one field value. D3 binds every read to the read a record tool already makes.

④ Design judgment

docs/adr/0160-record-scoped-ai-inquiry.md

What I tried to break and could not: no read leaves the caller's context (D3 forbids a system context and a driver read, and D4 seam 1 forbids a direct call of the render service); the related list is read as the caller, so no id, count or truncated flag reflects a row the caller cannot read; a root the caller cannot read answers as a missing one, as get_record does; a masked value passes through unchanged; a forged focus reads nothing, because the tool takes no focus and the record is named in the arguments; a skill's context or a context argument naming another audience's pack widens nothing, because the pack only selects among reads the caller's own permissions decide; every v1 key of ai_context and each of its sub-keys has a named reader in row 5; the six rulings are quoted verbatim from the epic; cloud ADR-0119 D1, D3 and D4 are summarised as that record states them, and D7's ask_ai and D8's prompt argument bring no in-product agent into the open edition; the implementation split's rows, lanes and blockers match the epic's table row for row.

Findings:

  • M1 (must-fix) — The "not visible to you" rule does not fire for an ordinary caller, and the record says the opposite in its TL;DR. D3 "Field level" names a field as withheld only when the caller's served schema shows it and getReadableFields leaves it out; a field the served schema does not show "is omitted and nothing is said about it". Under ADR-0106 D1 a field the caller may not read is removed whole from that caller's served schema, D8 makes this the default, and D4 exempts only system and platform-admin callers. The tree pins it: packages/runtime/src/domains/mcp-object-schema-mask.test.ts has "a member whose schema hides the denied field is never answered it" (withheld list empty) beside "an exempt author whose schema shows the denied field has it withheld". So for the epic's own scenario, an employee asking about a record with a field that field-level rules hide, the pack says nothing and the model has no way to tell hidden from absent. Epic ruling 2 reads "A field hidden from the caller reads 'not visible to you'", card item 3 reads the same, TL;DR item 3 of this record reads "A field hidden by field-level rules is named and reads 'not visible to you'", and the record states that no ruling is reopened. D3's body is the safe reading of ADR-0106, but it leaves the ruled sentence in force only for exempt callers or with the D8 switch off, and that settlement is not among the nine points handed to the approver. The tree holds a precedent the record does not weigh, in the very sentence of ADR-0149 D2 it cites for author defects: "a member whose fields this caller cannot read (step 4) is omitted for this caller, and the dataset entry carries membersWithheld: true ... the ADR-0090 D10 rule that a narrowed read arrives with the narrowing stated". The record has to decide among three contracts and say which: name the field (against ADR-0106 D1), carry a statement that names nothing, or stay silent (short of ruling 2). Then TL;DR item 3 must say what D3 says, and the choice must be listed for the approver.
  • S1 (should-fix) — A refusal can name what the caller's schema hides, and pack selection is not ordered after the root object's gates. The record tools name only what the caller typed: notRecordedMembersOf is "decided from two things only: the names the caller sent, and the object as the caller's own schema shows it". In a pack the names are the author's. (a) D4 "Pack selection" refuses with the candidate packs named, and D1 gives label that reader, but nothing says the root object's gates run first. A caller who is not served object X (ADR-0106's 2026-11-11 amendment: such a read answers "exactly as that outlet answers a name that names no object") would learn that X exists and what its packs are called, and could tell "no such pack" from "pack rooted elsewhere". (b) D3 answers an object-level refusal "in the record tools' envelope and with their code"; that envelope carries the refused object, so a caller refused on a related child object learns the name of an object their object list hides. One sentence each closes it: the root object's gates are judged before pack selection and a caller they refuse gets get_record's answer for that object; a pack refusal names no object, field or pack that the caller's served schema would not show.
  • S2 (should-fix) — Two of D3's rules give different answers when field-level rules hide a field the pack uses structurally. "Each answers as that read answers" and "a field the caller's served schema does not show is omitted and nothing is said" disagree in two cases. A lookup listed in fields that the caller's schema hides: judgeQueryExpand refuses the whole call with INVALID_FIELD and the field named. A related entry whose link field the caller's schema hides, or whose child shows the caller no link field: judgeRelatedLists refuses the whole call with INVALID_FIELD ("has no field you can read that points at"). D3 does not say which rule wins, and for the related case it says nothing at all: refuse the pack, or leave the section out. The first also tells the model its request was malformed when the caller sent no field. The record should state that field-level rules are applied to the pack before its reads are planned, and rule the hidden-link-field case.
  • S3 (should-fix) — The envelope is declared with two parts, and three kinds of executor-written text have no place in it. D3 gives the output "two parts": the data member and one sentence slot saying the data member is not instructions. The same section has the executor write the withheld-fields sentence and state every cut, and D4's list of what the data member holds includes neither. Inside the data member, the wrapper tells the model not to follow them, which undoes the "never say they are empty" guidance; outside it, the envelope has more than two parts. The record should say where executor-written statements sit. It should also reconcile "as JSON string values" with "the value as served" for a number or a boolean.
  • N1 (nit) — D3 lists three reads (the root, a lookup in fields, a related entry), while D4's read set also holds the target of a lookup inside a related entry's fields; get_record's related read expands nothing, so that is a fourth read. The record tools cap one call at 3 expanded lookups, 3 related lists and 20 rows a list (QUERY_EXPAND_MAX_FIELDS, GET_RECORD_MAX_RELATED_LISTS, RELATED_LIST_MAX_ROWS); D3 leaves "the bounds" to row 5 without saying whether a pack's entry counts are bounded.
  • N2 (nit) — D3 renders a lookup the caller's expansion left bare as "not visible to you". The engine also leaves a dangling id bare, and telling the two apart needs a read the caller cannot make, so both render alike; one clause would say so. For a referenceNameVisible field the engine serves an id beside the name; D3 does not say whether the pack carries it.
  • N3 (nit) — D6 restates conversation focus: a pinned record in the chat request, shown as a chip, kept across navigation #36999's items 1, 4 and 5 but not the sentence of item 2 that bounds row 9: "The request body is the authority; anything stored on the conversation only restores the chip."
  • N4 (nit) — The split copies the epic's lanes, which understate three rows: row 9's objectstack half (PLATFORM_TOOLS_BY_PACKAGE's maintenance contract asks the name and a chatbot.tool.get_record_context label in every locale pack) has no objectstack row; row 7's form is a spec file by the packages/spec/src/ai/skill.form.ts precedent; row 8's key is a spec key.
  • N5 (nit) — D8: a skill with context is not required to bind get_record_context in tools, which a runtime that filters tools per skill needs for an anchor re-read. The prompt's record-id argument is client text spliced into a platform-written line; D3's own rule suggests refusing a value that is not an id.
  • N6 (nit) — D4 seam 3: an interceptor and the executor each compute the read set, and a pack published between the two changes it. The data door still enforces every read, so this costs nothing; one clause would say the set an interceptor judges is the call's plan, not a guarantee across a publish. D3's "no id, count or marker" should also say that the ADR-0090 D10 narrowing statement the record tools carry beside a narrowed list (diagnoseDelegation) is kept.

docs/adr/README.md

Generated by pnpm adr:index; one row and the counts, consistent with the new file's title, Status and date. No finding.

Implemented-by: claude/project-thread-qmmhf6
Reviewed-by: session_01JQwxbZSA7o5vcLjQjM1myV
Independence: rendered by an isolated subagent of that session at the review tier. It did not draft the record under review, read the dispatch order or take the drafting side's conclusions; its inputs were the card, the PR, the head's check-runs, the tree at the head and the cited records.

VERDICT: FAIL

Answers M1 and S1–S3 of the review record on fa8cdc9: a field the caller's
schema hides is stated without being named (point 10, read beside ADR-0106
D1); the root object's gates run before pack selection and no answer names
what the caller is not served (point 12); a hidden field the pack uses
structurally drops its part instead of refusing the pack (point 11); the
envelope has three parts (data, notes, framing sentence), values as served.
Nits N1–N6 applied (N5 half declined: record ids have no grammar to refuse
against).

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JQwxbZSA7o5vcLjQjM1myV
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:cloud#1 · os-warren · session_01JQwxbZSA7o5vcLjQjM1myV

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 81bd066b6fdb8395dad11f4018207ac9600768ba
Local-runs: none
Scope: docs/adr/0160-record-scoped-ai-inquiry.md, docs/adr/README.md + none
Security-touching: yes

Delta round on the record of fa8cdc93. Read for it: the delta fa8cdc93..81bd066b (one commit, docs/adr/0160-record-scoped-ai-inquiry.md only), the whole record at the new head, card #36997 and its comments (unchanged since round one), PR #37115 (body, file list, its two comments: the round-one brief and record), the check-runs on the new head, and the code the delta newly cites, read at the new head with git show and git grep. Nothing was checked out, built or run. The security line's yes is meant: the delta rewrites the permission contract of D3 and D4.

① Derived judgments

  • The delta publishes nothing. One file, 73 lines added and 32 removed, all prose in the ADR. The net diff against e1dee7ae is still the two files under docs/adr/.
  • docs/adr/README.md is untouched and still right. The delta changes neither the record's title, its Status line nor its date, which are what the index row is generated from.
  • Accept-sets declared for later PRs. Two additions to round one's list, both tied to a reader: the ai_context schema bounds a pack's entry counts and refuses an oversized pack at parse (row 5); a skill that declares context must bind get_record_context in tools or is refused at parse (row 8). Right: each is enforced by the parse that adds the key, and the second touches no existing skill because the key is new.
  • New citations, each read at the head. packages/spec/src/ai/dataset-tools.zod.ts#DatasetToolCatalogEntrySchema carries membersWithheld, and its description holds the quoted words "so an answer can say a measure exists that this caller may not see". The docblock of notRecordedMembersOf holds both quoted sentences. QUERY_EXPAND_MAX_FIELDS, GET_RECORD_MAX_RELATED_LISTS and RELATED_LIST_MAX_ROWS are 3, 3 and 20, and get_record's related read passes no expand. ADR-0106 D1 holds "still leaks existence"; its D8 and D4 say what the record says of them. mcp-object-schema-mask.test.ts holds both test names. diagnoseDelegation is a member of McpDataBridge. packages/spec/src/ai/skill.form.ts and ui/packages/i18n/src/locales/ exist, and the maintenance contract in platform-tool-names.ts asks what the split's note says it asks. PERMISSION_DENIED is the code judgeTarget throws.
  • Gate verdicts on this head, as read. Success: Governed Surface Queue Guard, PR-body guards, Check Documentation Links, Check PR Size, Lint · PM dispatch-gates, Type Check · workspace, Type Check · debt ledger, the three scoped lint jobs. Skipped: Check Changeset (the PR carries skip-changeset) and the UI, docs-build, E2E and opt-in jobs. Still in progress at my last read: Lint · docs & code guards, Lint · repo & tooling gates, Lint · CI, release & engine gates, Lint · ESLint, Type Check · source gates, Type Check · consumer gates, Test Core (1/10). None had failed. The two lint jobs that hold the ADR gates had not concluded, so this record gives no verdict for them; the seat reads their conclusions before it adopts this record.

② Semver level

Unchanged from round one and still right: skip-changeset, Clause-②: no and Metadata-protocol: none for a diff that publishes nothing. The split still assigns added to the rows that bring a key.

③ Boundary flags

  • Point 10, for the approver. It is a reading of epic ruling 2 ("A field hidden from the caller reads 'not visible to you'") beside ADR-0106 D1, not something either text says by itself, and it needs the maintainer's acceptance. The record presents it as that. The Provenance section flags it directly under the quoted rulings. D3 states how the two are held together. Point 10 names the choice and both alternatives not taken (name the field for every caller, against ADR-0106 D1; say nothing, short of ruling 2). The Consequences state the outcome in one line: an ordinary caller is told that something is hidden, never what. Two limits. The record hands all twelve points to "the approver" alike; it does not say that point 10, which construes a maintainer ruling, is the maintainer's own to accept. And the PR body was not moved with the head: its maintainer summary still counts nine points and still says a hidden field reads 「你看不到」 without the qualification, its D3 line still says "withheld fields named with the mcp: query_records and get_record say which fields field-level security withheld, so an answer says "not visible to you", not "blank" #35137 sentence", and its Verification names the old head. The PR body is outside the reviewed faces, so this is escalated to the seat, not graded: the maintainer's summary has to state point 10 before the maintainer is asked to merge.
  • Point 11. Holds as a field-level rule against the tree: judgeQueryExpand and judgeRelatedLists refuse a caller-typed name the served definition does not show with INVALID_FIELD, and the record gives the reason a pack must answer otherwise. Its edge against point 2 is S4.
  • Point 12. Holds: the root's gates before pack selection is the order get_record itself runs (readGuard first), one answer for an unknown pack and a pack rooted elsewhere removes the oracle, and one code for every object-level refusal of a pack-declared object is stated as a settlement.
  • Points 1 and 2 stay the maintainer's, as in round one. Point 2's alternative is now worded as the mechanism of point 10, which is accurate.
  • The declined half of N5. The commit message declines a grammar check on the record id because record ids have no grammar to refuse against. Accepted: the id now rides as a JSON string value inside the arguments object and is never joined into the platform's line, which answers the concern.
  • SQL push-down. No finding. The delta adds a fourth read kind, a lookup in a related entry's fields, as query_records' expand on the child: the engine's batched expansion, not a per-row read. Projection is metadata work on served definitions and reads no rows.

④ Design judgment

docs/adr/0160-record-scoped-ai-inquiry.md

Round one's graded findings:

M1: closed
S1: closed
S2: closed
S3: closed

  • M1. D3 "Field level" now has two branches and a statement that names nothing for the default branch, on the membersWithheld precedent; TL;DR item 3 says what D3 says; point 10 lists the choice with its alternatives. The statement depends on published metadata and the caller's served schema only, never on record data, and it fires nothing for an author defect, so it is one fixed bit and no oracle.
  • S1. D4 "Order of judgement" puts the root object's gates before pack lookup and gives a refused caller get_record's answer whether or not a pack exists. "The naming bound" limits every answer to the names the caller sent and what the caller is served, and gives one code to every object-level refusal of a pack-declared object.
  • S2. D3 "The pack is projected before its reads are planned" fixes the precedence, and the third field-level bullet rules the hidden lookup, the hidden link field and the hidden body. D1 resolves a related link once on the published definition, so no caller follows a different link than the author declared.
  • S3. The envelope has three parts. Executor statements sit in the notes, outside the data member the framing sentence covers; values are carried as served.
  • The nits N1 to N6 are applied: four read kinds and schema bounds on entry counts (N1), the dangling id and the referenceNameVisible form (N2), the request-body sentence in D6 (N3), the note under the split (N4), the tools binding and the JSON arguments (N5, one half declined with a reason), the plan-not-guarantee clause and the kept narrowing statement (N6).

What I tried to break in the new text and could not: the non-naming statement cannot be turned by record data; a context argument cannot probe for packs on an object the caller is not served, nor tell an unknown pack from one rooted elsewhere; the candidate packs a refusal names are rooted on an object the caller was just shown to be served; a note lists only names the caller's served schema shows and never record text; a hidden lookup is dropped before its target is judged, so no refusal follows from a field the caller cannot see; the tools binding lets skillBindingServed withhold a skill where the tool is not served, which the record states as intended.

New findings:

  • S4 (should-fix) — The fixed order lets projection swallow the case point 2 rules. D3 fixes the order: project the pack onto the definitions the caller is served, take out every entry that schema does not show, plan the reads from what remains, and then "each planned read meets the gates". For a related child object the caller may not read at all, the caller is served no definition of it (servedObjectDefinitionOf answers null; ADR-0106's amendment of 2026-11-11). Its link field is therefore not shown, the third field-level bullet drops the section with the statement, no read of the child is ever planned, and the object-level gate never refuses. That is the outcome point 2 names as the alternative not taken, for exactly the case point 2 and the PR's maintainer summary describe: a user who can read the root but not one related object. The record's intent is the other reading: the naming bound's arm for a refused object "the caller's served schema" does not show exists only if such an object is refused, not projected away. The tree's own order agrees with that intent: judgeRelatedLists passes each child through the read guard "FIRST (nothing about a refused object is read, its definition included)" and only then reads the served definition. The record should say that the objects a pack declares are judged at object level before projection, and that projection is a field-level step on objects the caller is served. Until it does, row 5 can implement either answer from this text, and the maintainer's ruling on point 2 would not decide which.
  • N7 (nit) — D3 calls every note "a fixed sentence of the executor's", but the narrowing statement is the security service's sentence, relayed by a probe (describeDelegationNarrowing behind the bridge's diagnoseDelegation). "Where the bridge establishes one" also leaves the product door, which has no bridge, unsaid. The dataset executor's precedent is to take the probe as a dependency (datasetToolMembers in packages/runtime/src/domains/mcp.ts).
  • N8 (nit) — Between row 8 and the objectstack half of row 9, a skill kept out of MCP (mcpPrompt: false) that declares context is required at parse to bind get_record_context, a name the skill.tools[] lint rule still reports for such a skill because only the door serves it. The finding is advisory; the split's note on row 9 could say the name joins PLATFORM_TOOLS_BY_PACKAGE no later than row 8.
  • N9 (nit) — D3 says an anchor that no longer resolves is refused. It does not say that an anchor sent by a caller whose projection has no body answers the same way as one sent against a pack with no body, which the "names nothing" rule requires.

docs/adr/README.md

Not in the delta; still consistent with the record. No finding.

Implemented-by: claude/project-thread-qmmhf6
Reviewed-by: session_01JQwxbZSA7o5vcLjQjM1myV
Independence: rendered by an isolated subagent of that session at the review tier, the one that rendered the record on fa8cdc93. It did not draft or patch the record under review, read the dispatch order or take the drafting side's conclusions; its inputs were the card, the PR, the new head's check-runs, the tree at the new head and the cited records.

VERDICT: PASS

Answers S4 of the review record on 81bd066: every related child is judged at
object level before projection, so a child the caller may not read refuses the
pack (point 2) instead of dropping its section; lookup targets keep the record
tools' order (field on the served definition first, then the target's guard).
Nits N7–N9: the narrowing statement is the security service's sentence relayed
through a probe taken as a dependency on both doors; the advisory skill.tools[]
report is expected until row 9; one refusal for any anchor that does not
resolve. Points 1, 2 and 10 are named as the maintainer's.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JQwxbZSA7o5vcLjQjM1myV
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:cloud#1 · os-warren · session_01JQwxbZSA7o5vcLjQjM1myV

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 1fc3853349219086768123e814c6369208a29b47
Local-runs: none
Scope: docs/adr/0160-record-scoped-ai-inquiry.md, docs/adr/README.md + none
Security-touching: yes

Third round, a delta on the record of 81bd066b. Read for it: the delta 81bd066b..1fc38533 (one commit, 17 lines added and 16 removed, docs/adr/0160-record-scoped-ai-inquiry.md only), the changed sections in the whole record at the new head, PR #37115 (body and file list), the check-runs on the new head, and the code the delta newly cites or leans on, read at the new head with git show and git grep. Nothing was fetched, checked out, built or run: the commit was already in the local repository. The security line's yes is meant: the delta reorders the object-level and field-level judgement of D3 and D4.

① Derived judgments

  • The delta publishes nothing. Prose in one ADR. The net diff against e1dee7ae is still the two files under docs/adr/. It declares no new accept-set for a later PR.
  • docs/adr/README.md is untouched and still right. The delta changes neither the title, the Status line nor the date.
  • New citations, each read at the head. describeDelegationNarrowing is an optional member of packages/spec/src/contracts/security-service.ts#ISecurityService. packages/runtime/src/domains/mcp.ts#datasetToolMembers builds that probe and hands it to the dataset executor. packages/lint/src/validate-ai-tool-references.ts exists and its header fixes the severity at warning. The quotation from judgeRelatedLists, "FIRST (nothing about a refused object is read, its definition included)", is exact. judgeQueryExpand does read the served definition first and judge the target's guard second.
  • Gate verdicts on this head, as read. The runs had started a few minutes before my last read. Success: Governed Surface Queue Guard, PR-body guards, Check Documentation Links, Check PR Size, Auto Label. Skipped: Check Changeset (the PR carries skip-changeset), Queue verdict, Borrowed queue verdict, the schedule gate and the two opt-in jobs. Still running: filter, Lint · docs & code guards, Lint · repo & tooling gates, Lint · CI, release & engine gates, Lint · ESLint, Lint · PM dispatch-gates, Lint · scoped · query-options erasure, Lint · scoped · slot lookup & corpus, Lint · scoped · tooling self-tests, Type Check · workspace, Type Check · source gates, Type Check · consumer gates, Type Check · debt ledger. The test jobs behind filter had not been listed yet. None had failed. The two lint jobs that hold the ADR gates had not concluded, so this record gives no verdict for them; the seat reads their conclusions before it adopts this record.

② Semver level

Unchanged and still right: skip-changeset, Clause-②: no and Metadata-protocol: none for a diff that publishes nothing.

③ Boundary flags

  • The author's choice on S4: root and related children before projection, lookup targets after it. Right, and it is the better reading of what I asked. A related entry names its object directly, so the object can be judged before anything of it is read, as judgeRelatedLists does. A lookup's target is known only through the field, and judgeQueryExpand judges the field on the served definition first and the target second. Judging targets first, from the published definition, would let a lookup the caller's schema hides refuse the whole pack: a refusal caused by a field the caller cannot see, where the field-level rule already answers with a statement that names nothing. The chosen order gives fewer refusals and discloses no more. It also leaves the read set of D4's third seam as it was: the set is computed from published metadata, and a caller's plan reads a subset of it.
  • Points 1, 2 and 10 are now named as the maintainer's. The Points section says they "change what a user sees and need the maintainer's explicit acceptance", and leaves the rest to the approver. That answers the limit round two noted on point 10. N11 on two sentences that were not moved with it.
  • The PR body is still not moved with the head. Escalated to the seat again, not graded, because the body is outside the reviewed faces. Its maintainer summary still counts nine points, still says a hidden field reads 「你看不到」 without the qualification of point 10, and singles out points 2 and 1 only. Its D3 line still says "withheld fields named with the mcp: query_records and get_record say which fields field-level security withheld, so an answer says "not visible to you", not "blank" #35137 sentence", and its Verification names the first head. The record now requires the maintainer's explicit acceptance of three points; the summary the maintainer reads has to put all three, as the record now states them, before the merge is asked.
  • Points 11 and 12 carry the new order in their own words and agree with D3 and D4.
  • SQL push-down. No finding. The delta changes the order of judgement, which is metadata work; it adds no read.

④ Design judgment

docs/adr/0160-record-scoped-ai-inquiry.md

Graded findings of the earlier rounds:

M1: closed
S1: closed
S2: closed
S3: closed
S4: closed

  • The first four were closed on 81bd066b. This delta touches their text only to add to it and reopens none.
  • S4. D3 now fixes four steps: objects first (the root, then each related[].object, by the system-object refusal, API exposure and whether the caller is served the object at all), then the field-level projection on objects the caller is served, then the targets of the lookups that survived, then the reads. "Object level" says a child the caller may not read "is therefore a refusal and never a dropped section", the third field-level bullet is scoped to a child the caller is served, and D4's step 4, its "Refusals" paragraph and points 11 and 12 say the same. Projection can no longer swallow point 2's case.
  • The nits N7 to N9 are applied: the narrowing statement is named as the security service's sentence and the probe is a dependency on both doors (N7); the split's note says the advisory lint report between rows 8 and 9 is expected, and why the name cannot join earlier (N8); an anchor that does not resolve gets one answer whatever the reason (N9).

What I tried to break in the changed text and could not: a related child is refused before the root record is read, so the refusal does not depend on record data, as in get_record; a child with a hidden link field on an object the caller is served is dropped, and a child the caller is not served is refused, with no case left between the two; a hidden lookup is dropped before its target is judged, so no caller is refused for a field their schema hides; the anchor refusal cannot tell a hidden body from a pack with none; the relayed narrowing sentence is asked per object the caller is served, and a door without the probe states nothing instead of inventing a sentence.

No must-fix, no should-fix.

  • N10 (nit) — Step 3 and "Object level" speak of one gate before an expansion. The tree has two things there, and only one refuses. The MCP read guard refuses a system-object target (judgeTarget). A target whose API exposure does not serve get is not refused: servedExpand in packages/metadata-protocol withholds the entry and "the field answers as an unexpanded lookup" (security(data, analytics): a lookup target's exposure declaration is not judged when the data door's $expand, or the dataset door's dimension-label pass, reads it — detail withheld pending maintainer #22661). The record's general sentence, "Where the record tools do not refuse, the pack does not either", already decides this, and D4's "Refusals" paragraph is careful to say "the guard"; naming the withheld case would keep row 5 from refusing a pack on a lookup target's API exposure. Under the row-level rule such a lookup reads "not visible to you".
  • N11 (nit) — The Points section now gives points 1, 2 and 10 to the maintainer. Two sentences still speak of one approver for all: item 4 of Provenance ("for the approver to accept with the record or strike"), and the Status line, under which an authorized approval that is not the maintainer's also makes the record Accepted. One clause in each would say the three points wait for the maintainer.

docs/adr/README.md

Not in the delta; still consistent with the record. No finding.

Implemented-by: claude/project-thread-qmmhf6
Reviewed-by: session_01JQwxbZSA7o5vcLjQjM1myV
Independence: rendered by an isolated subagent of that session at the review tier, the one that rendered the records on fa8cdc93 and 81bd066b. It did not draft or patch the record under review, read the dispatch order or take the drafting side's conclusions; its inputs were the card, the PR, the new head's check-runs, the tree at the new head and the cited records.

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:cloud#1 · os-warren · session_01JQwxbZSA7o5vcLjQjM1myV

维护者速读

  • 用户能看到什么变化:用户无感。新增一份设计文档 ADR-0160,写定「在一条记录上问 AI」的做法(资料包类型、读取规则、get_record_context 工具、对话焦点、「问 AI」按钮、技能指定资料包、引用格式)。
  • 为什么做:专题 专题:记录范围 AI 问询(在一条记录上问 AI:对话钉在这条记录上、平台按配置交给模型这条记录的资料、外部 AI 经 MCP 拿到同一份) #36996 的子卡 5–10 都以它为契约,合并后才能立卡派发。
  • 出错会怎样:文档本身不影响线上;它定的是 AI 读记录的权限边界,写错会被后面每张实施卡照做。三轮独立契约审核已把边界问题改完(看不到的字段怎么说、拒绝不泄露对象名、对象级先判、信封分区)。
  • 要你做什么:审核通过后合并。请明确同意或划掉第 1、2、10 点(PR 速读里写了三处的后果与另一种做法)。契约审核 PASS 记录 7143824235,Head-sha 1fc3853349219086768123e814c6369208a29b47。

席位意见:ACCEPT。设计与专题六条裁决、cloud ADR-0119 一致;第 10 点是把专题裁决 2 与 ADR-0106 合起来读的落法,属维护者裁量,已在文中和速读里单独交给你。

席位核对 — ACCEPT · repo:cloud#1 · head 1fc3853349219086768123e814c6369208a29b47

Head-sha: 1fc3853349219086768123e814c6369208a29b47

  1. Shape. Two files under docs/adr/: the new record 0160-record-scoped-ai-inquiry.md (Status Proposed) and README.md regenerated by pnpm adr:index (one row, the counts). No schema, code, changeset or anchor. Fixes #36997, Clause-②: no, Metadata-protocol: none, labels documentation + skip-changeset. Matches the card's acceptance ("PR open, Status Proposed; anchors … left to the implementing cards").
  2. Premise, measured. Card facts read at e1dee7ae and on the record's cited symbols: the object-level AI keys are enable.aiReadable plus the refused write arms; ToolExecutionContext has surfaceContext and no focus; no ai_context / get_record_context / ask_ai in the tree; no shared data-not-instructions wrapper exists. Corrections are in the PR body's Acceptance notes. D6 restates objectstack#36999's focus text; the sibling thread was told the shape is unchanged (no reshaping since).
  3. Gates. Local, on each round's final text: pnpm adr:index (unchanged), check:adr-index, check:adr-symbol-anchors, check:adr-anchors, check:closed-ceremony-text, check:doc-authoring, check:pm-prior-rulings, node scripts/check-adr-links.mjs — all exit 0. Check-runs on this head: 26 success, 22 expected skip, 0 unexpected skip, 0 failed, 0 pending (pr-state.mjs --pr 37115, 2026-11-24T20:47Z); mergeable_state clean.
  4. Contract review. Drafted at CONTRACT_REVIEW_TIER, effort xhigh (claim 7142042022); reviewed by a separate isolated subagent at the same tier: brief 7143243476; round 1 FAIL on fa8cdc93 (7143262163); round 2 PASS with S4 open on 81bd066b (7143637250); round 3 PASS on this head, No must-fix, no should-fix. (7143824235). Every graded finding closed by id.
  5. Accepted deviations. N10 (an expansion target withheld by API exposure renders as an unexpanded lookup — already decided by the record's "where the record tools do not refuse, the pack does not either") and N11 (Provenance item 4 and the Status line speak of one approver; the Points section names 1, 2 and 10 as the maintainer's and governs). Left unfixed: a fix moves the governed head. Skills-docs: none — design record, no metadata author surface changes here.
  6. Out of scope and landing. Field egress, vector retrieval, multi-record focus, cloud internals, citation rendering: named in "Not decided here". Rows 5–10 are filed by this seat after the merge; cloud#4969 builds on D4's seams. Tier H (docs/adr/**): lands by an authorized approval or the maintainer's merge; the seat does not approve, ready or merge it on its own.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:cloud#1 · os-warren · session_01JQwxbZSA7o5vcLjQjM1myV

Ready for the maintainer: ADR-0160, Tier H (docs/adr/**).

  • Contract review PASS on this head: comment 7143824235, Head-sha 1fc3853349219086768123e814c6369208a29b47, No must-fix, no should-fix.
  • Seat record ACCEPT: comment 7144068209 (its ## 维护者速读 is the brief).
  • 要你做什么:审核后合并本 PR;请明确同意或划掉 ADR 里的第 1、2、10 点(后果与另一种做法见 PR 正文速读)。
  • The PR stays draft; it lands by an authorized approval or the maintainer's merge.

@objectstack-fleet objectstack-fleet Bot added the pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue label Nov 24, 2026
@os-zhuang
os-zhuang marked this pull request as ready for review November 24, 2026 21:49
@os-zhuang
os-zhuang added this pull request to the merge queue Nov 24, 2026
Merged via the queue into main with commit 32c197e Nov 24, 2026
54 checks passed
@os-zhuang
os-zhuang deleted the claude/project-thread-qmmhf6 branch November 24, 2026 22:27
os-justin pushed a commit that referenced this pull request Nov 24, 2026
Resolve the docs/adr/README.md conflict with ADR-0160 (#37115) by
regenerating the index with `pnpm adr:index`; no hand merge.

Claude-Session: https://claude.ai/code/session_01QSeKYpRrYuqSLCvbSk9zrL
Co-authored-by: Claude <noreply@anthropic.com>
Nenzyz pushed a commit to Nenzyz/objectstack that referenced this pull request Dec 1, 2026
…ce becomes a governed metadata type (objectstack-ai#37119)

Fixes objectstack-ai#37001
Clause-②: no
Metadata-protocol: none

This PR is one decision record and its index row. It changes no file
outside `docs/adr/`, and no schema, contract member or behaviour.

Sequencing: draft PR objectstack-ai#37115 holds record number 0160 and also
regenerates `docs/adr/README.md`, so the two pull requests conflict on
that one generated file and on nothing else. Whichever of the two lands
second merges `main` and re-runs `pnpm adr:index`. This record takes
0161.

## 维护者速读

-
用户能看到什么变化:用户无感。这是一份决定记录:平台自己负责把记录组成文档、保持索引与数据一致、按结构切分、按记录返回结果;向量化调用、混合检索、重排、文件解析仍交给外接的检索后端;「知识源」变成随应用发布、可在界面里配置的受管配置。
- 为什么做:属于「知识检索平台化」专题的第一阶段,给后面每一项开发定下边界和接口形状,也让制度问询这类应用不必再自己写向量代码。
- 出错会怎样:只是一份文档,合并后不改任何行为;写错的地方会带偏后续的开发任务,可以再改这份记录,也可以直接撤回这次合并。
- 要你做什么:对下面 3
个问题逐个表态(认可草稿的写法,或划掉),再批准并手工合并;合并即认可文中另外两处由记录自己定下的写法(知识源可不写检索后端;接口清单第 8
项多定的 indexStatus / beginBuild / completeBuild / recipe hash)。契约审核
PASS:记录 7145632759,Head-sha `4fa0cdc5710d645580d23a914f4d55e67ed3a5a4`。

## What changes

- New record
`docs/adr/0161-knowledge-platform-boundary-platform-owns-assembly-sync-split-record-return-knowledge-source-is-a-governed-type.md`,
Status **Proposed**, with a `## Provenance` section naming
objectstack-ai/cloud#4960 and the cloud record it produced.
- It answers the card's seven items in order (K1 to K9 in the record):
the boundary and the texts it revises; what it supersedes, by name; the
admission of `knowledge_source` under ADR-0088 with its v1 keys; the
ADR-0087 dispositions for two renames and three removals; the index
fingerprint and generations; the contract additions; one
`search_knowledge` definition for every transport.
- K8 answers the sixteen items of the contract input (comment 7142505760
on the card) one by one: accepted, deferred or refused, each with its
final shape and the phase-2 card that first reads it, and says which
keys count as contract members. The execution table follows the epic's
current layout.
- `docs/adr/README.md` is regenerated by `pnpm adr:index` (one row,
three counts).
- No adapter-contract member is added, no key is added or removed, and
none of the revised docs or code notes is edited: each is rewritten by
the child whose code makes the new sentence true.

Second round, after the contract review on this PR at head `7e71f545`
(verdict FAIL): K8 and Execution are rewritten against the contract
input; K7 names whose embedder is hashed, hashes the applied split, adds
the recipe hash as the trigger for repair inside a generation, and
refuses a mismatched search; K1 says what the push door becomes; K4
gains the one-name rule across the two doors, the authoring permission
and source admission at save, and makes `adapter` optional from row 3 on
the input's item 11.

Third round, after the delta review at head `ccaf28f1` (verdict PASS,
one should-fix and three nits): a build is opened by `beginBuild`, a
call beside `completeBuild`; the states that start a rebuild gain the
index with no recipe hash and the adapter with no `indexStatus`; item 8
lands whole in the first of objectstack-ai#37099 and objectstack-ai#37100 to merge; a search over
several sources answers from the ones it can search and names the
refused ones; the record says where a run-time change of an egress
declaration is picked up and how the deployment's adapter is known.

Read first, by risk:
1. K8: the sixteen-item table, and what counts as a member.
2. K7: the fingerprint's sources, the three states that start a rebuild,
and rules 3 and 4.
3. K4: the v1 key table, point 1 with its cost, the optional `adapter`,
and the two guards on authoring.

## Questions for the maintainer

The card's seven items, the maintainer's words, the contract input and
the cloud record do not settle these three. The record marks each ▲
where it stands. They are the maintainer's to rule on in review; merging
the record as written accepts what it writes.

**Question 1.** Record point 1: the fate of the runtime-registration
`file` and `http` source shapes, and of the push door (`indexDocument`,
`deleteDocument`). The card asks for the fate and names the rule (one
strict contract) but not the fate.

- A (written in the record, marked ▲): both arms retire with the type's
admission, with an ADR-0087 disposition, and the two push methods leave
the service contract with them; all of it returns later as one designed
arm with a parsing adapter
- B: keep one key-less arm for a corpus an external engine ingests, with
the push door as its write door
- C: keep the two shapes as code-only registrations beside the governed
type

Recommendation of the session that wrote the record: A. Ruling D2 (a
type referencing objects), the v1-key rule (`prefix`, `mimeTypes`,
`urls`, `userAgent` have 0 readers) and Prime Directive 12 leave no
other consistent answer; C is a second contract. What A costs, in full:
a corpus ingested outside the platform has no v1 form; `indexDocument`
and `deleteDocument` leave `IKnowledgeService` (0 callers in this tree,
tests aside); and the clauses that two phase-2 cards build for the two
arms (objectstack-ai#37103 item 3, objectstack-ai#37097 item 1) are removed by row 3. Whatever the
answer, the two push methods are refused on an object source.

**Question 2.** Record point 2: what does "content recipe" cover in the
index fingerprint? The card names the component without defining it.

- A (written, marked ▲): the object, the ordered `content` list and the
assembly rule's version. `where` and `metadataFields` go to a second
hash, the recipe hash, whose change starts one complete rebuild inside
the same generation
- B: also `metadataFields` in the fingerprint
- C: also `where` in the fingerprint

Recommendation of the session that wrote the record: A. The fingerprint
answers whether stored vectors can be ranked against new ones, and
neither `where` nor `metadataFields` changes a vector. B or C needs no
recipe hash for those keys, at the price of re-embedding the whole
source on every such change.

**Question 3.** Record point 3: after the type lands, does registration
in code (the plugin's `sources` option and `registerSource`) stay?

- A (written, marked ▲): it stays as a second door for the one schema
and parses with it; one name is one source, so a registration from one
door never replaces a source that arrived through the other (a coded
refusal)
- B: it is closed once every source can be metadata

Recommendation of the session that wrote the record: A. The epic's phase
2 registers sources in code, and tests and code plugins need the door;
one strict contract is one shape, not one door. The record leaves the
later closing open, so B needs no rewrite.

The earlier question on whether a source must name its adapter is no
longer a question: the contract input (item 11) leaves it to the record,
and the record decides it (optional from row 3; an omitted `adapter`
means the deployment's adapter).

**◆ These are decided here, on the contract input** (comment
`7142505760`: "the ADR decides the final shapes"). They are listed so
that the approver sees each choice in one place.

| The input's item | What this record decides |
|:--|:--|
| 5 | the chunk's final keys, with the service setting its `id`; the
flag is `capabilities.chunks` |
| 6 | one embedding descriptor on the adapter (`model`, `dimensions`,
`maxInputTokens`, `variant`), read at use |
| 8 | three parts: the expected fingerprint and recipe hash on every
call; `indexStatus`; `beginBuild` and `completeBuild`, the first of
which is what opens a generation. All of it lands in one PR, the first
of objectstack-ai#37099 and objectstack-ai#37100. Parts (b) and (c) and the recipe hash go past the
input's words |
| 10 | `split` lives on the object arm, as `source.split` |
| 11 | `adapter` becomes optional in row 3; an omitted one means the
deployment's adapter |
| 13 | no grouping member now |
| 15 | no query-prefix member; an adapter option |
| (the review's finding on the push door) | `indexDocument` and
`deleteDocument` are refused on an object source |
| (the review's finding on a search over several sources) | the
searchable sources answer and each refused source is named; refused
whole only when none can be searched (K7, rule 5) |

## Tests

No code changes, so no test changes and no ablation. A docs-only record.

## Acceptance notes

- The cloud repository was not readable from the writing session. Every
statement about the cloud record is taken from two comments on this
tracker, both cited in the record's Provenance.
- The dispatch asked for a file and line on every quoted text.
`docs/adr/**` refuses line anchors (`check:adr-symbol-anchors`), so the
decision text cites files and symbols, and the positions are in the
record's Readings table in words, repeated below.
- The first readings were taken at `254e396a29`, the rows added for the
contract section at `b49a264a10`; no file in the table differs between
the two commits.
- K8's item 8 goes past the contract input's words in three members
(`indexStatus`, `beginBuild`, `completeBuild`) and in the recipe hash;
the record says so in the table and in its list of decisions. With the
status member, objectstack-ai#37099 waits for this record, which its `Blocked-by` line
does not say today.
- No entry under `scripts/adr-anchors/` is added: the gate asks for none
on a new record, and anchors belong to the implementing cards.
- The cloud record owes a one-line pointer back to this number; that is
the cloud lane's, after this merges.
- Observed, not filed: once `embedding` and `vectorStore` leave the
source, `EmbeddingModelSchema` and `VectorStoreSchema` have no composer
in the spec. The record names it as the type-admission card's finding.

## Verification

Two-minute check: `pnpm check:adr-symbol-anchors && pnpm
check:adr-anchors && node scripts/check-adr-links.mjs && pnpm
check:adr-index`. Expected: four green verdict lines.

<details><summary>Local gate readings at 4fa0cdc</summary>

- `node scripts/pm/dispatch-gates.mjs --commands` derived 21 commands
for the two changed paths; all 21 were run and each exited 0; `--ran`:
21 derived, 21 run, 0 NOT-MEASURED, 0 UNRUN.
- `check-adr-symbol-anchors`: 4079 anchors across 162 records resolve, 0
line anchors.
- `check-adr-anchors`: OK, 156 decision numbers.
- `check-adr-links`: 1204 relative link destinations resolve.
- `adr-index --report`: the index is current.
- `overlap-check`: `origin/main` merges cleanly; the one overlap is
`docs/adr/README.md` against PR objectstack-ai#37115, as stated under Sequencing.

</details>

<details><summary>Readings, taken at 254e396 and b49a264</summary>

Each text this record quotes was read on `objectstack-ai/objectstack`
`main` at `254e396a29`. The rows added for the contract section (the
last eight) were read at `b49a264a10`, the `main` this record's branch
has merged; no file in this table differs between the two commits. The
numbers are a dated reading for the card, not anchors; the decision text
cites symbols and files.

| File | What was read | Position at `254e396a29` |
|:--|:--|:--|
| `content/docs/protocol/knowledge.mdx` | the opening, "ObjectStack does
not ship its own RAG engine." | lines 7 to 10 |
| same | §1, "We have nothing distinctive to add to those layers." |
line 45 |
| same | §1, "The protocol scopes the framework's responsibility to
(1)–(4)" | lines 60 to 61 |
| same | §3.1, "It is stored as metadata (versioned,
environment-scoped)" | lines 111 to 113 |
| same | §3.2, "The framework does **not** chunk; adapters do." | lines
162 to 163 |
| same | §3.4, "The adapter surface is **deliberately minimal**" | lines
217 to 220 |
| same | §5, a `'*'` member "meaning every field the object declares
except `id`" | lines 310 to 311 |
| same | §5, sensitive fields go in a separate source | lines 322 to 324
|
| same | §6, "that surface stays unbuilt until a real `object` source
calls for it" | lines 397 to 399 |
| same | §7, the `knowledge-pgvector` row; §8,
`KnowledgeSource.embedding` | line 430; lines 449 to 452 |
| `content/docs/ai/knowledge-rag.mdx` | "File / HTTP hits pass through
(ACL is the adapter's problem)"; "Why we did not build a vector DB" |
line 78; line 82 |
| `packages/spec/src/ai/knowledge-source.zod.ts` | the class note, "the
shape of a **runtime registration**, ⛔ not a governed metadata type" |
lines 104 to 123, the sentence at 105 to 106 |
| same | `contentFields` and its `*` note; the `file` arm; the `http`
arm | lines 63 to 67; 80 to 87; 89 to 96 |
| same | the `cron` note, "this slot is parsed and reaches no engine";
`id`; `embedding`; `vectorStore`; `aiExposed` | lines 36 to 37; 125 to
126; 140 to 144; 145 to 149; 159 to 160 |
| `packages/spec/src/ai/embedding.zod.ts` | the file note, "NOT in
scope" and "These were removed in v1" | lines 15 to 23 |
| `packages/spec/src/contracts/knowledge-adapter.ts` | "The surface is
**deliberately minimal**"; the interface | lines 18 to 20; 56 to 74 |
| `packages/spec/src/ai/knowledge-document.zod.ts` | the file note; the
chunk note; `permissions` | lines 10 to 13; 53 to 57; 45 to 50 |
| `packages/spec/src/contracts/embedder.ts` | `IEmbedder` | lines 26 to
39 |
| `packages/spec/authorable-surface/ai.json` | the five keys of K6 |
lines 239, 245, 246, 250 and 322 |
| `packages/spec/src/data/ai-read-exposure.ts` | "**Any other object**
is refused" | lines 32 to 37 |
| `packages/services/service-knowledge/src/knowledge-service.ts` | the
class note, "Non-responsibilities (the parts plugins own)" | lines 88 to
89 |
| same | `registerSource`, no parse; `reindexSource`, with its `file`
and `http` answer, its one `find` and its one `upsert` | lines 123 to
131; 161 to 219, with 168 to 178, 192 to 196 and 210 to 212 |
| same | `search`; `handleRecordUpsert`; `objectSourcesFor`;
`documentIdFor` | lines 235 to 280; 290 to 304; 550 to 557; 560 to 562 |
| same | `recordToDocument`, with the `'*'` branch and the title | lines
578 to 615, with 591 to 595 and 612 |
| `packages/services/service-knowledge/src/knowledge-service-plugin.ts`
| the three deferral comments of K3 | lines 250 to 260; 296 to 299; 312
to 321 |
| `packages/services/service-knowledge/src/knowledge-tools.ts` | the
`aiExposed` note; the definition; the executor | lines 22 to 33; 148 to
160; 246 to 284 |
|
`packages/services/service-knowledge/src/knowledge-source-admission.ts`
| `admitSourceFields` | from line 228 |
| `packages/plugins/knowledge-memory/src/index.ts` | the paragraph split
with a soft 800-character cap | lines 17 to 18, and 104 |
| `packages/plugins/knowledge-ragflow/src/index.ts` |
`extractRagflowOptions`; one chunk per document | lines 67 to 85; 113 to
139 |
| `packages/mcp/src/mcp-http-tools.ts` | `registerKnowledgeTools` and
its call | lines 3514 and 3182 |
| `packages/runtime/src/domains/mcp.ts` | the knowledge seam under
`data:read` | lines 262 to 271 |
| `packages/spec/src/contracts/knowledge-service.ts` | `indexDocument`
and `deleteDocument` on `IKnowledgeService` | lines 93 and 95 |
| `packages/services/service-knowledge/src/knowledge-service.ts` |
`indexDocument` and `deleteDocument` hand the caller's document to the
adapter | lines 147 to 157 |
| same | in `search`, an adapter failure is logged and the search goes
on | lines 270 to 274 |
| same | `isNonObjectSourceHit`, and the two places that pass such a hit
without a re-read | lines 526 to 529; 480 and 515 |
| `packages/spec/src/contracts/knowledge-adapter.ts` | `AdapterContext`;
`AdapterSearchOptions` with its opaque `filter` | lines 31 to 38; 41 to
50, `filter` at 47 |
| `packages/spec/src/ai/knowledge-document.zod.ts` | the keys of
`KnowledgeChunkSchema`: `id`, `documentId`, `index`, `content`,
`metadata` | lines 58 to 69 |
| `packages/plugins/knowledge-ragflow/src/index.ts` | the four
`adapterConfig` keys the adapter reads | lines 50 to 58 and 67 to 85 |
| `packages/spec/src/kernel/platform-capabilities.ts`;
`packages/services/service-settings/src/manifests/knowledge.manifest.ts`;
`examples/app-showcase/src/coverage.ts` | `PLATFORM_CAPABILITY_TOKENS`;
the `chunk_target` and `chunk_overlap` settings; `KIND_COVERAGE` | from
line 31; lines 105 to 112; line 52 |

Readings that are counts: no file under
`packages/services/service-knowledge/src`,
`packages/plugins/knowledge-memory/src` or
`packages/plugins/knowledge-ragflow/src`, tests aside, reads `prefix`,
`mimeTypes`, `urls`, `userAgent`, a source's `embedding` or
`vectorStore`, `refresh.cron`, or a document's `permissions` (0 matches
each; the controls `adapterConfig` and `contentFields` match 3 and 6
times in the same three directories). `indexDocument` and
`deleteDocument` have no caller outside their declaration and their
implementation, tests aside (0 matches), and `KnowledgeChunkSchema` has
no reader (its one other mention is a type-alias pin). Nothing under
`examples/` registers a knowledge source: 0 matches for
`KnowledgeServicePlugin`, against 38 files that match the control
`defineStack`; `examples/app-todo` lists the two knowledge packages as
dependencies and imports neither.

Readings from the tracker: the contract input is comment `7142505760` on
objectstack-ai#37001, and the cards it names (objectstack-ai#37096 to objectstack-ai#37103 and objectstack-ai#37107) were read
in full, with the epic's body as it stands after its phase-2 rewrite.
The retirement of `knowledge-ragflow` is card objectstack-ai#37004 and ruling
`7134290286` on objectstack-ai#36839. objectstack-ai#4606 has no comment, and its judgements are in
its body. The ruling on objectstack-ai#4672 is comment `5194621834`; it was relayed by
the services lane's PM and names the maintainer. The 2026-11-15 words
are in the body of objectstack-ai#33933 and are restated in comment `7134104071`.

</details>

---
_Generated by [Claude
Code](https://claude.ai/code/session_01QSeKYpRrYuqSLCvbSk9zrL)_

<!-- signed: repo:objectstack#4 · os-justin ·
session_01QSeKYpEsWWE9Y5YtSsDgqZ -->

---------

Co-authored-by: Claude <noreply@anthropic.com>
Nenzyz pushed a commit to Nenzyz/objectstack that referenced this pull request Dec 1, 2026
…ed is left out; pack selection conditions; carried-text bound (objectstack-ai#37196)

maintainer · os-bob · session_012dn2AecKpLaYkUtNRiqtby

Refs objectstack-ai#36996, objectstack-ai#37140

Ruling-ref: maintainer, 2026-11-25, in the maintainer's session,
verbatim: 「同意你的建议」. The maintainer was answering two independent
analyses of ADR-0160 written that day:
- one on points 1, 2 and 10 of "Points that go past the card's words",
which the record said needed the maintainer's explicit acceptance. They
were asked on PR objectstack-ai#37115 (comments 7144068209 and 7144090043) and were
not answered before the merge.
- one on the six cards cut from its Implementation split: objectstack-ai#37140–objectstack-ai#37144
and objectstack-ai/cloud#4978.

## 维护者速读
- 做什么:按你 11-25 的「同意你的建议」修订 ADR-0160。
- **第 2 点改了**:某个用户读不了包里的某个关联对象时,省略那一节,并附一句「部分资料对你不可见」,不再整包拒绝。系统对象、或 API
关闭了暴露的对象,对谁都不提供,仍然整包拒绝。
  - **第 1 点接受,加三个条件**:多个包被拒时列出「名字(标签)」;应用内预读不替用户选包;校验时给两条提醒。
  - **第 10 点照原样接受。**
- **关联列表里可以放长文本**,但整个包交给模型的文字总量有一个明确上限,截断一定写明。上限的数值在 objectstack-ai#37140 的 PR
里按业务证据定:BrightRule 实测整份约 1.2 万 token 的制度作答效果好,所以 8000 字符不能作为唯一上限。
  - 状态改为 Accepted,索引重新生成。
- 为什么:对象权限是各部署自己配的,包是随应用发布的。整包拒绝会让某个部署收回一项对象权限后,这个角色的「问
AI」整体失效。省略并说明不比拒绝泄露更多信息。
- 需要你做的:审后手动合并。`docs/adr/**` 是 Tier H 受管面。

## What changed (only `docs/adr/0160-record-scoped-ai-inquiry.md` and
the generated `docs/adr/README.md`)
- **Status and a new `Amended:` line.**
- **D1:** two advisory validation reports (point 1, condition 3).
- **D3:**
  - step 1 and "Object level" split by whom a refusal refuses;
  - the field-level structural bullet;
  - a new paragraph, "The bound on carried text".
- **D4:**
- the several-packs refusal lists name and label (point 1, condition 1);
  - step 4.
- **D8:** the in-app runtime never runs a pack it chose itself (point 1,
condition 2).
- **Points:** the header, points 1, 2, 11 and 12.
- **Consequences:** "One pack can serve roles with different object
access".
- **Not changed:**
  - `related` filter / orderBy. That is a separate protocol decision.
  - The root and lookup-target rules.
  - Point 10.

## Checks (local, at the head)
Every command `node scripts/pm/dispatch-gates.mjs --commands --repo
objectstack-ai/objectstack` derives for this diff exited 0, 21 of 21.
They include:
- `check:adr-index`
- `check:adr-anchors`
- `check:adr-symbol-anchors`
- `check-adr-links` (1215 links resolve)
- `check:doc-authoring`
- `check:pm-governed-merges`
- `check:pm-prior-rulings`
- `check:doc-formula-expressions`, which ran after building
`@objectstack/formula` and `@objectstack/lint`.

Governed surface (Tier H): this PR stays draft, and the maintainer
merges it by hand.

---
_Generated by [Claude Code](https://claude.ai/code)_

Co-authored-by: Claude <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue size/m skip-changeset PR has no user-facing published change; bypasses the changeset gate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

3 participants