Skip to content
Toolkit

ADR-0136 — Every address here is one its author chose

Status: Accepted · Date: 2026-08-30 · Track: 011 phase 03 · Supersedes: nothing · Builds on: ADR-0115, ADR-0135

Context

The charter names a custom_slugs_limit axis and says what counts as custom is a product call, decided here rather than in a handler. Deciding it meant finding the name the product mints, to have something a custom name is custom against.

There is none. Every create path in this API refuses a request with no address — "URL is required", in links.go, biolinks.go and every sibling — and nothing in apps/web fills one in either. The only slugify in the tree is the admin blog's, which derives a post's path from its title and is not a resource address at all. So this product has no auto-generated back-half, and the industry distinction the phrase "custom slug" comes from — a vanity name as against a minted one — does not exist here to be measured.

An axis is only worth what its count means. custom_slugs_limit counting a subset that cannot be identified would be a number bounding nothing, or worse, a number bounding something else that a session picked quietly.

Decision

Every address in this product is a custom one, so the axis bounds the names a workspace holds.

  • The key stays custom_slugs_limit — it is the wire name the ledger reserved and the overview uses — and its label does not repeat a distinction the product cannot make: "Addresses per workspace".
  • The count is LinkRepository.CountNamesHeld: rows in the workspace whose lifecycle state is not released, because a released name is exactly one the workspace no longer holds (ADR-0115). Held, not created — the axis and the claim path agree on what holding means.
  • It is a scope count (ADR-0135's third shape): names belong to the workspace that claimed them.
  • The refusal lives inside refuseTakenSlug, the one place a name is taken — 009 proved there is exactly one, across all fourteen write paths — and after the 409, because a taken address is taken whatever a plan says.
  • Only a create is charged. exceptLinkID is 0 exactly on a create; a rename moves a name the workspace already holds and takes no additional one. Charging a rename would stop a workspace at its limit from ever correcting a typo in an address it owns.
  • Unwired and unseeded bound nothing (ADR-0013), so this changes nothing until a plan carries a number, and the numbers are the owner's.

Consequences

  • This axis overlaps links_limit and the per-type limits, and is the first to do so. They are not the same measurement: those count per account and per type; this counts every address in one workspace. Where both are set, the stricter refuses, which is ordinary quota behaviour. It is stated here rather than discovered by an operator wondering which number applied.
  • If the owner wants the industry meaning — a plan that includes N vanity names and mints the rest — the missing half is a mint path, not a quota: the product would have to generate an address when the author supplies none. That is a product decision with a real surface behind it, named in 011's SESSION as an open question. This axis stays correct either way: it would then bound the names a workspace holds, of which the chosen ones are a subset.
  • The seat axis's registration shape paid for itself one phase later, unchanged.

Source: docs/decisions/0136-every-address-here-is-one-its-author-chose.md

Library