Integration Agent Remediation

I was just thinking, I think it would be cool if there was an ISupportsRemediateAgents integration feature that could be used if running scripts and checking online state are also allowed. Then you could have something at the very bare bones, could be like:

$Integration | Add-DynamicIntegrationCapability -Interface ISupportsRemediateAgents -GetAgents {
[CmdletBinding()]
param()

if ($AgentsOnDevice > 1) {
    #Check for discrepancy between online and offline state of each agent on device
        #Run repair install on offline agent
}

}

How cool would that be? Self healing your agents.