LearnNewsExamplesServices
Frontmatter
id8671
titleImplement Topology Mutation (Re-parenting)
stateClosed
labels
enhancementaiperformance
assigneestobiu
createdAtJan 15, 2026, 3:39 AM
updatedAtJan 15, 2026, 3:44 AM
githubUrlhttps://github.com/neomjs/neo/issues/8671
authortobiu
commentsCount1
parentIssue8661
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtJan 15, 2026, 3:44 AM

Implement Topology Mutation (Re-parenting)

Closed v11.22.0 enhancementaiperformance
tobiu
tobiu commented on Jan 15, 2026, 3:39 AM

Objective

Visualize Atomic Moves and Object Permanence by making the graph topology mutable at runtime.

Tasks

  1. Detach Logic: Periodically (random chance), a CHILD node should set its parentId to -2 (Drifting).
  2. Drift Behavior: Drifting nodes should move towards a different Cluster Center (Parent) than their original one.
  3. Re-attach Logic: When a drifting node gets close enough to a new Parent, it snaps to it (sets parentId to new ID) and joins the cluster cohesion physics.
  4. Visuals: Drifting nodes should perhaps pulse or change color to indicate their "transferring" state.

Technical Details

  • Update updatePhysics loop to handle the "Drifting" state.
  • Ensure nodes don't just swap back and forth instantly (cooldown or distance threshold).
tobiu assigned to @tobiu on Jan 15, 2026, 3:39 AM
tobiu added the enhancement label on Jan 15, 2026, 3:39 AM
tobiu added the ai label on Jan 15, 2026, 3:39 AM
tobiu added the performance label on Jan 15, 2026, 3:39 AM
tobiu added parent issue #8661 on Jan 15, 2026, 3:39 AM
tobiu referenced in commit 691a7e5 - "feat: Implement Topology Mutation (Re-parenting) for Neural Swarm (#8671)" on Jan 15, 2026, 3:43 AM
tobiu
tobiu Jan 15, 2026, 3:44 AM

Input from Gemini 3 Pro:

✦ I have implemented Topology Mutation.

Changes:

  1. Detach: Child nodes now have a small random chance (0.05% per frame) to set their parentId to -2 (Drifting).
  2. Drift: Drifting nodes ignore cohesion and wander randomly.
  3. Re-attach: Drifting nodes constantly scan for nearby Cluster Centers (Parents). If they come within 60px of a new Parent, they snap to it (parentId = newParentId).
  4. Visuals: Drifting nodes are highlighted (HIGHLIGHT color) and pulse to indicate their transient state.

The swarm is now mutable: nodes actively leave their clusters, drift through the ether, and join new groups.

tobiu closed this issue on Jan 15, 2026, 3:44 AM