Enforcing Constraints: Consensus or Apologize-and-Compensate?

Enforcing Constraints: Consensus or Apologize-and-Compensate? A workflow diagram generated by Archify. 01 / Decision 02 / Strict Consensus 03 / Compensate Later 04 / Log-Ordered Check Constraint Must Hold · reservation, seat, balance · Decision Constraint Must Hold reservation, seat, balance Needs Strict Guarantee? · reject conflicts now · Decision Needs Strict Guarantee? reject conflicts now Can You Compensate Later? · viable apology path? · Decision Can You Compensate Later? viable apology path? Must Decide Synchronously? · can the client wait? · Decision Must Decide Synchronously? can the client wait? Single Leader per Shard · shard by constrained value · Strict Consensus · synchronous coordination Single Leader per Shard shard by constrained value synchronous coordination Apologize and Compensate · write first, fix up later · Compensate Later · refunds, overbooking Apologize and Compensate write first, fix up later refunds, overbooking Shard by Conflict Key · same shard, ordered check · Log-Ordered Check · success / reject events Shard by Conflict Key same shard, ordered check success / reject events Async Validate + Notify · validate later, notify · Log-Ordered Check Async Validate + Notify validate later, notify yes no yes no no yes assess Legend Agent logic Tool action Context / trace External system