Inventory synchronisation is a deceptively simple feature that fails in a small number of predictable ways. The design in this scenario addresses each of them explicitly.
Directional sync, with a defined source of truth. Each SKU and location has one authoritative source for its available quantity. Other systems are updated from it. Without a declared direction, two systems both writing "available = 4" eventually produce two different answers.
The decrement is a transaction, not an update. A sale decrements stock in a transaction that also records why the quantity changed. This makes the movement auditable and makes it possible to reconstruct the current position from the log of movements.
Safety stock sits on top of the raw count. A buffer is applied at read time rather than being written into the source, so re-syncing cannot erode the buffer over time.
Every sync is logged with a reason. A quantity change that cannot be traced to a known event is treated as a conflict and surfaced, not written.
Reconciliation runs on a schedule as a check, not a fix. A periodic reconciliation compares the sources and reports differences. Because the cause of every legitimate change is logged, a discrepancy means something is wrong — so it is investigated rather than papered over by writing the "expected" number back.