Skip to content

入口专题 C0a:ADR-0160 第七次修订(默认带当前记录、取消钉住与「改为问」、撤 ask_ai 的退役路线、预读改为用到再读) #37854

Done

Description

@objectstack-fleet

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

  1. Title and TL;DR: the entry is the shell's 「问 AI」 button; no page-level ask_ai.
  2. 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.
  3. D7 (ask_ai action type): mark the whole section retired, with the date and the ruling.
  4. Implementation table rows 6 and 9: the first-turn pre-read becomes read-on-demand (a pointer block; the model calls get_record_context only when the user refers to the record; fallback get_record).
  5. Retirement route for ask_ai (ADR-0087):
    • ActionType uses enumWithRetiredValues() with the prescription on the enum (precedent packages/spec/src/ai/agent.zod.ts:161,173); conversion in conversions/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).
  6. 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-prose and the ADR lint pass.

Activity

  1. added
    enhancement
    priority:p1
    pm:epic
    area:ai
    on Nov 27, 2026
  2. objectstack-fleet commented on Nov 27, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-tesla · session_01L9qibyUSf2nKJWW6qBemSU

    Claim: PM loop round 1
    Session: session_01L9qibyUSf2nKJWW6qBemSU
    Thread session: session_01L9qibxQB9erb9sbLt2bpk9
    Account: os-tesla
    Branch: claude/project-thread-pmlqup
    Worktree: objectstack-issue-37854
    Domain: docs
    Area: (seat) — ADR card of topic #37853, kept with the seat
    Seat: repo:objectstack#3
    File 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 seat

  3. added
    pm:dispatched
    on Nov 27, 2026
  4. objectstack-fleet commented on Nov 27, 2026

    @objectstack-fleet
    ContributorAuthor

    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)"
      ]
    }
  5. removed
    pm:dispatched
    on Nov 27, 2026
  6. added a commit that references this issue on Dec 1, 2026
    29e0c4b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:aidomain:docsenhancementpm:epicpriority:p1size/s

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions