Repository navigation
fix(core-sync): a device approved after its account made a team key holds that key at once, and starts no key over before it read who holds it - #4842
Merged
Conversation
…olds that key at once, and starts no key over before it read who holds it
This was referenced Dec 3, 2026
Merged
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
keys/approval/confirm.rs,merge_approval) imports a team version the approver holds with no holders, and the device judged a team only when a pull brought that team a key object. The team's version record and wraps had come in the pulls while the device waited, so nothing judged them again.sync.not_allowed. Before, it went through and replaced a key the account held.TeamKeysand the FFI'sTeamKeysInfogainholders_known. Windows shows "This computer is still reading the team's keys from the server" instead of Start over while it is false. C# bindings regenerated. The Mac does not read it yet and still offers Start over in that window, which the core now refuses.Test plan
tests/core_engine/approval.rs,a_device_approved_after_its_account_made_a_team_key_holds_that_key_at_once: on mainholder: false, the ownerAwaitingConfirmation, the rig's state.tests/core_engine/approval.rs,a_team_version_left_with_no_holders_read_is_read_at_the_next_pass.tests/device_flows/team_join.rs,a_device_that_has_not_read_who_holds_a_team_key_starts_none_over: on main the restart returnsOk(()).TeamKeysTests.AnOwnerWhoseComputerHasNotReadWhoHoldsTheKeyIsOfferedNoRestart.verify.sh --platform windows --jobs 4 core: PASS fortablepro-sync(1327),tablepro-sync-testing(105),tablepro-sync-host(16),tablepro-ffi(555).bindings: PASS after regenerating.test TablePro.App.Model.Tests: PASS (1533).cargo clippy --locked -p tablepro-sync -p tablepro-sync-testing -p tablepro-sync-host -p tablepro-ffi --all-targets -- -D warningsandcargo fmt --check: clean.codex review --base origin/mainand a security pass withcodex exec -s read-only: no findings.