docs(signal-protocol): retry-not-nack for aged-out InvalidSignedPreKeyId - #386
Conversation
…gnedPreKeyId whatsapp-rust#987 fixed the 1:1 decrypt path to send a retry receipt (RetryReason::InvalidKeyId) instead of the catch-all NACK when a PreKeySignalMessage names a signed prekey that has rotated past SIGNED_PRE_KEY_RETENTION, mirroring the sibling InvalidPreKeyId arm.
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
Warning Review limit reached
Next review available in: 40 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
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. Comment |
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Workflows to automatically generate PRs for you. |
There was a problem hiding this comment.
No issues found across 1 file
Confidence score: 5/5
- Automated review surfaced no issues in the provided summaries.
- No files require special attention.
Auto-approved: Documentation-only update adding a paragraph about retry behavior for an edge case. No source code changes, low risk.
Re-trigger cubic
Summary
Documents the fix from oxidezap/whatsapp-rust#987.
advanced/signal-protocol.mdx— in the "Signed pre-key rotation (RotateKeyJob)" section, adds a paragraph explaining that when a peer'sPreKeySignalMessagenames a signed prekey that has aged pastSIGNED_PRE_KEY_RETENTION(genuinely gone, not just a backend-table miss), the 1:1 decrypt path now sends a retry receipt (RetryReason::InvalidKeyId) instead of falling through to the catch-all NACK — mirroring the existingInvalidPreKeyIdarm. Previously this case fell through to a terminal NACK, silently and permanently dropping the 1:1 message from the offline queue.Locationline for that subsection to includesrc/message/receive.rs.Why
The upstream PR changes the receive-path error classification for
SignalProtocolError::InvalidSignedPreKeyId. This doc's "Signed pre-key rotation" section already explained the pre-fix backend-fallback bug for this same error variant, so it's the natural place to record the follow-up decrypt-path behavior.Not included
Per the task instructions, no changelog entries were added — those are human-authored only.
Generated by Claude Code
Summary by cubic
Document the change to send a retry receipt (
RetryReason::InvalidKeyId) instead of a NACK when aPreKeySignalMessagereferences a signed pre-key id pastSIGNED_PRE_KEY_RETENTIONon the 1:1 decrypt path. This prevents silent message loss and matches the existingInvalidPreKeyIdhandling; also updates the Location list to includesrc/message/receive.rs.Written for commit 5c56940. Summary will update on new commits.