-
Notifications
You must be signed in to change notification settings - Fork 74
set dependencies in send message #2788
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
This PR is part of a stack of 3 bookmarks:
Created with jj-stack |
|
Claude finished @insipx's task —— View job Code Review CompleteReviewed PR #2788: set dependencies in send message Review Date: December 1, 2025, 16:03 UTC SummaryThis PR implements dependency tracking for group messages by computing SHA-256 hashes of message payloads and attaching dependency cursors via 🔴 Critical Issues1. Panic in InMemoryCursorStore (xmtp_api_d14n/src/protocol/in_memory_cursor_store.rs:102)fn find_message_dependencies(&self, hash: &[&[u8]]) -> Result<HashMap<Vec<u8>, Cursor>, CursorStoreError> {
Err(CursorStoreError::NoDependenciesFound(hash.iter().map(hex::encode).collect()))
}Issue: This returns an error instead of an empty HashMap. This could break in-memory testing scenarios.
|
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #2788 +/- ##
==========================================
- Coverage 73.93% 73.91% -0.03%
==========================================
Files 390 392 +2
Lines 49841 50095 +254
==========================================
+ Hits 36852 37026 +174
- Misses 12989 13069 +80 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
fa74c34 to
67391ef
Compare
2eb2896 to
dd2a940
Compare
dd2a940 to
d943b80
Compare
d027392 to
d9e4053
Compare
2a40598 to
0ed5444
Compare
d9e4053 to
69c6929
Compare
0ed5444 to
5a0ae8e
Compare
cee6002 to
5046d87
Compare
81c73a2 to
9a445a1
Compare
859ec84 to
f3afec7
Compare
22f2a52 to
a0a267d
Compare
f3afec7 to
daf718b
Compare
a0a267d to
a03ee2d
Compare
118b203 to
226d0dc
Compare
226d0dc to
6a1f626
Compare
344089e to
f415cf8
Compare
6a1f626 to
0489303
Compare
f415cf8 to
5713910
Compare
5713910 to
a139392
Compare
0489303 to
5e941ec
Compare
5e941ec to
d2ad8ec
Compare
Annotate group message send with dependency cursors and add SHA-256 hashing across d14n envelopes in
xmtp_api_d14nandxmtp_mlsImplement dependency resolution for group message publish by computing payload SHA-256s and setting
AAD.depends_oninXmtpMlsClient::send_group_messages, addCursorStore::find_message_dependencies, propagate cursors and hashes throughEnvelope,EnvelopeCollection, and extractors, and extend SQLite cursor store to return dependency cursors.📍Where to Start
Start with dependency injection and AAD setting in
XmtpMlsClient::send_group_messagesin mls.rs, then review theCursorStoreextensions in cursor_store.rs and the SQLite implementation in cursor_store.rs.Macroscope summarized d2ad8ec.