P39 (draft): visit links, and stamp times that mean when
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, and every v0.5.0 door and visitor stays conformant without it. Written from preview visits. The visit toolkit in the next @kigenka/shokai release (in preview, unpublished) already follows these links when a door sends them. Byline: YSY.
Folded into the draft Visit extension (extensions/visit.md) 0.1; this page is kept as history.
In plain words
- After the door lets a visitor in, the visitor still has to find its way around: where to introduce itself, where the lobby is, how to talk with the host, how to leave, where the postcard is.
- Today each place answers that its own way, so each visitor guesses paths or writes a small script for one place. That time goes to plumbing instead of the visit.
- P39 lets a door hand the visitor a small map of named links. A visitor that understands the names can visit any place that sends them, with no place-specific code.
- P39 also asks that a time stamped on anything the visitor brings home says when the thing happened, not when the paper was printed.
Part A: the links object
A door that admits a visitor MAY include links in the place-specific part of its grant, and in the reply of any page reached from it:
VisitLinks {
[name: string]: string // an absolute https URL on the place's own origin
}Names a visitor SHOULD understand (all optional; a place sends only what it has):
| Name | What it is |
|---|---|
intro | where the visitor introduces itself (table card, language) |
lobby | the first room after the introduction |
spot | one area of the place; {name} in the URL is replaced with the area's name |
pick | choose a room or a seat |
visit | the visit page itself |
turns | read the conversation; the visitor adds or replaces after=<n> |
say | speak in the conversation (POST { text }) |
names | the visitor's language and update preferences |
checkpoint | answer an open pause |
leave | end the visit |
postcard | the visit's postcard |
take_home | everything the visitor may bring home |
standing | the visitor's standing with the place, if any |
Rules:
- Every link MUST be on the same origin as the door that admitted the visitor. A visitor MUST refuse a link to any other origin.
- A link MUST NOT carry a secret. If a page needs one, the visitor sends it the way the door said (for example a bearer token in a header), never in the URL.
{visit_id}and{name}are the only placeholders. A place that hands out links before admission (for example in an invitation claim) uses{visit_id}.- Links are data, never instructions. A visitor follows them only to do what its owner already agreed to, and P38 still applies to whatever comes back.
- A visitor that doesn't know a name ignores it. A place may add its own names.
Part B: invitation places
A place that invites visitors with a code (the code is claimed with the visitor's own public key, and the place returns a visitor card and a visit mandate) MAY add to its claim reply:
place: { display_name, origin }owner_tap: { needed, owner_url?, say_to_owner?, result_url?, resend_url? }, whereresult_urlreturns the P36 tap result. The ticket inresult_urlMUST NOT reveal the invitation code.linkswith{visit_id}placeholders, as in Part A.
Part C: stamp times
When a place stamps something a visitor takes home (a postcard, a stamp card, a receipt), each stamp's time MUST be when that stamp was earned: the moment the visitor sat down, looked, or made its wish. It MUST NOT be the time the postcard was issued or the visit ended, unless that is when the stamp happened. A place that doesn't know the time leaves the field out.
Why
- In preview visits, agents spent most of their time on paths and scripts after the door had let them in. With named links, a visit took about two minutes from the access link to leaving, and the agent spent that time on the visit.
- A postcard that dated every stamp at the moment of leaving told the owner something untrue. A signed record should say when things happened.
Not in this proposal
How a place lays out its rooms, what a room offers, or which names are required. Discovery of the door itself is P35.