Repository navigation
fix(core-sync): an envelope's floor moves when the server takes the copy, a restored record's missing secret is no removal, and secrets follow their record's category - #4834
Merged
Conversation
…opy, a restored record's missing secret is no removal, and secrets follow their record's category
…untagged answer moves the envelope floor
… landing marks as they were
This was referenced Dec 2, 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
Closes the items #4832 left open (core ADR 0114, Secrets and history), one with a residual named below.
KeyService::seal_personalwrites nokey_envelopesrow.kv, in the commit that takes the answer, with or without a change tag (keys::keep_taken_envelope).parent_landingrefused a restored record for good. That copy now opens, and the record takes the synced copy with its password.RefusedInRefill, a secret its store does not hold, and a record the restored store lost, leave the envelope as the server holds it.DeviceCategories::syncs_record: an envelope syncs only while the person has its record's kind on. A kind off only until the device can seal is not counted.state_integrity/rebuild.rsafter_a_restore_an_envelope_below_its_anchored_kv_is_refusedset each floor by sealing only. It now takes each copy, which still moves the floor; the anchored floor it pins is unchanged.destinations.rs: the comment onRotatedno longer names a re-seal that never went up as why a base does not open.Test plan
Each fails on main and passes here:
tests/core_engine/personal_secrets.rs, with the realKeyService, the engine and the fake server:a_re_seal_that_never_went_up_leaves_a_restored_record_free_to_take_the_synced_copy: on main the record stays at the restored destination, held.a_sealed_copy_moves_the_envelope_s_floor_only_once_the_server_takes_ita_write_the_server_took_without_a_change_tag_still_moves_the_envelope_s_floortests/engine/destinations.rs, end to end:a_restored_record_whose_password_a_pulled_move_took_out_keeps_its_envelope: on main the envelope's delete goes up.a_restored_store_that_lost_the_record_keeps_its_envelopewith_ssh_profiles_off_a_restored_profile_s_password_is_not_sealed_for_the_restored_destinationwith_ssh_profiles_off_a_password_changed_or_removed_here_stays_on_the_device_until_they_are_onwith_ssh_profiles_off_a_password_another_device_sent_lands_once_they_are_onadapters/categories.rsan_envelope_goes_with_its_record_s_kind_as_the_person_set_itRuns:
verify.sh --platform windows --jobs 4 coreon the final tree: PASS fortablepro-sync(1318),tablepro-sync-testing(105),tablepro-sync-host(16),tablepro-ffi(553),tablepro-keys(90) andtablepro-records(131).cargo clippy --locked --all-targets -- -D warningsfor the same six crates: clean.Codex,
codex review --base origin/mainand a security pass withcodex exec -s read-only:RefusedInRefillrecord reads as restored, and landing marks work as on main.Left open