Prompt·Correctness and reliability·R05

Updates that overwrite each other

Finds updates that overwrite newer data because two things wrote at once.

Markdown
Prompt
Find race conditions and out-of-order updates across background jobs, UI mutations, caches, webhooks, and database writes. Prove suspected problems with reproducible cases.
What it returns
A reproduction for each race (a script or test that loses an update) rather than a theory.
Skip it when
Data that only one thing ever writes.
Changes
Adds a test that shows it
Sessions
Look first, then fix in a new session
Tools
Repository; a local or branch-copy database to reproduce the problem.
Watch for
Agents list theoretical races freely. Count only the ones with a reproduction.
Also called
Races and stale writes

Skills it uses

Related prompts

More in Correctness and reliability.