Skip to content

Make mobile capture status truthful #14614

Open

Description

@thesohamdatta

Problem

Omi can successfully begin capture while the user has no single trustworthy answer about what is actually happening in the pipeline.

Mobile already has separate runtime signals for capture, transcription, and local recording durability. Those facts can therefore be interpreted differently by different surfaces, especially around startup, pauses, stalls, reconnects, and partial failures.

For a memory-first product, capture truth needs to be explicit. The core distinction is:

capture requested
capture source producing
transcription connected
transcription accepting audio
audio locally durable
upload accepted
server processing complete

These are different facts and should not collapse into one recording boolean.

Proposed direction

I am working on this in my fork as a small, staged change rather than rewriting the capture pipeline.

The proposed semantic vocabulary is:

  • capture source: starting | live | blocked | stalled | off
  • transcription: connecting | ready | degraded | off
  • local durability: available | unavailable | pending | unknown
  • aggregate capture health: capturing | degraded | off

The key rule is that transcription failure should not imply that audio capture stopped when the capture source is still producing and local retention is available.

The existing recording_id remains the recording correlation identity. CaptureSessionOwner remains responsible for rejecting stale asynchronous work. No second identity or new capture owner is proposed.

This work is intentionally scoped to a semantic projection over existing production evidence first. It does not require a new backend endpoint, firmware protocol, storage system, transcript store, or large cross-pipeline state machine.

Specification

The first slice should provide a deterministic public projection that:

  1. reports a producing source with usable transcription as capturing
  2. keeps a producing source as capturing when transcription is unavailable/reconnecting, while exposing transcription degradation
  3. reports blocked/stalled capture evidence as degraded when the required capture path is not healthy
  4. represents deliberate pause as off/paused, not as a failure
  5. reports requested capture with no producing source using a bounded blocked/stalled reason
  6. preserves the existing recording_id
  7. preserves producer-side freshness/stall evidence where it already exists, without manufacturing timestamps
  8. remains free of network, LLM, database, timer, socket ownership, capture-control, and analytics side effects
  9. keeps health data limited to closed state values, bounded reasons, timestamps, and the existing opaque recording identity where already permitted

The success condition is that the same projection can later drive the mobile UI and agent context without each surface inventing its own interpretation of capture health.

Implementation tickets

01. Prove the pure mobile capture-health projection

Use the existing mobile capture facts to produce the typed semantic result above. Keep it deterministic and hermetic.

Depends on: none.

Verification: focused projection tests, Dart formatting, and the relevant app test lane.

02. Prove transcription transport truth

Connect the projection to the existing transcription lifecycle without changing capture ownership or recording_id.

It must cover connection success/failure, reconnects, stale async results, telemetry safety, and no transcript/audio content in health evidence.

Depends on: 01.

03. Surface one truthful status in the primary mobile capture UI

Give the user one lightweight status that distinguishes healthy capture, downstream transcription degradation, source degradation, and deliberate pause.

Use the existing localization and capture ownership paths.

Depends on: 02.

04. Reuse the same health projection in agent context

Expose aggregate health, relevant substate, freshness, and bounded reason through the existing context path, without captured content.

Preserve existing context provenance, size, TTL, and retention contracts.

Depends on: 03.

05. Align desktop adapters

Map existing macOS/Windows capture-health signals into the same semantic vocabulary without rewriting their capture engines.

Depends on: 04.

Dependency graph:

01 Projection
   ↓
02 Transcription transport evidence
   ↓
03 Mobile status surface
   ↓
04 Agent context
   ↓
05 Desktop parity

Current implementation

I have started the work in my fork with a small pure projection and hermetic tests:

The current PR is deliberately still a draft. The local Flutter toolchain is not available in the mobile environment I am using, so the focused Flutter tests, formatter, preflight, and real user-facing mobile path still need to be run on a development machine or suitable CI environment before this is considered merge-ready.

I am keeping the implementation open to contributors who want to help validate the production adapters, mobile behavior, or desktop parity in the fork.

This issue is intended to discuss the problem and direction. The detailed implementation work and verification evidence will live in the PR.

Activity

  1. thesohamdatta commented on Sep 18, 2026

    @thesohamdatta
    Author

    I’ve opened this as the problem statement in Omi so the discussion stays attached to the user-facing issue.

    Implementation is in my fork:
    https://github.com/thesohamdatta/omi

    Branch:
    feat/capture-health-contract

    Draft PR:
    thesohamdatta#1

    I’m continuing with the implementation there, while keeping the fork open for anyone who wants to help with verification or the remaining slices.

  2. added
    capture
    p1
    on Oct 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    capturep1

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions