Skip to content

docs(ui-adr): ADR-0057 Amendment A4 — an app's AI inquiry page - #37825

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

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

Conversation

@objectstack-fleet

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

Copy link
Copy Markdown
Contributor

Requested by Elon · project thread
Fixes #37819
Refs #37788
Clause-②: no
Metadata-protocol: none

维护者速读

  • 是什么:设计文档补一条修订:应用可以在菜单里放一个通用的 AI 问询页,放在第一位就是首页;在这一页上右上角的机器人隐藏。只改文档,用户无感。
  • 为什么:这是「AI 问询首页」页面卡的前置;现有修订写的是「右侧抽屉是唯一的对话容器」,页面代码若先合,主干就和受管文档矛盾,所以文字先落。
  • 出错会怎样:只动文档,不影响任何用户,写错了可直接撤回这次修改。
  • 要你做的:无,座位交审批人。

What changes

One file, ui/docs/adr/0057-console-ai-chat-one-conversation-docked.md (+90 / -0):

  • New section ## Amendment A4 (2026-11-27, Accepted) — an app's AI inquiry page, placed after Amendment A3 and before "Open design questions", in A3's shape: What it changes · Why · Maintainer ruling (verbatim, not translated, with where it is recorded and the time of each) · Decision · Consequences ("Implemented under objectstack#37788.").
  • The Decision records the card's items 1–6 and nothing else: one ai:chat page per app (a type: 'component' navigation entry), copy from the entry's declared params (AiChatNavParamsSchema in @objectstack/spec/ui, objectstack#37787, merged), never from the URL, platform-generic, a key the entry omits falls back to neutral copy; the page is the app's home by the app's existing landing rule (a declared AppSchema.landing first; with none, from 768 px up the first entry shown lands; below 768 px the app root is the menu); on the page the drawer is closed and its triggers (top-bar robot, keyboard toggle) are hidden or inert, and no address stacks a second ask conversation there (the invariant of objectstack#37788 item 7, cited); the page runs ask (makers too), a build hand-off opens the drawer; conversation key app:PKG:ask, ?c=ID restores, a foreign or other-app ?c= opens the home state; A3 stands everywhere else. Named open, outside A4 and objectstack#37788: whether a phone's app root should open the page.
  • A3's "One container" bullet gains one in-place pointer in A3's own style, *(Amendment A4: …)*, so a reader of A3 finds the exception.
  • The header's Amended block gains one A4 entry after A3's (area o1-D's call on the round-1 open question): without it the header still said A3 made the drawer the ONLY chat container, contradicting the body.

Nothing decides beyond objectstack#37788's header and its items 1–8: no designer entry (T5), no hide-for-no-seat rule (T6); the Consequences say so in one sentence.

Tests

Docs-only; no tests apply. The three ruling quotes were checked byte-for-byte against objectstack#37788's body: each occurs once there (inside the corner brackets) and once in the ADR as its own blockquote line.

Local gate readings at 2818352

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

  • node scripts/check-closing-keyword-parity.mjs exit 0
  • node scripts/check-closing-keyword-parity.mjs --self-test exit 0
  • node scripts/check-comment-mask-corpus.mjs exit 0 (24065 files, 0 disagree)
  • pnpm check:adr-anchors exit 0
  • pnpm check:adr-index exit 0 (report-only; its one warning, a stale root docs/adr/README.md, is also present on origin/main ff9ee21; the ui-0057 row reads title, status and date, none of which this diff changes)
  • pnpm check:driver-memory-census exit 0
  • pnpm check:gitlink-declared exit 0
  • pnpm check:nul-bytes exit 0
  • pnpm check:pm-governed-merges 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

--ran reconciliation: 16 derived, 16 run, 0 NOT-MEASURED, 0 UNRUN. Everything else is CI's.

Acceptance notes

  • skip-changeset: ui/docs/adr/** ships in no package (ui/package.json is private and no ui/**/package.json lists docs), so nothing publishes.
  • Governed surface (ui/docs/adr/**, Tier H): this PR stays draft and is landed by neither the author nor the area; it goes to seat repo:objectstack#1 for the hand-off.
  • Beyond the card's "No other section changes", one header entry (three lines) was added on area o1-D's answer (option B): the Amended block names A4. Open design questions are untouched.
  • No ADR index row: the only index generator (scripts/adr-index.mjs) derives the ui-0057 row from title, status and date, which are unchanged.

Verification

Read first:

  1. The new ## Amendment A4 section (risk: the Decision saying more than the card's items 1–6).
  2. The pointer added under A3's "One container" bullet.
  3. The A4 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 the A4 entry in the header's Amended block, one pointer inside A3's "One container" bullet and one new A4 section between A3's Consequences and "Open design questions", with nothing removed (+90 / -0). Round 3 answered L1-a's REWORK 7211260420 (S1, S2, N1, N2, N4 of record 7211253615); the sentence-by-sentence list is in the dev's delta report on #37819 (comment 7211453346).

🤖 Generated with Claude Code

https://claude.ai/code/session_016WV4cwGVgec21LwQTtRY85

An app may place one `ai:chat` page in its navigation; placed first it is
the app's home, and the top-bar robot is hidden while it is the active
route. A3's one-container bullet gains an in-place pointer to the exception.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016WV4cwGVgec21LwQTtRY85
@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/s documentation Improvements or additions to documentation labels Nov 27, 2026
The status block's Amended list said A3 made the drawer the ONLY chat
container; without an A4 entry the header contradicted the body.

Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016WV4cwGVgec21LwQTtRY85
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-elon-musk · session_016WV4cwGVgec21LwQTtRY85

Final head for review: 8735dfe10fef4a124c1226588462b1761798b32e · area o1-D. Check-runs on this head (latest attempt): 30 success, 17 skipped, 0 failed. Attempt 1 of "Test UI (1/16)" timed out in ui/scripts/__tests__/select-affected-tests.test.ts (15.8 s of 15 s on a starved runner; this diff touches no code); the failed-job rerun passed; the flake is filed as #37830. L1 requested from seat 1's L1 thread. Governed surface (ui/docs/adr/**): after L1 the PR goes to seat repo:objectstack#1 for the ①–④ hand-off; the area does not land it.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-elon-musk · session_016WV4czzx9dtSEm3jWWL9c3

Contract-review-claim: session_016WV4czzx9dtSEm3jWWL9c3 · head 8735dfe · 2026-11-27T06:01Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-elon-musk · session_016WV4czzx9dtSEm3jWWL9c3

Contract review

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

Read for this record: card #37819 (body and all 5 comments), PR #37825 (body, file list, its 2 comments, the net diff against main, 1 file, +72 / -0), the check-runs on the head, and, to judge the text, objectstack#37788 and objectstack#37787 (bodies) and the live tree on origin/main at 9b50fedb, which contains #37798's squash 8fbae19a. Code outside the diff was read, not reviewed.

① Derived judgments

  • Accept-sets: none change. The diff is prose in one ADR file; no schema, no validator, no gate, no generated artifact. Right.
  • Public surface: none. ui/docs/adr/** ships in no package (ui/package.json is private: true). Right.
  • Governed surface: ui/docs/adr/** is the rules face, so this record and the Tier H hand-off are owed. The PR is a draft and says the area does not land it. Right.
  • Gate verdicts, read off the check-runs on this head: 30 success, 17 skipped, 0 failed (Governed Surface Queue Guard, Lint · docs & code guards, Lint · repo & tooling gates, Lint · PM dispatch-gates, PR-body guards, Check PR Size, Build & E2E UI, Test UI (1/16) all success). Nothing was re-run here.
  • Merge state: main moved from the merge base ff9ee210 to 9b50fedb; no commit in between touches ui/docs/adr/, so the net diff is unchanged by the move.

② Semver level

skip-changeset is right: nothing in the diff publishes. Check Changeset reads skipped / success on the head. Clause-②: no on the PR body is right: no accept-set, no declared capability and no public export changes. Metadata-protocol: none is right.

③ Boundary flags

  • Round-1 open_questions entry (should the header's Amended block name A4): answered by the area (option B) and implemented in round 2 as three header lines. Right call: without it the header still says A3 made the drawer the ONLY chat container, against the body. It is one step past the card's "No other section changes"; it carries no ruling content and follows A3's own precedent. Accepted.
  • Round-2 open_questions: empty.
  • Dev deviations (branch name, PR footer form, the model-named trailer on ef6a0059, pnpm install in the worktree, the PR body left for the seat): none touches the reviewed text; they are the lane seat's.
  • SQL push-down: no code, no query, no id materialisation. Nothing to find.
  • Escalated to the seat, because the answer may be the maintainer's and A4 must not decide past objectstack#37788: the two questions under S1 and S2 below (what closes the drawer's other ask doors on the page; what "home" means on a phone and under a declared landing).

④ Design judgment

File judged: ui/docs/adr/0057-console-ai-chat-one-conversation-docked.md, against the card's items 1 to 6, objectstack#37788 items 1 to 8 (its first consumer and execution plan), the rest of ADR-0057, and the code it describes on main.

What holds, checked sentence by sentence:

  • The three rulings are byte-identical to objectstack#37788's "Filing gate" line, each on its own blockquote line, with the times 02:41Z, 02:51Z, 03:16Z and where they are recorded.
  • "A2's key decision: the drawer's ask scope is still the product alone" matches A2's Key bullet. app:PKG:ask fits §1's (user, app, product) key and A2's app:PKG:build spelling.
  • The Thread bullet's last sentence correctly keeps A3's "What the drawer shows is kept per tab, never in the URL".
  • The A3 pointer and the header entry say the same thing as the section. Nothing decides T5 / T6; the Consequences say so.
  • Against feat(spec): declare the params of an ai:chat menu entry (AI inquiry home page copy) #37798 as shipped on main (packages/spec/src/ui/ai-chat-nav-params.zod.ts, app.zod.ts, ui/packages/layout/src/NavigationRenderer.tsx): no A4 sentence is made false. "a type: 'component' entry whose componentRef is ai:chat" is AI_CHAT_COMPONENT_REF on a component entry. "welcome title and subtitle, composer placeholder, suggested questions" are exactly the four keys title, subtitle, placeholder, suggestions; there is no agent and no scope, which agrees with "The page runs ask". "never from the URL" agrees with resolveHref, which returns /component/ai/chat with no querystring for this ref. "falls back to neutral platform copy" agrees with all four keys being optional with no schema default (the schema sets none; the fallback is the page's). "An app may place one" agrees with checkAppSingleAiChatEntry (at most one across navigation and every areas[].navigation, any depth). A4 names no length limit and no door, so it copies nothing that can drift.

Findings. No must-fix. Two should-fix, each owing a delta review.

S1 (should-fix) — the "never two ask conversations" claim is stronger than hiding the robot delivers. A4 says the robot "is hidden, so one screen never draws two ask conversations", and the Consequences repeat it. On main the robot is one of several doors to the drawer, and the others stay open on that page: (a) the keyboard toggle, which A3's Entry bullet says "stays" (useConsoleChatDock.tsx, Ctrl/Cmd+Shift+I, bound whenever the dock is enabled, independent of the button); (b) a drawer already open when the reader clicks the menu entry: its expanded state is kept per tab and survives navigation, so a member arrives on the page with an ask drawer beside the page's ask conversation and no robot to explain it; (c) an /ai… address, which A4 says "still open the drawer", opens it "over the declared landing", which is this page when the app is the default and the page is its home. For a non-maker every one of these is a second ask conversation on the screen. Fix in the text: state the rule as the invariant and name the doors, for example that on this page the drawer's ask is not drawn (an open one closes on arrival, the keyboard toggle does not open it there) and only a build hand-off opens the drawer; or, if the ruling is read as the robot alone, drop "never" and say what remains. objectstack#37788 item 7 already says "the top-right robot / drawer trigger", so naming the toggle is inside it; (b) and (c) need the seat's answer first.

S2 (should-fix) — the Home bullet is false in two cases the live tree supports. "Placed first in the app's navigation, the page is the app's home" is unconditional. On main (AppContent.tsx, resolveLandingRoute and the app root): a declared AppSchema.landing comes first, so a first-placed page is not the home when landing names another entry (and a page placed third is the home when landing names it); and below 768 px the app root is the app's whole menu (PhoneAppHome, objectstack#35881), so on a phone the page is one row of the home, not the home. objectstack#37788 changes neither. What does hold: with no declared landing, from 768 px up, the first entry the member is shown lands, and a component entry qualifies (objectui#12113). Fix: tie the sentence to the app's existing landing rule instead of to position alone, and say what a phone does, or record that the maintainer wants the phone root to open the page (「做首页」 can be read that way; that is a ruling for the seat to fetch, not for A4 to assume).

Nits.

  • N1 (nit) — the spec symbol. Asked explicitly: now that feat(spec): declare the params of an ai:chat menu entry (AI inquiry home page copy) #37798 has merged (05:59:31Z, after this head was written at about 05:31Z), should A4 name AiChatNavParamsSchema? Grade: nit. The dev followed the card to the letter (name the symbol only if merged at writing time); "(objectstack#37787)" is still true and resolves, through the closed card and its PR, to the symbol; no sentence is false or incomplete without it, so it has no effect on correctness or the contract. It is still the better text, and the card's conditional shows that was the intent. Since S1 and S2 move the head anyway, fold it into that commit: "that entry's declared params (AiChatNavParamsSchema in @objectstack/spec/ui, objectstack#37787)". Name the symbol and the package only; do not copy keys' limits or the list of doors into the ADR.
  • N2 (nit) — "a key the entry does not declare falls back to neutral platform copy" can be misread as an unknown key being tolerated; the shipped schema is closed and refuses one at navigation.i.params.KEY. "a key the entry omits" removes the reading.
  • N3 (nit) — "One page per app": the shipped check does not count an ai:chat entry that a package's navigation contribution adds after parse (stated in checkAppSingleAiChatEntry's own comment). A4 does not claim enforcement, so nothing is false; the page PR should say which entry it reads if two arrive.
  • N4 (nit) — Consequences: "the one place in the console shell, outside the drawer, where an assistant conversation is drawn" sits beside A3's three surfaces that keep their own chrome (Studio's copilot, the share page, the runtime bubble). "the one app page" would be exact.
  • N5 (nit, PR body, the seat's) — the body still says feat(spec): declare the params of an ai:chat menu entry (AI inquiry home page copy) #37798 "is still open at this head"; it merged at 05:59Z.

Implemented-by: claude/project-thread-gstmvs
Reviewed-by: session_016WV4czzx9dtSEm3jWWL9c3

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-elon-musk · session_016WV4czzx9dtSEm3jWWL9c3

L1 verdict (L1-a): REWORK (text) at head 8735dfe10fef4a124c1226588462b1761798b32e (Fixes #37819). Full read · 2026-11-27T06:08Z

Contract review. Record posted just above, at CONTRACT_REVIEW_TIER (tier verified). No must-fix, two should-fix (S1, S2), five nits. A should-fix is open on this head, so the queue guard holds the PR until a delta record closes them. Checks: 30 success, 17 expected skip, 0 failed. One file, +72/-0, governed (ui/docs/adr/**), Tier H.

What holds. The three rulings are quoted byte-for-byte from #37788 with their times. A2's key, A3's per-tab rule and the Consequences agree with the rest of ADR-0057. No A4 sentence is made false by what #37798 shipped: the ai:chat component entry, the four optional keys title / subtitle / placeholder / suggestions, no URL parameters (resolveHref), and at most one entry per app (checkAppSingleAiChatEntry). Adding the A4 entry to the header's Amended block is accepted.

Owed, the two should-fix. I checked both against the code on main.

What the text must not decide alone. For S1, whether an already-open drawer closes on arrival and what an /ai… address does on that page. For S2, whether a phone's app root should open the page (「做首页」 can be read that way). Those go to the maintainer through the seat. The area writes only what the rulings already settle and names any open point as open.

The area's question: should A4 name AiChatNavParamsSchema? Yes, in the same commit, since S1 and S2 move the head anyway (record N1): "(AiChatNavParamsSchema in @objectstack/spec/ui, objectstack#37787)". Name the symbol and the package only; copy no limits or doors. Also take N2 ("a key the entry omits") and N4 ("the one app page"), which are prose fixes. The PR body still says #37798 is open (N5); that goes forward at the hand-off.

Delta. The original reviewer reads the new head for S1 and S2. I then do the L1 delta.

…nding rule

Round-3 review: the page states the item-7 invariant (drawer closed, robot
and keyboard toggle hidden or inert, no address stacks a second ask
conversation), home follows the app's existing landing rule with the phone
root named open, and the params schema is named.

Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016WV4cwGVgec21LwQTtRY85
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-elon-musk · session_016WV4cwGVgec21LwQTtRY85

Final head for review: 2818352d6ce1ac43ccbad25dff097bcd059ceeb0 · area o1-D · round 3 on L1-a's REWORK 7211260420 (record 7211253615: S1, S2, N1, N2, N4). Check-runs on this head: 30 success, 17 skipped, 0 failed. One file, +90/-0. S1 follows the seat's routing read, which L1-a agreed to: A4 states #37788 item 7's invariant and cites it. S2 ties "home" to the existing landing rule. The phone app root is named open, outside A4 and #37788. Old → new sentences: dev delta report 7211453346 on #37819. PR body updated (N5). Delta reads requested from the original contract reviewer and from L1-a.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-elon-musk · session_016WV4czzx9dtSEm3jWWL9c3

Contract-review-claim: session_016WV4czzx9dtSEm3jWWL9c3 · head 2818352 · 2026-11-27T06:31Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-elon-musk · session_016WV4czzx9dtSEm3jWWL9c3

Contract review

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

DELTA review from 8735dfe1 (the first-round record: PASS, should-fix S1 and S2, nits N1 to N5) to this head. Read: the delta 8735dfe1..2818352d (1 file, +37 / -19), the net diff against main (1 file, +90 / -0), the dev delta report 7211453346 on card #37819 and its old-to-new sentence list, the check-runs on this head, and the cited code on origin/main at 10284387. Code outside the diff was read, not reviewed.

① Derived judgments

  • Still prose in one ADR file: no accept-set, no public surface, no schema, no gate. Right.
  • Check-runs on this head: 30 success, 17 skipped, 0 failed, none pending (Governed Surface Queue Guard, Lint · docs & code guards, Lint · repo & tooling gates, Lint · PM dispatch-gates, PR-body guards, Build & E2E UI, Test UI (1/16) all success). Nothing was re-run here.
  • main has moved to 10284387; between the merge base ff9ee210 and it, no commit touches this ADR, AppContent.tsx or useConsoleChatDock.tsx, so the net diff and the code facts below are unchanged.

② Semver level

Unchanged: skip-changeset is right, nothing publishes (ui/package.json is private). Clause-②: no and Metadata-protocol: none are right.

③ Boundary flags

  • The two questions escalated in the first round were answered by the seat with L1-a's agreement, not by the maintainer: A4 may state objectstack#37788 item 7's purpose as the rule; how an /ai… address resolves is left to AI 问询首页 T2:平台通用的应用内 AI 问询页面(首页态、提问、恢复对话,本页隐藏机器人) #37788; home is tied to the existing landing rule; the phone app root is open and out of scope. The text says where its authority comes from ("objectstack#37788 item 7 … read with the 03:16Z ruling, A4 states that as the rule"), so a reader can see it is a reading of the ruling and not a new one. Accepted on that basis.
  • Round-3 open_questions: empty. Deviations (bullet retitled, PR body untouched, model-free trailer on 2818352d): none is a contract matter.
  • SQL push-down: no code. Nothing to find.

④ Design judgment

S1: closed. The bullet now states the invariant and names the doors. Checked against the first round's three: (a) the keyboard toggle is named and made inert, and "A3's Entry, the top-bar robot and the keyboard toggle" matches A3's Entry bullet, which holds both; (b) "While the page is the active route the drawer is closed" covers a drawer left open on arrival; (c) "No address, the /ai… addresses included, stacks a second ask conversation on the page" states the result and says nothing of how the address is routed, so #37788 keeps that choice. It does not contradict the "A3 everywhere else" bullet ("The /ai… addresses still open the drawer"): the new sentence bounds it on this one page. The quoted fragment "so one screen never holds two ask conversations" is item 7's own wording. The build hand-off exception is kept and is consistent with the invariant, since the drawer it opens runs build. No overclaim found: nothing here says how the page PR achieves it. The header entry and the A3 pointer carry the same wording.

S2: closed. Each sentence of the new Home bullet holds on main (AppContent.tsx): resolveLandingRoute returns the declared AppSchema.landing first; with none, the first entry the member is shown lands and component is in WORKING_LANDING_TYPES; the phone branch returns PhoneAppHome and never redirects, whatever landing declares, so "Below 768 px the app root is the app's menu, and the page is one row of it" is exact. The new "Open, outside A4 and objectstack#37788" line names the phone question without deciding it and without inventing a card.

Nits from the first round:

  • N1: applied correctly. "AiChatNavParamsSchema in @objectstack/spec/ui, objectstack#37787" names the symbol and the package only; the export exists on main (packages/spec/src/ui/index.ts). No limits or doors were copied.
  • N2: applied correctly ("a key the entry omits").
  • N4: applied correctly ("the one app page in the console shell that draws an assistant conversation outside the drawer"); the dropped clause "never shares a screen with the drawer's entry" is now carried, more precisely, by the drawer bullet.
  • N3 and N5 are not ADR text: N3 is for the page PR, N5 (the PR body still says feat(spec): declare the params of an ai:chat menu entry (AI inquiry home page copy) #37798 is open) is the seat's.

The three rulings are still byte-identical, each on its own blockquote line. Nothing in the delta decides T5 / T6 or anything #37788 leaves open.

No must-fix, no should-fix.

  • N6 (nit, accepted as is; do not move the head for it) — the bullet title "No drawer on the page", and the three summaries (header, A3 pointer, "What it changes") that say "the drawer is closed", read slightly stronger than the bullet's body, which lets a build hand-off open the drawer. The body is the rule and it is explicit, so nothing is false.

Implemented-by: claude/project-thread-gstmvs
Reviewed-by: session_016WV4czzx9dtSEm3jWWL9c3

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-elon-musk · session_016WV4czzx9dtSEm3jWWL9c3

L1 verdict (L1-a): ACCEPT (delta) at head 2818352d6ce1ac43ccbad25dff097bcd059ceeb0 (Fixes #37819). Delta read from REWORK 7211260420 at 8735dfe1 · 2026-11-27T06:33Z

Contract review. Delta record posted just above, at CONTRACT_REVIEW_TIER by the first round's reviewer (tier verified). PASS, S1: closed, S2: closed, no must-fix, no should-fix. One new nit (N6), accepted as is.

What I checked myself.

Checks. 30 success, 17 expected skip, 0 failed; mergeable_state clean. One file, ADR text only, +90/-0 against main.

Landing: Tier H (ui/docs/adr/**). This goes to seat 1 for ①–④. This thread does not land it.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-elon-musk · session_016WV4cwoXEE1amuRAGHdPBs

Seat record · 2026-11-27T06:35Z · PR #37825 (Fixes #37819, Refs #37788) · head 2818352d6ce1ac43ccbad25dff097bcd059ceeb0 · Tier H

维护者速读

Seat opinion: land.

席位核对 — ACCEPT · repo:objectstack#1 · head 2818352d6c

  1. Shape. Draft, base main, 1 file (+90/−0): ui/docs/adr/0057-console-ai-chat-one-conversation-docked.md (status line, the A3 pointer, the new "Amendment A4" section). skip-changeset. Body: Fixes #37819, Refs #37788, Clause-②: no, Metadata-protocol: none. Governed ADR path ⇒ Tier H.
  2. Premise measured. The seat read the diff. A4 quotes the three rulings from AI 问询首页 T2:平台通用的应用内 AI 问询页面(首页态、提问、恢复对话,本页隐藏机器人) #37788's filing-gate line verbatim; names AiChatNavParamsSchema (merged in feat(spec): declare the params of an ai:chat menu entry (AI inquiry home page copy) #37798); keeps home on the existing landing rule (AppSchema.landing, then first entry from 768 px; the phone menu otherwise); states the no-second-conversation invariant from AI 问询首页 T2:平台通用的应用内 AI 问询页面(首页态、提问、恢复对话,本页隐藏机器人) #37788 item 7 (the seat's routing read, cited in the text); leaves "phone root opens the page" open and outside AI 问询首页 T2:平台通用的应用内 AI 问询页面(首页态、提问、恢复对话,本页隐藏机器人) #37788; leaves every other A3 rule standing.
  3. Gates (check-runs at this head). 30 success, 17 expected skip, 0 failed; mergeable_state clean.
  4. Accepted deviations. N6 (the bullet title "No drawer on the page" reads slightly stronger than its body, which lets a build hand-off open the drawer; the body is the rule) — accepted by record 7211638815, head not moved. First-round nits N1–N5 per that record.
  5. Out of scope → where it went. Phone root opening the page: recorded open in A4, not filed (no ask). How an author adds the entry and the unavailable-to-member case: AI 问询首页 T2:平台通用的应用内 AI 问询页面(首页态、提问、恢复对话,本页隐藏机器人) #37788 / AI 问询首页 T6: hide the ai:chat menu entry from people who cannot get an agent (no AI or no seat); the app home falls through to the next entry #37833 (T6). Skills-docs: none — no published skill teaches the drawer. Neither record carries a Security-touching: line, so the low-risk arm cannot apply; Tier H either way.
  6. Landing terms. L1 delta ACCEPT 7211645515 + contract review delta PASS 7211638815 (CONTRACT_REVIEW_TIER, same head, S1/S2 closed, no must-fix or should-fix) ⇒ ②③ in one --handoff stroke. After an authorised APPROVED, seat 1 lands it (maintainer's seat-thread line 2026-11-26T13:33Z 「审批人批准后的 Tier H PR 你可以自主落地」). A head move other than a clean main merge withdraws the hand-off.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-elon-musk · session_016WV4czzx9dtSEm3jWWL9c3

Contract review

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

DELTA review from 8735dfe1 (first-round record 7211253615) to this head. Read: the delta 8735dfe1..2818352d (1 file, +37 / -19), the net diff against main (1 file, +90 / -0), the dev delta report 7211453346 on card #37819 and its old-to-new sentence list, the check-runs on this head, and the cited code on origin/main at 10284387. Code outside the diff was read, not reviewed.

① Derived judgments

  • Still prose in one ADR file: no accept-set, no public surface, no schema, no gate. Right.
  • Check-runs on this head: 30 success, 17 skipped, 0 failed, none pending (Governed Surface Queue Guard, Lint · docs & code guards, Lint · repo & tooling gates, Lint · PM dispatch-gates, PR-body guards, Build & E2E UI, Test UI (1/16) all success). Nothing was re-run here.
  • main has moved to 10284387; between the merge base ff9ee210 and it, no commit touches this ADR, AppContent.tsx or useConsoleChatDock.tsx, so the net diff and the code facts below are unchanged.

② Semver level

Unchanged: skip-changeset is right, nothing publishes (ui/package.json is private). Clause-②: no and Metadata-protocol: none are right.

③ Boundary flags

  • The two questions escalated in the first round were answered by the seat with L1-a's agreement, not by the maintainer: A4 may state objectstack#37788 item 7's purpose as the rule; how an /ai… address resolves is left to AI 问询首页 T2:平台通用的应用内 AI 问询页面(首页态、提问、恢复对话,本页隐藏机器人) #37788; home is tied to the existing landing rule; the phone app root is open and out of scope. The text says where its authority comes from ("objectstack#37788 item 7 … read with the 03:16Z ruling, A4 states that as the rule"), so a reader can see it is a reading of the ruling and not a new one. Accepted on that basis.
  • Round-3 open_questions: empty. Deviations (bullet retitled, PR body untouched, model-free trailer on 2818352d): none is a contract matter.
  • SQL push-down: no code. Nothing to find.

④ Design judgment

S1 (should-fix): closed
The bullet now states the invariant and names the doors. Checked against the first round's three: (a) the keyboard toggle is named and made inert, and "A3's Entry, the top-bar robot and the keyboard toggle" matches A3's Entry bullet, which holds both; (b) "While the page is the active route the drawer is closed" covers a drawer left open on arrival; (c) "No address, the /ai… addresses included, stacks a second ask conversation on the page" states the result and says nothing of how the address is routed, so #37788 keeps that choice. It does not contradict the "A3 everywhere else" bullet ("The /ai… addresses still open the drawer"): the new sentence bounds it on this one page. The quoted fragment "so one screen never holds two ask conversations" is item 7's own wording. The build hand-off exception is kept and is consistent with the invariant, since the drawer it opens runs build. No overclaim found: nothing here says how the page PR achieves it. The header entry and the A3 pointer carry the same wording.

S2 (should-fix): closed
Each sentence of the new Home bullet holds on main (AppContent.tsx): resolveLandingRoute returns the declared AppSchema.landing first; with none, the first entry the member is shown lands and component is in WORKING_LANDING_TYPES; the phone branch returns PhoneAppHome and never redirects, whatever landing declares, so "Below 768 px the app root is the app's menu, and the page is one row of it" is exact. The new "Open, outside A4 and objectstack#37788" line names the phone question without deciding it and without inventing a card.

Nits from the first round:

  • N1: applied correctly. "AiChatNavParamsSchema in @objectstack/spec/ui, objectstack#37787" names the symbol and the package only; the export exists on main (packages/spec/src/ui/index.ts). No limits or doors were copied.
  • N2: applied correctly ("a key the entry omits").
  • N4: applied correctly ("the one app page in the console shell that draws an assistant conversation outside the drawer"); the dropped clause "never shares a screen with the drawer's entry" is now carried, more precisely, by the drawer bullet.
  • N3 and N5 are not ADR text: N3 is for the page PR, N5 (the PR body still says feat(spec): declare the params of an ai:chat menu entry (AI inquiry home page copy) #37798 is open) is the seat's.

The three rulings are still byte-identical, each on its own blockquote line. Nothing in the delta decides T5 / T6 or anything #37788 leaves open.

No must-fix, no should-fix.

  • N6 (nit, accepted as is; do not move the head for it) — the bullet title "No drawer on the page", and the three summaries (header, A3 pointer, "What it changes") that say "the drawer is closed", read slightly stronger than the bullet's body, which lets a build hand-off open the drawer. The body is the rule and it is explicit, so nothing is false.

Implemented-by: claude/project-thread-gstmvs
Reviewed-by: session_016WV4czzx9dtSEm3jWWL9c3

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-elon-musk · session_016WV4cwoXEE1amuRAGHdPBs

Seat record · 2026-11-27T06:37Z · PR #37825 (Fixes #37819, Refs #37788) · head 2818352d6ce1ac43ccbad25dff097bcd059ceeb0 · Tier H

维护者速读

Seat opinion: land.

席位核对 — ACCEPT · repo:objectstack#1 · head 2818352d6c

  1. Shape. Draft, base main, 1 file (+90/−0): ui/docs/adr/0057-console-ai-chat-one-conversation-docked.md (status line, the A3 pointer, the new "Amendment A4" section). skip-changeset. Body: Fixes #37819, Refs #37788, Clause-②: no, Metadata-protocol: none. Governed ADR path ⇒ Tier H.
  2. Premise measured. The seat read the diff. A4 quotes the three rulings from AI 问询首页 T2:平台通用的应用内 AI 问询页面(首页态、提问、恢复对话,本页隐藏机器人) #37788's filing-gate line verbatim; names AiChatNavParamsSchema (merged in feat(spec): declare the params of an ai:chat menu entry (AI inquiry home page copy) #37798); keeps home on the existing landing rule (AppSchema.landing, then first entry from 768 px; the phone menu otherwise); states the no-second-conversation invariant from AI 问询首页 T2:平台通用的应用内 AI 问询页面(首页态、提问、恢复对话,本页隐藏机器人) #37788 item 7 (the seat's routing read, cited in the text); leaves "phone root opens the page" open and outside AI 问询首页 T2:平台通用的应用内 AI 问询页面(首页态、提问、恢复对话,本页隐藏机器人) #37788; leaves every other A3 rule standing.
  3. Gates (check-runs at this head). 30 success, 17 expected skip, 0 failed; mergeable_state clean.
  4. Accepted deviations. N6 (the bullet title "No drawer on the page" reads slightly stronger than its body, which lets a build hand-off open the drawer; the body is the rule) — accepted by the delta record (7211638815, re-posted as 7211689330), head not moved. First-round nits N1–N5 per that record.
  5. Out of scope → where it went. Phone root opening the page: recorded open in A4, not filed (no ask). How an author adds the entry and the unavailable-to-member case: AI 问询首页 T2:平台通用的应用内 AI 问询页面(首页态、提问、恢复对话,本页隐藏机器人) #37788 / AI 问询首页 T6: hide the ai:chat menu entry from people who cannot get an agent (no AI or no seat); the app home falls through to the next entry #37833 (T6). Skills-docs: none — no published skill teaches the drawer. Neither record carries a Security-touching: line, so the low-risk arm cannot apply; Tier H either way.
  6. Landing terms. L1 delta ACCEPT 7211645515 + contract review delta PASS 7211689330 (CONTRACT_REVIEW_TIER, same head, S1/S2 closed, no must-fix or should-fix) ⇒ ②③ in one --handoff stroke. After an authorised APPROVED, seat 1 lands it (maintainer's seat-thread line 2026-11-26T13:33Z 「审批人批准后的 Tier H PR 你可以自主落地」). A head move other than a clean main merge withdraws the hand-off.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-elon-musk · session_016WV4czzx9dtSEm3jWWL9c3

Contract review

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

DELTA review from 8735dfe1 (first-round record 7211253615) to this head. Read: the delta 8735dfe1..2818352d (1 file, +37 / -19), the net diff against main (1 file, +90 / -0), the dev delta report 7211453346 on card #37819 and its old-to-new sentence list, the check-runs on this head, and the cited code on origin/main at 10284387. Code outside the diff was read, not reviewed.

① Derived judgments

  • Still prose in one ADR file: no accept-set, no public surface, no schema, no gate. Right.
  • Check-runs on this head: 30 success, 17 skipped, 0 failed, none pending (Governed Surface Queue Guard, Lint · docs & code guards, Lint · repo & tooling gates, Lint · PM dispatch-gates, PR-body guards, Build & E2E UI, Test UI (1/16) all success). Nothing was re-run here.
  • main has moved to 10284387; between the merge base ff9ee210 and it, no commit touches this ADR, AppContent.tsx or useConsoleChatDock.tsx, so the net diff and the code facts below are unchanged.

② Semver level

Unchanged: skip-changeset is right, nothing publishes (ui/package.json is private). Clause-②: no and Metadata-protocol: none are right.

③ Boundary flags

  • The two questions escalated in the first round were answered by the seat with L1-a's agreement, not by the maintainer: A4 may state objectstack#37788 item 7's purpose as the rule; how an /ai… address resolves is left to AI 问询首页 T2:平台通用的应用内 AI 问询页面(首页态、提问、恢复对话,本页隐藏机器人) #37788; home is tied to the existing landing rule; the phone app root is open and out of scope. The text says where its authority comes from ("objectstack#37788 item 7 … read with the 03:16Z ruling, A4 states that as the rule"), so a reader can see it is a reading of the ruling and not a new one. Accepted on that basis.
  • Round-3 open_questions: empty. Deviations (bullet retitled, PR body untouched, model-free trailer on 2818352d): none is a contract matter.
  • SQL push-down: no code. Nothing to find.

④ Design judgment

S1 (should-fix): closed

The bullet now states the invariant and names the doors. Checked against the first round's three: (a) the keyboard toggle is named and made inert, and "A3's Entry, the top-bar robot and the keyboard toggle" matches A3's Entry bullet, which holds both; (b) "While the page is the active route the drawer is closed" covers a drawer left open on arrival; (c) "No address, the /ai… addresses included, stacks a second ask conversation on the page" states the result and says nothing of how the address is routed, so #37788 keeps that choice. It does not contradict the "A3 everywhere else" bullet ("The /ai… addresses still open the drawer"): the new sentence bounds it on this one page. The quoted fragment "so one screen never holds two ask conversations" is item 7's own wording. The build hand-off exception is kept and is consistent with the invariant, since the drawer it opens runs build. No overclaim found: nothing here says how the page PR achieves it. The header entry and the A3 pointer carry the same wording.

S2 (should-fix): closed

Each sentence of the new Home bullet holds on main (AppContent.tsx): resolveLandingRoute returns the declared AppSchema.landing first; with none, the first entry the member is shown lands and component is in WORKING_LANDING_TYPES; the phone branch returns PhoneAppHome and never redirects, whatever landing declares, so "Below 768 px the app root is the app's menu, and the page is one row of it" is exact. The new "Open, outside A4 and objectstack#37788" line names the phone question without deciding it and without inventing a card.

Nits from the first round:

  • N1: applied correctly. "AiChatNavParamsSchema in @objectstack/spec/ui, objectstack#37787" names the symbol and the package only; the export exists on main (packages/spec/src/ui/index.ts). No limits or doors were copied.
  • N2: applied correctly ("a key the entry omits").
  • N4: applied correctly ("the one app page in the console shell that draws an assistant conversation outside the drawer"); the dropped clause "never shares a screen with the drawer's entry" is now carried, more precisely, by the drawer bullet.
  • N3 and N5 are not ADR text: N3 is for the page PR, N5 (the PR body still says feat(spec): declare the params of an ai:chat menu entry (AI inquiry home page copy) #37798 is open) is the seat's.

The three rulings are still byte-identical, each on its own blockquote line. Nothing in the delta decides T5 / T6 or anything #37788 leaves open.

No must-fix, no should-fix.

  • N6 (nit, accepted as is; do not move the head for it) — the bullet title "No drawer on the page", and the three summaries (header, A3 pointer, "What it changes") that say "the drawer is closed", read slightly stronger than the bullet's body, which lets a build hand-off open the drawer. The body is the rule and it is explicit, so nothing is false.

Implemented-by: claude/project-thread-gstmvs
Reviewed-by: session_016WV4czzx9dtSEm3jWWL9c3

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-elon-musk · session_016WV4cwoXEE1amuRAGHdPBs

Seat record · 2026-11-27T06:40Z · PR #37825 (Fixes #37819, Refs #37788) · head 2818352d6ce1ac43ccbad25dff097bcd059ceeb0 · Tier H

维护者速读

Seat opinion: land.

席位核对 — ACCEPT · repo:objectstack#1 · head 2818352d6c

  1. Shape. Draft, base main, 1 file (+90/−0): ui/docs/adr/0057-console-ai-chat-one-conversation-docked.md (status line, the A3 pointer, the new "Amendment A4" section). skip-changeset. Body: Fixes #37819, Refs #37788, Clause-②: no, Metadata-protocol: none. Governed ADR path ⇒ Tier H.
  2. Premise measured. The seat read the diff. A4 quotes the three rulings from AI 问询首页 T2:平台通用的应用内 AI 问询页面(首页态、提问、恢复对话,本页隐藏机器人) #37788's filing-gate line verbatim; names AiChatNavParamsSchema (merged in feat(spec): declare the params of an ai:chat menu entry (AI inquiry home page copy) #37798); keeps home on the existing landing rule (AppSchema.landing, then first entry from 768 px; the phone menu otherwise); states the no-second-conversation invariant from AI 问询首页 T2:平台通用的应用内 AI 问询页面(首页态、提问、恢复对话,本页隐藏机器人) #37788 item 7 (the seat's routing read, cited in the text); leaves "phone root opens the page" open and outside AI 问询首页 T2:平台通用的应用内 AI 问询页面(首页态、提问、恢复对话,本页隐藏机器人) #37788; leaves every other A3 rule standing.
  3. Gates (check-runs at this head). 30 success, 17 expected skip, 0 failed; mergeable_state clean.
  4. Accepted deviations. N6 (the bullet title "No drawer on the page" reads slightly stronger than its body, which lets a build hand-off open the drawer; the body is the rule) — accepted by the delta record (7211638815, re-posted as 7211727443), head not moved. First-round nits N1–N5 per that record.
  5. Out of scope → where it went. Phone root opening the page: recorded open in A4, not filed (no ask). How an author adds the entry and the unavailable-to-member case: AI 问询首页 T2:平台通用的应用内 AI 问询页面(首页态、提问、恢复对话,本页隐藏机器人) #37788 / AI 问询首页 T6: hide the ai:chat menu entry from people who cannot get an agent (no AI or no seat); the app home falls through to the next entry #37833 (T6). Skills-docs: none — no published skill teaches the drawer. Neither record carries a Security-touching: line, so the low-risk arm cannot apply; Tier H either way.
  6. Landing terms. L1 delta ACCEPT 7211645515 + contract review delta PASS 7211727443 (CONTRACT_REVIEW_TIER, same head, S1/S2 closed, no must-fix or should-fix) ⇒ ②③ in one --handoff stroke. After an authorised APPROVED, seat 1 lands it (maintainer's seat-thread line 2026-11-26T13:33Z 「审批人批准后的 Tier H PR 你可以自主落地」). A head move other than a clean main merge withdraws the hand-off.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-elon-musk · session_016WV4cwoXEE1amuRAGHdPBs

Approval request · Tier H · PR #37825 (Fixes #37819, Refs #37788) · head 2818352d6ce1ac43ccbad25dff097bcd059ceeb0

@os-zhuang — governed ui/docs/adr/**: ADR-0057 Amendment A4, recording the 2026-11-27 ruling 「做首页,本页隐藏机器人」 (one ai:chat page per app; the drawer closed and its triggers hidden on that page; A3 everywhere else). Text only; the page itself is #37788, dispatched after this merges. Records on this head: L1 delta ACCEPT 7211645515, contract review delta PASS 7211727443 (CONTRACT_REVIEW_TIER), seat record ACCEPT above. All checks green or expected-skip. An APPROVED review on this head lets seat repo:objectstack#1 ready and land it; nothing else is asked.

@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 07:04
@os-zhuang
os-zhuang added this pull request to the merge queue Nov 27, 2026
@github-actions

Copy link
Copy Markdown
Contributor

⛔ merge queue 构建失败 — 先分诊,再决定要不要重排

队列构建 45956003747 红了。队列跑的是全量套件(PR 侧 CI 只跑 affected 子集),
所以失败的测试可能在本 PR 没碰过的包里 —— 那不是重排能修的。每次盲目重排都会让排在后面的所有 PR 重建一轮。

分类:failure —— 按下面的日志分诊。

失败的 job(日志抽取,best effort):

  • Test UI (1/16) — 失败步骤: Run the ui tests (shard 1/16)

    × a change to the imported path walker selects what a change to the selector itself does (objectstack#31520) 15525ms
    FAIL   unit  scripts/__tests__/select-affected-tests.test.ts > select-affected-tests — the live tree > a change to the imported path walker selects what a change to the selector itself does (objectsta
      ↳ 失败原因: Error: Test timed out in 15000ms.
    

↳ 失败原因 是判读的关键:超时(Test timed out in … / Hook timed out in …)多半是负载/时序,不是本 PR 的回归;
断言(AssertionError: …)才指向真实的行为改变。两者的 FAIL 行长得一模一样,只有这一行能区分。

⚠️ 断言这一侧有一类例外,判据是断言在测什么,不是它是不是 AssertionError。 断言的对象是产品行为(一个值、一个形状、一次拒收)⇒ 照上面读:真实的行为改变,去查,⛔ 不要重排掉;
断言的对象是这次实验自身的有效性前提(跑完的耗时、负载下的先后、任何只在时间预算内才成立的条件)⇒ 它跟超时是同一类,同样对负载敏感,重排一次是合法的判别手段。
识别是机械的:断言的消息或它比较的值本身点名了一段时长、一个时间戳、一个耗时计数。实测过的一对 —— AssertionError: SecurityPlugin.init() ran: expected false to be true 测的是产品行为(真回归);
AssertionError: this run took over a second, so second-precision stamps could have differed too: expected 1006 to be less than 1000 测的是实验前提:它守护的那条不变式当时是绿的,同一个 head 原样重排一次即成功。
穿着 AssertionError 外衣的时间测量,仍然是时间测量。(⛔ 这只改「怎么读一次红」,不改「哪些测试可以重排」——后者由别处管。)

跨 PR 相同签名(24h,按失败测试文件聚合):

  • scripts/__tests__/select-affected-tests.test.ts — 24h 窗口内只有本 PR 撞到过,暂不汇总(再有一个不同 PR 撞到就会自动开汇总 issue)。
  • ⚠️ 24h 评论账本没读完(超过 5 页仍未读到窗口尽头),所以上面的「不同 PR 数」是下界,不是全量。

历史信号:

  • 本 PR 过去 24h 无队列失败记录(首次)。
  • 过去 24h 队列共有 14 个失败构建(不含本次)。

分诊清单:

  1. 失败测试在本 PR 改动的包里 → 真回归,修 PR。
  2. 失败测试与本 PR 无关 → 看上面的「跨 PR 相同签名」;已有汇总 issue ⇒ flaky/环境问题实锤,去那张 issue 上谈,修好前重排只会再烧一轮全队列。
  3. 两者都不是 → 可能与同组 PR 语义冲突;等前面的 PR 落地或失败出队后再重排一次即可,不要连续重排。

Generated by Claude Code · merge-queue-triage workflow (#4859)

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-elon-musk · session_016WV4cwoXEE1amuRAGHdPBs

Queue drop · 2026-11-27T07:26Z · PR #37825 · head 2818352d6ce1ac43ccbad25dff097bcd059ceeb0 (unchanged) · queue build 45956003747

@os-zhuang — the queue build failed on Test UI (1/16): scripts/__tests__/select-affected-tests.test.ts › "a change to the imported path walker selects what a change to the selector itself does" — Test timed out in 15000ms (triage comment 7212453943). Seat reading, by the four branches:

Merged via the queue into main with commit 02ed840 Nov 27, 2026
53 checks passed
@os-zhuang
os-zhuang deleted the claude/project-thread-gstmvs branch November 27, 2026 08:03
@objectstack-fleet objectstack-fleet Bot removed 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
Nenzyz pushed a commit to Nenzyz/objectstack that referenced this pull request Dec 1, 2026
…versation, drawer closed there (objectstack-ai#37889)

<!-- claude-projects-attribution: {"github_login":"os-elon-musk"} -->
_Requested by **Elon** · [project
thread](https://claude.ai/code/project/chan_01WedDzV26nniwxv7jC88B9D?thread=cmsg_01WedDzV26nniwxv7jC88B9D71daFMSfEFsgPq1ECrMYCy)_
Fixes objectstack-ai#37788
Clause-②: no
Metadata-protocol: none

## 维护者速读
- 是什么:平台通用的「AI 问询」页面上线。应用在菜单里放一个 `ai:chat` 入口(按应用现有的首页规则:没声明 landing
时,电脑上放第一位就是首页;手机上应用首页是菜单),进来先看到应用配置的欢迎语、大输入框和推荐问题;提问后同一页变成对话,刷新能恢复。
- 为什么:落地 ADR-0057 修订 A4(objectstack-ai#37825
已合)。以前这个入口会显示「组件未注册」;现在有页面,而且这一页上右上角机器人隐藏、快捷键无效,不会出现两个对话。
- 出错会怎样:只影响菜单里放了 `ai:chat` 的应用;其他页面抽屉照旧。没开 AI 或没席位的人看到现有的「AI 助手不可用」页。
- 要你做的:无,区内复审后交座位。

## What changes

The `ai:chat` component ref (`AI_CHAT_COMPONENT_REF`,
`@objectstack/spec/ui`) gets its page, per ui ADR-0057 Amendment A4 as
merged in objectstack-ai#37825.

- **`console/ai/AppAskPage.tsx`** (new, +370) — the page, registered
lazily in `services/builtinComponents.tsx` (`registerAppComponent` +
`lazyPage`, so it stays out of the eager closure; the console build's
declared-lazy check passes). Home state: title, subtitle, placeholder
and up to four suggestions from the entry's `params`, read through
`AiChatNavParamsSchema`; a key the entry omits falls back to neutral
platform copy, and nothing is read from the URL. A static badge,
「Answers prefer this app」. Enter sends, Shift+Enter and IME composition
do not. The first question turns the same page into the conversation:
the existing `ChatPane` (header hidden) on the `ask` agent, a maker
included, bound to the app's package (`activeAppPackageId`), under the
conversation key `app:PKG:ask`. The first message is held and replayed
by the pane's existing deferred-first-send path, so the conversation row
is created on first send.
- **`?c=ID`** — once the conversation exists the address carries it
(`replace`), so a reload restores it. A `?c=` the page did not create is
checked with the existing `GET /conversations/:id`: one whose
`metadata.activePackageId` is not this app's package, or one that is not
the caller's (403/404), opens the home state and is removed from the
address; nothing of it is drawn. 「New conversation」 in the page header
returns to the home state.
- **`console/ai/appAskPageModel.ts`** (new, +128) — the rules without
React: finding the app's `ai:chat` entry (navigation, then
`areas[].navigation`, through `children`), reading its copy (a record
the schema refuses is read as declaring nothing, with one console
warning), the conversation key, the create metadata, and the
belongs-to-this-app test.
- **`hooks/useChatConversation.ts`** — an optional `createMetadata`; the
first-send create sends `{ metadata }` when it is set. Only the page
sets it (`{ activePackageId: PKG }`); every other caller still sends
`{}`. `ServerConversation` gains the `metadata` the GET contract already
returns.
- **Drawer rule, `layout/**`** — `isAppAskPagePath`
(`consoleRoutePaths.ts`) names the page's route; `ConsoleLayout` passes
`askPageActive` to `useConsoleChatDock`. While it holds: the drawer
renders closed (the stored preference is untouched and comes back off
the page), `open()` and the assistant bus are inert, the
Ctrl/Cmd+Shift+I effect is not bound, and `AssistantTopBarButton`
returns `null` (`ChatDockControl.askPageActive`). A build hand-off still
opens the drawer: `open()` with a handoff or a build-agent target passes
(`opensBesideAskPage`), and the drawer stays open until it is collapsed
or the user leaves the page. On a phone, arriving on the page with the
sheet stored open collapses it, so the next page does not bring it back
(the sheet already closes on any move away, objectstack-ai#37556); the desktop rail
keeps its stored state.
- **`@object-ui/i18n`** — one key, `console.ai.askPage.scopeBadge`, in
all 11 packs. The other strings reuse existing keys
(`console.ai.empty.ask.*`, `console.ai.askAnything`,
`console.ai.submit`, `console.ai.newConversation`).
- One changeset (`@object-ui/app-shell` and `@object-ui/i18n`, patch).

Not touched: `AiChatPage.tsx`, `ChatbotEnhanced.tsx`, `ui/docs/adr/**`,
`packages/spec/src`.

## Tests

- `console/ai/__tests__/AppAskPage-37788.test.tsx` (11) — the real page,
the real `useChatConversation` over a stubbed `fetch`, the real router
and registry; stand-ins for the agent catalog, the AI gate, app
metadata, `ChatPane` and `AiUnavailable`. It covers: the registry entry;
declared copy; fallback copy; no copy from the URL; a suggestion asks it
(pane on `ask`, bound to the package, the create body `{ metadata: {
activePackageId } }`, the address gains `?c=`); a maker gets `ask`; a
reload restores from `?c=`; another app's conversation opens the home
state and leaves the address; a 403 opens the home state; New
conversation; and the unavailable state.
- `console/ai/__tests__/appAskPageModel.test.ts` — finding the entry,
copy and fallback, the warning on a refused record, the key,
belongs-to-this-app, and `isAppAskPagePath` agreeing with
`componentRefToUrlSegments(AI_CHAT_COMPONENT_REF)`.
-
`layout/__tests__/useConsoleChatDock.phoneCollapseOnNavigate-37556.test.tsx`
(+7, real dock + control provider + top-bar button): the drawer is
closed on the page and back off it; the robot is hidden on the page
only; the toggle chord and `ask` opens are inert on the page; control:
the chord works off it; a build open still opens the drawer; on a phone,
a sheet open on arrival is closed by the page and stays closed on the
next page; on a phone, a build hand-off still opens the sheet.
- `layout/__tests__/ConsoleLayout.askPageHidesEntry-37788.test.tsx`
(new, 2): through the real `ConsoleLayout` wiring, the entry is not
drawn on the `ai:chat` route and is back on another; a drawer open
elsewhere is closed on the route and comes back after it.
- `hooks/__tests__/useChatConversation.test.tsx` (+2): `createMetadata`
reaches the create body; the drawer's create is still `{}`.
- Ablations: with `AssistantTopBarButton`'s `askPageActive` return
removed, "the robot is hidden on the page only" fails; with the
phone-collapse branch disabled, the phone case fails (1 failed / 15
passed); with `ConsoleLayout`'s `askPageActive` set to `false`, both
wiring cases fail. Restored, all pass.

## Acceptance notes

- **Item 10, `context.surface`: not tagged, and why.** A cheap hook does
exist: `ChatPane` takes `surfaceContext` and sends it as
`context.surface`, and the spec's `pillar` is a free advisory string
(`packages/spec/src/contracts/ai-service.ts`, `surfaceContext`). It is
left out because the shape is cloud#1610's, and cloud's agent route
sanitizes it field by field
(`ui/packages/app-shell/src/layout/chatSurfaceContext.ts`, module doc).
Which `pillar` value that sanitizer keeps cannot be read from here: the
cloud repository is out of this seat's reach. So the page sends no value
that cloud might drop, and the console invents no new vocabulary. Evals
can still split these turns: every conversation the page creates carries
`metadata.activePackageId`, which only this page sets. Once cloud names
a value, tagging is a one-prop change on `ChatPane`.
- **Location-state hand-offs.** A `/ai…` address with handoff state that
lands on the page does not open the drawer. Only `open()` with a build
target or a handoff does.
- **Phone root** is out of scope, as the ADR names it.
- **The entry stays hidden after a hand-off opens the drawer on the
page.** That is A4's rule: on the page the triggers are hidden or inert.
The drawer closes with its own control, and reopening it there would put
a second conversation on the page.
- **L1 nits not taken in this delta**, to keep it to the dock hook, the
tests, the changeset and this body. They are: a transient error on the
`?c=` check is read as foreign; the check fetches the full conversation
to read `metadata`; an app with no `_packageId` gets no message;
duplicate suggestions share a React key. Each one touches
`AppAskPage.tsx`.
- **Beyond the order's file list:** the 11 locale packs (one key), the
model module `appAskPageModel.ts`, and four files under `layout/**`
(`consoleRoutePaths.ts`, `chatDockControl.tsx`,
`AssistantTopBarButton.tsx`, `ConsoleLayout.tsx`). ui AGENTS asks for
docs updates (README, `content/docs/frontend`); those are outside this
PR's surface and are left for a follow-up.
- **Overlap:** objectstack-ai#37885 (Ask AI entry button) rewrites
`AssistantTopBarButton.tsx`, so the two PRs conflict textually there.
The conflict is one early return plus a doc line: `if
(control?.askPageActive) return null;` goes at the top of the rewritten
component. With objectstack-ai#37885, the entry also appears in page headers, and this
return hides it on the page too. Whichever PR lands second rebases. With
`origin/main` and objectstack-ai#37676 this branch merges cleanly.

## Verification

- At `df8d6f75`: `pnpm exec vitest run` of the AppAskPage, dock, the two
ConsoleLayout and the model/conversation test files: all green
(AppAskPage 11/11, dock 16/16, ConsoleLayout wiring 2/2, robot 2/2).
`app-shell` type-check, both programs: exit 0. eslint on the changed
files: 0 errors.
- The derived gates (`dispatch-gates --ran`: 41 of 41 run), plus the
i18n keys, drift, dead-keys, all-locales parity, product-neutral
ratchet, eslint on the changed files and `check:new-line-citations`: all
exit 0 (re-read after the L1 delta: the changeset gates,
`check:test-source-alias`, cross-package test inputs, the timer probe,
ceremony text, the role word and new-line citations, all exit 0).
`check:test-source-alias` first flagged that the two edited test files
reach `AiChatPage`'s lazy `import('@object-ui/plugin-grid')`; fixed by
loading it at module top, as the gate prescribes.
- Full `pnpm build`: exit 0.
- **Browser** (showcase app, `pnpm dev --fresh`, console on Vite): an
`ai:chat` entry was injected first in `showcase_app`'s navigation
through a Playwright route on `/api/v1/meta/app`, with no source edit.
`/api/v1/ai/**` was stubbed, since OSS has no AI. Results:
- The home state draws the declared copy, the badge and four
suggestions.
- `?c=conv-1` restores the conversation (user question plus a markdown
answer) with 「New conversation」 in the header.
- The top-bar Ask AI entry counts 0 on the page and 1 on the Capability
Map page.
- Screenshots, at 1440×900 @2x, of the home state and the restored
conversation, are kept with the project. The relay cannot upload images.
Both were viewed at L1 (comment 7215194705).

---
_Generated by [Claude
Code](https://claude.ai/code/session_016WV4czF5gqc48r9LUsmRpw)_
<!-- signed: repo:objectstack#1 · os-elon-musk ·
session_016WV4czF5gqc48r9LUsmRpw -->

---------

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 size/s 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-0057 Amendment A4: an app may place one AI inquiry page (ai:chat) in its menu; the top-bar robot hides on that page

3 participants