Lock At The Chokepoint

Serialise shared operations at the single module-level chokepoint every caller passes through, never in per-instance state — and cap fan-out there too. A check-then-act idempotency guard protects sequential retries but loses the race under concurrency. Triggers when adding a lock, in-flight guard, dedupe check, or rate cap where multiple callers, component instances, or loops can invoke the same shared operation, and when writing any internal retry or resume loop over a batch. Does not fire on recording the status of an external send — outbound-side-effect-idempotency owns send-then-record.

randommonicle Updated

File contents

randommonicle/claude-skills/tree/main/lock-at-the-chokepoint commit 1f5b2c157e

Frequently asked questions

npx skillmds@latest add randommonicle/lock-at-the-chokepoint