General editorial guide prepared with AI assistance. Examples are hypothetical; implementation depends on project requirements and qualified review.
Decision and problem
Define the authoritative system for customers, invoices and inventory. Do not let two systems update the same balance without an explicit contract. Map external IDs to internal IDs rather than matching on names alone.
Designing the solution
Version the API contract, validate authorization and fields on the server, and define retryable errors. Assign a stable ID to each non-repeatable operation and track its state. Never blindly retry financial writes without deduplication guarantees.
Practical acceptance test
Submit the same request twice, then interrupt connectivity after persistence but before the response. There should be one operation retrievable with the same identifier. Also test authorization expiry and schema evolution.
