This commit introduces failing assertions that are currently disabled via a boolean reproduceGh24077 flag. Setting that flag to true demonstrates the regression for StandardAnnotationMetadata and inconsistencies for SimpleAnnotationMetadata. See gh-24077