Repository navigation
Description
Delivered — 2026-11-05
Merged via #3627 as 33eff275315a94156bfd6122b35cc75e549cac04 on 2026-11-05. The actual squash has parent 4e6a2d8c840bcf2c74e20641d4603968b7b77476 and the exact tested tree 1d592e26c34ade50c23d23d8c3ce6fcee5b05c8f, and is an ancestor of fetched main. #3623 is closed; PR and issue retain milestone 0.45.0. Automatic main-push 42075416446, attempt 1, passed all selected proof. All 17 successful jobs' actual checkout logs independently match squash 33eff275315a94156bfd6122b35cc75e549cac04; the structured aggregate confirms fresh coverage without retained categories.
Complete fresh hosted confirmation 42070780426, attempt 1, passed every selected category with no retained domains: verify, pack, four unit shards, three browser shards, two layout shards, captures, runtime, runtime_host and endurance. Every successful job's actual checkout was verified as 40c273dc27ef2d17099d592f3877eb8cbc6c6590, with the exact stated head/base parents and tree 1d592e26c34ade50c23d23d8c3ce6fcee5b05c8f; current-head contract proof passed. The cooperative merge independently validated the receipts and actual job checkouts.
Out of scope
Configurable voices/personas and Settings UI (#3617), new providers, changing task permissions or treating speech as approval, replaying prior tasks, copying the entire normal-chat rendering/tool prompt into voice, and deployment work. Actual-provider listening and semantic qualification remain separate from keyless transport proof.
Context
The maintainer reports that live conversation behaves like a casual assistant without sufficient awareness of the brain's purpose or normal interaction rules. In particular, a task may start in the background without a spoken acknowledgement, and useful new facts are not reliably identified for capture.
Source inspected at 4e6a2d8c840bcf2c74e20641d4603968b7b77476:
openGemini(packages/ui-server/src/voice/gemini-conversation.ts:72-145) sends a hard-codedsetup.systemInstruction. Contextual mode covers task routing, continued conversation, no repeated work and permission/history boundaries. It does not introduce the brain's purpose, require spoken task acceptance, or explain when to capture new facts.openGptLive(packages/ui-server/src/voice/gpt-live-conversation.ts:62-130) sends hard-codedsession.start.session.instructions. It introduces "Brain, a conversational assistant", mentions note tools and asks for natural backchannel acknowledgement, but does not require acknowledgement of each accepted background task or identify facts to preserve.acknowledgement_delay_msis provider configuration, not a host-owned spoken task-acceptance receipt.LiveConversationOpenOptions(packages/ui-sdk/src/server/conversation.ts:173-181) accepts only signal, contextual-task negotiation, resync and optional chat history. There is no instruction/brain-context input from the host.ConversationHost.start's provider call (packages/ui-server/src/ws/conversation.ts:304-312) supplies those values.liveContext(packages/ui-server/src/voice/conversation-history.ts:90-97) assembles bounded historical discussion and host outcomes. These are historical data, explicitly not instructions. New chats can have neither block. Identity/current focus, brain instructions, module guidance and skills are not independently loaded here.admitContextual(packages/ui-server/src/ws/conversation.ts:741-783) submits up to 30 seconds / 12 fragments / 6,000 serialized characters of recent recognition/generated speech through the ordinary backend. That backend can load its normal repository instructions, but only after the live model requests work. This does not prime the live model beforehand.hostWork(packages/ui-server/src/ws/conversation.ts:830-861) emits running state to the client and accumulates backend answer text;deliver(packages/ui-server/src/ws/conversation.ts:903-955) returns settled results to the provider.sendReceipt(packages/ui-server/src/ws/conversation.ts:1134-1154) sends UI receipts, without a provider-facing queued/running acknowledgement.- Normal chat loads project instructions in
assembleClaudeSdkTurn(packages/ui-backend-claude/src/sdk-options.ts:383-419) andwithCwdContextFiles(packages/ui-backend-pi/src/session-resources.ts:151-168). Its sharedBRAIN_UI_SYSTEM_PROMPT_APPEND(packages/ui-sdk/src/server/system-prompt.ts:31-94) includes Markdown/rendering instructions and "Don't narrate tool use", so copying that whole append into voice would import inappropriate surface guidance.
Part of #54. Coordinate with #3617 without making core brain behavior depend on persona customization. #3131 covers actual-model result recall, not this missing initial behavioral guidance.
Scope
Review normal chat's actual guidance and system-prompt assembly, then define and route a deliberately selected shared live-conversation behavioral brief to both first-party engines, retaining provider-specific delegation syntax separately. The review must cover the shared prompt builder/append, configured system-prompt overrides, the brain's repository instruction overlay and imported contract, and relevant skill descriptions or guidance. Record which rules are reused unchanged, adapted for spoken interaction, or left with the host, and why. Keep shared guidance maintained from a common authoritative source where practical rather than copying independent prompt fragments that can drift. Give it the brain's purpose, relevant normal-chat interaction/capture rules, explicit spoken task acknowledgement, and honest task/result handling. Specify how relevant configured brain instructions and bounded identity/current-focus context reach voice at startup, distinguishing instructions from historical data and knowledge. Document the source, limits, omissions and activation boundary; do not silently assume that normal-backend context reaches the live provider.
Acceptance criteria
- An explicit source-to-live mapping identifies the selected normal-chat guidance/system-prompt sections and context, their purpose and trust, and which details remain host-only. This includes applicable user interaction preferences and brain-specific conventions; live mode must not depend solely on a generic assistant identity plus tool names. Exclude detailed file/frontmatter editing procedures, raw tool schemas, host execution/subagent lifecycle, and Markdown/rendering instructions unless the live model needs a bounded capability-level summary to decide where to delegate.
- The live brief explains the delegation boundary: handle greetings, ordinary dialogue, clarification and follow-ups answerable from current reliable context conversationally; delegate knowledge retrieval/verification, external research, capture or updates, other effects and substantial reasoning through the host when appropriate. It explains how to recognize those needs, including useful facts emerging without an explicit 'save this' command, under the user's configured capture policy. Missing relevant context or uncertain intent leads to retrieval or a focused clarification instead of invention.
- Bounded identity, current focus, domain/capability context and selected user preferences provide enough orientation to recognize meaningful brain work. The design states which context is supplied initially, which is fetched through the host, and how missing context is represented. The host retains detailed procedures, tools, execution and enforcement; live mode remains available to converse while that work runs.
- Both contextual live prompts identify the assistant's role in operating the user's file-first knowledge base: retrieve existing knowledge, recognize useful new facts/decisions/preferences and delegate appropriate capture/update through the ordinary host policy.
- Each accepted background task receives a brief spoken acknowledgement describing the intended work and that it is pending. Clarification, queued work, running work, refused work and completed work are distinguished honestly; a request alone is not evidence of host acceptance or completion.
- The implementation explicitly addresses that queued/running state currently reaches only the client. If provider-facing acceptance feedback is necessary, bind it to the exact task and preserve no-replay, permission and result correlation. Prompt text alone must not be presented as guaranteed audible delivery.
- New fact capture follows configured brain policy, clarifies uncertain recognition/intent, avoids duplicate captures, and never claims information was saved before a successful host result. Retained dialogue is not described as a saved knowledge-base note.
- Relevant normal-chat rules and brain context have an explicit bounded startup source and trust classification, with documented missing/omitted context behavior. A fresh chat receives useful purpose and interaction guidance even when history/resync are empty. Raw skills/tool schemas and surface-specific normal-chat instructions are not indiscriminately copied.
- Both providers preserve reviewed-only fallback behavior, host-owned permissions, uncertain recognition, historical-data boundaries, exact native task/result binding and byte-stable provider prefixes. Updated guidance applies at a new session/epoch boundary.
- Documentation explains what primes live mode and which normal-backend instructions/context are inherited, projected or retrieved through delegation.
Verification
Baseline inspection: bun run test packages/ui-server/tests/gemini-conversation.test.ts packages/ui-server/tests/gpt-live-conversation.test.ts packages/ui-server/tests/live-history-adapters.test.ts packages/ui-server/tests/conversation-history.test.ts passes 195 tests, zero failures. Dependencies were installed with bun install --frozen-lockfile; no tracked files changed. These tests prove existing serialization and lifecycle behavior, not actual-model speech or fact recognition.
Add meaningful failing-first/mutation tests against actual adapter startup frames for shared guidance and selected context, including empty history, replacement epochs, byte limits, missing context and reviewed-only mode. Verify that selected common guidance reaches both engines and that unrelated normal-chat execution/rendering instructions are excluded. Specify behavioral scenarios covering casual conversation, a knowledge lookup, an emerging fact worth preserving under configured policy, ambiguous intent, substantial reasoning, a pending task and a follow-up answerable from an identified result. Distinguish instruction/transport assertions and scripted harness behavior from any actual-model delegation judgment; do not claim prompt obedience from string checks. If acceptance feedback changes, exercise host admission/running/refusal and exact native identities against loopback providers. Run relevant provider-history guards and required PR preflight. Record each actual-model listening/behavior observation separately; scripted speech is not a semantic/audibility result.
Contract impact
Static prompt wording alone need not change the machine contract. Any new provider opening option, context transfer/disclosure, task-status feedback, or documented SDK/wire behavior requires inventory and the appropriate integration-contract update, versioning and CONTRACT commit rules. Assess the chosen implementation before labeling it contract-free. Bindings: docs/decisions/live-conversation.md, docs/decisions/provider-history.md, docs/decisions/voice-permission.md, and ROADMAP's Markdown/source-of-truth and existing-seam rules.
Implementation candidate 4e92ef85b1badeee1af852c9df2e09660941a379 now defines the bounded projection and exact-task feedback mechanism in docs/live-conversation-guidance.md. Selected normal-chat guidance is shared with both live engines; startup sources, limits, omissions, trust and activation are documented there. Queued feedback follows durable admission and running feedback follows host turn admission starting, before backend/tool entry may occur. Astra max review found a root-policy binding race and partial policy-selection bug. Both are fixed with failing-first/mutation regressions; a separate Astra max recheck approved implementation scope with no remaining blockers after 243 tests and four additional probes. The follow-up changes only browser regressions to distinguish queued/running status from completed outcomes and use the current task-carrier prefix; all 119 affected pinned-browser cases and the new committed preflight pass. The captured Claude options fixture also records only the reviewed common prefix in four interactive modes; all six SDK modes pass and all other options remain unchanged. Exact-candidate hosted proof passed in run 42070780426 and #3627 is merged; the first failed/cancelled confirmation retains its original result. This delivery is committed to milestone 0.45.0; actual-model/acoustic qualification remains separately tracked by #3131/#961.
2026-11-05: Folded the concrete implementation design and 0.45.0 commitment into the issue; the original source trace above remains the explicitly pinned pre-change investigation.
Maintainer clarification, 2026-11-05: Deliberately consider and reuse an appropriate subset of normal chat's guidance and/or system prompt. Live conversation must understand what 'delegate where appropriate' means through guidance and context, while continuing to delegate asynchronous host work rather than inheriting the entire host prompt.
Activity
schlessera commentedon Nov 5, 2026
Claiming #3623 for the maintainer's explicit end-to-end implementation request, including selected normal-chat guidance, appropriate asynchronous host delegation, tests, GPT-6 Astra review and merge. Claim token: live-3623-20261105-root. Starting source:
4e6a2d8c840bcf2c74e20641d4603968b7b77476; integration branch:fix/live-mode-context. Implementation will use a dedicated agent checkout. Routine implementation choices for bounded startup context and exact task-status feedback will be recorded with the delivered design; existing permission, disclosure and provider-history rules remain binding.schlessera commentedon Nov 5, 2026
Readiness/collision check at
4e6a2d8c840bcf2c74e20641d4603968b7b77476: no existing implementation PR for #3623 and no direct source-path collision in the four initial live entry points. The collision report includes closure overlap with #3054, #3056, #3059, #3069, #3116, #3336, #3393, #3437, #3458, #3464, #3581, #3587, #3590, #3594, #3621 and #3622; this is shared proof/dependency reach, not ownership of this issue. The clarified request explicitly authorizes selecting the relevant normal-chat guidance and bounded context while keeping asynchronous host delegation. npm reports@schlessera/brain0.44.0 published; this new delivery is assigned to the open 0.45.0 milestone. Main's recorded incident state is clear.