ADR-010 says the closed beta reclaims storage; the roadmap says it does not
Context
ADR-010 says a non-empty repository delete in the closed beta frees its storage through garbage collection (GC). The roadmap puts GC's production implementation after the closed beta. main registers no GC job, so every delete removes metadata and leaves the blob row and its object in storage. While no GC runs, stored bytes and the Deduplicated size a registry shows only grow. Which one holds sets the bucket's growth model and what a delete promises a customer. GC is a P0 deliverable of the GA epic gitlab-org&22707. Its tracking issue lists this disagreement under what exists today: gitlab-org/gitlab#630576. The readiness assessment records the gap, and this issue owns closing it. ADR-011 also commits GC to "the first release", and the Approved S20-A spec cites that commitment. Amending ADR-010 alone leaves ADR-011 promising GC. The roadmap treats the partner-only closed beta (2026-09-15) and the open beta (2026-10-06) as one beta. ADR-010 names only the closed beta.
What exists on main
Each line holds at origin/main d7fcf10e6 (2026-10-01) unless it names another source. ./scripts/adr-freshness.sh reported the ADR mirror current on 2026-10-01.
docs/adr/010_data_retention.md,### Release Phasing: a non-empty closed-beta repository delete completes in the background, "and storage is reclaimed through garbage collection". gitlab-com/content-sites/handbook!20627 (merged) added the sentence on 2026-08-07.docs/adr/010_data_retention.md,### API-First Soft Delete: rejects soft delete in the closed beta partly because "A delete frees no storage". The same handbook MR added that reason. It holds for permanent delete too while no GC runs.docs/adr/011_data_reconciliation.md,## Decision: "We ship garbage collection in the first release." The ADR names no release stage.docs/adr/025_garbage_collection.md(status Proposed): per-namespace online deferred GC with a phased rollout. Phases 1 and 2 delete nothing. Phase 3's irreversible delete waits behind an entry gate. The ADR names no release stage.docs/specs/S20-a-lifecycle-closed-beta.md(Approved): the purger reduces a blob's attachment count to zero and leaves the blob row and object to S28. Its S28 row in## Dependenciesreads "GC committed to the first release by ADR-011".### "Deletes free storage immediately"repeats the commitment. The spec assigns the namespaceΔdedup_sizedecrement to S28.docs/specs/README.md: S28 and S20, the GA lifecycle, are Planned, with no spec file.docs/roadmap/beta.md,## Scope and status, renamed fromdocs/roadmap/closed-beta.mdin1ea87a424: the S28 row is De-risk and Not started. De-risk means "production implementation post-closed-beta". The row quotes S28's author on 2026-08-26: "we're dropping this from closed beta". No GC plan exists. The stage table dates the partner-only closed beta 2026-09-15 (exit at Gate 1, about 2026-10-08), the open beta announcement 2026-10-06, and GA January 2027.docs/dev/storage-accounting.md,### Where each delta fires: "No blob reclamation exists in the tree", sodeduplicated_size_byteshas no decrement path. Reconciliation cannot supply one.internal/storage/blobstore.go,DeleteBlob: the one path that deletes a blob row and its object. Only the storage test suites underinternal/storage/testsuites/call it.cmd/artifact-registry/wire_lifecycle.goregisters the S20-A purge and sweep jobs. Nothing registers agc:*job kind, and no migration creates a GC table.docs/user/_index.md:### Storage quotasays beta storage is free with no quota.## View storage usageshows a registry-level Deduplicated size, "the size of the unique blobs across the whole registry". No delete lowers it while no GC runs. No page underdocs/user/mentions garbage collection or reclamation.- Not on
main: the S28 draft in !728 (closed) (Draft on 2026-10-01) makes its phases independently shippable. Its Phase 1 waits on an ADR-007 handbook amendment for the GC tables. Its Phase 3 gate waits on a real-traffic reading ofgc_candidate_re_reference_seconds: p99 below half of the 24-hourreview_delay.
Change
The owner decides the stage at which GC first reclaims storage. Every document that states the stage then agrees: ADR-010, ADR-011, S20-A, the roadmap's S28 row, the readiness assessment's operational_lifecycle answer, and docs/user/ if the decision adds a customer statement. ADR edits land as handbook amendments, because docs/adr/ mirrors the handbook. If GC enters the beta, the S28 spec and its plan merge before any S28 implementation MR opens.
Acceptance criteria
-
The Artifact Registry team and product, with the ADR owner, decide on this issue the stage at which GC first reclaims storage: closed beta, open beta, or GA. No spec settles it, because ADR-010 and ADR-011 conflict with the roadmap. The candidates and what each costs:
- Reclaim after the beta. The original description recommends this, and
maindoes it. It costs documentation only, criteria 2 through 4. Stored bytes and Deduplicated size only grow through the beta. Beta storage is free with no quota, so the growth lands on the bucket rather than on customers. It also skips GC through the scale-from-zero window ADR-011 cites against deferring GC. Reference-tracking bugs then surface later, against more data. Blobs orphaned in the beta wait for GC: the S28 draft's backstop scan,gc:reconcile-scan, enqueues zero-attachment blobs past the grace window once it ships. - Bring GC into the beta. This scope change undoes the S28 author's 2026-08-26 call. It needs the S28 spec and a plan merged, the ADR-007 amendment the S28 draft puts before Phase 1, the blob-row lock at every attachment write, and Phases 1 through 3. Even then GC reclaims nothing until Phase 3 clears its gate. That gate reads re-reference timing from Phases 1 and 2 running under real traffic. It also brings ADR-025's irreversible delete, with its one unmitigated data-loss path, into the beta.
- Capture in the beta, reclaim after. Phases 1 and 2 of the S28 draft ship on their own and delete nothing. Shipping them in the beta gives the Phase 3 gate its real-traffic reading before any delete exists. It costs option 1's documentation plus the S28 spec, plan, and two phases. Those phases add a blob-row lock to every attachment write. The S28 draft answers lock contention with a 503. ADR-025 records the lock's push-path cost as unmeasured.
The decision also states whether
docs/user/tells beta customers that a delete frees no storage. - Reclaim after the beta. The original description recommends this, and
-
ADR-010 at the handbook source states the decided stage in
### Release Phasing. If reclamation waits past the beta, the amendment replaces "storage is reclaimed through garbage collection". It also revisits the fourth reason under### API-First Soft Delete, "A delete frees no storage", which then holds for permanent delete too. -
If reclamation waits past the beta, ADR-011's
## Decisionat the handbook source names the stage its first-release commitment means. The readings already differ: S20-A takes that commitment to cover the beta, and #471 (closed) judged that ADR-011 needs no reversal either way. -
S20-A's S28 row in
## Dependenciesand its### "Deletes free storage immediately"section cite the decided stage, through a spec amendment MR in this repository. Under option 2 both stand as written. -
The S28 row in
docs/roadmap/beta.mdstates the decided scope in its Closed Beta and Remaining cells. Option 2 moves it from De-risk to Build. -
The readiness assessment's
operational_lifecycleanswer cites the document the decision leaves standing. -
If the decision tells beta customers that a delete frees no storage,
docs/user/says so where it describes deletes and the Deduplicated size figure (docs/user/_index.md,## View storage usage).
Specs and ADRs
- ADR-010, Release Phasing: the closed-beta reclamation sentence. Amend it at the handbook source.
- ADR-010, API-First Soft Delete: the rejected alternative whose fourth reason is "A delete frees no storage".
- ADR-011, Decision: GC in the first release.
- ADR-025, Operational controls: the phased rollout and Phase 3's entry gate.
- S20-A, Dependencies and S20-A, "Deletes free storage immediately": the two ADR-011 citations.
- S28 has no spec file on
main. Its draft's## Acceptance Criteriacarries the phase gates: !728 (closed). - Roadmap, Scope and status: the De-risk definition and the S28 row.
Dependencies
- Criterion 1's decision comes first. Criteria 2 through 7 each depend on the stage it picks.
- !728 (closed), the S28 spec: options 2 and 3 need it and then a plan merged before any S28 implementation MR opens, because those merges approve the work.
- #676 and #742 (closed), the blob-row lock gaps: options 2 and 3 close them with S28 Phase 1, which takes that lock at every attachment write. The S28 draft's Phase 3 gate requires the lock on both sides before any delete.
- #498 asks the team to decide whether GC lands or to rewrite the code's deferral comments to say orphans leak. This decision answers it for the beta, so that rewrite follows this issue.
- gitlab-org/gitlab#630576, the GA deliverable: under option 1 it carries all of GC, and under option 3 it carries Phase 3 onward. Its "What exists today" list cites this issue, so its description changes after this issue closes.
First step
The Artifact Registry team and product, with the ADR owner, pick one of criterion 1's three options on this issue. Under option 1 or 3, the next MR is one handbook amendment to ADR-010 and ADR-011, with the S20-A spec amendment beside it, by the route of gitlab-com/content-sites/handbook!20627 (merged). Under option 2, the S28 spec MR goes to review next.
Original description
Two documents disagree about whether the closed beta reclaims disk, and the readiness assessment cannot answer both ways.
The disagreement
ADR-010 describes the closed beta as reclaiming storage through garbage collection.
docs/roadmap/closed-beta.md scores S28 garbage collection as de-risk scope only: a spec, a proof of concept, and the schema. The spec merge request is still Draft. No plan exists, and no garbage-collection job runs on either job backend.
So on the roadmap's account, metadata deletes are permanent but bytes are never freed, and stored bytes grow monotonically through the beta.
Why it needs settling before the beta opens
The assessment states the roadmap's version, because that is what the code does. But the two cannot both stand, and the difference is not cosmetic:
- It changes the storage-growth model the bucket is sized against
- It changes what a customer can be told about deleting artifacts
- It is the difference between a delete that frees space and one that does not
What closes it
Either an amendment to ADR-010 saying reclamation is post-beta, or a scope change bringing garbage collection into the closed beta. The first is much cheaper and matches what is built.
Closing evidence
The two documents agreeing, and the assessment's operational_lifecycle answer citing whichever wins.
Owner and stage
Artifact Registry team, with the ADR owner. Before the closed beta opens.
Raised by the PREP readiness assessment, readiness!85. It exists so the open item survives that merge request being merged: the assessment records the gap, this issue owns closing it.