event *historypb.HistoryEvent,
resetReapplyExcludeTypes map[enumspb.ResetReapplyExcludeType]struct{},
// The event-type lookup is a cheap, side-effect-free registry check, so it runs before consulting mutable state.
def, ok := chasmWorkflowRegistry.EventDefinitionByEventType(event.GetEventType())
if !ok {
// HSM was already tried and CHASM doesn't define this event type either: nothing to fall back to, skip it.
return cherryPickSkipped, nil