anchor.diff:  -export([init/1, handle_call/3, handle_cast/2,
            handle_info/2, terminate/2, code_change/3]).
   
  --record(state, {ddoc_replicator :: pid(),
  +-record(state, {rdoc_replicator :: pid(),
                   rep_manager :: pid(),
                   local_docs = [] :: [#doc{}]}).
   
  
positive.code:     try
          ?log_debug("Writing interactively saved ddoc ~p", [Doc]),
          NewState = save_doc(NewDoc, State),
          NewState#state.ddoc_replicator ! {replicate_change, NewDoc},
          {reply, ok, NewState}
      catch throw:{invalid_design_doc, _} = Error ->
              ?log_debug("Document validation failed: ~p", [Error]),
  
negative.code:     ?log_debug("Loaded the following docs:~n~p", [Docs]),
      gen_server:enter_loop(?MODULE, [],
                            #state{local_docs=Docs,
                                   rdoc_replicator = Replicator,
                                   rep_manager = RepManager}).
  
  handle_call({interactive_update, #doc{id=Id}=Doc}, _From, State) ->
  