Skip to content

feat(conversations-v3): write live-window notes once listen seals on speech quiet - #25782

Closed
kodjima33 wants to merge 2 commits into
mainfrom
fix/v3-quiet-notes
Closed

kodjima33 wants to merge 2 commits into
mainfrom
fix/v3-quiet-notes

Conversation

@kodjima33

@kodjima33 kodjima33 commented Nov 19, 2026 •

Copy link
Copy Markdown
Collaborator

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 carries v3_rotation_cap_seconds and 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 when summary_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.py and triggers.py. This PR edits none of summary.py or triggers.py and adds one block to service.py.

Expected end-to-summary for a pendant v3 owner (speech end T, modeled from code, not measured):

  • Today: seal T+120 s, transcript lands, then the five-minute close at T+5 min, then outline and notes on the Luna/Flex lane. That is T+6 min at best. On Nov 18 we observed 4-31 min.
  • This PR, rotation off: seal T+120 s plus batch STT plus outline and Standard notes, about T+3 min. Still not 1 minute: the 120 s listen quiet timeout and batch STT dominate.
  • This PR, rotation on: the final chunk is usually rotation-sealed at a 1.5 s pause, so there is no quiet proof. Timing stays at the five-minute close unless the final recording was quiet-sealed (younger than 180 s at the end).

Safety

  • Cost: at most 2 paid quiet attempts per window, counted on its summary lease before the call (quiet_notes). Each attempt is one outline plus one Standard notes call. summary.fresh also 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).
  • Duplicates: the quiet write is a live-row store_summary and does not arm the conversation-created delivery. Only final settlement does that, once. No memories, tasks or webhooks run in the quiet path.
  • Non-v3 owners: unchanged. The hook runs only inside v3 reconcile passes, and only for v3 derived rows.
  • Kill switch: CONVERSATIONS_V3_QUIET_NOTES, default off. cohort admits rollout cohort v3-quiet-notes. on admits 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 with StrictFirestore. 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 real service.reconcile pass queues one task only when enabled and quiet-sealed.
  • 378 tests passed across the v3 stream, live-capture, transactions, engine, review, contract, created-delivery, context and listen speech-quiet suites.
  • scripts/typecheck.sh: 0 errors. Reader inventory and feature-flag registry checks pass.
  • UNVERIFIED: real batch STT latency, model latency and cost in production. No device or prod run.

Rollout

Canary: set CONVERSATIONS_V3_QUIET_NOTES=cohort on the API/WORKERS roles that serve /v1/conversations-v3/reconcile. Then run python backend/scripts/rollout_cohort.py --cohort v3-quiet-notes --project based-hardware --environment prod --add --apply --uid-file <private file>. Membership needs no roll. Watch event=v3_quiet_notes (speech_end_to_notes_seconds) and omi_conversations_v3_model_calls_total{kind="quiet_notes"}.

UI-Evidence: none (backend scheduling only; existing live summary UI)

🤖 Generated with Claude Code

View guided diff Turn on auto-fix

…speech quiet

Cohort-gated, default off. Reuses the on-open outline and notes writer; final
processing reuses the notes when no speech followed.
@kodjima33

Copy link
Copy Markdown
Collaborator Author

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.

@kodjima33 kodjima33 closed this Nov 21, 2026
@github-actions

Copy link
Copy Markdown
Contributor

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:

  • Project standards — Ensuring consistency across the codebase
  • User needs — Making sure changes align with what our users need
  • Code best practices — Maintaining code quality and maintainability
  • Project direction — Keeping aligned with our product principles and locked invariants

Before your next PR, please skim:

  • PRODUCT.md — product north star
  • Product invariants — locked rules (shared chat, memory tiers, agent control plane, integrations, brand)

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!

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant