Fix promise state tracking and compliance stats.