Skip to content

Keep a calendar meeting as one conversation and bound speaker edits - #20903

Merged
Git-on-my-level merged 12 commits into
BasedHardware:mainfrom
Git-on-my-level:lane/capture-speaker-hardening
Oct 7, 2026
Merged

Git-on-my-level merged 12 commits into
BasedHardware:mainfrom
Git-on-my-level:lane/capture-speaker-hardening

Conversation

@Git-on-my-level

@Git-on-my-level Git-on-my-level commented Oct 7, 2026 •

Copy link
Copy Markdown
Member

What changed and why

Live meeting captures no longer split into multiple conversations at every
120-second silence gap when the capture carries a stored calendar meeting:
continuation admission now resolves the meeting window from the row's
calendar_event_id and keeps one conversation through the scheduled end plus
a 120-second grace. Non-meeting captures keep the existing 120-second
boundary; device partitioning and empty-generation deletion are unchanged.

Speaker labeling hardening for live rooms: consecutive single-cluster
segments whose voice matches keep rejecting are now observable (metric +
log), and manual speaker assignment supports an optional time-range so a
correction touches the segments the user means instead of silently
rewriting the whole diarized cluster. Whole-cluster assignment remains the
default for compatibility with shipped clients.

Mobile conversation detail shows a "partial recording" note when the row's
capture evidence reports incomplete coverage, via a new optional wire field
(regenerated clients; no existing field narrowed).

Why

A real 120-minute meeting (calendar "Roast & Smoke") captured only its last
8 minutes, and even that window split into two rows at 06:03Z while its
calendar context was attached. Separately, the live speaker pipeline
collapsed the room into one diarized cluster (all matches speaker=0, all
voice matches rejected), and the user's manual re-assignments flipped the
entire cluster — Grant's segments landed on Michael.

Failure-Class

Failure-Class: none

Product invariants affected

  • INV-CAP-1 — touched files are outside its path globs; no uplink
    pause/suspend/fence behavior changed; continuation and assignment changes
    are capture-ownership-neutral.

Line-Count-Exception

Line-Count-Exception: backend/database/conversations.py | 3722 -> 3728 | ranged-assignment writer joins the existing manual assignment persistence; split deferred
Line-Count-Exception: backend/routers/conversations.py | 2275 -> 2284 | assign-speaker route accepts the optional range parameter with compatibility default

Test plan

  • backend: listen reconnect/continuity, meeting-context wiring, manual
    speaker assignment suites (coordinator re-ran: pass)
  • app: contract + detail tests (one unrelated temp-file flake in the
    unchanged mic-contention test on the implementer's full run; targeted
    rerun passed)

UI-Evidence

UI-Evidence: none -- badge renders only on rows with coverage=incomplete; covered by widget tests, no reproducible production row available in this environment.

Known limitations

  • Coverage badge reports server-computed coverage only; the "captured 8 of
    ~75 minutes" quantification needs span arithmetic on the client and is
    deliberately deferred.
  • Ranged assignment defaults to whole-cluster when the client omits the
    range; clients gain the range control in a later PR.

Review round 1 fixes (grok REQUEST CHANGES → addressed)

  • P1: live capture creation now stamps the active calendar meeting window onto the in-progress row, so meeting-aware continuation works on the real live path (commit 709e095, regression test included).
  • P2: extension capped at MAX_CONVERSATION_TIMEOUT_SECONDS (4h) and scheduled event end preferred over duration (976fb39).
  • P3: hydrated window persisted on the row; the per-5s meeting-document re-read happens once per window (afef47e).
  • Also classifies capture_coverage at the integration trust boundary per the pinned-fields contract (767a80f).

Review round 2 fix (grok REQUEST CHANGES → addressed)

  • P1: the live meeting stamp now preserves title (defaulting to '' when the meeting has none), so stored_meeting_context and _get_structured parse the stamped context and finalization no longer fails for captures started during titled meetings (73441e4, four regression tests).

Extend meeting-backed continuation through the scheduled end plus grace, observe live speaker collapse, support ranged manual cluster assignments, and show partial capture coverage in mobile details.

Failure-Class: none
Read the exact stored calendar event when an existing live row carries its id without the full meeting window. Share this hydration across reconnect, continuation admission and live timeout checks; preserve ordinary boundaries on missing, mismatched or unavailable events.

Failure-Class: none
@Git-on-my-level
Git-on-my-level merged commit f709c28 into BasedHardware:main Oct 7, 2026
55 checks passed
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