anchor.diff:  handle_call(disable_auto_failover, From, State) ->
       handle_call({disable_auto_failover, []}, From, State);
   %% @doc Auto-failover is already disabled, so we don't do anything
  -handle_call({disable_auto_failover, _}, _From, #state{tick_ref=nil}=State) ->
  +handle_call({disable_auto_failover, _}, _From,
  +            #state{tick_ref = nil} = State) ->
       {reply, ok, State};
   %% @doc Auto-failover is enabled, disable it
  -handle_call({disable_auto_failover, Extras}, _From, #state{tick_ref=Ref}=State) ->
  +handle_call({disable_auto_failover, Extras}, _From,
  +            #state{tick_ref = Ref} = State) ->
       ?log_debug("disable_auto_failover: ~p", [State]),
       {ok, cancel} = timer2:cancel(Ref),
  -    State2 = State#state{tick_ref=nil, auto_failover_logic_state = undefined},
  +    State2 = State#state{tick_ref = nil, auto_failover_logic_state = undefined},
       make_state_persistent(State2, Extras),
       ale:info(?USER_LOGGER, "Disabled auto-failover"),
       {reply, ok, State2};
  
positive.code: handle_call(_Request, _From, State) ->
      {reply, ok, State}.
  
  handle_cast(reset_auto_failover_count, #state{count=0}=State) ->
      {noreply, State};
  handle_cast(reset_auto_failover_count, State) ->
      ?log_debug("reset auto_failover count: ~p", [State]),
      State2 = State#state{count=0,
                           auto_failover_logic_state = init_logic_state(State#state.timeout)},
      State3 = init_reported(State2),
      make_state_persistent(State3),
  
negative.code:     not(element(Flag, State)).
  
  init_reported(State) ->
      State#state{reported_autofailover_unsafe = false,
                  reported_max_reached = false,
                  reported_rebalance_running = false,
                  reported_in_recovery = false}.
  
  update_reported_flags(NewState0, UpdatedState) ->
      Flags = [#state.reported_autofailover_unsafe,
  