Skip to content

ui-react: preview a persona's voice from the persona list and while editing, with a customizable phrase #3974

Open

Description

@schlessera

Context

Part of #54. Personas (#3617, PR #3955) can now be created, edited and selected in Settings → Voice. The only way to hear one, though, is to start a real live conversation with it. The maintainer requests a preview: hear a persona speak a phrase from the persona list and from the editor while adding or editing one, with a customizable phrase.

Source navigation checked at main 40dbae0a2f332eb20c52c2a967611894ca30d289:

  • PersonaSettings, packages/ui-react/src/components/settings/persona-settings.tsx:49, holds the Persona group. Its doc comment (persona-settings.tsx:43-45) states that the group "never opens the microphone or a provider". A preview changes that promise, so the new boundary has to be designed rather than assumed.
  • PersonaList, persona-settings.tsx:236, and PersonaEditor, rendered at persona-settings.tsx:178, are the two surfaces that get the control. The editor Draft type is persona-settings.tsx:31 (name, voices, instructions).
  • createVoicePersonaRoutes, packages/ui-server/src/routes/voice-personas.ts:56, holds the persona routes, each gated by human(principal). Writes to /settings/voice also pass isLiveSettingsWriter (voice-personas.ts:125).
  • standardPersona, packages/ui-server/src/voice/personas.ts:107, builds the built-in Standard persona. parsePersona (personas.ts:85) and personaFieldsInvalid (personas.ts:62) validate an authored persona.
  • The live adapters only speak inside a full live session: gemini-conversation.ts and gpt-live-conversation.ts under packages/ui-server/src/voice/. There is no one-shot speech-synthesis path. LiveConversationProvider in packages/ui-sdk/src/server/conversation.ts has no preview or synthesis method.

Scope

  • Persona list: add a preview control on each row, including Standard. It plays the preview phrase in that persona's effective voice for a chosen service: the persona's saved voice, or the service default, named as such.
  • Editor: add a preview control that uses the unsaved draft, so a voice or instructions change can be heard before saving.
    • The preview never writes the persona.
    • It never changes the selection.
  • Customizable phrase: a text field holding the phrase to preview, prefilled with a short default. Each authored persona stores its own optional preview phrase in its Markdown frontmatter, separate from the body used as “How it speaks”. Missing or blank phrases use the generic default below. Existing personas remain valid without the new field.
  • Server side: an isolated, short-lived session with the selected actual live service/model/voice. Include the persona’s instructions (the unsaved draft in the editor), and gate spending with owner authorization. Never reuse or modify a real conversation or its provider-facing history.

Out of scope

  • Voice cloning.
  • New speech providers.
  • Changing live-conversation behaviour, Start-card disclosure or provider-facing history.
  • Any persona content in the agent's history.
  • Qualifying how a voice actually sounds. A preview is a user aid, not a qualification receipt.
  • Paid listening experiments by agents.

Maintainer rulings — 2026-11-11

These rulings supersede the earlier design comment wherever they differ.

  • P1 — actual live service: each preview uses an isolated session with the selected actual live model and voice. Ask it to read the phrase, but do not promise verbatim recitation. Dedicated TTS/sibling models and automatic voice-only degradation are not selected. No microphone, chat history, brain orientation, host tools or additional brain content enters the preview. The preview operation is bounded and cancellable, and never touches an active conversation.
  • P2 — include instructions: send the phrase, voice and the persona’s “How it speaks” instructions; use the unsaved draft when editing. Disclose this before Preview and identify the billed service. Instructions affect delivery at the model’s discretion; do not silently drop them.
  • P3 — per-persona Markdown: store each authored persona’s phrase in its own Markdown frontmatter, with backward-compatible optional-field semantics. Keep it separate from instructions; ordinary live Start must not receive the preview phrase as persona instructions. A preview request never saves the persona, its phrase or its selection. Only an explicit save persists edits, using the existing revision/conflict and anchored-file rules.
  • Generic shipped default: “The quick brown fox jumps over the lazy dog. One, two, three. Testing, testing.” The product’s default phrase uses no Odysseus fixture/demo content. Missing/blank authored phrases use this default. Fixture/demo content remains separately governed by the existing corpus rules.
  • P4 — limits: owner-only; at most 500 UTF-8 bytes after trimming; 30 seconds of audio; 10 preview starts per minute per brain. A new preview stops and aborts the previous one. Disable previews during a live conversation. Enforce authorization and limits server-side, report truncation/rate limits visibly, and close the isolated provider session on completion, cancellation or failure.
  • P5 — implementation split: create a separate ui-kit prerequisite issue for the preview components and Storybook states, followed by server/SDK/UI integration in this issue.
  • P6 — review: the implementing agent verifies the stories against the agreed design and browser/accessibility checks. No separate mandatory maintainer visual sign-off blocks integration.

Final interaction rulings

  • Phrase editing: only the persona editor edits the phrase; its existing explicit Save/Cancel controls persist or discard the draft. List buttons play each persona’s saved phrase. There is no list phrase editor or separate inline save flow.
  • Standard: stays built in and fileless, with the fixed generic default. No temporary override, Markdown file or Standard-only brain setting is added.
  • Service choice: preselect the saved live service and expose a “Hear on” picker. An absent/unavailable default leaves Preview disabled until the owner explicitly chooses an available service. This choice is for previews only and does not change the saved live default. A stale/invalid voice, over-limit instructions, unregistered service or failed key yields a visible refusal; never substitute a service or voice, and never truncate instructions. Use the selected provider’s actual instruction-byte cap.
  • Playback: retain the proposed idle/loading/playing/stopped/error/unavailable/rate-limited states, Stop while loading or playing, a single preview at a time, cancellation on replacement or leaving Settings/editor, and the visible 30-second truncation reason. A real live conversation disables previews. Preserve keyboard/status/reason descriptions, 44px targets, 320px legibility and reduced-motion presentation.
  • Disclosure: “Preview sends this persona’s phrase, voice and ‘How it speaks’ to . No microphone or chat history. Billed by .” An isolated live model may paraphrase; do not imply exact recitation or guaranteed instruction obedience.

The earlier phone/desktop design is superseded where it assumes a shared editable list phrase, per-device storage, 200-byte/15-second limits, dedicated TTS or automatic service fallback. All remaining states use the existing kit language and the rulings above.

Placement at 320px (the service/disclosure panel is shared; phrase editing appears only in the editor):

Persona list                   Persona editor
Hear on [saved service v]       Name / Voice / How it speaks
Sends this persona’s phrase,    Preview phrase
voice and How it speaks…       [generic or authored phrase]
Standard                 [>]   <UTF-8 bytes> / 500   [Reset]
  built in · generic phrase    [Preview draft / Stop]
Penelope             [>] […]   Unsaved preview saves nothing.
  saved voice                  [Save] [Cancel]

At desktop the same control order and behavior hold: service/disclosure above list rows; the phrase/draft-preview panel beside the editor instructions. The finished stories establish the responsive layout and all failure states; the agent verifies them without a mandatory separate maintainer sign-off.

Acceptance criteria

  • Consume the completed ui-kit prerequisite and implement the final list/editor interaction above, including the 320px/desktop states and accessible descriptions. All maintainer decisions are recorded; do not implement superseded parts of the original proposal.
  • Each persona row, Standard included, can play the preview phrase in its effective voice for the chosen service, and names a default voice as the default.
  • The editor previews unsaved voice, instructions and phrase together. Neither list nor draft preview writes any persona bytes, phrase, selection or saved live-service setting. Only editor Save persists phrase edits, with the existing revision/conflict handling; Cancel discards them.
  • Each authored persona’s optional preview phrase round-trips through Markdown and the persona read/create/update/draft API, is bounded to 500 UTF-8 bytes, and is separate from live instructions. Missing/blank values use the generic testing default; existing files remain valid. An older client omitting the field on update does not erase an existing phrase. Standard always uses the fixed generic default and gets no file/override setting.
  • A preview sends exactly what the design discloses, and never touches the microphone, chat history or an active conversation.
  • Owner authorization, the 500-byte phrase limit, 30-second audio cap and 10-starts/minute/brain limit are enforced server-side. Refusals, truncation and retry timing are visible; stop/replacement/disconnect closes the isolated session.
  • The “Hear on” picker follows the final service-choice rule. An absent/unavailable default requires an explicit choice; a failed key, invalid/stale voice or over-limit instructions is visible and never substitutes a service/voice or silently removes/truncates instructions.
  • Documentation covers the isolated live preview, exactly what it sends, the generic/per-persona phrase, its limits, and provider billing without implying a known price or guaranteed recitation.

Verification

  • Keyless server/SDK tests with local adapter doubles, covering what is sent per preview, authorization, limits, and failure without substitution.
  • Real browser tests in Settings → Voice at 320px and desktop for list saved-phrase playback, draft-only preview, editor Save/Cancel/reset, Standard’s fixed generic phrase, service choice, lifecycle/stop/errors and active-conversation exclusion. No list phrase editor exists.
  • Failing-first or mutation evidence for the no-write and no-substitution guards. Also prove missing-field compatibility/preservation, exact UTF-8 limits, per-persona phrase isolation, and that the preview phrase never becomes ordinary-live instructions. Exercise authorization, rate/audio bounds and provider-session closure with offline doubles.
  • No real provider calls in tests.

Contract impact

Additive inventory:

  • A bounded owner-only preview route and any optional preview operation/capability on the existing live-provider seam. Both existing live services are plausible implementations; do not introduce a standalone TTS provider or change ordinary open() behavior.
  • An optional per-persona Markdown frontmatter phrase field and corresponding persona read/write/draft DTO fields. These are compatibility-contract changes: absent remains valid, preview does not write, and the field is never appended to ordinary live instructions.
  • No device-local phrase storage, brain-wide phrase setting or Standard-only override. Preserve file schema compatibility and keep phrase text out of ordinary live instructions.

Inventory the preview route request/audio/completion/error shapes, provider capability, persona fields and new public exports in the relevant docs/integration-contract/ components in the same CONTRACT: commit. Preserve old callers/files and include a minor changeset. The chosen scope is additive; a breaking proposal needs a separate ruling first.

2026-11-11: folded all final maintainer rulings into the current specification, including editor-only phrase saves, Standard’s fixed generic default and saved-service preselection with an explicit-choice fallback boundary. Implementation remains open and unscheduled.

Dependencies and delivery slices

Blocked by #3981

#3981 supplies the preview components and reviewed Storybook/browser states. This issue then owns the actual-live preview operation, route, persona phrase storage/DTOs and app integration. The full deliverable remains part of #54.

The durable decision record is tracked in #3982; that documentation task is not an implementation prerequisite. Both tasks and this issue are wanted but unscheduled (priority: p2); no release milestone is inferred.

Activity

  1. added
    type: featA new capability or a change in user-visible behaviour.
    area: ui-sdkWire protocol, runtime schemas, the server and client SDK surfaces.
    area: ui-serverHono app factory: turn coordinator, auth, session catalog, routes, cron.
    area: ui-reactReact chat/files/voice components, stores, WebSocket transport.
    needs: decisionBlocked on a maintainer or designer ruling, not on code.
    on Nov 11, 2026
  2. added
    needs: designBlocked on a design drop or a visual answer.
    contractTouches the integration contract: CONTRACT: commit, contract doc updated in the same commit.
    on Nov 11, 2026
  3. schlessera commented on Nov 11, 2026

    @schlessera
    OwnerAuthor

    Design needed: interaction and boundary design for persona preview.

    Already decided:

    Still open:

    • How the audio is produced. Today the adapters only speak inside a full live session.
    • What a preview sends to the provider.
    • Its cost and abuse limits.
    • Where the phrase lives.
    • The control's states.

    The code can't settle these, because each option changes what the user hears, pays for and is told before a provider is contacted.

    Read first:
    - schlessera/brain-kit#3974 (this issue), its epic #54, and #3616 / #3617 with their signed-off design comments.
    - Settings → Voice:
      - packages/ui-react/src/components/settings/persona-settings.tsx:49 (PersonaSettings); its doc comment at :43-45 promises the group never opens a provider.
      - :236 (PersonaList), and :178 where PersonaEditor renders.
    - packages/ui-server/src/routes/voice-personas.ts:56 (routes and authorization).
    - packages/ui-server/src/voice/personas.ts:62, :85 and :107 (validation, parsing, Standard).
    - packages/ui-server/src/voice/gemini-conversation.ts and gpt-live-conversation.ts: the only speech paths today, both full live sessions.
    - packages/ui-sdk/src/server/conversation.ts (LiveConversationProvider; it has no synthesis method).
    - Binding records: docs/decisions/live-conversation.md, docs/decisions/voice-permission.md, docs/decisions/provider-history.md, and ROADMAP "What binds future work" (no new seams without a plausible second implementation).
    
    Problem: a user writing a persona can't hear it without starting a real conversation. Changing a voice or instructions means save, Start, listen, End, repeat.
    
    Design, and answer each of these:
    1. Mechanism. Choose (a) a short live session that says the phrase verbatim, (b) a provider text-to-speech capability using the same voice ids, or (c) voice-only preview. For each, say whether the persona's instructions can affect delivery, the expected latency and cost per preview, and whether it is a new SDK capability. If it is, justify the seam.
    2. What is sent: the phrase, the voice, and the instructions or not. Give the exact disclosure text next to the control.
    3. Limits: phrase byte cap, preview duration cap, cooldown or rate limit, and whether previews are owner-only.
    4. Phrase storage: per device, server setting, or per persona in Markdown. Give the default text (Odysseus world) and the empty-field behaviour.
    5. Service choice when two services are usable, and how S3b (stale voice) and S3c (over-limit instructions) appear in a preview.
    6. Control states: idle, loading, playing, stop, error, unavailable. Cover a second preview interrupting the first, accessible names, and announcements.
    
    Requirements to hold:
    - A preview never writes the persona or the selection.
    - It never opens the microphone, reads chat history or touches an active conversation.
    - It never substitutes another service or voice.
    - 320px legibility, 44px touch targets, keyboard and screen-reader paths.
    - Reuse the ui-kit voice components where they fit, and no new visual language.
    - An unknown cost never reads as free.
    
    Deliverable:
    - Answers to 1–6.
    - ASCII mocks of the list row and the editor at 320px and desktop, in every control state.
    - An additive contract inventory.
    - A recommended option per question, with alternatives and trade-offs, for the maintainer to rule on.
    - "Voice-only preview, no instructions" is an acceptable outcome if fidelity can't be had cheaply.
    
  4. schlessera commented on Nov 11, 2026

    @schlessera
    OwnerAuthor

    Design: persona voice preview (list and editor)

    Summary.

    • Mechanism: an optional one-shot speech capability on the live provider (option b). It speaks the phrase in the persona's voice, steered by its instructions where the service supports that.
    • Phrase: a per-device field shared by the list and the editor.
    • Access: owner-only and rate-limited. Every preview names the service it is sent to and never falls back to another one.
    • Disclosure: the doc comment on PersonaSettings changes from "never opens a provider" to "opens a provider only for a preview you start, and never opens the microphone".

    Example: the persona Penelope (Gemini voice Kore, with "How it speaks": "Measured and warm, a little wry; pause before names.").


    1. Mechanism → (b) one-shot synthesis, recommended

    (a) short live session (b) TTS capability (c) voice only
    Instructions affect delivery Yes, but the live model answers rather than recites; a verbatim reading isn't guaranteed Yes, where the service's speech model takes style instructions; otherwise voice only, and the UI says so No
    Faithful to the live voice Same model, but the words drift Same voice id, a sibling model: close, not identical Same voice id, no style
    Latency Open a session, set it up, wait for the first audio: the slowest One request, streamed: the fastest Same as (b)
    Cost Session plus audio tokens; an unknown floor Per character or per token of one phrase Same as (b)
    New SDK seam No, but it abuses open() (no conversation, no history) Yes, an optional method Yes, the same method

    Why (b): a preview has to say this phrase, and only a synthesis call guarantees that.

    The new seam is optional:

    previewSpeech?(req: { voice: string; phrase: string; instructions?: string; signal: AbortSignal })
      : AsyncIterable<{ format: ConversationAudioFormat; pcm: Uint8Array }>
    previewInstructions?: "supported" | "unsupported"   // declared next to voices

    Justifying it. ROADMAP allows a new seam only with a plausible second implementation, and it has two: Gemini's speech models and OpenAI's TTS models both take their live voices' ids, and both take style prompts.

    • An adapter that can't preview a voice id leaves the method out. The row then shows unavailable (see 6); it never substitutes another voice.
    • (c) is not a separate mode. It is what (b) does when previewInstructions: "unsupported", and the control's note says "voice only; How it speaks isn't applied".

    2. What is sent

    The phrase, the voice id, and the persona's "How it speaks" text (the unsaved draft in the editor). Nothing else is sent: no history, no orientation, no microphone audio, no brain content.

    Disclosure text, shown once under the phrase field and referenced by every preview button through aria-describedby:

    Preview sends this phrase, the voice and "How it speaks" to Gemini. No microphone, no chat. Billed by Gemini.

    When the service doesn't apply instructions: "…sends this phrase and the voice to Gemini. "How it speaks" isn't applied in previews." The disclosure never says "free": cost is unknown, so it reads "Billed by <service>".

    3. Limits

    • Phrase: at most 200 bytes of UTF-8 after trimming. The counter appears from 180 bytes.
    • Audio: the server stops after 15 s of audio and returns truncated: true. The player shows "Stopped at 15 s".
    • Rate: one preview in flight per user; a new one aborts the old one (see 6). At most 10 previews per minute per brain. Over the limit, the button is disabled for the remaining seconds, with the reason shown.
    • Who: owner only, through the persona routes' gate (human(principal) plus isLiveSettingsWriter), because a preview spends the owner's provider budget. Non-owners don't see the control, and the server refuses with 403.

    4. Phrase storage → per device, recommended

    • Where: localStorage under a key scoped to the brain. This needs no contract field, and no persona content leaks into Markdown.
    • Alternatives:
      • a brain setting, which follows the user across devices but adds a settings field and a revision;
      • a per-persona field in the front matter, which lets each persona have its own phrase but turns a user aid into persona data.
    • Default text: "Telemachus, the raft is ready at Ithaca harbour. We sail when the wind turns."
    • Empty field: the default is used. It shows as the placeholder, and a Reset text button appears once the phrase has been edited.

    5. Which service, S3b and S3c

    • One usable service: used implicitly and named in the disclosure.
    • Two or more: a compact "Hear on" select in the preview panel. It defaults to the saved live default service, or to the first registered one if that default is unavailable, and states which. The list rows and the editor follow the same select. A row's default voice is named, e.g. Gemini · default voice (Puck).
    • S3b, stale voice: the preview button is disabled, with the reason "Voice "Aoede-old" isn't offered by Gemini any more. Pick a voice to preview." The service default is not played in its place.
    • S3c, over-limit instructions: the button is disabled with "How it speaks is too long for Gemini (2,140 / 2,000 bytes)." Nothing is truncated.
    • Service not registered, or its key fails: an error state reading "Gemini didn't answer: key refused." There is no retry on another service (ui-react: configure the default live-conversation provider through Settings #3616 L2).

    6. Control states

    IconButton (md, 44 px), with the name and state below.

    State Visual Accessible name / announcement
    idle ▶ "Preview Penelope's voice"
    loading spinner "Stop preview"; status: "Preparing preview…"
    playing ■ plus a thin VoiceMeter and elapsed time "Stop preview"; status: "Playing preview"
    stopped / ended back to ▶ status: "Preview ended"
    error ▶ plus a red one-line Callout under the row role="alert" with the reason
    unavailable ▶ disabled, with the reason as the meta line the name plus aria-describedby set to the reason
    rate-limited ▶ disabled, "Try again in 24 s" announced once
    • A second preview interrupts the first: starting one stops whatever is playing and aborts its request. Only one row can be in the loading or playing state at a time.
    • Leaving: closing Settings or leaving the editor stops playback.
    • Live conversation running: the control is disabled with "Ends when the conversation ends", so it never touches an active session.
    • Reduced motion: the meter becomes a static "Playing" label.

    Mocks

    Persona list, 320 px

    Persona
    How live conversation sounds…
    
    ┌ Preview ─────────────────────┐
    │ Phrase                       │
    │ ┌──────────────────────────┐ │
    │ │Telemachus, the raft is   │ │
    │ │ready at Ithaca harbour…  │ │
    │ └──────────────────────────┘ │
    │ Hear on [Gemini ▾]   [Reset] │
    │ Preview sends this phrase,   │
    │ the voice and "How it speaks"│
    │ to Gemini. No microphone, no │
    │ chat. Billed by Gemini.      │
    └──────────────────────────────┘
    ┌──────────────────────────────┐
    │ ◉ Standard              [▶]  │  idle
    │   built in · default voices  │
    ├──────────────────────────────┤
    │ ○ Penelope         [■] [⋯]   │  playing
    │   Kore · 64 bytes ▁▃▅▂ 0:03  │
    ├──────────────────────────────┤
    │ ○ Eumaeus          [▶] [⋯]   │  unavailable
    │   Voice "Aoede-old" isn't    │
    │   offered any more           │
    └──────────────────────────────┘
    + New persona
    

    Persona list, desktop

    ┌ Preview ───────────────────────────────────────────────────────────────┐
    │ Phrase [Telemachus, the raft is ready at Ithaca harbour. We sail…] 74/200 │
    │ Hear on [Gemini ▾]  [Reset]                                            │
    │ Preview sends this phrase, the voice and "How it speaks" to Gemini.    │
    │ No microphone, no chat. Billed by Gemini.                              │
    └────────────────────────────────────────────────────────────────────────┘
    ◉ Standard   built in · default voices                              [▶]
    ○ Penelope   Kore · 64 bytes                    ◌ Preparing… [■]  Edit [⋯]   loading
    ○ Eumaeus    Puck · 1,210 bytes                              [▶]  Edit [⋯]
      ✕ Gemini didn't answer: key refused.                                        error
    

    Editor, 320 px (the panel sits under "How it speaks" and uses the draft)

    [←] Penelope                 [⋯]
    Name      [Penelope            ]
    Voice     Gemini [Kore        ▾]
    How it speaks
    ┌──────────────────────────────┐
    │Measured and warm, a little   │
    │wry; pause before names.      │
    └──────────────────────────────┘
    64 / 2,000 bytes for Gemini
    
    ┌ Preview draft ───────────────┐
    │ Phrase [Telemachus, the raf…]│
    │ [▶ Preview draft]            │
    │ Unsaved changes are previewed│
    │ as typed. Nothing is saved.  │
    │ Sends phrase, voice and "How │
    │ it speaks" to Gemini. Billed │
    │ by Gemini.                   │
    └──────────────────────────────┘
    [Save]  [Cancel]
    

    Editor, desktop: the same panel as a two-column block next to "How it speaks". States as listed:

    [▶ Preview draft]                         idle
    [◌ Preparing… ■]                          loading
    [■ Stop]  ▁▃▅▂▁ 0:04                      playing
    [▶ Preview draft] disabled · How it speaks is too long for Gemini (2,140 / 2,000 bytes)   S3c
    [▶ Preview draft] disabled · Try again in 24 s                                            rate-limited
    

    Contract inventory (additive)

    • ui-sdk server: optional LiveConversationProvider.previewSpeech? and previewInstructions? (above), validated in assertLiveConversationProvider. If a provider declares one, it must have persona support.
    • ui-sdk protocol: ConversationProfile.preview?: { instructions: "supported" | "unsupported" }. Absent means no preview.
    • ui-server route: POST /voice/personas/preview.
      • Body: { providerId, phrase, source: { personaId } | { draft: { voice?, instructions } } }.
      • Response: a streamed audio/L16 body; the rate is in the header, plus X-Preview-Truncated.
      • Gated by human(principal) and isLiveSettingsWriter. Never writes.
      • Errors: PREVIEW_UNAVAILABLE, PREVIEW_VOICE_INVALID, PREVIEW_INSTRUCTIONS_TOO_LONG, PREVIEW_PHRASE_TOO_LONG, PREVIEW_RATE_LIMITED (+ retryAfter), PREVIEW_PROVIDER_FAILED.
    • Docs: docs/integration-contract.md (Live conversation → Preview), voice-permission.md (what a preview sends), and the doc comment on PersonaSettings.
    • Not changed: open(), the Start card, the history envelope, persona Markdown (unless P3 rules for a per-persona phrase).

    ui-kit inventory (Storybook first)

    • Reused: IconButton, Button, TextButton, Callout, VoiceMeter, VoiceNotice (for the disclosure text).
    • New:
      • VoicePreviewButton: props state, name and reason?, covering the 7 states above.
      • VoicePreviewPanel: phrase field, counter, Reset, "Hear on" select and disclosure. It has a variant of list or draft.
    • Stories: every button state; the panel with one and with two services; instructions unsupported; phrase near and over the cap; the list rows with S3b, S3c and error; the editor draft panel. Each at 320 px and desktop, light and dark, plus reduced motion.

    Open questions for the maintainer

    • P1. Mechanism (b), with (c) as its automatic degradation: approve the optional previewSpeech seam?
    • P2. Send "How it speaks" with every preview (recommended), or voice only?
    • P3. Phrase per device (recommended), per brain setting, or per persona?
    • P4. Limits: 200 B phrase, 15 s of audio, 10 per minute per brain, owner-only. OK?
    • P5. Split the work into a ui-kit issue (VoicePreviewButton, VoicePreviewPanel and their stories) that blocks the integration in this one?
    • P6. Design sign-off on the stories once built.
  5. schlessera commented on Nov 11, 2026

    @schlessera
    OwnerAuthor

    Decision (maintainer, 2026-11-11):

    • P1: use a separate, isolated session with the actual live service/model/voice. Verbatim recitation is not guaranteed; the proposed dedicated TTS path is not selected.
    • P2: include “How it speaks”, using the unsaved editor draft, with disclosure of the transmitted text and billed service.
    • P3, revised answer: save the phrase in each authored persona’s Markdown, separately from instructions. This replaces the earlier per-device answer; that answer was withdrawn before being recorded. Existing files without the field stay valid, and previewing never saves.
    • Default correction: ship the generic phrase “The quick brown fox jumps over the lazy dog. One, two, three. Testing, testing.” Do not use Odysseus demo/fixture text as the product default.
    • P4: 500 UTF-8 bytes, 30 seconds of audio, 10 starts/minute/brain, owner-only. A new preview stops the previous one; previews are disabled during a live conversation.
    • P5: one separate ui-kit prerequisite issue for this feature, then integration here.
    • P6: agent verification of the agreed design and browser checks; no mandatory separate maintainer story sign-off.

    The body now reflects these rulings and their additive contract implications. Three follow-up choices are being settled: phrase editing placement, built-in Standard’s fileless phrase, and initial service selection. needs: decision stays until those are answered.

  6. schlessera commented on Nov 11, 2026

    @schlessera
    OwnerAuthor

    Decision (maintainer, 2026-11-11): The remaining voice-preview choices are settled.

    • Edit/save each authored persona’s phrase only in its persona editor, through existing Save/Cancel. List Preview plays its saved phrase; draft Preview saves nothing.
    • Standard stays fileless and always uses the generic default: “The quick brown fox jumps over the lazy dog. One, two, three. Testing, testing.” No Standard-only override is introduced.
    • Preselect the saved live service and provide a “Hear on” picker. An absent/unavailable default requires an explicit selection; no service/voice substitution or change to the saved live default.

    The body now consolidates these choices with the earlier rulings: actual isolated live service, instructions included, per-persona Markdown phrases, 500-byte/30-second/10-starts-per-minute bounds, owner authorization, and agent-verified stories without a mandatory human sign-off. It includes the resulting UI placement, compatibility requirements and verification.

    The approved component split is #3981, a native child of #54; keep blocked until it delivers. #3982 tracks the durable decision record and does not block implementation. The desired work is unscheduled, so classify this issue as priority: p2 without a milestone. Remove needs: decision, add agent-ready, and retain the real component dependency.

  7. added
    agent-readyContext and acceptance criteria are complete enough for an agent to take this unattended.
    blockedWaiting on another issue or an upstream dependency. Say which in the body.
    priority: p2Wanted, not scheduled. Pulled in when a milestone has room.
    and removed
    needs: decisionBlocked on a maintainer or designer ruling, not on code.
    on Nov 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    agent-readyContext and acceptance criteria are complete enough for an agent to take this unattended.area: ui-reactReact chat/files/voice components, stores, WebSocket transport.area: ui-sdkWire protocol, runtime schemas, the server and client SDK surfaces.area: ui-serverHono app factory: turn coordinator, auth, session catalog, routes, cron.blockedWaiting on another issue or an upstream dependency. Say which in the body.contractTouches the integration contract: CONTRACT: commit, contract doc updated in the same commit.priority: p2Wanted, not scheduled. Pulled in when a milestone has room.type: featA new capability or a change in user-visible behaviour.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions