omi icon indicating copy to clipboard operation
omi copied to clipboard

Offline-synced audio can retain content but shift absolute timestamps by ~15 minutes

Open jamesinnesgroup opened this issue 2 months ago • 4 comments

Summary

A short controlled test on 2026-10-02 reproduced incorrect absolute timestamps after offline capture and later sync.

This looks related to the previously closed issue #4850, but the timestamp problem is still reproducible.

Test setup

  • Omi wearable
  • iPhone app
  • First ran a connected/live calibration, then an offline calibration
  • Local timezone: CEST (UTC+2)

Connected baseline

While connected and actively Listening, spoken clock markers matched Omi's conversation timestamps closely:

  • Spoken marker: 14:27 local
  • Omi conversation start: 12:27 UTC = 14:27 local

A later connected marker around 14:38–14:39 also aligned correctly.

Offline test

The wearable was then taken out of Bluetooth range while remaining powered on.

While offline, two explicit spoken markers were recorded:

  • "Offline calibration marker one ... actual local time is 17:38."
  • "Offline calibration marker two ... actual local time ... is now 17:39."

After returning to the phone, reconnecting, and allowing offline sync to complete, the audio content and spoken markers were preserved.

However, the recovered conversation was timestamped substantially too early. The markers appear around 17:23–17:24 local in the reconstructed timeline, roughly 15 minutes earlier than the ground-truth spoken times.

Expected

Offline-captured audio should preserve the original wall-clock capture time closely enough for chronological search and correlation with other time-based data.

Actual

  • Audio content: preserved
  • Relative order: preserved
  • Live/connected timestamps: accurate
  • Offline/recovered absolute timestamps: ~15 minutes early in this test

Why it matters

This makes offline conversation chronology unreliable and can break time correlation with external data such as screen/activity history.

No request for support is needed; this is just a concise reproducible report in case it helps ongoing timestamp/offline-sync work.

jamesinnesgroup avatar Oct 02 '26 16:10 jamesinnesgroup

Related historical Featurebase report (Android + Omi CV1): a user says conversations recorded several days earlier appear overnight as if they happened around 4:00 a.m., apparently when delayed sync/processing completed. The report gives no app/firmware version or paired ground-truth timestamp, so this is not proven to share the cause of this issue's controlled iOS ~15-minute shift. Older #4101 and #4351 describe the broader original-recorded-time vs import-time problem. Current app/lib/services/wals/sdcard_wal_sync.dart prefers device timestamp markers when the reported firmware is >=3.0.16 and otherwise estimates from sync time minus duration; investigation should compare device marker availability, phone-local WAL timerStart, backend conversation started_at/created_at, and UI grouping. Acceptance: a backlog synced days later retains the original local capture date/time and sorts accordingly; processing time is not presented as recording time. Need current Android app/firmware versions and one example pair of actual spoken time vs displayed time before attributing root cause.

aryanorastar avatar Oct 04 '26 06:10 aryanorastar

I have resolved this issue in PR #21695.

Cause

RingStorageSyncImpl guarded record timestamps with rtcValid, which was read on connect from the GATT storage status characteristic. Firmware storage_status_rtc_valid was unrefreshed (0), causing rtcValid to be false and forcing the phone to bypass record timestamps and fall back to DateTime.now() - estSecs (~15 minutes in the past).

Solution

  1. Added RingProtocol.isUsableEpochTimestamp to validate epoch timestamps >= 1700000000.
  2. In RingStorageSyncImpl, anchor chunkTimerStart directly to valid record hardware epoch timestamps, accounting for prior elapsed frames (ts - elapsedBeforeRecord).
  3. In firmware storage.c, directly read rtc_is_valid() in read_storage_read_control.
  4. Added unit test coverage in ring_protocol_test.dart and ring_custody_download_test.dart ensuring offline-synced recordings preserve ground-truth epoch timestamps even if rtcValid is unrefreshed.

Dragonire9 avatar Oct 15 '26 13:10 Dragonire9

Additional historical Featurebase report: recording times wrong beyond a timezone offset

Time clock problem. reports that nearly all recording times are wrong, explicitly distinguishing this from a timezone-only problem. The live source is still In Review and has no later technical reply; it was displayed as about one month old when reviewed November 10. This is additional symptom evidence, not a confirmed reproduction of the controlled ~15-minute offline-ring shift.

The current report supplies no actual-versus-shown date/time pair, offset magnitude/pattern, installed phone/app/firmware, capture device, live/offline state or retained recording/job identifier. Earlier same-account context mentions iOS/macOS, Omi and interest in Limitless, but does not establish which device/path produced these recordings. Do not assume CV1, Limitless, offline sync, a fixed15-minute shift or import-time substitution.

Relevant work and boundaries checked:

  • #20358 remains OPEN. Proposed #21695 and #24839 are both CLOSED without merge, so the contributor's resolved claim is not a release receipt.
  • At pinned main 45436a0cc6ba5cbc4455f45218e9f9b0375b04da, ring storage timestamp anchoring still depends on the status rtcValid flag; first-record fallback estimates from current time when unavailable. This does not diagnose the unqualified Featurebase report.
  • #23750 MERGED adds plausible SD-card timestamp gates/refusal handling; it is not a universal clock correction.
  • #22326 MERGED fixes a different legacy VAD-file/first-word offset and explicitly does not rewrite existing rows or fix #20358's phone capture-start anchor.
  • #5734 CLOSED / #14291 MERGED concern Limitless flash RTC drift, a separate capture path. Its inclusion does not establish the customer uses that device or has the containing app release.
  • Historical #4101/#4351/#4850 are CLOSED, but their closure does not verify this customer's chronology.

Reuse this investigation while qualifying one existing recording: actual capture date/time + timezone versus UI/API time, device and current phone/app version. Then distinguish capture clock, device markers, phone WAL anchor, backend started_at versus created_at, segment offsets and local display/grouping. Do not ask for another recording, change clocks, re-pair/reinstall, delete original audio or rewrite customer timestamps as a test.

Expected outcome: original recording chronology is preserved and presented consistently; delayed sync/processing is not silently treated as recording time. A fix for one route is not proof of repair for historical records or a different route. No new implementation issue, assignment, production mutation or recovery/release claim.

aryanorastar avatar Nov 09 '26 18:11 aryanorastar

This issue is linked to our feedback platform. For feedback and updates, please visit this link.

featurebase-for-github avatar Nov 09 '26 18:11 featurebase-for-github