Prompt·Correctness and reliability·R06
Half-finished failures
Finds what is left behind when something fails halfway.
Prompt
Trace error, timeout and cancellation paths for transactions, locks, file handles, temporary files, worker jobs and network connections. Identify paths that leave resources held or state half-committed, and demonstrate them with controlled failure injection where practical.
- What it returns
- Each failure path with the resource left held, shown by injecting the failure.
- Skip it when
- Code that holds nothing open beyond a single request.
- Changes
- Adds a test that shows it
- Sessions
- One session
- Tools
- Repository; a way to force errors in tests.
- Also called
- Partial resource cleanup on failure
Skills it uses
Related prompts
- Timers and connections nobody closesPromptFinds timers, listeners and connections that nobody clearly owns or shuts off.
- Safe to run twice?PromptFinds actions that do damage when they run twice: double sends, double charges, duplicate rows.
- Background jobs that hang or stop halfwayPromptFinds scheduled jobs and background workers that can hang, overlap or stop halfway.
More in Correctness and reliability.