Skip to content
Toolkit

ADR-0119 — An archive is addressed by a key, because the name it had may belong to somebody else now

Status: Accepted · Date: 2026-08-30 · Track: 009 URL lifecycle, phase 04 · Supersedes: nothing · Related: 0092, 0105, 0114, 0115

Context

The charter answers one of its own questions rather than asking it: a lapse never deletes anything. Release the slug, archive the document. Phase 02 delivered the first half — lapsed → released frees the name — and left the second half owing: what was at that name has to be readable somewhere, or "archive the document" is a sentence with no address in it.

Three things had to be decided before any of it could be served.

Where. The overview implies a second domain; this tree has one public origin and no second one configured. That is the charter's Blocker 1, an owner decision, and this track may not take it.

Addressed how. The obvious answer — the old slug — is the one thing that cannot work. SlugTaken deliberately treats a released name as free (ADR-0115), so somebody else may already hold it; an archive at /archive/{slug} is either ambiguous between two owners' resources or a stranger's document under the old owner's name. The next answer, link_id, is worse in a quieter way: a sequential integer is an enumeration surface, and /archive/1, /archive/2 walks every archived document in the deployment. The live resources are addressed by a name their owner chose and watches. An archived one belongs to somebody who has stopped turning up and will not notice.

Carrying what. The charter's own risk table names it: an archive that leaks what the live resource withheld.

Decision

The archive address is an opaque key, minted by the release transition itself — replace(gen_random_uuid()::text, '-', ''), 32 hex characters, written in the same UPDATE that frees the name (000041). The moment a resource stops being reachable by its own name is the moment it needs another one, and a key minted anywhere else is a window in which a released document has no address at all.

It is COALESCEd rather than assigned. The predicate makes re-minting unreachable on the ordinary path — only lapsed rows are touched — but the key is what an owner was told to bookmark, and the first thing that puts a row back into lapsed (a reclaim flow, an operator, phase 05) would otherwise kill every address already handed out.

The archive is a projection, not a second payload. The body is built by the same cardFields(publicSettingsFor(link)) the card endpoint uses, so an archive cannot carry a key the type's own public allowlist withholds even if the archive handler named one. This is ADR-0105's rule applied one surface over, and it is what makes the charter's named risk structurally impossible rather than carefully avoided.

The gate survives the archive. A password-gated resource is gated at its archive address too, answered by the same closedGateFor every live door uses. A gate an archive walks around is not a gate; it is a delay.

The archive names no target. Every other card carries the app route its resource opens, built from the slug. This one carries former_url as a fact about the past and nothing clickable, for the reason the addressing decision turned on: that name may be somebody else's.

Nothing is recorded. A visit to an archive is not use — it cannot revive a released resource (ADR-0115) — and counting it would put clicks in a former owner's analytics for a name they no longer hold. last_used_at is untouched.

Blocker 1 stays the owner's. ARCHIVE_ORIGIN (empty: this origin) and ARCHIVE_PATH_PREFIX (default /archive/) are put together in exactly one place, ArchiveAddressSet.URL, so a path answer and a domain answer produce the same shape of address and nothing downstream branches on which. Answering Blocker 1 with crd.site is then a line of configuration, not a rewrite.

Consequences

  • check:lifecycle reads 8 of 9. The one row left is phase 05's reclaim-window.
  • The app page that renders this payload with 008's own renderers is phase 04's next slice. The endpoint is deliberately first: the page is a projection of this payload, and building it the other way round is how a second payload gets written.
  • The released state now has two readers rather than one — the claim path that treats the name as free, and the archive that serves what is left. They agree by construction, because the archive resolves on lifecycle_state = released and the claim path frees exactly that state.
  • A deployment that has never armed the taking transitions has no archived rows and no archive addresses, which is correct: nothing has been released.
  • What an owner is told their archive address is remains unwired. The final notice cannot carry it — the key does not exist until the release that notice precedes — so the surface that shows it is the owner's own read of the resource, and that is a slice, not a sentence in this ADR.

Source: docs/decisions/0119-an-archive-is-addressed-by-a-key-because-the-name-it-had-belongs-to-somebody-else-now.md

Library