wip(history): add event persistence for hpi & hai