I checked out and theres a horrible way we can make interact with quality...
The problem is, MAYBE on big bases with a lot of robots it can get laggy
So, ye as i found you CANT edit any prototype to have interaction with quality besides vannila hardcoded stuff,
BUT, as any item can have quality, you can do a living entity edit
So, you (or me also), can make a code that on the exit of the roboport changes the buffs on the robot
Ill would use script_raised_built or on_built_entity
event, i think... havent done anything like this
https://lua-api.factorio.com/latest/events.html#script_raised_built