Repository navigation
Speakers: rename once across the recording, multi-select, no processing wait - #24509
Conversation
…ble regeneration Failure-Class: new
Failure-Class: new
…ties Failure-Class: new
…query coverage Failure-Class: new
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Automations to automatically generate PRs for you. |
|
@kodjima33 UI changes involving Git-on-my-level require your approval. Review the current diff, then comment |
There was a problem hiding this comment.
23 issues found across 146 files
Confidence score: 2/5
- Reused speaker IDs can inherit the wrong identity because scope checks are missing in
manual_speaker_assignments.pyand the rollover merge inrecording_speakers.py. Filter carried decisions by speaker scope and stream speaker in both paths. recording_speakers.pycan return a stale-member conflict after earlier members have already been renamed, leaving the recording partially updated. Make the updates atomic or provide durable compensation.- A quick save in
name_speaker_sheet.dartcan omit every cross-member line because saving suppresses the in-flight recording-wide fetch. Await the fetch before allowing the save. live_transcript_view.dartopens the sheet in recording-wide mode without loading the recording transcript, so earlier episode members can be missing after a conversation boundary. Load the recording transcript before offering recording-wide selection.
Prompt for AI agents (unresolved issues)
Check if these issues are valid — if so, understand the root cause of each and fix them. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. If appropriate, use sub-agents to investigate and fix each issue separately.
<file name="app/lib/pages/conversation_detail/conversation_summary_generation.dart">
<violation number="1" location="app/lib/pages/conversation_detail/conversation_summary_generation.dart:101">
P2: Wrap `preferredSummaryAppWrite` in the same try/catch as `setDefaultSummaryTemplateAppId`; otherwise an exception escapes the swipe callback and bypasses its failed-to-save feedback.</violation>
</file>
<file name="app/lib/pages/episodes/live_transcript_view.dart">
<violation number="1" location="app/lib/pages/episodes/live_transcript_view.dart:472">
P2: `wholeRecording: true` makes the sheet claim recording-wide selection without loading the recording transcript. After a conversation boundary, earlier episode members are absent from `provider.segments`, so users cannot review or multi-select their lines; wire the recording/episode transcript loader and preserve each line's conversation/speaker scope for assignment.</violation>
</file>
<file name="backend/utils/manual_speaker_assignments.py">
<violation number="1" location="backend/utils/manual_speaker_assignments.py:598">
P2: `manual_voice_decision` bypasses `_receipt_section` and calls mapping methods on raw nested receipt sections. A malformed `speakers`, `segments`, or `voices` value can therefore crash live speaker matching instead of degrading safely like the other receipt readers; read each section through `_receipt_section`.</violation>
<violation number="2" location="backend/utils/manual_speaker_assignments.py:599">
P1: `manual_voice_decision` accepts ordinary speaker and segment receipt entries without checking `speaker_id_scope`, so a reused numeric speaker can inherit the wrong identity on another provider scope. Filter both candidate sources to the requested scope, treating an absent scope as legacy-only.
(Based on your team's feedback about scope-qualified owner clusters.)</violation>
</file>
<file name="app/lib/pages/conversation_detail/widgets/name_speaker_sheet.dart">
<violation number="1" location="app/lib/pages/conversation_detail/widgets/name_speaker_sheet.dart:220">
P1: Saving is enabled while the recording-wide fetch is in flight, but this guard discards the fetched lines once save sets `loading`; a quick save can omit every cross-member line. Await the recording-line load before accepting the assignment or preserve and apply its future result.</violation>
</file>
<file name="backend/tests/unit/test_live_speaker_carry.py">
<violation number="1" location="backend/tests/unit/test_live_speaker_carry.py:228">
P3: Keep this dependency at module scope instead of importing it inside `_CarryHarness.__init__`; the function-local import violates the backend import rule and hides the harness dependency from the module’s import surface.</violation>
</file>
<file name="backend/routers/episodes.py">
<violation number="1" location="backend/routers/episodes.py:171">
P3: This endpoint imports another router inside the request handler, bypassing the router layering rule and delaying dependency failures until the first request. Move the shared edit/error-mapping logic into a utility or service module, then import that shared code at module scope.</violation>
</file>
<file name="app/test/widgets/recording_rename_render_test.dart">
<violation number="1" location="app/test/widgets/recording_rename_render_test.dart:61">
P3: This global platform override is reset only on the success path, so an earlier failure can leave later tests running as iOS. Register the reset with `addTearDown` immediately after setting it.</violation>
</file>
<file name="app/test/providers/capture_provider_test.dart">
<violation number="1" location="app/test/providers/capture_provider_test.dart:1">
P3: This new package import precedes the `dart:` imports, triggering the project’s `directives_ordering` lint. Move it below the `dart:async` and `dart:io` imports.</violation>
<violation number="2" location="app/test/providers/capture_provider_test.dart:469">
P3: This assertion verifies two requests, but not that the queued request persists `sam` for segment `b`; record the assignment arguments in the mock and assert both payloads so a duplicated or misrouted queued save cannot pass.</violation>
</file>
<file name="backend/routers/listen/conversations.py">
<violation number="1" location="backend/routers/listen/conversations.py:691">
P3: Keep imports at module scope in this router; this function-local import defers import failures until rollover and violates the backend import architecture. Move `recording_carry` into the existing top-level `utils` imports.</violation>
</file>
<file name="backend/utils/recording_speakers.py">
<violation number="1" location="backend/utils/recording_speakers.py:214">
P1: The fan-out is not atomic: a stale check on a later member can return 409 after earlier members were renamed. Commit the member updates as one atomic operation, or add durable compensation so a failed recording-wide edit cannot leave a partial rename.</violation>
<violation number="2" location="backend/utils/recording_speakers.py:256">
P1: This rollover merge can apply a prior decision from a different speaker scope when numeric speaker IDs are reused. Filter carried decisions by `(speaker_id_scope, stream_speaker)` before merging, including legacy receipt entries that lack a matching scope.</violation>
</file>
<file name="app/lib/l10n/app_localizations_hu.dart">
<violation number="1" location="app/lib/l10n/app_localizations_hu.dart:15028">
P3: This action label uses the noun `Alkalmazás` (“application”) instead of an imperative, so the Hungarian UI does not clearly communicate the available action. Use `Alkalmazd a teljes felvételre` to match the English action and the locale’s informal imperative style.</violation>
</file>
<file name="app/lib/pages/conversation_detail/conversation_detail_provider.dart">
<violation number="1" location="app/lib/pages/conversation_detail/conversation_detail_provider.dart:607">
P2: Rejecting a label on a sibling line in the recording-wide transcript always fails because the lookup is limited to the open conversation. Add recording-aware rejection handling or hide this action for sibling lines.</violation>
<violation number="2" location="app/lib/pages/conversation_detail/conversation_detail_provider.dart:698">
P2: A failed rejection queued behind an assignment can leave its optimistic clear in memory because the rejection never records a per-segment generation. Track rejection saves in the same per-segment state used by assignments before applying this rollback guard.</violation>
<violation number="3" location="app/lib/pages/conversation_detail/conversation_detail_provider.dart:1268">
P2: This refresh drops the loaded whole-recording transcript without reloading it, so a stale-speaker refresh leaves the transcript in the single-member view. Preserve the recording cache or reload it after applying the refreshed conversation.</violation>
<violation number="4" location="app/lib/pages/conversation_detail/conversation_detail_provider.dart:1268">
P2: Invalidate or reconcile the recording transcript whenever `setCachedConversation` replaces the conversation object, not only when its ID changes; otherwise same-ID responses leave the whole-recording UI bound to stale segment instances.</violation>
<violation number="5" location="app/lib/pages/conversation_detail/conversation_detail_provider.dart:1268">
P2: Switching conversations during a recording-transcript fetch can suppress the new conversation's fetch. Key the in-flight load by conversation ID or invalidate and retry it when `resetRecordingTranscript()` changes the open conversation.</violation>
</file>
<file name="app/lib/pages/conversation_detail/widgets/transcript_tab.dart">
<violation number="1" location="app/lib/pages/conversation_detail/widgets/transcript_tab.dart:243">
P2: The whole-recording naming flow still reports a member-local line count. Compute the outcome count from the recording-wide applied result or the canonical `(scope, voice)` selection so the Done card matches the lines actually renamed.</violation>
<violation number="2" location="app/lib/pages/conversation_detail/widgets/transcript_tab.dart:356">
P3: This stale conditional is unreachable because the preceding stale branch returns. Remove the conditional and keep the generic failure text here, or consolidate the two stale-handling branches.</violation>
</file>
<file name="app/lib/services/capture/capture_speaker_assignment.dart">
<violation number="1" location="app/lib/services/capture/capture_speaker_assignment.dart:66">
P2: This guard can let a queued rename patch the old conversation after a live rollover because it does not revalidate the captured conversation and session before the request. Include `speakerAssignmentConversation?.id == conversationId` and `activeCaptureSessionId == sessionId` in this pre-request fence; the later check cannot undo a committed server mutation.</violation>
</file>
<file name="backend/route_policy_manifest.yaml">
<violation number="1" location="backend/route_policy_manifest.yaml:4708">
P2: These new endpoints disable rate limiting, but the non-episode path scans and decrypts every conversation. Add a bounded per-UID rate-limit policy for both recording-speaker routes to prevent repeated requests from exhausting Firestore and CPU.</violation>
</file>
Reply with feedback, questions, or to request a fix.
View guided diff | Turn on auto-fix | Re-trigger cubic
| def manual_voice_decision(receipt: Mapping, speaker_id: int, scope: Optional[str]) -> Optional[Mapping]: | ||
| """Winning explicit voice decision for the live reader, on its current scope.""" | ||
| covering = (receipt.get('speakers') or {}).get(str(speaker_id)) | ||
| candidates = [covering] if isinstance(covering, Mapping) else [] |
There was a problem hiding this comment.
P1: manual_voice_decision accepts ordinary speaker and segment receipt entries without checking speaker_id_scope, so a reused numeric speaker can inherit the wrong identity on another provider scope. Filter both candidate sources to the requested scope, treating an absent scope as legacy-only.
(Based on your team's feedback about scope-qualified owner clusters.)
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. At backend/utils/manual_speaker_assignments.py, line 599:
<comment>`manual_voice_decision` accepts ordinary speaker and segment receipt entries without checking `speaker_id_scope`, so a reused numeric speaker can inherit the wrong identity on another provider scope. Filter both candidate sources to the requested scope, treating an absent scope as legacy-only.
(Based on your team's feedback about scope-qualified owner clusters.) </comment>
<file context>
@@ -564,3 +591,37 @@ def merge_live_segments(
+def manual_voice_decision(receipt: Mapping, speaker_id: int, scope: Optional[str]) -> Optional[Mapping]:
+ """Winning explicit voice decision for the live reader, on its current scope."""
+ covering = (receipt.get('speakers') or {}).get(str(speaker_id))
+ candidates = [covering] if isinstance(covering, Mapping) else []
+ candidates += [
+ entry
</file context>
| final load = widget.loadRecordingLines; | ||
| if (load == null) return; | ||
| final lines = await load(); | ||
| if (!mounted || loading) return; |
There was a problem hiding this comment.
P1: Saving is enabled while the recording-wide fetch is in flight, but this guard discards the fetched lines once save sets loading; a quick save can omit every cross-member line. Await the recording-line load before accepting the assignment or preserve and apply its future result.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. At app/lib/pages/conversation_detail/widgets/name_speaker_sheet.dart, line 220:
<comment>Saving is enabled while the recording-wide fetch is in flight, but this guard discards the fetched lines once save sets `loading`; a quick save can omit every cross-member line. Await the recording-line load before accepting the assignment or preserve and apply its future result.</comment>
<file context>
@@ -202,6 +210,21 @@ class NameSpeakerBottomSheet extends StatefulWidget {
+ final load = widget.loadRecordingLines;
+ if (load == null) return;
+ final lines = await load();
+ if (!mounted || loading) return;
+ setState(() {
+ _recordingLines = lines;
</file context>
| @@ -1,3 +1,4 @@ | |||
| import 'package:omi/backend/http/api/recording_speakers.dart'; | |||
There was a problem hiding this comment.
P3: This new package import precedes the dart: imports, triggering the project’s directives_ordering lint. Move it below the dart:async and dart:io imports.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. At app/test/providers/capture_provider_test.dart, line 1:
<comment>This new package import precedes the `dart:` imports, triggering the project’s `directives_ordering` lint. Move it below the `dart:async` and `dart:io` imports.</comment>
<file context>
@@ -1,3 +1,4 @@
+import 'package:omi/backend/http/api/recording_speakers.dart';
import 'dart:async';
import 'dart:io';
</file context>
| actions.assignmentCompleter!.complete(true); | ||
| expect(await first, isTrue); | ||
| expect(await second, isTrue); | ||
| expect(actions.assignmentCalls, 2); |
There was a problem hiding this comment.
P3: This assertion verifies two requests, but not that the queued request persists sam for segment b; record the assignment arguments in the mock and assert both payloads so a duplicated or misrouted queued save cannot pass.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. At app/test/providers/capture_provider_test.dart, line 469:
<comment>This assertion verifies two requests, but not that the queued request persists `sam` for segment `b`; record the assignment arguments in the mock and assert both payloads so a duplicated or misrouted queued save cannot pass.</comment>
<file context>
@@ -440,6 +441,117 @@ void main() {
+ actions.assignmentCompleter!.complete(true);
+ expect(await first, isTrue);
+ expect(await second, isTrue);
+ expect(actions.assignmentCalls, 2);
+ expect(provider.segments.map((s) => s.personId), ['maya', 'sam']);
+ provider.dispose();
</file context>
| and self._active_speaker_scope() == carry_from[1] | ||
| ): | ||
| carry = carried_receipt(previous, carry_from[1]) | ||
| from utils.recording_speakers import recording_carry |
There was a problem hiding this comment.
P3: Keep imports at module scope in this router; this function-local import defers import failures until rollover and violates the backend import architecture. Move recording_carry into the existing top-level utils imports.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. At backend/routers/listen/conversations.py, line 691:
<comment>Keep imports at module scope in this router; this function-local import defers import failures until rollover and violates the backend import architecture. Move `recording_carry` into the existing top-level `utils` imports.</comment>
<file context>
@@ -689,7 +688,9 @@ async def create_new_in_progress_conversation(self, *, rollover: bool = False) -
and self._active_speaker_scope() == carry_from[1]
):
- carry = carried_receipt(previous, carry_from[1])
+ from utils.recording_speakers import recording_carry
+
+ carry = await self.host.persistence.call(recording_carry, request.uid, previous, carry_from[1])
</file context>
| String get liveAudioSavedDetail => 'A beszélők és a végleges átirat feltöltés közben itt jelennek meg.'; | ||
|
|
||
| @override | ||
| String get speakerWholeRecording => 'Alkalmazás a teljes felvételre'; |
There was a problem hiding this comment.
P3: This action label uses the noun Alkalmazás (“application”) instead of an imperative, so the Hungarian UI does not clearly communicate the available action. Use Alkalmazd a teljes felvételre to match the English action and the locale’s informal imperative style.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. At app/lib/l10n/app_localizations_hu.dart, line 15028:
<comment>This action label uses the noun `Alkalmazás` (“application”) instead of an imperative, so the Hungarian UI does not clearly communicate the available action. Use `Alkalmazd a teljes felvételre` to match the English action and the locale’s informal imperative style.</comment>
<file context>
@@ -15023,4 +15023,10 @@ class AppLocalizationsHu extends AppLocalizations {
String get liveAudioSavedDetail => 'A beszélők és a végleges átirat feltöltés közben itt jelennek meg.';
+
+ @override
+ String get speakerWholeRecording => 'Alkalmazás a teljes felvételre';
+
+ @override
</file context>
| String get speakerWholeRecording => 'Alkalmazás a teljes felvételre'; | |
| String get speakerWholeRecording => 'Alkalmazd a teljes felvételre'; |
| OmiFeedback.error( | ||
| context, | ||
| context.l10n.failedToSaveCheckConnection, | ||
| provider.speakerAssignmentStale |
There was a problem hiding this comment.
P3: This stale conditional is unreachable because the preceding stale branch returns. Remove the conditional and keep the generic failure text here, or consolidate the two stale-handling branches.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. At app/lib/pages/conversation_detail/widgets/transcript_tab.dart, line 356:
<comment>This stale conditional is unreachable because the preceding stale branch returns. Remove the conditional and keep the generic failure text here, or consolidate the two stale-handling branches.</comment>
<file context>
@@ -338,9 +346,16 @@ class _TranscriptWidgetsState extends State<TranscriptWidgets> with AutomaticKee
OmiFeedback.error(
context,
- context.l10n.failedToSaveCheckConnection,
+ provider.speakerAssignmentStale
+ ? context.l10n.speakerSelectionChanged
+ : context.l10n.failedToSaveCheckConnection,
</file context>
|
@kodjima33 UI changes involving Git-on-my-level require your approval. Review the current diff, then comment |
|
@kodjima33 UI changes involving Git-on-my-level require your approval. Review the current diff, then comment |
|
@kodjima33 UI changes involving Git-on-my-level require your approval. Review the current diff, then comment |
|
@kodjima33 UI changes involving Git-on-my-level require your approval. Review the current diff, then comment |
|
@kodjima33 UI changes involving Git-on-my-level require your approval. Review the current diff, then comment |
|
@kodjima33 UI changes involving Git-on-my-level require your approval. Review the current diff, then comment |
|
@kodjima33 UI changes involving Git-on-my-level require your approval. Review the current diff, then comment |
There was a problem hiding this comment.
6 existing issues remain and 52 new issues found across 179 files
Confidence score: 2/5
transcript_tab.dartcan crash when recording-wide selection starts because the loading spinner has no leading-item ID. Include the spinner ID while the transcript is loading.recording_speakers.darttreats episode or admission 404s as an old-server signal, so a disabled or unauthorized episode request can fall through to conversation assignment. Only use the fallback when the server actually lacks episode support.recording_speakers.pycan mark a document creation-indexed using stale scope metadata, even when this write indexed no transcript. Only trust scopes indexed in the current write.conversation_speaker_restore.dartleaves the old label visible after a stale rename returns 409. Handle that response as stale and refresh or reconcile the UI.
Prompt for AI agents (unresolved issues)
Check if these issues are valid — if so, understand the root cause of each and fix them. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. If appropriate, use sub-agents to investigate and fix each issue separately.
<file name="app/lib/l10n/app_cs.arb">
<violation number="1" location="app/lib/l10n/app_cs.arb:4529">
P2: This Czech plural message renders incorrect grammar for every count from 1 through 4 (for example, `Přejmenováno 1 řádků`). Add Czech `one`/`few`/`other` branches with the appropriate `řádek`, `řádky`, and `řádků` forms.</violation>
</file>
<file name="app/lib/l10n/app_it.arb">
<violation number="1" location="app/lib/l10n/app_it.arb:4529">
P2: The Italian singular branch has incorrect number and agreement: it says `Rinominate 1 righe` instead of `Rinominata 1 riga`. Update the `=1` branch so the available-conversations confirmation is grammatically correct for one renamed line.</violation>
</file>
<file name="app/lib/l10n/app_nl.arb">
<violation number="1" location="app/lib/l10n/app_nl.arb:4529">
P3: The `=1` branch displays `1 regels`, which is grammatically incorrect Dutch for the one-line result. Use the singular `1 regel`.</violation>
</file>
<file name="app/lib/l10n/app_localizations_be.dart">
<violation number="1" location="app/lib/l10n/app_localizations_be.dart:15026">
P2: This Belarusian coverage message has incorrect count agreement: it says `1 радкоў`, and the `other` branch also says `2 радкоў`/`3 радкоў`. Update the ARB translation to use `1 радок` and an appropriate form for 2–4 (or restructure the wording to avoid the case), then regenerate this file.</violation>
</file>
<file name="app/lib/l10n/app_te.arb">
<violation number="1" location="app/lib/l10n/app_te.arb:11955">
P3: The `=1` branch renders `1 పంక్తుల`, which is grammatically incorrect Telugu for one line. Use `1 పంక్తి` in the singular branch.</violation>
</file>
<file name="app/lib/backend/http/api/recording_speakers.dart">
<violation number="1" location="app/lib/backend/http/api/recording_speakers.dart:56">
P1: This treats an episode resource or admission 404 as an old-server signal and can bypass episode admission: with `episodeId` set, a disabled or unauthorized episode request falls through to the conversation assignment endpoint and still renames its conversation. Restrict fallback to an endpoint-unavailable signal, or preserve and check a machine-readable 404 reason before using the legacy route.</violation>
</file>
<file name="app/lib/l10n/app_bs.arb">
<violation number="1" location="app/lib/l10n/app_bs.arb:11955">
P3: The singular coverage message is grammatically incorrect: `1 redova` should be `1 red`. This is shown to Bosnian users whenever exactly one line is renamed.</violation>
</file>
<file name="app/lib/l10n/app_ur.arb">
<violation number="1" location="app/lib/l10n/app_ur.arb:11955">
P2: The `=1` Urdu branch uses the plural `سطروں` for one line, producing grammatically incorrect text. Use the singular `سطر` in that branch and keep the plural form for counts above one.</violation>
</file>
<file name="app/lib/l10n/app_kn.arb">
<violation number="1" location="app/lib/l10n/app_kn.arb:11955">
P3: The `count == 1` Kannada branch uses the plural form `1 ಸಾಲುಗಳ`, producing grammatically incorrect confirmation text. Use the singular form `1 ಸಾಲಿನ` (or an equivalent singular construction) for this branch.</violation>
</file>
<file name="app/lib/l10n/app_sk.arb">
<violation number="1" location="app/lib/l10n/app_sk.arb:4529">
P3: This Slovak message renders incorrect noun agreement: even one renamed line appears as “Premenovaných 1 riadkov,” and counts 2–4 also use the wrong form. Add Slovak `one`, `few`, and `many` plural branches instead of using one `=1`/`other` form.</violation>
</file>
<file name="app/lib/l10n/app_ta.arb">
<violation number="1" location="app/lib/l10n/app_ta.arb:11955">
P3: The `=1` branch uses the plural `வரிகளின்` for one line, rendering “1 lines” in Tamil. Use the singular `வரியின்` form.</violation>
</file>
<file name="app/lib/l10n/app_localizations_lv.dart">
<violation number="1" location="app/lib/l10n/app_localizations_lv.dart:15027">
P3: The Latvian singular branch uses plural agreement (`Pārdēvētas 1 rindas`). Change the `=1` text in `app_lv.arb` to `Pārdēvēta 1 rinda` and regenerate this file.</violation>
</file>
<file name="backend/docs/listen_pusher_pipeline/changes/2026-11-03-recording-speaker-rename.md">
<violation number="1" location="backend/docs/listen_pusher_pipeline/changes/2026-11-03-recording-speaker-rename.md:54">
P2: The closing sentence says this needs no new query or index, but this PR introduces and relies on the bounded scope-index query and creation-provenance field described above. Clarify that no additional query or index is needed, rather than implying those dependencies do not exist.</violation>
</file>
<file name="app/test/widgets/recording_rename_render_test.dart">
<violation number="1" location="app/test/widgets/recording_rename_render_test.dart:110">
P2: The complete-coverage case is not asserting its scope label, so this test would pass if the recording-wide option regressed to the unconfirmed wording or disappeared. Add the reciprocal expectations for `Apply to the whole recording` in the `partialCoverage == false` branch.</violation>
</file>
<file name="backend/config/recording_speakers.py">
<violation number="1" location="backend/config/recording_speakers.py:44">
P1: `with_creation_scope_index` trusts any preexisting scope list, even when no transcript was indexed in this write, and marks the document as creation-indexed. A replay carrying stale metadata can therefore claim complete recording coverage and omit members; require transcript presence before setting this marker.</violation>
</file>
<file name="app/lib/l10n/app_hu.arb">
<violation number="1" location="app/lib/l10n/app_hu.arb:4624">
P3: These messages switch from informal to formal Hungarian within the same rename flow. Use the informal forms consistently so the UI does not address the user two different ways.</violation>
</file>
<file name="app/lib/l10n/app_localizations_pl.dart">
<violation number="1" location="app/lib/l10n/app_localizations_pl.dart:15036">
P3: The singular coverage message is grammatically incorrect: it says `1 wierszy` (and uses the plural `nazwy`). Use a singular form such as `Zmieniono nazwę 1 wiersza tylko w dostępnych rozmowach.`</violation>
</file>
<file name="app/lib/l10n/app_da.arb">
<violation number="1" location="app/lib/l10n/app_da.arb:4571">
P3: The count-one branch displays the grammatically incorrect Danish “Omdøbte 1 linjer”. Use “Omdøbte 1 linje” for the singular case.</violation>
</file>
<file name="app/lib/l10n/app_uk.arb">
<violation number="1" location="app/lib/l10n/app_uk.arb:4529">
P2: The Ukrainian confirmation is grammatically incorrect for both one line and counts 2–4. Use Ukrainian plural categories so users see `1 рядок`, `2 рядки`, and `5 рядків`.</violation>
</file>
<file name="app/lib/l10n/app_fa.arb">
<violation number="1" location="app/lib/l10n/app_fa.arb:11955">
P3: The singular branch hard-codes Latin `1`, while this Persian ARB uses Persian `۱` for literal counts elsewhere. Replace it with `۱` so the confirmation is localized consistently.</violation>
</file>
<file name="app/lib/l10n/app_el.arb">
<violation number="1" location="app/lib/l10n/app_el.arb:4529">
P2: The `=1` branch uses plural verb and noun for one line, producing incorrect Greek UI text. Use `Μετονομάστηκε 1 γραμμή` in this branch.</violation>
</file>
<file name="app/lib/l10n/app_fi.arb">
<violation number="1" location="app/lib/l10n/app_fi.arb:4529">
P3: The singular branch displays grammatically incorrect Finnish (`1 riviä`). Use the singular form `1 rivi` for the `=1` case.</violation>
</file>
<file name="app/lib/l10n/app_no.arb">
<violation number="1" location="app/lib/l10n/app_no.arb:4529">
P3: The singular branch says `1 linjer`, which is grammatically incorrect Norwegian and will appear whenever exactly one line is renamed. Change it to `1 linje`.</violation>
</file>
<file name="app/lib/l10n/app_hi.arb">
<violation number="1" location="app/lib/l10n/app_hi.arb:4529">
P3: The `=1` branch displays “1 पंक्तियों,” which is grammatically incorrect for a singular line count. Use “1 पंक्ति” in that branch.</violation>
</file>
<file name="app/lib/l10n/app_localizations_bg.dart">
<violation number="1" location="app/lib/l10n/app_localizations_bg.dart:15044">
P2: The singular coverage message uses the plural `реда` and plural verb agreement for one line. Update the corresponding Bulgarian ARB `one` branch to `Преименуван е 1 ред само в наличните разговори.` and regenerate this localization file.</violation>
</file>
<file name="app/lib/l10n/app_localizations_ro.dart">
<violation number="1" location="app/lib/l10n/app_localizations_ro.dart:15056">
P3: The Romanian `one` branch uses the plural noun `rânduri` for a single line. Use the singular form and singular verb so the one-line result is grammatically correct.</violation>
</file>
<file name="app/lib/l10n/app_localizations_fr.dart">
<violation number="1" location="app/lib/l10n/app_localizations_fr.dart:15116">
P3: The singular branch says `1 lignes`, which is grammatically incorrect French. Use `1 ligne renommée` for the one-line case.</violation>
</file>
<file name="app/lib/l10n/app_localizations_de.dart">
<violation number="1" location="app/lib/l10n/app_localizations_de.dart:15106">
P3: The singular coverage message is grammatically incorrect: `speakerRecordingCoverage(..., 1)` displays “1 Zeilen”. Use “1 Zeile” in the `one` branch.</violation>
</file>
<file name="app/lib/l10n/app_sv.arb">
<violation number="1" location="app/lib/l10n/app_sv.arb:4529">
P3: The singular coverage message says `1 rader`, which is grammatically incorrect Swedish. Change the `=1` branch to `1 rad`.</violation>
</file>
<file name="app/lib/l10n/app_es.arb">
<violation number="1" location="app/lib/l10n/app_es.arb:4529">
P3: The singular coverage message has incorrect Spanish agreement: it renders “Se renombraron 1 líneas”. Use “Se renombró 1 línea” in the `=1` branch.</violation>
</file>
<file name="app/lib/l10n/app_pt.arb">
<violation number="1" location="app/lib/l10n/app_pt.arb:4564">
P2: The `=1` branch uses the plural `linhas`, so Portuguese users see “1 linhas renomeadas” when exactly one line is renamed. Use the singular “1 linha renomeada” in this branch.</violation>
</file>
<file name="app/lib/l10n/app_he.arb">
<violation number="1" location="app/lib/l10n/app_he.arb:11955">
P3: The `=1` branch renders the Hebrew singular as “1 rows,” producing incorrect grammar whenever one line is renamed. Use a singular phrase such as “שונה שם של שורה אחת”.</violation>
</file>
<file name="app/lib/l10n/app_id.arb">
<violation number="1" location="app/lib/l10n/app_id.arb:4564">
P3: The `saved` confirmation uses `Mengganti nama`, which reads as “Rename ...” rather than confirming that the lines were renamed. Use a completed form such as `... berhasil diganti namanya ...` in both plural branches.</violation>
</file>
<file name="app/lib/l10n/app_mk.arb">
<violation number="1" location="app/lib/l10n/app_mk.arb:11955">
P3: The `=1` branch has incorrect Macedonian number agreement: `1` is followed by plural verb and noun forms. Use singular forms so the one-line confirmation is grammatically correct.</violation>
</file>
<file name="app/lib/l10n/app_ca.arb">
<violation number="1" location="app/lib/l10n/app_ca.arb:4529">
P3: The singular branch renders grammatically incorrect Catalan (`1 línies`) whenever one line is renamed. Use `1 línia` in the `=1` branch.</violation>
</file>
<file name="app/lib/l10n/app_ar.arb">
<violation number="1" location="app/lib/l10n/app_ar.arb:4529">
P2: Arabic users see incorrect number agreement here: `=1` renders “1 أسطر”, and counts 2 or 11+ use the same incorrect form. Add Arabic plural branches with the appropriate singular, dual, few, and many forms.</violation>
</file>
<file name="app/lib/l10n/app_localizations_ru.dart">
<violation number="1" location="app/lib/l10n/app_localizations_ru.dart:15041">
P2: This branch hardcodes `1`, but Russian `Intl.pluralLogic` selects it for counts such as 21 and 31, so the coverage message can report one renamed line when many were renamed. Use a count-preserving, Russian plural-safe translation in `app_ru.arb` and regenerate this file.</violation>
</file>
<file name="app/lib/l10n/app_sr.arb">
<violation number="1" location="app/lib/l10n/app_sr.arb:11955">
P2: This Serbian message uses `редова` for every count, producing incorrect text such as “1 редова” and “2 редова”. Add Serbian `one`/`few`/`other` plural branches so counts like 1, 2, and 5 use the correct noun form.</violation>
</file>
<file name="app/lib/l10n/app_localizations_hr.dart">
<violation number="1" location="app/lib/l10n/app_localizations_hr.dart:15029">
P2: This Croatian pluralization reports incorrect text for real counts: `one` can be selected for values such as 21 but hardcodes `1`, while counts 2–4 fall through to `other` and use the wrong noun form. Add Croatian-specific plural forms in the ARB source, use `$count` in the singular-category text, and regenerate this file.</violation>
</file>
<file name="app/lib/l10n/app_mr.arb">
<violation number="1" location="app/lib/l10n/app_mr.arb:11955">
P2: The `=1` branch uses the plural possessive `1 ओळींची नावे`, so the one-line confirmation is grammatically incorrect. Use the singular `1 ओळीचे नाव` in this branch.</violation>
</file>
<file name="app/lib/l10n/app_sl.arb">
<violation number="1" location="app/lib/l10n/app_sl.arb:11955">
P2: This message has incorrect Slovenian number agreement for 1 and for counts 2–4, so users see grammatically invalid rename totals. Add Slovenian `one`, `two`, `few`, and `other` plural forms.</violation>
</file>
<file name="app/lib/pages/conversation_detail/conversation_speaker_restore.dart">
<violation number="1" location="app/lib/pages/conversation_detail/conversation_speaker_restore.dart:26">
P1: A stale recording rename is treated as a generic failed restore, so the UI keeps the pre-undo label even when the server has changed it. Convert 409 stale responses to the stale path and refresh or otherwise reconcile the affected lines before returning.</violation>
</file>
<file name="app/lib/l10n/app_lt.arb">
<violation number="1" location="app/lib/l10n/app_lt.arb:4529">
P2: The singular branch says `1 eilučių`, which is grammatically incorrect Lithuanian and produces visibly incorrect text for one renamed line. Change it to `1 eilutė`.</violation>
</file>
<file name="app/lib/pages/episodes/live_transcript_view.dart">
<violation number="1" location="app/lib/pages/episodes/live_transcript_view.dart:461">
P2: A stale live-transcript tap can crash `_nameSpeaker` when its segment was deleted before the callback ran. Look up the anchor defensively and return when it is no longer present.</violation>
<violation number="2" location="app/lib/pages/episodes/live_transcript_view.dart:502">
P3: `return true` tells `NameSpeakerBottomSheet` that persistence succeeded while the assignment is still running. The sheet then records the person as recently used before a failed or rolled-back assignment settles, polluting picker ordering; move recency recording to successful settlement or add a separate immediate-dismiss path.</violation>
</file>
<file name="app/lib/l10n/app_ms.arb">
<violation number="1" location="app/lib/l10n/app_ms.arb:4529">
P2: The coverage message does not communicate a completed rename in Malay: `Menamakan semula` reads as “renaming,” and `Baris lain suara ini` is grammatically incomplete. Use a completed form and add the missing relationship word so the status and scope explanation match the English message.</violation>
</file>
<file name="app/lib/pages/conversation_detail/widgets/transcript_tab.dart">
<violation number="1" location="app/lib/pages/conversation_detail/widgets/transcript_tab.dart:391">
P2: The new success toast falsely reports incomplete recording coverage when the legacy single-conversation path is active. Gate this coverage message on `provider.recordingAssignmentEnabled`.</violation>
<violation number="2" location="app/lib/pages/conversation_detail/widgets/transcript_tab.dart:545">
P1: Starting recording-wide selection can crash the transcript because the new loading spinner has no matching leading-item ID. Include the spinner ID whenever `loadingRecordingTranscript` is true.</violation>
</file>
<file name="backend/utils/recording_speakers.py">
<violation number="1" location="backend/utils/recording_speakers.py:157">
P2: A non-episode selection cannot expand discovery when its sibling has a scope absent from the open conversation. Include each `selection.voice.speaker_id_scope` in `selected_scopes` so the selected sibling is loaded before validation.</violation>
<violation number="2" location="backend/utils/recording_speakers.py:297">
P3: Move this import to the module top level; backend import rules prohibit function-local imports, and the same module is already a top-level dependency here.</violation>
</file>
<file name="app/lib/coordinators/provider_capture_external_actions.dart">
<violation number="1" location="app/lib/coordinators/provider_capture_external_actions.dart:120">
P2: A thrown assignment leaves `lastSpeakerCoverageComplete` unchanged, so a later stale or limited edit can report the previous successful edit's coverage. Reset the counters before awaiting the request.</violation>
</file>
<file name="app/lib/backend/schema/transcript_segment.dart">
<violation number="1" location="app/lib/backend/schema/transcript_segment.dart:40">
P2: `sameRecordingVoice` can merge different scoped sources when labels are missing because it falls back to numeric `speakerId` alone. Require matching `speakerIdScope` in the fallback identity.</violation>
</file>
Requires human review: Auto-approval blocked because this review re-detected 8 unresolved issues already reported by Cubic.
View guided diff | Turn on auto-fix | Re-trigger cubic
| decode: decodeRecordingAssignment, | ||
| ); | ||
| if (result is ApiFailure<Map<String, dynamic>>) { | ||
| if (result.problem.statusCode == 404 || result.problem.detail == 'recording_speaker_rename_disabled') { |
There was a problem hiding this comment.
P1: This treats an episode resource or admission 404 as an old-server signal and can bypass episode admission: with episodeId set, a disabled or unauthorized episode request falls through to the conversation assignment endpoint and still renames its conversation. Restrict fallback to an endpoint-unavailable signal, or preserve and check a machine-readable 404 reason before using the legacy route.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. At app/lib/backend/http/api/recording_speakers.dart, line 56:
<comment>This treats an episode resource or admission 404 as an old-server signal and can bypass episode admission: with `episodeId` set, a disabled or unauthorized episode request falls through to the conversation assignment endpoint and still renames its conversation. Restrict fallback to an endpoint-unavailable signal, or preserve and check a machine-readable 404 reason before using the legacy route.</comment>
<file context>
@@ -0,0 +1,124 @@
+ decode: decodeRecordingAssignment,
+ );
+ if (result is ApiFailure<Map<String, dynamic>>) {
+ if (result.problem.statusCode == 404 || result.problem.detail == 'recording_speaker_rename_disabled') {
+ return _assignLegacy(conversationId, selections, personId, send);
+ }
</file context>
| """ | ||
| data = dict(data) | ||
| data.pop(SCOPE_INDEX_AT_CREATION_FIELD, None) | ||
| if isinstance(data.get(SCOPE_INDEX_FIELD), list): |
There was a problem hiding this comment.
P1: with_creation_scope_index trusts any preexisting scope list, even when no transcript was indexed in this write, and marks the document as creation-indexed. A replay carrying stale metadata can therefore claim complete recording coverage and omit members; require transcript presence before setting this marker.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. At backend/config/recording_speakers.py, line 44:
<comment>`with_creation_scope_index` trusts any preexisting scope list, even when no transcript was indexed in this write, and marks the document as creation-indexed. A replay carrying stale metadata can therefore claim complete recording coverage and omit members; require transcript presence before setting this marker.</comment>
<file context>
@@ -0,0 +1,46 @@
+ """
+ data = dict(data)
+ data.pop(SCOPE_INDEX_AT_CREATION_FIELD, None)
+ if isinstance(data.get(SCOPE_INDEX_FIELD), list):
+ data[SCOPE_INDEX_AT_CREATION_FIELD] = True
+ return data
</file context>
| saved = _assignRecording == null | ||
| ? await _assignSpeaker(target.id, ids, isUser: isUser, personId: personId) | ||
| : await persistRecordingLabel(_assignRecording!, target.id, ids, isUser ? 'user' : (personId ?? ''), null) | ||
| is ApiSuccess<int>; |
There was a problem hiding this comment.
P1: A stale recording rename is treated as a generic failed restore, so the UI keeps the pre-undo label even when the server has changed it. Convert 409 stale responses to the stale path and refresh or otherwise reconcile the affected lines before returning.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. At app/lib/pages/conversation_detail/conversation_speaker_restore.dart, line 26:
<comment>A stale recording rename is treated as a generic failed restore, so the UI keeps the pre-undo label even when the server has changed it. Convert 409 stale responses to the stale path and refresh or otherwise reconcile the affected lines before returning.</comment>
<file context>
@@ -0,0 +1,72 @@
+ saved = _assignRecording == null
+ ? await _assignSpeaker(target.id, ids, isUser: isUser, personId: personId)
+ : await persistRecordingLabel(_assignRecording!, target.id, ids, isUser ? 'user' : (personId ?? ''), null)
+ is ApiSuccess<int>;
+ } on PartialSpeakerAssignmentException catch (error) {
+ landed.addAll(segments.where((line) => error.succeeded.contains(recordingOwner(line))));
</file context>
| ReviewQuestionCard(item: reviewQuestion, margin: const EdgeInsets.only(bottom: OmiSpacing.md)), | ||
| ], | ||
| leadingItemIds: [ | ||
| if (provider.isReprocessingOpenConversation) 'speaker-summary-updating', |
There was a problem hiding this comment.
P1: Starting recording-wide selection can crash the transcript because the new loading spinner has no matching leading-item ID. Include the spinner ID whenever loadingRecordingTranscript is true.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. At app/lib/pages/conversation_detail/widgets/transcript_tab.dart, line 545:
<comment>Starting recording-wide selection can crash the transcript because the new loading spinner has no matching leading-item ID. Include the spinner ID whenever `loadingRecordingTranscript` is true.</comment>
<file context>
@@ -476,42 +510,53 @@ class _TranscriptWidgetsState extends State<TranscriptWidgets> with AutomaticKee
ReviewQuestionCard(item: reviewQuestion, margin: const EdgeInsets.only(bottom: OmiSpacing.md)),
],
leadingItemIds: [
+ if (provider.isReprocessingOpenConversation) 'speaker-summary-updating',
if (segments.isNotEmpty) 'transcript-heading',
if (segments.isNotEmpty && reviewQuestion != null) 'review-question-${reviewQuestion.itemId}',
</file context>
| if (provider.isReprocessingOpenConversation) 'speaker-summary-updating', | |
| if (provider.isReprocessingOpenConversation || provider.loadingRecordingTranscript) 'speaker-summary-updating', |
| "speakerWholeRecording": "Použít na celou nahrávku", | ||
| "speakerSelectionChanged": "Mluvčí se změnil. Vyberte řádky znovu.", | ||
| "speakerRenameIssue": "{reason, select, limit{Nahrávka je příliš velká. Vyberte méně řádků v jedné konverzaci.} partial{Některé řádky byly uloženy. Vyberte zbývající a zkuste to znovu.} other{Některé řádky byly uloženy. Vyberte zbývající a zkuste to znovu.}}", | ||
| "speakerRecordingCoverage": "{state, select, scope{Další řádky tohoto hlasu (rozsah nahrávky není potvrzen)} other{{count, plural, =1{Přejmenováno 1 řádků pouze v dostupných konverzacích.} other{Přejmenováno {count} řádků pouze v dostupných konverzacích.}}}}" |
There was a problem hiding this comment.
P2: This Czech plural message renders incorrect grammar for every count from 1 through 4 (for example, Přejmenováno 1 řádků). Add Czech one/few/other branches with the appropriate řádek, řádky, and řádků forms.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. At app/lib/l10n/app_cs.arb, line 4529:
<comment>This Czech plural message renders incorrect grammar for every count from 1 through 4 (for example, `Přejmenováno 1 řádků`). Add Czech `one`/`few`/`other` branches with the appropriate `řádek`, `řádky`, and `řádků` forms.</comment>
<file context>
@@ -4522,5 +4522,9 @@
+ "speakerWholeRecording": "Použít na celou nahrávku",
+ "speakerSelectionChanged": "Mluvčí se změnil. Vyberte řádky znovu.",
+ "speakerRenameIssue": "{reason, select, limit{Nahrávka je příliš velká. Vyberte méně řádků v jedné konverzaci.} partial{Některé řádky byly uloženy. Vyberte zbývající a zkuste to znovu.} other{Některé řádky byly uloženy. Vyberte zbývající a zkuste to znovu.}}",
+ "speakerRecordingCoverage": "{state, select, scope{Další řádky tohoto hlasu (rozsah nahrávky není potvrzen)} other{{count, plural, =1{Přejmenováno 1 řádků pouze v dostupných konverzacích.} other{Přejmenováno {count} řádků pouze v dostupných konverzacích.}}}}"
}
</file context>
| "speakerRecordingCoverage": "{state, select, scope{Další řádky tohoto hlasu (rozsah nahrávky není potvrzen)} other{{count, plural, =1{Přejmenováno 1 řádků pouze v dostupných konverzacích.} other{Přejmenováno {count} řádků pouze v dostupných konverzacích.}}}}" | |
| "speakerRecordingCoverage": "{state, select, scope{Další řádky tohoto hlasu (rozsah nahrávky není potvrzen)} other{{count, plural, one{Přejmenován 1 řádek pouze v dostupných konverzacích.} few{Přejmenovány {count} řádky pouze v dostupných konverzacích.} other{Přejmenováno {count} řádků pouze v dostupných konverzacích.}}}}" |
| "speakerWholeRecording": "Terapkan ke seluruh rekaman", | ||
| "speakerSelectionChanged": "Pembicara berubah. Pilih baris lagi.", | ||
| "speakerRenameIssue": "{reason, select, limit{Rekaman terlalu besar. Pilih lebih sedikit baris dalam satu percakapan.} partial{Beberapa baris tersimpan. Pilih baris yang tersisa dan coba lagi.} other{Beberapa baris tersimpan. Pilih baris yang tersisa dan coba lagi.}}", | ||
| "speakerRecordingCoverage": "{state, select, scope{Baris lain dari suara ini (cakupan rekaman belum dipastikan)} other{{count, plural, =1{Mengganti nama 1 baris hanya di percakapan yang tersedia.} other{Mengganti nama {count} baris hanya di percakapan yang tersedia.}}}}" |
There was a problem hiding this comment.
P3: The saved confirmation uses Mengganti nama, which reads as “Rename ...” rather than confirming that the lines were renamed. Use a completed form such as ... berhasil diganti namanya ... in both plural branches.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. At app/lib/l10n/app_id.arb, line 4564:
<comment>The `saved` confirmation uses `Mengganti nama`, which reads as “Rename ...” rather than confirming that the lines were renamed. Use a completed form such as `... berhasil diganti namanya ...` in both plural branches.</comment>
<file context>
@@ -4557,5 +4557,9 @@
+ "speakerWholeRecording": "Terapkan ke seluruh rekaman",
+ "speakerSelectionChanged": "Pembicara berubah. Pilih baris lagi.",
+ "speakerRenameIssue": "{reason, select, limit{Rekaman terlalu besar. Pilih lebih sedikit baris dalam satu percakapan.} partial{Beberapa baris tersimpan. Pilih baris yang tersisa dan coba lagi.} other{Beberapa baris tersimpan. Pilih baris yang tersisa dan coba lagi.}}",
+ "speakerRecordingCoverage": "{state, select, scope{Baris lain dari suara ini (cakupan rekaman belum dipastikan)} other{{count, plural, =1{Mengganti nama 1 baris hanya di percakapan yang tersedia.} other{Mengganti nama {count} baris hanya di percakapan yang tersedia.}}}}"
}
</file context>
| "speakerRecordingCoverage": "{state, select, scope{Baris lain dari suara ini (cakupan rekaman belum dipastikan)} other{{count, plural, =1{Mengganti nama 1 baris hanya di percakapan yang tersedia.} other{Mengganti nama {count} baris hanya di percakapan yang tersedia.}}}}" | |
| "speakerRecordingCoverage": "{state, select, scope{Baris lain dari suara ini (cakupan rekaman belum dipastikan)} other{{count, plural, =1{1 baris berhasil diganti namanya hanya di percakapan yang tersedia.} other{{count} baris berhasil diganti namanya hanya di percakapan yang tersedia.}}}}" |
| "speakerWholeRecording": "Примени на целата снимка", | ||
| "speakerSelectionChanged": "Говорникот се промени. Изберете ги редовите повторно.", | ||
| "speakerRenameIssue": "{reason, select, limit{Снимката е преголема. Изберете помалку редови во еден разговор.} partial{Некои редови се зачувани. Изберете ги преостанатите и обидете се повторно.} other{Некои редови се зачувани. Изберете ги преостанатите и обидете се повторно.}}", | ||
| "speakerRecordingCoverage": "{state, select, scope{Други редови со овој глас (опфатот на снимката не е потврден)} other{{count, plural, =1{Преименувани се 1 редови само во достапните разговори.} other{Преименувани се {count} редови само во достапните разговори.}}}}" |
There was a problem hiding this comment.
P3: The =1 branch has incorrect Macedonian number agreement: 1 is followed by plural verb and noun forms. Use singular forms so the one-line confirmation is grammatically correct.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. At app/lib/l10n/app_mk.arb, line 11955:
<comment>The `=1` branch has incorrect Macedonian number agreement: `1` is followed by plural verb and noun forms. Use singular forms so the one-line confirmation is grammatically correct.</comment>
<file context>
@@ -11948,5 +11948,9 @@
+ "speakerWholeRecording": "Примени на целата снимка",
+ "speakerSelectionChanged": "Говорникот се промени. Изберете ги редовите повторно.",
+ "speakerRenameIssue": "{reason, select, limit{Снимката е преголема. Изберете помалку редови во еден разговор.} partial{Некои редови се зачувани. Изберете ги преостанатите и обидете се повторно.} other{Некои редови се зачувани. Изберете ги преостанатите и обидете се повторно.}}",
+ "speakerRecordingCoverage": "{state, select, scope{Други редови со овој глас (опфатот на снимката не е потврден)} other{{count, plural, =1{Преименувани се 1 редови само во достапните разговори.} other{Преименувани се {count} редови само во достапните разговори.}}}}"
}
</file context>
| "speakerRecordingCoverage": "{state, select, scope{Други редови со овој глас (опфатот на снимката не е потврден)} other{{count, plural, =1{Преименувани се 1 редови само во достапните разговори.} other{Преименувани се {count} редови само во достапните разговори.}}}}" | |
| "speakerRecordingCoverage": "{state, select, scope{Други редови со овој глас (опфатот на снимката не е потврден)} other{{count, plural, =1{Преименуван е 1 ред само во достапните разговори.} other{Преименувани се {count} редови само во достапните разговори.}}}}" |
| "speakerWholeRecording": "Aplica a tota la gravació", | ||
| "speakerSelectionChanged": "El parlant ha canviat. Torna a seleccionar les línies.", | ||
| "speakerRenameIssue": "{reason, select, limit{La gravació és massa gran. Selecciona menys línies en una conversa.} partial{S’han desat algunes línies. Selecciona les restants i torna-ho a provar.} other{S’han desat algunes línies. Selecciona les restants i torna-ho a provar.}}", | ||
| "speakerRecordingCoverage": "{state, select, scope{Altres línies d’aquesta veu (cobertura de la gravació no confirmada)} other{{count, plural, =1{S’han canviat 1 línies només en les converses disponibles.} other{S’han canviat {count} línies només en les converses disponibles.}}}}" |
There was a problem hiding this comment.
P3: The singular branch renders grammatically incorrect Catalan (1 línies) whenever one line is renamed. Use 1 línia in the =1 branch.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. At app/lib/l10n/app_ca.arb, line 4529:
<comment>The singular branch renders grammatically incorrect Catalan (`1 línies`) whenever one line is renamed. Use `1 línia` in the `=1` branch.</comment>
<file context>
@@ -4522,5 +4522,9 @@
+ "speakerWholeRecording": "Aplica a tota la gravació",
+ "speakerSelectionChanged": "El parlant ha canviat. Torna a seleccionar les línies.",
+ "speakerRenameIssue": "{reason, select, limit{La gravació és massa gran. Selecciona menys línies en una conversa.} partial{S’han desat algunes línies. Selecciona les restants i torna-ho a provar.} other{S’han desat algunes línies. Selecciona les restants i torna-ho a provar.}}",
+ "speakerRecordingCoverage": "{state, select, scope{Altres línies d’aquesta veu (cobertura de la gravació no confirmada)} other{{count, plural, =1{S’han canviat 1 línies només en les converses disponibles.} other{S’han canviat {count} línies només en les converses disponibles.}}}}"
}
</file context>
| "speakerRecordingCoverage": "{state, select, scope{Altres línies d’aquesta veu (cobertura de la gravació no confirmada)} other{{count, plural, =1{S’han canviat 1 línies només en les converses disponibles.} other{S’han canviat {count} línies només en les converses disponibles.}}}}" | |
| "speakerRecordingCoverage": "{state, select, scope{Altres línies d’aquesta veu (cobertura de la gravació no confirmada)} other{{count, plural, =1{S’han canviat 1 línia només en les converses disponibles.} other{S’han canviat {count} línies només en les converses disponibles.}}}}" |
| if (!saved && !reported) OmiFeedback.error(context, context.l10n.failedToSaveCheckConnection); | ||
| setState(() {}); | ||
| })); | ||
| return true; |
There was a problem hiding this comment.
P3: return true tells NameSpeakerBottomSheet that persistence succeeded while the assignment is still running. The sheet then records the person as recently used before a failed or rolled-back assignment settles, polluting picker ordering; move recency recording to successful settlement or add a separate immediate-dismiss path.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. At app/lib/pages/episodes/live_transcript_view.dart, line 502:
<comment>`return true` tells `NameSpeakerBottomSheet` that persistence succeeded while the assignment is still running. The sheet then records the person as recently used before a failed or rolled-back assignment settles, polluting picker ordering; move recency recording to successful settlement or add a separate immediate-dismiss path.</comment>
<file context>
@@ -457,35 +458,48 @@ class _LiveTranscriptViewState extends State<LiveTranscriptView> {
+ if (!saved && !reported) OmiFeedback.error(context, context.l10n.failedToSaveCheckConnection);
+ setState(() {});
+ }));
+ return true;
},
);
</file context>
|
|
||
| def recording_carry(uid, previous, active_scope): | ||
| """Use the latest scoped decisions even when the last member has no such voice.""" | ||
| from database import recording_speakers as decisions_db |
There was a problem hiding this comment.
P3: Move this import to the module top level; backend import rules prohibit function-local imports, and the same module is already a top-level dependency here.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. At backend/utils/recording_speakers.py, line 297:
<comment>Move this import to the module top level; backend import rules prohibit function-local imports, and the same module is already a top-level dependency here.</comment>
<file context>
@@ -0,0 +1,326 @@
+
+def recording_carry(uid, previous, active_scope):
+ """Use the latest scoped decisions even when the last member has no such voice."""
+ from database import recording_speakers as decisions_db
+
+ if not enabled():
</file context>
|
/approve-ui 26545c1 |
|
David signed off this UI in Telegram on 2026-11-04. The CI check still needs kodjima33 to comment |
# Conflicts: # backend/database/conversations.py
# Conflicts: # app/lib/l10n/app_ar.arb # app/lib/l10n/app_be.arb # app/lib/l10n/app_bg.arb # app/lib/l10n/app_bn.arb # app/lib/l10n/app_bs.arb # app/lib/l10n/app_ca.arb # app/lib/l10n/app_cs.arb # app/lib/l10n/app_da.arb # app/lib/l10n/app_de.arb # app/lib/l10n/app_el.arb # app/lib/l10n/app_en.arb # app/lib/l10n/app_es.arb # app/lib/l10n/app_et.arb # app/lib/l10n/app_fa.arb # app/lib/l10n/app_fi.arb # app/lib/l10n/app_fr.arb # app/lib/l10n/app_he.arb # app/lib/l10n/app_hi.arb # app/lib/l10n/app_hr.arb # app/lib/l10n/app_hu.arb # app/lib/l10n/app_id.arb # app/lib/l10n/app_it.arb # app/lib/l10n/app_ja.arb # app/lib/l10n/app_kn.arb # app/lib/l10n/app_ko.arb # app/lib/l10n/app_localizations.dart # app/lib/l10n/app_localizations_ar.dart # app/lib/l10n/app_localizations_be.dart # app/lib/l10n/app_localizations_bg.dart # app/lib/l10n/app_localizations_bn.dart # app/lib/l10n/app_localizations_bs.dart # app/lib/l10n/app_localizations_ca.dart # app/lib/l10n/app_localizations_cs.dart # app/lib/l10n/app_localizations_da.dart # app/lib/l10n/app_localizations_de.dart # app/lib/l10n/app_localizations_el.dart # app/lib/l10n/app_localizations_en.dart # app/lib/l10n/app_localizations_es.dart # app/lib/l10n/app_localizations_et.dart # app/lib/l10n/app_localizations_fa.dart # app/lib/l10n/app_localizations_fi.dart # app/lib/l10n/app_localizations_fr.dart # app/lib/l10n/app_localizations_he.dart # app/lib/l10n/app_localizations_hi.dart # app/lib/l10n/app_localizations_hr.dart # app/lib/l10n/app_localizations_hu.dart # app/lib/l10n/app_localizations_id.dart # app/lib/l10n/app_localizations_it.dart # app/lib/l10n/app_localizations_ja.dart # app/lib/l10n/app_localizations_kn.dart # app/lib/l10n/app_localizations_ko.dart # app/lib/l10n/app_localizations_lt.dart # app/lib/l10n/app_localizations_lv.dart # app/lib/l10n/app_localizations_mk.dart # app/lib/l10n/app_localizations_mr.dart # app/lib/l10n/app_localizations_ms.dart # app/lib/l10n/app_localizations_nl.dart # app/lib/l10n/app_localizations_no.dart # app/lib/l10n/app_localizations_pl.dart # app/lib/l10n/app_localizations_pt.dart # app/lib/l10n/app_localizations_ro.dart # app/lib/l10n/app_localizations_ru.dart # app/lib/l10n/app_localizations_sk.dart # app/lib/l10n/app_localizations_sl.dart # app/lib/l10n/app_localizations_sr.dart # app/lib/l10n/app_localizations_sv.dart # app/lib/l10n/app_localizations_ta.dart # app/lib/l10n/app_localizations_te.dart # app/lib/l10n/app_localizations_th.dart # app/lib/l10n/app_localizations_tl.dart # app/lib/l10n/app_localizations_tr.dart # app/lib/l10n/app_localizations_uk.dart # app/lib/l10n/app_localizations_ur.dart # app/lib/l10n/app_localizations_vi.dart # app/lib/l10n/app_localizations_zh.dart # app/lib/l10n/app_lt.arb # app/lib/l10n/app_lv.arb # app/lib/l10n/app_mk.arb # app/lib/l10n/app_mr.arb # app/lib/l10n/app_ms.arb # app/lib/l10n/app_nl.arb # app/lib/l10n/app_no.arb # app/lib/l10n/app_pl.arb # app/lib/l10n/app_pt.arb # app/lib/l10n/app_ro.arb # app/lib/l10n/app_ru.arb # app/lib/l10n/app_sk.arb # app/lib/l10n/app_sl.arb # app/lib/l10n/app_sr.arb # app/lib/l10n/app_sv.arb # app/lib/l10n/app_ta.arb # app/lib/l10n/app_te.arb # app/lib/l10n/app_th.arb # app/lib/l10n/app_tl.arb # app/lib/l10n/app_tr.arb # app/lib/l10n/app_uk.arb # app/lib/l10n/app_ur.arb # app/lib/l10n/app_vi.arb # app/lib/l10n/app_zh.arb
Main's head (a5ccd17) fails two of its own checks, which every branch based on it inherits: - The pl397 emulator-proof fixtures clock enrichment_consumer.time with a SimpleNamespace carrying only time(); the consumer's lease hold now also reads time.monotonic(). Add monotonic to the injected clock. - test_soniox_refusal_at_submission_is_typed_and_not_submitted still expects submitted=False for a 503 at POST /transcriptions, but #24392 deliberately preserves paid uncertainty on 5xx (submitted=True, see the request() comment in utils/stt/soniox_batch.py). Keep 402/429 in the unbilled test and pin the 5xx contract in its own test.
) <!-- claude-projects-attribution: {"github_login":"Git-on-my-level"} --> _Requested by **David**_ Batch captures previously stayed outside episodes until transcription finished. Audio close now attaches retained captures by committed audio bounds before queueing finalization, through the shared fenced recorded-time membership transaction. Arrival and processing clocks never select the episode or change its live pointer. The membership transaction stamps a fixed pending-transcription entry time and two-hour deadline. Replays preserve the deadline. Home shows “Transcribing…” while awaiting the durable batch projection; a dead letter, failed upload/status or elapsed deadline shows “Couldn't transcribe” with the committed audio finish time. A later successful projection restores ordinary member metadata. Audio and retry work remain retained. `EPISODE_BATCH_CLOSE_ATTACH_ENABLED` defaults on. Setting it to false/off/0/no restores attach-after-transcription. Episode/cohort, privacy, custom-STT, retention, lock, deletion and donor guards remain authoritative. Attachment adds no model calls and does not require a client-seen marker. Failure emits shared degraded-fallback telemetry and leaves finalization as the repair path. The overdue metric is an unlabeled read-observation counter; the info alert remains in the pending catalog, with no monitoring provisioning in this PR. Refreshed with merge commits through main `563e6c240944` (#24577, #24579, #24582/#24604 and subsequent main changes, including #24509). The resolution keeps batch 1's shared transaction/fence, attempt-local candidate reuse, current canonical partition proof, visibility validation, deduplicated memberships and recovery memo. Pending close writes its deadline inside that transaction without claiming/resetting completed transcript recovery. Close replay validates current committed archive bounds, normalized through the same datetime conversion used at admission, and is a true no-op with attach optimizations on or off. Changed bounds still update the episode without renewing the deadline. Composer settling, foreground promotion, Home read cuts and recording-speaker carry remain intact. The five original conflicts were in `episode_recorded_components.py`, `episode_timeline.py`, `service.py`, the Firestore query-driver registry and the generated feature-flag catalog. The sync callback and affected tests now use the public `attach_recorded` helper. The final speaker-tip merge was clean; the core episode resolution is unchanged. Validation at `817784dced26`: **858 passed across 21 focused backend files** through `backend/test.sh` with an explicit file list and four workers; **4 real Firestore emulator replay cases passed**, covering integer/fractional archive epochs and attach optimizations on/off. All tests/build gates run through `omi-heavy` at low priority, with no production credentials. Emulator limitation: the full 28-case episode suite alternated SDK transaction-lock timeouts between two old concurrency cases. Its last full run was **27 passed / 1 failed**, not all green. Both concurrency cases then passed together in a targeted run on exact main `cf601889c67b` and exact candidate `b8633977345c`. All 28 cases have passing candidate executions across full plus targeted runs; this does not establish a cause for the intermittent timeout. Core episode/emulator source is byte-identical after the final main merge, and the four new replay cases were rerun on the final head. Firestore clients now close at fixture teardown; test concurrency and transaction retry budgets are unchanged. Final hermetic e2e at `817784dced26`: **205 passed, 3 skipped, 2 xfailed in 101.14s**, within the unchanged **120s** limit. Native-library threads were capped at one; `--disable-warnings` suppressed only the console warning summary, without filtering warnings or changing warning assertions. Two earlier final-head attempts reached the wall limit (one at 100% test progress while rendering warnings). The lead authorized a documented 300s diagnostic if necessary, but it was **not used**. Committed and remote-CI budgets remain 120s. `make preflight` passed **43/43** before the final clean main merge; the normal push hook runs the final required gates again. Failure-Class: FC-finalize-hook-allowlist-omits-ingestion-path Product invariants: INV-MEM-4 and INV-TASK-2. Canonical episode ownership and task/enrichment authority remain unchanged. No PR merge, deploy, production account access or GCP calls. GCP tier: none. No rebase, force-push, workflow additions or firmware edits. The lead owns merge and the backend/listen release train. UI-Evidence: none -- backend response projection; related mobile fixture evidence belongs to #24541.
#24922) ## Summary iOS 1.0.587 (1544) crashes the Transcript tab with a RangeError while a recording transcript loads (8 users in ~15h after release, build 1544 only). Cause: #24509 shows the loading spinner row in `leadingItems` when `loadingRecordingTranscript` is true, but only adds its id to `leadingItemIds` when `isReprocessingOpenConversation` is true. While a recording transcript loads, the lists differ in length and `TranscriptWidget` reads past the end of `leadingItemIds` (`transcript.dart:865`). Fix: each leading row (spinner, heading, review question) carries its id in one list, and both lists are derived from it, so they cannot drift. ## Verification - New `test/widgets/transcript_leading_items_test.dart` starts a recording transcript load 3 times and checks the tab renders the spinner row and the transcript with no exception, then finishes the load. It fails on main with `leadingItems.length == leadingItemIds.length` and passes with the fix. - Neighbouring widget tests pass (64): recording speaker selection, transcript heading, speaker labeling, conversation detail status, playback sync. - Not reproduced on a device: the loading window needs a multi-recording conversation on prod data. UI-Evidence: none Failure-Class: none ## Product invariants affected none 🤖 Generated with [Claude Code](https://claude.com/claude-code) <!-- This is an auto-generated description by cubic. --> <a href="https://cubic.dev/pr/BasedHardware/omi/pull/24922?utm_source=github" target="_blank" rel="noopener noreferrer" data-no-image-dialog="true"><picture><source media="(prefers-color-scheme: dark)" srcset="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"><source media="(prefers-color-scheme: light)" srcset="https://www.cubic.dev/buttons/review-in-cubic-light.svg"><img alt="View guided diff" src="https://www.cubic.dev/buttons/review-in-cubic-light.svg"></picture></a> <a href="https://www.cubic.dev/action/auto-fix/pr/BasedHardware/omi/24922?returnTo=https%3A%2F%2Fgithub.com%2FBasedHardware%2Fomi%2Fpull%2F24922&source=description" target="_blank" rel="noopener noreferrer" data-no-image-dialog="true"><picture><source media="(prefers-color-scheme: dark)" srcset="https://www.cubic.dev/buttons/turn-on-auto-fix-dark.svg"><source media="(prefers-color-scheme: light)" srcset="https://www.cubic.dev/buttons/turn-on-auto-fix-light.svg"><img alt="Turn on auto-fix" src="https://www.cubic.dev/buttons/turn-on-auto-fix-light.svg"></picture></a> <!-- End of auto-generated description by cubic. -->
BasedHardware#24509 added the loading spinner row to leadingItems when loadingRecordingTranscript is true, but leadingItemIds only got its id when isReprocessingOpenConversation was true. While a recording transcript loads, the two lists differ in length and TranscriptWidget reads past the end of leadingItemIds (RangeError in release, 8 users in ~15h on iOS 1.0.587 (1544)). Each leading row now carries its id in one list, so they cannot drift again.
Requested by David
An Android user naming 25–50+ voices a day had to rename individual lines, lost corrections at conversation boundaries, and waited for processing after every edit. This change names the same scoped voice across a recording, supports one request for selected lines across members, and keeps the transcript editable while one debounced summary regeneration runs.
(speaker_id_scope, canonical stream_speaker)using the carried-receipt rule in either direction. Each member keeps its own replayable receipt; later rollovers inherit the latest decision. Unscoped voices retain single-conversation behavior. Live selection, optimistic updates and server validation use the exact voice pair, so reconnects that reuse a number stay separate.external_data.recording_origin_idequality and the first generation’s legacyexternal_data.recording_session_idstamp. Successful assignments stamp the scope index; an otherwise idempotent retry may repair only that metadata. Origin stamps may miss intermediate generations, so legacy discovery expands the known subset but never certifies completeness. GET reports complete discovery only when every candidate came from the scope index or episode membership, every member carries server-authoredrecording_speaker_scopes_at_creation: true, and none was excluded. Actual absent-document creation stamps that marker alongside the scope index, including an empty live transcript. Normal writes and rename repairs cannot add it: later indexing of c0/c2 cannot prove an invisible c1 was covered. PATCH reportscoverage: completeonly if every discovered member was also successfully assigned (including already-applied idempotent decisions). Any legacy-only member, excluded member, missing voice target or transaction failure makes coverage partial. The app then says it renamed lines in the available conversations only; it makes no whole-recording claim.Kill switch:
RECORDING_SPEAKER_RENAME_ENABLEDis on unless explicitly off. Off restores previous single-conversation server behavior and previous-member rollover carry. New apps use the old explicit-ID conversation assignment endpoints on disabled/404, preserving the legacy stale-speaker fence. Old apps retain their existing endpoints.Release split: the rollout lead deploys the backend API and receipt/carry consumers, including listen/pusher, before the Android/iOS app build. No production access, data migration, backfill or deployment was performed. Recordings with partial coverage rename the known accessible subset and explicitly report the limitation. Diarization fragmentation and linking voices across scopes remain outside this PR; no diarization or embeddings changed.
Contracts: these Firebase-authenticated first-party routes follow the existing per-conversation speaker routes’ public Developer API exclusion policy. The app-client OpenAPI includes typed transcript voice proof, coverage, 413 limit errors and 409 disabled/stale errors. Affected generated clients are regenerated; Dart, TypeScript and Swift freshness checks pass.
Invariants: INV-CAP-1, INV-UI-1, INV-UI-3, INV-PERF-1. Capture/retention policy is unchanged; naming uses existing session ownership and localized shared UI. Encrypted decisions remain inside recursive user-subtree erasure.
Failure-Class: none
Validation from round 3 (retained evidence): test commands use
/Users/dazheng/workspace/omi/bin/omi-heavywith one worker and fixture data only.359aec9f867eand pass after the fix. Coverage is also tested for indexed success and idempotent retries, episode exclusion markers, missing voice targets, cap refusals and lock/discard/delete races inside assignment transactions.test_monitoring_gmp_shadow.py::test_committed_inventory_is_currentsnapshot mismatch is identical on the original merge base and remains outside this speaker change.Round 4: conservative creation-time provenance rule; no reliable stored generation chain exists. The exact c0/c2-indexed, c1-invisible regression covers both discovery and repeated assignments. No data migration or production access. 1,109 backend tests passed across 15 files through
/Users/dazheng/workspace/omi/bin/omi-heavywith one worker: recording speakers (71), conversation revision contract (26), recorded span (33), receipt lifecycle (16), live transcript replay (55), seven Firestore guards (819), manual assignments (38), carry (27), and learning jobs (24). Eight new coverage cases fail againstc7df04f3bc42and pass with the fix. Full normal pre-push passed: all 70 shared checks, backend typechecking with zero errors, selected backend unit files, OpenAPI validation, Flutter build_runner/l10n freshness, Swift build and formatting. Two check workers and one backend worker; no skip hatches. Pushed head:59da267b9c906b8f19a2698d3c922055c1ee1995.CI render follow-up: The two Spanish deferred-transcript detail cases in the unchanged
on_device_copy_render_test.dartfail at59da267b9c90with the exact 100-pixel right overflow. This PR enlarged the selection action inside a horizontal transcript-header row; it did not change the existing Spanish strings on that screen. The heading and action now wrap onto separate rows when needed, with full multiline labels in the shared chip/button primitives. Other callers retain their existing single-line defaults. No translation was shortened and the existing render test was not changed. This follow-up needs an app build; it changes no backend behavior.Current verification: All 279 Flutter tests passed through
/Users/dazheng/workspace/omi/bin/omi-heavywith one worker: on-device copy renders (140), transcript heading (15), recording selection (4), shared buttons (6), and related transcript/scroll-geometry/held-audio UI tests (114). Added Spanish coverage at 320/393pt and 100%/200% text size checks that neither heading nor selection labels truncate. The analyzer reports no issues for all five touched Dart files. Fixture-only before/after captures use production widgets and real fonts at 320pt/200%; the prior layout fails and the fixed layout passes. The mobile changelog is updated. Normal pre-push passed for3dcf2e2c86bbbb06837f64a4e6dfe563a38a037b: all 70 shared checks, backend typechecking with zero errors, selected backend unit files, OpenAPI validation, Flutter build_runner/l10n freshness, Swift build and formatting. Two check workers and one backend worker; no skip hatches.UI evidence: production-widget renders via
flutter-render-evidence, using synthetic names/transcripts and real test fonts; no production session or device data.Partial-coverage feedback before and after (fixture data only):


CI runner follow-up: Restored
backend/scripts/run-unit-ci.shandbackend/tests/unit/test_backend_unit_ci_runner.pyexactly from fetchedorigin/main(5cd9a3c8e85e). The script already matched current main; only the test required a change. All 15 runner tests passed through/Users/dazheng/workspace/omi/bin/omi-heavy, withBACKEND_PYTEST_WORKERS=2inherited to reproduce the CI environment (4.73s, serial pytest). The speaker PR adds no runner behavior changes relative to current main. Known main enrichment timing failures and the ongoing Dart CI rerun are left untouched.Folded into this branch by merge (one pre-push + one CI run): #20725, #20766, #21364, #21380, #24370, #24386, #24397, #24434, #24485.
Line-Count-Exception: desktop/macos/Desktop/Sources/Stores/TasksStore.swift | 3679 -> 3696 | task-capture: explicit reminders carry owner/due metadata through the desktop task store (#24485)
Line-Count-Exception: app/lib/backend/preferences.dart | 1641 -> 1654 | perf warm-up: apps-list revision bookkeeping beside the boot quarantine (#21364)
Line-Count-Exception: app/lib/pages/conversation_detail/conversation_detail_provider.dart | 1444 -> 1514 | perf: detail-projection change fingerprinting plus summary search offsets (#21364, #20725)
Line-Count-Exception: app/lib/providers/action_items_provider.dart | 1477 -> 1517 | notes task session adapters and idempotent task creation for the detail action-item strip (#20725)
Line-Count-Exception: app/lib/providers/conversation_provider.dart | 2271 -> 2279 | speaker-label rejection kinds and capture exclusion plumbing (#21380)
Line-Count-Exception: app/lib/providers/device_provider.dart | 1663 -> 1680 | pendant firmware updates blocked on an unknown battery (#24434)
Line-Count-Exception: app/lib/services/capture/capture_controller.dart | 4613 -> 4833 | not-a-person exclusion acknowledgement fencing, mobile batch and on-device overflow wiring (#21380, #21364, #24434)
Line-Count-Exception: app/lib/services/wals/local_wal_sync.dart | 2692 -> 2700 | capture-ledger intake hooks for the recording paths (#21364)
Line-Count-Exception: backend/database/conversations.py | 4607 -> 4642 | transactional provisional notes-identity staging on conversation writes (#20766)
Line-Count-Exception: backend/routers/conversations.py | 2486 -> 2515 | action-item status mirroring via durable target_task_id links (#20725)
Line-Count-Exception: backend/routers/listen/receiver.py | 2966 -> 2995 | not-a-person exclusion receipts in the live receiver (#21380)
Line-Count-Exception: backend/utils/conversations/process_conversation.py | 3377 -> 3383 | notes-identity context rides the persist payload (#20766)