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.ymlsaysmode: live. Labels go on with notest-prefix and the rating record saysmode=live, so gitlab-bot acts on the rating. Rules are read frommainat run time: this applies on merge, with no release tag.src/flow/flow.yml.erb(and the compiledflows/flow.yml): the older flow keeps its group entry withprojects: []. Both flows write thegitlab-bot::scopes, so only one may label a project.flows/mr-risk.ymlis 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
codewould 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 saysworkflow=unknown.make livecannot show this: it runs the older flow locally, where there is no session. Seen in both projects:workflow=11221806on this merge request andworkflow=11217028on gitlab-org/gitlab!270724 (merged). Seen again after tag0.35.0:workflow=11230518on !130 (merged) andworkflow=11230592on gitlab-org/gitlab!270724 (merged). - The first CI note shows
rules=as a full sha. gitlab-bot does not approve a record that saysrules=unknown. Both of those records sayrules=c571b22e85cdd2ea4e22dba1553623b09816970b, the head ofmainwhen they ran. The two after tag0.35.0sayrules=8da3a04de3e9fd779eecad1423f468dff877ef55andflow=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 the0.35.0flow, each time after !130 (merged) was marked draft and gitlab-bot withdrew its approval:workflow=11230518andworkflow=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
*_VERSIONfile or apipeline-commonpin 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 movedGITLAB_ELASTICSEARCH_INDEXER_VERSIONfrom5.15.0to5.16.1: rated low indepsin 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 nopipeline-commonpin 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::lowindeps(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_vertexwithworkflow=11233291on !130 (merged), and withworkflow=11233204on gitlab-org/gitlab!270780 (merged) in test mode. GitLab returns the same name when asked for each session.
The switch, in order
- 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.
- Merge this.
- 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
@gitlabnpm packages alone: see below. An open merge request is approved on its next rating, not before: thetest-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. - 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.
- Afterwards, take 278964's entry under
flows/flow.ymlout 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
@gitlabnpm 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_dependencyunderauto_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, theMaintainerscode-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-commonpins among the dependency bumps fit becausebot_dependencyapprovestooling, 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: [].