Skip to content

feat(firmware): make CV1 capture storage-authoritative - #10654

Closed
axAilotl wants to merge 12 commits into
BasedHardware:mainfrom
axAilotl:codex/cv1-storage-authoritative-demo
Closed

axAilotl wants to merge 12 commits into
BasedHardware:mainfrom
axAilotl:codex/cv1-storage-authoritative-demo

Conversation

@axAilotl

@axAilotl axAilotl commented Jul 26, 2026 •

Copy link
Copy Markdown
Contributor

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

  • commit encoded audio to the SD ring before exposing it for transfer
  • discard records only after explicit app ADVANCE; notification completion is flow control, not durability
  • provide bounded, CRC-checked INFO/READ/ADVANCE recovery with idempotent terminal handling
  • retain the first frame's capture timestamp through the TX queue, packer retries, delayed writes, and reconnect flushes
  • add an adaptive, debounced voice gate before Opus and SD:
    • 300 ms onset debounce
    • 800 ms pre-roll
    • 2 s encoded-audio hangover
    • 5 s false-wake AAD hold
    • 120 s active-conversation AAD hold
  • reject full PCM input before mutating the codec ring so bounded retry cannot leave a partial frame
  • honor negotiated phone connection intervals and request the faster drain profile only while contiguous transfer is active
  • raise nRF5340 host/controller TX capacity consistently and keep SD readiness/remount failure bounded
  • bind app-core, network-core, DIS, and MCUboot version identity for dual-core OTA
  • add host behavioral coverage and deterministic CI contracts for durability, timestamps, recovery, transfer integrity, BLE buffers, and version synchronization

Physical CV1 verification

Tested after OTA flashing the latest 3.0.29 artifact:

  • connected TTS marker: 287 Opus frames committed, uploaded, and acknowledged
  • Bluetooth-off speech was captured locally; after Bluetooth-on, the newest tail arrived first and the older gap followed automatically
  • normal Bluetooth reconnect reached GATT connected in about 2.8 seconds
  • five repeated markers produced 1,480 Opus frames / 29.6 seconds, matching the fixture span
  • every completed run ended with read == write and firmware dropped=0
  • the ring remained byte-for-byte flat during 148 seconds of silence
  • one later environmental sound still caused a roughly three-second false activation; the new gate substantially reduces short-clip churn but does not eliminate it
  • a delayed partial range retained its original capture timestamp instead of its later flush time
  • dual-core OTA completed in about 17.7 seconds

Post-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

  • the final current-main push used the documented
    PRE_PUSH_SKIP_FLUTTER_GENERATED=1 hatch after the linked firmware worktree
    misidentified the pinned Flutter SDK as 0.0.0-unknown; this branch changes
    no Flutter or generated app files, all 86 current-main PR contract checks
    passed, and CI remains authoritative for that unrelated lane
  • host audio storage/voice-gate durability suite passed
  • pinned GNU host suite passed in the NCS container
  • pinned nRF Connect SDK v2.9.0 dual-core sysbuild passed and produced dfu_application.zip, merged.hex, and merged_CPUNET.hex
  • CV1 BLE buffer contract tests passed
  • CV1 dual-core version synchronization tests passed
  • repository make preflight passed
  • real authenticated Android dev app plus physical CV1 tests described above

Required companion behavior

Firmware 3.0.29 requires 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

  • repeat the matrix on iOS with the final app build
  • repeat phone reboot, pendant reboot, long out-of-range, app kill/relaunch, and multi-hour backlog cases
  • measure battery over a full day for idle, active conversation, recent repair, and opt-in historical drain
  • tune the remaining environmental false activation using labeled quiet speech, typing, pocket, traffic, and in-car fixtures
  • reduce and repeat the slow Android post-DFU reclaim path

Product invariants affected

none

Failure class (fixes)

Failure-Class: FC-split-mutation-authority

@Git-on-my-level

Copy link
Copy Markdown
Member

Thanks for putting this together. I reviewed this as maintainer automation for the current head (3bd6abd). I’m not approving because this is still a draft, changes core CV1 capture/storage semantics, touches firmware release CI, and needs human/product + hardware sign-off before merge.

What looks promising:

  • The direction is coherent: making SD/ring storage authoritative, avoiding GATT TX-completion-as-durable-ack, and adding host-native durability/fault contracts all match the reliability problem this PR is targeting.
  • The added host durability suite builds and passes for me in the pinned Zephyr CI Docker image, and the new CV1 version/buffer contract scripts pass locally.
  • The release-version sync guard is a useful protection against DIS/MCUboot drift.

Before this should leave draft / be considered for merge, I’d want:

  • A maintainer decision on the product behavior change: live preview is intentionally disabled in this demo path until app-side dedupe exists, so this changes latency/user experience even if it improves capture durability.
  • Current GitHub checks rerun clean on the final non-draft head; the context I reviewed still has cancelled/skipped repo checks recorded for Formatting/Hygiene/Detect Changes.
  • Hardware validation evidence on the target CV1, especially power-loss/system-off, SD remount/retry, terminal SD failure/live fallback, one-hour backlog, reconnect/ring drain, and downgrade/recovery path behavior. The host tests are good, but they cannot prove the physical SD/controller and BLE timing boundaries.
  • Firmware-release workflow review, since this changes .github/workflows/firmware_release.yml, .github/checks-manifest.yaml, and the versioning scripts that gate/publish firmware.

Agent-behavior/documentation note: this PR changes omi/firmware/AGENTS.md and adds omi/firmware/omi/tests/audio_storage_packer/README.md. Those files can steer future AI coding/review agents toward the new CV1 durability contract tests and release-version workflow. The guidance looks generally safe and repo-local/pinned, but because it changes what agents will treat as the firmware test/release path, it should be part of the human maintainer review rather than auto-approved.


by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with need human response.

@Git-on-my-level Git-on-my-level added needs-maintainer-review Needs a human maintainer to sign off before merge workflow-review Needs maintainer review for workflow, automation, hooks, or CI behavior needs-tests PR introduces logic that should be covered by tests labels Jul 26, 2026
@axAilotl
axAilotl force-pushed the codex/cv1-storage-authoritative-demo branch 2 times, most recently from 6775d3e to 4d93663 Compare July 27, 2026 16:16
@Git-on-my-level

Copy link
Copy Markdown
Member

Thanks for the update on the new head (4d93663). I re-reviewed this as maintainer automation.

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:

  • This changes core capture/storage semantics and depends on companion app behavior in fix(app): support storage-authoritative CV1 capture #10656, so the firmware/app rollout needs to be reviewed together.
  • Current GitHub checks are not clean on this head (Desktop Swift Build & Tests and Desktop Swift Static & Test Contracts are failing in the PR check view).
  • The PR body now includes useful physical CV1 evidence, but the remaining matrix called out there (iOS final app, reboot/long out-of-range/app relaunch/multi-hour backlog, battery, false activation tuning, and Android post-DFU reclaim) is exactly the kind of device/product validation a human maintainer should accept before promotion.
  • Firmware release workflow/check-manifest changes still warrant maintainer review because they affect how CV1 releases are gated and published.

Agent-behavior/documentation note: this PR changes omi/firmware/AGENTS.md and adds omi/firmware/omi/tests/audio_storage_packer/README.md. Future AI coding/review agents may treat these as the firmware release/test workflow and storage-first validation authority. The guidance looks safe, repo-local, and backed by the passing host tests I ran, but because it changes agent-facing release/test expectations it should stay in the human maintainer review set rather than be auto-approved.


by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with need human response.

@axAilotl
axAilotl force-pushed the codex/cv1-storage-authoritative-demo branch from 4d93663 to f520d10 Compare July 28, 2026 05:34
Alex Vega added 12 commits July 28, 2026 14:36
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
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
@axAilotl
axAilotl force-pushed the codex/cv1-storage-authoritative-demo branch from f520d10 to 6704526 Compare July 28, 2026 18:41
@undivisible

Copy link
Copy Markdown
Collaborator

Quick maintainer triage (not an approval):

  • Size: ~+6.6k/−0.9k across 58 files (firmware storage-authoritative CV1). Mergeable, but large.
  • CI: Desktop Swift Static & Test Contracts / Desktop Swift Build & Tests failing — odd for a firmware-focused PR; please explain the Swift surface touch or fix the noise.
  • Blockers before approve:
    1. Green CI (or document why Swift jobs are in path and fix them).
    2. Explicit flash/migration/rollback story for devices already capturing under the old model.
    3. Cross-link companion app PRs (fix(app): support storage-authoritative CV1 capture #10656 et al.) and define merge order so firmware doesn’t ship ahead of clients that understand storage-authoritative capture.
    4. Threat/failure notes: partial write, power loss mid-capture, dual-authority races during transition.

Leaving unapproved; not merging.

@undivisible undivisible left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@Git-on-my-level

Copy link
Copy Markdown
Member

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:

  • #10572 is the older divergent storage-authority implementation: audit it for unique fixes/tests, transplant those if needed, then supersede it rather than merge competing designs.
  • #10447 and #10431 are adjacent evidence for avoiding redundant raw-audio transports.
  • #10908 is useful Android background BLE lifecycle/resynchronization evidence, not a direct iOS implementation.
  • Merged #7981 establishes native offline/batch capture precedent that should be reused.
  • b8baadae1d is a benchmark/reference for native routing off the Dart hot path, not a blind cherry-pick because it overlaps fix(app): support storage-authoritative CV1 capture #10656's ownership changes.

Qualification gates for the paired rollout:

  • Exactly one ring-cursor owner and one audio-notification consumer per device/connection generation; never simultaneous Dart/native consumers.
  • Foreground/background transition is atomic at a durable WAL boundary; stale reconnect/socket callbacks cannot resurrect obsolete live capture.
  • With the socket unavailable, capture remains durable and reconnect/relaunch/Sync/gap repair produce no duplicate source IDs or uploads.
  • Session boundaries remain timestamp/silence authoritative.
  • Full-day battery/thermal runs cover locked/no-visible-transcript, visible live, out-of-range/storage-only, gap repair, historical drain, and near-full-ring stress, with dropped=0 and no corruption or duplicates.

axAilotl commented Aug 2, 2026 •

Copy link
Copy Markdown
Contributor Author

Internal CV1 black-box qualification update

This 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 codex/cv1-blackbox-diagnostics. The three newest focused commits are:

  • 09c90e37b6 — hardened internal-only firmware black-box tracing/export.
  • 4bec4c8300 — authenticated, side-by-side Android/iOS physical-test harness and repeatable setup.
  • ef4c9355b3 — cold-start conversation-owner reclaim, live-head-first ring scheduling, bounded recent repair, and wall-clock canonical capture bounds.

Physical evidence

  • Android: across a 23.564 s Bluetooth outage, Dart reconnected and the newest live-head read began 1.946 s later; the following read repaired the preceding 96-record gap. The final canonical window contained before/during/after utterances in source order as one file.
  • iOS: 33 exact contiguous ring ranges survived app termination/relaunch with zero source-sequence gaps. This proves transport/local durability, but not yet final semantic parity for speech captured while the app is down.
  • Firmware 12 h trace: 240,845 accepted audio frames with zero queue-full, storage-reject, retained-frame/drop, microphone-read, SD-health, sync, or diagnostic-busy errors. Final negotiated link was 15 ms / MTU 498 / 2M PHY / DLE 251; 27,269,592 bytes were read from sync.
  • The exact physical-test artifact SHA-256 is 38c8d25de638eda065b88d04e4be854ce1bdc07b491a199a4fa453ad1ff12393. A clean pinned NCS 2.9.0 rebuild after the final source changes produced cbebda3e9fce626fe997b535fa76377f42a66d80d9d12e8048c74fc65057ebf8; that rebuilt zip has not been represented as physically flashed.

Verification

  • Rebased onto current origin/main (98664f58f15a).
  • 281 focused Flutter tests passed.
  • Focused analyzer: no errors or warnings; two unchanged informational findings.
  • Firmware host durability/trace tests: 2/2 passed.
  • Pinned NCS 2.9.0 dual-core CV1 sysbuild passed (app core flash 27.94%, RAM 78.68%).
  • make preflight: 99/99 selected checks passed.
  • Bounded pre-push gate passed. Its desktop Swift compile was skipped only after the local SwiftPM cache proved unable to resolve the already-pinned FluidAudio commit; this branch's current work does not touch desktop code.

Remaining blockers before promotion

  1. The production /v2/sync-local-files path currently ignores replacement intent and appends the canonical recovered transcript beside live segments. It needs atomic merge/replace semantics or equivalent local VAD-backed ownership before semantic parity can be claimed.
  2. Speech captured while the app is fully down is durable, but can miss attachment when the server has already closed the live conversation. Conversation ownership must remain reconstructable from source identity + wall-clock/silence boundaries.
  3. Full-day battery/thermal qualification for live-only, recent-gap repair, and user-initiated historical drain is still pending, as are JTAG power-loss/fault-injection runs.

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 contract

This 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 conversation_id=<id>&transcript_mode=replace for a canonical repair, but the current /v2/sync-local-files route does not declare transcript_mode; FastAPI therefore ignores the replacement request and processes it as an ordinary append.

Before storage-authoritative firmware promotion, the backend contract should:

  • Accept a typed canonical-reconciliation mode only with a target conversation_id, verified capture manifest, matching user/device ownership, and exact source-range/fingerprint identity.
  • Stage transcription first, then atomically replace/reconcile the manifest-covered live interval. Preserve conversation material outside that proven interval.
  • Fence the mutation by conversation revision/generation so a stale repair cannot overwrite a newer canonical result.
  • Persist one idempotency/ledger receipt keyed by user + conversation + device + canonical source identity. Retrying the same upload must return the prior terminal result without duplicate transcription, audio, summaries, events, or usage accounting.
  • Regenerate diarization, summaries, events/memories, and the dense playback artifact once after the canonical commit; never summarize both the incomplete live transcript and its replacement as separate conversations.
  • Fail closed before mutation when provenance, ownership, range coverage, or revision checks fail. The app must retain its local WAL/audio for retry.
  • Attach app-down recovery to the same conversation only when source timestamps fall inside its silence-authoritative boundary; audio beyond that boundary starts a new conversation.

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.

axAilotl commented Aug 4, 2026 •

Copy link
Copy Markdown
Contributor Author

Build 110 physical qualification update (2026-08-04)

No new firmware durability/transport defect was observed in the latest controlled iOS composite run.

  • Prior build-110 transport trace: 27,375 / 27,375 frames delivered, 0 drops, 0 sync errors, 132 INFO/READ/DONE operations, ~2.55 MB transferred, SD healthy.
  • Cold app launch + pendant power-cycle recovered without a manual Listening tap.
  • Explicit SD backlog drain and live capture coexisted during the controlled interval; storage decreased while a spoken marker reached preview.
  • The tester subsequently observed storage continue down to 188 MB and same-day conversations appear.

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 codex/cv1-blackbox-diagnostics at 18a6a9c7df. The local worktrees, exact IPA/firmware binaries, screenshots, trace exports, and full Kimi report were moved out of temporary storage into the tester's permanent home-directory archive. Kimi's principal remaining finding is app/backend process-recovery ownership, not a demonstrated firmware loss path.

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.

@undivisible undivisible added human Human-authored pull request firmware firmware work docs-tooling Layer: Documentation, examples, dev tools labels Aug 10, 2026
@undivisible undivisible added the privacy-review Touches user-data persistence, permissions, or privacy-sensitive surfaces label Aug 10, 2026
@Git-on-my-level Git-on-my-level removed the docs-tooling Layer: Documentation, examples, dev tools label Aug 11, 2026

@Git-on-my-level Git-on-my-level left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.yaml and .github/workflows/firmware_release.yml now add CV1 buffer/version contract gates and route release version syncing through sync-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.md changes 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/Kconfig and omi/firmware/omi/omi.conf make 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, and sd_card.c consistently 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.c covers 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.

@axAilotl

Copy link
Copy Markdown
Contributor Author

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.

@axAilotl axAilotl closed this Aug 21, 2026
@github-actions

Copy link
Copy Markdown
Contributor

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:

  • Project standards — Ensuring consistency across the codebase
  • User needs — Making sure changes align with what our users need
  • Code best practices — Maintaining code quality and maintainability
  • Project direction — Keeping aligned with our product principles and locked invariants

Before your next PR, please skim:

  • PRODUCT.md — product north star
  • Product invariants — locked rules (shared chat, memory tiers, agent control plane, integrations, brand)

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

firmware firmware work human Human-authored pull request needs-maintainer-review Needs a human maintainer to sign off before merge needs-tests PR introduces logic that should be covered by tests privacy-review Touches user-data persistence, permissions, or privacy-sensitive surfaces workflow-review Needs maintainer review for workflow, automation, hooks, or CI behavior

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants