For lupines it is: "KQ_EPILOGUE\":4 -> value 4 is for them in wafort and gender-bend -> ofc I don't know if that will or not break the bard if you have her in fort (she is not yet there in game there).
For Ahri -> "TAUR_PURE":0 -> this sets the village as corrupted, but for her, you also need to have her quest done.
I haven't investigated that part (I don't know how to start it or which quest is for her). I did explain in another thread how to change quest states and how to find quest IDs using the browser console (with human-friendly names). I assume setting her quest to the first state should be sufficient if it’s not automatically started (unless her quest is the same as for the village, in which case you might need to modify more).
Here.
I didn't test it on your save -> I did that for myself to check some things, could be that they changed already something but I doubt it ;P