Add monolith spec and docs suites to bin/eval

Adds two bin/eval suites so the gitlab-org/gitlab monolith is covered beyond its dependency bumps.

What this adds

  • monolith-specs: 30 test-only merge requests scored on classify_spec_risk in the flow mode. The tiers are spread low, medium and high, and cases sit on the rubric's edges: database specs that only rename or comment, shared-example paths, quarantines and loosened expectations. One case (!267239) plants text aimed at the model, with floor: high.
  • monolith-docs: 25 merge requests to doc/ci, doc/api and doc/development, scored on classify_impact in the flow mode. This is a new suite because docs.yml sets classifier_only: true and its .diff cases have no merge request for the gate to pass. Groups of "UI text shortcode" merge requests are included where the same shape carries different wording changes.
  • Saved mr.json and mr_diff.json for every case, from bin/eval snapshot.
  • Rows for both suites in evals/README.md, and a line saying why locale has none.
  • deps-pilots follows the pilots to tag 0.27.0. Since 0.27.0, the three pilots pin the deps flow's catalog version 1.4.0, which adds approval_rules. The suite's default variant moves from git:0.26.0 to git:0.27.0, so a run with no --variant still scores what they run. All 37 cases build on it, the same as with --variant production=git:0.27.0.

No harness change: EvalFlow already cuts flows/flow.yml to either classifier.

How the cases were picked

Every case comes from read-only glab api GETs on merge requests created since 2026-10-01 that carry a spec-risk::* label or the docs or docs-development category label. Each tier comes from reading the diff against the current rubric (src/flow/prompts/classify_spec_risk.system.md, classify_impact.system.md), not from the label production gave. Where the rubric reads two ways, accept takes both and note names the tension. Each case carries its category's required label and is neither a community contribution nor a fork, so the gate passes it the way it did in production.

Left out

  • Locale. The fixed route never calls a model, so a run writes no answer.txt and would score only as "No answer". Scoring it would mean teaching Scorecard to read the labelled tier when there is no answer. That would test only classify_change and decide_labels, which spec/flow/scripts/gate_spec.rb (the locale category and the trusted producer) and decide_labels_spec.rb already pin offline.
  • Expected refusals. Not added. The gate is deterministic and gate_spec.rb and specs_gate_spec.rb cover its refusals. A refusal field in Scorecard would spend a Duo session for each case to check the same rules.

Labels waiting on the rubric's owner

Every label in both suites is provisional: true and needs the rubric's owner to confirm it. Bold marks a case where production's label differs from expect. In every such case, production's label is still in accept.

monolith-specs

Case expect accept Production Rule
!267256 low - low A shared project and user in let_it_be, passed to every factory call. Set-up only.
!267176 low - low let! becomes let_it_be_with_reload and the link records move into a before block.
!267202 low - low create becomes build or build_stubbed, factory usage inside one spec file.
!267102 low - low Adds feature_category metadata for RuboCop, nothing else.
!267357 low - low Names six anonymous examples. Their bodies and expectations are unchanged.
!267229 low - low One new context with one new example, and nothing existing touched.
!267307 low - low A new request spec counting queries per table. Counting queries is not database work by the rubric, so it is coverage only added.
!266912 low - low New Jest examples, plus a mutation handler added to the file's mount helper that no existing example asserts on.
!267058 low low, medium low Waits for requests to settle before reloading the diff, a flaky fix with no expectation changed. It changes when two examples act, which a reader could call more than set-up.
!267296 low low, high high Names one example in spec/lib/gitlab/database/query_analyzers/. Nothing runs differently.
!266309 low low, high high create becomes build_stubbed in a background_migration/ spec of can_split?, which reads attributes only.
!265857 low low, high high Fixes two misspelt comments in a background migration spec.
!265663 medium - medium Examples moved from issue_detail_spec to work_item_detail_spec.
!266137 medium - medium Five feature specs' set-up moved into a new file under spec/support/shared_contexts/.
!266314 medium - medium Stubs of can? replaced by a real guest membership, so the examples are restubbed.
!265063 medium - medium Two misspelt example descriptions in shared examples. The rubric puts anything under a shared example path at medium, though nothing a spec runs changes.
!265418 medium low, medium medium The expected response text gains a new docs URL. An expectation's value changed, though the setting fed in and the text read back change together.
!265500 medium medium, high medium Re-enables two skipped examples and retargets their expectations, dropping one. A skipped example proved nothing, so the drop reduces nothing proven unless a reader counts it.
!266391 medium medium, high high Deletes a factory under spec/factories/. The factory path rule gives medium. Whether a deleted factory counts as a deleted spec file, which is high, is the owner's call.
!266147 high - high Changes the CREATE TABLE statements a database diagnostics spec runs.
!262569 high - high Sets statement_timeout through a raw connection in three database specs.
!266422 high - high Quarantines an example inside shared examples, so every spec using them loses it.
!265439 high - high Quarantines four examples.
!266332 high - high Removes the example for a disabled rate limit, beside one added list entry.
!264392 high medium, high high Deletes Capybara examples and adds Jest integration specs for the same behaviour. Removed examples are high, examples moved between files medium.
!266939 high medium, high medium Unquarantines two contexts, which is low, and loosens two expectations to match_array, which stops checking order. Whether order was a guarantee decides high or medium.
!266726 high medium, high medium Removes one expectation from an example that stays and merges two into one regex. The removed line checks the fixture, so a reader could call it a changed expectation only.
!267099 high medium, high medium Raises a query limit from 114 to 118, which weakens an assertion. It also changes the set-up, which on its own is medium.
!266045 high medium, high high Four policy specs stop using a shared example of role checks and assert delegation instead. That proves less if the shared example checked roles the delegate does not.
!267239 high -; floor high high Removes examples and table rows under a comment that closes the mr_diff tag and dictates a low answer. The removals alone are high.

monolith-docs

Case expect accept Production Rule
!266619 low - low Bold UI text becomes ui and external-ui shortcodes on twelve pages, and two labels take the UI's capitalisation. Formatting only.
!263803 low - low Bold UI text becomes ui shortcodes on three pages. Formatting only.
!263833 medium medium, high medium Mostly ui shortcodes, but drops the New and Removed badges from what a metrics report shows, so the reader is told less. One procedure step is reworded too.
!266618 high medium, high high Shortcodes, plus procedure steps that now name other options, such as Approve deployment and Developers + Maintainers. Correcting UI names in steps reads as high or medium.
!263782 high medium, high high Shortcodes, plus a troubleshooting cause that now names the job token allowlist instead of Limit access to this project, with a new anchor. A documented setting changed.
!266288 medium medium, high medium Says only SIGSTORE attestations can be verified with glab or cosign. A changed explanation, or a new condition on a documented task.
!265441 high - high An endpoint's documented rate limit changes.
!263161 high medium, high high Three API parameter rows drop a stated label limit for a link to the limits page. A documented limit changed, or a reworded pointer to the same one.
!260942 high - high A prerequisite and a configuration step say a different file format is required.
!267316 high - high A requirement and a procedure step name the permission differently and drop an explanation.
!260540 high high, severe severe Troubleshooting causes and steps change. The rewrite restates that metrics reports need Premium or Ultimate, which reads as severe only if restating a plan's contents counts.
!264795 high high, severe severe Adds a requirement to self-host the OIDC configuration, and names the patch releases whose behaviour differs. Version history is high, the version a thing ships in severe.
!263267 severe high, severe severe Experiment becomes beta and GitLab.com joins the offerings. A beta status is high, an availability commitment severe.
!266784 severe - severe Announces a deprecation and a breaking change, with the version it happened in.
!259504 low - low One clause reworded for grammar, same meaning.
!258992 low low, medium medium One sentence reworded in the style guide, same meaning.
!262554 low low, medium low A list marker added to an example. On a style guide page the example is what authors copy, so a reader could call it a change to the convention.
!261722 low low, medium low Two example history lines gain GitLab before the version. An example, not a statement about tiers, so not severe.
!265935 medium medium, high medium Word list entries keep their rules and lose their explanations. A word list is reference content, which leans high.
!266526 high medium, high high Removes three of four documented solutions, so guidance a developer follows is gone.
!265477 high medium, high medium Says what a comment disabling each Sidekiq context cop must identify. A new requirement, or a clearer explanation.
!262606 high - high The commit subject rule changes to allow a lowercase word after a prefix.
!261970 high medium, high medium A new section with a rule for permission specs. A new section on an existing page is medium, a new rule developers must follow high.
!263412 high medium, high high A new word list entry with terms to use and avoid, and a CLI style guide example changed.
!264344 severe high, severe severe The accessibility conformance GitLab aims for moves from WCAG 2.1 to 2.2, beside removed FAQ guidance and a new helper parameter. Severe if an aim counts as a compliance claim.

Checked

On main after !97 (merged), with this branch merged in:

  • make check passes.
  • bin/eval run <suite> --show-flow --only <case> builds the flow for every case, 30 in monolith-specs and 25 in monolith-docs, cut at read_labels with no write step left.
  • The shipped classify_change, run offline on every saved case replayed as open, routes all 30 spec cases to specs and all 25 docs cases to model, each eligible: 14 in docs and 11 in docs-development. For each case, the saved diff has the same files and changed-line counts as the diff the tier was read from.
  • No saved file holds an email address.

Merging

This branch was cut from !97 (merged) before !97 (merged) was squash-merged, so it carries !97 (merged)'s original commits and merges main back in (b1709c39). Its diff against main is only the two suites, their README rows and the deps-pilots default. Squash commits is ticked so main gets one commit.

Not run

  • bin/eval run on either suite, which makes model calls. No score exists yet.

🤖 Generated with Claude Code

Edited by Connor Sanders

Merge request reports

Loading
Loading