// A hard rule is a forbid. It runs before any guard on the exact action and // target, and nothing overrides it. @id("no-irreversible-in-production") forbid (principal, action, resource) when { resource.environment == "production" && resource.disposable == false && context.effect.read_only == false && context.effect.reversibility == "irreversible" };