Skip to content

Fix batched tier-2 dispatch cancellation in fetch_proofs#108

Merged
p0mvn merged 1 commit into
mainfrom
codex/fix-batched-tier2-dispatch
Jun 5, 2026
Merged

Fix batched tier-2 dispatch cancellation in fetch_proofs#108
p0mvn merged 1 commit into
mainfrom
codex/fix-batched-tier2-dispatch

Conversation

@p0mvn
Copy link
Copy Markdown
Contributor

@p0mvn p0mvn commented Jun 5, 2026

Summary

  • replace fail-fast try_join_all in PirClient::fetch_proofs with join_all, then return errors only after all per-note futures complete
  • preserve per-note oracle mitigation under batch failures so one failed note cannot cancel sibling tier-2 dispatch
  • add a deterministic cancellation-race regression test and document the fix in CHANGELOG.md

Test plan

  • cargo test -p pir-client batched_ -- --nocapture

Replace fail-fast try_join_all in fetch_proofs with join_all so one failing note cannot cancel sibling futures before they send tier-2 queries, and add a deterministic regression test plus changelog entry.
@p0mvn p0mvn merged commit 1ad27e8 into main Jun 5, 2026
4 checks passed
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