feat(client): apply witnessed quote policy locally#119
Merged
Conversation
Consume the witnessed close-group transcript from saorsa-core and compute quorum, vote counts, and fallback quote candidates in ant-client. Quote collection now keeps all quorum-recognised candidates available for reachability fallback, then pays the closest successful close group. SemVer: feature change; no public ant-client API break expected.
Select the closest witnessed SNP quote set whose paid median issuer is recognised by a close-group majority of the selected peers. This keeps fallback quote candidates available without paying a median issuer that the PUT majority may reject. SemVer: bug fix; no public ant-client API break expected.
Keep proof quote order stable while ordering PUT targets so the initial store wave favours peers that voted for the paid median issuer. Wire the in-process E2E protocol through AntProtocol::attach_p2p_node and use ant-node's test-only paid close-group override for the local client/storage-node topology. SemVer: bug fix; no public ant-client API break expected.
jacderida
approved these changes
Jun 15, 2026
jacderida
added a commit
that referenced
this pull request
Jun 15, 2026
Re-point ant-protocol + ant-node (runtime optional + test-utils dev-dep) from feat/witnessed-transcript-policy -> canonical rc-2026.6.2, refresh lock to saorsa-core 0.26.0-rc.1 / ant-protocol 2.2.0-rc.1 / ant-node 0.12.1-rc.7. Includes #119 (apply witnessed quote policy locally).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
CLOSE_GROUP_SIZErespondersant-protocolandant-nodepins to the matching PR branches; no local path imports or patches are includedSemVer
Feature change in ant-client behavior. No public ant-client API break expected.
Dependency PRs
Merge order:
Verification
cargo test -p ant-core witnessed_quote_peerscargo fmt --all -- --checkcargo clippy --all-targets --all-features -- -D warningscargo tree -i ant-protocol --all-featurescargo tree -i ant-node --all-featurescargo tree -i saorsa-core --all-features