I think you're right on the parasitic wasps
I searched 'Braconidae pupae' on google images and it looks like your photo.
Those wasps are fantastic to have around.
I learned a lot about allowing things to do their thing when I had a bad cabbage white butterfly year: by the end of the season there were masses of caterpillars kind of 'melting', alongside little piles of white cacoons.