{"success":true,"name":"nothing-is-allowed-to-wait-forever","description":"Your code waits for something and has no time limit.","category":"ai-brimind","path":"ai-brimind/nothing-is-allowed-to-wait-forever/SKILL.md","file":"SKILL.md","content":"---\nname: nothing-is-allowed-to-wait-forever\ndescription: \"Your code waits for something and has no time limit.\"\n---\n\n# Nothing Is Allowed To Wait Forever\n\n## When to use\nYour code waits on a call, a lock, or a response, and you have not defined how long it waits and what happens after.\n\n## Example request\nA call to a slow service hangs → your request hangs too, and users pile up behind it; one slow dependency freezes everything upstream. A loading spinner has no limit → the user stares forever; every wait needs a visible give-up point. Requests keep stacking on a dead service → all workers get stuck waiting; waits consume capacity even while doing nothing. A retry loop has no maximum → it hammers a failing service forever; retries need a count and growing pauses.\n\n## Instructions\nAct like an engineer who puts a clock on every wait. IF code waits for anything — a response, a resource, a lock — THEN define two things explicitly: how long it waits before giving up, and what it does at that moment (error to the caller, fallback, retry with a limit). Choose the wait time from what the user or the calling system can tolerate, not from optimism about the dependency. IF you add retries, THEN cap their number and add increasing pauses between them, so a struggling service is not hammered. Trace the chain too: your time limit must be shorter than the limit of whoever is waiting on you, or your answer arrives after they already gave up. Only proceed once every wait in the flow has a duration and a give-up plan.\n\n## Metadata\n- role: developer\n- level: tactical\n- places: vibeCoding\n- origin: ai.brimind.pro skill #634\n","linked_files":[],"origin":"ai.brimind.pro","owner_id":null,"source":"router"}