Finding
ID: ERR-4 | Severity: π MEDIUM
retryWithJitter has no default shouldRetry. If a caller omits it, every error retries β including auth failures and validation errors.
Fix Required
Add a default shouldRetry that calls error-categories.shouldRetry(categorize(err)). Document and lint enforcement.
Files: src/retry.ts, src/error-categories.ts
Acceptance Criteria
A retry of a 400 validation error stops after the first attempt with the default policy.
Milestone
M-E4: Reliability & Robustness
Finding
ID: ERR-4 | Severity: π MEDIUM
retryWithJitterhas no defaultshouldRetry. If a caller omits it, every error retries β including auth failures and validation errors.Fix Required
Add a default
shouldRetrythat callserror-categories.shouldRetry(categorize(err)). Document and lint enforcement.Files:
src/retry.ts,src/error-categories.tsAcceptance Criteria
A retry of a 400 validation error stops after the first attempt with the default policy.
Milestone
M-E4: Reliability & Robustness