assemble_source_records
assemble_source_records(
sources: DataFrame ,
patches: DataFrame ,
attrs: DataFrame ,
links: DataFrame ,
defs: DataFrame ,
meta: DataFrame ,
)-> ‘list[SourceRecord]’
Assemble source records from already-fetched index frames.
This is the transfer format for merging catalogs: feeding the result to another backend’s write_sources re-ingests the metadata with fresh ids, coord-def deduplication (def keys are preserved), and replace-semantics on (base_uri, source_path) identity. The caller (an index backend’s export_records) is responsible for narrowing the frames — filtering by patch id belongs in SQL, not here.