Bounded retry (bounded_retry)
Agentic Recipe. Make retry visible: attempt, classify failure, permit retry in code, apply backoff, and escalate when exhausted. Attempt nodes declare effect-reconciliation requirements so durable resume is not bypassed.
Surface |
Value |
|---|---|
Catalog id |
|
Module |
|
Substrate |
|
Owning stories |
|
When to use
Retries that need classification, remediation, and an explicit terminal edge
Dispatch paths that must compose with durable external-effect recovery
Do not use infinite implicit executor retry as a substitute for this recipe when the control flow must be observable.
Soft points
Name |
Kind |
Role |
|---|---|---|
|
runner_kind |
Work / dispatch per attempt |
|
runner_kind |
Failure classification |
|
runner_kind |
Deterministic retry permission |
|
runner_kind |
Remediation / backoff |
|
runner_kind |
Terminal escalation |
|
budget |
Bound repeating attempts |
|
policy |
Soft point for ambiguous failures |
Tiling example
from mechaharness.graph_templates import (
BoundedRetryTemplate,
GraphTemplateParams,
)
graph = BoundedRetryTemplate().instantiate(
GraphTemplateParams(
goal="dispatch remote job with safe retry",
inputs={"max_attempts": 3},
)
)
assert graph.nodes["attempt"].payload["requires_effect_reconciliation"] is True
Execute
Fixture runners in mechaharness.bounded_retry_runner + CLI
BoundedRetryRecipeAdapter (run_recipe name=bounded_retry). Attempt budget
is embedded in the attempt runner; classify / permit / backoff / escalate stamp
visible outcomes.
Node components
Parent graph node |
Components |
|---|---|
|
|
other phase nodes |
|
See Node components.