Rate the AI Gateway's model catalogue, and nothing else of it
What does this MR do and why?
Adds the AI Gateway (ai-assist, project 39903947) to the MR Risk Labeler, with two areas and nothing else rated.
Steps 1 and 2 of Onboarding a project in one merge request, which is what that section says to do: a project in consumers: with no folder fails make spec.
Two areas
| area | paths | floor |
|---|---|---|
model-selection |
model_selection/models.yml, model_selection/unit_primitives.yml, models/v2/litellm_model_registry.py |
— |
agents-flows |
agent_platform/**/flows/configs/**/*, ai_gateway/prompts/definitions/**/* |
high |
model-selection is the model catalogue: what the gateway can reach, what each feature setting defaults to and offers, and the metadata LiteLLM needs for a model its pinned release does not know. agents-flows carries a floor because one change to a flow config or a prompt definition moves every agent or flow that runs it.
Every other path is refused by name. The rest of the repository has no rules written for it, and a refusal is the answer for territory nobody has written a rule for.
What model-selection turns on
Not how much was added, but whether anything already in use moves. A gitlab_identifier is stored against a choice made outside this repository, so what an identifier means — and whether it still resolves — is held to elsewhere.
- low — a model is offered that was not offered before, nothing already offered changes, and the diff shows it is publicly released, breaks nothing where it follows an earlier model, is configured and offered the way that model is, and carries its LiteLLM metadata where it is a Bedrock or Vertex entry.
- medium — something already offered changes and a revert puts it back, or a new model is offered and the diff does not show one of those conditions.
- high —
default_modelschanged, an entry removed or renamed, an identifier dropped fromselectable_models,params.modelor the provider repointed under the same identifier, orrequires_paid_creditsflipped.
Open: low is currently unreachable for an ordinary new model
This branch was opened from ai-assist!7879, which adds Kimi K3.1 Pro and was the worked example of a low change. Run against the rubric as it now stands, through the real BuildRubric and classify_risk prompt, it returns medium:
model-selection: medium - Kimi K3.1 Pro follows Kimi K3, but its full entry isn't shown to confirm matching config.
That is not specific to this merge request. An appended YAML entry shows three lines of context — here the tail of Kimi K3's params and the head of Minimax M3 — so a full earlier entry is never visible, and "the same configuration as the model it follows" cannot be shown. The framing paragraph makes it decisive: "When the diff does not show one of them, rate the change medium, never low."
So the low tier cannot currently be reached by the change it was written for. Three ways to resolve it, none applied yet:
- Make the comparison conditional in fact as well as in wording: an earlier entry that is absent from the diff does not apply, rather than fails.
- Drop the comparison condition and keep public release and no-breaking-change.
- Accept medium as the floor for a new model, and drop the claim that this shape is low.
Checked
- Gate: every content check passes on !7879, area
model-selection. It fails onlyopen_not_draft, because 7879 is merged. - Inverse: a diff that repoints an existing
params.modeland changes adefault_modelsidentifier returns high. make spec, andbin/compile --checkreports both flows current.
Before this does anything
None of the labels exist on 39903947 or its ancestors — test-model-selection-risk::, test-agents-flows-risk::, test-gitlab-bot::risk:: and the two action labels. update_merge_request applies labels that exist and ignores the rest, so a verdict can be rated, composed and applied with nothing appearing and no note. That is step 3 of the onboarding section.