Event recording configuration gets wiped out if an active profile is set.
For example:
configuration:
  events:
    recordTaskInVars: true
profiles:
  myProfile:
    arguments:
      myString: hello 
If myProfile is active, the events setting is not respected. Interestingly, the merged config (e.g. _main.json in process state) does contain the expected events configuration