Architecture Decision Record

ADR-0038: Ordering Is Local and Explicit, Not Global Across Zones

Status: Accepted · Date: 2026-03-06

Status: Accepted

Date: 2026-03-06

Context

BSFG already commits to zone-local logs, receiver-driven pull, unary paged fetch, durable named consumers, and explicit cross-zone synchronization through BSFG peers. Those decisions imply a final ordering question:

This matters because replay, auditing, and downstream projection logic are all sensitive to what kind of order the boundary substrate claims to provide.

Options Considered

Option Description Benefits Drawbacks
Global total order Claim one globally authoritative message order across all zones and all streams.

|

| | Arrival-time order only | Treat wall-clock arrival time as the authoritative sequence of truth. |

|

| | Application-defined order only | Make the substrate agnostic to all ordering and force every consumer to invent its own ordering semantics. |

|

| | Local stream order plus explicit lineage (Selected) | Ordering is authoritative only within a local retained stream and consumer view; cross-zone and business sequencing must be expressed through lineage and domain facts. |

|

|

Decision

BSFG does not define one global total order across zones.

authoritative order = local retained stream order
global causality    = explicit lineage + domain facts
not = one universal cross-zone sequence

Therefore:

When business sequencing matters, producers and downstream systems must express it explicitly, for example through:

Consequences

Benefits:

Tradeoffs: