Mind · Strategy

Retry

Classified re-attempt with backoff conditioned on failure type

Definition

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 threshold reached? (4) COMPUTE Backoff—adaptive based on failure type: transient uses ExponentialBackoff, 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 and Compensate.

Preconditions

  1. A failure has occurred and its details are available to classify

Postconditions

  1. Success or definitive failure

Invariants

  1. Classifies the failure before deciding, and records the classification.
  2. Backoff applied between attempts.
  3. Attempts do not exceed `max_attempts`.

Risks

Failure modes

  1. Misclassifying persistent failure as transient (wastes retry budget).

  2. Misclassifying transient as persistent (gives up too soon).

  3. Backoff too aggressive (slow recovery from transient issues).

  4. Backoff too timid (hammers already-failing system).

  5. CircuitBreaker too sensitive (abandons recoverable situations).

  6. Retry succeeds but same failure recurs (didn't address root cause).

  7. Changed_conditions check misses relevant changes.

Relationships

Builds on

Composes with

References

Infrastructure

Backoff

Delay subsequent attempts after failure or contention

Infrastructure

Break

Failure-announcement signal {severity, reason, recoverable}, ACK-required

Infrastructure

CircuitBreaker

Fail-fast protection against cascading failures

Infrastructure

Compensate

Structured rollback via logged inverses in LIFO order

Used by

References

FrameError

Typed failure signaling that lateral reframing, not retry, is required

Plateauturn

When improvement stalls under one method, change the method instead of repeating it

Infrastructure

ReAttempt

Substrate-level re-attempt: same call, after a delay

Reference

Parameters

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

Identity

Ref
Retry#4f9f
Sema ID
sema:Retry#mh:SHA-256:4f9fdfc5b1dafd31221e9426d62c02af80c6356ef5b446eddd3f50da961d1aa2
Ring
1
Tier
1
Updated
2026-11-11
Supersedes
  • sema:Retry#mh:SHA-256:d53d7b3af592e07dfb4d8f4cb3d74472da4514f0954d2138f2148e81bd55882a
  • sema:Retry#mh:SHA-256:07b7eedd84065dbf822183e0ae1512edb92caa0867bf7c9225b85371721d0091
  • sema:Retry#mh:SHA-256:79b69773b2fdd6fc81b1205d1088e9df841db683a982e079fc2dca97f4818804
  • sema:Retry#mh:SHA-256:9e178c29dd1aa774432d8eb6e87fb2e93ab5b1a6db9582f737ad60e9ddf56053
  • sema:Retry#mh:SHA-256:5e7921bf0dc8d896f922c3e163156be786471af8cfdfbfc8ec22dd5e0e68ab2a