Repository navigation
Conversation
Contributor
Author
|
Bounty proposal for this fix: #19393 ($50 proposed). |
Member
|
Verified against the current head — correct and well-scoped fix.
The corrected duration_s also flows into the persisted meeting receipt (meeting_receipt.py), so receipts now match what the clients display. Backend unit suite, Hermetic Backend E2E, and the Backend Hermetic Merge Gate all pass on this head. Formal sign-off stays with a human maintainer since this gate decides which captures get LLM meeting treatment and a persisted receipt — from the automation side the change looks solid. This review is automated on behalf of the Omi maintainer team. by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with |
Git-on-my-level
added a commit
that referenced
this pull request
Sep 27, 2026
…th transcript-span duration #19391 switched meeting_treatment_verdict to the transcript-span duration rule but left wall-window fixtures in test_meeting_treatment.py and test_chat_first_proactive_engine.py, red on origin/main and on this PR's shards. Extend the alignment begun in the previous commit: eligible fixtures now carry a five-minute transcript span, the too_short and insufficient_speech parametrizations vary the span/speech instead of the wall window, and expected verdicts assert the span-derived inputs. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Git-on-my-level
added a commit
that referenced
this pull request
Sep 28, 2026
* draft(capture-timeline): explore S1 evidence envelope dark write Co-Authored-By: Claude Opus 5.5 <[email protected]> * draft(capture-timeline): mark dark client writes internal only Co-Authored-By: Claude Opus 5.5 <[email protected]> * draft(capture-timeline): export optional evidence request contract Co-Authored-By: Claude Opus 5.5 <[email protected]> * draft(capture-timeline): regenerate first-party API types Co-Authored-By: Claude Opus 5.5 <[email protected]> * draft(capture-timeline): explore S1 evidence envelope dark write Co-Authored-By: Claude Opus 5.5 <[email protected]> * draft(capture-timeline): mark dark client writes internal only Co-Authored-By: Claude Opus 5.5 <[email protected]> * draft(capture-timeline): export optional evidence request contract Co-Authored-By: Claude Opus 5.5 <[email protected]> * draft(capture-timeline): regenerate first-party API types Co-Authored-By: Claude Opus 5.5 <[email protected]> * test(capture-timeline): register evidence module in sync harnesses and pin capture_evidence - Pre-register the real pure utils.capture_evidence module in the sync_v2/cloud_tasks stub harnesses (manual_speaker_assignments pattern); the pipeline's new module-scope import broke the file-path re-exec. - Pin Conversation.capture_evidence as server-authored, NOT projection-family (processing_state precedent): Field(exclude=True), never client-visible; projection-family would strip/delete the dark write itself. - Regenerate public docs/api-reference/openapi.json for the optional CaptureEvidenceLineage request contract. * feat(capture-timeline): bridge phone source positions through live and WAL sync Carry bounded source maps through decode, VAD, transcript persistence and multi-track assignment. Exercise the actual listen and sync paths with hermetic fixtures. Co-Authored-By: Claude Opus 5.5 <[email protected]> * harden(capture-timeline): keep bounded receipt typing explicit Co-Authored-By: Claude Opus 5.5 <[email protected]> * chore(capture-timeline): export mapped evidence wire shape Co-Authored-By: Claude Opus 5.5 <[email protected]> * test(capture-timeline): update paced upload fakes for evidence header Co-Authored-By: Claude Opus 5.5 <[email protected]> * test(capture-timeline): align meeting fixture with transcript duration rule Co-Authored-By: Claude Opus 5.5 <[email protected]> * test(capture-timeline): finish meeting-treatment fixture alignment with transcript-span duration #19391 switched meeting_treatment_verdict to the transcript-span duration rule but left wall-window fixtures in test_meeting_treatment.py and test_chat_first_proactive_engine.py, red on origin/main and on this PR's shards. Extend the alignment begun in the previous commit: eligible fixtures now carry a five-minute transcript span, the too_short and insufficient_speech parametrizations vary the span/speech instead of the wall window, and expected verdicts assert the span-derived inputs. Co-Authored-By: Claude Opus 5.5 <[email protected]> * test(capture-timeline): preserve measured meeting fixture * test(capture-timeline): align uploader fake with evidence API * test(desktop-ci): serialize owner-scoped embedding suite --------- Co-authored-by: Claude Opus 5.5 <[email protected]> Co-authored-by: David Zhang <[email protected]> Co-authored-by: David Zhang <[email protected]>
This was referenced Sep 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
meeting_treatment_verdict(utils/conversations/meeting_treatment.py) computed its policy duration as the wall windowfinished_at - started_at.started_atis the live-socket streaming-session origin, not the moment the conversation's speech began — it drifts tens of minutes behind wall clock across a long socket (#4056). A 90-second desktop call that began 40 minutes into a live socket therefore measured as ~2400s.Impact
The 5-minute
too_shortgate never fired for those captures, so a short call received the full meeting treatment: the verdict is persisted in the meeting receipt (utils/conversations/meeting_receipt.py,duration_sfield) andeligible=Truecreates the durable capture-arrival intent and a "meeting ready" notification, plus LLM notes for a capture with 90 seconds of speech. This is the same defect class #13047 fixed at the discard gate; the policy gate was missed.backend/utils/conversations/duration.pyis the repo's declared single authority for this exact question ("Any consumer that computesfinished_at - started_attherefore over-counts…"), and its helper already existed — this site just wasn't routed through it.Fix
Use
conversation_duration_seconds(conversation)(transcript span, with the wall window as the documented degraded fallback for transcript-free captures). Theduration_sin everyMeetingTreatmentVerdict— and the receipt written from it — now matches what the clients display and what the discard gate measures.Tests
backend/tests/unit/test_meeting_treatment_duration_span.py— hermetic, stdlib only:too_shortwithduration_s ≈ 90;eligible;Verification
git grepconfirms the check module is the only consumer of the wall-window formula in this file.Failure-Class: none