anchor.diff:  
   %% @private
   -spec validate_get(middleware:req(), middleware:entity()) -> ok | no_return().
  -validate_get(#op_req{auth = Auth, gri = #gri{id = Guid, aspect = As}}, _) when
  +validate_get(#op_req{gri = #gri{id = Guid, aspect = As}}, _) when
       As =:= instance;
       As =:= list;
       As =:= children;
  
positive.code: %% and can be reached from any provider.
  %% @end
  %%--------------------------------------------------------------------
  -spec assert_file_managed_locally(aai:auth(), file_id:file_guid()) ->
      ok | no_return().
  assert_file_managed_locally(?USER(UserId), Guid) ->
      case fslogic_uuid:user_root_dir_guid(UserId) of
          Guid ->
              ok;
          _ ->
              SpaceId = file_id:guid_to_space_id(Guid),
              middleware_utils:assert_space_supported_locally(SpaceId)
      end.
  
  
negative.code: 
  %% @private
  -spec validate_delete(middleware:req(), middleware:entity()) -> ok | no_return().
  validate_delete(#op_req{gri = #gri{id = Guid, aspect = As}}, _) when
      As =:= instance;
      As =:= xattrs;
      As =:= json_metadata;
      As =:= rdf_metadata
  ->
      assert_file_managed_locally(Guid).
  
  
  %%--------------------------------------------------------------------
  