Record the model that rated, and rate lockfile bumps by what installs

Two fixes that have to be in place before gitlab-org/gitlab goes live on the MR Risk Labeler (!134 (merged)). This merges and is tagged first, so both can be seen on real ratings while gitlab-org/gitlab is still in test mode.

1. The record names the model

Every record said model=default.

  • GitLab gives a session no model identifier unless the top-level group has selected a model, and that setting covers every flow in the group. A model named in the flow's own prompt is ignored.
  • GitLab does record the model each session resolved to, on the session itself (modelMetadataName). The upstream step now asks GitLab for it with the session's own token, and build_note writes that name.
  • If the request fails, the record says default, as before.
  • A name has to start with a letter or a digit, which is the pattern triage-ops reads the record with.

This records the model. It does not pin it. Today's default is claude_sonnet_5_5_vertex, the model the rubrics were tuned on, and a change to GitLab's default would show in the records from that session on.

The flow definition changes, so this needs a new tag and a catalog sync. The definition is 102 bytes under the catalog's limit.

2. The dependency rubric for gitlab-org/gitlab

instructions/278964/deps.md only. The check's limits are unchanged. Of the 11 dependency-bot bumps rated since 2026-11-10, none was low, so gitlab-bot would approve none after the switch.

A dedupe or a removal installs nothing new. "A package the lockfile adds or removes" was medium. A removed entry installs nothing, and a range that joins an entry the lockfile already held resolves to a version that was already installed. A package the lockfile adds is still medium.

What that leaves unread: a dedupe changes which installed version a dependent loads. In gitlab-org/gitlab!270724 (merged) it moves @babel/parser from 7.29.8 to 7.29.14 for most of its ranges, and takes one range each of @rails/actioncable (8.1.401 to 8.0.502) and @gitlab/svgs (3.174.0 to 3.171.0) down a version. Every version it lands on was already in the lockfile, so no new code is installed. Nothing reads that change, though: only the pipeline checks it.

A release of a @gitlab npm package is rated by the lines under high. GitLab publishes that scope from its own projects, where the release was reviewed. The rubric already rates a *_VERSION release low on that ground with no check at all. Here the check must still have read each package and shown its whole metadata, and each version must match the registry's and the lockfile's hashes. Code that runs at install, a host contacted and credentials read still make it high. A changed export or a behaviour change no longer makes it medium. Nor does the part of the diff the check does not show, unless a package in the move runs anything at install (a preinstall, install or postinstall script, or a binding.gyp): the code that runs may be in that part.

What that rule rests on: for @gitlab/ui the check shows about 14 KB of a 2.2 MB diff, the rest being past its cap. The low rating comes from the scope, the hashes and the package's metadata, not from a read of the code.

It also rests on a claim that was not verified: that every package in the @gitlab scope is published from a GitLab project where the release was reviewed. The two rated here, @gitlab/ui and @gitlab/duo-ui, name gitlab.com repositories in their metadata.

What does not change:

  • Every high clause.
  • A third-party package with a cut or unread diff: medium.
  • A @gitlab package whose metadata the check does not show whole, or that runs anything at install while part of its diff is not shown: medium.
  • More than five packages moving, none read: medium.
  • A package the lockfile adds: medium.
  • Go modules: medium, because the sandbox in gitlab-org/gitlab cannot reach the Go proxy.

The seven bumps the older flow approved

Replayed on this machine: each merge request's real diff, the upstream check run against the real registries, and the shipped rater prompt on the production model. Nothing was written to any merge request. The blocks the check printed here are the sizes production's jobs logged.

Merge request In production Old rubric, replayed New rubric, three passes
gitlab-org/gitlab!269953 addressable 2.9.2 high high high, high, high
gitlab-org/gitlab!270151 (merged) @gitlab/ui 140.0.2 medium medium low, low, low
gitlab-org/gitlab!270238 gitlab-qa 15.10.2 high high high, high, medium
gitlab-org/gitlab!270347 (closed) @gitlab/duo-ui 16.9.5 medium medium low, low, low
gitlab-org/gitlab!270484 (closed) gitlab-styles v15 medium medium medium, medium, medium
gitlab-org/gitlab!270537 (merged) fog-aws 3.33.5 high medium high, high, high
gitlab-org/gitlab!270724 (merged) @gitlab/duo-ui 16.9.6 medium medium low, low, low

Three of the seven become low. The other four stay, and should:

  • addressable rewrites how URIs are parsed.
  • gitlab-qa adds probes that contact new hosts. It is a gem, and RubyGems has no owned namespace for a rule to name.
  • fog-aws starts fetching IAM credentials in ECS.
  • gitlab-styles moves more than five gems, and the check reads none of them.

gitlab-qa and fog-aws move between medium and high from one pass to the next, under the old rubric as well. Neither was low in any pass.

The wording here is the seventh tried, and the tables show it alone:

  • The first let one pass read an added export as high.
  • The second left one pass of three at medium on two @gitlab bumps: once for a cut diff and an added export, once for a behaviour change.
  • The third was dropped part-way, because it would have left the behaviour change medium too.
  • The fourth rated low a @gitlab move whose metadata the rater could not see whole: a script inside text Duo's filters cut, or a block cut inside the metadata. Review found it.
  • The fifth rated low a @gitlab move that runs something at install, a postinstall script or a binding.gyp, with its diff cut short. Review found it.
  • The sixth closed that too and was not pushed: its words pointed at the metadata for a binding.gyp, which the check prints under the root.

Controls on the new rubric, each a real block edited to make the case. The last six came out of review:

Case Expected Rated
A @gitlab package that gains a postinstall script high high, high
The cut @gitlab/duo-ui block under a third-party name medium medium, medium
A @gitlab move beside a package the lockfile adds not low high, high
A postinstall inside text Duo's filters cut medium medium, medium
A block cut inside the metadata medium medium, medium
A @gitlab move beside a changed .nvmrc medium medium, medium
An existing postinstall, and the diff cut medium medium, medium, medium
A binding.gyp at the root, and the diff cut medium medium, medium
An existing postinstall whose file is a Binary files ... differ line not low high, high

In one .nvmrc pass the rater wrote low, then corrected itself to medium in the same answer. The flow reads the last line an answer gives for an area, so it applies medium.

Also on the new rubric: gitlab-org/gitlab!270102 (closed) (@gitlab/ui 138.8.0 to 140.0.2) low, gitlab-org/gitlab!270154 (closed) and gitlab-org/gitlab!270299 (merged) medium. An existing postinstall with the diff shown whole and nothing of it changed is low in both of two passes: the limit is on what is unread, not on the script.

Checked

  • make check passes: both flows match their sources, rubocop is clean, and 392, 364 and 118 examples pass.
  • The lookup, run on this machine against gitlab.com, returns claude_sonnet_5_5_vertex for production sessions 11223253 and 11217028, and writes nothing for a session it cannot read or a bad token.
  • GitLab recorded all 226 replay sessions on claude_sonnet_5_5_vertex: 45 on the final wording, 7 on the old rubric and 174 on the six wordings dropped.
  • bin/eval does not apply: its suites run flows/flow.yml, which this does not touch.

Not yet seen: the lookup inside a CI session. GitLab's code gives the job the token and lets the sandbox reach the GitLab host, and the first rating after the tag will show it. It showed the lookup did not work as shipped: see the first two boxes below, and !140 (merged).

After this merges

  • Tag 0.35.0 cut and the catalog sync confirmed: synced at 04:10 UTC on 2026-11-13, flow 437d2686cc13.
  • !130 (merged) rated again: its record names the model, and gitlab-bot approves on it. Not on the first rating after the tag, which still said model=default (workflow=11230518): the executor keeps GITLAB_OAUTH_TOKEN from the commands a flow runs, and !140 (merged) reads GITLAB_TOKEN instead. Seen after !140 (merged), at 05:17 UTC on 2026-11-13: model=claude_sonnet_5_5_vertex with workflow=11233291, and gitlab-bot approved five seconds later.
  • gitlab-org/gitlab!270724 (merged) rated again in test mode: test-gitlab-bot::risk::low at 04:19 UTC on 2026-11-13 (workflow=11230592). That record still said model=default. The model name was seen in gitlab-org/gitlab after !140 (merged), on gitlab-org/gitlab!270780 (merged) (workflow=11233204).
  • !134 (merged)'s description refreshed: the tag, the flow digest and the dependency section, at 05:19 UTC on 2026-11-13.

Open, and not part of this change

triage-ops sets a low-rated dependency-bot bump to auto-merge after approving it. Once bumps rate low again, gitlab-bot approves and merges them with no person, as it did under the older flow. Whether that needs a review step after the merge is a decision for Connor and Matt. Nothing here changes triage-ops.

🤖 Generated with Claude Code

Edited by Connor Sanders

Merge request reports

Loading
Loading