//! Gateway-section post-parse helpers for the profile loader.
//!
//! Catalog resolution itself lives in
//! [`systemprompt_models::profile::GatewayConfigSpec::resolve`]; this
//! module only owns the in-memory route-id backfill applied to the parsed
//! spec before resolution.
use GatewayConfigSpec;
/// Synthesize stable ids for any route that was authored without one.
///
/// Returns `true` if any route was mutated. Ids are deterministic, so the
/// backfill is reapplied identically on every load rather than persisted.