Document safe sync stops and guarded rebuilds #91
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!91
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-097bf627"
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?
Describe supervisor-specific stop procedures, the export guard, and the Tombstone-file restart condition. Clarify lock-file and network-filesystem limits, and add documentation and behavior tests for recovery safety.
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 PRs #89 and #90. It carries the merge-gate rework rows of spec sections G (round 2) and H (round 3). The launchd steps are now two blocks: block 1 stops the agent and runs the Rebuild, and block 2 starts sync again only when
test -ffinds the Tombstone store file. The full Compose and Kubernetes Rebuild runbook stays in #88.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
45872a3, one mutant at a time, each reverted after its run. Filter for every line:uv run python3 -m pytest tests/test_sync_documents.py tests/test_sync.py tests/test_store.py -q -x. The dispatch did not run M4 to M7, because the write set excludes source files; the gate ran them. Each line gives the mutant and the observed result.tests/test_sync_documents.py::test_the_documents_stop_the_launchd_agent_across_a_login(killed).tests/test_sync_documents.py::test_the_documents_state_what_the_lock_does_not_cover(killed).tests/test_sync_documents.py::test_the_documents_state_the_exact_fresh_store_condition(killed).tests/test_store.py::test_a_writer_without_create_opens_the_path_as_written_without_resolving(killed).tests/test_sync.py::test_a_hold_that_flock_refuses_with_an_os_error_closes_its_descriptor(killed).tests/test_sync.py::test_a_missing_salt_refuses_before_the_lock_and_the_stores(killed).tests/test_sync.py::test_a_symlink_loop_at_the_mirror_path_is_retried_with_tombstones_unreadable(killed).tests/test_sync_documents.py::test_the_documents_stop_the_launchd_agent_across_a_login(killed).tests/test_sync_documents.py::test_the_documents_stop_the_launchd_agent_across_a_login(killed).tests/test_sync_documents.py::test_the_readme_names_how_to_stop_every_supervisor(killed).tests/test_sync_documents.py::test_the_readme_names_how_to_stop_every_supervisor(killed).tests/test_sync_documents.py::test_security_states_the_resync_risk_and_the_stop_rule(killed).tests/test_sync_documents.py::test_the_documents_name_the_moved_store_directory(killed).tests/test_sync_documents.py::test_every_rebuild_pointer_says_to_stop_the_agent_first(killed).tests/test_sync_documents.py::test_the_nfs_and_smb_cases_stay_apart(killed).tests/test_sync_documents.py::test_the_lock_file_sentences_and_links_are_pinned(killed).tests/test_sync_documents.py::test_the_lock_file_sentences_and_links_are_pinned(killed).tests/test_sync_documents.py::test_the_lock_file_sentences_and_links_are_pinned(killed).tests/test_sync_documents.py::test_the_lock_file_sentences_and_links_are_pinned(killed).tests/test_sync_documents.py::test_the_launchd_restore_block_never_restarts_sync(killed).tests/test_sync_documents.py::test_the_launchd_restore_block_never_restarts_sync(killed).tests/test_sync_documents.py::test_the_launchd_restore_block_never_restarts_sync(killed).tests/test_sync_documents.py::test_the_launchd_restore_block_never_restarts_sync(killed).tests/test_sync_documents.py::test_the_launchd_restore_block_never_restarts_sync(killed).tests/test_sync_documents.py::test_the_install_restore_blocks_use_the_checkout_interpreter(killed).tests/test_sync_documents.py::test_the_install_restore_blocks_use_the_checkout_interpreter(killed).tests/test_sync_documents.py::test_the_rebuild_steps_restart_sync_only_after_a_successful_rebuild(killed).tests/test_sync_documents.py::test_the_rebuild_steps_restart_sync_only_after_a_successful_rebuild(killed).tests/test_sync_documents.py::test_the_rebuild_steps_restart_sync_only_after_a_successful_rebuild(killed).tests/test_sync_documents.py::test_the_rebuild_steps_restart_sync_only_after_a_successful_rebuild(killed).tests/test_sync_documents.py::test_the_rebuild_steps_restart_sync_only_after_a_successful_rebuild(killed).tests/test_sync_documents.py::test_the_rebuild_steps_restart_sync_only_after_a_successful_rebuild(killed).tests/test_sync_documents.py::test_the_rebuild_steps_set_the_export_path_as_a_guard(killed).tests/test_sync_documents.py::test_the_rebuild_steps_set_the_export_path_as_a_guard(killed).tests/test_sync_documents.py::test_the_rebuild_steps_set_the_export_path_as_a_guard(killed).tests/test_sync_documents.py::test_the_documents_say_a_moved_store_directory_moves_both_stores(killed).tests/test_sync_documents.py::test_the_documents_say_a_moved_store_directory_moves_both_stores(killed).tests/test_sync_documents.py::test_the_only_mirror_moved_sentence_stands_alone(killed).tests/test_sync_documents.py::test_the_documents_state_the_exact_fresh_store_condition(killed).docker compose startfrom the list: failedtests/test_sync_documents.py::test_the_readme_names_every_compose_command_that_starts_sync(killed).tests/test_sync_documents.py::test_the_readme_names_every_compose_command_that_starts_sync(killed).tests/test_sync_documents.py::test_the_readme_defers_the_container_rebuild_steps(killed).tests/test_sync_documents.py::test_the_kubernetes_and_security_steps_keep_their_order(killed).tests/test_sync_documents.py::test_the_kubernetes_and_security_steps_keep_their_order(killed).tests/test_sync_documents.py::test_every_stop_the_sync_agent_link_resolves(killed).tests/test_sync_documents.py::test_every_stop_the_sync_agent_link_resolves(killed).docker compose run api: failedtests/test_sync_documents.py::test_the_readme_names_every_compose_command_that_starts_sync(killed).tests/test_sync_documents.py::test_the_documents_warn_that_a_kubernetes_reconcile_restores_the_replicas(killed).tests/test_sync_documents.py::test_the_documents_warn_that_a_kubernetes_reconcile_restores_the_replicas(killed).tests/test_sync_documents.py::test_the_documents_say_a_moved_store_directory_moves_both_stores(killed).tests/test_sync_documents.py::test_every_rebuild_pointer_says_to_stop_the_agent_first(killed).tests/test_sync_documents.py::test_the_documents_stop_the_launchd_agent_across_a_login(killed).tests/test_sync_documents.py::test_the_documents_name_the_launch_agents_directory_as_the_login_cause(killed).tests/test_sync_documents.py::test_the_documents_stop_the_launchd_agent_across_a_login(killed).tests/test_sync_documents.py::test_the_documents_state_the_exact_fresh_store_condition(killed).tests/test_sync_documents.py::test_the_install_risk_sentence_names_both_stores_and_leads_into_the_block(killed).tests/test_sync_documents.py::test_the_readme_names_how_to_stop_every_supervisor(killed).tests/test_sync_documents.py::test_the_readme_names_how_to_stop_every_supervisor(killed).tests/test_sync_documents.py::test_the_readme_names_how_to_stop_every_supervisor(killed).tests/test_sync_documents.py::test_the_compose_dependencies_and_the_replicas_default_are_pinned(killed).tests/test_sync_documents.py::test_the_compose_dependencies_and_the_replicas_default_are_pinned(killed).tests/test_sync_documents.py::test_the_compose_dependencies_and_the_replicas_default_are_pinned(killed).62 of 69 mutants were killed. The seven survivors are loose pins, not wrong documents:
FILE,EXPORTandTOMBSTONESis not pinned.They go to a follow-up issue.
Test results (host gate)
db2f89f: 1470 passed, 58 skipped, 2 deselected (make check).45872a3: 1505 passed, 58 skipped, 2 deselected (make check). All 38 scenario-table commands pass.Closes #87
Co-Authored-By: gpt-6.1-terra noreply@openai.com
Merge-gate ruling for
45872a3:db2f89f1470 passed; head 1505 passed, 58 skipped, 2 deselected. All 38 scenario-table commands pass. CI is green.codex-svd integratereportsreadyForMerge: trueat this head with no rework.test_a_symlink_loop_at_the_mirror_path_is_retried_with_tombstones_unreadable. (2) The H9b test does not check every rule it should; the install blocks meet those rules today.