pub fn migrate_gen2_bindings(
configs: &PipelineConfigs,
) -> Result<Vec<MigratedBinding>, BindingMigrateError>Expand description
Migrate every gen-2 flat ingest in configs into a v2 MigratedBinding,
keyed by binding id (<mem>/<stem>), in id order.
Ingest-driven (“merge each flat ingest into its projection”): each
ingest’s projection ref is resolved to a projection in that mem, the
pair merged, and the projection’s facet references folded inline. A
malformed ref, a dangling ref, or a refinement mode is a typed
BindingMigrateError — the migration refuses rather than dropping
or fabricating. Pure and IO-free.
A projection with no ingest pointing at it is inert (never runnable in gen-2) and is not emitted — nothing schedules it, so there is no obligation to promote.