Micro-outsourcing mini-tasks/specific functions

Suggesting adding some kind of micro-outsourcing for writing specific functions/classes in an existing code base, without giving the bounty hunter access to the whole code.
If the code that the bounty hunter wrote passes all the tests successfully, it will automatically give the reward.
Can be used also as an AI-assisted code writer with outsourced human developer supervision.