Manual finish takes 45-55 s to a summary on v3: where the time goes and what blocks CONVERSATIONS_V3_FAST_FINISH=on

Open
#26,217 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
12/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Active
Tech stack
gcp, python

Research direction

Start with the producer fence in backend/database/server_batch_audio.py (note_server_batch_audio and close_server_batch_audio) and the two change notes under backend/docs/listen_pusher_pipeline/changes/. The issue sets no single deliverable: it lists a latency target, a set of timing steps, and several blockers that need design decisions first. Treat it as a maintainer-scoped investigation rather than a starter task.

Written by the indexing model from the issue text.

Description

Follow-up to #26192 and #26213 (SCA-3024). Production readback on the owner account (in the v3-fast-finish cohort), 2026-11-24, synthetic speech over /v4/listen, then POST /v1/conversations. Serving: backend and backend-sync at 69ba4fa1f5, backend-integration at 7dbd266e8e, GKE listen at 96f0631.

Recording Finish answered Derived row on Home Title and summary
77 s, socket closed 3 s after the finish processing, 0.7 s 45 s 52 s
37 s, socket kept open and streaming processing, 0.55 s 46 s 54 s

The target the product owner set is 20 to 30 seconds from the finish to the summary. Both cases miss it.

Where the time goes

Seconds after the finish request.

Step 77 s recording 37 s recording
Session rolls over to a successor recording not measured (socket closed at 3 s) 7.8
Audio bounds committed on the row 4 9.6
Record sealed 12.5 16.4
Batch job enqueued 15.5 not read
record_ready_at 23.7 not read
Compute decision / v3_manual_end promoted 25.7 22.5
Provisional transcript landed (v3_speech_landed_at) 37.8 not read
Derived row visible on Home 45 46
Title and summary 52 54

No single step dominates. Reaching 20 to 30 s needs several of them shortened:

  1. The session learns of the finish from its lifecycle poll. PUSHER_RECORD_CLOSE_NOTIFY_ENABLED is off, so the commit waits for the next poll and the next frame (0.2 s to 8 s across four runs).
  2. Seal after commit takes about 7 s, and enqueue to record_ready_at another 8 s.
  3. The fast first transcript starts only after record admission, about 23 to 26 s after the finish. The provider pass itself took about 12 s for 80 s of audio.
  4. Reconcile plus outline takes about 8 s, and the summary another 7 s.

What blocks CONVERSATIONS_V3_FAST_FINISH=on

  • The cohort has one member. For every other owner a finish in the first minute is still answered no_content and ignored, and no fast transcript runs.
  • Reconnect producer fence. note_server_batch_audio and close_server_batch_audio refuse a row with listen_batch_producer once its status leaves in_progress (backend/database/server_batch_audio.py). The serving listen image predates LISTEN_BATCH_RECONNECT_ENABLED, so mobile rows carry no producer today. When that image ships, the session cannot commit the tail of any finished recording, and #26213 stops admitting first-minute finishes for those rows. This needs the fence to let the owning token write while the row is processing and the archive is open, before the listen deploy.
  • A wait timeout is a counted attempt (#26213 known limit): if frames stop while the socket stays open, the job spends its budget and can dead-letter. It needs a non-counting retry reason with an age bound.
  • The limits listed in backend/docs/listen_pusher_pipeline/changes/2026-11-24-v3-batch-manual-end.md and 2026-11-24-user-finish-first-archive-window.md.

Also seen

  • Reconcile failures. /v1/conversations-v3/reconcile on backend-sync returned 500 or 504 for 10.2% of requests on 17cb670 (06:35 to 07:04Z, n=541; 504s ran the full 600 s), 7.4% on 7dbd266 (n=1194) and 2.8% on 69ba4fa (n=72). The 500s sampled on 17cb670 were Firestore Aborted: cross-transaction contention in the projection commit and v3_processing_not_completed.
  • Result ready to delivered. For 3,409 committed batch units enqueued 07:08 to 07:14Z, GPU work took p50 3.8 s and the wait from ready_at to delivered_at took p50 68 s, p90 156 s, with modes at 30 to 40 s and 60 to 70 s. Only 4% were delivered within 20 s. Owners outside the fast-finish cohort wait on this.
  • Allowance holds are silent. A free owner past the allowance gets state=allowance_held with a 2-hour available_at. The finish shows Processing and nothing else: no limit message and no upgrade prompt. 104 held units from 7 owners in that same 6-minute sample.
  • backend-sync was serving 17cb670 (2026-11-22) until 07:05Z today, so the v3 builder ran without #26115, #26121 and #26118 for about 35 hours.
Dominant language
Python
Stars
14k
Forks
2.7k
Avg merge
9h 19m
Merged PRs (30d)
655

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from BasedHardware/omi

All issues in BasedHardware/omi

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.