What happens
memesh kg rename-project --from X --to X --apply (the same name twice, e.g. a typo) reports 0 renamed, N merged and exits 0, and afterwards no memory carries project:X any more. The dry run warns about it but --apply goes ahead.
Related: the backup --apply writes goes to ./data/backups/ under the current directory, not next to the database, so running it from another directory scatters backups; and the dry run always reports 0 blocked message rows, so it cannot predict what the apply will refuse.
Steps
memesh kg rename-project --from acme --to acme --apply on a graph where 286 memories carry project:acme.
- Output:
0 renamed, 286 merged.
project:acme is gone from all 286.
Expected
Renaming a project to itself is refused. The backup is written beside the database. The dry run reports the same numbers the apply will produce.
What happens
memesh kg rename-project --from X --to X --apply(the same name twice, e.g. a typo) reports0 renamed, N mergedand exits 0, and afterwards no memory carriesproject:Xany more. The dry run warns about it but--applygoes ahead.Related: the backup
--applywrites goes to./data/backups/under the current directory, not next to the database, so running it from another directory scatters backups; and the dry run always reports 0 blocked message rows, so it cannot predict what the apply will refuse.Steps
memesh kg rename-project --from acme --to acme --applyon a graph where 286 memories carryproject:acme.0 renamed, 286 merged.project:acmeis gone from all 286.Expected
Renaming a project to itself is refused. The backup is written beside the database. The dry run reports the same numbers the apply will produce.