Repository navigation
fix(core-sync): a secret a landing took out stays marked until its record points there again - #4840
Merged
Merged
Conversation
…cord points there again
This was referenced Dec 3, 2026
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 what #4834 left open (core ADR 0114, A pulled destination does not take a stored secret): a synced password deleted on every device.
EnvelopeAdapter: a mark for a secret the landing took out now stays after the record lands elsewhere (Settled::Out), with where the record pointed and, new, the envelope copy the landing found (under).recordsreads the envelope as held back, never as a removal.recordsorapplyafter the record points there again puts the secret back from that copy and ends the mark.underand settles as before.held_records.Test plan
tests/engine/destinations.rs, end to end through the engine and the fake server. Each fails on main and passes here:a_destination_edited_back_here_after_a_pulled_move_gets_its_password_back_and_keeps_its_envelope, which also checks that the mark is neither counted nor listed as held;a_restore_equal_to_the_server_s_copy_puts_back_the_password_a_pulled_move_took_out;a_password_the_person_removes_after_it_came_back_deletes_its_envelope;with_ssh_profiles_off_a_password_a_pulled_move_took_out_goes_back_when_the_profile_points_there_again, which also checks that nothing goes up while they are off.a_password_another_device_sent_for_the_new_destination_and_removed_here_deletes_its_envelope;a_password_typed_here_for_the_new_destination_and_removed_deletes_its_envelope.verify.sh --platform windows --jobs 4 coreon the final tree: PASS fortablepro-sync(1324),tablepro-sync-testing(105),tablepro-sync-host(16),tablepro-ffi(555),tablepro-keys(90) andtablepro-records(131).cargo clippy --locked --all-targets -- -D warningsfor the same six crates: clean.codex review --base origin/mainand a security pass withcodex exec -s read-only: no findings in either.