revert: convert resolve_ref() to read_ref_full()