Build a tidy tibble of metric metadata from reference JSON
build_metric_meta_df.RdFlattens the nested reference JSON (systems → factors → sub_factors → indicators → metrics) into one row per metric. This tibble is the central input for the flagging pipeline — downstream stages join against it rather than re-traversing the JSON.