Hi Carsten,
I see your points.
We should have a proper STATE_ flag in the database for HistoricProcessInstances in the same way we have for activity instances.
The thing about no historic activity instances to be present for standalone tasks is also correct. I would not change that though becase these tasks have no "activity" in BPMN.
You could also look into the new HistoryService.createUserOperationLogQuery(). It allows you to query for operations performed on tasks.
org.camunda.bpm.engine.history.UserOperationLogEntry provides a list of operation constants.
Regards,
Daniel