Clarify guarded restore steps and pin recovery behavior #95
No reviewers
Labels
No labels
boundary:crosses
bug
enhancement
epic
needs-info
needs-triage
ready-for-agent
ready-for-human
svd:go
svd:hold
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
dev/messages-mind-mcp!95
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/svd-dev-messages-mind-mcp-92-restore-steps-follow-ups-fr-8591db27"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Split the launchd recovery procedure into four gated blocks, preserve newer Forgets by restoring the moved Tombstone store, and document sidecars and export durability. Add document pins and synthetic recovery and lock-path tests.
Docs change (operator-visible): the restore steps are four blocks (stop and check, move, Rebuild, restart); the restore rule keys on the printed code; the Tombstone store's sidecar is -journal; block 3 restores from the moved-aside Tombstone store; the steps stop and start the api with sync.
Round 2 (spec rows I1 to I11)
This PR replaces #94, which closed without merge after two fresh reviews (spec commit
af0bf69in the groupthink exhaust repo).test_a_rebuild_from_the_moved_aside_tombstone_store_keeps_forgets_newer_than_the_exportproves it with synthetic fixtures.sync=okbranch and anot run: a check failedbranch.mkdirand the move loop are one&&chain; the README placeholders are quoted.RunAtLoad; each block is pinned whole.NAMESPACEsentence stands alone; the exit-0 check covers more wordings.Decisions
fsynccode fix is out of scope (nosrc/edit) and is tracked in #93.source-replacedandrow-id-reusedrows keep "move both aside and use a Rebuild". The export-less path belongs in the #88 runbook.launchctl print-disabledoutput form is unverified on a host. Block 1 matches both=> disabledand=> true. The operator confirms the form at the first install.replicas: 1out of the Deployment) needs an edit todeploy/, which the spec keeps read-only; the dispatch did not apply it by hand.Mutation log
The merge gate ran its own pass at
2ff56b0: 37 mutants, 37 killed. Each ranpytest tests/test_sync_documents.py tests/test_sync.py tests/test_store.py tests/test_layout.py -x. The M7 row names the item 9 test: M7 applied alone failstest_the_lock_is_keyed_on_the_mirror_path_as_the_config_writes_it.tests/test_sync.py::test_the_lock_is_keyed_on_the_mirror_path_as_the_config_writes_ittests/test_sync_documents.py::test_every_repeated_readme_sentence_is_pinned_in_each_sectiontests/test_sync_documents.py::test_install_section_6_repeats_no_sentencetests/test_sync_documents.py::test_the_launchd_restore_steps_are_four_gated_blockstests/test_sync_documents.py::test_the_launchd_restore_steps_are_four_gated_blockstests/test_sync_documents.py::test_the_launchd_restore_steps_are_four_gated_blockstests/test_sync_documents.py::test_the_launchd_restore_steps_are_four_gated_blockstests/test_sync_documents.py::test_the_launchd_restore_steps_are_four_gated_blockstests/test_sync_documents.py::test_the_launchd_restore_steps_are_four_gated_blockstests/test_sync_documents.py::test_the_launchd_restore_steps_are_four_gated_blockstests/test_sync_documents.py::test_the_launchd_restore_steps_are_four_gated_blockstests/test_sync.py::test_a_rebuild_from_the_moved_aside_tombstone_store_keeps_forgets_newer_than_the_exporttests/test_sync_documents.py::test_the_launchd_restore_steps_are_four_gated_blockstests/test_sync_documents.py::test_the_launchd_restore_steps_are_four_gated_blockstests/test_sync_documents.py::test_the_launchd_restore_steps_are_four_gated_blockstests/test_sync_documents.py::test_the_launchd_restore_steps_are_four_gated_blockstests/test_sync_documents.py::test_the_launchd_restore_steps_are_four_gated_blockstests/test_sync_documents.py::test_the_compose_and_kubernetes_restart_gates_are_pinnedtests/test_sync_documents.py::test_the_rebuild_steps_restart_sync_only_after_a_successful_rebuildtests/test_sync_documents.py::test_the_rebuild_steps_restart_sync_only_after_a_successful_rebuildtests/test_sync_documents.py::test_the_restore_rule_keys_on_the_printed_codetests/test_sync_documents.py::test_the_export_temp_file_and_fsync_limit_are_statedtests/test_sync_documents.py::test_the_launchd_restore_steps_are_four_gated_blockstests/test_sync_documents.py::test_the_launchd_restore_steps_are_four_gated_blockstests/test_sync_documents.py::test_the_restart_condition_is_the_tombstone_store_filetests/test_sync_documents.py::test_the_export_temp_file_and_fsync_limit_are_statedtests/test_sync_documents.py::test_the_restore_steps_pin_the_explanationstests/test_sync_documents.py::test_the_launchd_restore_steps_are_four_gated_blockstests/test_sync_documents.py::test_the_launchd_restore_steps_are_four_gated_blockstests/test_sync_documents.py::test_the_launchd_restore_steps_are_four_gated_blockstests/test_sync_documents.py::test_the_rebuild_steps_restart_sync_only_after_a_successful_rebuildtests/test_sync_documents.py::test_the_rebuild_steps_restart_sync_only_after_a_successful_rebuildtests/test_sync_documents.py::test_the_launchd_restore_steps_are_four_gated_blockstests/test_sync_documents.py::test_the_launchd_restore_steps_are_four_gated_blockstests/test_sync_documents.py::test_the_launchd_restore_steps_are_four_gated_blockstests/test_sync_documents.py::test_the_aside_directory_sentence_is_pinnedtests/test_sync_documents.py::test_the_restore_steps_pin_the_explanationsTests
205d5df:make check1,505 passed, 58 skipped, 2 deselected.make check1,517 passed, 58 skipped, 2 deselected.Closes #92
Co-Authored-By: gpt-6.1-terra noreply@openai.com
Closed without merge. The operator ruled on 2026-11-16 for a simpler round 3. Both fresh reviews of
2ff56b0found the same blocker and reproduced it. A restore from the moved-aside Tombstone store fails for fixable reasons: a hot-journal(the source opens read-only), a version-1 store, Ctrl-C or a full disk. The restore rule then sent the operator to the export, which loses every Forget newer than the export. The security review also found that a leftoverTOMBSTONES-journalbeside a restored store silently empties it.Round 3 gives two paths. Replace the Mirror keeps the Tombstone store in place: a plain open rolls back a hot journal and upgrades a version-1 store, so every Forget stays. Restore a lost Tombstone store is a Rebuild from the export, used only when no Tombstone store that opens is left, with every sidecar checked absent. The mutation pass at
2ff56b0killed 37 of 37 mutants, and the host gate was green; those results do not carry over to the new design. Becausecodex-svd integratecannot rework after a spec amendment (dev/stables#2219), #92 is dispatched again frommain. A new PR replaces this one.Pull request closed