---
url: https://scruple.dev/rules/resources/require-bounded-retries.md
description: Require a finite bound on retry behavior.
---

# resources/require-bounded-retries

Require a finite bound on retry behavior.

## What it checks

Retries need a finite attempt count, elapsed-time limit, or deadline; cancellation alone does not guarantee a bound.

## Rule metadata

* Package: `@scruple/resources`
* Category: Retries
* Tags: retry, limits, reliability
* Default threshold: `0.9`
* Minimum confidence: `0.7`

## Examples

### Reported

```ts
while (true) { try { return await request(); } catch {} }
```

### Accepted

```ts
for (let attempt = 0; attempt < 3; attempt++) { try { return await request(); } catch {} }
```
