docs(plans): plan the monolith S10 registration checks
Summary
Plans the monolith implementation of the monolith/S10 registration checks that !3308 (merged) specifies: the cross-tenant collision check, the provisioning rate limit, and the four refusal messages, the availability one naming no reason.
Merge order: this MR targets !3308 (merged)'s branch, so its diff is the plan alone. It merges after !3308 (merged), and no step MR opens before both have merged.
| Step | Scope | Depends on |
|---|---|---|
| 1. Reason-free availability refusal | A 409 or 422 from provisioning returns one externalized availability refusal instead of AR's message |
— |
| 2. Provisioning rate limit | A labkit rule per organization, 10 an hour in a fixed window; a claim past it is refused as throttled before provisioning | — |
| 3. Cross-tenant collision check | On GitLab.com, behind a new SaaS feature: a handle equal to another organization's path or top-level group path is refused before provisioning. A database-review MR | Steps 1, 2 |
| 4. Refusals keyed on the AR reason | ApiError#reason, and the format and anchor-mismatch refusals |
Step 1, and the contract change of #1564 |
Points a reviewer may look for:
- The flag is on for closed-beta organizations.
artifact_registry_uiis settrue, scoped to organizations, on gprd (feature-flag log, latest entry 2026-10-08). So no step is dark: each one changes what those organizations see when it merges. Steps 2 and 3 therefore pair with a linkeddocs(user)MR in this repository, for the Rate limits statement and the handle rules indocs/user/_index.md. No step carries a changelog entry, because the flag is default-off. - Step 4 waits on AR's contract, not its deployment. It reads
reasononly onceapi/openapi/gitlab-v1.yamldefines it. Until then, Step 1's status fallback is the whole behavior, which is what the spec requires for an AR that sends no reason. - gitlab-org/gitlab!259603 (merged) (draft, for gitlab-org/gitlab#631281 (closed)) edits the same service, both specs, and
locale/gitlab.pot. Its hunks are disjoint from the steps', so whichever lands second rebases. Folding gitlab#631281 into Step 1 was rejected, since that work has its own MR. - The monolith working tree was dirty on an unrelated branch during research. Every monolith fact was read from
c7d0573f910ethroughgit show, never from the working tree.
Governing ADRs
- ADR-015 (internal): the steps implement the requirements !3308 (merged) derives from it; see that MR's ADR section.
- ADR-014: no change to the resolver pattern or the server-held credential.
Testing
Documentation only. pre-commit run passes (markdownlint, Vale, lychee), and gitlint passes. The plan went through the planner's pr-review-toolkit:review-pr pass, a code review and a prose review run in parallel. Every finding was fixed, among them:
- the flag state;
- the rate-limit window;
- Step 4's mapping order;
- gitlab!259603 as a shared seam;
- the plan token
monolith/S10 registration checks; - the template's title-case headings.
Every cited monolith fact was checked at c7d0573f910e.
E2E impact: none. The catalogs carry no activation row, and the harness claims e2e-shared for its own organization, which neither check refuses.
Related to gitlab-org/gitlab#632845