Skip to content

docs(spec): let a member serve a removed device its roster over the LAN - #116

Merged
A-EDev merged 1 commit into
mainfrom
docs/spec-lan-removed-device
Nov 19, 2026
Merged

A-EDev merged 1 commit into
mainfrom
docs/spec-lan-removed-device

Conversation

@A-EDev

@A-EDev A-EDev commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

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 (key and get answer not_found, list answers empty, put answers invalid, live is 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

  • Bug fix
  • Feature
  • Refactor or maintenance
  • Documentation or specification
  • Build, packaging, or CI

Validation

  • pnpm check: run on the tracked files (biome check over git ls-files): 154 files, no errors. The plain pnpm check also picks up local untracked files under notes/ and fails on those.
  • pnpm typecheck: passed
  • pnpm test: protocol 230 passed; server 143 passed, 3 skipped

Risk 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.

@A-EDev
A-EDev merged commit 2d7350f into main Nov 19, 2026
10 of 11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant