Description
WaterfallRouter tries routes in declaration order and returns the first successful one. It does not score routes by latency, fee, or reliability, so the first-declared route is always tried even when a more efficient one is available.
Acceptance Criteria
Context
- Target file:
src/routing/WaterfallRouter.ts
- Sorting must be stable to preserve FIFO among equal-score routes
Description
WaterfallRoutertries routes in declaration order and returns the first successful one. It does not score routes by latency, fee, or reliability, so the first-declared route is always tried even when a more efficient one is available.Acceptance Criteria
score?: numberfield (higher = tried first; default 0)Context
src/routing/WaterfallRouter.ts