Move rule AI actions into a separate spec context