Repository navigation
Conversation
|
Thanks for putting this together. I reviewed this as maintainer automation for the current head ( What looks promising:
Before this should leave draft / be considered for merge, I’d want:
Agent-behavior/documentation note: this PR changes by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with |
6775d3e to
4d93663
Compare
|
Thanks for the update on the new head ( This remains a promising, coherent direction for CV1 reliability: the storage-authoritative capture path, durable ring transfer semantics, version-sync guard, and expanded host fault tests all line up with the failure mode described here. I also verified the added host durability suite in the pinned Zephyr CI image, and the CV1 BLE buffer/version-sync contract scripts pass locally. I’m still not approving or requesting changes from automation because this is a draft and still needs human maintainer/product sign-off before merge:
Agent-behavior/documentation note: this PR changes by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with |
4d93663 to
f520d10
Compare
Treat GATT TX completion as flow control only. Remove firmware-side auto-advance checkpoints and durably advance the SD watermark only in response to the app's explicit ADVANCE command. Failure-Class: none
Stop re-requesting aggressive connection parameters when a phone selects a slower interval; keep the negotiated callback observational. Failure-Class: none
Failure-Class: new
Reject DIS/MCUboot version drift before building, preserve reviewed nonzero build numbers for normal releases, and atomically synchronize explicit overrides. Bump the physically verified candidate to 3.0.28. Failure-Class: none Verified: NCS 2.9.0 Docker dual-core build; physical CV1 dual-core OTA; MTU 498 / PHY 2M; 3,996,000 bytes at 98.7 KiB/s with matching CRC; version suite; make preflight (46 checks).
Use right-sized dual-core ACL buffers, increase controller TX depth, and request a bounded 15 ms connection interval only while a contiguous ring drain is active. Restore the normal interval after the drain and keep rejection non-fatal. Physical iPhone validation sustained 50.97 KiB/s versus 15.96 KiB/s stock across 18,162,224 bytes (3.19x), with zero gaps or overlaps through reconnect, app restart, and OTA reflash. Failure-Class: none
Retain accepted audio across transient SD faults, commit ring state in durable order, bound remount recovery, report terminal loss explicitly, and keep DONE/ADVANCE idempotent. Treat rebooted time as unknown until live phone synchronization so stale or wrap-ambiguous IMU state cannot rewind conversation chronology. Bump the reviewed MCUboot image to 3.0.28+3. Verified: AppleClang and pinned GNU host durability suites; clean NCS 2.9 sysbuild (quarantined); make preflight (59 checks); version-sync mutation tests; git diff --check. Failure-Class: new
Align the nRF5340 controller Link Layer TX pool with both ten-packet host ACL pools, add a deterministic buffer-contract gate, and bump the dual-core OTA build identity to 3.0.28+4. Verified: BLE buffer-contract tests; firmware version-sync tests; AppleClang and GCC host durability suites; pristine NCS 2.9 dual-core sysbuild; make preflight (68 checks).
Wake the SD worker from ring INFO/READ commands, distinguish terminal media failure from a transient remount delay, and guarantee each pending command reaches a serve, retryable, or terminal result. Verified: AppleClang host durability suite; CV1 version-sync checker and mutation suite. Failure-Class: new
Store each encoded frame locally before any optional BLE preview, retain frames across temporary SD backpressure, and reserve live-only delivery for terminal media failure. Live preview stays disabled until shared capture-identity dedupe exists in the apps.\n\nVerified: host audio_storage_packer ctest passed with AppleClang and pinned GCC; full pinned NCS 2.9.0 sysbuild produced signed dual-core OTA, merged app image, and network-core image.
Restore the configured voice gate ahead of Opus and SD storage with 800 ms pre-roll, debounced opening, and conversational hangover. Reject partial codec-ring writes so bounded retry cannot corrupt PCM ordering. Verified: host durability suite (AppleClang and pinned container GNU); full pinned NCS 2.9 CV1 sysbuild produced DFU and merged images. Failure-Class: FC-split-mutation-authority
Avoid compound-literal spacing that differs between local clang-format 22 and GitHub's clang-format 18. Verified: clang-format 18 and 22 dry-run; host durability suite passed.
Use an adaptive debounced voice gate ahead of Opus and SD, separate the low-power conversation hold from the encoded-audio hangover, and carry the first frame capture timestamp through the TX queue, packer retries, and reconnect flushes. Verified: host durability suite; pinned NCS 2.9 dual-core sysbuild; connected, quiet, five-marker, Bluetooth-off, exact reconnect, and recent-gap recovery runs with dropped=0. Failure-Class: FC-split-mutation-authority
f520d10 to
6704526
Compare
|
Quick maintainer triage (not an approval):
Leaving unapproved; not merging. |
undivisible
left a comment
There was a problem hiding this comment.
Quick maintainer pass: large firmware storage-authoritative CV1 change (+6.5k/−0.9k) still in draft with needs-tests / workflow-review labels. Not merging from here.
Before ready-for-review: ensure storage-first contracts are covered by the new unit tests under tests/audio_storage_packer, CI scripts for BLE buffer/version sync stay green, and the dual app+firmware path with #10656 is sequenced deliberately. Happy to re-review once undrafted with a green firmware CI signal.
|
Coordination / decision record (current state checked 2026-08-01): this remains the open draft for the sole firmware/storage-authority direction. #10656 is the sole companion-app/native BLE ownership direction and must consume the exact protocol/artifact qualified here. 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 preserve without creating another authority:
Qualification gates for the paired rollout:
|
Internal CV1 black-box qualification updateThis work follows the coordination decision above: #10654 remains the sole firmware/storage authority and #10656 remains the sole app/native-BLE authority. I did not open a competing public PR. The rebased internal qualification branch is available at axAilotl/omi
Physical evidence
Verification
Remaining blockers before promotion
The useful firmware pieces can be transplanted into #10654 and the app ownership/scheduler pieces into #10656 after those blockers are pinned. Required cloud reconciliation contractThis is a paired backend follow-up, not a proposal to put cloud code in the firmware diff. The phone should remain responsible for compacting physical one-second ring/WAL fragments into one sequence-checked, wall-clock-correct canonical audio artifact. The backend is responsible only for reconciling that artifact with conversation state that the live WebSocket has already committed. The internal app path already sends Before storage-authoritative firmware promotion, the backend contract should:
Minimum behavioral coverage should prove: live A → Bluetooth-off B → reconnected C becomes one ordered A/B/C conversation; identical upload retry is a no-op; a stale canonical retry cannot replace a newer revision; an invalid manifest cannot mutate a conversation; and a gap beyond the configured silence boundary creates a separate conversation. Recommended rollout order is: land backend compatibility first, then the compatible #10656 app path, then promote the #10654 firmware artifact after paired physical qualification. |
Build 110 physical qualification update (2026-08-04)No new firmware durability/transport defect was observed in the latest controlled iOS composite run.
Do not interpret the photographed “+5 s” as firmware first-text latency: it was measured from the end of the spoken marker to the screenshot, after connection/session setup may already have been warming. Current evidence points first at app/session/socket/STT/UI ownership; firmware's storage-first buffering is one possible component, but attribution needs phase timestamps (connect → subscription → first durable frame → socket open → first transcript → UI paint). The complete review/handoff packet, build hashes, reset/recovery notes, exact preservation commits, PR comment IDs, and Kimi report pointer are preserved on fork branch 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; the bounded pre-push gate otherwise passed. |
Git-on-my-level
left a comment
There was a problem hiding this comment.
Maintainer automation review for the current head (670452686299). I’m not approving because this is still a draft and it changes core CV1 capture/storage semantics plus firmware release CI; it should stay with human firmware/product review before merge.
What I checked:
.github/checks-manifest.yamland.github/workflows/firmware_release.ymlnow add CV1 buffer/version contract gates and route release version syncing throughsync-cv1-release-version.sh; that is the right class of guard for the dual-core OTA failure mode, but it is release-workflow-sensitive and should be signed off by a maintainer.omi/firmware/AGENTS.mdchanges agent-facing firmware release/testing instructions. The guidance looks aligned with the new version-sync/build gate, but it will steer future AI coding/review agents in this repo, so it should be reviewed as part of the workflow change rather than treated as ordinary docs.omi/firmware/omi/Kconfigandomi/firmware/omi/omi.confmake storage-authoritative capture and live-preview-off the configured CV1 behavior. That is coherent with the draft’s stated direction, but it is a product/data-handling behavior change, not a mechanical firmware cleanup.omi/firmware/omi/src/lib/core/audio_storage_packer.c,transport.c, andsd_card.cconsistently route encoded frames through the packer/SD ring before optional live delivery, retain blocked frames for ordered retry, and expose terminal SD failure explicitly.omi/firmware/omi/tests/audio_storage_packer/test_audio_storage_packer.ccovers the host-native durability seams; I ran the pinned Docker host suite and it passed. The new CV1 BLE buffer and version-sync shell-contract tests also passed locally.
I’m leaving this as human maintainer review rather than a change request: I didn’t find a concrete production-code blocker in the sampled firmware paths, but the PR is still draft, current required checks include unrelated Desktop Swift failures, and the remaining before-promotion matrix/companion app sequencing (#10656) are human release/product decisions.
AI-assisted review by gpt-5.5 for maintainer triage; no approval or merge implied.
by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with need human response.
|
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
Make CV1 capture storage-authoritative: Opus audio is committed to the SD ring before BLE transfer, the app advances the device cursor only after durable local storage, and reconnects resume the same immutable recording instead of starting a second best-effort stream.
This remains a team-test draft. It is not ready for public firmware promotion.
Root cause
Live GATT notifications previously carried the only timely copy of audio. A phone stall, disconnect, or exhausted notification retry could therefore become an unrecoverable gap even when the pendant had storage. The first storage-first iteration also assigned timestamps when delayed audio was flushed rather than when it was captured, and the configured VAD did not actually gate PCM before Opus/SD.
What changed
ADVANCE; notification completion is flow control, not durabilityINFO/READ/ADVANCErecovery with idempotent terminal handlingPhysical CV1 verification
Tested after OTA flashing the latest
3.0.29artifact:read == writeand firmwaredropped=0Post-DFU exact-device reclaim still took about 111.7 seconds in one Android run, while an ordinary Bluetooth reconnect took about 2.8 seconds. That is an app-side blocker tracked in companion draft #10656.
Verification
PRE_PUSH_SKIP_FLUTTER_GENERATED=1hatch after the linked firmware worktreemisidentified the pinned Flutter SDK as
0.0.0-unknown; this branch changesno Flutter or generated app files, all 86 current-main PR contract checks
passed, and CI remains authoritative for that unrelated lane
v2.9.0dual-core sysbuild passed and produceddfu_application.zip,merged.hex, andmerged_CPUNET.hexmake preflightpassedRequired companion behavior
Firmware
3.0.29requires companion app draft #10656. The app keeps the newest head responsive, repairs gaps from the active two-minute conversation automatically, and drains older history only while charging or when the user opts in.Backend transcript/event interleaving and summary regeneration are intentionally deferred; this PR establishes reliable timestamped capture and transfer, not final conversation reconciliation.
Before promotion
Product invariants affected
none
Failure class (fixes)
Failure-Class: FC-split-mutation-authority