Scoped retry: rerun only the unit that failed
Opt in with a top-level units list so a red gate reruns one unit, not the whole graph.
When one part of a graph fails its gate, rerunning everything wastes time and can undo work that was already accepted. Scoped retry fixes that: only the red unit gets another attempt, and accepted siblings keep their values.
Opt in with units
Scoped retry is opt in. Add a top-level units list to the graph:
units: [a, b, c, d]Each name is a unit of the graph. Without the list, scoped retry is off.
What happens when one unit is red
Say a, b and d pass their gates and c does not.
a,banddare accepted. They are locked: they are not rerun.cgets another attempt, with the typed feedback from its failed gate attached.- If
cpasses, it is accepted next to the others.
Attempts are bounded and local to the node, so a stubborn unit cannot loop forever.
Follow it in the trace
Every attempt is an event with its own ID, so a retry is visible in the trace. Read a Tarmind trace explains how to follow one.
Known limit: shared files are not isolated. Agent cycles that share one checkout run one at a time.