Intelligent agent support for policy authoring and refinement