left a comment as well, but I think generated class files remain broken for linking against from sources
https://github.com/google/ksp/issues/95. I couldn’t find any tests that verified this either. It seems specific to referencing other types in the same source set that are being compiled