A reusable subtree under a templates/ directory: a code dispatcher that, on a tool error, re-routes the call with an incrementing attempt counter in context and a bounded retry limit, then gives up cleanly to an error sink.
CEL on the edges already supports arithmetic on context (see the loop edges in the examples, e.g. int(context.iter) + 1), so the retry counter lives on an edge, not in code.
Done when: the template instantiates, the retry loop is bounded, and a short README documents the params and the failure path.
A reusable subtree under a
templates/directory: acodedispatcher that, on a tool error, re-routes the call with an incrementing attempt counter in context and a bounded retry limit, then gives up cleanly to an error sink.CEL on the edges already supports arithmetic on context (see the loop edges in the examples, e.g.
int(context.iter) + 1), so the retry counter lives on an edge, not in code.Done when: the template instantiates, the retry loop is bounded, and a short README documents the params and the failure path.