Skip to content

ui-sdk: retain barge-in and conversation-end evidence so cut-off and the end divider survive a reload #3729

Closed

Description

@schlessera

Context

Part of #3690. #3700 maps voice provenance onto the #3692 chat marks and requires that reloaded chats render the same marks. Two of its marks have no durable evidence today, so they cannot survive a reload:

#3700 shipped the marks the retained evidence supports: mic and speaker, the in-progress outline, uncertain words from the retained calibrated confidence, and a live-only end divider. It shows no cut-off tag, because a live-only tag would make a reloaded chat render different marks.

The question

Should the host retain barge-in and conversation-end evidence in the durable dialogue, so that cut-off and the end divider render after a reload?

  1. Retain both (recommended). Add a DialogueEvidence kind for an observed provider interruption (with its outputId when given) and for a conversation's end (start and end time, and persona once ui-react: configure and select live-conversation personas through Settings #3617 lands). This is an additive contract change to ServerDialogueHistory and its schema, plus the ui-server write path. Cut-off and the divider then render the same live and reloaded.
  2. Live-only marks. Rule that cut-off and the divider are live-only, and amend ui-react: wire spoken-turn marks into chat — inline mic/speaker, uncertain and unplayed text, end divider #3700's reload criterion. This is cheaper, but the chat then differs after a reload.
  3. No cut-off mark. Rule that a barge-in is not shown in the chat at all, with the divider live-only.

This is a recommendation, not an approval. A maintainer ruling is needed before any work.

Scope (after the ruling, option 1)

  • An additive DialogueEvidence kind or kinds, with docs/integration-contract.md updated and a CONTRACT: commit.
  • ui-server records them where it already writes dialogue records.
  • ui-react renders CutOffTag (via SpokenTurn cutOff) and the end divider from retained evidence.

Out of scope

Acceptance criteria

  • A maintainer ruling recorded on this issue.
  • Under option 1, a barge-in observed live and the same chat reloaded both show the cut-off tag on the same reply. A conversation's end divider shows the same duration live and after a reload. Both are proven by app browser tests.
  • A reply with no recorded interruption never shows the cut-off tag.

Contract impact

Option 1 is an additive change to ServerDialogueHistory/DialogueEvidence, which ships in a minor.

Decisions (maintainer, 2026-11-08)

  • Option 1: retain both. Add additive DialogueEvidence kinds for an observed provider interruption (with its outputId when given) and for a conversation's end (start and end time, and persona once ui-react: configure and select live-conversation personas through Settings #3617 lands). ui-server records them on its existing dialogue write path. ui-react renders the cut-off tag and the end divider from retained evidence, so live and reloaded chats show the same marks. This is an additive contract change (CONTRACT: commit, contract docs updated, minor release).

2026-11-08: open decision questions answered by the maintainer and recorded above.

Activity

  1. added
    type: feat
    area: ui-sdk
    area: ui-server
    area: ui-react
    priority: p2
    needs: decision
    on Nov 8, 2026
  2. added
    agent-ready
    and removed
    needs: decision
    on Nov 8, 2026
  3. schlessera commented on Nov 8, 2026

    @schlessera
    OwnerAuthor

    Decision (maintainer, 2026-11-08):

    • Option 1: retain both. Add additive DialogueEvidence kinds for an observed provider interruption (with its outputId when given) and for a conversation's end (start and end time, and persona once ui-react: configure and select live-conversation personas through Settings #3617 lands). ui-server records them on its existing dialogue write path. ui-react renders the cut-off tag and the end divider from retained evidence, so live and reloaded chats show the same marks. This is an additive contract change (CONTRACT: commit, contract docs updated, minor release).

    The scope and acceptance criteria now follow option 1. This issue is agent-ready.

  4. self-assigned this
    on Nov 8, 2026
  5. schlessera commented on Nov 8, 2026

    @schlessera
    OwnerAuthor

    Claimed for implementation (claim wi-20261108-a2ff75a4), branch feat/3729-dialogue-evidence, under the 2026-11-08 ruling (option 1).

    Collision report for the cited files: path overlap on packages/ui-react/src/voice/conversation-client.ts with drafts #3056, #3059 and #3735; closure overlaps only otherwise. The client change will stay minimal and additive.

  6. added this to the 0.45.0 milestone on Nov 8, 2026
  7. schlessera commented on Nov 9, 2026

    @schlessera
    OwnerAuthor

    Delivered in #3740, squash b1843c506764eeb2ad2f6bacef1b8a72fe60c227 on main (parent 57abb7b9, tree 8cd63a14, matching the proven candidate checkout 8ee63fc5). Candidate proof: CI run 42537074299, success. Milestone: 0.45.0.

    • DialogueEvidence gains voice_interruption (with outputId when named) and voice_end (host clock startedAt/endedAt), written on the existing dialogue path. Neither enters provider history.
    • An end is written only on the operator's final, non-resumable stop of a conversation whose last epoch opened, and never after that epoch's storage failed or became indeterminate.
    • The chat draws the cut-off tag and the end divider only from retained evidence, so a live chat and the same chat reloaded show the same marks. A reply with no recorded interruption is never cut off.

    Follow-up: #3739 (older clients refuse a whole dialogue page carrying an unknown evidence kind; needs scoping). Persona on the divider waits for #3617.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

agent-readyarea: ui-reactarea: ui-sdkarea: ui-serverpriority: p2type: feat

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions