A policy file declares retry behaviour once for the whole agent, with narrower rules for individual tools. Policies are validated at deploy time and unreachable rules are rejected.
export default {
default: { max: 3, backoff: "exponential", capMs: 30_000 },
tools: {
"kb.search": { max: 5 },
"stripe.refund": { max: 1, requireApproval: true },
},
}