Can't create subdivision

I have clean curve booleans that extend beyond the toposolid boundary in some cases but that shouldn’t be an issue, i verified by creating some simple shapes with the same condition and I am able to create sub divisions with them.
image
i have attached the internalized script. thanks for any assistance.
subdivision-wip-internalized.gh (433.8 KB)

I’ve tried rebuilding the surface, rebuilding the curves… the result is the same. The contours are jagged still.