Repository navigation
CONTRACT: feat(ui-sdk,ui-server,ui-react): live-conversation personas in Settings › Voice - #3955
Conversation
Persona files under _voice/personas shape only how a live voice service speaks, so search, briefings and agent context never return them (#3617, P5). Also lists context/policies in the documented default exclusions, which the table had missed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…at Start Personas are authored Markdown at _voice/personas/<id>.md with a name, one voice per live service and plain-text speaking-style instructions (#3617). - Owner-only routes read and write persona files with sha-256 revisions (409 PERSONA_CHANGED) inside an anchored, link-refusing directory chain; GET/PUT /api/settings/voice carries the voice.live.persona selection with its own revision in the server settings store. Deleting the selected persona saves Standard first. - LiveConversationProvider gains optional voices, defaultVoice and personaInstructionBytes, mirrored on ConversationProfile outside the Start disclosure echo. Gemini Live declares its 30 TTS voices (Kore, 6,000 bytes) and GPT-Live its 38 built-in voices (marin, 2,000 bytes), copied from the providers' documentation. - conversation_start.personaRef (with voice: "default" as the explicit stale-voice override) is resolved once at Start and frozen on the entry; every later epoch reuses it. Outdated, invalid, over-cap and stale-voice personas are refused before any provider I/O, never truncated or substituted. server_hello.livePersona and the live_persona frame describe the selection to human sessions only. - Adapters append one fenced section after the fixed host rules; tools, delegation, history and later epochs stay byte-identical, and the framed section is reserved from the startup ceiling before orientation. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Persona group joins Dictation in the existing Voice pane (#3617): Standard first, each persona's voices and byte count, unusable files with their reason, a ⋯ menu (Edit, Rename, Duplicate, Delete) and a desktop Edit button. The drill-in editor counts exact UTF-8 bytes per registered service, keeps voices for services this host does not run, keeps the user's text on a conflict and offers the newer version, and uses the Settings leave guard. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Creates, validates, selects, reloads, edits under a conflict and deletes a persona through the mounted routes at 320px, checks the desktop row at 1280px, and starts live conversation through the shipped client: an outdated persona is refused before anything opens, the next Start reaches the provider double with the persona's voice and instructions, and Standard sends no persona. Selection now shows at once and reverts on a refused save. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The added handler is a no-op that reads no runtime input; the conversation client takes the frame beside the demux (#3617). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…nventory Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
No uploads on this PR yet This PR changes UI files (
Tips for agentsLabel each shot so reviewers know what they're seeing. Labels apply to every file in a call, so run one uploads put after.png --pr 3955 --meta path=/settings --state after --caption "Saved settings toast"
uploads put chat.png --pr 3955 --app ios --screen "Chat" --state afterNo CLI? With the Uploads MCP, call This comment updates with each upload, so you don't need to post the images yourself. A shot or two in the PR description is still welcome. Check what's attached with Workspace admins can turn this comment off in Settings → GitHub · docs |
The HTTP specification's prose counts include the seven persona routes, and the runtime package-build inventory names persona-settings-runtime (#3617). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts: # docs/http-api.md
The live-service default joins the persona group on the one /api/settings/voice route (design §6): top-level defaultProvider/revision beside persona with its own revision, under the owner-only write guard. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Closes #3617
What changed
Live conversation now has personas. A persona is Markdown at
_voice/personas/<id>.mdin the brain. It holds a name, one voice per live service and plain-text speaking-style instructions. Settings › Voice gains a Persona group beside Dictation. It lists the built-in Standard first, then each persona with its voices and byte count, and offers an editor with byte counters per service, conflict handling, Duplicate, Rename and Delete.GET/PUT /api/settings/voicecarries the selection, which is thevoice.live.personaserver setting with its own revision.conversation_start.personaRefnames the persona. The host reads the file once, refuses an outdated, invalid, over-cap or stale-voice persona before any provider I/O, and freezes the snapshot for every later epoch._voicefrom the content index.Why this shape
This implements the signed-off design on #3617 (§1–§7, P1–P5). It also follows three wire answers the maintainer gave on 2026-11-10, recorded on the issue:
personaRef.voice: "default"is the explicit one-time override for a stale voice.ConversationProfilegains flatvoices,defaultVoiceandpersonaInstructionBytesfields, kept outside the Start disclosure echo.live_personaframe keeps clients current.Other choices:
audio.output.voiceenum. No SDK is installed, and both adapters speak the raw wire.defaultProviderto the same/api/settings/voice, each group keeps its own revision.For #3698 (Start card)
Read
root.connection.conversation.state.livePersona(LivePersonaStatus):personainvalidselectedMissingselectedInvalidproviders[serviceId]voice,voiceSource: "persona" | "default"(S3),staleVoice(S3b),overLimitandmaxInstructionBytes(S3c)personaRefconversationProfilecarriesvoices,defaultVoiceandpersonaInstructionBytes.personaRef: { id: "standard", revision: "builtin" }. "Use the default voice this time" addsvoice: "default". Today's client sendslivePersona.personaRefunchanged; ui-react: wire the Start card (S1–S5) — service, persona and recovery #3698 adds those choices.CONVERSATION_PERSONA_CHANGED(a freshlive_personaarrives first),CONVERSATION_PERSONA,CONVERSATION_PERSONA_TOO_LONGandCONVERSATION_PERSONA_VOICE.Proof
{"version":1,"kind":"brain-check-pr-receipt","head":"8ff469287d559204851e9f41fba71169814cc465","base":"origin/main","mode":"focused","startedAt":"2026-11-11T00:11:35.420Z","finishedAt":"2026-11-11T00:13:12.021Z","checks":[{"name":"all lint and leakage gates","categories":["changeset"],"outcome":"passed","elapsedMs":13443.167435},{"name":"environment documentation","categories":["changeset"],"outcome":"passed","elapsedMs":107.60728599999857},{"name":"pending changeset package names","categories":["changeset"],"outcome":"passed","elapsedMs":75.10167000000001},{"name":"contribution changeset","categories":["changeset"],"outcome":"passed","elapsedMs":22.10779299999922},{"name":"affected fast invariants","categories":["verify","unit"],"outcome":"passed","elapsedMs":82935.55832899999}]}Local runs
live-personas,live-persona-adapters,live-persona-host,ws-conversation,live-history-adapters, the adapter suites andselectable-dictation: 405 pass, 0 fail.http-supported-mounts: all 7 new routes plus the inventory and spec checks pass. The 9/api/brain/*/schedules failures are this host's missing worker sandbox (unshare … uid_map).server-schemas: 17 pass. The other ui-sdk failures are sandbox worker/cgroup tests.api-surface: 54 pass.voice-namespace-exclude: 2 pass.persona-settings: 7 pass.persona-settings-runtime.test.ts, Chromium 1243): 3 pass. It creates a persona with validation, selects it, reloads, edits under a conflict, is refused at Start after a direct file edit, then starts with{ voice: "Calypso", instructions }reaching the provider double. It then deletes the selected persona (Standard is checked again), checks the desktop Edit button and that Standard sends no persona, and checks the delegated-agent refusal. Screens were reviewed at 320px and 1280px.Mutation receipts. Each guard was broken, the named test failed on the stated assertion, and the code was restored:
personafromprovider.openPERSONA_REACHES_PROVIDERHOST_RULES_PREFIX_UNCHANGEDRECONNECT_KEEPS_FROZEN_PERSONAPUT /api/settings/voicePERSONA_CHARGED_TO_STARTUP_CEILING(both engines)_voicefromDEFAULT_EXCLUDE.dirsCollisions.
bun scripts/collisions.ts --json --pr 3955at head3ad64aba1aaeb6b02da3eb61dce2d86184d46d3e: no path collisions with open PRs.First hosted run. Two real failures on 3ad64ab, both fixed:
http-inventory(the spec's prose route count, 179 → 186) andruntime-build-selection(the new runtime proof added to the build inventory). Both pass locally. Main (#3827) was then merged in; the only conflict was the route count, now 187 with its safety-recording route.Provider history. The Claude/Pi
provider-historyguard cannot run on this host (worker boundary); hosted CI runs it. No agent-turn path changed. Live-provider byte identity across epochs is asserted inlive-persona-adapters(EPOCH_STARTUP_BYTE_IDENTICAL).Checklist
docs/reflect the change, or nothing documented moved.Anything left open
🤖 Generated with Claude Code