Document two launchd recovery paths #96
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!96
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-cb1ed6db"
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 Mirror replacement and Tombstone restore procedures, including sidecars and gated agent restarts. Add document checks and synthetic recovery tests.
Docs change (operator-visible): two launchd recovery paths, Replace the Mirror (the Tombstone store stays) and Restore a lost Tombstone store (Rebuild from the export); every block is gated; the steps stop the api and start it after sync=ok; the Tombstone store's sidecar is -journal, and every move-back step moves the -journal with the store.
Decisions
src/.launchctl print-disabledoutput form. It is unverified on a host. Block 1 matches both=> disabledand=> true. The operator confirms the form at the first install.04af5eb). A fresh security review reproduced this failure: a Tombstone store moved back without its hot-journalopens cleanly but loses committed Forgets. Rework commit5db9784makes both move-back sentences name the-journalfile and states the risk. It also qualifies thetombstones-unreadableroute, because a full disk on a version-1 store gives the same code.Mutant to failing test
Each mutant was applied alone at the gate, then the targeted tests were run.
t_s_distests/test_sync_documents.py. Every mutant is killed.mirror.resolve()inhold,sync.py)tests/test_sync.py::test_the_lock_is_keyed_on_the_mirror_path_as_the_config_writes_it(alsotest_a_symlink_loop_…)t_s_d::test_every_repeated_readme_sentence_is_pinned_in_each_section,test_the_documents_stop_the_launchd_agent_across_a_logintest_every_repeated_readme_sentence_is_pinned_in_each_sectiontest_the_readme_placeholder_sentence_is_pinnedtest_every_repeated_readme_sentence_is_pinned_in_each_sectiontest_install_section_6_repeats_no_sentence--once,kickstart,|| true,; true,test -f "EXPORT")test_the_launchd_recovery_paths_are_gated_blocks.api, wrong plist path)test_the_launchd_recovery_paths_are_gated_blocks,test_the_restore_steps_stop_and_start_the_api_with_sync--replicas=10)test_the_compose_and_kubernetes_restart_gates_are_pinned0" in SECURITY), I-M14test_the_restart_condition_is_the_tombstone_store_file(#stop-the-sync-agent)in SECURITY)test_every_stop_the_sync_agent_link_resolvestest_the_documents_stop_the_launchd_agent_across_a_login,test_the_launchd_recovery_paths_are_gated_blocksreplicas: 1moved to the Service document)test_the_compose_dependencies_and_the_replicas_default_are_pinned-wal/-shmsentence in SECURITY)test_the_documents_say_to_move_the_store_files_and_keep_the_directorymessagesmindin install B2)test_the_install_restore_blocks_use_the_checkout_interpreter,test_the_launchd_recovery_paths_are_gated_blockstest_the_launchd_recovery_paths_are_gated_blocks(R3-M14 alsotest_recovery_heading_links_resolve)test_the_launchd_recovery_paths_are_gated_blocks,test_the_restore_steps_stop_and_start_the_api_with_synctest_the_documents_send_source_replaced_and_row_id_reused_to_replace_the_mirrorrm -rf -- "$aside")test_the_launchd_recovery_paths_are_gated_blocks,test_the_aside_directory_sentence_is_pinnedstones_present = False)tests/test_sync.py::test_a_new_mirror_beside_the_kept_tombstone_store_keeps_every_forget(alsotest_an_unrestored_store_after_the_wait_is_refused)test_the_launchd_recovery_paths_are_gated_blocks,test_the_restore_steps_stop_and_start_the_api_with_sync(#93)put back)test_the_export_temp_file_and_fsync_limit_are_stated-journalclause from the path B paragraph, both documents)test_every_move_back_sentence_moves_the_journal_with_the_tombstone_store,test_the_launchd_recovery_paths_are_gated_blocks-journalclause from the README Forget and recovery sentence)test_every_move_back_sentence_moves_the_journal_with_the_tombstone_store,test_the_documents_send_source_replaced_and_row_id_reused_to_replace_the_mirrortombstones-unreadablequalifier, both documents)test_every_move_back_sentence_moves_the_journal_with_the_tombstone_store,test_the_launchd_recovery_paths_are_gated_blocksTwo mutants outside the required list survive. They are non-blocking:
Gate evidence
make checkat04af5eb: ruff and mypy are clean, and pytest gave 1519 passed and 58 skipped. The two host-only tests were deselected.git diff --stat origin/mainnames only the five Primary Files.Closes #92
Co-Authored-By: gpt-6.1-terra noreply@openai.com
Evidence trail: raw integrate logs (dev/stables#2237 check, run after the merge).
Run
20261116T104329Z-cb1ed6db. The logs are under~/.codex/workflow-runs/spec-verify-dispatch/<run>/logs/. Failed attempts are listed separately and are not recast as passes.integrate.jsonl04af5ebImportError while loading conftestwithModuleNotFoundError: No module named 'tiktoken'. It came from a barepython3 -m pytestin the worktree, outside the project venv. No tests were collected.integrate.r2.jsonl(round 4 rework)04af5ebintegrate-1.jsonl5db9784sync.pyon purpose; the run killed it withtest_the_lock_is_keyed_on_the_mirror_path_as_the_config_writes_it, then reverted it. It is not a test failure.integrate.r3.jsonl(metadata clear)5db9784tiktokencollection error from a barepython3. No tests were collected.Other evidence:
make checkat04af5eb: 1519 passed and 58 skipped, with the two host-only tests deselected.ci/woodpecker/pr/validation) is green at5db9784.ci/woodpecker/push/validation) is green on main at25865be.This record is from the merging session. mind-spec has not re-audited these logs. The operator disposition "Ratify, no precedent" is unchanged.