Skip to contents

Queries the "aux" stamp catalog once and returns the current content_hash for each requested auxiliary measure. Each measure is matched to exactly one catalog artifact whose path basename is <measure>.qs2 (e.g. cpi.qs2, ppp.qs2, pfw.qs2).

Usage

get_aux_hashes(
  aux_measures,
  verbose = getOption("pipdata.verbose", default = TRUE)
)

Arguments

aux_measures

Character vector of auxiliary measures to resolve.

verbose

Logical. Retained for consistency with pipeline helpers; catalog lookup itself emits no progress messages. Default: getOption("pipdata.verbose", default = TRUE).

Value

A named character vector of content_hash values, one per requested measure. Names are the measure names.

Details

This is the single source of the current aux hashes used to gate aux-change detection in valid_dlw_load(). It must be called once per pipeline run, before aux data is loaded, and the result passed through the run so that the hashes recorded in the master inventory match the aux data actually used.

The function aborts loudly when the "aux" alias is unavailable, a requested artifact is missing, or multiple catalog rows match a measure. It never falls back to stamp::st_latest() or to hashing loaded aux tables.

Precondition: the "aux" catalog and pipload::load_aux_data() must resolve through the same configured working release and storage root. The hashes returned here are only meaningful if the aux data subsequently loaded for processing comes from the same artifacts. Callers must ensure the working release is set up consistently before calling this function.