Clarify safe sync recovery across supervisors #90
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!90
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/svd-dev-messages-mind-mcp-87-rebuild-safety-docs-from-th-f149650c"
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?
Document persistent supervisor stops, the Tombstone export guard, and the checks required before restarting after a Rebuild. Add regression tests for the recovery guidance and existing lock and store behavior.
Docs change (operator-visible): to stop sync before a Rebuild, disable and boot out the launchd agent so it stays stopped across a logout; Compose and Kubernetes are named too
This PR replaces the closed PR #89. It carries the merge-gate rework rows R1 to R10 (spec section G): start sync again only after the Rebuild exits 0 and the Tombstone store file exists; set
store.tombstone_export_pathas a guard before moving the stores; name every Compose command that starts sync; warn about a Kubernetes reconcile; and tighten the test pins.Item 14 record
The except widened at
store.py:266(RuntimeError,ValueError) also coverscreate=True. On that branch only a NUL path can raise these, and the config already refuses a NUL store path (#81). The #84 spec said the branch was unchanged; this records that it now catches more.Mutation log
Run by the merge gate on the host at
c87de9e, one mutant at a time, each reverted after its run. The dispatch did not run M4 to M7, because the write set excludes source files; the gate ran them. Each line gives the mutant, the test filter and the observed result.tests/test_sync_documents.py tests/test_sync.py tests/test_store.py -x; failedtests/test_sync_documents.py::test_the_documents_stop_the_launchd_agent_across_a_login(killed).tests/test_sync_documents.py tests/test_sync.py tests/test_store.py -x; failedtests/test_sync_documents.py::test_the_documents_state_what_the_lock_does_not_cover(killed).tests/test_sync_documents.py tests/test_sync.py tests/test_store.py -x; failedtests/test_sync_documents.py::test_the_documents_state_the_exact_fresh_store_condition(killed).tests/test_sync_documents.py tests/test_sync.py tests/test_store.py -x; failedtests/test_store.py::test_a_writer_without_create_opens_the_path_as_written_without_resolving(killed).tests/test_sync_documents.py tests/test_sync.py tests/test_store.py -x; failedtests/test_sync.py::test_a_hold_that_flock_refuses_with_an_os_error_closes_its_descriptor(killed).tests/test_sync_documents.py tests/test_sync.py tests/test_store.py -x; failedtests/test_sync.py::test_a_missing_salt_refuses_before_the_lock_and_the_stores(killed).tests/test_sync_documents.py tests/test_sync.py tests/test_store.py -x; failedtests/test_sync.py::test_a_symlink_loop_at_the_mirror_path_is_retried_with_tombstones_unreadable(killed).tests/test_sync_documents.py tests/test_sync.py tests/test_store.py -x; failedtests/test_sync_documents.py::test_the_documents_stop_the_launchd_agent_across_a_login(killed).tests/test_sync_documents.py tests/test_sync.py tests/test_store.py -x; failedtests/test_sync_documents.py::test_the_documents_stop_the_launchd_agent_across_a_login(killed).tests/test_sync_documents.py tests/test_sync.py tests/test_store.py -x; failedtests/test_sync_documents.py::test_the_documents_stop_the_launchd_agent_across_a_login(killed).tests/test_sync_documents.py tests/test_sync.py tests/test_store.py -x; failedtests/test_sync_documents.py::test_the_readme_names_how_to_stop_every_supervisor(killed).tests/test_sync_documents.py tests/test_sync.py tests/test_store.py -x; failedtests/test_sync_documents.py::test_the_readme_names_how_to_stop_every_supervisor(killed).tests/test_sync_documents.py tests/test_sync.py tests/test_store.py -x; failedtests/test_sync_documents.py::test_the_documents_state_the_exact_fresh_store_condition(killed).tests/test_sync_documents.py tests/test_sync.py tests/test_store.py -x; failedtests/test_sync_documents.py::test_security_states_the_resync_risk_and_the_stop_rule(killed).tests/test_sync_documents.py tests/test_sync.py tests/test_store.py -x; failedtests/test_sync_documents.py::test_the_documents_name_the_moved_store_directory(killed).tests/test_sync_documents.py tests/test_sync.py tests/test_store.py -x; failedtests/test_sync_documents.py::test_every_rebuild_pointer_says_to_stop_the_agent_first(killed).tests/test_sync_documents.py tests/test_sync.py tests/test_store.py -x; failedtests/test_sync_documents.py::test_the_nfs_and_smb_cases_stay_apart(killed).tests/test_sync_documents.py tests/test_sync.py tests/test_store.py -x; failedtests/test_sync_documents.py::test_the_rebuild_steps_restart_sync_only_after_a_successful_rebuild(killed).tests/test_sync_documents.py tests/test_sync.py tests/test_store.py -x; failedtests/test_sync_documents.py::test_the_rebuild_steps_restart_sync_only_after_a_successful_rebuild(killed).tests/test_sync_documents.py tests/test_sync.py tests/test_store.py -x; failedtests/test_sync_documents.py::test_the_rebuild_steps_restart_sync_only_after_a_successful_rebuild(killed).tests/test_sync_documents.py tests/test_sync.py tests/test_store.py -x; failedtests/test_sync_documents.py::test_the_rebuild_steps_restart_sync_only_after_a_successful_rebuild(killed).tests/test_sync_documents.py tests/test_sync.py tests/test_store.py -x; failedtests/test_sync_documents.py::test_the_rebuild_steps_restart_sync_only_after_a_successful_rebuild(killed).tests/test_sync_documents.py tests/test_sync.py tests/test_store.py -x; failedtests/test_sync_documents.py::test_the_rebuild_steps_restart_sync_only_after_a_successful_rebuild(killed).tests/test_sync_documents.py tests/test_sync.py tests/test_store.py -x; failedtests/test_sync_documents.py::test_the_rebuild_steps_restart_sync_only_after_a_successful_rebuild(killed).tests/test_sync_documents.py tests/test_sync.py tests/test_store.py -x; failedtests/test_sync_documents.py::test_the_readme_names_how_to_stop_every_supervisor(killed).tests/test_sync_documents.py tests/test_sync.py tests/test_store.py -x; failedtests/test_sync_documents.py::test_the_rebuild_steps_restart_sync_only_after_a_successful_rebuild(killed).tests/test_sync_documents.py tests/test_sync.py tests/test_store.py -x; failedtests/test_sync_documents.py::test_the_rebuild_steps_restart_sync_only_after_a_successful_rebuild(killed).tests/test_sync_documents.py tests/test_sync.py tests/test_store.py -x; failedtests/test_sync_documents.py::test_the_rebuild_steps_set_the_export_path_as_a_guard(killed).tests/test_sync_documents.py tests/test_sync.py tests/test_store.py -x; failedtests/test_sync_documents.py::test_the_rebuild_steps_set_the_export_path_as_a_guard(killed).tests/test_sync_documents.py tests/test_sync.py tests/test_store.py -x; failedtests/test_sync_documents.py::test_the_rebuild_steps_set_the_export_path_as_a_guard(killed).tests/test_sync_documents.py tests/test_sync.py tests/test_store.py -x; failedtests/test_sync_documents.py::test_the_rebuild_steps_set_the_export_path_as_a_guard(killed).tests/test_sync_documents.py tests/test_sync.py tests/test_store.py -x; failedtests/test_sync_documents.py::test_the_rebuild_steps_set_the_export_path_as_a_guard(killed).docker compose run api: filtertests/test_sync_documents.py tests/test_sync.py tests/test_store.py -x; failedtests/test_sync_documents.py::test_the_readme_names_every_compose_command_that_starts_sync(killed).docker compose restart: filtertests/test_sync_documents.py tests/test_sync.py tests/test_store.py -x; failedtests/test_sync_documents.py::test_the_readme_names_every_compose_command_that_starts_sync(killed).tests/test_sync_documents.py tests/test_sync.py tests/test_store.py -x; failedtests/test_sync_documents.py::test_the_documents_warn_that_a_kubernetes_reconcile_restores_the_replicas(killed).tests/test_sync_documents.py tests/test_sync.py tests/test_store.py -x; failedtests/test_sync_documents.py::test_the_documents_warn_that_a_kubernetes_reconcile_restores_the_replicas(killed).tests/test_sync_documents.py tests/test_sync.py tests/test_store.py -x; failedtests/test_sync_documents.py::test_the_documents_say_a_moved_store_directory_moves_both_stores(killed).tests/test_sync_documents.py tests/test_sync.py tests/test_store.py -x; failedtests/test_sync_documents.py::test_the_documents_say_a_moved_store_directory_moves_both_stores(killed).tests/test_sync_documents.py tests/test_sync.py tests/test_store.py -x; failedtests/test_sync_documents.py::test_every_rebuild_pointer_says_to_stop_the_agent_first(killed).tests/test_sync_documents.py tests/test_sync.py tests/test_store.py -x; failedtests/test_sync_documents.py::test_the_documents_stop_the_launchd_agent_across_a_login(killed).tests/test_sync_documents.py tests/test_sync.py tests/test_store.py -x; failedtests/test_sync_documents.py::test_the_documents_name_the_launch_agents_directory_as_the_login_cause(killed).tests/test_sync_documents.py tests/test_sync.py tests/test_store.py -x; failedtests/test_sync_documents.py::test_the_documents_name_the_launch_agents_directory_as_the_login_cause(killed).tests/test_sync_documents.py tests/test_sync.py tests/test_store.py -x; failedtests/test_sync_documents.py::test_the_documents_state_the_exact_fresh_store_condition(killed).tests/test_sync_documents.py tests/test_sync.py tests/test_store.py -x; failedtests/test_sync_documents.py::test_the_documents_state_the_exact_fresh_store_condition(killed).tests/test_sync_documents.py tests/test_sync.py tests/test_store.py -x; failedtests/test_sync_documents.py::test_the_install_risk_sentence_names_both_stores_and_leads_into_the_block(killed).tests/test_sync_documents.py tests/test_sync.py tests/test_store.py -x; failedtests/test_sync_documents.py::test_every_stop_the_sync_agent_link_resolves(killed).tests/test_sync_documents.py tests/test_sync.py tests/test_store.py -x; failedtests/test_sync_documents.py::test_the_readme_names_how_to_stop_every_supervisor(killed).tests/test_sync_documents.py tests/test_sync.py tests/test_store.py -x; failedtests/test_sync_documents.py::test_the_readme_names_how_to_stop_every_supervisor(killed).tests/test_sync_documents.py tests/test_sync.py tests/test_store.py -x; failedtests/test_sync_documents.py::test_the_readme_names_how_to_stop_every_supervisor(killed).M1 to M8j and every R row were killed. M8k (the SECURITY sentence about a directory at the lock path) survived: no test pins that sentence, although the behaviour is tested. T2a and T2b are extra gate checks outside the spec; no test pins the api dependency on sync in
compose.yamlor the Deployment's default of 1 replica. The three survivors go to a follow-up issue.Test results
db2f89f: 1470 passed, 58 skipped, 2 deselected (make checkon the host).c87de9e: 1491 passed, 58 skipped, 2 deselected (dispatch report).Closes #87
Co-Authored-By: gpt-6.1-terra noreply@openai.com
Closed without merge. The correctness review of
c87de9efound two blockers:launchctl enable/bootstrapin one block, with only a comment between them. A pasted block starts sync again after a failed Rebuild. The install block also runsmessagesmind, which is not on PATH in that install.syncfinishes the work, and a second Rebuild refuses withrebuild-store-present.The security review found no blocker but reported the same gaps, plus: "creates nothing" is false (the lock file), a whole-directory move with an export path set makes every verb refuse with
config-validation, and the tests did not catch a restart placed before the Rebuild.The host gate passed (1491 passed) and the mutation pass killed 49 of 52 mutants; see the PR body. The spec for #87 now carries rework rows H1 to H9 (architect gate, round 3). Because
codex-svd integratecannot rework after a spec amendment (dev/stables#2219), #87 is dispatched again frommain. The Compose and Kubernetes Rebuild runbook stays in #88.Pull request closed