Harden sync start retries and document lock limits #86

Merged
Collaborator

Map Mirror writer path failures to store errors, document the lock and recovery limits, and add retry, secret reload, lock, and documentation regression tests.

Validation: Python 3.12.12; baseline 1455 passed, 58 skipped, 2 deselected; final 1470 passed, 58 skipped, 2 deselected. All scenario tests passed individually. The Mirror symlink-loop test failed with RuntimeError on the pristine code and passed after the change. All eleven specified mutations failed their corresponding tests and were reverted.

Docs change (operator-visible): the lock does not cover the gap between launchd restarts; stop the sync agent before you move the Mirror or run a Rebuild

Mutation log (each applied alone, then reverted; mutation -> test -> result):

  • retain old secrets on reload -> both changed-secret tests -> failed.
  • restore resolve and omit RuntimeError -> Mirror loop and RuntimeError tests -> failed.
  • omit ValueError -> ValueError store test -> failed.
  • omit O_NOFOLLOW -> lock symlink test -> failed.
  • omit O_CLOEXEC -> lock flags test -> failed.
  • create lock with mode 0644 -> lock mode test -> failed.
  • omit release after acquiring the new lock -> reload lock test -> failed.
  • release before attempting the new lock -> failed-hold test -> failed.
  • move feeder check outside the retry loop -> removed-feeder test -> failed.
  • check for an existing Mirror before acquiring the Rebuild lock -> Rebuild lock test -> failed.
  • omit descriptor close on lock contention -> descriptor test -> failed.

Item 15: no change; another spelling of the store directory fails closed.

Closes #84
Co-Authored-By: gpt-6.1-terra noreply@openai.com

Map Mirror writer path failures to store errors, document the lock and recovery limits, and add retry, secret reload, lock, and documentation regression tests. Validation: Python 3.12.12; baseline 1455 passed, 58 skipped, 2 deselected; final 1470 passed, 58 skipped, 2 deselected. All scenario tests passed individually. The Mirror symlink-loop test failed with RuntimeError on the pristine code and passed after the change. All eleven specified mutations failed their corresponding tests and were reverted. Docs change (operator-visible): the lock does not cover the gap between launchd restarts; stop the sync agent before you move the Mirror or run a Rebuild Mutation log (each applied alone, then reverted; mutation -> test -> result): - retain old secrets on reload -> both changed-secret tests -> failed. - restore resolve and omit RuntimeError -> Mirror loop and RuntimeError tests -> failed. - omit ValueError -> ValueError store test -> failed. - omit O_NOFOLLOW -> lock symlink test -> failed. - omit O_CLOEXEC -> lock flags test -> failed. - create lock with mode 0644 -> lock mode test -> failed. - omit release after acquiring the new lock -> reload lock test -> failed. - release before attempting the new lock -> failed-hold test -> failed. - move feeder check outside the retry loop -> removed-feeder test -> failed. - check for an existing Mirror before acquiring the Rebuild lock -> Rebuild lock test -> failed. - omit descriptor close on lock contention -> descriptor test -> failed. Item 15: no change; another spelling of the store directory fails closed. Closes #84 Co-Authored-By: gpt-6.1-terra <noreply@openai.com>
Harden sync start retries and document lock limits
All checks were successful
ci/woodpecker/pr/validation Pipeline was successful
3fa2084c19
Map Mirror writer path failures to store errors, document the lock and recovery limits, and add retry, secret reload, lock, and documentation regression tests.

Validation: Python 3.12.12; baseline 1455 passed, 58 skipped, 2 deselected; final 1470 passed, 58 skipped, 2 deselected. All scenario tests passed individually. The Mirror symlink-loop test failed with RuntimeError on the pristine code and passed after the change. All eleven specified mutations failed their corresponding tests and were reverted.

Closes #84
Co-Authored-By: gpt-6.1-terra <noreply@openai.com>
svc-agent-writer deleted branch feat/svd-dev-messages-mind-mcp-84-sync-start-retry-follow-ups-540984b4 2026-11-16 02:32:23 +00:00
Sign in to join this conversation.
No description provided.