Repository navigation
Description
Out of scope
Adding a third live provider, managing provider credentials, changing the ordinary chat/agent model default, changing dictation, deploying an instance, or silently switching an active conversation's destination. This issue does not authorize paid qualification calls.
Context
The maintainer requests that the default live-conversation provider be configurable through Settings. Choosing the ordinary chat model is a different preference. Related architecture work #317 selected Gemini Live and GPT-Live, and #3178 delivered existing-chat context across live sessions; neither supplies this Settings control. Part of #54.
Source navigation rechecked at main 1619741f291f525d17cde4970a5ada40644117c1:
conversationProvider,packages/ui-server/src/app.ts:252, accepts oneconversationProviderby value; implementing a picker requires server registration/discovery and selection, not just a dropdown.SECTIONS(packages/ui-react/src/components/settings/settings-panel.tsx:28) andSettingsPanel(packages/ui-react/src/components/settings/settings-panel.tsx:42), defines the existing Settings destinations.getDefaultModelId(packages/ui-server/src/db/settings.ts:107) andsetDefaultModelId(packages/ui-server/src/db/settings.ts:112), is an existing persisted preference pattern, for the ordinary model rather than live conversation.disclosureKey,packages/ui-react/src/voice/conversation-client.ts:324-339, fences changed voice disclosure; theconversation_startsend atpackages/ui-react/src/voice/conversation-client.ts:465supplies the disclosed profile.
Scope
Expose available live-conversation providers and persist a chosen default through an authenticated Settings UI. Resolve that preference when starting a live conversation, independently of the task backend. Include the necessary SDK/server/client discovery and registration work for both existing adapters. Coordinate the shared Settings surface with the companion persona feature #3617 under #54.
The maintainer has selected the Voice pane, a one-time provider choice on Start, and explicit recovery for an unavailable saved default. Keep the proposed brain-wide preference and next-Start activation boundary. Complete the remaining design reconciliation for registration/discovery, exact authorization/schema, precedence and legacy-client compatibility before implementation; the selected branches below must not be reopened as unanswered questions.
Acceptance criteria
- The recorded design incorporates L1–L3 as ruled below, with Settings and pre-Start states at 320px and desktop width, accessible labels and errors, and an explicit compatibility table for zero, one and multiple configured providers. Reconcile the brief's precedence list with every table row, including multiple providers with no saved/host default and legacy clients that cannot express the new selection.
- Settings uses a pane named Voice under This brain. Its brain-wide live-provider default is independent of the ordinary model default, with owner-authorized writes and persisted server settings. Opening/saving it performs no provider, microphone or history transfer. Do not assume the current Models route already supplies the proposed owner-only guard; enforce the chosen boundary on the new route.
- The Start screen includes Change when multiple providers are available. That choice applies only to the new conversation, overrides the saved default for that Start, and does not write the saved default.
- An unavailable saved provider requires an explicit valid provider pick before Start; no automatic host-default fallback is selected. Preserve the unavailable saved preference until explicitly changed in Settings, and show the chosen destination before microphone/history transfer.
- Settings shows the configured/usable provider choices, the saved default and any unavailable saved selection without exposing credentials. Authorized saves survive reload and server restart under the agreed scope; unauthorized writes are refused.
- With both existing adapters configured, saving either default causes the next explicitly started conversation to use that adapter. The ordinary chat/agent model default remains independent.
- Missing, removed or unusable selections follow the explicit-pick recovery above. When no provider is configured, live conversation remains unavailable. Discovery distinguishes registration from proven provider health; a later provider/key failure does not silently select a different destination.
- A Settings save does not rewrite provider-facing history or silently retarget an active conversation. Any destination change follows the existing disclosure and explicit Start boundary before microphone/history transfer.
- Existing single-provider hosts and clients retain documented compatibility. Disabled/unconfigured live conversation remains honestly unavailable.
- User-facing and integration documentation describe defaults, persistence scope, activation and failure behavior.
Verification
Use keyless server/SDK tests for selection, persistence, authorization, missing selections and legacy behavior, plus real browser tests through Settings and the live Start flow. Exercise both provider identities with local adapter doubles and assert which adapter opens, when disclosure is shown, and that no audio/history crosses a changed destination before Start. Add meaningful failing-first or mutation evidence for selection and disclosure gates. Run the provider-history guard on affected paths and the required PR preflight. Synthetic receipts establish routing behavior only, not vendor/audio qualification.
Contract impact
Expect additive settings/discovery and possibly registration/start selection changes. Design must inventory public SDK, HTTP and wire changes in docs/integration-contract.md and its authoritative components, preserve legacy consumers, and follow CONTRACT/minor-release rules for additive changes. Any breaking proposal requires the existing maintainer ruling process before implementation. Binding records: docs/decisions/live-conversation.md, docs/decisions/provider-history.md, docs/decisions/voice-permission.md (including later supersessions), and docs/plans/voice-conversation.md.
No release milestone is committed by this request.
Maintainer decision — 2026-11-08
- L1: Include a one-time Change control on the Start screen. It changes the provider for that conversation without changing the saved default.
- L2: If the saved provider is unavailable, require an explicit provider pick. Do not automatically substitute the host default, even with a notice.
- L3: Name the shared Settings pane Voice.
These choices use the proposed brain-wide default and next-explicit-Start activation boundary. A Settings save never retargets a running conversation; reconnect keeps its original provider. The actual destination must be disclosed before Start, and opening/saving Settings alone transfers no microphone audio or chat history.
Use the existing design brief and mocks with L1–L3 settled. The original L1–L3 scope choices above are resolved; the later amendment below introduces the remaining review questions. Retain needs: design for the remaining documented schema/authorization/compatibility reconciliation: the precedence list and zero/one/multiple-provider table must agree, legacy single-provider clients must remain supported, the new owner-write boundary must be explicit rather than assumed from Models, and coordination with #3617 must not introduce a circular dependency. Preserve the existing prompt/mocks and fold the amended interaction into this body before implementation readiness. No further maintainer choice among L1–L3 is pending.
Triage 2026-11-08 at main 1619741f291f525d17cde4970a5ada40644117c1: Reconciled the later proposal without selecting open choices and refreshed moved source pointers. Existing p2 ranking and voice-epic membership remain; no release or audio qualification is inferred.
2026-11-08 decision reconciliation: incorporated the maintainer's one-time Change, explicit-pick recovery and Voice naming selections. Kept the existing design prerequisite for exact contract/interaction reconciliation; no runtime, release or audio qualification is claimed.
Current design reconciliation (R1 ruled and design signed off below)
The latest reconciliation supersedes the earlier precedence/compatibility table and old proposal to rebroadcast hello. Its concrete proposed contract is reproduced below, with every recommended branch still unapproved. R1 is the exact remaining compatibility question: legacy clients with no effective service see unavailable, or get a separate deterministic fallback. Recommendation is unavailable, preserving L2's explicit-pick rule; an approved fallback would need its precise compatibility/destination disclosure consequences. The maintainer records R1 and signs off the reconciled design before implementation readiness.
Design reconciliation: schema, authorization, registration and compatibility (L1–L3 applied)
This finishes the brief with the 2026-11-08 rulings applied. The Settings pane mock in that brief still stands. The Start screen is now the Start card in the voice field (#3690 / #3698): Service row + Change (L1) and state S3d (L2).
1. Precedence (one list; the table in §4 follows it exactly)
Effective service for a new Start:
- Change on the Start card. It is shown only when 2 or more services are usable, applies to this conversation only and is never saved (L1).
- Saved default. It is used only if usable. A saved but unusable default stops here: the effective service is none and the Start card shows S3d, which requires an explicit pick from the usable services (L2). There is no fall-through.
- Host default (
defaultConversationProviderId), only when nothing is saved. - The single usable service, only when exactly one is registered and nothing is saved.
- Otherwise none.
- With 2 or more usable services, nothing saved and no host default, the Start card requires a pick. There is no implicit "first registered".
- With 0 usable services, live conversation is unavailable.
"Usable" means registered at boot. There is no runtime credential probing. A key that fails later surfaces through the existing provider_error close and never selects another service.
2. Registration and discovery (additive)
- Host option.
createBrainUiServer({ conversationProviders?: LiveConversationProvider[]; defaultConversationProviderId?: string }). The legacyconversationProvideris still accepted and means a list of one. Startup fails on any of:- both options given;
- duplicate provider ids;
- a
defaultConversationProviderIdthat is not among the registered ids.
server_hello.- Keeps
conversationProfile. It is present only when the effective service is non-null, and equals that service's profile. A legacy client therefore keeps today's behaviour on single-provider hosts. - Adds
conversationProfiles: ConversationProfile[]andliveDefault: { saved: string | null; savedUsable: boolean; effective: string | null; source: "change" | "saved" | "host" | "only" | "none" }. The valuechangeis never sent in hello; it appears only on the start echo.
- Keeps
- Live update. After a save, the server sends an additive
live_settingsframe with the sameliveDefaultandconversationProfilesfields to the owner's open connections. Clients that predate it ignore unknown frame types; this is to be verified against the wire contract's unknown-frame rule at implementation. conversation_start. Gains optionalproviderId. The host opens a provider only ifproviderId === disclosed.providerIdand that id is registered. Otherwise the existing refusal applies: "The voice disclosure changed. Review it and select Start. Microphone off." An absentproviderIdmeans the effective service (legacy behaviour). It is refused when the effective service is none.
3. Storage and authorization
- Store. The ui-server settings store (
getSetting/setSetting). This is persisted server state, not the disposable content index. The key isvoice.live.defaultProvider, with value{ value: string | null, revision: number }. The reader is total: corrupt or unknown data reads asnull, revision 0. - Read (
GET /api/settings/voice): any authenticated human session of the brain. - Write (
PUT /api/settings/voice). The request body is{ defaultProvider: string | null, revision }.- A new owner-only guard on this route. Only the brain owner's human session passes. Device tokens, agent or worker principals and any delegated or shared principal get
403with an empty body. - This guard is a requirement of this issue. It is not assumed to exist on the Models route; implementation adds it and tests it directly. Mutating-route CSRF protection is the same as on the existing settings routes.
- An id that is not registered returns
400 LIVE_PROVIDER_UNKNOWN. A stale revision returns409 LIVE_SETTINGS_CHANGEDwith the current value. Settings then shows "Changed on another device" and reloads the value. nullclears the saved default.
- A new owner-only guard on this route. Only the brain owner's human session passes. Device tokens, agent or worker principals and any delegated or shared principal get
- No credentials, key presence or endpoints appear in hello, routes or errors.
4. Compatibility table (follows §1)
| Usable services | Saved | Host default | Effective (legacy conversationProfile) |
Settings pane | Start card |
|---|---|---|---|---|---|
| 0 | any | — | none (absent) | "Live conversation isn't set up on this host." | S4 |
| 1 | none | — / that one | the one | one non-interactive row, "The only live service on this host" | Service row without Change |
| 1 | that one | — | the one | same | same |
| 1 | other (removed) | — | none (absent) | the one row plus a dashed "Saved default · not available" row | S3d (pick the one) |
| ≥2 | none | set | host default | radios, host default marked "default" | Service row with Change |
| ≥2 | none | none | none (absent) | radios, nothing checked, hint "Pick a default" | S3d-style pick required |
| ≥2 | usable | any | saved | radios, saved one checked | Service row with Change |
| ≥2 | unusable | any | none (absent) | radios plus dashed unavailable row | S3d |
A legacy client sees only conversationProfile. When it is absent, the client shows live conversation as unavailable, exactly as it does today on a host with no provider (see R1).
5. Activation (unchanged from the brief, restated as ruled)
- Saving takes effect at the next explicit Start. It never retargets a running conversation, and a reconnect keeps that conversation's original provider, which is pinned with the conversation entry.
- Opening or saving Settings performs no provider I/O, microphone capture or history read.
- If another device changes the default between the Start card and Start, the exact-echo refusal applies.
6. Coordination with #3617 (no circular dependency)
- ui-react: configure the default live-conversation provider through Settings #3616 owns
voice.live.defaultProvider, the route with that field only, the registration and discovery fields, and the Voice pane with its Live service group. - ui-react: configure and select live-conversation personas through Settings #3617 later adds the
voice.live.personakey (its own revision), extends the same GET/PUT with an optionalpersonafield, and adds the Persona group to the pane. - Neither schema depends on the other. Joint validation, meaning the voice for the effective service, happens only on the Start card (ui-react: wire the Start card (S1–S5) — service, persona and recovery #3698, states S3, S3b and S3c).
7. Storybook first and slices
- ui-kit. The Voice pane's Live service group: radio rows; "default", "in use now" and "not available" markers; save-error inline; the zero, one and multiple variants. Stories at 320 and desktop in light and dark. The Start card is already covered by ui-kit: voice components and stories for every dictation, Start and live state #3692.
- SDK/server. Registration validation, hello fields, the
live_settingsframe, the startproviderIdecho, the store key and the owner-only route. Keyless tests use two adapter doubles and assert which double'sopenis called for every row of §4, plus the 403 and 409 paths. A mutation that removes the guard must fail the 403 test. - Integration (prerequisites: 1, 2 and ui-kit: voice components and stories for every dictation, Start and live state #3692): Settings pane wiring and Start card data. Browser proof at 320 and 1280: reload persistence, Change applied without being saved, S3d explicit pick, no audio or history frame before Start.
CONTRACT: additive minor. Update the integration-contract wire (hello, live_settings, start), HTTP route and package-option components.
Open question (resolved: unavailable)
- R1, legacy clients against a multi-provider host with no effective default. Recommended: such clients see live conversation as unavailable until a default exists, which is honest and needs no guess. The alternative is a deterministic host fallback for legacy clients only, which would contradict L2's spirit.
Current shared-pane source
#3709 has already delivered the Voice pane: SECTIONS (packages/ui-react/src/components/settings/settings-panel.tsx:28) includes Voice at line 31, and VoiceTab (packages/ui-react/src/components/settings/voice-tab.tsx:11) explicitly reserves independent groups for dictation and later live settings. Extend that pane rather than creating a duplicate or replacing DictationSettings. Dictation has its own routes/revision (createVoiceRoutes, packages/ui-server/src/routes/voice.ts:26); proposed live settings stay independent. Current dictation authorization is source context, not approval of the still-proposed live-route boundary. Start-time presentation remains #3698; this issue owns registration, live settings and their data contract.
Triage 2026-11-08 at main 8752570331ffebdbb9233196412781f6cd71f3d9: Folded the later schema/authorization/compatibility amendment and R1 into the body, retained its decision prerequisite and added the still-required design sign-off. Reconciled the already-shipped dictation Voice pane without broadening live or dictation policy.
Maintainer decision — 2026-11-08 (R1 and sign-off)
- R1: a legacy client on a multi-provider host with no effective service sees live conversation as unavailable.
conversationProfilestays absent until a saved or host default exists. There is no deterministic legacy fallback, consistent with L2. - Design sign-off: the reconciled design in the body (§1 precedence, §2 registration/discovery, §3 storage and the new owner-only write guard, §4 compatibility table, §5 activation, §6 ui-react: configure and select live-conversation personas through Settings #3617 coordination, §7 Storybook-first slices) is approved as the implementation specification.
needs: designis removed. Implementation follows the §7 slice order: the ui-kit Live service group first, then SDK/server, then integration.
2026-11-08: recorded R1 and the design sign-off; removed needs: decision and needs: design, added agent-ready.
Activity
schlessera commentedon Nov 5, 2026
The requested Settings-based live-provider default is decided. Placement, preference scope/precedence, compatibility and the behavior of a change during an active conversation still need a concrete interaction design; the current single-provider registration cannot settle those choices. Prepare the proposal on this issue, coordinated with #3617, before implementation readiness is granted.
Navigation refresh 2026-11-08: source locations checked at main
1619741f291f525d17cde4970a5ada40644117c1. Read the later proposed design and the current issue-body approval gap together with this prompt; no open recommendation is promoted to approval.schlessera commentedon Nov 6, 2026
Design brief: default live-conversation service in Settings (coordinated with #3617)
Read at
main:SECTIONS/SettingsPanel(settings-panel.tsx),getSetting/setSetting/getDefaultModelId(db/settings.ts),LiveConversationProvider/LiveConversationOpenOptions(ui-sdk/src/server/conversation.ts),disclosureKey/requireCurrentDisclosure/startEpoch/server_hellohandling (voice/conversation-client.ts),docs/decisions/live-conversation.md(incl. #3178 Start correction, #3053 consent boundaries).Persona editor and Start sheet are on #3617.
1. Placement
New pane Voice in Settings › This brain, between Models and Accounts (
meta: "live", icon reuse: existing voice/mic kit icon). It holds two radio groups: Live service (this issue) and Persona (#3617). Reasons:Alternative considered: a "Live service" row inside Models. Rejected for the reason above and because personas need room.
2. Ownership, scope, precedence
voice.live.defaultProvider = "<providerId>" | null, exactly themodels.defaultpattern (total reader, corrupt → null). Follows the owner across devices; no device override.PUTof the model default (human owner session). Device/agent principal credentials are refused (403, no body detail). No credential, key presence detail or endpoint appears in discovery or errors.defaultConversationProviderIdregistration option), only when nothing is saved;3. Registration and discovery (additive)
createBrainUiServer({ conversationProviders?: LiveConversationProvider[], defaultConversationProviderId?: string }). LegacyconversationProvider= list of one. Both given → startup error naming the conflict. Duplicate ids → existingassertLiveConversationProvider-style error.server_hellokeepsconversationProfile(= the effective profile for a legacy client, so old clients behave exactly as today) and addsconversationProfiles: ConversationProfile[]+liveDefault: { saved: string | null; savedUsable: boolean; effective: string | null; source: "saved" | "host" | "only" | "none" }.GET/PUT /api/settings/voice→{ defaultProvider, revision };PUTtakes{ defaultProvider: string | null, revision }. Unknown/unregistered id →400 LIVE_PROVIDER_UNKNOWN. Stale revision →409(UI: "Changed on another device", reload value). After a save the server re-broadcastsserver_hello-equivalent fields to the owner's connections so other open Settings/Start sheets update.conversation_startgains optionalproviderId. The host only opens that provider if it equalsdisclosed.providerId(existing exact-echo admission) and is registered; otherwise the existing refusal path. AbsentproviderId= effective default (legacy).Compatibility table
defaultdefaultconversationProfile= effective; no new frames read"Usable" = registered at boot. This design doesn't add runtime credential probing (no paid/key calls); a provider whose key later fails surfaces through the existing
provider_errorclose, unchanged.4. Save / cancel / concurrency / active conversation
in use nowseparately fromdefault · saved(A2). To switch: the user Leaves and starts again → the Start sheet discloses the new destination → explicit Start. No extra "restart" button is proposed (avoids a one-tap destination change). Automatic recovery/reconnect of the running conversation keeps its entry's provider (already pinned bydisclosureKey), so a default change mid-conversation cannot leak into a reconnect epoch.5. Activation / consent sequence
Any mismatch (default changed on another device between sheet and Start, provider removed) → existing "The voice disclosure changed. Review it and select Start. Microphone off." path.
6. Persona coupling (#3617) without a circular dependency
Voices are per-service in each persona, so the service default never edits a persona. Validation is joint only at Start: (effective service, selected persona) → voice for that service is valid / missing (→ service default voice, disclosed) / stale (→ B4 recovery). #3616 ships first with the Persona group absent; #3617 adds it to the same pane and adds
personaRefto Start. Neither change requires the other's schema.Implementation slices
defaultConversationProviderId, hello fields,providerIdon start, settings route + KV key; keyless tests with two adapter doubles asserting which double'sopenis called, legacy single-option byte-identical helloconversationProfile.openon either double until explicit pick; save during active conversation → noconversation_stop/startsent, reconnect reopens original provider; no audio/history frames precede Start after a destination change. Browser: Settings at 320 and 1280, reload persistence, Start flow for both ids.CONTRACT:additive minor; updatedocs/integration-contract.md(wire hello + start, HTTP settings route, package API registration options).Open decisions
Design source:
Voice Settings 3616 3617.dc.html(project mockups).schlessera commentedon Nov 8, 2026
Decision (maintainer, 2026-11-08):
The proposed brain-wide default applies at the next explicit Start. Saving never retargets an active conversation; reconnect preserves its original destination. Show the actual provider before Start, with no audio/history transfer merely from opening or saving Settings.
The body now selects these branches and updates acceptance criteria. Remove
needs: decision; keep the existingneeds: designuntil the brief's schema/authorization/registration and compatibility table are reconciled and reviewed. In particular, the proposed owner-only guard is a requirement to implement, not a claim about the current Models route; the precedence list must agree with the multiple-provider table. The existing design prompt and mocks remain the starting point. Noagent-readylabel is added while design remains.5 remaining items
schlessera commentedon Nov 8, 2026
Design sign-off: Live service group in the delivered Voice pane
The reconciliation folded into the body is design signed off. The UI is the same under either answer to R1: R1 only changes what a legacy client shows, so it stays with the maintainer (
needs: decisionkept).Fit to #3709's
VoiceTabflex-col gap-6stack.409 LIVE_SETTINGS_CHANGEDreloads only the Live service group, with the inline line "Changed on another device. Showing the latest." Dictation's state and revision are never read or written.ScreenHeadersubtitle becomes "dictation and live conversation · where your spoken words go".radiogroupnamed "Live service". The not-available row is announced as "GPT-Live, saved default, not available" and cannot be chosen.ui-kit slice (unchanged list, one addition)
Live service group stories: zero / one / several / saved-unavailable / 409 inline / saving. Added: the full pane with Dictation and Persona groups present, proving the groups don't interact at 320 and desktop, in light and dark.
needs: designremoved.needs: decisionstays for R1 only.schlessera commentedon Nov 8, 2026
Decision (maintainer, 2026-11-08):
conversationProfilestays absent until a saved or host default exists. There is no deterministic legacy fallback, consistent with L2.needs: designis removed. Implementation follows the §7 slice order: the ui-kit Live service group first, then SDK/server, then integration.schlessera commentedon Nov 10, 2026
Claimed (token
claim-3616-48c82ff3). Branchfeat/3616-live-provider-defaultfrom main96ba8a7c8. Collision report: path overlaps onconversation-client.tswith draft evaluation PRs #3056/#3059 only; #3617 (persona) is being worked in parallel and shares the Voice pane and settings route, so whichever lands second merges main and adapts.test(ui-sdk): type the live roster hello comparison (#3616)
CONTRACT: docs: the live-service default shares /api/settings/voice w…
test: inventory the live service runtime proof (#3616)
CONTRACT: feat(ui-server, ui-react): configure the default live-conve…
schlessera commentedon Nov 11, 2026
Delivered by #3956, squash-merged as
be9f6f4c0(on main; issue and PR on 0.45.0). Hosted candidate proof run 42957480023 passed on heade928c04f0, and main CI forbe9f6f4c0was still running at merge.#3617 landed first (#3955), so the live-service default shares its
GET/PUT /api/settings/voiceroute, as design §6 intended:defaultProviderandrevisionsit besidepersona, and each group has its own revision.isLiveSettingsWriter.The Start card (#3698) still owns the Service row, Change and the S3d visuals. Until it lands, the disclosure sheet carries a minimal stand-in pick.
CONTRACT: feat(ui-react,ui-kit): wire the Start card for service, per…