ADR-0093 — A grant names the gate it answered
Status: Accepted · Date: 2026-08-29 · Track: 007 phase 02 · Supersedes nothing · Builds on: ADR-0092, ADR-0083
Context
ADR-0092 settled one interstitial mechanism for three reasons — password,
sensitive content, splash — and shipped it with the first. The second reason
arrives with a property the first did not have: there is nothing to verify.
sensitive_content is a mark on the resource, not a secret. The answer to a
content warning is the acknowledgment itself, which anyone can give.
So the mechanism now has two doors of very different price standing on one
resource, and ADR-0092's grant said only which link was unlocked and until
when. An acknowledgment minted under that shape would have been indistinguish-
able from a password answer: an endpoint that verifies nothing would have minted
a token that opens a gate protecting a bcrypt digest. The cheap answer would
have opened the dear gate, and password_protection — billed since 004 —
would have been served by a button.
The splash slice inherits the same shape one reason later, which is why this is an ADR and not a line in a handler.
Decision
The reason is inside the signature. A grant is
g2.<link id>.<reason>.<expiry>.<hmac>, and Valid takes the reason it is
being asked about. A grant for one gate is not a grant for another, exactly as a
grant for one link is not a grant for another.
Three consequences follow, and they are the point:
Issuerefuses a reason nobody wrote. There are three gates, not four, and the mint is where that is decided — never a query parameter.- The acknowledgment endpoint can be unguarded.
POST /l/{slug}/acknowledgeverifies nothing and needs no attempt limiter, because nothing it mints opens anything an attacker did not already have. An attempt budget there would only stop a household behind one address from reading what it was warned about. - Doors are answered one at a time, and the answers accumulate. A resource that is both gated and marked sends the visitor to the password first, then to the warning, carrying the answers already given. The redirect path considers every grant on the request rather than the first, so the visitor never has to present them in an order.
The password is asked for first. The two refusals are ordered by what they cost to answer: a visitor who cannot produce the password never learns the resource is also marked, and the acknowledgment anyone can give is asked for only after the answer only the holder can give.
g1 is retired rather than accepted. A token that names no gate cannot be
read as naming one, and grants live fifteen minutes; the cost is one extra trip
through a door for whoever holds one across the deploy, and the alternative is
a validator with a shape that means "any gate".
Consequences
- The splash reason is now a two-line addition: a reason constant, a branch, and whatever answers it. It cannot accidentally open the other two.
sensitive_contentis enforced on the serving path — ledger rowgate-sensitive-content, 4 of 8 → 5 of 8. What the page asserts is still charter blocker 2 (wording, whether an age is claimed, whether the acknowledgment outlives the grant): the reason code and the acknowledgment do not wait on it, and the wording it ships with is replaceable in one file.- The acknowledgment lasts as long as any grant — fifteen minutes — so a visitor is warned again on a later visit. If the owner decides an acknowledgment should be remembered, that is a per-resource cookie on the app origin and not a longer grant: a grant is short-lived on purpose.
- A grant is still a claim about identity and time and nothing else. The reason is the resource's own vocabulary, not the visitor's: it says which door, never who walked through it.
Source: docs/decisions/0093-a-grant-names-the-gate-it-answered.md