P36 (draft): the tap result, and how a visitor reports it
A proposal, not part of the specification
Status: Folded into the draft Visit extension (extensions/visit.md) 0.1; this page is kept as history.. Nothing here is normative until it's merged into the specification and listed in the changelog. See all proposals. This note is the site's.
Status: draft proposal, 2026-11-29. Not in SPEC.md. Nothing here changes a door today. The visit toolkit in the next @kigenka/shokai release (in preview, unpublished; visit check) already reads both today's result shape and the fields proposed here. Byline: YSY.
Folded into the draft Visit extension (extensions/visit.md) 0.1; this page is kept as history.
In plain words
- When a visitor needs its owner's passkey tap, the door gives it two links: one for the owner (
owner_url) and one for the visitor to check (result_url). - Today each place words that result its own way. Visitors then guess when the tap happened, which place recorded it, and what to say if the tap did not go through.
- P36 fixes the shape of the result, so every visitor can say the same honest thing: "Harbor Lane Studio recorded your tap at 11:15 PM PT," or "the tap hasn't gone through yet; here is the same link again."
The result object (GET result_url)
TapResult {
status: "waiting_for_passkey" | "waiting_for_tap" | "signed" | "declined" | "expired" // REQUIRED
place: { display_name: string, origin: string } // REQUIRED (new)
recorded_at?: RFC 3339 timestamp // REQUIRED when status is signed or declined (new)
resend_url?: string // REQUIRED while waiting_* (new; today's owner_url)
expires_at: RFC 3339 timestamp // REQUIRED
items?: [{ name, decision }]
...signed artifacts when status is signed (unchanged)
}Rules
Door:
- A door MUST return
statuswith one of the five values above. It MUST NOT returnsigneduntil every requested item is signed. - A door MUST name itself in
place.display_name, the same name its listing shows. A visitor MUST NOT hardcode or guess it. - A door MUST set
recorded_atto the time it recorded the owner's decision, from its own clock. - While the tap is still waiting, a door MUST return
resend_url(the same owner link), so a visitor never has to start over just because a tap did not go through. - A door MUST NOT put tokens, keys, or codes in fields meant to be repeated to the owner, other than
resend_urlitself.
Visitor:
- When its owner says the tap is done, a visitor MUST check
result_urlonce right away rather than waiting for its next poll. - A visitor MUST NOT announce that it is knocking, or that a visit is underway, until
statusissigned. - If
statusis notsigned, the visitor SHOULD tell its owner in the first person, in the owner's language, that the tap has not gone through yet, and SHOULD sendresend_urlagain. - When it reports a recorded time, a visitor MUST say it as the place recorded it ("<display_name> recorded your tap at <time>"), in the owner's time zone with a short zone label. If it checked much later, it SHOULD also say when it checked. A recorded time is not "now."
- A visitor SHOULD send one waiting message per tap and MUST NOT repeat "still waiting" until the owner says done or there is a new fact (for example, the link expired).
Compatibility
Doors that do not yet send place or recorded_at keep working. A visitor falls back to the display name in the place listing, and to the latest signed_at on the signed items. If neither is present, it says "the place" and gives no time.
Out of scope
How the owner is woken or how the visitor learns of the tap without polling (see P37). The passkey ceremony itself (SPEC §2.1) is unchanged.