Take gitlab-org/gitlab live on the MR Risk Labeler

What this changes

gitlab-org/gitlab (project 278964) goes live on the MR Risk Labeler, and the MR Approval Action Labeler stops listing it.

  • instructions/278964/mr-risk-rules.yml says mode: live. Labels go on with no test- prefix and the rating record says mode=live, so gitlab-bot acts on the rating. Rules are read from main at run time: this applies on merge, with no release tag.
  • src/flow/flow.yml.erb (and the compiled flows/flow.yml): the older flow keeps its group entry with projects: []. Both flows write the gitlab-bot:: scopes, so only one may label a project. flows/mr-risk.yml is unchanged.

Do not merge until

  • !128 (merged) and !132 (merged) are merged and tagged, and the catalog sync for that tag has run.
  • !136 (merged) is merged and in that tag, or going live without it is a recorded decision. Without it the subject gate refuses about one in twenty of the spec-only merge requests gitlab-bot approves today, and any other merge request with a path that shares a word with a legal, pricing or release subject. A refused merge request gets no rating.
  • !137 (merged) is merged before the tag that carries !136 (merged). Four of the six SOX files are refused by the subject gate today, and with !136 (merged) and without !137 (merged)'s floor code would rate them.
  • Translated pages are accepted as a loss or fixed. A page under doc-locale/ with a subject in its path is refused, which the older flow does not do: 24 of the 43 locale-only merge requests gitlab-bot approved since January. !136 (merged) does not change this. Accepted as a loss on 2026-11-13 by Connor and Matt, and announced in #engineering-fyi.
  • The first rating note a CI session writes after that tag ends in a record with a numeric workflow=. gitlab-bot does not approve a record that says workflow=unknown. make live cannot show this: it runs the older flow locally, where there is no session. Seen in both projects: workflow=11221806 on this merge request and workflow=11217028 on gitlab-org/gitlab!270724 (merged). Seen again after tag 0.35.0: workflow=11230518 on !130 (merged) and workflow=11230592 on gitlab-org/gitlab!270724 (merged).
  • The first CI note shows rules= as a full sha. gitlab-bot does not approve a record that says rules=unknown. Both of those records say rules=c571b22e85cdd2ea4e22dba1553623b09816970b, the head of main when they ran. The two after tag 0.35.0 say rules=8da3a04de3e9fd779eecad1423f468dff877ef55 and flow=437d2686cc13.
  • gitlab-bot has been seen approving on a rating in gitlab-merge-request, which needs gitlab-org/quality/triage-ops!4549 (merged) deployed. Seen on !130 (merged) on 2026-11-13: gitlab-bot approved it at 00:45:19 UTC, five seconds after the flow's live low rating (workflow=11223253). Seen twice more on the 0.35.0 flow, each time after !130 (merged) was marked draft and gitlab-bot withdrew its approval: workflow=11230518 and workflow=11233291.
  • The webhook that reaches triage-ops from gitlab-org/gitlab has the confidential comments trigger on. The rating note is internal, and GitLab sends internal notes only under that trigger: without it no rating note arrives, and gitlab-bot approves nothing in gitlab-org/gitlab after the switch. An approval seen in gitlab-merge-request does not show this, because that project is in another group. Shown on 2026-11-13 at 00:59 UTC: triage-ops acted on an internal note on gitlab-org/gitlab!270151 (merged) within 15 seconds.
  • !133 (merged) is merged, and a dependency bot bump of a root *_VERSION file or a pipeline-common pin has been seen rated low in test mode. Seen on 2026-11-13 on gitlab-org/gitlab!270750 (closed), a test merge request of Connor's, not the bot's, that moved GITLAB_ELASTICSEARCH_INDEXER_VERSION from 5.15.0 to 5.16.1: rated low in deps in test mode (workflow=11224196), then closed unmerged. The rater is given the rules and the diff, not the author. The bot has opened no such bump since !133 (merged) merged, and no pipeline-common pin was tried.
  • The dependency bot count below has been run again and read by Connor and Matt: none of the 11 rated bumps would be approved, against 7 by the older flow. Accepted for the release on 2026-11-13 and announced in #engineering-fyi. Karan has not read it. !139 (merged) has since loosened the rubric: see the go/no-go below.
  • gitlab-org/quality/triage-ops!4551 (merged) is deployed, since about 23:59 UTC on 2026-11-12.
  • !139 (merged) is merged and tagged: 0.35.0, synced at 04:10 UTC on 2026-11-13. A dependency bot bump has been rated low by CI under its rubric, in test mode: gitlab-org/gitlab!270724 (merged) at 04:19 UTC, test-gitlab-bot::risk::low in deps (workflow=11230592).
  • The record names the model that rated, which took !140 (merged): merged on 2026-11-13, no tag needed. Seen in both projects after it, on records that say rules=bb786de9611be91da2aaec78ced101fbde451cab: model=claude_sonnet_5_5_vertex with workflow=11233291 on !130 (merged), and with workflow=11233204 on gitlab-org/gitlab!270780 (merged) in test mode. GitLab returns the same name when asked for each session.

The switch, in order

  1. Deploy gitlab-org/quality/triage-ops!4551 (merged), done at about 23:59 UTC on 2026-11-12. From then until step 2, gitlab-bot approves nothing in gitlab-org/gitlab.
  2. Merge this.
  3. Check that one docs-only and one spec-only merge request are each still approved. A dependency bot merge request is approved only where it rates low, which since !139 (merged) is a dedupe, a removal or a move of @gitlab npm packages alone: see below. An open merge request is approved on its next rating, not before: the test- labels it carries count for nothing. gitlab-org/gitlab!270724 (merged) is the open bump that rates low. Rating it in test mode took marking it draft, which made gitlab-bot withdraw the approval and the auto-merge the older flow had given it, so mark it draft then ready once more after this merges.
  4. Once the first approval is seen, a Maintainer of gitlab-org/gitlab deletes the older flow's consumer there (ItemConsumer 11329670) in the AI Catalog. Merging this does not delete it. While it is there, triage-ops does not start that flow, so it runs only if someone mentions or assigns its account, and the rollback below still brings it back.
  5. Afterwards, take 278964's entry under flows/flow.yml out of .ai-catalog-mapping.json.

Merging this before triage-ops!4551 is deployed is the worse order: live labels would go on before anything reads the rating record.

To stop: set approve: false for gitlab-org/gitlab in triage-ops' config/mr_approval_flow.yml. That is the immediate stop. To roll back: put the rules back to test mode first, then revert triage-ops!4551, which gitlab-org/quality/triage-ops!4560 (closed) does. That is the plan if no approval is seen within about an hour of the merge. Going back to test alone is not a stop, because the live labels and the record of a head already rated stay.

Go/no-go: how lockfile bumps rate

Most of what gitlab-bot approves for the dependency bot today is lockfile bumps. Until !139 (merged) a lockfile bump rated low only when the upstream check read both published versions and found nothing. The count below was taken before !139 (merged), and none did.

glab orbit query "MATCH (a:User {username: 'gitlab-dependency-update-bot'})-[:AUTHORED]->(mr:MergeRequest {project_id: 278964})-[:HAS_LABEL]->(l:Label) WHERE mr.created_at >= '2026-11-10T16:00:00Z' RETURN l.title AS label, count(DISTINCT mr) AS n ORDER BY n DESC LIMIT 200"

Read it by three labels:

Label Meaning
test-gitlab-bot::category::project-rules rated by the MR Risk Labeler
test-gitlab-bot::auto-approve would be approved once live
gitlab-bot::auto-approve approved by the older flow

Run on 2026-11-13 at 00:39 UTC, for merge requests opened since the flow covered the whole project (2026-11-10 16:00 UTC):

Merge requests
Rated 11
Would be approved once live 0 (8 rated medium, 3 high, all in deps)
Approved by the older flow 7

The bot opened 13 in that time. None is a root *_VERSION or pipeline-common bump, so none is a case !133 (merged) changes. The numbers come from the knowledge graph, which can trail the project by a short while.

The same day, for the 24 merge requests opened since then that carry both the older flow's gitlab-bot::auto-approve and a rating from this flow: this flow rated the 16 in specs and the one in locale low, and the 7 dependency bumps medium (4) or high (3).

Since !139 (merged), merged at 04:02 UTC on 2026-11-13 and tagged 0.35.0:

  • A dedupe or a removal installs nothing new, so it no longer makes a bump medium. A package the lockfile adds still does.
  • A move of @gitlab npm packages alone is rated by the lines under high once the check has read each and its hashes match, unless one runs something at install while part of its diff is not shown.
  • Replayed on the production model, three of the seven bumps the older flow approved rate low: gitlab-org/gitlab!270151 (merged), gitlab-org/gitlab!270347 (closed) and gitlab-org/gitlab!270724 (merged). Four do not: addressable, gitlab-qa and fog-aws for what the new code does, and gitlab-styles because more than five gems move and none is read.
  • In CI, gitlab-org/gitlab!270724 (merged) rated low in test mode at 04:19 UTC.
  • gitlab-bot also sets a low-rated dependency bot bump to auto-merge: triage-ops lists bot_dependency under auto_merge. Whether that needs a review step after the merge is an open decision for Connor and Matt. On gitlab-org/gitlab!270724 (merged), with gitlab-bot's approval and its auto-merge set, the Maintainers code-owner rule still required one approval.

Go/no-go: what gitlab-bot approved before

!135 (closed), closed without merging, replayed the 374 merge requests gitlab-bot approved in gitlab-org/gitlab from 2026-10-28 to 2026-11-11 through this flow's gate, on their paths alone. Its spec and fixture stay on its branch, jecsanders-mr-risk-parity-replay, to run again before the switch.

Scope Approved Still fit Refused by the subject gate
pipeline_spec_only 341 322 19
bot_dependency 30 30 0
docs_only 3 2 1
  • With !136 (merged) the 19 spec-only ones fit. The one docs-only refusal is a translated page, which stays refused. Run again on this merge request's head on 2026-11-13, the gate refuses only that page, gitlab-org/gitlab!267933 (merged).
  • The four pipeline-common pins among the dependency bumps fit because bot_dependency approves tooling, in gitlab-org/quality/triage-ops!4551 (merged).
  • The replay checks paths, not tiers. Whether the rater gives these merge requests low is not measured by it.

Checks

make check passes: the compile check, the lints and all three spec suites. The check from !132 (merged) fails this rules file while the older flow still lists the project, and passes with projects: [].

🤖 Generated with Claude Code

Edited by Connor Sanders

Merge request reports

Loading
Loading