Skip to content

OPE-234: Close SSE recovery invariants across v1 and v2 #515

Closed

Description

@ivanfenenko

Replace recurring SSE recovery patches with an explicit cross-platform connection and authority model.

Outcome

Android and iOS converge after lifecycle, network, profile, project-set, parser, stream-target, and REST races without stale transcripts, duplicate catch-up, old-profile publication, or stuck Syncing state.

Delivery phases

Each phase is one commit:

  1. Deterministic shared fault oracle with failing composed traces.
  2. LiveConnection transport seam with atomic profile/protocol/directory configuration and per-target v1 leases.
  3. Durable gap revision and per-projection reconciliation authority.
  4. Remove lifecycle/transport/cache-confirm recovery coordination from MessageSync while preserving staging and reduction.
  5. Cross-platform fault matrix and device-oriented resilience verification.
  6. Durable feature docs, parity closure, and rollout notes.

Required invariants

  • Old connection generations never publish into a new profile/configuration.
  • Every detected gap creates a durable reconciliation obligation.
  • v1 Live requires the global stream and every required instance stream.
  • Synced means REST authority has confirmed the current gap revision.
  • SSE patches arriving during REST are not overwritten by older snapshots.
  • New observers query current state rather than depending on past edges.
  • Turn completion provides an authoritative transcript barrier.

Related: OPE-165, OPE-177, OPE-198, OPE-216, OPE-222, OPE-233.


Imported from Linear OPE-234. Linear status: Done. Priority: High. Created 2026-09-10. Completed 2026-09-11.
Related: OPE-239, OPE-233, OPE-222, OPE-177, OPE-216, OPE-198, OPE-165, OPE-245.

Activity

  1. self-assigned this
    on Oct 11, 2026
  2. added
    bug
    ios
    android
    shared
    priority: high
    on Oct 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

androidbugiospriority: highshared

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions