Reliability & performance · Audit
Idempotency & Concurrency Audit
Audit one operation for duplicate execution, races, lost updates, lock/lease ownership, ordering, and stale completion.
Vibe Coding 1.3.0 · vibe-reliability · English technical instructions
Use this workflow
Use this workflow in Codex or Claude Code with the free Vibe Coding plugin. Choose your assistant and prompt language, then add your task details after the prompt.
Operation
Inspect the named boundary and report supported findings. Do not edit product code. Include concrete evidence, impact, the owning source, one remediation direction and a meaningful validation route. Severity follows actual impact, not a category example.
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.
Priority model
- P0: outage, data loss, duplicate irreversible effect, tenant breach, deadlock, request collapse, or runaway cost.
- P1: a hot-path reliability, consistency, concurrency, or performance defect with clear impact.
- P2: a lower-risk but concrete scaling, diagnosability, or secondary-path issue.
Workflow ID: idempotency-concurrency-audit · View the versioned source · Shared workflow and authority rules