fix(gateway): round-trip SourceID through every SessionStore backend #609

Closed
opened 2026-10-27 13:37:01 +00:00 by sam · 0 comments
Owner

SQLite persists and returns Message.SourceID, but the NellDB adapter derives MessageID from SourceID and then discards SourceID from the stored document. External correlation metadata therefore changes across backend selection and cannot be exported from NellDB during migration.

Acceptance Criteria

The shared conformance suite requires SourceID to round-trip without becoming the canonical MessageID; NellDB persists and reads source_id with empty-field compatibility for older records; SQLite remains conformant; redelivery deduplication and immutable content semantics remain unchanged.


Imported from beads archie-core-1786637491929-82-a7e181a7 · GitHub #103 · type bug · priority P2 · created 2026-08-08 · closed 2026-08-08

SQLite persists and returns Message.SourceID, but the NellDB adapter derives MessageID from SourceID and then discards SourceID from the stored document. External correlation metadata therefore changes across backend selection and cannot be exported from NellDB during migration. ### Acceptance Criteria The shared conformance suite requires SourceID to round-trip without becoming the canonical MessageID; NellDB persists and reads source_id with empty-field compatibility for older records; SQLite remains conformant; redelivery deduplication and immutable content semantics remain unchanged. --- _Imported from beads `archie-core-1786637491929-82-a7e181a7` · GitHub #103 · type bug · priority P2 · created 2026-08-08 · closed 2026-08-08_
sam added the mediumbug labels 2026-10-27 13:37:01 +00:00
sam self-assigned this 2026-10-27 13:37:01 +00:00
sam closed this issue 2026-10-27 13:37:01 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sam/archie#609