Apparently sometimes when device is decommissioning, it does not fully decommission - the process is started but not completed successfully. This can be fixed by the user clicking to decommission again. However there is no indicator that this is the solution.
- Indicate to the user with some flag in the UI that the device is 'half-decommissioned'
- When device is in this state, offer a "retry decommission" button instead of the usual button.
There is an undocumented value from deviceauth/devices that shows when a device has started decommissioning: