So I went diving in to the traits to check something and noticed that it
is actually possible to do this.
View attachment 632220
Robotic traits use a potential check which means that you cannot mod X trait on to a pop unless some conditions are met. Normally this would be "is this thing a robot?" but this can be applied to bio-traits too, here's an example of what I mean (untested)
View attachment 632222
And
then write an an event to run once a month for any country that has gene engineering - it basically scans your empire
species (not pops) and if you have trait X in your empire add a national flag (hidden) saying has found_trait_x then you can insert the gene, if not a tooltip would fire saying "We dont have this gene data yet" - if the flag already exists, abort that check for performance reasons.
That's the only way I can imagine it being done, I cant imagine it'd be
too hard to implement.