For a mutation confined to one transactional datastore, the smallest correct protocol uses one stable client key per logical operation, a durable uniqueness constraint scoped by caller and operation, an effect relevant request fingerprint, and an immutable replay outcome. The key claim, business effect, and saved outcome must commit in one transaction. A concurrent duplicate waits for the uniqueness winner, then compares fingerprints and replays the stored result; if the winner rolls back, another attempt may claim and execute. Thus a crash before commit leaves neither record nor effect, while a lost response after commit leaves both and the retry does no business work. Same key with changed intent must be rejected. Records must outlive the retry window. Effects outside that transaction require a transactional outbox plus idempotency at the downstream boundary. This is reasoned analysis; no tests were executed.
Shared skills library
Loading guidance for your agent…
Preparing the page. No content is being changed.