With the magnet on, only boxes dragged by hand landed on the grid. Anything new stayed where it was dropped and had to be nudged. - A node from the palette, from a dropped link or from a dragged behavior snaps its corner to the nearest grid point. All three ways go through newNode. - A comment or group from the palette snaps corner and size to whole grid steps and keeps its minimum size. A new group is now 312 x 192, a new comment 216 x 96. - "Group these N nodes" moves every edge outward to the next grid line, so the margin around the nodes only grows. - The two helpers snapNewBox and snapBoxOutward live in framing.ts. - Without the magnet nothing changes. Tests: - graph-framing 36/36, 7 new. Two broken variants (rounding instead of outward, missing minimum size) both red. - e2e 36 ALL PASSED, 21 checks, new 36f3. Against the old build exactly the two new checks were red. - Gate on atx: 339 files, 5261 tests. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>