York is a Vegapunk and she is "greed".
Ngl, I think she is about to redeem herself. She does things her own way, maybe she set up the snail up there as a trap, because she is confidentially leaking information. That is what pings me. She would be truly a "genious" if she singlehandedly manages to fool everyone INCLUDING the Gorosei.
That is my theory right now. York is sacrificing herself to fool Mars into a trap.