if both nodes run the same policy, it's all just code on both sides... if you trust the other node to uphold the standards you agree on, then it's doable, but there would need to be some additional kind of HTLC type deal if you wanted to be able to punish someone for ignoring the rules (aside from deciding to just close the channel on them). I think the best rules in lightning are things like ZBF where it's just a detectable setting and your node can be highlighted for having that configuration. There's no punishment for changing your mind aside from losing your label on node index sites for being ZBF. Positive re-enforcement through providing value.