Repository navigation
docs(adr): align ADR 005 voucher-reject mirror with the wire enum - #2258
Merged
Merged
Conversation
BadPreimage is mirrored from PoolError::BadPreimage. SignerCapExhausted joins the ADR 005 listing, handler-direct paragraph, retry table and mirror exempt set, and the ADR 003 wire-encoding table. The VoucherRejectReason rustdoc matches. Closes #2172 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Contributor
Review: approveVerified against Nit (optional)
|
alpergundogdu
approved these changes
Oct 1, 2026
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
BadPreimagea handler-emitted reason with no validation-enum counterpart.PoolError::BadPreimageexists andvoucher_reject_reasonmaps it one-to-one. The enum listing, the mirror paragraph and §Mirror obligation now list it as mirrored, and it joins the revert-avoiding reasons.SignerCapExhaustedwas missing from ADR 005 (enum listing, handler-direct paragraph, retry table, exempt list) and from ADR 003's wire-encoding table and recovery list. Both now carry it in wire order, with the recovery the rustdoc names: the owner raises the cap or issues a fresh capability. It is not watermark-gated.VoucherRejectReasonrustdoc indecdn-protocolrepeated the same drift and is fixed to match. The false "variant order is frozen — new reasons append at the end" sentence now states that variant order is the postcard wire discriminant. The enum is not reordered.Doc-only, no behavior change.
Test plan
RUSTDOCFLAGS="-D warnings" cargo doc --workspace --no-deps --document-private-itemscargo fmt -- --checkcargo clippy -p decdn-protocol --all-targets -- -D warningscargo nextest run -p decdn-protocol -p decdn-incentive(445 passed)crates/protocol/src/client.rs; mirrored set ==client_bridge.rsmatch armsCloses #2172
🤖 Generated with Claude Code