Skip to content

Successful hub voice turn can fail to retain native evidence in its journal #13205

Closed

Description

@Git-on-my-level

Authenticated merged-PR E2E on omi-e2e-2 at 9ff63a6 exposed a durable-evidence failure in an otherwise successful synthetic hub voice turn (related #13074). Native evidence reached captured/encoded, then the journal RPC failed with Expected row for query: SELECT turn_seq, producing_run_id FROM conversation_turns ... and journal_evidence_append_failed. The provider later connected and the turn reached terminal_success. Auth stayed signed in and fresh; development backends only. No rebuild or auth recovery was involved.

Source review points to a possible ordering race: resolveNativeTurnEvidence in RealtimeHubController+PushToTalk.swift can call attachRealtimeUserEvidence when no streaming ledger entry exists; that operation updates an existing row. The streaming projection creates the user/assistant pair only once transcript and assistant text are nonempty. Early OCR completion can therefore reach the append path before the canonical user row exists. A wrong-surface/conversation lookup cannot be excluded by the sanitized trace, so the precise cause remains to be confirmed. The ordered streaming-tail path already waits for initial record completion; the direct evidence path needs the same admission guarantee.

The synthetic PCM fixture reported input_transcription_seen=false, which limits provider-transcription coverage but does not explain the local missing-row RPC error. Native frame attachment and a successful answer must not be counted as proof of durable evidence retention or later recall. Please reproduce and correlate the journal admission/evidence append sequence without requiring private transcripts or screen images.

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

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions