fix(crypto): recover from undecryptable peer messages after identity resets #22
No reviewers
Labels
No labels
agent:felinus
agent:human
agent:maximus
merge-train
bounced
merge-train
now
merge-train
queued
merge-train
riding
priority:p0
priority:p1
priority:p2
priority:p3
status:blocked
status:needs-review
status:wip
type:chore
type:docs
type:feat
type:fix
type:perf
type:refactor
type:test
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
public/matrix-bridge!22
Loading…
Reference in a new issue
No description provided.
Delete branch "maximus/fix/utd-recovery"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Why
On 2026-11-14 Felinus's messages were undecryptable (UTD) on every Maximus bridge. Her bridge had reset its cross-signing identity; the new Megolm session it created did not include our device, and nothing on either side noticed. The workaround was manual: she deleted her
outbound_group_sessionrow so the next message re-shared the key.Separately, running
matrix-bridge-mcp --versionto check the binary acquired the single-instance store lock and evicted the live bridge.What
pin()(pin alone leaves the violation set and keys keep being withheld). Peer devices are marked locally trusted.apply_trust_policynow returns whether any identity changed (tracked per user's master key, process-wide).discard_room_keyand CLImatrix-bridge discard-room-key <room>.--version/--helpexit before touching the store lock.Testing
cargo test --locked -j 1 --all-featureson rpi5: all pass (debuginfo off to fit the linker under a memory cap).cargo check --all: clean apart from the existingBridgeError::LoginFaileddead-code warning.Notes
cargo fmtwas applied to the six touched files only. The base branch isn't rustfmt-clean under rustfmt 1.9, so some hunks in those files are formatting only. CI doesn't check fmt.🤖 Generated with Claude Code
2f3223dc30d3d40faa11