Failure healing policies

Generic autoheal workflow + refactor in workflows.py