ADR-0121 — A window that refuses is decided by the reader, not the writer
Status: Accepted · Date: 2026-08-30 · Track: 009 URL lifecycle, phase 05 · Supersedes: nothing · Related: 0109, 0113, 0115
Context
The reclaim window is the ledger's last row: for a while after a name is
released, it is claimable by the workspace that held it and by nobody else. It
is a state row like the four before it, and it failed the gate the moment it
was flipped:
reclaim-window: no writer of this row reads LifecycleThresholdSet — an enforced
row takes its window from configuration, or the configuration is decoration (L4)
The gate was right and the row was right, which means the rule was too narrow.
Every earlier row is a transition: a sweep fires, and the half that fires it is the half that read a window and a clock. So L4 (the window is configuration) and L5 (the clock is injected) hold the row's writer, and ADR-0113 had already tightened that once — the rule binds where elapsed time is decided, not where a moment is recorded.
This row is not a transition. Nothing is written when the window matters. Its
whole subject is a refusal: the claim path evaluates a predicate and
declines. Its writer is MarkLapsedAsReleased, which stamped the release days
earlier and reads ReleaseDays — a different window entirely. Holding that
writer to L4 checks the wrong window in the wrong file, and leaves the code that
actually decides unchecked.
Decision
A row declares which half decides its window. decides_window: "reader"
makes L4 and L5 hold the row's reader; absent — every existing row — it stays
the writer. The exception has to be written into the ledger, in a reviewable
diff, beside the row that claims it.
This is ADR-0113's move one step further along the same line. That ADR said the rule binds where elapsed time is decided rather than where a moment is recorded. This one says the deciding half is not always the writing half, and the row is what knows which.
Two things this deliberately does not do. It does not relax either rule: the
reader is held to exactly what the writer was held to, so link_slug.go must
read LifecycleThresholdSet and must not call time.Now(). And it does not
make the choice implicit — a rule that quietly checked "writer or reader,
whichever passes" would pass for a row that reads the configuration nowhere at
all, which is the state both rules exist to forbid.
The window itself
Three decisions inside the phase, recorded here because they are what the rule above exists to check:
The claimant is a workspace, not a user. workspace_id has been the access
boundary since 000026 and user_id is only the owner-of-record. A name
released by a team is reclaimable by that team — otherwise the one member who
happened to create the resource could take it back and nobody else could,
including after they left.
An unconfigured window reserves nothing. The zero policy is phase 02's behaviour exactly: a released name is free the instant it is released. An unset window must relax and never reserve, because a deployment that has not answered Blocker 3 must not silently lock names away for a period nobody chose. In the statement this is a NULL cutoff reading as "reserve nothing", and it is asserted against a real database rather than assumed, since the inverted reading — NULL reserving everything — is a plausible SQL accident with no visible symptom.
The refusal is the same refusal. A stranger inside somebody's reclaim window gets the byte-identical 409 they get at a live name. Anything else makes the claim path an oracle for which workspace once held which name — ADR-0109's rule for the attributed 409 and ADR-0110's for an outsider's comment, arriving here for the third time.
Consequences
- The ledger's last row is enforced:
check:lifecyclereports 9 of 9. - A future row whose subject is a refusal rather than a transition has a shape to declare instead of a rule to argue with.
decides_windowis a two-value field. A third answer would mean a row whose window is decided in a third place, which is a design to question rather than a field to widen.
Source: docs/decisions/0121-a-window-that-refuses-is-decided-by-the-reader-not-the-writer.md