Skip to content

fix(retryProvider): Populate mismatch diagnostics on the no-fallback quorum error - #1484

Open
droplet-rl wants to merge 1 commit into
masterfrom
droplet/C03GHT4RV42-1784127850-691789-followup
Open

fix(retryProvider): Populate mismatch diagnostics on the no-fallback quorum error#1484
droplet-rl wants to merge 1 commit into
masterfrom
droplet/C03GHT4RV42-1784127850-691789-followup

Conversation

@droplet-rl

Copy link
Copy Markdown
Contributor

Follow-up to #1483, addressing the Codex P2 finding (#1483 (comment)). The fix was committed to the PR branch but #1483 was squash-merged moments before the push landed, so it never reached master.

When quorum fails on the early-exit path (no fallback providers left), throwQuorumError() was called without a quorum candidate, so the diagnostic warn log reported mismatchedProviders: [] — even though the only way to reach that path is that the successful providers disagreed.

This extracts the result-frequency counting into a findQuorumCandidate helper and uses it on both quorum-failure paths: the early-exit path now computes the most frequent result from the successful providers' responses and measures mismatches against it, so the log identifies which providers diverged.

Includes a test asserting mismatchedProviders is populated on the no-fallback path.

🤖 Generated with Claude Code

…quorum error

Codex review follow-up: the early-exit path passed no quorum candidate
to throwQuorumError, so the warn log reported mismatchedProviders: []
even though the only way to reach that path is that the successful
providers disagreed. Extract the result-frequency counting into
findQuorumCandidate and use it on both quorum-failure paths, so the
most frequent result stands in for the quorum result and the log
identifies which providers diverged.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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.

1 participant