field notes for production systems that must outlast the storm
// exponential backoff + jitter
function backoff(attempt) {
const base = 1000;
const cap = 30000;
const jitter = Math.random() * 500;
return Math.min(cap, base * Math.pow(2, attempt)) + jitter;
}
Matches coastal trail logic: small failures reroute, never collapse the whole path.