Skip to content

[AI Pasta] [main] lib_spaces: migrateAtoms adds the atoms to the destination space - #310

Open
godelclaw wants to merge 1 commit into
trueagi-io:mainfrom
godelclaw:fix/migrate-atoms-main-20261107
Open

godelclaw wants to merge 1 commit into
trueagi-io:mainfrom
godelclaw:fix/migrate-atoms-main-20261107

Conversation

@godelclaw

Copy link
Copy Markdown

migrateAtoms added each matched atom back to the source space and then removed it from there, so the atoms were deleted instead of moved and the destination stayed empty. It now adds them to $ToSpace.

New example examples/spaces_migrate_atoms.metta: matching atoms arrive in the destination, leave the source, and other atoms stay where they were. It fails on the base commit.

Validation: test.sh passes; the new example also passes under -O.

Fixes #307. The same one-word change for stable is in #309.

🤖 Generated with Claude Code

migrateAtoms added each matched atom back to the source space and then
removed it from there, so the atoms were deleted instead of moved and the
destination stayed empty.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

migrateAtoms deletes the matched atoms instead of moving them

1 participant