Repository navigation
Conversation
|
Thanks for the detailed reliability work here. I’m not approving because this is still a draft, touches BLE/storage/workflow surfaces, and the current head has a blocking CI failure. Main blocker I found:
Agent-behavior/docs note for maintainers:
The BLE/storage-authoritative implementation is cohesive around one capture/reconnect/backlog reliability surface, and I’m not asking for a split just because it is large. Before this is ready for maintainer merge review, I’d want passing Android native/compile CI plus maintainer confirmation of the physical-device evidence workflow. by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with |
875d1ed to
2462adb
Compare
|
Thanks for the update here. I re-reviewed the current head ( Update since my previous automation comment:
Agent-behavior/docs maintainer note remains important: Implementation direction looks cohesive around the CV1 storage-authoritative capture/reconnect/backlog reliability surface, and I’m not asking for a split solely due to size. For final review I’d want the PR out of draft, required checks green, and human maintainer confirmation of the physical-device evidence/agent-doc procedure. by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with |
59abaf5 to
3bf17fa
Compare
|
Quick maintainer triage (not an approval):
Leaving unapproved; not merging. |
3809e1b to
c08e935
Compare
|
Thanks for the continued updates here. I’m still keeping this as human-maintainer review rather than approval: the PR is draft, it touches BLE/GATT ownership, storage/WAL recovery, physical-device evidence, and workflow/test routing, and the current head still has blocking checks. Current blockers I see on
Agent-behavior/documentation note: this PR changes I’m not asking for a split just because this is large; the change still appears cohesive around the CV1 storage-authoritative capture/reconnect/backlog reliability surface. Before final review, please take it out of draft, get the required checks green, and make sure the physical-device evidence procedure is maintainer-approved. by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with |
c08e935 to
84afb47
Compare
|
Thanks for the latest head update. I’m still keeping this at human-maintainer review rather than approval: the PR is still draft and it materially changes BLE/GATT ownership, storage/WAL recovery, physical-device evidence procedure, and workflow/test routing. Current status on
Agent-behavior/documentation note remains important: I’m not asking for a split solely because this is large; it remains cohesive around the CV1 storage-authoritative capture/reconnect/backlog reliability surface. Next merge-review prerequisites are: take it out of draft, get required checks green, and have a maintainer confirm the physical-device evidence/agent-doc procedure. by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with |
|
Coordination / decision record (current state checked 2026-08-01): this remains the open draft for the sole companion-app/native BLE ownership direction. #10654 is the sole firmware/storage-authority direction; this PR depends on the exact protocol/artifact qualified there. Recommended order: stabilize/rebase #10654; qualify the exact protocol and artifact; merge its code without immediate broad firmware promotion; rebase/retest/merge #10656 against that contract; then release the compatible app before firmware promotion. Do not add a parallel foreground/visible-transcription PR while these drafts own the moving BLE/WAL/live/backlog lifecycle paths. Evaluate visibility policy only after both land and are qualified. Open a focused policy PR only if measurement shows live-tail/WebSocket activity with no visible transcript surface is materially excessive: proposed trigger P95 >60 seconds/device-day across at least 100 CV1 device-days. Until then, WAIT rather than create a competing transition authority. Historical/adjacent evidence to reuse without creating another owner:
Qualification gates before app release / firmware promotion:
|
Build 110 physical iOS qualification (2026-08-04)Fresh-device test used the exact composite dev IPA with production removed so BLE ownership could not be stolen by a second Omi app.
The committed runbook/evidence is This physical build was intentionally composite: it includes this PR plus the session-bound iOS GATT stack from #10573. The result must not be read as proof that either PR head alone contains the entire tested binary. Push note: shared PR preflight, Flutter generated-output checks, and unrelated desktop Swift compilation were explicitly deferred to CI using the repository's documented hatches; focused app/native tests were run locally. |
iOS standalone dogfood recovery and BLE follow-up (2026-08-04)The isolated iOS dev app died during a historical backup pull and then crashed on every SpringBoard relaunch. Five device crash reports were preserved before recovery. The final three were identical: This was the detached Flutter debug/JIT artifact failing to cold-launch without Recovery:
Corrective BLE note: the first profile process survived but the tester did not see the pendant, so process survival was not accepted as a complete gate. A subsequent instrumented profile relaunch reclaimed exact saved pendant Disposition: the pendant is connected now, but the initially missed profile UI/device state remains an intermittent cold-start bootstrap finding. Future qualification requires native Full incident and evidence are committed on |
|
Thanks for the build-110 iOS qualification and standalone dogfood follow-up. I re-reviewed the current head ( New review note from the latest evidence:
Agent-behavior/documentation note remains important: I’m not asking for a split just because this is large; it is still cohesive around the CV1 storage-authoritative capture/reconnect/backlog reliability surface. The remaining gate is maintainer qualification/sign-off of the exact landing stack and evidence procedure, not PR size alone. by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with |
Buffer out-of-order flash pages and advance the pendant's cumulative delete watermark only across a contiguous, fsynced prefix. Failure-Class: none
Validate the full announced record range, flush and register local WALs, and send ADVANCE only after a successful DONE. A partial notification stream or process-visible file write is no longer enough to discard pendant records. Failure-Class: none
Failure-Class: new
Failure-Class: new
Keep storage-authoritative capture live by default, repair only the open-conversation window automatically, and require Sync or Auto Sync before historical pendant data can drain. Charging is capacity only and cannot authorize transfer. Hold the durable live tail on the pendant while transcription is unavailable. Verified: 93 focused Flutter reliability tests; full 1,178-test app suite; analyzer ratchet; authenticated Android build and Bluetooth reconnect/no-drain run. Failure-Class: FC-split-mutation-authority
When CoreBluetooth relaunches the app with Background Mode disabled, release the exact restored peripheral and defer Flutter reconnect requests until a real foreground activation. Preserve restoration only for the existing explicit Background Mode opt-in. Verified: both native BLE ownership suites pass; signed isolated iOS profile build installs with authentication and pairing preserved. Final cross-host physical handoff remains pending an unlocked iPhone. Failure-Class: FC-split-mutation-authority
Failure-Class: new
Failure-Class: new
Failure-Class: FC-customer-data-plane-divergence
Make explicit Fast Sync own one fixed ring target, durably preserve recovered ranges before acknowledgement, release BLE on completion/cancel/failure, and return to live capture. Reconstruct recovery sequence-first and expose truthful determinate progress without fabricating device storage bytes. Verification: app/test.sh (1260 passed); app/scripts/analyze_ratchet.sh; git diff --check; physical iOS fixed-snapshot drain/cancel/live-resume pass documented under ~/Omi-CV1-Reliability-Work/evidence/fast-sync-ios-2026-08-05. Local make preflight passed selected lanes through product-file-line-count-ratchet, then stopped on the out-of-scope backend/AGENTS.md size budget. Failure-Class: none
90927b4 to
34750cf
Compare
2026-08-05 Fast Sync qualification updateCommit Behavior now pinned
Physical iOS resultFixture: isolated authenticated dev bundle, exact pendant
Permanent redacted evidence, screenshots, hashes, and excluded invalid runs Verification
Promotion boundaryThis remains a team-test draft. Voice gating is intentionally out of scope. |
Fail closed when a physical iOS handoff artifact contains Flutter's debug JIT kernel, keep personal signing and device identities in ignored maintainer config, and install the signed profile build in place so auth and durable sync state survive. Verification: ios-dogfood-artifact-mode manifest check (2 passed); Android/iOS physical auth manifest checks passed; bash -n and shellcheck passed; profile build completed and codesign verified; former v5 JIT app rejected before device mutation; v6 profile app installed in place, cold-launched, and remained alive with no new Runner crash report. Failure-Class: none
Configure and activate the shared speech playback session before advancing FlutterSoundPlayer, and release only the session this player owns on stop, completion, or failure. Verification: flutter test test/unit/audio_player_utils_test.dart; full Flutter app suite (1266 passed); app/scripts/analyze_ratchet.sh; signed profile/AOT build, codesign verification, guarded in-place install, and cold launch on the physical iPhone. Failure-Class: new
Classify HTTP 413 at the sync boundary, retain the immutable source batch, stop deterministic automatic retry churn, and keep later healthy recordings moving through the same drain. Explicit row retry remains available. Verification: flutter test test/unit/wal_upload_resilience_test.dart test/unit/local_wal_sync_test.dart; full Flutter app suite (1266 passed); app/scripts/analyze_ratchet.sh. Failure-Class: new
Reject persisted capture ends that precede encoded payload duration, publish canonical ends no earlier than playable audio, and order logical playback by immutable pendant sequence across RTC corrections. Verification: flutter test test/unit/wal_recovery_test.dart test/unit/conversation_audio_assembler_test.dart test/unit/local_wal_sync_test.dart test/providers/sync_provider_sync_wal_wake_test.dart; full Flutter app suite (1266 passed); app/scripts/analyze_ratchet.sh. Failure-Class: new
Document the physical recovered-playback route check and the non-destructive 413 queue contract, including why an app-only split into independent cloud jobs is unsafe.
|
Thanks for the continued qualification work here. I re-reviewed the current head ( What looks positive:
Current merge-review blockers:
Agent-behavior / maintainer-doc note:
I added the by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with |
|
Closing this experimental CV1/storage-first branch. The only firmware reliability change being carried forward is #11578; this PR is not part of that release candidate. |
|
Hey @axAilotl 👋 Thank you so much for taking the time to contribute to Omi! We truly appreciate you putting in the effort to submit this pull request. After careful review, we've decided not to merge this particular PR. Please don't take this personally — we genuinely try to merge as many contributions as possible, but sometimes we have to make tough calls based on:
Before your next PR, please skim:
If this was declined for direction or taste, maintainers should cite an invariant ID or open a proposed one — ask if that citation is missing. Your contribution is still valuable to us, and we'd love to see you contribute again in the future! If you'd like feedback on how to improve this PR or want to discuss alternative approaches, please don't hesitate to reach out. Thank you for being part of the Omi community! |
Summary
Companion-app support for the storage-authoritative CV1
3.0.29firmware in #10654.The operating contract is now explicit and shared by Android and iOS:
Physical five-minute archives and bounded ring reads are transport boundaries, not conversation boundaries. The app assembles adjacent, provably ordered ranges within the configured silence window into one logical recording and one upload job.
The proposed
INV-CAPTURE-1contract now records this end-to-end behavior in the repository: pendant storage → shared companion policy → live preview → idempotent upload → backend conversation projection. Native Android/iOS code owns transport mechanics, not conversation boundaries.This remains a team-test draft. It is not ready for public beta promotion.
Root cause
Live notifications, recent-gap repair, historical sync, BLE restoration, and WebSocket recovery previously had overlapping authority.
That allowed several regressions:
api.omiapi.comas production even though that live socket closed before readiness.The charging behavior entered this feature stack in
47be02d84c; it was not a pre-existing product invariant. This PR removes it from the authority boundary.What changed
Durable storage and conversation assembly
ADVANCE;Explicit live/backlog authority
The policy lives in shared Dart code, so Android and iOS cannot silently choose different live/backlog behavior.
BLE ownership
Diagnostics and developer fixtures
https://api.omi.me/, even when Firebase auth would succeed;Regression coverage
The tests pin these contracts:
.inactivelaunch state as foreground;Physical Android evidence
Authenticated dev build, exact paired CV1 on
3.0.29, Auto Sync off:https://api.omi.me/plus the production Firebase account universe; the canonical live socket reachedreadyin about 0.72 seconds;droppedremained0in the completed recovery runs;The previous no-preview result was invalid hardware evidence: the dev APK targeted
api.omiapi.com, whose WebSocket upgraded and then closed with code 1006 before its first service event. The same authenticated probe againstapi.omi.mereachedinitiating→conversation_session→ready; the corrected build then passed the physical live/reconnect path above.Redacted evidence:
app/e2e/ANDROID_CV1_STORAGE_FIRST_RUN_2026-07-28.md.Physical iOS evidence
Authenticated signed isolated dev build; the production app was not replaced:
bluetoothd/SpringBoard were restoring the physical link before Flutter foreground policy ran;The final four-leg iOS → restored-background-iOS → Android → foreground-iOS handoff remains unclaimed until the plugged-in iPhone is unlocked and all four legs pass.
Redacted evidence:
app/e2e/IOS_CV1_STORAGE_FIRST_RUN_2026-07-29.md.Verification
api.omiapi.comand consume the same executable authority;assembleDevDebug: passed and installed in place;git diff --check: passed;BasedHardware/omi:main;INV-CAPTURE-1is introduced and cited;FC-split-mutation-authority.The full local
make preflightcurrently stops at the repository-wideagents-md-leancheck becauseweb/admin/AGENTS.mdis 1,812 bytes against a 1,500-byte baseline. The file is byte-identical to current upstreammainand is not part of this PR. All selected checks before that upstream-main blocker passed. This draft does not claim a green full preflight.Known limits before promotion
/v2/sync-local-filesstill does not consume the app's canonical transcript replacement request, so recovered content can be correct while the final conversation duration/origin remains wrong;Depends on firmware draft #10654.
Product invariants affected
INV-CAPTURE-1(proposed): establishes the single durable conversation timeline, live-priority scheduling, explicit historical-sync authority, truthful live state, and cross-platform policy boundary. No locked invariant path is matched by this diff.Failure class
Failure-Class: FC-split-mutation-authority
2026-08-05 Fast Sync qualification update
Commit
34750cf763closes the remaining app-side fixed-snapshot drain failuresfound during the physical iPhone run.
Behavior now pinned
target. Audio recorded afterward stays outside that target, so the drain can
finish even while the pendant continues recording.
intentionally paused, then resumes immediately after completion,
cancellation, or a recoverable transfer failure.
ADVANCE.Ambiguous recovered ranges remain durable and unowned instead of aborting
the acknowledgement transaction.
before wall-clock time, preventing RTC discontinuities from manufacturing
long transcript gaps.
Device used/free bytes remain an honest cached status sample rather than a
synthetic transfer counter, because newer audio may continue entering the
ring during the drain.
Physical iOS result
Fixture: isolated authenticated dev bundle, exact pendant
425529A3-6F68-F264-C0CA-DAC438DA1240, internal firmware3.0.30build 110,with
OMI_BLACKBOX_HARNESS=trueasserted at runtime.card.
+60 seconds while the target drained.
identified that the byte card was stale until navigation; the new
determinate target-progress UI addresses that observability defect without
falsifying the cached byte sample.
appeared automatically without tapping the card.
target advanced to cloud upload in under nine seconds, so the intermediate
percentage is regression-test pinned rather than claimed as a long physical
observation.
Permanent redacted evidence, screenshots, hashes, and excluded invalid runs
are in:
~/Omi-CV1-Reliability-Work/evidence/fast-sync-ios-2026-08-05/REPORT.md.Verification
app/test.sh: 1,260 tests passed.app/scripts/analyze_ratchet.sh: passed.git diff --check: passed.FC-split-mutation-authority.product-file-line-count-ratchet, then stopped at the existingagents-md-leandebt:backend/AGENTS.mdis 39,089 bytes against a39,000-byte budget. That file is outside this app commit. This update does
not claim a green full preflight.
backend type/unit checks, runtime-image closure, OpenAPI compatibility,
generated Flutter output, and desktop-flow metadata. Its unrelated desktop
Swift lane then hit a local SwiftPM cache miss for FluidAudio commit
19600a485baa4998812e4654b70d2bab8f2c9949; the documented app-only hatch wasused rather than changing desktop dependency state in this PR.
Promotion boundary
This remains a team-test draft. Voice gating is intentionally out of scope.
Public promotion still needs matched Android qualification, post-drain
duplicate/order/conversation-binding inspection, process-death ownership
coverage, and battery/thermal measurements.
Standalone iOS dogfood handoff correction
The v5 physical session was valid while Flutter tooling was attached, but the
phone was incorrectly handed back with that debug/JIT artifact still
installed. It crashed after approximately 23 minutes and two SpringBoard
relaunches then failed in native notification-plugin registration before Dart
started. This was a build-mode/handoff failure, not a Fast Sync protocol
failure.
The branch now contains a reproducible physical-config bootstrap, signed iOS
profile builder, and guarded in-place dogfood installer. The installer refuses
Flutter artifacts containing
kernel_blob.bin, verifies the exact Firebase,bundle, signature, and application identifiers, preserves the app data
container, and proves a cold launch. The former v5 debug artifact was
physically rejected by the guard; signed v6 profile/AOT was installed over the
same bundle and remained running after cold launch, with no new Runner crash
report. The final unattended handoff rule and crash signature are documented
in
app/e2e/BLE_RELIABILITY_ACCEPTANCE.mdand the permanent evidence report.The handoff boundary is now registered in
.github/checks-manifest.yamlforboth Linux and macOS. Its hermetic core/error-path test accepts a signed AOT
fixture and rejects a JIT
kernel_blob.binfixture before any device commandcan run. The same guard physically rejected the former v5 debug artifact and
accepted the signed v6 profile artifact. Personal team, signing, provisioning,
and device identities remain only in
~/.config/omi-mobile-test/ios-physical-test.env, never in the public branch.2026-08-05 post-drain playback and upload correction
The completed physical Fast Sync drained the pendant from roughly 20% used to
1% used and transferred the fixed snapshot to the iPhone. Inspection then
separated failures that initially looked like corrupt recovered audio:
the exact cached WAV recovered spoken test markers, so the pendant capture,
BLE transfer, and logical materialization did not produce an empty file.
session, which could yield a moving waveform with inaudible output after
route changes. Playback now configures and activates the session before the
player advances and releases only the session it owns.
That deterministic rejection blocked every later healthy recording behind
it. HTTP 413 is now typed at the API boundary; automatic sync retains the
rejected source and marks it exhausted while continuing with later jobs.
Explicit row retry remains available.
duration proved by their encoded frames. Recovery now preserves immutable
pendant sequence while publishing a canonical end no earlier than playable
audio duration. This fixes misleading sparse 30–60 minute rows without
splitting a sequence-contiguous archive at a wall-clock correction.
An app-only split of the 66.7 MB logical recording into independent cloud jobs
would violate conversation ownership and can create duplicate summaries. Full
cloud acceptance of recordings above the current request limit needs a
separate backend resumable/chunked-upload contract with one idempotent logical
recording identity. Until then the rejected source remains recoverable on the
phone and no longer stalls the queue.
Regression coverage and evidence
upload-resilience suites: 139 tests passed;
git diff --check: passed;auth/pairing preserved, and cold launch passed;
runtime-image closure, OpenAPI compatibility, Flutter generated output,
desktop-flow metadata, and formatting passed;
make preflightcannot run its manifest contract under the host'ssystem Python 3.9 because current repository syntax requires Python 3.10+;
SwiftPM cache lacks FluidAudio commit
19600a485baa4998812e4654b70d2bab8f2c9949; the documented app-only hatch wasused after every in-scope lane passed.
Physical audible playback from the newly installed profile build is the one
remaining user-observed assertion. The exact source audio's integrity is
already proven locally; this draft does not claim the iPhone speaker-route
result until that tap/play check is confirmed.