+(defun canonical-variant (item)
+ "Resolve a retained Variant replaced by duplicate removal, without mutation."
+ (check-type item variant)
+ (loop for current = item then (%variant-forward current)
+ unless (%variant-forward current) return current))
+(defun topic-name-variants (name) (copy-list (%topic-name-variants (canonical-topic-name name))))
+(defun variant-value (item) (%variant-value (canonical-variant item)))
+(defun variant-datatype (item) (%variant-datatype (canonical-variant item)))
+(defun variant-parent (item) (%variant-parent (canonical-variant item)))
+(defun variant-scope (item) (copy-list (%variant-scope (canonical-variant item))))
+(defun variant-item-identifiers (item)
+ (item-identifiers (canonical-variant item)))
+
+(defun canonical-association (association)
+ "Resolve a retained Association handle after duplicate association merging."
+ (check-type association association)
+ (loop for current = association then (%association-forward current)
+ unless (%association-forward current) return current))
+(defun canonical-association-role (role)
+ "Resolve a retained Role handle after role/association duplicate removal."
+ (check-type role association-role)
+ (loop for current = role then (%association-role-forward current)
+ unless (%association-role-forward current) return current))
+