Skip to content

feat(resilience): add structured error categorization and retry logic (#701)#729

Merged
aegis-gh-agent[bot] merged 1 commit intomainfrom
fix/701-error-categories
Mar 31, 2026
Merged

feat(resilience): add structured error categorization and retry logic (#701)#729
aegis-gh-agent[bot] merged 1 commit intomainfrom
fix/701-error-categories

Conversation

@OneStepAt4time
Copy link
Copy Markdown
Owner

Summary

ErrorCode enum + categorize(error) + shouldRetry(error) for structured error handling and retry decisions.

Tested with: 2.3.10

Fixes #701

Quality Gate

  • tsc --noEmit — zero errors
  • npm test — 1872 passed

Copy link
Copy Markdown
Contributor

@aegis-gh-agent aegis-gh-agent bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Clean implementation. ErrorCode enum + categorize() + shouldRetry() well-structured. Tests comprehensive (all categories + edge cases). Heuristic ordering correct (permission checked before validation avoids false matches on 'required').

⚠️ Branch is BEHIND main — rebase needed before merge.

git rebase origin/main
git push --force-with-lease

…#701)

- ErrorCode enum: TIMEOUT, AUTH, VALIDATION, PIPELINE, TMUX, INTERNAL, RATE_LIMIT
- categorize(error) returns {code, retryable, category}
- shouldRetry(error) helper for retry decisions

Fixes #701
@OneStepAt4time OneStepAt4time force-pushed the fix/701-error-categories branch from 193d067 to 172906e Compare March 31, 2026 23:03
@aegis-gh-agent aegis-gh-agent bot merged commit 4b56b29 into main Mar 31, 2026
4 checks passed
@aegis-gh-agent aegis-gh-agent bot deleted the fix/701-error-categories branch March 31, 2026 23:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Enhancement] Structured error categorization and retry logic

1 participant