Repository navigation
docs(spec): let a member serve a removed device its roster over the LAN - #116
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
live.md, Session: S also answers the hello of a C that its roster shows as removed, when C was a device in the hello's epoch. C still accepts only a current device as S.live.md, LAN groups: a new "Removed devices" rule. Such a session serves the roster only (keyandgetanswernot_found,listanswers empty,putanswersinvalid,liveis dropped), the member pulls nothing from the removed device and keeps no address for it, and the removed device finds itself missing and stops.protocol.md, Removal: points a LAN-only removed device to that rule.threat-model.md, G4: notes what a removed device still sees over the LAN: the roster, so the devices added after it and their sealed names.Flow Desktop: Flow-Tube/Flow-Desktop#663. Flow for Android: Flow-Tube/Flow#2215.
Related issue
Flow-Tube/Flow-Desktop#662
Change type
Validation
pnpm check: run on the tracked files (biome checkovergit ls-files): 154 files, no errors. The plainpnpm checkalso picks up local untracked files undernotes/and fails on those.pnpm typecheck: passedpnpm test: protocol 230 passed; server 143 passed, 3 skippedRisk and compatibility
Protocol behaviour change on the answering side only, with no format, label or vector change. Devices on the old rule still refuse a removed peer, which then stays unaware until it meets an updated member.
A removed device keeps reading the roster from LAN members for as long as it dials them.
Spec, reference implementation and vectors agree (protocol changes only).
No content, keys, tokens or IP addresses are logged.
Dependency and lockfile changes are intentional and limited to this PR.