Drops the additive-union semantics that resurrected deliberate deletions across the fleet (see feedback_memory_sync_destructive_ok.md and the 2026-06-01 consolidation that came back the next morning). New behavior: * file in REPO, not in PROFILE -> copy REPO -> PROFILE (unchanged) * file in PROFILE, not in REPO -> DELETE from PROFILE (was: copy back) * file in BOTH, identical -> no-op * file in BOTH, differ -> overwrite PROFILE (was: log conflict) Safety: aborts if the repo has <5 .md files (guards against a broken repo wiping the profile store). Test plan verified on GURU-BEAST-ROG: * dry-run + apply matched (2 copies + 10 overwrites + 0 deletes) * idempotent re-run = 79 identical, 0 ops * self-check memory category PASS * git status .claude/memory/ clean (script touched profile only) Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
14 KiB
Executable File
14 KiB
Executable File