const fn model_rung(
ctx: &ModelContext,
) -> (Option<&InferenceConfig>, Option<&InferenceConfig>, &'static str)Expand description
Which rung the model’s stored defaults occupy, and the name that rung
carries — both decided by DefaultsOrigin in one place, so resolution
and its labelling cannot disagree.
Exhaustive on purpose — see the twin in resolve_with_profile_explained.
A catch-all here would rank any future unreviewed origin above global
settings, which is precisely backwards.
The name was the static "model (auto-detected)", which lied in the
debug line and the audit’s provenance strings whenever the occupant was a
published recipe — and would have credited gglib’s guess for a tune
sweep’s winner the same way.