---
library: "bootstrap"
slug: "Retry"
name: "Retry"
ref: "Retry#4f9f"
hash: "sema:Retry#mh:SHA-256:4f9fdfc5b1dafd31221e9426d62c02af80c6356ef5b446eddd3f50da961d1aa2"
type: "Strategy"
layer: "Mind"
version: "0.11.0"
root: "a6a3d1ff0f982ee30430c5b42f3784c8ec901fd68482cfc1bc30899c1e5e48c5"
license: null
url: "https://semahash.org/vocabularies/bootstrap/patterns/Retry"
---

# Retry

Classified re-attempt with backoff conditioned on failure type

Mind · Strategy

## Mechanism

Intelligent re-attempt of failed coordination with failure-informed strategy. After BREAK + COMPENSATE, agent evaluates: (1) CLASSIFY failure—transient (timeout, rate-limit, network blip) vs persistent (capability gap, protocol mismatch, explicit rejection). (2) CHECK retry_hint from BREAK (partner may say 'don't retry' or 'wait 30s'). (3) CONSULT failure_history—same error repeating? [CircuitBreaker](https://semahash.org/vocabularies/bootstrap/patterns/CircuitBreaker.md) threshold reached? (4) COMPUTE [Backoff](https://semahash.org/vocabularies/bootstrap/patterns/Backoff.md)—adaptive based on failure type: transient uses [ExponentialBackoff](https://semahash.org/vocabularies/bootstrap/patterns/ExponentialBackoff.md), persistent uses longer fixed delay or triggers abort. (5) VERIFY changed_conditions—has something changed that makes retry worthwhile? (6) EXECUTE retry if within budget and conditions favor success, else ABORT with retry_exhausted status. Retry CARRIES FORWARD: failure context, partner state observations, environmental data. Retry RESETS: coordination state (fresh start, don't resume mid-stream). It handles transient failures by re-queuing the task, distinguishing them from terminal failures that trigger [Break](https://semahash.org/vocabularies/bootstrap/patterns/Break.md) and [Compensate](https://semahash.org/vocabularies/bootstrap/patterns/Compensate.md).

## Invariants

- Classifies the failure before deciding, and records the classification.
- [Backoff](https://semahash.org/vocabularies/bootstrap/patterns/Backoff.md) applied between attempts.
- Attempts do not exceed `max_attempts`.

## Parameters

- max_attempts: type=Integer, range=[1, 10], description=Attempts before giving up. Referenced by the third invariant, which previously named a Max_Retries nothing defined.

## Preconditions

- A failure has occurred and its details are available to classify

## Postconditions

- Success or definitive failure

## Failure modes

- Misclassifying persistent failure as transient (wastes retry budget).
- Misclassifying transient as persistent (gives up too soon).
- [Backoff](https://semahash.org/vocabularies/bootstrap/patterns/Backoff.md) too aggressive (slow recovery from transient issues).
- [Backoff](https://semahash.org/vocabularies/bootstrap/patterns/Backoff.md) too timid (hammers already-failing system).
- [CircuitBreaker](https://semahash.org/vocabularies/bootstrap/patterns/CircuitBreaker.md) too sensitive (abandons recoverable situations).
- Retry succeeds but same failure recurs (didn't address root cause).
- Changed_conditions check misses relevant changes.

## Where this came from

—

## Builds on

- [CircuitBreaker](https://semahash.org/vocabularies/bootstrap/patterns/CircuitBreaker.md) (references)
- [Compensate](https://semahash.org/vocabularies/bootstrap/patterns/Compensate.md) (references)
- [Break](https://semahash.org/vocabularies/bootstrap/patterns/Break.md) (references)
- [Backoff](https://semahash.org/vocabularies/bootstrap/patterns/Backoff.md) (references)
- [ExponentialBackoff](https://semahash.org/vocabularies/bootstrap/patterns/ExponentialBackoff.md) (composes_with)

## Used by

- [ContingencyPlan](https://semahash.org/vocabularies/bootstrap/patterns/ContingencyPlan.md) (references)
- [FrameError](https://semahash.org/vocabularies/bootstrap/patterns/FrameError.md) (references)
- [Plateauturn](https://semahash.org/vocabularies/bootstrap/patterns/Plateauturn.md) (references)
- [ReAttempt](https://semahash.org/vocabularies/bootstrap/patterns/ReAttempt.md) (references)

## Related

- [Plateauturn](https://semahash.org/vocabularies/bootstrap/patterns/Plateauturn.md)

## Identity

- Library: bootstrap 0.11.0 (root a6a3d1ff0f98)
- Ref: Retry#4f9f
- Hash: sema:Retry#mh:SHA-256:4f9fdfc5b1dafd31221e9426d62c02af80c6356ef5b446eddd3f50da961d1aa2

## Links

- Page: https://semahash.org/vocabularies/bootstrap/patterns/Retry
- JSON: https://semahash.org/vocabularies/bootstrap/patterns/Retry.json
- Library: https://semahash.org/vocabularies/bootstrap
- Library index: https://semahash.org/vocabularies/bootstrap/index.json
