I wonder if there's anything like a "rug-pull-proof" licensing/development model. Even AGPL is not a guarantee, if a single entity owns the copyright to the entire project (through CLAs), and decides to switch to BSL, and has enough influence to make forks irrelevant.
I think Linux's model is the strongest: individual contributors retain copyright, and there are enough individual copyright holders to make relicensing insanely difficult. Coupled with the project's pace (and the pace at which they change the internal APIs) it basically provides such a guarantee. Most projects however are less successful and the users/downstream developers can't count on momentum as the safeguard.