Skip to content

Add printing BLE device address to serial monitor - #3

Merged
kodjima33 merged 1 commit into
BasedHardware:mainfrom
KyleVasulka:main
Mar 28, 2024
Merged

kodjima33 merged 1 commit into
BasedHardware:mainfrom
KyleVasulka:main

Conversation

@KyleVasulka

Copy link
Copy Markdown
Contributor

Adds the device ble address to the serial monitor so that you instantly know what it is.

@kodjima33
kodjima33 merged commit e2c8f55 into BasedHardware:main Mar 28, 2024
@kodjima33

Copy link
Copy Markdown
Collaborator

@KyleVasulka adding you with full access to this repository! appreciate any help!

beastoin added a commit that referenced this pull request Sep 14, 2024
beastoin added a commit that referenced this pull request Sep 14, 2024
beastoin added a commit that referenced this pull request Aug 30, 2025
mdmohsin7 added a commit that referenced this pull request Oct 18, 2025
closes #3241

before:


https://github.com/user-attachments/assets/d00d815c-8419-4c1b-96fb-ec20365fba44

logs:

```
flutter: ----------------FIREBASE CRASHLYTICS----------------
flutter: Bad state: No element
flutter: 
#0      ListBase.firstWhere (dart:collection/list.dart:132:5)
#1      SharedPreferencesUtil.disableApp (package:omi/backend/preferences.dart:255:22)
#2      _AppDetailPageState._toggleApp (package:omi/pages/apps/app_detail/app_detail.dart:1129:13)
#3      _AppDetailPageState.build.<anonymous closure> (package:omi/pages/apps/app_detail/app_detail.dart:576:48)
#4      _AnimatedLoadingButtonState._handleOnPressed (package:omi/widgets/animated_loading_button.dart:38:27)
#5      _InkResponseState.handleTap (package:flutter/src/material/ink_well.dart:1204:21)
#6      GestureRecognizer.invokeCallback (package:flutter/src/gestures/recognizer.dart:345:24)
#7      TapGestureRecognizer.handleTapUp (package:flutter/src/gestures/tap.dart:758:11)
#8      BaseTapGestureRecognizer._checkUp (package:flutter/src/gestures/tap.dart:383:5)
#9      BaseTapGestureRecognizer.acceptGesture (package:flutter/src/gestures/tap.dart:353:7)
#10     GestureArenaManager.sweep (package:flutter/src/gestures/arena.dart:173:27)
#11
```

after:


https://github.com/user-attachments/assets/26ea5c91-e73a-44f4-ba76-4b804876c5df

<img width="1032" height="257" alt="Screenshot 2025-10-18 at 11 15
52 PM"
src="https://github.com/user-attachments/assets/44e4e46b-b654-4599-84ee-8ee0920b1cd3"
/>
mayur533 added a commit to mayur533/omi that referenced this pull request Dec 3, 2025
- Add 40 Python integration tests
- Add 25 Dart integration tests
- Add 20 TypeScript integration tests
- Improves test file ratio to above 6%

Fixes BasedHardware#3
beastoin added a commit that referenced this pull request Mar 16, 2026
Covers feature vector gap #3 (add/edit memory, priority 8).
Adds fill step in add-memory dialog and edit sheet control assertions.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
@greptile-apps greptile-apps Bot mentioned this pull request Mar 27, 2026
8 tasks done
Glucksberg pushed a commit to Glucksberg/omi-local that referenced this pull request Apr 28, 2026
Add printing BLE device address to serial monitor
Glucksberg pushed a commit to Glucksberg/omi-local that referenced this pull request Apr 28, 2026
Glucksberg pushed a commit to Glucksberg/omi-local that referenced this pull request Apr 28, 2026
closes BasedHardware#3241

before:


https://github.com/user-attachments/assets/d00d815c-8419-4c1b-96fb-ec20365fba44

logs:

```
flutter: ----------------FIREBASE CRASHLYTICS----------------
flutter: Bad state: No element
flutter: 
#0      ListBase.firstWhere (dart:collection/list.dart:132:5)
#1      SharedPreferencesUtil.disableApp (package:omi/backend/preferences.dart:255:22)
BasedHardware#2      _AppDetailPageState._toggleApp (package:omi/pages/apps/app_detail/app_detail.dart:1129:13)
BasedHardware#3      _AppDetailPageState.build.<anonymous closure> (package:omi/pages/apps/app_detail/app_detail.dart:576:48)
BasedHardware#4      _AnimatedLoadingButtonState._handleOnPressed (package:omi/widgets/animated_loading_button.dart:38:27)
BasedHardware#5      _InkResponseState.handleTap (package:flutter/src/material/ink_well.dart:1204:21)
BasedHardware#6      GestureRecognizer.invokeCallback (package:flutter/src/gestures/recognizer.dart:345:24)
BasedHardware#7      TapGestureRecognizer.handleTapUp (package:flutter/src/gestures/tap.dart:758:11)
BasedHardware#8      BaseTapGestureRecognizer._checkUp (package:flutter/src/gestures/tap.dart:383:5)
BasedHardware#9      BaseTapGestureRecognizer.acceptGesture (package:flutter/src/gestures/tap.dart:353:7)
BasedHardware#10     GestureArenaManager.sweep (package:flutter/src/gestures/arena.dart:173:27)
BasedHardware#11
```

after:


https://github.com/user-attachments/assets/26ea5c91-e73a-44f4-ba76-4b804876c5df

<img width="1032" height="257" alt="Screenshot 2025-10-18 at 11 15
52 PM"
src="https://github.com/user-attachments/assets/44e4e46b-b654-4599-84ee-8ee0920b1cd3"
/>
Glucksberg pushed a commit to Glucksberg/omi-local that referenced this pull request Apr 28, 2026
Glucksberg pushed a commit to Glucksberg/omi-local that referenced this pull request Apr 28, 2026
Covers feature vector gap BasedHardware#3 (add/edit memory, priority 8).
Adds fill step in add-memory dialog and edit sheet control assertions.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
kodjima33 added a commit that referenced this pull request Aug 20, 2026
…boarding (#11891)

## What happened

David's first run on a new Mac (0.12.187 stable, macOS 15.1, Mac16,6):
Omi quit by itself several times during onboarding — including on
permission pages that have nothing to do with screen recording — and did
not come back on its own.

His PostHog session shows it plainly:

```
21:11:43  App Launched          <- first run
21:12:28  Onboarding How Did You Hear
21:12:49  App Launched          <- quit + relaunch #1
21:13:13  App Launched          <- #2
21:13:34  App Launched          <- #3
21:14:35  Onboarding Completed
```

## Cause

A new Mac has not granted screen recording yet, so every capture attempt
fails. `ProactiveAssistantsPlugin`'s failure tracker reads that as a
broken install and calls `attemptAutoReset()`, whose final step is
`ScreenCaptureService.softRecoveryAndRestart()` — it terminates and
relaunches the process. The user sees the app vanish mid-permission-page
with no explanation.

It repeats because the "already tried recovery this session" flag
(`hasSoftRecoveryThisSession`) is static state in the process that just
got killed, so the fresh process is free to do it again.

## Fix


`ScreenRecordingPermissionPolicy.mayRestartToRecoverCapture(grantedAtLaunch:onboardingComplete:)`
— the process-killing step now requires both:

- **the grant is live in this process** — ScreenCaptureKit binds to the
window-server connection opened at launch, so if the grant was not there
at launch, no number of restarts can repair it; and
- **onboarding is finished** — during onboarding, relaunch belongs to
the "Reopen Omi" prompt, which is scoped to screen recording and
advances the persisted step first.

Soft recovery still runs; only the restart is withheld, with the reason
logged.

Failure-Class: none

## Verification

- Built as `omi-onbfix` with no screen-recording grant and
`hasCompletedOnboarding=false` — David's exact state. The app held a
single pid across the observation window, with no `Restart scheduled` in
its log.
- `swift test --filter ScreenRecordingPermissionPolicyTests` — **22
passed**, including
`testCaptureRecoveryNeverRestartsDuringOnboardingOrBeforeTheGrantIsLive`
and a loop test that models the per-process flag resetting on each
relaunch (the reason it happened three times rather than once).

Line-Count-Exception:
desktop/macos/Desktop/Sources/ProactiveAssistants/ProactiveAssistantsPlugin.swift
| 1786 -> 1798 | the recovery-restart guard plus the log line naming why
a restart was withheld; the decision itself lives in
ScreenRecordingPermissionPolicy


<!-- This is an auto-generated description by cubic. -->
<a
href="https://cubic.dev/pr/BasedHardware/omi/pull/11891?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="Review in cubic"
src="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"></picture></a>
<!-- End of auto-generated description by cubic. -->
Git-on-my-level added a commit that referenced this pull request Sep 18, 2026
…ate failures (mint-stage suspect) (#14520)

## Failure-Class
None — this is a revert of #14509, not a fix commit (no fix: prefix; see
AGENTS.md failure-class protocol).

## Summary
Reverts #14509: `gcp_backend_auto_dev` returns to the JSON bridge secret
after three consecutive bake failures at the candidate gate
(`what_matters_now` FAIL, sub-second gate duration, others NOT_RUN).
Committed per the PR's own rollback contract. Traffic safety held all
three attempts: candidates stayed 0%, serving never moved
(`backend-8a5c388-35307543774-1`=100%).

## Evidence (three attempts)
1. Attempt 1 (35309620748#1, 05:35Z): gate FAIL 981ms after probe
invocation.
2. Attempt 2 (#2, 05:56Z): identical FAIL.
3. Attempt 3 (#3, 06:54Z): identical FAIL — **after**
`roles/run.invoker` (verified live) AND a self
`serviceAccountTokenCreator` grant on the deployer.
Manual control, same window: coordinator replayed the exact probe
(deployer identity token via impersonation, audience = service URL,
ADMIN_KEY+uid auth, X-Serverless-Authorization) against the candidate
URL → **HTTP 200** at 05:38Z and again post-attempt-3. Discriminator:
manual mint uses human impersonation; the CI mint (`gcloud auth
print-identity-token` with no impersonation flag) runs in a
WIF-federated session — the remaining untested variable. The acceptance
runner intentionally swallows the failure stage/HTTP status (981ms gate
≈ mint-stage failure, not a service round-trip), so the next slice needs
the mint step instrumented or a one-off diagnostic run before
re-landing.

## What this revert does NOT do
- Does not touch #14516 (JSON-free desktop-backend probe — baked green
on main).
- Does not change any IAM grant; the deployer's role set stays as
audited.
- Auto-dev auth returns to `secrets.GCP_CREDENTIALS` (bridge key
`a3dd0875`), the exact pre-#14509 state.

## Next slice (before any re-land)
1. Add a bounded diagnostic to the mint step (or a dispatch-only probe
workflow) that prints the mint subprocess return code class + HTTP
status of the candidate call — no token material.
2. Reproduce the federated mint locally (`gcloud auth login
--update-adc` federated → `print-identity-token` without impersonation)
or via a one-off CI run with the diagnostic.
3. Re-land #14509 content once the mint path is proven green in CI.

## Product invariants affected

- INV-DATA-1

Preserved: this revert only changes the deploy authentication identity
of the development lane back to the pre-#14509 JSON bridge (no routing
authority, endpoint, or project binding changes; `based-hardware-dev`
target unchanged; fail-closed traffic gate unchanged).


<!-- This is an auto-generated description by cubic. -->
<a
href="https://cubic.dev/pr/BasedHardware/omi/pull/14520?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="Review in cubic"
src="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"></picture></a>
<!-- End of auto-generated description by cubic. -->
Git-on-my-level added a commit that referenced this pull request Sep 18, 2026
… diagnostics) (#14541)

## Failure-Class
Failure-Class: FC-fixture-mock-signature-drift

## Summary
Reverts #14509: `gcp_backend_auto_dev` returns to the JSON bridge secret
after three consecutive bake failures at the candidate gate
(`what_matters_now` FAIL, sub-second gate duration, others NOT_RUN).
Committed per the PR's own rollback contract. Traffic safety held all
three attempts: candidates stayed 0%, serving never moved
(`backend-8a5c388-35307543774-1`=100%).

## Evidence (three attempts)
1. Attempt 1 (35309620748#1, 05:35Z): gate FAIL 981ms after probe
invocation.
2. Attempt 2 (#2, 05:56Z): identical FAIL.
3. Attempt 3 (#3, 06:54Z): identical FAIL — **after**
`roles/run.invoker` (verified live) AND a self
`serviceAccountTokenCreator` grant on the deployer.
Manual control, same window: coordinator replayed the exact probe
(deployer identity token via impersonation, audience = service URL,
ADMIN_KEY+uid auth, X-Serverless-Authorization) against the candidate
URL → **HTTP 200** at 05:38Z and again post-attempt-3. Discriminator:
manual mint uses human impersonation; the CI mint (`gcloud auth
print-identity-token` with no impersonation flag) runs in a
WIF-federated session — the remaining untested variable. The acceptance
runner intentionally swallows the failure stage/HTTP status (981ms gate
≈ mint-stage failure, not a service round-trip), so the next slice needs
the mint step instrumented or a one-off diagnostic run before
re-landing.

## What this revert does NOT do
- Does not touch #14516 (JSON-free desktop-backend probe — baked green
on main).
- Does not change any IAM grant; the deployer's role set stays as
audited.
- Auto-dev auth returns to `secrets.GCP_CREDENTIALS` (bridge key
`a3dd0875`), the exact pre-#14509 state.

## Next slice (before any re-land)
1. Add a bounded diagnostic to the mint step (or a dispatch-only probe
workflow) that prints the mint subprocess return code class + HTTP
status of the candidate call — no token material.
2. Reproduce the federated mint locally (`gcloud auth login
--update-adc` federated → `print-identity-token` without impersonation)
or via a one-off CI run with the diagnostic.
3. Re-land #14509 content once the mint path is proven green in CI.

## Product invariants affected

- INV-DATA-1

Preserved: this revert only changes the deploy authentication identity
of the development lane back to the pre-#14509 JSON bridge (no routing
authority, endpoint, or project binding changes; `based-hardware-dev`
target unchanged; fail-closed traffic gate unchanged).

## v2 note (diagnostics landed first)

This re-land follows #14525: the candidate acceptance runner now records
failure-class diagnostics (mint rc/class, probe HTTP status) in the
acceptance artifact. If this re-land's bake fails again, the artifact
names the exact stage and class — no more blind attempts. Rollback
contract unchanged: gate FAIL keeps traffic on the prior revision.


<!-- This is an auto-generated description by cubic. -->
<a
href="https://cubic.dev/pr/BasedHardware/omi/pull/14541?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="Review in cubic"
src="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"></picture></a>
<!-- End of auto-generated description by cubic. -->
Git-on-my-level added a commit that referenced this pull request Sep 24, 2026
- Notification taps and app links open inside the Home already on screen
  (HomeNavigation.openRoute: pop to Home, select the tab, push the page)
  instead of pushReplacement-ing a second Home over whatever was showing.
  Home registers itself while mounted, so "Done" at the end of the firmware
  and connect flows also returns to it (nav #3).
- Deep links move to home_deep_links.dart: parent before child (the
  Settings sheet opens before Data & Privacy is pushed over it), every push
  through routeToPage, and a removed app or deleted conversation now says so
  instead of only logging (nav #18).
- D1: the home chat bar, its mic, chat deep links and the Ask Omi / Voice
  quick actions push chat as a normal page (no fullscreenDialog). The chat
  bar is one labelled button.
- D6: Android back on the Tasks, Conversations or Apps tab returns to Home
  before it leaves the app (root PopScope).
- Settings: the language / speech profile / transcription model comparison
  runs once the reader is back on Home, not the moment the sheet opens
  (onboarding-home #25).
- Startup prompts go through PromptQueue (onboarding-home #23): upgrade
  alert (a required update first), changelog + announcements, the CV1
  tutorial (waits for the pendant), firmware announcements, the Plus-meter
  plans sheet (only when the meter crosses its threshold, once per session,
  showOmiSheet) and Bluetooth guidance. HomePromptGate holds the queue while
  phone recording, on a call or during a firmware update and pumps it when
  that clears; passive pendant capture does not hold it.
- Handoffs applied: dead toggleDailySummaries call removed (lane 1a); sync,
  task-export and quick-action pushes use routeToPage (lanes 2, 4). Header
  controls use neutral tokens (INV-UI-1) and OmiHaptics.
- New strings (7 keys, every locale): appNotFoundOrRemoved plus the startup
  failure and discard-recording strings used by the next commits.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Git-on-my-level added a commit that referenced this pull request Sep 24, 2026
…d audit fixes (#18436)

* feat(app/ui): add OmiColors tokens and stop using colorScheme.primary as a page background

Add lib/ui/omi_tokens.dart: OmiColors (surfaces, text, neutral accent, status), OmiType ramp,
OmiRadius, OmiSpacing, OmiMotion (honours Reduce Motion) and OmiHaptics.

53 sites read Theme.of(context).colorScheme.primary as a page or app bar background because the
theme's primary was black. They now name OmiColors.surface0 (same black), so the theme can get a
real accent. In the four files over the line-count threshold the explicit colour is dropped
instead; the theme default is the same black.

AppStyles and ResponsiveHelper get doc comments pointing at the tokens.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(app/ui): one theme and shared controls for navigation, buttons, sheets and page states

Theme (lib/ui/omi_theme.dart, used by main.dart and the visual_audit harness so they cannot
drift): a real dark ColorScheme with the white accent as primary, black scaffold, app bar theme
(black, flat, centred 17pt semibold title), white progress indicators (the unstyled spinners were
black on black), floating surface2 snack bars, surface1 dialogs and sheets, neutral switches.
Material 2 stays on. MaterialApp.builder now syncs Intl.defaultLocale to the resolved locale.

Components under lib/ui/components (barrel lib/ui/ui.dart): OmiBackButton / OmiCloseButton
(platform glyph, localized label, 44pt target, circled variants), OmiIconButton (required label,
tooltip), OmiButton (primary/secondary/destructive/tertiary, regular/compact, async loading that
always clears), OmiSpinner, OmiLoadingState / OmiEmptyState / OmiErrorState, showOmiSheet and
OmiSheetScaffold, OmiSwitch, OmiSettingsGroup / OmiSettingsRow / OmiSectionHeader,
OmiSearchField, and omiPageRoute for code that needs a Route object.

HeaderCircleButton is now a wrapper over OmiIconButton.filled and AnimatedLoadingButton over
OmiButton (fixes the spinner that never cleared after a throw, and the 40pt target).
find_device's two unstyled ElevatedButtons keep their black fill explicitly now that primary is
white.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* refactor(app/settings): move data privacy, Asana and ClickUp settings onto the shared controls

Proving set for the new primitives. Data & Privacy uses OmiBackButton, a section header and an
OmiSettingsGroup of app rows, OmiEmptyState, and drops its accent tint for neutral tokens.
Asana and ClickUp show an app bar with a back button and OmiLoadingState during their first
load (the page used to be an invisible spinner with no way out), OmiSpinner for section loads,
and tokens for their colours. The shared IntegrationSettingsPage header uses OmiBackButton and a
labelled refresh OmiIconButton, and its disconnect control is an OmiButton.destructive.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(app/ui): one adaptive confirmation system (showOmiConfirm/showOmiAlert)

getDialog, ConfirmationDialog, OmiConfirmDialog and AppDialog become thin
adapters over OmiAlertDialog: Cancel always shown and always closes, real
CupertinoDialogActions on iOS (destructive red, safe choice bold), localized
defaults, a destructive flag, and AppDialog.show no longer drops singleButton
and onCancel. Non-page raw AlertDialogs in providers/widgets migrated.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(app/ui): OmiFeedback toasts and OmiClipboard

One floating neutral toast at a time with contract timings (confirm 1.5 s,
info 4 s, error 8 s with close, undo 5 s with no close, resolving whether the
reader undid). Snackbars with actions no longer persist forever. The home
shell registers its tab-bar clearance. AppSnackbar's ~180 call sites route
through it. OmiClipboard refuses empty text and skips its toast on Android 13+
where the system already confirms.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(app/ui): OmiDateFormat, OmiDuration and shared speaker names

Dates follow the app locale and the 24-hour setting; durations have one
offset/compact/long vocabulary (the playback bar no longer drops hours).
SpeakerNames is the single source for speaker labels in app and export:
You / person / Omi / dense Speaker N, localized in copied transcripts.
Legacy helpers delegate.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(app/ui): PromptQueue for startup and background prompts

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(checks): INV-UI-3 mobile UX contract ratchet

Per-rule, per-file no-increase ratchet over hand-rolled back glyphs,
PageRouteBuilder, raw sheets/dialogs/snackbars/clipboard, date patterns,
colour/font-size/radius literals, raw spinners, '...' and hardcoded Text
copy under app/lib, with an allow-comment escape hatch and a test proving
each rule fires.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* docs(app): mobile UX contract

The numbered rules and the one primitive for each: leaving a surface, sheets,
controls, destructive actions (D5), dialogs, feedback timing, copying, dates
and durations, speakers, tokens, words (D3), settings (D4), page states,
prompts, permissions and accessibility, plus the D1/D2/D6 navigation calls.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(app/ui): dense speaker numbering on live and saved transcripts

Both transcript renderers pass the conversation's segments to speakerLabel so
Speaker N is numbered per conversation. Drops the dead duplicate
formatChatTimestamp in widgets/transcript.dart, makes Material OmiAlertDialog
scrollable, and points primitive docs at the contract's sections.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(app/l10n): contract words sweep

Task(s) replaces Action Item(s)/To-Do in every locale (D3); Omi capitalised;
'…' instead of '...'; search placeholders drop the ellipsis; Try Again, Not
Now, OK, Title Case buttons. New keys: filterBySpeaker, notNow, discard,
keepEditing, discardChangesTitle, discardChangesMessage. Translates the nine
live-capture keys that only existed in English and removes five orphaned
locale keys, so scripts/l10n.py check passes. The upgrade alert offers Not Now
(postpone, not ignore-forever) and Update, honours barrierDismissible, and
loses the emoji.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* chore(app/ui): export feedback, format and prompt primitives from the ui barrel; token colours

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* test(app/ui): follow the Title Case clear-search label

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(app/l10n): strings for the conversation detail pass

Link Event sheet, calendar event actions, search result navigation, playback
labels, the share confirmation, the Tasks tab counts and empty state, and the
speaker identify label, with translations for every locale.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(app): conversation detail on the shared primitives

- D2: no body-wide swipe to another conversation and no PageRouteBuilder;
  Transcript/Summary(/Tasks) swipe as tabs, the Tasks tab exists only when
  there are tasks.
- Header: OmiBackButton.circled plus same-size OmiIconButton circles (star,
  share, more) and a compact Ask Omi button that pushes Chat (D1).
- Share asks before making a private conversation public and reverts it
  when the share sheet reports a dismissal.
- Copy Conversation ID and Test Prompt only in developer mode; copies go
  through OmiClipboard, toasts through OmiFeedback.
- Link Event and calendar event sheets on showOmiSheet with OmiDateFormat,
  l10n and full attendee names; visibility, summary template, name speaker
  and edit segment sheets on the shared shell.
- Audio download sheet pops with its own context, offers Cancel and blocks
  back with PopScope.
- Title: single line, Done, Untitled placeholder, saves on blur with an
  announced outcome; detail date/duration use OmiDateFormat/OmiDuration.compact
  (same rule as the list).
- Tasks tab: tapping a task opens the shared task editor; labelled count
  pills; Tasks wording (D3); OmiEmptyState.
- Edit segment sheet: speaker from SpeakerNames (You for the owner), Save and
  Cancel, discard guard.
- Extract calendar sheets, search bar, transcript tab and tasks tab; delete
  dead ActionItemsListWidget, GetSheetTitle, GetDevToolsOptions.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(app): keep INV-UI-3 allow comments on the flagged line

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(app): transcript bubbles and playback bar on the shared primitives

Transcript: one SpeakerNames resolver per build (dense numbering, live
people), no transcription-provider name, the start time as an OmiDuration
offset, a labelled 44pt play button, labelled speaker targets, neutral user
bubble and search highlight (INV-UI-1), localized 'translated by Omi', and
getLastTranscript numbers speakers across the whole conversation.

Playback bar: neutral surfaces instead of purple, a labelled 32pt play/pause
in a 44pt target, a labelled stop button, OmiSpinner, OmiFeedback errors, the
summary pill ellipsizes by layout instead of a hand-made '...', and the
summary template sheet opens through showSummarizedAppsSheet.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(app/onboarding): shared permission row, real progress, back and resume

- OmiPermissionRow (lib/ui/components): reason, Allow -> system prompt,
  Allowed, Open Settings when the system will not ask again. One
  OnboardingPermissionsPanel drives both the first-run step and the
  returning-user interstitial; Continue never fires prompts and 'Always'
  location is no longer asked during first run.
- Onboarding wrapper: placeholder pages removed, progress dots count the six
  real steps with a spoken 'Step N of M', PopScope makes system back step
  back, the last reached step is saved per account and resumed.
- Consent step offers 'Use a Different Account' (sign out, back to start).
- Acquisition survey is skippable; language step saves with a busy button
  and a Try Again error; picker selects on tap.
- Steps share OnboardingCard (content scrolls, footer stays; min-height, no
  fixed text heights) and OmiButton; completion screen localized, purple gone.
- Voice introduction: mic refusal shows the permission row; 'Skip Question'
  vs 'Skip'; device tutorial exits by a trailing close X.
- Permission reasons rewritten, platform-neutral Location Services copy.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(app/conversations): one delete path with Undo, row menu, bulk actions, recaps page

- Conversation delete (list swipe, row menu, detail page) goes through one path:
  confirm unless opted out ("Don't ask again" is allowed because Undo backs it),
  then an Undo toast backed by the provider's pending-delete window (now 6 s,
  longer than the 5 s toast; the toast commits early when it closes) (D5).
- Long-press on a conversation row opens one context menu: Open, Star/Unstar,
  Move to Folder, Share, Select, Delete. The selection bar gains Move and Delete
  (always confirmed) beside Merge.
- Daily Recaps is its own pushed page with a back button; Home's View All pushes
  it and the Conversations tab never switches into a recap mode. Pull-to-refresh
  reloads recaps and a failed load offers Try Again. Recap counts are labelled.
- One date filter for list and search, shown as a removable chip; the search
  field is seeded from the provider and uses OmiSearchField.
- Dates and lengths via OmiDateFormat / OmiDuration (Today gets a header, the New
  badge sits beside the time, WAL/recording offsets keep their hours).
- Discarded rows read "Discarded · 12s" with a plain-text snippet; blank titles
  read "Untitled Conversation".
- Shared capture state table (capture_state_labels.dart) for the in-progress
  card; the processing card shows its real start time.
- Local recording swipe always confirms. Sheets, dialogs, toasts, spinners and
  back buttons in conversations/, sync and recap pages move onto lib/ui.
- Offline Sync is the one name for the device-storage sync screen.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* test(app/conversations): cover Undo-backed delete, row menu, recaps page and capture labels

- Provider: the pending-delete window outlasts the Undo toast; undo restores,
  commit sends once, a regroup during the window keeps the row hidden.
- Widgets: Undo restores / timeout commits / bulk toast counts; long-press menu
  entries and Select; untitled and discarded row titles; Today header; the date
  filter chip; Daily Recaps page back button, labelled counts, Try Again and
  pull-to-refresh.
- Unit: the shared capture state table (an audio interruption is Paused).
- The Home preview's row menu leaves out Select (no selection bar there); the
  in-progress card's photo count is labelled; last raw spinner and "..." in the
  capture card go.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(app/pairing): pairing recovery, one Bluetooth prompt, shared sheets

- Find devices: a missing Bluetooth/location permission goes through the one
  BluetoothReadiness guidance prompt (Open Settings); the local 'Enable
  Bluetooth' dialogs are gone.
- Nothing found: 'Scan Again', 'How to Pair' (connection guide), then
  'Contact Support' instead of a lone mailto link.
- Offline saved device: says how to wake it and 'Try Again' rescans (the
  old Retry did nothing).
- Firmware compatibility warning is an acknowledge-only alert; the
  non-critical one keeps its opt-out row.
- Device rows, guide cards and capture cards are real buttons with labels;
  battery shows a glyph and percentage with a spoken label, no emoji.
- Connection guide, pairing steps, Ray-Ban picker/setup and Apple Watch setup
  use showOmiSheet; Apple Watch is only offered on iOS; 'I've Done This'
  becomes 'Done'.
- Connect page: OmiBackButton, labelled settings button, and connecting
  returns to the existing Home (HomeNavigation.returnHome) instead of
  stacking a second one.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(app/ui): edit-sheet dirty guard and row long-press menu primitives

showOmiEditSheet/OmiEditSheet own the drag so swipe-down, scrim tap, the close X and
system back all ask "Discard changes?" while an editor is dirty (the framework's
drag-to-dismiss pops without asking). showOmiRowMenu is the one long-press menu shape
for list rows (Open, edit actions, Select, Delete).

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* test(app): follow the warning token on the paused dot and the Conversation Map title

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(app/l10n): lane 2 strings for memories, tasks, goals and people

Sheet titles without emoji, read-only memory hint, Undo toasts, task plural titles and
counts, shared-task strings, memory review card and People page labels, with every
locale translated.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(app/memories): Undo-only deletes, openable read-only memories, guarded edit sheet

- Every memory delete (swipe, long-press menu, edit sheet) goes through
  deleteMemoryWithUndo: no "cannot be undone" dialog, the shared OmiFeedback undo
  toast with no X, and a commit scoped to the memory the toast offered. The
  provider's pending window becomes an 8 s backstop that outlasts the toast.
- Every memory opens: locked/superseded/ledger rows open the same sheet read-only
  with full text; swipe-delete only where editing is allowed.
- Long-press menu Open / Edit / Delete.
- Edit and new-memory sheets: explicit Cancel and Save, dirty guard, OmiButton.
- Page: OmiBackButton, OmiSearchField, labelled 44pt header buttons, neutral FAB,
  OmiEmptyState / error state, management sheet on showOmiSheet with a confirm
  that names the action and toasts that reach the page after the sheet closes.
- Memory graph: OmiBackButton, localized title, OmiLoading/Error/EmptyState, no purple.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(app/tasks): fixed swipe meaning, Undo deletes, guarded task and goal sheets

- One swipe meaning on every task row at every indent: right completes (or reopens),
  left deletes. Indent/outdent move to the long-press menu (and drag keeps its
  horizontal indent); long-press shows Open / Mark Complete / Indent / Outdent /
  Select / Delete.
- Single task and goal deletes are immediate with an Undo toast, backed by new
  staged-delete APIs on ActionItemsProvider and GoalsProvider (nothing hits the server
  until the toast closes). Bulk and clear-completed deletes confirm with a plural,
  verb-named dialog (the old one said "This will only remove deadlines").
- ActionItemFormSheet keeps its constructor; adds showActionItemFormSheet, explicit
  Cancel/Save, a close X in edit mode, a dirty guard and instant completion.
  The date picker and time picker are neutral (no purple) and locale/24-hour aware.
- Home and Tasks share one GoalFormSheet (Cancel/Save, dirty guard, localized).
- Tasks page: OmiSearchField "Search tasks", labelled overflow button, OmiEmptyState,
  neutral FAB/selection/drop indicators, localized "Exported to", counts with labels.
- Selection bar, shared-tasks sheet and Home Today card on the primitives (44pt
  targets, rows open the task sheet).

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(app/people): tapping a sample plays it; delete is a labelled control behind a confirm

People page gets OmiBackButton, labelled Add/Help controls, an adaptive person dialog,
OmiEmptyState/OmiLoadingState and confirms that name the action. The memory review
card is localized with 44pt controls and tokens.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(app): one header for live, processing and saved conversations; one media viewer

- Live and processing pages share ConversationStateAppBar: the circled back
  button of the saved page and the state as the title (Recording / Paused /
  Reconnecting / Processing, one local mapping until lane 1a's shared
  capture_state_labels lands). No emoji status, no back button inside the
  title row.
- Live page: remove the unreachable Summary tab and its TabController; Process
  Now is an OmiButton, mute a labelled OmiIconButton; the stop confirmation is
  showOmiConfirmWithOptOut with a verb; speaker names from SpeakerNames;
  photo-group time from OmiDateFormat and a localized photo count; tokens for
  the timeline and the upload indicator.
- Processing page: one view (the transcript so far) under the shared header
  instead of Content/Summary tabs whose Summary only said 'Processing'.
- Media viewer: always a full-screen modal with a trailing OmiCloseButton and
  swipe-down to close (MediaViewerPage.open), labelled share button,
  OmiSpinner; photo grids and the live timeline open it that way.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(app/chat): contract composer, drawer and failed-reply retry

Chat is a pushed page with a leading back (D1). Composer controls are
labelled 44pt targets; Send that cannot send (offline, uploading) is drawn
disabled with an offline hint. The apps drawer keeps Clear Chat at the
bottom behind a destructive confirm, and each app has one labelled Disable
(with Undo). A failed reply shows a localized error with Try Again that
resends the user's message instead of raw server text. The feedback sheet
is localized with a neutral Submit, thumbs read Helpful / Not Helpful, and
copy/share analytics send the message length, not its text.

Adds the lane-3 l10n keys for chat, apps and announcements.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(app/apps): one app action button, one consent dialog, Undo on disable

AppListActionButton reads Open / Enable / View with the same meaning in every
store list (no decorative Install). Enabling an app that works outside Omi
asks one localized question naming what leaves Omi; Disable is immediate with
a 5 s Undo on the detail page and in the chat drawer. The detail page moves
onto the header, button, sheet, dialog and feedback primitives, splits its
cards into widgets, and its cancel-subscription dialog reads Keep
Subscription / Cancel Subscription. Referral and app home pages share one web
page with a loading state, an error state with Try Again, and back within web
history.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(app/announcements): answer-only dismissal through the prompt queue

Announcements, feature screens and the changelog present through
PromptQueue. The dialog's scrim no longer dismisses; the close X or the call
to action marks an announcement seen, Not Now postpones it. The feature
screen is a full-screen modal route with a trailing close; the changelog
uses the shared sheet shell and error state.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(app/ai-app-generator): one leading back, system back steps to the prompt

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* refactor(app): sweep conversation sheets and small widgets onto the primitives

- Share via SMS and Create Template sheets use showOmiSheet, OmiSearchField,
  OmiButton, OmiSwitch, OmiEmptyState/OmiLoadingState and tokens; no purple
  (INV-UI-1). Create Template blocks back while the app is being created and
  opens the template picker from the navigator, not its own popped context.
- Markdown and expandable text: neutral search highlight and link colour.
- OmiSpinner and type/radius tokens in the speaker summary action, test
  prompts, photo image, person chip and waveform section.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* docs(app/ui): edit sheets and row menus in the barrel and the contract

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* test(app): conversation detail UX contract cases

Attendee names, detail duration rule, speaker numbering across the
getLastTranscript window, transcript bubble chrome (no provider, offset time,
44pt labelled play), the shared capture state header, search bar position,
the audio download sheet's own-context close/Cancel/back, the edit segment
discard guard, and the media viewer's trailing close.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(app): show conversation developer tools in debug builds too

No settings row writes devModeEnabled yet, so gating on it alone would hide
Copy Conversation ID and Test Prompt from everyone.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* wip(app): lane 3 checkpoint after spend-limit stop (uncommitted work preserved, not reviewed)

* wip(app): lane 4 checkpoint after spend-limit stop (uncommitted work preserved, not reviewed)

* wip(app): lane 5 checkpoint after spend-limit stop (uncommitted work preserved, not reviewed)

* test(app/settings): device page stub getters and sign-out keep-list

The one device page reads battery, charging and firmware getters the
double-tap test stub lacked, and its connected picture pulses; stub the
getters and turn on Reduce Motion so pumpAndSettle settles. Cover the
Sign Out keep-list: paired device and display preferences survive,
account values are cleared, and no credential is ever kept.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* test(app): name speaker sheet saves through the shared OmiButton

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* refactor(app/ai-app-generator): sweep the generator page onto the primitives

App bar with a leading OmiBackButton on both steps; neutral accent instead
of indigo/purple (INV-UI-1); OmiButton for Create App (busy state built in),
OmiIconButton for send and regenerate-icon (labelled, 44pt), OmiSwitch for
Make Public / Paid App, OmiSpinner, tokens for every colour, size and
radius. Description and Features headings come from l10n; category and
capability names use the shared localized titles.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(app/lane-3): plans sheet in the sheet shell, review fixes to the WIP checkpoint

- chat: the quota plans sheet opens through showOmiSheet (lane 4 handoff).
- chat evidence card: localized screen-reader hint.
- capability apps page: localized category titles, token refresh colours.
- const constructors and block-bodied ifs the WIP left for the analyzer.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(app/chat): conversation links push through routeToPage; evidence test hosts l10n

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* refactor(app): every push takes the platform route; shared-task link copy localized

- routeToPage builds its route with omiPageRoute (defaultTargetPlatform)
  instead of dart:io Platform, the Foundation A handoff.
- Deep links in AppShell, the People link in the name-speaker sheet and the
  firmware prompt in DeviceProvider push through routeToPage/omiPageRoute,
  never a bare MaterialPageRoute (iOS back swipe intact).
- The shared-tasks deep link's not-found toast and unknown-sender fallback
  were hardcoded English; now sharedTasksLinkExpired and
  sharedTasksUnknownSender in all 49 locales.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* chore(app): drop imports the ui barrel already provides

Lane 2's edit-sheet and row-menu primitives joined the ui.dart barrel, which
left seven direct imports redundant and pushed unnecessary_import over the
analyzer baseline (CI's Dart Analyze & Tests failed on it).

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(app/payments): labelled overflow menu, titled country picker sheet

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* test(app): people samples follow the one Voice Profile name

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(app/home): links open inside the one Home; startup prompts queue

- Notification taps and app links open inside the Home already on screen
  (HomeNavigation.openRoute: pop to Home, select the tab, push the page)
  instead of pushReplacement-ing a second Home over whatever was showing.
  Home registers itself while mounted, so "Done" at the end of the firmware
  and connect flows also returns to it (nav #3).
- Deep links move to home_deep_links.dart: parent before child (the
  Settings sheet opens before Data & Privacy is pushed over it), every push
  through routeToPage, and a removed app or deleted conversation now says so
  instead of only logging (nav #18).
- D1: the home chat bar, its mic, chat deep links and the Ask Omi / Voice
  quick actions push chat as a normal page (no fullscreenDialog). The chat
  bar is one labelled button.
- D6: Android back on the Tasks, Conversations or Apps tab returns to Home
  before it leaves the app (root PopScope).
- Settings: the language / speech profile / transcription model comparison
  runs once the reader is back on Home, not the moment the sheet opens
  (onboarding-home #25).
- Startup prompts go through PromptQueue (onboarding-home #23): upgrade
  alert (a required update first), changelog + announcements, the CV1
  tutorial (waits for the pendant), firmware announcements, the Plus-meter
  plans sheet (only when the meter crosses its threshold, once per session,
  showOmiSheet) and Bluetooth guidance. HomePromptGate holds the queue while
  phone recording, on a call or during a firmware update and pumps it when
  that clears; passive pendant capture does not hold it.
- Handoffs applied: dead toggleDailySummaries call removed (lane 1a); sync,
  task-export and quick-action pushes use routeToPage (lanes 2, 4). Header
  controls use neutral tokens (INV-UI-1) and OmiHaptics.
- New strings (7 keys, every locale): appNotFoundOrRemoved plus the startup
  failure and discard-recording strings used by the next commits.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(app/startup): startup failure offers Try Again and Contact Support

- The failure screen words the message by error class: a rejected build
  configuration (Env / startup-routing checks, now thrown as
  StartupConfigurationError) says the build is at fault and offers Contact
  Support; any other failure says to check the connection and offers Try
  Again, which re-runs start-up, plus Contact Support (onboarding-home #27).
- main() moves start-up into _start() so Try Again can run it again;
  ServiceManager.init, which refuses a second call, runs once.
- Localized without a localization scope (lookupAppLocalizations for the
  device locale, English fallback); tokens replace literal colours/sizes.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(app/speech-profile): confirm before discarding a recording in progress

- Back or swipe while the voice sample is recording asks "Discard
  Recording?" (Discard / Keep Recording) instead of dropping it
  (onboarding-home #26).
- "Reconnecting…" is an info toast, not an error.
- The help control is a labelled OmiIconButton ("How to take a good
  sample?") opening showOmiAlert; back is OmiBackButton.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(app/home): header pill and record button expose their actions

- The device pill and the record button wrap their gestures in
  Semantics(excludeSemantics: true), which also dropped the tap and
  long-press actions; the Semantics node now carries onTap (and the record
  options long-press), so VoiceOver/TalkBack can activate them
  (onboarding-home #15, #24).
- Phone-mic offline fallback notice is an OmiFeedback info toast.
- Sweep: auth-gate spinner is OmiSpinner; welcome Continue uses
  OmiHaptics; OmiGlass OTA page formatted.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* chore(app): delete webhooks.dart, reachable only from the removed dev-tools widget

Its one importer was GetDevToolsOptions in conversation_detail/widgets.dart,
which nothing constructed and lane 1b deleted. The dead-code ratchet flags the
now-unreachable file; the webhook settings themselves live in
DeveloperModeProvider and the users API and are unaffected.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(app/home): a link counts as opened once its page is pushed

openHomeDeepLink awaited each push, so HomeNavigation.openRoute (and the
notification-open telemetry behind it) only resolved when the reader closed
the page. It now resolves once the destination is on screen. A missing app
or conversation is an info toast, as the contract says; the contract names
HomeNavigation.openRoute / returnHome.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(app): address review round 1 (ZCode GLM-5.3)

- A memory's Undo restores only that memory: restoreLastDeletedMemory takes
  the toast's id, so a stale toast cannot restore a newer delete (test added).
- A failed task delete no longer inserts a Home-only task into the Tasks
  list; the staged index goes straight to _restoreDeletedItem, which skips -1.
- The conversation pending-delete window is 10 s, so an Undo toast that
  starts late behind other snack bars still gets its full time; the toast
  still commits early when it closes.
- The integration page's button reads "Disconnect" instead of stripping the
  question mark from a translated sentence (broke ¿…? and ? locales).
- mounted checks after the long awaits in the Create Template sheet and
  Wrapped 2025 generation.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* chore(app): keep memories_provider under its line-count ceiling

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* refactor(app/apps): app creation forms on the shared form pieces and primitives

Submit App and Manage App draw their screenshot strip and GitHub URL card
from app_form_fields (screenshots open as a modal viewer with a trailing
close), use AppFormCard/section titles/input decoration, OmiSwitch rows
for Public/Paid (no indigo/green thumbs), OmiButton for submit/update,
a leading OmiBackButton, and l10n for every string. Update asks with
showOmiConfirm and a verb button (Update App); Submit's confirm reads
Submit App; Start Earning is an Omi sheet with Not Now.

App metadata pickers are Omi sheets, App ID copy goes through
OmiClipboard. API keys: adaptive dialogs, destructive Revoke confirm,
OmiFeedback toasts, localized dates. Add MCP Server: OmiBackButton,
OmiButton, OmiFeedback. Provider snackbars and picker titles localized.

New l10n keys: generateDescription, selectImageFileTitle,
selectThumbnailImageTitle, appIdNotFoundError, manifestRefreshedSuccess,
manifestRefreshFailed.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* refactor(app/apps): store home, filters and reviews on the primitives

The store's filter sheet opens in the Omi sheet shell; header icon
controls are labelled 44pt OmiIconButtons; empty search is OmiEmptyState.
Reviews: OmiBackButton, adaptive reply dialog, OmiFeedback toasts,
OmiButton busy state, localized Add/Edit Your Review and rating counts,
readable (not grey-700) secondary text. App summary and capabilities
card localized. Screenshot taps on the detail page open through
openAppScreenshots (modal, trailing close). Review avatar palette drops
its purple entry (INV-UI-1).

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* test(app/apps): Disable hides at once, commits after the Undo toast, Undo restores

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(app/lane-3): localized pricing value on Manage App and file-picker title in chat

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(app): address review round 2 (lane 5)

- A throw while preparing the Omi firmware update (for example a corrupt
  download that fails zip extraction) now ends in the failed state instead
  of an installing spinner with back blocked and every prompt held.
- Home drops the prompts it enqueued when it is disposed, so after sign-out
  and sign-in the new Home's announcements, device tutorial and firmware
  notices are not deduplicated against dead closures.
- The speech step re-reads the microphone permission when the app resumes,
  so granting it in Settings clears the Open Settings row.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* chore(app): retire AnimatedLoadingButton

Lane 3 moved its last callers (payments, app detail) onto OmiButton, which
owns the busy state and recovers when the action throws; the dead-code
ratchet flags the unreachable widget. Its throw-recovery test now runs
against OmiButton directly.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(app): address review round 3 (lane 3)

- Try Again on a failed reply releases the composer when the failure was
  already cleared, and the first app message releases it even if chat
  closes mid-request (both could leave typed sends blocked).
- Enabling an app again inside its 5 s disable Undo window cancels the
  pending disable instead of being overwritten when the toast ends; tests
  for that and for a refused disable.
- Stripe setup names the selected country from the full list, not the
  picker's filtered one, and always stops polling on dispose.
- The AI app generator shows a failed submit on the generated view.
- OmiWebPage's Try Again reloads the page that failed, not the first URL;
  a malformed app home URL shows the error state instead of throwing.

The reported Stripe double-submit is already prevented: OmiButton ignores
taps while its onPressed future runs.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(app): address review round 4 (#17297 merge and rulings)

- Share from a conversation row now behaves like the page: a private
  conversation asks first ("Anyone with the link can view") and goes back
  to private when the share sheet is dismissed (was: made public at once).
- Developer Settings gains a Conversation Developer Tools switch (writes
  devModeEnabled), so release users can still reach Copy Conversation ID
  and Test Prompt; 2 keys in 49 locales.
- The row's Separate… always disposes its controller; tests cover a
  confirmed separation from a row (the other recording, never the row) and
  the row share confirmation.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* test(app): phone number verified date holds in every timezone

The fixture was UTC midnight, which is Jan 1 in Pago Pago; CI runs the
suite at UTC+14 and UTC-11. Local noon reads Jan 2 everywhere.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(app): conversation title and emoji share one line in the header

The title field kept Material's 48pt input height, which pushed the title
below the emoji; it is dense now and the one-line row centres both.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(app): every voice-profile entry opens the guided introduction

David's ruling (2026-09-24): the voice profile is the guided fill-in-the-
blank flow from #14514 (sentence starters, review, then voice, memories and
a goal). Two entry points still reached the old question-based page: the
Settings/Profile Voice Profile row for anyone who already had a profile, and
the capture card's "Teach Omi your voice". Both now open the guided flow.

The old page is unreachable, so it goes, with its two widgets, the
getDialog helper and the fade-in text widget only it used (dead-code
ratchet). Open PR #12531 edits the old page and will need to drop those
hunks.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(app): Star and Share back in the conversation top bar; record conversation actions

David, 2026-09-24 (overrides the earlier one-overflow ruling):
- the conversation page's top bar is Ask Omi (the primary, filled), Star
  and Share as matching 44pt icon buttons, then one "…" holding Rename,
  Move to Folder, Recordings and the rest, Delete last and destructive;
- one registered event, Conversation Action, records every conversation
  action with two closed enums: action (ask_omi, star, unstar, share,
  rename, move_folder, recordings_open, separate, delete, copy_transcript,
  …) and surface (top_bar, overflow, detail_body, row_long_press,
  row_swipe). No ids, titles or content. It goes through the C7 typed
  registry (contracts/analytics/events.json, generated Dart, a presence
  consumer) and AnalyticsManager, so consent and queueing apply.
Tests cover the event shape for every action and the top bar, overflow,
row long-press and row swipe call sites.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(app): the people chip names only named speakers

David, 2026-09-24: never label a participant "Speaker 1". The conversation
header's people chip now shows the first named participant ("You" for the
account owner) and counts everyone else: "David + 3 others"
(participantsSummary, an ICU plural in 49 locales). With nobody named it
hides; a linked calendar event's attendees still stand in when the
transcript names no one. The transcript's own per-line speaker labels are
unchanged. Tests cover named, mixed and none.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* docs: drop pointers to the deleted speech-profile page

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(app): address review round 5 (voice profile and people chip)

- SpeechProfileProvider drove only the deleted question page; the guided
  introduction records through GuidedVoiceIO. Remove the provider, its
  registration, the onboarding back-step close() that no longer stopped
  anything, and its test.
- Drop pointers to deleted files: the addressability baseline entry and the
  logout flow's covers (now sign_out.dart); a stale doc paragraph.
- participantsSummary carries few/many forms so Polish, Czech and Slovak
  agree for 2-4 and 5+; other Slavic and Baltic locales use a
  count-agnostic "one more" form.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
Git-on-my-level added a commit that referenced this pull request Oct 21, 2026
## Summary

M3: land the legacy-sync retirement integration branch
(`integration/legacy-retire`, swarm plan
`omi-knowledge-base/projects/backend-target-architecture/swarm-plan.md`,
contracts in `contracts.md`) on main. **Merge with `--merge` (never
squash)**; the lead runs the train from the main merge SHA.

**Prod behaviour after this merge:** prod `legacy_sync` stays `on`.
Every new legacy-retirement path is gated: the ramp document,
default-off flags or kill switches, and the `DRAINING_PRECONDITIONS`
that `ramp_set` enforces before leaving `on`. With the mode `on`,
intake, sync and enrichment keep today's routes.

## M3 gates (lead ruling 6702cc; David authorized the merge, 10-21)

1. **Prep landed:**
- #23068: main b859b78, the ci-budget bump and the dead-code stub
removal;
   - review fixes #23082 and #23086;
- final main merges #23096 (main 34ce402) and #23133 (main 5406315).
2. **Staging tree equality:** `OMI_RELEASE_TREE` on all four `*-staging`
services equals `integration/legacy-retire^{tree}` at this head (see the
evidence section below).
3. **M2 review (GLM, which replaced Grok; ruling 43bd53):**
- CHANGES: 1 P1, fixed in #23082 (provider-STT outbox sweep plus
draining gates).
   - The 2 P2s are recorded below.
- The M1 blocker closure table is in
`data/run-2026-10-19-legacy-retire/review/M3/m1-blocker-closure.md`
(omi-workspace).
4. **Workflows:** all green on this head.
5. **Luna:**
   - Round 1: CHANGES, 2 majors, fixed in #23082.
- Round 2: 4 majors. Two lock fixes are in #23086 (Luna SHIP); two were
routed to dark-step gates.
   - Final-merge resolution: SHIP.

## Dark-step gates and follow-ups (none block M3; prod stays `on`)

- **`provider_stt_live`** (`DRAINING_PRECONDITIONS`): before leaving
`on`, prod needs:
  - the provider-stt queue;
  - the `PROVIDER_STT_TASKS_*` env;
  - the maintenance job;
- pagination or a due-cursor for the provider-STT outbox sweep (Luna
round 2 #4).
- **`legacy_final_pass_rehomed`** (`DRAINING_PRECONDITIONS`, lead ruling
b209a5): conversations still owned by `legacy_final_pass_v1` with no
live legacy job must be re-homed to batch first, and new final-pass
ownership must stop outside `on` (Luna round 2 #3). The
final-pass-rehome lane owns this.
- **GLM P2s:**
- the router's stranded-row 409 loop without `batch_adopts_stranded` is
lane 10 debt;
- BYOK uploads route to batch even with legacy sync `on` (David, 10-19).
This is a release-note item.

## `.github` changes in this PR and David's naming

Source of the naming: swarm-plan.md, lane 7: "B4 and B5 are named
.github changes (fourth round, #9)" (2026-10-19); the checkout-stall
bound (2026-10-20, main 1b07e5e); #22758 build-only mode; lead ruling
209335 (David named B7 and B8 items, 2026-10-21 ~06:05Z).

| File | Change | Named item |
| --- | --- | --- |
| `.github/workflows/config_train.yml` (new) | Config-train: plan/apply
of `backend/deploy/ops`, manual dispatch, prod-train lock;
workflow-level `GIT_HTTP_LOW_SPEED_*` | B4 (+ checkout-stall bound for
the two env lines) |
| `.github/actions/sync-backfill-lifecycle/action.yml` | Prod backfill
queue names come from the ops file; the train no longer reconciles the
prod queue (#22455, #22480) | B4 |
| `.github/workflows/gcp_backend.yml` | `break_glass_lock` input; prod
concurrency group `prod-train` | B5 |
| `.github/workflows/gcp_backend_listen_helm.yml` | same | B5 |
| `.github/workflows/gcp_backend_pusher.yml` | same | B5 |
| `.github/workflows/gcp_parakeet.yml` | same | B5 |
| `.github/workflows/gcp_llm_gateway.yml` | same (every prod deploy
writer shares the lock) | B5 |
| `.github/workflows/gcp_diarizer.yml` | B5 lock lines **plus** B7: OCI
revision/`omi.release.tree` image labels and a batch-worker
`image_digest` promotion path (verified by `check_release_tree.py`) |
B5; B7 (David, ruling 209335) |
| `.github/scripts/check-deployment-concurrency.py` | Guard that
evaluates the new prod-train group expressions | B5 |
| `.github/ci-budget.yaml` | config-train entry (B4); 1 run/day on the
six deploy workflows with `break_glass_lock` (B5); 1.1/day on three
build-only jobs (sync 11, #22758 base) | B4, B5, #22758 |
| `.github/checks-manifest.yaml` | Registers
`backend/scripts/check_release_tree.py` (the B7 promotion gate) | B7
(David, ruling 209335) |
| `.github/scripts/check_duplicate_routes.py` | Counts routers mounted
through `app_roles.mount_routers` (B8 OMI_ROLE map) as mounted | B8
(David, ruling 209335) |
| `.github/scripts/test_pre_push_ci_verified.py` | Test hygiene:
`clean_env` also pops `PRE_PUSH_BASE_BRANCH` and `OMI_PR_BODY_FILE`, so
lane pushes with a non-main base do not leak into the hermetic hook runs
| lead authority, ruling 66dba9 (edits an existing test script; no
workflow added) |
| `.github/scripts/dead_code/backend.allowlist.json` | The 7 swarm
contract-stub entries are removed (L01-4); every file now has importers
| allowlist hygiene (CI script data) |

| `.github/workflows/sync_ledger_fence_cutover.yml` | Prod takes the
`prod-train` lock, with a `break_glass_lock` input that falls back to
the backend stack lock (M3 Luna review) | B5, completing it on a file
that must share the backend mutation domain (lead ruling 5f60b3) |
| `.github/workflows/config_train.yml` (break-glass fallback) |
Break-glass shares `deploy-backend-stack-<env>` with `gcp_backend.yml`
(M3 Luna review) | B4/B5 (lead ruling 5f60b3) |

## Staging tree evidence

Verified 23:33-23:4xZ 10-21, on tier ro-dev:
- **Services:** all four `*-staging` services (`backend-staging`,
`backend-sync-staging`, `backend-sync-backfill-staging`,
`backend-integration-staging`) serve
`8d062ad3cfacf8b7eb26dea737a2969423548e64` at 100%.
- **Tree:** `OMI_RELEASE_TREE=5c398832bc4487066abbf2d49bcf8c6f9a700818`
== `8d062ad3^{tree}`.
- **Image:**
`us-central1-docker.pkg.dev/based-hardware-dev/staging/backend@sha256:18b8cf414566743aaee20bd2559695ec7b4536a75ec609fbc139f008bbf7ecf9`.
- **Batch worker:** `sha256:0954c71c87f5`, 0 replicas. Staging is plain
(no warm instances or overrides).
- **Deploy log:**
`data/run-2026-10-19-legacy-retire/lane01/m3/deploy-final2.log`
(omi-workspace).

## Product invariants affected

INV-DATA-1: integration carries lane 7's (#22430) edits to
`.github/workflows/gcp_*.yml`. They add the `prod-train`
concurrency/lock lines (B5) and, in `gcp_diarizer.yml`, the
worker-digest promotion. No Firebase or Firestore project, auth
authority or serving endpoint changes. Production-family artifacts stay
on `based-hardware`.

## Line-count exceptions

Line-Count-Exception: backend/routers/sync.py | 3881 -> 3966 | lane 10
legacy-dark fence wiring at the legacy call sites (#22495) plus the M3
review fixes (off-loop mode read, final-pass ACK); the file shrinks with
the C6/C11 deletions
Line-Count-Exception: backend/database/firestore_index_registry.py |
2196 -> 2200 | the legacy-dark zero-lost census index
(sync_content_ledger created_at, lost_recordings.py soak check 5)

## Failure class

Integration carries fix commits, and each declares its own class. For
this merge:

Failure-Class: none
UI-Evidence: none -- backend/CI retirement work plus sync merges; the UI
changes are main PRs that carried their own evidence

🤖 Generated with [Claude Code](https://claude.com/claude-code)
Git-on-my-level added a commit that referenced this pull request Oct 22, 2026
…notes, boundaries and lifecycle (shadow by default) (#23335)

## Capture, speaker and notes refactor integration

Integrates L1 `efd6d97d1a5`, L2 `f01392bfc7b`, L3 `2475429ecc1`, L4
`8ec85289796`, and L5 `f4877478d10` in that order, plus current main.
This is a branch-only integration: no PR, main merge, deployment or
cohort change.

- L1: committed frame ledger, intake/dedupe/config hygiene,
authenticated coverage route and export, same-key open-live discovery
without a device. The generated plan alias reader now uses the gated
shared parser.
- L2: ranked evidence, receipt-constrained projection, caches and
pooling; explicit owner/retraction wire events; continuity and GPU
policy packaging; boundary roster candidates retain low,
non-label-eligible priors.
- L3: unified notes packet/output/language work; cache source closure
and effective packet/version identity; metric export;
account/conversation-aware episode rendering and language propagation.
- L4: mounted boundary endpoint, live committed events,
CAS/clocks/boundaries/executors, durable atomic merge admission and
epoch-fenced reconciliation in the existing finalization outbox.
Correction transfer seals the recovery phase atomically; recovery safely
rolls back preparation or replays sealed source cleanup without another
paid notes call. Empty-ready quiet obligations use content/lease-fenced
lifecycle deletion. Normal and recovered merge completion share the
typed notification dispatcher and retain the data-only background
transport.
- L5: mobile Home/owner/custody/continuations and desktop
identity/labels/boundary adapters consume the integrated authorities.
Tombstone-first deletion purges staged chunks even without a parent;
staging expires after seven days and expired parts cannot assemble.
- macOS meeting identity requires call-control chrome for Telegram,
Slack, Discord and WhatsApp. Dominant chat windows no longer supply
meeting participants.

## Flags and ramp

Backend `CAPTURE_COVERAGE_MODE`, `SPEAKER_EVIDENCE_MODE`,
`NOTES_PACKET_V2_MODE`, `STT_LANGUAGE_HINTS_MODE`,
`EPISODE_BOUNDARIES_MODE`, `LIFECYCLE_V2_MODE`, and
`CLIENTS_FROM_SEGMENTS_CHUNKS_MODE` remain shadow by default. Percent
selectors default zero; digest lists default empty. No manifest serves a
cohort. Shadow retains legacy output and adds no duplicate paid
model/transcription call. Coverage records may be written in shadow, but
new committed custody events are emitted only for the capture serving
cohort.

PostHog `clients_refactor`, `clients_from_segments_chunks`,
`clients_boundary_evidence` remain off/unknown.
`custody_capture_committed_release` is a deleting opt-in and requires
explicit boolean true through the identity-fenced reader. No PostHog
rows or cohorts are changed here.

Owner **dazheng**, expansion complete by **2026-10-26**: integrated
synthetic/test cohort → reviewed runtime digest cohort → 1% → 5% → 25% →
100%, with a full clean observation window before each expansion. For
notes/client arms whose lane ramp uses 10%, require the same clean gate
before that step. Before continuation serves, enable Firestore TTL for
`from_segments_chunks.expires_at`; the seven-day expiry field and
assembly checks are implemented, but physical database TTL is not
applied by this code-only task. The reviewed declaration is
`backend/deploy/from-segments-retention.json`;
`backend/scripts/batch_pipeline_ttl.py --policy` produces its plan
without credentials.

Require zero custody loss, false frame suppression, duplicate
per-session conversations, manual-receipt violations, cross-boundary
automatic merges, empty rows reaching paid processing, and pre-durable
committed events. Review dedupe/projection/notes disagreements and owner
attribution, language quality, failed/held work, queue age and merge
dead letters. Exported families include capture coverage/dedupe/retry,
speaker evidence/agreement/owner share, notes shadow/results, lifecycle
shadow, executor task gauges and client refactor comparisons. The
prerecorded-language gate and vendor allowlist entries are retained.

Rollback: set backend mode off and client flags false; already-admitted
durable merge obligations continue reconciling. Do not remove TTL or
rewrite historical data as rollback.

## Invariants and failure class

Invariants: **INV-AUTH-1**, **INV-MEM-4**, **INV-CAP-1**,
**INV-TASK-2**. Identity fences remain authoritative; retained/released
audio requires exact durable proof; merge retraction preserves
correction/Undo and memory ownership; task effects stay behind
successful processing and source retraction boundaries.

Failure-Class: FC-split-mutation-authority

## Validation

- Backend lane lists: **2,897 passed across 87 file-isolated suites**.
Expanded seam run: **334 passed across 15 files**. The full selector ran
once (2,223 isolated files); 34 files exposed
integration/import-isolation regressions, all repaired and rerun. A
132-file affected union was checked; two files caught the brief
in-progress merge conflict and were rerun afterward. The 16-file
post-main run is **624 passed**, including those two. These focused
counts overlap.
- Merge/notification recovery follow-up: **135 passed across 13 files**;
the notification direct-call ratchet decreases by one.
- Real local Firestore emulator: **15 passed**, covering concurrent
merge admission, epoch fencing, atomic correction-transfer sealing,
empty-row deletion races and capture-ledger contention.
- Swift: **49 passed** (43 meeting identity/storage plus six L5 client
tests). Flutter: **58 focused tests passed**, plus the bootstrap's
hermetic spine/shell checks; analyzer ratchet passed with baseline lint
debt retained.
- Backend Pyright after the main merge: **zero errors**, with existing
warning-level debt (47,794 warnings).
- All heavy commands use `omi-heavy` and `nice -n 10`. OpenAPI, Dart,
Swift, TypeScript, feature-registry and plan-catalog outputs were
regenerated from their sources. All seven backend modes were checked
with an empty environment: shadow and no serving without a cohort.
Client readers require explicit boolean true, and no serve cohort is
introduced in manifests.

**Body-aware preflight: all 67 selected checks passed, zero skipped**
(also repeated successfully on the final pushed tip), after repairing
the notification boundary. The required non-force push passed its
exact-tip pre-push gate: current preflight, backend Pyright (zero
errors), bounded backend tests, OpenAPI/wire contracts, Flutter
generated output, Dart formatting and Swift compile. No production
reads, production API calls, GCP credential tier, deployment or paid
evaluation is used.

Publication: non-force push succeeded at **2026-10-22 19:20Z**, before
the 21:30Z cutoff. Remote and local tip both verify as
**`8892f2b85e7d5790c8b9a40169cdeffd9f8bb573`**, including review fix
`ec90304a8ca` and current main
`312b4f734c22900547ff23e7260f69622b6aa36b`. All five lane tips remain
ancestors; worktree is clean. The exact-tip pre-push gate passed: 67
selected preflight checks, Pyright zero errors, bounded backend tests,
source closure, OpenAPI/client compatibility, Flutter code generation,
Dart/Python formatting and Swift compile. The separate all-gates
preflight passed 68 gates with no failure or time skip. No GitHub
Actions runs are listed for this branch at verification, so this is
local-gate evidence, not a terminal GitHub CI claim. No PR, deployment
or cohort change is part of this task.

## Review findings

GLM lane reviews plus the contact-name addition are reconciled below.
All required-before-merge and required-before-ramp fixes are
implemented. Defaults remain shadow/off; no cohort or deployment
changes.

| Finding | Status | Resolution |
| --- | --- | --- |
| L1 #1 route registration | Done | Already integrated: authenticated
route policy, app role via sync mount, OpenAPI prefix and regenerated
wire outputs; push gate passes. |
| L1 #2 shadow audio fetch | Done | Shadow uses only an
already-prefetched manifest; full provider audio fetch requires the
capture serve cohort. |
| L1 #3 derivative cleanup | Done | Trim returns ownership of generated
and retired paths through the coordinator cleanup set, including fully
suppressed input. |
| L1 #4 dark metadata | Done | Accepted internal-only delta; missing
envelopes/optional identity fields are guarded and tested. |
| L1 #5 empty uploads | Done | Synthetic covered response is serve-only;
shadow/off retain legacy empty admission. |
| L1 #6 open-live binding | Done | Already integrated: no-device
discovery gate plus full capture/session/clock projection and
transactional selection. |
| L2 #1 preserve established labels | Done | Abstaining clusters emit no
replacement decision; accepted voice candidates and scoped manual
decisions alone project labels. Reprocessing fixtures preserve
established owner/person labels and identity status with expired audio,
exhausted budget or a deleted print. |
| L2 #2 pinned operating points | Done | Independent literal and
comparison-strictness pins cover every legacy point, plus each env
override and the shared finalize/cross-epoch binding. |
| L2 #3 ownership | Done | Integrator ratifies the voiceprint-scoped
users.py and speaker_assignment_effects.py edits and the documented
conversation_speakers path correction. |
| L2 #4 second wire emitter | Done | Owner/retraction adapter already
integrated; the transcript introduction emitter now explicitly declares
is_user=false because it is contact-only. |
| L2 #5 malformed evidence | Done | Evidence reads fail open to existing
labels, with a bounded error log and fallback counter; malformed
content/identity is not logged. |
| L2 #6 policy consumers/markers/provenance | Done | Continuity and GPU
policy imports were integrated; missing superseded markers added and
original offline measurement provenance restored. OperatingPoint.accepts
remains a tested pure policy utility. |
| L2 #7 pooling edges | Done | Legacy multi-sample provenance is
retained as one aggregate base, replaceable/retractable as one
contribution. Sample deletion already preserves the materialized
remaining source; regression coverage pins it. |
| L4 F1 shadow read cadence | Done | Bounded owner/client-scoped
60-second caches cover shadow windows and unchanged context ingestion,
with write invalidation. Serve reads remain fresh. |
| L4 F2 candidate widening | Done | Numeric/ISO timestamp normalization
requires the lifecycle serve cohort; shadow/off retain raw datetime-only
eligibility. |
| L4 F3 rescheduling | Done | Calendar identities accept an updated
start/window; non-calendar starts remain immutable and same-start end
retries cannot reopen. Saved row contexts cannot rewind an authoritative
calendar reschedule. |
| L4 F4 post-commit hardening | Done | Malformed run grouping and
optional publication failures cannot fail an already-durable transcript
flush or trigger rollover. No custody event is emitted without ledger
success. |
| L4 F5 integration gaps | Done | Boundary mount/policy, durable merge
leases/reconciliation, empty-ready deletion and serve-only bounded
executor were completed in integration. Shadow/off deliberately retain
the legacy executor. |
| L4 F6 sanctioned deltas | Skipped | Informational: retain the
brief-authorized cap/CAS/UTC fixes and same-value activity/speech dual
writes; no additional behavior change. |
| L4 F7 missing producer | Done | L1 coverage is present in the composed
runtime and source-closure checks; no absent-module stub or bypass. |
| L4 F8 cold emulator contention | Skipped | Informational flake; no
weakened retry/fixture policy. The current 15-test emulator run includes
the concurrent-reconnect case and passed; this is not treated as a
production defect. |
| L5 #1 custody index failure | Done | Newly released copies revert to
repair on failed index persistence. Flush durably commits a release
before retention can act on it; no extra save in default mode without a
release. Failure fixtures preserve the audio file. |
| L5 #2 continuation flag withdrawal | Done | Prepared input is
terminalized once as continuation_disabled, with the prepared copy
dropped and the audio retained. Status/reason are durable; no repeated
recognition/upload, including without a model. |
| L5 #3 unfinished Home rows | Done | Serving hides in-progress,
processing and merging members until completed/failed. Flag-off behavior
remains identical. |
| L5 #4 missing desktop finish | Done | Chunked finalization derives an
absent finish from the latest finite positive segment end; explicit
finish and legacy single-shot behavior are preserved. |
| L5 #5 early chunk validation | Done | Finite, nonnegative,
positive-duration and nonblank segment checks run before any staged
write. |
| L5 #6 projection-digest response | Skipped | Optional protocol
expansion is beyond a cheap follow-up: it needs a versioned
response/decoder contract. Frozen clients already keep a stable
projection; retain first-staged display-only projection and list digest
negotiation as follow-up. |
| L5 #7 agreement log noise | Done | Mobile comparison helper and
desktop hot paths log disagreements/errors only; backend agreement
counters remain available without per-agreement log lines. |
| L5 ownership/registry notes | Done | Integrator ratifies extracted
developer intake/models/tests for the line-count boundary; the L1-owned
coverage registry declaration was reconciled at integration. |
| Ambiguous contact names | Done | Rule preserves transcript spelling
when contacts compete and forbids merging shared first names. Synthetic
packet fixture lists confusable and shared-first-name candidates without
choosing or projecting a label. |

Review-pass validation: **1,180 passed across 29 focused backend files**
after merging P71; **157 passed across six final seam files**
(overlapping the broader run), **33 Flutter tests**, **seven Swift
tests**, and **15 local Firestore emulator tests**. Pyright after the
main merge: **zero errors** (47,827 warnings under the repository's
warning-level checks). The only initial new-fixture failure was its
missing policy_version; corrected and rerun. No required finding is
deferred to the ramp. Review-pass body-aware preflight: **68 gates
passed, zero failures, zero time skips** (492 seconds). Exact-tip
pre-push passed; the remote SHA and gate receipt are recorded above.

## UI evidence

L5's real ConversationsPage hermetic renders are retained unchanged by
integration.

![Shadow
Home](https://raw.githubusercontent.com/BasedHardware/omi/5d66b99f2460e1a591d87df7323789244180f7ca/.agent-artifacts/ui-evidence/refactor-l5-clients/001-mobile-ios-home-shadow.png)
![Serve
Home](https://raw.githubusercontent.com/BasedHardware/omi/5d66b99f2460e1a591d87df7323789244180f7ca/.agent-artifacts/ui-evidence/refactor-l5-clients/002-mobile-ios-home-serve.png)

## Conflicts

Review-pass main merge: `312b4f734c2` brings the P71 as-captured archive
ruling. Resolve the `audio_archive.py` parser conflict by preserving
main's LIVE/READ default-on behavior through the shared default-on
helper; all seven refactor modes remain shadow and their cohorts empty.
The registry renderer synchronizes those inherited kill-switch metadata
fields and regenerates the doc. No refactor serving default is enabled.

Lane merge conflicts were flag declarations and dead-code metadata. The
final main merge also conflicted on the sync-router imports and the
metric-export regex: retain both route/playback imports and the union of
metric families, including main’s playback metric and the pinned
language/vendor entries. Preserve each authority's declarations, retain
consumed-contract removals, and regenerate the registry. OpenAPI and
client wire artifacts are regenerated after route composition. The
dead-code tool explicitly never generates/prunes allowlists; merge their
explicit declaration changes and validate them with the tool rather than
inventing missing exemptions. No product-code conflict was resolved by
taking an entire side.

## Risks and remaining rollout work

- No deployed/product acceptance claim: PostHog configuration, physical
Firestore TTL activation, runtime cohorts and semantic
attribution/language sampling still require the owner-led ramp.
- Source provenance absent from older/on-device results remains unknown;
partial segment overlap retains audio rather than guessing alignment.
Simultaneous read-only admissions can still duplicate provider spend
before transactional dedupe observes a committed winner.
- Speaker calibration starts at existing operating points and
process-local embedding caches do not imply cross-replica reuse.
Evidence can briefly lag transcript persistence.
- Persistent sealed merge cleanup failure stops after five attempts,
retaining its survivor and durable failure record for reconciliation. No
speculative restoration after correction anchors move.
- L3 filtering only drops explicit `out_of_profile` metadata. The
independent live language observer remains telemetry-only; expanding
stored classification and the topic request's optional classified-input
support is follow-up work, not a new heuristic in this integration.
- GPU policy source closure and local tests do not prove a deployed GPU
image. Client screenshots remain the L5 hermetic page evidence; no
named-bundle live E2E or physical-device custody test is claimed.

## Deletion follow-up after bake

1. Retire legacy capture text/clock dedupe, open-target selection and
config parsers only after missing-speech and held-work gates are clean;
add the same-audio-twice synthetic soak case to private staging tooling.
2. Retire competing speaker hard-label writers and legacy voiceprint
replacement after evidence/receipt and Undo acceptance; keep
released-client sentinel reads until supported versions adopt explicit
owner events.
3. Retire the legacy notes packet/output/prompt branches after quality
sampling; move remaining offline-only episode selection/tier helpers
alongside evaluation code.
4. Retire legacy merge admission and redundant speech-clock readers
after outbox recovery bake; stop `finished_at` compatibility dual-writes
only when all consumers migrate.
5. Retire old Home, local-label and 500-segment/refusal/compaction paths
after client adoption. Verify physical staging TTL and account-erasure
coverage before deleting migration adapters.
6. Append-only segment storage and the pusher session-state restructure
remain separate follow-ups.

🤖 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/23335?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/23335?returnTo=https%3A%2F%2Fgithub.com%2FBasedHardware%2Fomi%2Fpull%2F23335&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. -->
Git-on-my-level added a commit that referenced this pull request Oct 23, 2026
…/actions/vocabulary, MCP read-API correctness (shadow by default) (#23358)

## What and why

Integrate wave 2 of capture, speaker evidence and notes against the
reviewed wave-1 authority. This is a branch-only handoff: no PR, merge
to main, runtime cohort, deployment or production data access. All
implementation commits use the requested co-author trailer.

- Wave 1: merged origin/refactor-integration first (2ca1c67); main
had not absorbed #23335 at intake. Its verified merge f6021c0 landed
at 2026-10-22 20:39:40Z and is now merged here.
- V1 speakers: 4c368cc. Participant hints and bounded
compatible-cluster reduction, explicit channel/near-field/voice anchors,
ambiguity-preserving people matching and enrollment quality. Applied
speakers-live-name-hook.patch. Reconciled the newer wave-1 abstention
contract: preserve unresolved identity while allowing compatible count
consolidation.
- V2 media/noise: 1519a9a. Applied media-consumer-integration.patch.
Classify before notes, keep media/noise history with deterministic
minima, suppress memory/task/recap derivation through one shared helper,
and persist terminal intelligence suppression for replay. Explicit
restore/reprocessing clears the exclusion and marker. Shared live/sync
hallucination admission remains cohort-only.
- V3 cross-device: a05a1f8. Completed-capture shared-speech
reconciliation and exact-key coverage aliases reuse the ledger and
capture-group writer. Originals and audio remain; unique secondary
speech remains visible. Streaming partial-window suppression and
automatic secondary-socket dispatch remain unimplemented.
- M MCP: 34d47d3. Correct filtered memory candidates, bounded
default lists, fair batch budgets/continuations, whole-window screen
aggregates, truthful counters/stubs, call metadata, provenance and
explicit timezones. Additive read correctness is on by default, as
authorized in lane M. Omitted timezone retains released UTC behavior.
- V4 calls/recaps/actions/vocabulary: d4509d3.
Completed-local-day/grace-period recaps, durable states and rollback
recovery, positive-evidence call metadata, owner-involved commitments
and bounded Soniox vocabulary. Applied calls-boundary-integration.patch
and calls-prompt-integration.patch, including authenticated agent
identity and cohort-sensitive notes cache identity. Automatic stale task
mutation remains partial: its producer-bound reference and canonical
CAS/reminder adapter do not exist in this lane. Older screen/desktop
producers still need explicit joined-controls evidence.

## Defaults, flags and ramp

SPEAKER_EVIDENCE_MODE, MEDIA_NOISE_MODE, CAPTURE_COVERAGE_MODE,
NOTES_PACKET_V2_MODE, EPISODE_BOUNDARIES_MODE, LIFECYCLE_V2_MODE,
CALLS_RECAP_MODE, ACTION_ITEMS_V2_MODE and STT_VOCAB_MODE remain shadow.
No serve cohort is configured. Existing client flags remain off/unknown.
Costly shadow database writers use refactor_modes.shadow_sampled:
CAPTURE_COVERAGE_MODE_SHADOW_PERCENT,
SPEAKER_EVIDENCE_MODE_SHADOW_PERCENT and
EPISODE_BOUNDARIES_MODE_SHADOW_PERCENT, each default 5.
STT_VOCAB_MODE_SHADOW_PERCENT samples source reads at default 1. Serve
cohorts always write and zero disables sampled writes. All bindings are
declared and the registry regenerated. Invalid percentages keep the
bounded default. V4 phone/calendar boundary publication is serve-only
under CALLS_RECAP_MODE; shadow projects the evidence locally without
authority writes. No CALLS_RECAP_MODE_SHADOW_PERCENT binding is needed
for this serve-only choice. On-demand recaps explicitly bypass scheduled
grace; all scheduling/backfill keeps the completed-day grace.

Owner dazheng, by 2026-10-26: synthetic integrated acceptance, reviewed
runtime digest pilot, then 1% -> 5% -> 25% -> 100%, one full lookback
window per step. Keep modes shadow while configuring sampled serve
cohorts; mode serve is the 100% stage. Align producer/consumer runtime
cohorts (especially speaker/boundary evidence with media and calls) so
sampling does not make serving evidence unavailable. No expansion until
manual/identity violations, false folds, lost unique speech/custody,
false owner-call/media exclusions, genuine-speech drops and duplicate
recap deliveries remain zero. Inspect speaker count/anchor/agreement
metrics, omi_media_noise_shadow_total (especially repeated_sentence
admission receipts), cross-device duplicate/examined lines, coverage
admits/seconds, sync failures/latency and vendor spend. No paid
duplicate generation/transcription in shadow. Rollback modes to off and
clear runtime cohorts; durable lifecycle obligations still reconcile.
Persisted groups/classifications are non-destructive and may need
restore/reprocess after rollback. Budget cohort entry for one
regeneration per fingerprint-less legacy day inside the seven-day
lookback (subject to the existing per-run backfill cap); retained IDs
and delivery receipts prevent duplicate notifications. No serve cohort
was enabled for this work.

## Review disposition

| Review finding | Status | Resolution / reason |
| --- | --- | --- |
| V1 #1 nullable speaker | Done | Never project a null cluster speaker
into a numbered segment; production-seam regression. |
| V1 #2 count metrics | Done | Producer and observer share a
voice/channel partition helper; channel splits are not reductions. |
| V1 #3 learning state quality vs stale fence | Skipped | Requires
changing the transactional publication result and learning-state
contract, beyond a mechanical fix. Existing bounded quality counter
distinguishes rejection; track before serve ramp. Enrollment and
unpublished-blob cleanup remain protected. |
| V1 #4 live name-only guard | Done | Supplied patch applied before
text-only lookup/create/map mutation. |
| V1 #5 count cues | Skipped | No threshold change without audited
acceptance data. Acoustic thresholds, cannot-links and abstention
retained; count hints cannot force incompatible voices together. |
| V2 H1 dormant consumers | Done | Patch applied; real
processing/persistence, replay, all four consumer boundaries and
restore/reprocess exercised. |
| V2 M2 genuine foreign repetition | Skipped | No evidence supports
changing the threshold here. Zero serve cohort; pilot must audit
repeated_sentence receipts before expansion. Audio custody remains
intact. |
| V2 M3 shadow reads | Skipped | Production volume validation is outside
the no-prod-reads scope. Reads are bounded; no second paid call or
shadow media-edge write. Sampled speaker/boundary writers bound
mutations; serving pilots need aligned producer coverage. |
| V2 L1 collapsed metric checks | Done | Explicit conversation bucket
and strict unknown-check rejection with regression. |
| V2 L2 admission naming | Skipped | Distinct module namespaces, no
shared caller or behavior collision; avoid unrelated public rename. |
| V2 L3 sync hook size | Done | Existing no-content settlement needs a
small hook, covered by tests and line-count metadata. |
| V2 L4 fixtures | Done | Minimal request-authority and timeline fixture
updates retained. |
| V3 dead distinct_streams return | Done | Removed unreachable duplicate
condition; unknown devices abstain. |
| V3 shadow lane label | Done | Compare accepts explicit lane; V3 does
not emit an L1 fold observation. |
| V3 serve query transaction cost | Skipped | No query semantics change
without runtime evidence. Bounded alias validation reads remain; watch
sync latency/failures before expansion. |
| M P1 default memory failure | Done | Default lists use released-size
bounded reads, return data and explicit incomplete coverage; filtered
incomplete windows still error. |
| M P2 read amplification | Done | Physical-read regression pins bounded
default source batch. |
| M P3.1 aggregate cursor | Done | Ignore stale aggregate cursor and
explain whole-window behavior. |
| M P3.2 timestamps | Done | Released strings retained unless offset
format/timezone is requested. |
| M P3.3 calendar-day stub pagination | Skipped | Intentional
bounded-date contract; an old in-flight cursor may shift across
deployment. No historical rewrite or invented failure cause. |
| M P3.4 retired/private helpers | Done | Dead collector/branch/imports
removed; shared adapters public with migrated callers. |
| M P3.5 duplicate-ID progress | Done | Absolute occurrence cursor with
regression. |
| V4 HIGH boundary authority write | Done | Parent ruling wins: both
phone record and calendar ingest are serve-only under the calls cohort.
Shadow uses local evidence; the regression holds
EPISODE_BOUNDARIES_MODE=serve and proves a non-cohort user produces no
authority write. |
| V4 MEDIUM on-demand grace | Done | Explicit user_initiated plumbing
from generate_daily_summary_on_demand bypasses grace; scheduler/backfill
do not set it. Partial-day and post-midnight grace tests exercise the
actual producer. |
| V4 MEDIUM STT uid | Done | Both legacy initial/reconnect calls and the
managed Soniox leg pass authenticated request uid. Removed get_byok_uid
fallback; real managed config and legacy call seams are tested. |
| V4 MEDIUM vague_social / incident 09 | Done | Named counterpart plus a
concrete place/time retains owner-alias commitments, including catch up
with Matt in NYC. Fourteen incident/negative cases cover missing
feedback, CV review, Deepgram check, invitation/Drive, unrelated customs
purchase and bogus hiking. Promisor/provenance authority remains intact.
|
| V4 LOW legacy-day regeneration cost | Done | Budgeted in the ramp
above; no serve cohort enabled. |
| V4 LOW dead constants | Done | Removed six unused lane constants.
Actual shared cohort bindings now live in and are consumed by
refactor_modes._COHORT_ENVS; no env behavior changes. |
| V4 LOW stripped comments | Done | Restored explanatory shared model,
finalizer, notifications and Soniox comments/docstrings; public recap
docs distinguish legacy order and serving revision/state behavior. |
| V4 LOW inverted / expired parity labels | Done | Found vocabulary
emits agree; absent expired evidence compares the retained durable call
projection. Regression assertions pin both labels. |
| Integrator runtime-image closure | Done | All 19 contracts compared
using third_party_dependency_modules against origin/main; zero added
third-party modules. Incorporated PR #23355 branch and added GPU
closure/shim regressions. |

## Conflicts and shared contracts

Resolved person_pool.py by retaining incoming quality checks and wave-1
type annotation; duplicate_capture.py retains both lifecycle serving and
cross-device imports. Generated artifacts are regenerated from
generators, not resolved by hand. ContentKind has one literal definition
shared by stored/create models and policy; request classification stays
hidden/server-authored. BoundaryKind includes media_playback once.
Participant count and owner anchor live only in SpeakerEvidence. Call
fields are additive optional Conversation metadata; explicit boundary
proof survives canonical normalization and wire round trips. V4
persisted stubs pass through M with null generated_at. Media/noise-only
days report not_generated rather than falsely saying no recordings;
actual empty days keep no_recordings. Both one-shot and agentic prompt
mounts are exercised in off/shadow/serve.

The pipeline guide records integration, sampling, call/recap/prompt
contracts, replay and pending socket semantics. The developer storage
guide explains original-recording retention and unknown/remote metadata
without publishing rollout controls. Dead-code analyzer regenerated its
baseline without new suppressions; the allowlist tool deliberately never
auto-edits allowlists. Existing evaluator-only exceptions remain, and
imported wave-1 contract scaffolds have no stale allowlist entries.

## Runtime image closure audit (fix pass)

Merged fresh origin/main at 81270c6
after #23355 landed. It merged without conflicts and leaves exactly the
same source tree as fix commit ed2c034. Before #23355 landed, also
merged origin/fix-parakeet-policy-closure at
2d3ec70; its remote branch was deleted
after merge. No unseen remote integration commits were overwritten.

The audit independently executes each revision's
backend/scripts/runtime_image_contracts.py
third_party_dependency_modules(contract) over every registered contract
(including lazy imports), without importing application code or reading
production. There are **zero added and zero removed third-party probe
targets across all 19 images** against the final main base; no new
lockfile/requirements package is needed.

| Runtime image | Added third-party modules | Removed probe targets |
| --- | --- | --- |
| backend-api | None | None |
| backend-workers | None | None |
| backend-realtime | None | None |
| backend-gateway | None | None |
| backend-pusher | None | None |
| backend | None | None |
| desktop-backend | None | None |
| pusher | None | None |
| models | None | None |
| memory-maintenance-job | None | None |
| x-connector-sync-job | None | None |
| frame-request-retention-job | None | None |
| day3-reengagement-email-job | None | None |
| notifications-job | None | None |
| diarizer | None | None |
| batch-pipeline-worker | None | None |
| parakeet | None | None |
| nllb-translation | None | None |
| plugins | None | None |

The earlier comparison against pre-#23355 main
4499deb had zero additions in all
images; the only removals were batch-pipeline-worker: fastapi.Request,
google.api_core.exceptions.AlreadyExists, google.cloud.tasks_v2,
google.protobuf, google.protobuf.duration_pb2 and
google.protobuf.timestamp_pb2; and parakeet: utils.speakers.policy plus
its BATCH_CLUSTER/PARAKEET_CLUSTER attribute candidates. Those are the
intended #23355 repairs, now present on both sides of the final
comparison.

Batch retry policy imports the dependency-light utils.capture.retry_cap
core, avoiding utils.sync.retry_hygiene -> utils.cloud_tasks.
Dockerfile-overwritten first-party shims are explicitly excluded from
checkout dependency probes: parakeet excludes utils.logging_config and
utils.speakers.policy; diarizer excludes omi_logging,
utils.logging_config and utils.stt.diarization_turns; nllb-translation
excludes omi_logging. The copied implementations are
standard-library-only. Full-backend/pusher copies use their real source
modules rather than checkout shims. Four new regressions verify the
three shim contracts and the batch worker's separation from Cloud Tasks.
Full final JSON evidence: image-closure-diff.json; earlier comparison:
image-closure-diff-pre23355.json; reproducible script:
audit-image-closure.py.

## Additional integration findings

- Done: M's successful-row timestamp fallback incorrectly gave persisted
V4 pending/failed/empty/not-generated stubs a creation-based
generated_at. The read adapter now preserves null; five direct
regressions, four actual producer-to-reader cases and a real REST smoke
cover it.
- Done: V4 used no_recordings after filtering a nonempty media-only day,
contradicting M's true recording count. That state is now not_generated,
with actual shared-policy generation regression; true empty-day behavior
is unchanged.
- Done: wave-1 abstention must preserve labels while V1 independently
consolidates compatible count clusters. Processing now keeps that
separation and null-speaker protection.
- Done: hermetic Firestore readiness fixture now includes the new MCP
query registry dependency in its copied control checkout; readiness
behavior and index enforcement remain unchanged.
- Done: whole-backend reason-label ratchet identified three new dynamic
label sites. Media/call metrics now expose closed normalization at the
label call, and person voice rejection uses a central three-reason enum
with an unknown fallback. The guard/debt list is unchanged; a new
regression prevents unbounded quality labels.
- Done: omit an empty speaker energy header so inactive cache
serialization remains byte-identical to the existing format; populated
energy metadata still round-trips. Whole-suite cache parity regressions
and four explicit cache tests cover both contracts.
- Done: isolated legacy fixtures retain real pure policies/metric owners
before package stubs, initialize media admission state, execute call
metadata in explicit off mode, and stub new profile/screen reads. Usage
tests supply eligible recordings and target the retained legacy budget
entrypoint; task response assertions include additive source without
exposing lifecycle fields. Historical telemetry byte parity runs with
speaker evidence off, while active energy cache reload has a separate
regression. Voice-pool retention fixtures use compatible, normalized
samples; V1 rejection guards remain intact.

## Validation

Pre-V4 combined validation on ec9bd4f6695: **2,725 passed across 97
focused backend files**, 15 standard marker deselections, no skips. Real
live name gating, media processing/persistence/restore, replay, recap
consumers and V4/M stub timestamps have integrated regressions.
Repository preflight: **65 selected checks passed**; metadata
validation: five passed. Separate CI slow guardrails: **2,049 passed**,
1,342 deselected (all 25 manifest files). Flutter
capture/labels/Home/parity: **86 passed, 5 existing skips**. Swift
capture/group/decoder suites: **33 passed**. Actual loopback
REST/JSON-RPC smoke: **nine passed**, external connects blocked and
synthetic stores only; server stopped. Full backend Pyright: **zero
errors**, existing warning debt retained.
App-client/public/integration-public OpenAPI and all
Dart/Swift/TypeScript generators completed; dead-code baseline
regeneration made no suppressions or tracked changes.

Final whole-backend selection: **2,244 runnable files**, **48,510
passed**, 84 skipped and 2,120 deselected by the standard marker policy.
It ran once and reported 496 failed cases plus nine setup errors across
**14 files**. Those exposed the cache header/metric-label contracts and
isolated fixture dependencies described above. All 14 failed files are
repaired: the final 15-file scoped selection passed **860 tests**,
followed by **94 passed** in the workflow fixture after its missing
module copy was added (**954 green scoped tests across 16 files**,
including the new cache and quality-label regressions). The whole suite
was not rerun. Logs: integration-full-backend.log,
integration-failed-files-final.log and integration-workflow-repair.log
in this brief directory.

Post-V4 validation also passed: full Pyright zero errors; all 25 CI
slow-guardrail files 2,049 passed/1,342 deselected; Flutter 86
passed/five skips; Swift 33 passed; loopback HTTP smoke nine passed.
Repository preflight passed 65 checks after the cache repair; metadata
passed five checks. V4/shared composition passed all 13 cases and
latest-main FinOps selection passed 113 tests across six files.
Regenerated OpenAPI and Dart/Swift/TS artifacts are current. All backend
suites use nice -n 10, the worktree-local Python 3.11 environment and
BACKEND_UNIT_TEST_FILE_LIST through omi-heavy. The normal pre-push gate
**passed** on pushed head **9fc0e7118efd407b933b7f7e1417cbfe0e958529**:
65 preflight checks, full Pyright (zero errors), runtime source closure,
the bounded 40-file backend selection, generated OpenAPI/Dart/Swift
artifacts and the native Swift build. No hook was bypassed. The remote
wave2-integration ref was verified equal to that head after the push.
GitHub reports a completed/skipped Mintlify check and no commit status
checks; this branch-only handoff does not claim full PR CI.

No production reads, api.omi.me calls, user content, cloud changes,
device claims or deployment. GCP tier: none. Local validation is not
full PR CI or production acceptance; no PR is authorized.

## Fix-pass verification

The 16-file focused selection passed 475 tests. After adding four
runtime-image regression cases, its image-contract file passed all 66
tests (the original 62 plus four new), giving **479 distinct focused
cases green across the 16 files**. Full Pyright passed with zero errors
(48,941 non-blocking warnings). Logs: fix-pass-focused-tests.log,
fix-pass-image-tests.log and fix-pass-pyright.log. The whole backend
suite was not rerun. No Flutter or Swift source changed in this pass;
the normal pre-push gate still performs its configured native/generated
validation.

The full metadata/preflight run passed 65 checks in 250.84 seconds
(fix-pass-metadata.log). The subsequent merge of main is
source-identical: both source trees are
33f6033. Current fix-pass head is
58d4c61. The normal pre-push gate
passed on 58d4c61: 65 preflight checks
(189.64 seconds), full Pyright zero errors, runtime source closure, the
bounded 40-file backend selection, OpenAPI/generated-client checks and
native Swift build/checks. The fast-forward push 9fc0e71 ->
58d4c61 completed, and git ls-remote verified that exact full SHA at
refs/heads/wave2-integration on 2026-10-22 23:15:18Z. Working tree is
clean. GitHub reported zero commit statuses and zero check runs at
verification; no full PR CI claim is made. No approval or hook bypass
was used. Log: fix-pass-push.log. Final saved handoff metadata
revalidation passed five checks (fix-pass-metadata-final.log).

## Owner-replay fixes (wave-1 code, found by the offline replay)

- Episode boundaries: screen-meeting contexts carry the shared sentinel
id `screen-activity`, so every screen window hashed to one
boundary-signal identity (a later window was rejected as an immutable
start change; batches collapsed). `context_signal` now drops that
sentinel and screen-source ids, so each window keys by its own start.
Behind `EPISODE_BOUNDARIES_MODE` (shadow writes are sampled). Test:
`test_distinct_screen_windows_get_distinct_identities`.
- Contact spelling: a contact the user created by hand (no voice labels
yet) was excluded from trusted spellings, so a correct contact name
never reached the notes prompt. `is_user_created` is written only by the
user create and rename paths (automatic detection never creates people),
so it now counts as stored user evidence. This intentionally applies to
the legacy prompt too: it only adds names the user typed.

- Shadow cost: the media/noise classifier
(`relevance_media.classify_for_processing`) and cross-device reconcile
(`coverage_crossdevice.reconcile`) read Firestore per finalize. Their
shadow now runs for a 5% uid sample (`MEDIA_NOISE_MODE_SHADOW_PERCENT`,
`CAPTURE_COVERAGE_MODE_SHADOW_PERCENT`) via
`refactor_modes.shadow_sampled`; serve cohorts always run. Found by the
default-inertness audit.

## Risks and remaining work

Precision-first speaker/media and whole-secondary alignment can abstain
or retain duplicates. Missing SNR/confidence uses deterministic
source/duration order. V3 live secondary receipt dispatch and
partial-window suppression require durable frame alignment; only exact
committed aliases may release custody. No historical memory/task/recap
repair. MCP indexes are declared but not deployed; fallback and
bounded-window uncertainty remain explicit. Historical watching
intervals and past recap failure causes cannot be reconstructed. Runtime
TTL activation and all serve ramps remain separately scoped operator
work. V4 screen/desktop positive-proof production and automatic stale
task mutation remain partial; the supplied backend boundary and both
notes prompt hooks are integrated.

Invariant-Impact: INV-AUTH-1, INV-MEM-1, INV-MEM-3, INV-MEM-4,
INV-MEM-5, INV-CAP-1, INV-TASK-2. Auth/privacy and canonical memory/task
authorities are preserved; capture custody requires exact durable proof.
No unsupported attribution becomes an owner claim.

Failure-Class: FC-split-mutation-authority
V3 lane classification: FC-same-speech-captured-twice-surfaces-twice
M lane classification: FC-raw-page-limit-before-visibility-filter
Failure-Class-Guard: backend/tests/unit/test_cross_device_coverage.py
Failure-Class-Guard: backend/tests/unit/test_wave2_media_integration.py
Failure-Class-Guard: backend/tests/unit/test_mcp_read_correctness.py

Wave 1 client evidence is retained in this integration; V2 adds no UI
source:
![Shadow
Home](https://raw.githubusercontent.com/BasedHardware/omi/5d66b99f2460e1a591d87df7323789244180f7ca/.agent-artifacts/ui-evidence/refactor-l5-clients/001-mobile-ios-home-shadow.png)
![Serve
Home](https://raw.githubusercontent.com/BasedHardware/omi/5d66b99f2460e1a591d87df7323789244180f7ca/.agent-artifacts/ui-evidence/refactor-l5-clients/002-mobile-ios-home-serve.png)



Line-Count-Exception: backend/database/users.py | 2496 -> 2507 | Small
authority integration hooks; substantive policy lives in focused owning
modules.
Line-Count-Exception: backend/routers/listen/receiver.py | 2780 -> 2782
| Thread authenticated request identity into the two existing Soniox
call sites; vocabulary policy stays in its owning module.
Line-Count-Exception: backend/routers/listen/transcripts.py | 1648 ->
1655 | Small authority integration hooks; substantive policy lives in
focused owning modules.
Line-Count-Exception:
backend/utils/conversations/process_conversation.py | 3212 -> 3233 |
Small authority integration hooks; substantive policy lives in focused
owning modules.
Line-Count-Exception: backend/utils/conversations/speaker_resolution.py
| 1560 -> 1564 | Small authority integration hooks; substantive policy
lives in focused owning modules.
Line-Count-Exception: backend/utils/sync/pipeline.py | 3657 -> 3671 |
Small authority integration hooks; substantive policy lives in focused
owning modules.

🤖 Generated with [Claude Code](https://claude.com/claude-code)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants