Enforce contracts through automated rules