anchor.diff:  %%--------------------------------------------------------------------
   -spec fetch_link(model_behaviour:model_config(), datastore:ext_key(), datastore:link_name()) ->
       {ok, datastore:link_target()} | datastore:link_error().
  -fetch_link(#model_config{bucket = Bucket} = ModelConfig, Key, LinkName) ->
  -    case get(ModelConfig, links_doc_key(Bucket, Key)) of
  +fetch_link(#model_config{bucket = _Bucket} = ModelConfig, Key, LinkName) ->
  +    case get(ModelConfig, links_doc_key(Key)) of
           {ok, #document{value = #links{link_map = LinkMap}}} ->
               case maps:get(LinkName, LinkMap, undefined) of
                   undefined ->
  
positive.code: %%--------------------------------------------------------------------
  -spec add_links(model_behaviour:model_config(), datastore:ext_key(), [datastore:normalized_link_spec()]) ->
      ok | datastore:generic_error().
  add_links(#model_config{bucket = Bucket} = ModelConfig, Key, Links) when is_list(Links) ->
      case get(ModelConfig, links_doc_key(Bucket, Key)) of
          {ok, #document{value = #links{link_map = LinkMap}}} ->
              add_links4(ModelConfig, Key, Links, LinkMap);
          {error, {not_found, _}} ->
  
negative.code: 
  -spec delete_links4(model_behaviour:model_config(), datastore:ext_key(), [datastore:normalized_link_spec()] | all, InternalCtx :: term()) ->
      ok | datastore:generic_error().
  delete_links4(#model_config{bucket = _Bucket, name = ModelName} = ModelConfig, Key, [], Ctx) ->
      case save(ModelConfig, #document{key = links_doc_key(Key), value = #links{key = Key, model = ModelName, link_map = Ctx}}) of
          {ok, _} -> ok;
          {error, Reason} ->
              {error, Reason}
  