For more on this in spades see boxes.py
https://boxes.hackerspace-bamberg.de/
For my part, I've been working the CNC router angle, so have a much larger kerf to cope with (and the added advantage of controllable partial depth and no char):
https://community.carbide3d.com/t/full-blind-box-joints-in-c...