Scope
Port Bun corpus position 3985, js/third_party/grpc-js/test-outlier-detection.test.ts (26 active tests).
Required contracts
- validate interval/base/max ejection durations and percentage fields
- reject incompatible
pick_firstchild policies - resolve and round-robin across
ipv4:///host:port,...targets - track per-endpoint successes and failures
- eject endpoints under success-rate and failure-percentage policies
- restore endpoints after the configured ejection window
- clean up servers bound to multiple addresses
- retain parse/ejection causes with policy path, endpoint, operation, and source-module stack context
Verification
- all 26 focused upstream tests pass without unsupported cases
- permanent diagnostics cover validation context and endpoint lifecycle
- existing gRPC, SQL adapter, and third-party gates remain green