Repository navigation
Conversation
…speech quiet Cohort-gated, default off. Reuses the on-open outline and notes writer; final processing reuses the notes when no speech followed.
|
Closing: superseded by main. #25771 moved live-window notes to a separate live recap and the summary stream now refuses live conversations, so this quiet task would pay for an outline call and then fail. #25794's CONVERSATIONS_V3_LOCK_SECONDS covers the goal (final notes sooner) with no extra model calls. |
|
Hey @kodjima33 👋 Thank you so much for taking the time to contribute to Omi! We truly appreciate you putting in the effort to submit this pull request. After careful review, we've decided not to merge this particular PR. Please don't take this personally — we genuinely try to merge as many contributions as possible, but sometimes we have to make tough calls based on:
Before your next PR, please skim:
If this was declined for direction or taste, maintainers should cite an invariant ID or open a proposed one — ask if that citation is missing. Your contribution is still valuable to us, and we'd love to see you contribute again in the future! If you'd like feedback on how to improve this PR or want to discuss alternative approaches, please don't hesitate to reach out. Thank you for being part of the Omi community! |
What changed and why
A v3 conversation gets automatic notes only after five minutes of transcript silence. Pendant recordings are batch-only, so no transcript exists until listen seals the recording. With rotation off (the prod default), listen seals a recording after its quiet timeout (default 120 s of VAD silence). That seal already proves the wearer stopped talking.
This PR adds
CONVERSATIONS_V3_QUIET_NOTES. When a reconcile pass sees a live window whose last speech is in a transcribed recording that listen sealed on quiet, it queues one task. A rotation seal carriesv3_rotation_cap_secondsand is not counted as quiet. The task runs the same outline and Standard notes writer that already run when the owner opens a live row (summary.stream). The five-minute close, the two-hour cap and final processing are unchanged.This replaces #25548 (2.6k lines, conflicting in 9 files with 482 commits of main). Main now has the pieces that PR built: the on-open writer for live rows, a revision-fenced
store_summary, and final-processing reuse whensummary_covers_through >= finished_at. #25548 measured "30 s of accepted speech quiet" on landed transcript. For batch recordings that transcript only lands after the seal, and with rotation on every chunk looks quiet. Recommend closing #25548.Overlap: #25759 (Finish/natural reconcile scheduling) and #25771 (recap when Summary opens) touch
summary.py,service.pyandtriggers.py. This PR edits none ofsummary.pyortriggers.pyand adds one block toservice.py.Expected end-to-summary for a pendant v3 owner (speech end T, modeled from code, not measured):
Safety
quiet_notes). Each attempt is one outline plus one Standard notes call.summary.freshalso skips a window whose notes cover all but under 5 min of speech. One task name per window end dedupes retries and repeated passes. When no speech follows, final processing reuses the notes and the outline cache, so no extra notes call. When speech resumes within five minutes, final processing recomputes the notes (one extra call).store_summaryand does not arm the conversation-created delivery. Only final settlement does that, once. No memories, tasks or webhooks run in the quiet path.CONVERSATIONS_V3_QUIET_NOTES, defaultoff.cohortadmits rollout cohortv3-quiet-notes.onadmits every v3 owner. No deploy values or uid literals change in this PR.Product invariants affected
none
How it was verified
test_conversations_v3_quiet_notes.py(23 cases). Proof accepts only a completed, quiet-sealed, transcribed last recording. Rotation, still-capturing, processing, partial and continuing recordings are rejected, as are closed, hidden and covered windows. Flag modes are tested. The cap is tested on the real lease writer withStrictFirestore. The task order is reconcile on open, then prepare, then stream. Disabled owners, short, media and hidden windows make no call, and a busy or capped run spends no model call. The route dispatch is tested. A realservice.reconcilepass queues one task only when enabled and quiet-sealed.scripts/typecheck.sh: 0 errors. Reader inventory and feature-flag registry checks pass.Rollout
Canary: set
CONVERSATIONS_V3_QUIET_NOTES=cohorton the API/WORKERS roles that serve/v1/conversations-v3/reconcile. Then runpython backend/scripts/rollout_cohort.py --cohort v3-quiet-notes --project based-hardware --environment prod --add --apply --uid-file <private file>. Membership needs no roll. Watchevent=v3_quiet_notes(speech_end_to_notes_seconds) andomi_conversations_v3_model_calls_total{kind="quiet_notes"}.UI-Evidence: none (backend scheduling only; existing live summary UI)
🤖 Generated with Claude Code