Repository navigation
Description
epic:#5027#1 · hotlong · session_01Q4EjjMUfmNYTem26rXLFUf
Filing gate: ④ topic child. Source: topic #37853 (Jack: 「"页面里加按钮"的需求 作废」 06:28Z; card 「撤掉 ask_ai」 06:30Z; 「问 AI」 06:33Z; 「同意,立专题卡,非 cloud 的任务,让 objectstack #3 座位接手」 07:12Z, all 2026-11-27). Business reason: carried by the parent.
Parent: #37853 (rulings, target experience, card table, topic acceptance). Evidence: an independent Fable review of objectstack and cloud main (2026-11-27) checked every file:line below.
Owner: repo:objectstack#3 (Jack 07:12Z 「非 cloud 的任务,让 objectstack #3 座位接手」). Reserved under topic #37853 (pm:epic), not pm:queue: other seats leave it.
Grading: area:ai · Task · p1 · size S · governed surface docs/adr/** (Tier H): needs Jack or os-zhuang approval, no seat arms auto-merge.
Dedupe: searched ADR-0160 amendment, ask_ai: #37834 is the decision this amendment records; no other card.
维护者速读
- 是什么:ADR-0160(记录范围 AI 问询)第七次修订,把 11-27 的裁定写进去:入口默认带当前记录、取消钉住和「改为问」、撤掉 ask_ai 及旧元数据怎么处理、预读改为用到再读。
- 影响:C1、C5、C6 都按这份修订实现。
- 要你做什么:批准这个受管 PR。
What to change in docs/adr/0160-*.md
- Title and TL;DR: the entry is the shell's 「问 AI」 button; no page-level
ask_ai. - D6 (conversation focus):
- Default focus: an unsent conversation's effective focus is the current page record (
surfaceRecord()), unless the user dismissed it with ×. - State is
{ focus, dismissed }; the first send fixes both; afterwards focus persists across navigation (unchanged). - Remove pinning and the 「改为问《X》?」 switch prompt (Jack 07:12Z, 「全部按建议」). The page chip 「正在看:X」 stays when there is no focus.
- Rewrite the "Entry point" bullet.
- Default focus: an unsent conversation's effective focus is the current page record (
- D7 (
ask_aiaction type): mark the whole section retired, with the date and the ruling. - Implementation table rows 6 and 9: the first-turn pre-read becomes read-on-demand (a pointer block; the model calls
get_record_contextonly when the user refers to the record; fallbackget_record). - Retirement route for
ask_ai(ADR-0087):ActionTypeusesenumWithRetiredValues()with the prescription on the enum (precedentpackages/spec/src/ai/agent.zod.ts:161,173); conversion inconversions/entries/19/, a D3 semantic entry, a disposition marker in the changeset.- Source files with
type:'ask_ai': parse refusal with the prescription "Delete this action and its references; use the shell's 「问 AI」 entry". - Conversion: auto-delete only when no reference to the action exists; otherwise keep the refusal (pages reference actions by name, e.g. showcase
task-detail.page.ts). - Installed / stored metadata: decide and write the exact behaviour (recommended: skip the action at load with a warning, the page does not break).
- Sync the "Done when" of topic 专题:记录范围 AI 问询(在一条记录上问 AI:对话钉在这条记录上、平台按配置交给模型这条记录的资料、外部 AI 经 MCP 拿到同一份) #36996.
Acceptance
- The amendment states each point above unambiguously enough that C1, C5 and C6 need no further ruling.
check-governed-proseand the ADR lint pass.
Activity
objectstack-fleet commentedon Nov 27, 2026
repo:objectstack#3 · os-tesla · session_01L9qibyUSf2nKJWW6qBemSU
Claim: PM loop round 1
Session:
session_01L9qibyUSf2nKJWW6qBemSUThread session:
session_01L9qibxQB9erb9sbLt2bpk9Account:
os-teslaBranch:
claude/project-thread-pmlqupWorktree:
objectstack-issue-37854Domain:
docsArea:
(seat)— ADR card of topic #37853, kept with the seatSeat:
repo:objectstack#3File surface:
docs/adr/**(the one file docs/adr/0160-record-scoped-ai-inquiry.md; stop on breach; explain in the report)Container & model: S, mode:thread, model: claude-fable-5-2 (Model tier — MANDATORY: claude-fable-5-2 — docs/adr/0160-record-scoped-ai-inquiry.md ⇢ 'docs/adr/'), effort: xhigh, reason: ADR revision standing order (定档: docs/adr/ effort xhigh)
Tier note: the thread runs at the opus tier, so the drafting runs in an isolated claude-fable-5-2 subagent at effort xhigh, passed explicitly.
Clause-②: no
Metadata-protocol: none
Responsibility: ADR text only; rulings on #37853 (Jack, 2026-11-27) quoted verbatim, not re-ruled; draft PR, lands by the maintainer's hand (Tier H)
Thread-read: none
Premise: topic #37853 ruling comment and decision card #37834 ruling comment 7212477335 read; ADR-0160 is on origin/main adb65d1
Serial constraints cleared:
overlap-check.mjs runs on the thread's first push (branch not yet pushed); no in-flight claim on this file named by any seatobjectstack-fleet commentedon Nov 27, 2026
repo:objectstack#3 · os-tesla · session_01L9qibxQB9erb9sbLt2bpk9
os-dev-report
{ "issue": 37854, "status": "done", "branch": "claude/project-thread-pmlqup", "pr": "https://github.com/objectstack-ai/objectstack/pull/37877", "head": "bf7805d3", "session": "session_01L9qibxQB9erb9sbLt2bpk9", "premise_still_valid": true, "summary": "ADR-0160 seventh amendment: header Amended bullet with the 2026-11-27 rulings verbatim (06:27Z, 06:28Z, 06:30Z, 06:32Z, 06:33Z, 07:12Z); D6 entry point + focus state {focus, dismissed}; D7 retired in place with the ADR-0087 route and legacy-action behaviour (authored: refused; os migrate meta: delete only unreferenced; at rest: read without the action, door's conversion notice); rows 6/9 + D8 read on demand; settlements as points 25-32; epic #36996 Done-when old/new in the Implementation split. Two premise corrections recorded in the text (second enum on the action type key; ask_ai only in 19.0.0-next.0).", "tier": "drafting: isolated subagent, model claude-fable-5-2, effort xhigh passed explicitly; thread served claude-opus-5-5 (get_session last_served_model) for gates, commit, push, PR", "files_changed": ["docs/adr/0160-record-scoped-ai-inquiry.md"], "line_budget": "116 changed lines (+90 / -26), dispatch-gates --commands reading; under the 3000 human-merge threshold", "tests": "docs-only; no package touched, no tests owed", "gates": "local on the final text (head bf7805d3, file byte-identical to the gated text): check-adr-anchors exit 0 OK; check-adr-links exit 0 (1258 destinations resolve); check-adr-symbol-anchors exit 0 (4423 anchors, 0 line anchors; positive control: one broken anchor -> exit 1, restored byte-identical); check:pm-governed-prose exit 0; adr-index --report exit 0 (report-only staleness, pre-existing at adb65d16); dispatch-gates --commands: 21 families, 19 exit 0, NOT MEASURED locally: check:doc-formula-expressions, check:pm-governed-merges (exit 3, prerequisite: no workspace install) -> CI; PR check-runs: in_progress at report time", "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm", "deviations": [ "PR body footer uses the session-URL signature form; no post-create review request (card threads do not request review; the seat hands off)", "gates ran with three lockfile-pinned modules (yaml, typescript, @typescript-eslint/parser) linked temporarily from the scratchpad instead of a full pnpm install; link removed" ], "mcp_calls": "0 GitHub MCP calls", "api_writes": "3 — git push (not REST); fleet-write relay pr_create (POST pulls, POST issues/37877/assignees, POST issues/37877/labels skip-changeset; read-back identical); this os-dev-report comment via post-stamped", "open_questions": [], "security_findings": "none", "out_of_scope_findings": [ "class: b · reach: exception: maintainer-dispatched card text · card #37856 says the ask_ai type shipped in 18.x; packages/spec/CHANGELOG.md has it only under 19.0.0-next.0 · carrier: #37856 (seat to correct the card premise)", "epic #36996 body Done-when needs the replacement paragraph recorded in the ADR's Implementation split · carrier: seat (issue_patch on #36996; text in the hand-back message)", "spec docblocks (ai-service.ts, AiAgentCapabilitiesSchema.focus) still say 'pinned'; the ADR assigns the wording to #37861, a ui-lane card touching spec describe() text · carrier: #37861 or #37856 (seat's choice)" ] }