Prompt·Correctness and reliability·R06

Half-finished failures

Finds what is left behind when something fails halfway.

Markdown
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

More in Correctness and reliability.