Repository navigation
feat: live words put the provider first, an End cuts them, and its tail reaches the first summary (live_words_cascade) - #26473
Merged
Merged
Conversation
…il reaches the first summary (live_words_cascade) Per-account flag store rule, off by default; needs vendor_recognizer_on_opened_app, and end_open_conversation for the End parts. App: the merged live words show the provider's words where it has them and the phone's own recogniser's only where it has none; its phrases are one paragraph; a grey word stays until a stored line covers its moment or it is five minutes old, on ended conversations too; an End cuts the list at the End instant per word, tells the display connection, and sends the words shown for the ended conversation with the End request (live_tail). Backend: /v4/live-words starts a new display line where the phone marks an End. live_tail is checked, bounded and kept encrypted with the stored End only; the notes prompt of the conversation that End closed reads the words no stored line covers; the count is stamped before the notes are written, the late-speech rewrite rule counts new stored words beyond it, and a summary pass still running when that speech lands settles instead of writing the notes again. A deliberate, bounded exception to client-authored text being display only: for an admitted account phone-authored words reach one model prompt. client_processing and its proof are untouched. Failure-Class: none
…tail can influence Failure-Class: none
An End that carries a tail is still the app's Finish body, so it takes the path it took without one. The tail's credit applies only to stored words that land in the stretch the tail covered. A payload that cannot be read or stored costs the tail, never the End, on the server and in the app. Old tails are cleared over a week of Ends, and a repeated End request leaves none behind. Failure-Class: none
…ts flag) Failure-Class: none Co-Authored-By: Claude Fable 5.2 <[email protected]>
Git-on-my-level
added a commit
that referenced
this pull request
Nov 27, 2026
Brings in #26473 (live_words_cascade) and #26431. Conflicts kept both sides: - api/conversations.dart, capture_controller.dart: the End request takes both finishCut (X-Omi-Finish-Cut) and liveTail (live_tail body field). - conversations_v3_processing.settle_processing: the SLI's update dict and eligible_after check keep the cascade's absorbed-landing covers_through. - v3/service.py: import both finish_home_sli and live_tail. Co-Authored-By: Claude Opus 5.5 <[email protected]>
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 changed and why
live_words_cascade: one per-account flag store rule (the family of #26348), app and backend, inert for an account its rule does not admit. No rule exists for it. The page of a conversation in progress went separately in #26467; this is the live-words half of the same work.Builds on
vendor_recognizer_on_opened_app; its End parts also needend_open_conversation.X-Omi-Ended-Attime), per word, for every screen, and the phone tells the display connection ({"type":"end"}), so the provider's line in progress breaks there.live_tail, the words shown for the conversation being ended (at most 600 words). The backend checks and bounds it, keeps it encrypted with the stored End and nowhere else, and adds the words no stored line covers to that conversation's notes prompt, marked as a draft. The count the notes read and the time of its first word are stamped on the conversation; the late-speech rewrite rule takes stored words that land in that stretch to be the same speech, up to that count, and a summary pass still running when that speech lands settles instead of writing the notes again. Speech from before that stretch that lands late counts in full, as before.Trust boundary, stated plainly.
live_tailmakes phone-authored text an input to one model prompt for an admitted account. That is a deliberate exception to the rule that client-authored text is display only, whichtests/unit/test_client_processing_trust_boundary.pyproves forclient_processing; that field and that test are untouched. The bounds: only under the flag; a separate request field hidden from the published schema; 600 words / 6,000 characters / 200 lines; control and bracket characters removed; only words that start before the End, at most six hours before it and inside the conversation; dropped wherever stored text exists; never written to a conversation, a recording row or a transcript; one reader (thetranscript=argument of the notes prompt). What the notes say (title, summary, the action items they propose) can therefore reflect those words, and so can whatever reads the notes; the discard and wake-word checks, memory extraction and search read the stored transcript alone.Change note:
backend/docs/listen_pusher_pipeline/changes/2026-11-26-live-words-cascade-end-tail-title-at-end.md.Known limits
live_tailfor part of the app's Finish body and answers 404 where it would have finished the recording. The flag tool's live check refuses to admit accounts before the serving commit includes the key./v4/live-wordsstill needs a load-balancer path rule before a wide ramp (unchanged).Product invariants affected
app/lib/services/capture/capture_controller.dartandcapture_composition.dartgain one optional callback that an End calls after it has sealed the open phone file. Withlive_words_cascadeoff the callback returns null and the End request is byte-for-byte what it was; capture, upload and receipt handling are unchanged in both modes.backend/utils/conversations/process_conversation.pychanges in one argument of the notes prompt builder. Memory intake, consolidation and promotion are untouched; memory extraction reads the stored transcript, never the tail.How it was verified
live_tailsent with an End, then the same speech uploaded): the first summary held facts that existed only in the tail, the stored transcript held only the batch text, and the landing 6 s later left the summary as it was (no rewrite). The same run without a tail wrote a second summary.backend/scripts/typecheck.sh;scan_async_blockers.py._plan_projection; the tail credit was carried into it unchanged and the backend tests were run again afterwards.flutter teston the live-preview, unit, widget, page and provider folders;dart analyze libno errors.Not verified: Home's Listening row, the Listening page and the next conversation right after an End with speech continuing (the test phone was restarted seconds after the End); the five-minute rule, the joined paragraph and the indent fix on a phone's screen (unit tests only); a language outside the phone recogniser's list on a phone; a landing that brings substantially more than the tail on a stack (unit test only); the per-account form of the flag against a real flag store (the local stack uses the development override).
Tests
backend/tests/unit/test_reliability_experiment_live_words_cascade.py(43 cases): per-account switch, payload bounds and plain text, encrypted storage with the End, covered words dropped, transcript never written, the prompt as the only reader, rewrite accounting, the settle rule, removal of stored words, the display line break.app/test/services/live_preview/live_words_cascade_test.dart(46 cases): reversed merge, joined paragraph and spacing, language rule, counters, watchdog, the End cut per word on the inputs of all three screens, a conversation's own time range, the stored-text-or-five-minutes rule, the tail payload and the End request body, the End message on the display connection.UI evidence
UI-Evidence: none -- the grey live words keep the look merged in #26394; what changes is which words are listed and for how long (asserted in
live_words_cascade_test.dart), and the screenshots taken on the test phone show real speech, so they are not published.Failure class (fixes)
Failure-Class: none
Line-Count-Exception: app/lib/backend/http/api/conversations.dart | 1780 -> 1787 | one optional field on the End request beside the header it travels with
Line-Count-Exception: app/lib/pages/conversation_detail/page.dart | 1874 -> 1900 | the flag-gated branch that picks a conversation's live words by its time range, inside the function that already picks them
Line-Count-Exception: app/lib/services/capture/capture_controller.dart | 5138 -> 5149 | one optional callback an End calls after sealing the open phone file
Line-Count-Exception: backend/routers/conversations.py | 3358 -> 3365 | passing the optional tail to the End's stored cut
Line-Count-Exception: backend/utils/conversations/process_conversation.py | 3614 -> 3622 | one argument of the notes prompt builder and its comment
Line-Count-Exception: backend/utils/conversations/v3/service.py | 2013 -> 2051 | the tail credit beside the rewrite rule it adjusts and the tail read beside the notes call it feeds
🤖 Generated with Claude Code