Function createLocalFirstStatus

  • Compose one local-first status from region diagnostics, durable queue state, and a host-supplied connectivity signal.

    The headline state is decided by a total precedence over cache and queue facets, with connectivity supplying only the base case:

    conflicted > expired > partial > pending > stale > offline > online

    Data problems therefore outrank undelivered work, which outranks mere staleness, which outranks being disconnected. Reads no payload bytes, performs no network or storage I/O, and mutates nothing.

    Returns LocalFirstStatusV1