Repository navigation
Conversation
An owner takeover restarts the access counter above what the owner devices reported, so a phone that was away can see a lower number than it last saw. The counter floor refused that hub until the count caught up, and closed the connection when an owner allowed a waiting phone. Keep the floor only within one counter lineage: the same epoch or hubs reached by planned transfers. A validated takeover in the signed history that is newer than the lineage the counter was seen under starts a new count, without inventing removals. A history whose signed base hides everything this phone held is treated the same way. Check the counter of a waiting welcome as well. Keep the floor in the setup settings next to the pinned ownership, set a damaged evidence file aside instead of overwriting it, and leave one that cannot be read yet untouched until it can be merged. Age removals by the monotonic clock within one boot, so wall clock steps neither drop recent removals nor keep old ones.
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.
I noticed the phone could accept an older hub with the same key and lose what it had already seen of ownership and access changes. Guarding against that must not lock a phone out after an owner takes the hub over while the phone is away: the new hub restarts the access count, which can be lower than what the phone last saw. It also needed to distinguish devices that stayed in from those waiting for Allow, and make the privacy control clear for people who cannot show the picture.
The phone pins the accepted ownership root and signed history in its setup settings, together with the highest access counter it saw and the takeover it was counted under. A takeover in the signed history newer than that one starts a new count. Protected local access evidence travels in the encrypted reconnect handshake so a standby can detect a stale copy. A newly scanned setup starts a separate account. It does not initiate takeovers itself. The status and controls follow the hub's confirmed state.
Sits on #6 (which sits on #5).
Choices, validation and limits
The inherited not-live handover picker uses fixed choices: 30 minutes (preselected), 1 hour, 3 hours, 12 hours, 24 hours and 7 days. The end-time picker uses 1 hour, 3 hours, 12 hours, 24 hours and 7 days, plus No end time when one is already set. These are app choices, not a dynamic list from the hub. The 7-day end request subtracts 60 seconds to tolerate a slightly fast phone clock; larger clock errors can still be refused. Going live does not override an earlier end time set by an owner.
Status: Protocol review passed. The two evidence-storage follow-ups are fixed with focused regressions; this remains a draft.
owner_saw_more).Before and after screenshots (synthetic data)
Ready
Before (390 px):
After (390 px):
Before (1280 px):
After (1280 px):
Live phone
Before (390 px):
After (390 px):
Before (1280 px):
After (1280 px):
Hidden
Before (390 px):
After (390 px):
Before (1280 px):
After (1280 px):
Owner waiting
Before (390 px):
After (390 px):
Before (1280 px):
After (1280 px):
Hidden helper
Hidden unreachable
Hidden dark
Takeover stayed
Takeover waiting
Access takeover