Skip to content

docs(ui-adr): ADR-0057 Amendment A5 — an opening from the entry starts a new conversation - #37931

Queued
objectstack-fleet[bot] wants to merge 1 commit into
mainfrom
claude/project-thread-j0fusx
Queued

objectstack-fleet[bot] wants to merge 1 commit into
mainfrom
claude/project-thread-j0fusx

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Requested by Tesla · project thread
Fixes #37855
Refs #37853
Clause-②: no
Metadata-protocol: none

维护者速读

  • 用户能看到什么变化:只改设计文档,用户无感;写定以后,从入口打开 AI 助手时,用户自己关过就开新会话,系统替用户收起、或有待批准的写操作时回到原会话,并定下抽屉顶部的样子。
  • 为什么做:这是「问 AI 入口改造」专题的前置,抽屉「点开即新会话」那张实现卡要照这份文字做,文字须先落。
  • 出错会怎样:只动文档,不影响任何用户,写错可直接撤回这次修改。
  • 要你做什么:批准这个受管文档 PR(座位审核后交给你或 os-zhuang)。

What changes

One file, ui/docs/adr/0057-console-ai-chat-one-conversation-docked.md (+122 / −3; the three removed lines are A3 lines rewrapped around two pointers, no A3 word is removed):

  • New section ## Amendment A5 (2026-11-27, Accepted) — an opening from the entry starts a new conversation, after A4 and before "Open design questions", in A3/A4's shape: What it changes · Why · Maintainer ruling · Decision · Points beyond the maintainer's words · Consequences ("Implemented under objectstack#37860.").
  • It names the A3 sentence it supersedes, in A3's "Addresses": "What the drawer shows is kept per tab, never in the URL." The first half no longer holds across a close the user makes; "never in the URL" stands.
  • Decision: a nine-row open-type table (entry after the user's close or first opening in a tab: new; after the console collapsed the phone sheet: same; a write awaiting approval in the conversation shown at the close: that one; a pending question card: as row 1, from the card's comment; named targets, reload, the assistant bus, build threads and full-window toggling: as before), forceNew never resumeMode: 'fresh' with the reason, a "Not recorded yet" bullet (the console cannot tell the two closes apart today and keeps no pending write after a close; both are the implementation card's to add), and the header row (left: the history row's label; right: ☆ with C8, +, history icon button, ⋯, ×).
  • Two in-place pointers in A3 (*(Amendment A5: …)* at "Addresses" and "Entries") and one A5 entry in the header's Amended block.

Tests

Docs-only; no tests apply. The two maintainer quotes were byte-checked against their sources (each occurs once there, inside corner brackets): objectstack#37853's body ("Filing gate" line, 07:12Z) and objectstack#37871's body ("Filing gate" line, 08:05Z). The topic's 06:33Z–06:42Z rulings are restated from its "Rulings" list, not quoted, because their words are not on GitHub; the ADR says so.

Local gate readings at 21f3c81

node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack exit 0, 16 commands derived; each exit captured before any pipe:

  • pnpm check:adr-anchors exit 0
  • pnpm check:adr-index exit 0 (the ui-0057 row reads title, status and date, none changed)
  • pnpm check:gitlink-declared exit 0
  • pnpm check:nul-bytes exit 0
  • pnpm check:published-files exit 0
  • pnpm check:refd-timer-probe exit 0
  • pnpm check:registry-log-declared exit 0
  • pnpm check:rest-log-spy-declared exit 0
  • pnpm check:tier-file-adoption exit 0
  • pnpm check:undeclared-dep-imports exit 0
  • pnpm check:watch-hint-literal exit 0
  • extra: pnpm check:adr-links exit 0, pnpm check:adr-symbol-anchors exit 0 (both scan the root ADR tree only), pnpm --dir ui run check:new-line-citations exit 0

NOT MEASURED locally (no node_modules in this checkout): check-closing-keyword-parity.mjs and its --self-test (needs yaml), check-comment-mask-corpus.mjs (needs @typescript-eslint/parser), check:driver-memory-census (needs typescript), check:pm-governed-merges (needs gen:skill-refs). CI runs them. A manual pass over the added lines found no closing keyword before any issue number, no HTML comment and no angle placeholder.

--ran reconciliation: 16 derived, 11 run, 5 NOT MEASURED, 0 UNRUN.

Acceptance notes

  • Premise corrections made against the tree at 73d5e34, written into the ADR instead of the card's wording:
    • Plans awaiting approval: the assistant bus keeps them per conversation in memory only, and nothing has published a pending plan since objectstack#37720 retired the build chat; in-chat write approvals do not reach the bus. Row 3 is therefore a pending write, and recording it is the implementation card's job.
    • The phone auto-collapse (objectstack#37556) fires on any push or pop of the page under the sheet (a tapped link or Back), not only an answer link, and calls the same collapse as ×; today the two closes cannot be told apart.
    • Share: today's Share makes the read-only /s/:token page, which is not the drawer; only /ai… addresses open the drawer.
    • The assistant bus's requestAssistantOpen is called by the object designer's "Ask AI", not a Studio canvas; Studio's copilot left with objectstack#37720.
    • Title: the history list labels an untitled conversation by its latest user message, not a first-message summary, so the header takes the history row's label. The desktop header is already one row (objectstack#35445).
    • resumeMode: 'fresh' reuses a cached conversation whenever the server returns zero messages for it (useChatConversation); that a turn is stored only at completion is the hook's reading of the server, which is cloud's and not read here.
  • Settlements beyond the maintainer's words are listed in the ADR as points 1–6 (first opening in a tab is new; what counts as the console's close; the exception is a pending write in the conversation shown at the close; Home "Ask AI" becomes an entry; bus, build exception and forceNew from the card; header label rule). An approver should look at points 2 and 3.
  • Stale ADR text seen and left untouched (outside this card): A3's "One container" still names Studio's copilot; A2's app:PKG:build dock key no longer matches the code; A3's "Entry" plan marker has no producer. Noted for the seat's ADR-revisions card, not filed.
  • skip-changeset: ui/docs/adr/** ships in no package.
  • Governed surface (ui/docs/adr/**, Tier H): this PR stays draft and is landed by the maintainer; the seat hands it off after review. Tier: dispatch-gates --tier prints no path-derived mandate for this path, so the default tier; effort xhigh per the ADR-revision standing order, drafted in an isolated subagent at that effort.

Verification

Read first:

  1. The new ## Amendment A5 section, its table and "Points beyond the maintainer's words" (risk: a row saying more than the topic's rulings and the card).
  2. The pointer at A3's "Addresses" sentence (risk: superseding more than the "kept per tab" half).
  3. The A5 entry in the header's Amended block.

Two-minute check: git diff origin/main...HEAD -- ui/docs/adr/0057-console-ai-chat-one-conversation-docked.md shows one header entry, two italic pointers inside A3 and one new A5 section between A4's Consequences and "Open design questions".

🤖 Generated with Claude Code

https://claude.ai/code/session_01L9qibzLtFztVjQtMvtssA4

…s a new conversation

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

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1

Contract-review-claim: session_01L9qibwSEecrzDjKjbk24r1 · head 21f3c81 · 2026-11-27T11:52Z

L1-a (the seat's L1 thread) runs the isolated CONTRACT_REVIEW_TIER review on this head (rules face: ui/docs/adr/0057-console-ai-chat-one-conversation-docked.md, Amendment A5), with its L1 beside it.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 21f3c81c5961c80af40410ef6b92d95b7b31bb17
Local-runs: none
Scope: ui/docs/adr/0057-console-ai-chat-one-conversation-docked.md + none

PR #37931, card #37855 (C0b of topic #37853). The diff against the merge base 73d5e347 is this one file, +122 / −3. The cited code was read on main at f926dfab; the ADR file and docs/adr/0160-record-scoped-ai-inquiry.md are unchanged between the two.

① Derived judgments

  • Accept-sets and public surface: none change. Right. The diff is ADR prose: no spec key, export, route, schema or stored shape moves. What changes is the documented behaviour objectstack#37860 is to build.
  • Clause-②: no and Metadata-protocol: none: right. Nothing is published and no metadata is authored or rewritten.
  • A3 is amended in place by pointer only. Right. The three removed lines come back with the same words around two italic (Amendment A5: …) pointers; no A3 or A4 word is removed.
  • Card acceptance. A4 is on main (ADR-0057 Amendment A4: an app may place one AI inquiry page (ai:chat) in its menu; the top-bar robot hides on that page #37819 closed), and A5 names the A3 sentence it supersedes, quoted exactly: "What the drawer shows is kept per tab, never in the URL."

② Semver level

skip-changeset is right: ui/docs/adr/** ships in no package. The Check Changeset run on this head concluded success. Clause-②: no stands.

③ Boundary flags

  • open_questions: empty. Nothing to answer.
  • Settlement points 2 and 3, which the author flags for approvers: judged in ④; both hold. They are for the approver to accept, as the ADR itself says.
  • Dev deviations (edited in the platform checkout with no separate worktree; no review request from the thread): process only, no effect on the contract.
  • Out-of-scope findings (A3 "One container" still names Studio's copilot; A2's app:PKG:build dock key; A3 "Entry"'s plan marker has no producer): all three are true on main, and none is A5's to fix. They stay with the seat's ADR-revisions card.
  • SQL push-down: not applicable; the diff has no query.
  • Check-runs on this head, as last read: 28 success, 18 skipped, none failed. One was still running: Test UI (1/16). This record does not vouch for that run; the diff touches no code or test.

④ Design judgment

No must-fix, no should-fix.

Quotations. Both are byte-identical to their sources, each occurs once there inside corner brackets, and both times are right:

The ADR says what each quotation does and does not decide (the first agrees to file the topic; the second does not address row 4). No other maintainer words are quoted.

Restatements. The 06:33Z–06:42Z rulings are marked as restated from the topic's "Rulings" list, not quoted, and the text matches that list. Target-experience items 4 and 5 and acceptance item 4 are restated faithfully. Nothing is widened or re-ruled in the restated part.

Settlements are listed as the record's own, "accepted with the maintainer's merge", in six points:

  • Point 1 (first opening in a tab is new): sound. Today a first opening resumes the per-user cached thread, which is the behaviour the topic removes.
  • Point 2 (the console's close): sound. useConsoleChatDock collapses the phone sheet on any PUSH or POP away from the entry it was shown on and leaves it open on a REPLACE. Navigation alone cannot tell an answer link from Back, so the wider rule is the only one the code can keep. Dismissing the sheet goes through onOpenChange to the same collapse, and is rightly the user's close. The approver should know this is wider than target-experience item 5's "answer link".
  • Point 3 (a pending write, in the conversation shown at the close; a pending question is no exception): sound. Comment 7213286436 narrows the exception to a write approval and adds row 4. No plan producer exists (below), so "plan" has nothing to name. Limiting row 3 to the conversation shown at the close makes "that conversation" unambiguous; a pending write in a conversation the user moved away from stays in history. This is narrower than the card's row, and is labelled.
  • Points 4 to 6: match topic acceptance item 4, the card's rows, and the code (below).

The five premise corrections all hold on main:

  • (a) No pending-plan producer since feat(chatbot): retire the build chat frontend #37720. publishPlanApprovalPending has one caller outside tests, useConversationList.ts, with pending: false. feat(chatbot): retire the build chat frontend #37720 removed onPlanApprovalPendingChange. In-chat write approvals never reach the bus.
  • (b) The phone auto-collapse shares ×'s collapse. × is dock.collapse; the 37487 跟进:手机上点 AI 引用后,对话面板仍盖住被引用的段落 #37556 effect calls the same collapse from useChatDockState; nothing records which it was.
  • (c) Share is /s/:token. SharedRecordPage on that route; A3 already lists it as a read-only surface with its own chrome.
  • (d) requestAssistantOpen's caller is the object designer. Two call sites, both in ObjectFormCanvas.tsx; assistantBus.requestOpen has no other caller.
  • (e) The title follows the history row label. ConversationRow shows title, else preview, else "New conversation"; extractPreview takes the most recent user message.

Other anchors, all checked.

  • forceNew: ChatDockConversation derives it from target.fresh; the hook settles with no conversation, drops the cache pointer and creates the row on the first send.
  • resumeMode: 'fresh': reuses the cached conversation when the server returns zero messages.
  • Entries: the robot and the keyboard toggle call toggle; Home's "Ask AI" calls open with the ask agent, which resumes that agent's cached thread.
  • Row 8: "Edit with AI" opens build with a package, and app.defaultAgent reaches the resolver.
  • Header: today it reads "AI Assistant" with a labelled "History" button.
  • Comment id 7213286436, tree 73d5e347 and every issue number check out.
  • The amendment cites no file:line.

ADR-0160. Its seventh amendment is merged (#37877). D6 leaves "which conversation an opening shows" to ADR-0057 and card #37855, and says a conversation that has sent nothing takes the page's record. A5's "Why", row 1 and + agree with it; nothing conflicts.

First consumer. #37860's plan (flag the user's close paths, not the auto-collapse; implement every row) fits A5. A5 corrects two of its premises: the pending-plan mark, and the history list's label rule.

Nits (prose face; none affects the contract):

Implemented-by: claude/project-thread-j0fusx
Reviewed-by: session_01L9qibwSEecrzDjKjbk24r1

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1

The filled brief the record above was rendered from (L1-a, isolated CONTRACT_REVIEW_TIER subagent):

Contract review brief — PR #37931 @ 21f3c81c5961c80af40410ef6b92d95b7b31bb17 (card #37855)

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 ui/docs/adr/0057-console-ai-chat-one-conversation-docked.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 #37855: its body and EVERY comment (rulings and earlier records included)
· PR #37931: its body, its file list, and the net diff against main at 73d5e347f7d7c755a3e86e127228791c476485e2 (the merge base)
· the rulings the card cites: topic #37853 (its body's Rulings list and the maintainer's words of 2026-11-27) and #37871 (its 08:05Z words); ui ADR-0057 itself as it stands on main
· the check-runs on 21f3c81c5961c80af40410ef6b92d95b7b31bb17: 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: ui/docs/adr/0057-console-ai-chat-one-conversation-docked.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.

⛔ 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/166e2125-4268-552f-a555-2b7c43a99f0f/scratchpad/pr-37931/ 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:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1
2026-11-27T12:13Z

L1 ACCEPT at 21f3c81c5961c80af40410ef6b92d95b7b31bb17 (L1-a for the seat). Tier H — an ADR amendment (rules face): this goes to the seat's hand-off for the maintainer, not to the queue.

Contract review. The isolated CONTRACT_REVIEW_TIER record 7217886593 (claim 7217586694, brief 7217897716) is a PASS on this head: no must-fix, no should-fix, four prose nits (N1–N4). verify-review-tier PASS on the reviewer's transcript (every turn served at tier).

Face. l1-face --pr 37931: shape, Fixes #37855, no other closing keyword, one file (ui/docs/adr/0057-console-ai-chat-one-conversation-docked.md), skip-changeset with no published package touched, Clause-②: no · Metadata-protocol: none, floor checks green. CI at this head: 30 success · 18 expected skip · 0 failed · 0 pending; mergeable_state clean.

For the approver. The amendment flags its settlement points 2 and 3 as the record's own. The record finds both sound against main, and says what each means:

Nits (prose; the author may fold them in before the hand-off without moving any non-prose face, or leave them): N1 row 2 could also name A4's phone collapse on arriving at the ai:chat page; N2 the "Entries" pointer lacks "but for A5's exceptions"; N3 "nothing has published a pending plan" is the exact wording; N4 "A conversation no longer outlives the user's close" overstates rows 3 and 5.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-tesla · session_01L9qibyUSf2nKJWW6qBemSU

Recorded 2026-11-27T12:14Z.

席位意见:可以合。我读了 PR 正文对主干 73d5e34 的前提更正:手机自动收起由任何页面前进后退触发、今天分不出两种关闭、助手总线不保留关闭后的待批写操作,这些都写进了 ADR 的「尚未记录」,交给实现卡 C4 补。L1-a 读过第 2、3 点,结论同上。

席位核对 — ACCEPT · repo:objectstack#3 · head 21f3c81c5961c80af40410ef6b92d95b7b31bb17

  1. 形态:Fixes #37855、Refs #37853;Clause-②: no、Metadata-protocol: none;1 个文件 +122 / −3。
  2. 前提实测:起草人在主干 73d5e347 上读代码,把卡面与代码不符的 6 处写成 ADR 正文(PR 正文 Acceptance notes);两句 Jack 原话在 专题:问 AI 入口改造(页头带字「问 AI」按钮、点开即新会话带当前记录、撤掉 ask_ai、抽屉顶部与收藏会话) #37853、专题:AI 问题卡(AI 需要澄清时输入框位置换成可点的问题卡;问题结束回合、回答是下一条消息;第二段扩到模糊请求) #37871 卡面各出现一次,逐字一致。
  3. 门禁 check-runs:30 success、18 按设计跳过、0 失败、0 pending(L1-a 7217995521 读)。本地 dispatch-gates 16 条派生、11 条跑且 exit 0、5 条 NOT MEASURED(缺 node_modules),CI 已跑过。check-governed-merges:ui/docs/adr 受管 ⇒ Tier H。
  4. 接受的偏差:A5 第 2、3 点超出原话(见上「风险」),交维护者以合并定夺;四条文字 nit N1–N4 不改,以免动 head。L1-a ACCEPT 7217995521。
  5. 范围外去向:起草人看到 ADR-0057 里三处旧文字(A3「One container」仍提 Studio 的 copilot;A2 的 app:PKG:build 停靠键与代码不符;A3「Entry」计划标记没有产出方),由本席另立跟进卡。
  6. 落地条款:Tier H ⇒ 维护者亲手合并,或 GOVERNED_APPROVERS(os-zhuang)批准后本席照落地前检落地。

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-tesla · session_01L9qibyUSf2nKJWW6qBemSU

维护者速读

@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 27, 2026
@os-zhuang
os-zhuang marked this pull request as ready for review November 27, 2026 12:27
@os-zhuang
os-zhuang added this pull request to the merge queue Nov 27, 2026
Any commits made after this event will not be merged.

This branch has not been deployed

No deployments
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.

入口专题 C0b:ui ADR-0057 A5(哪些打开方式开新会话、build 例外、抽屉页头)

2 participants