fromMap

Builds metadata from a loosely-typed map, as produced by upstream resolver responses.

Accepts both the CR object-valued error and the legacy v0.3 string-valued error. Unrecognised members are retained in properties rather than dropped.