Function reconcileAuthoritative

Reconcile authoritative states into an editable store.

bool reconcileAuthoritative(
  OsmStore store,
  scope ref const(AuthoritativeBatch) authoritative,
  out ReconcileResult result,
  out ReconcileStatus status
) @safe;

Semantics

- clean/local-unchanged objects refresh to newer remote state; - remote inserts are added as clean authoritative objects; - authoritative deletion of a clean object removes it without creating a local deletion upload; - local-only edits/deletes remain untouched; - identical concurrent edits are accepted as authoritative and become clean; - independent concurrent edits are reported but not auto-merged; - hard conflicts/baseline mismatches are reported and remain untouched.

All representation validation, duplicate detection and conflict classification complete before the first visible store mutation. After that preflight, planned store operations are expected to be infallible except for normal allocation failure; an internal invariant failure is asserted rather than returned after a partial batch mutation.