Reliability & performance · Audit
Idempotency & Concurrency Audit
Audit one operation for duplicate execution, races, lost updates, lock/lease ownership, ordering, and stale completion.
MCP library 1.6.1 · Instruction library 1.6.1 · English technical instructions
← Back to searchUse this workflow
Connect Vibe Coding Library to a coding agent that supports MCP over Streamable HTTP. Choose Other / MCP agent for a neutral prompt, or a ready-made Codex or Claude Code invocation. Add your task details below.
Goal and scope
Audit one operation for duplicate execution, races, lost updates, lock/lease ownership, ordering, and stale completion.
Domain invariants
- The logical operation has a stable identity and a defined duplicate result across retries/processes.
- Read-check-write transitions are atomic, versioned, serialized, or otherwise protected at the authoritative store.
- Locks/leases have bounded lifetime, fencing or stale-owner rejection, and do not span slow external work without design evidence.
- Parallelism preserves required ordering and cannot apply stale completion over newer state.
Audit method
- Map operation identity, mutable state, critical sections, side effects, acknowledgement, and retry sources.
- Construct simultaneous, duplicate, delayed, timeout-after-success, crash, lease-expiry, and stale-worker interleavings.
- Inspect database constraints/transactions, compare-and-set/version fields, distributed lock semantics, and consumer ordering.
- Distinguish idempotent effect from deduplicated request and document retention window.
Handoff
Retain the logical operation key, initial state/version, exact concurrent or timeout-after-success sequence and expected effect/duplicate response. Identify which authoritative write or external effect can escape deduplication, lease or version ownership. Feed that smallest violating interleaving into Improve Idempotency & Concurrency; one local request record does not prove an external effect was protected.
Workflow ID: idempotency-concurrency-audit · View the versioned source · Shared workflow and authority rules