Apply Idempotent Operations

Use when designing a state-changing operation, lifecycle step, or processing loop that can run amid crashes, retries, or restarts — derive each run from the current state compared against the goal state, rather than from what the previous run meant to do, so the operation converges to the same correct end state no matter how many times it runs or where a prior run stopped.

jeffreytse Updated
grimoire

File contents

jeffreytse/grimoire-core commit fe0e4fb23c

Frequently asked questions

npx get-skill add jeffreytse/apply-idempotent-operations