Enforce It Where It Takes Effect
I tried to stop my AI agent from changing its own deployment with a rule in the sync layer. It failed its first test. Then I made the same mistake again with push tokens. Here's what finally held, and the rule I use now: contain the code where it runs, then test it by trying to get past it.