See attachments for data pack used. Recipe in question is "potatopack:depth_meter".
When crafted the advancement "potatopack:technical/item/depth_meter/unlock_recipe" should trigger the function "potatopack:item/depth_meter/unlock_recipe". This function would revoke the advancement, the recipe, the item crafted, and then give me a new one.
Instead nothing happens, not unless I give myself the recipe using the command "recipe give @s potatopack:depth_meter".
In addition, giving myself the recipe manually stops me from taking it away using the command "recipe take @s potatopack:depth_meter", and instead throws an error, yet I can see the recipe still unlocked in my recipe book (See attachments for images)
Can't reproduce?
[media]