Conversation
…ment class v5.2-dev does not compile since #6398 merged on top of #5928: #5928 made the matches over PlatformWalletError exhaustive so every error gets a payment class, and #6398 added MasternodeVotingKeyNotInWallet on a base from before it. The error is raised by PlatformWallet::masternode_voting_key before anything is signed or sent, so it is NotSent and not retryable (the vote needs the wallet that holds the key), like MessageSigningKeyUnavailable. It does not refuse the resume of a tracked asset lock. The test table that enumerates every variant gets its row and ordinal. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 7 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
|
Waiting for bot review — thepastaclaw not yet. Wait for the missing reviews, or a writer can post |
|
✅ Final review complete — no blockers (commit 8162dc1) · triage: low |
|
/self-reviewed |
thepastaclaw
left a comment
There was a problem hiding this comment.
Final validation — Phase 1 + Phase 2
This patch completes the four exhaustive wallet error matches, classifying a missing masternode voting key as NotSent and non-retryable without making it an asset-lock resume refusal. Rust wallet tests and the Kotlin and Swift SDK checks passed; Rust workspace tests were skipped, and no Rust API docs check was reported for this head. PR Hygiene and the review check are pending.
Review provenance
Source: reviewer 1: muse-spark-1.3-contributor (agent: phase1-reviewer, role: general); reviewer 2: muse-spark-1.3-contributor (agent: phase1-reviewer, role: rust-quality); reviewer 3: gpt-6.2-sol (agent: phase2-reviewer, role: general); reviewer 4: gpt-6.2-sol (agent: phase2-reviewer, role: architecture-layering); reviewer 5: gpt-6.2-sol (agent: phase2-reviewer, role: rust-quality); final verifier: gpt-6.2-sol (agent: sol-verifier, role: final-verifier)
- Triage:
lowbygpt-6.2-sol(effort low) — This is a small, well-contained Rust exhaustiveness fix that assigns existing error classifications and updates corresponding coverage without changing payment, signing, or storage behavior. - Phase 1 reviewers:
muse-spark-1.3-contributor— general (completed, effort high); agentphase1-reviewer,muse-spark-1.3-contributor— rust-quality (completed, effort high); agentphase1-reviewer - Phase 1 model:
muse-spark-1.3-contributor— not quota-gated; passed overgemini-3.8-flash-high(antigravity quota lookup failed),glm-5.3-flash(zai quota lookup failed) - Fresh verifier:
gpt-6.2-sol— final-verifier; agentsol-verifier - Phase 2 reviewers:
gpt-6.2-sol— general (completed, effort medium); agentphase2-reviewer,gpt-6.2-sol— architecture-layering (completed, effort medium); agentphase2-reviewer,gpt-6.2-sol— rust-quality (completed, effort medium); agentphase2-reviewer
|
Policy satisfied — this can merge. |
Issue being fixed or feature implemented
v5.2-devdoes not compile since #6398 merged on top of #5928. This restores the build.#5928 made the matches over
PlatformWalletErrorexhaustive, so that every wallet error is given a payment class. #6398 added the variantPlatformWalletError::MasternodeVotingKeyNotInWallet, and its CI ran on a base from before #5928, so the variant is missing from those matches. On the branch head (6ccca91211) "Rust workspace tests" and "Build Rust API docs" fail with fourE0004errors inplatform-wallet, and every pull request that merges the base fails the same way (the Kotlin SDK job included, as it builds the wallet).What was done?
MasternodeVotingKeyNotInWalletis added to the four matches the compiler names, and to the test table that enumerates every variant:PlatformWalletError::payment_delivery:NotSent.PlatformWallet::masternode_voting_keyraises the error before anything is signed or sent.PlatformWalletError::is_retryable:false. Running the same call again meets the same refusal; the vote needs the wallet that holds the masternode's voting key. This is the class feat(platform-wallet): report whether a failed payment may have left the wallet #5928 gave the comparableMessageSigningKeyUnavailable.refuses_resumeinwallet/asset_lock/orchestration.rs:false, like every error that is not about the tracked lock itself.VARIANT_COUNTgoes from 130 to 131, and the table has aNotSentrow for it.No behaviour changes for any other error. The FFI mapping for this variant was already added by #6398.
How Has This Been Tested?
6ccca91211: the fourE0004errors are exactly the four matches changed here (three in the lib, one in the test module).cargo check -p platform-wallet -p platform-wallet-ffi -p rs-unified-sdk-jni --all-targetspasses.cargo test -p platform-wallet --lib -- error:: asset_lock::orchestration masternode_vote: 54 passed, includingshould_classify_every_variantandshould_allow_a_retry_only_where_nothing_left, which read the new row.cargo fmt --all -- --checkandcargo clippy --all-targetson the three crates are clean.Breaking Changes
None.
Checklist:
structure.rs, regeneratedgrovedb-structure.json, and checked the structure viewer link posted on this pull requestFor repository code-owners and collaborators only
🤖 Generated with Claude Code
PR Hygiene ·
8162dc1When every merge requirement is met, the
PR Hygienecheck passes. Reviewer limits do not block merging; other required GitHub checks and protections still apply.