Save immutable file choices and their Stream, collection and query evidence.

write_stream_dem_selection(inventory, selected, dsn, context_revision)

Arguments

inventory

Result of discover_stream_dem_files().

selected

Character file IDs from that result; empty selection is allowed.

dsn

New GeoPackage path; existing files are never replaced.

context_revision

Opaque caller context revision label.

Value

Path invisibly. Records intent, not downloads or accepted terrain.