Hi!
I’m not quite sure what you mean with “account for it”, but the circle is outside the box, because you placed it outside the box, by setting the dy parameter.
Without this, it’s inside the box
#{
let a = box({
rect()
place(top + left, circle(radius: 5pt, fill: black))
}, fill: yellow)
a
}