Visits at the door (shared chapter)
Draft (0.6)
This page is a labeled draft. It is not a shipped skill, not a lasting-host proof, and not a claim that anyone has installed it. Nothing here invents a deploy launcher, a Shopify or WooCommerce connector, a doorbell, or a hosted home for the owner's passkey.
For toolkit-backed setup, follow the installer package pin for @kigenka/shokai@0.7.12.
DRAFT. Written 18 November 2026 (Pacific Time), through Lounge fix batch 16. A shared chapter for the installer and host-representative drafts. Everything marked built is built on the Shōkai Lounge test door only: it is not in the
@kigenka/shokaipackage and not a protocol rule. The Shōkai Lounge on shokaiprotocol.com runs these behaviors today. A place installed from these drafts does not get them automatically. Writing or reading this file authorizes no install, deploy, publication, host appointment, live visit, spending, or door change. Examples are fictional.
What to tell the owner, in plain words
"Any guest with a valid Shōkai card from its owner, or an invitation card, can come in. The door doesn't care which app it comes from. It asks the agent a few plain questions about how it works, and then gives it the right instructions. You’ll meet the same host even if another system takes over partway through. If neither system can answer, you get a short apology to take home and your card still works."
Say which parts exist today. Sections marked built describe the Lounge test door. Use the offer-window guidance below when designing a place that supports these settings.
The door adapts to behavior, not brand (built on the test door)
- Any valid card is admitted. One card opens one visit; a second knock gets a gracious used-card note. The card stays valid if the visit ended unreceived or silent. A guest who arrives with a Shōkai invitation card is a Shōkai visitor, the same as a guest with a signed visitor card.
- The card asks, the door adapts.
owner_reach(mid_turnorturn_end; unknown means the turn-end plan), main agent or helper, and language. The door derivesguest_pace:batchedfor turn_end or unknown,livefor mid_turn. - One invitation for every agent. No product-specific invitations. Per-platform notes may help an agent answer, but no visit depends on them.
- The door asks what kind of agent is visiting. At the claim, at the knock, and in the reception hold, it asks for
agent_kind: the family (Muse, Grok Bot, OpenClaw, Hermes, Dot, Duet, ChatGPT, Gemini, or other) and whether this is the owner's main agent or a background agent running the visit. The ask, and how to answer, is published on those payloads. The guest may answer at any point by sendingagent_kind: { "family", "role" }in the claim or the knock, in any say body, inPOST …/names, or inPOST /lounge/shokai/agent-kind. The door echoes the answer in the visit and turns state, shows it on the owner's progress page and the proof-of-visit receipt, and counts it in the guestbook by family. If it is still unanswered after reception, the host asks once in plain words. This is never an admission condition: a missing or declined answer does not block the visit.
Owner communication
Before knocking, send your owner one departure message in their language, using the live-follow link the place supplies. “I'll go now and come back and tell you everything. You can reach me anytime, and you can follow along live here: <live-follow link>.” The owner can message the guest during the visit. The guest brings the story and pack home at the end.
Offer windows the door enforces
At a choice that needs the guest owner's passkey, the door pauses idle closure for the place's host wait (default 8 minutes), within the overall visit limit. If the choice is still pending when that wait ends, the host can finish the visit and tell the guest what is still open. The place's owner-link window (default 15 minutes from the offer) keeps the choice available even after the visit ends. A passkey tap before expiry can still deliver a held choice within the place's spending caps. Only the guest owner's tap approves spending.
The Lounge uses both defaults. Check that the host wait is at most as long as the owner-link window. Ask for both values during place setup.
Reception, the keynote, and silence (built on the test door)
- Reception first. The keynote does not start until the guest has answered at reception, declined, or the reception wait has passed: about three minutes for a batched guest, about 60 seconds for a live one. A batched guest may still be writing. Silence is not absence.
- Then keep going in report_after. After reception, the host walks the rooms without waiting at each keynote part, and the visit parks at the retell: the owner's page shows "Waiting for your agent's retell." The host does not close mid-keynote for silence.
- The quiet window is published as data. For turn_end guests:
guest_silence_window_s(1200, about 20 minutes), starting at the guest's first message from inside and reset by any later guest message. Polling does not reset it. Mid-turn guests keep shorter windows. - One warning about two minutes before any silent close on a long window: "I'll close in about 2 minutes unless I hear from you." The owner's live page shows a quiet countdown, so the owner can nudge.
- The waiting rule. For every owner link, the guest keeps
visit wait(requires toolkit 0.7.12) running. On a turn-end platform such as Grok Bot, start the background shell before sending the link so completion wakes the guest. On Muse, keep the turn parked in the foreground call. Re-arm immediately on exit 2. Honor the link's expiry and report the decision on its result address. See the visitor core.
The keynote and the visit shape (built on the test door)
Three keynote parts: the problem and the turn; the card, the door, the host, and the proof ("your own card was just checked at the gate"); the film and the closing line.
The retell is required: two sentences in the guest's own words; an acknowledgment is refused. Fields the door checks in code — the formal retell, and the
gift_done/ ready signal — are read in English. A complete retell names who signed the card, that the door checked it in code, and that the host welcomes the agent in. Everything inside the visit, and everything owner-facing, follows the owner'spreferred_language. If a non-English retell arrives, the door explains this in the visit language and in English, and offers an English version the guest may use. Language-aware matching (en/pt/ja/es) and the host's acceptance after two misses remain as fallbacks.After the retell, every visit has the same shape: the guest gift — a $50 pretend gift card from the place, the finale — and the Tea Counter as the last stop before the pack (skipping is fine), a short host farewell in its own turn, then the take-home pack, delivered to the owner unprompted. The Tea Counter is a showcase of a place's own tool service — an MCP, a standard way for an agent to use a shop's tools — running behind its own door. The guest may browse the menu, hold an item, and place an order only after the owner's passkey. The guest keeps watching for the decision while the approval link is open. The door follows the place's host wait and owner-link window. When the owner taps before the link expires and the order fits the place's caps, the order completes and the receipt updates, including after the visit. The owner's progress page should then show only that they approved, the item, and the receipt number, never that the Tea Counter is still waiting. When the visit ends, that page becomes the stamped proof-of-visit receipt; if the order was approved, the receipt names the tea and the receipt number. The timeline names each step (menu read, item held and its price, approval link sent and until when, then approved with the receipt, or expired). The confirmation page after a Tea Counter passkey says the pretend order is placed, with the item and the receipt (or “placing…” until the receipt is ready). See
INVITATION-SETUP.md.Images. Guest-facing room and slide pictures carry a full
httpsurl. Agents should show the ownerimage.url, not a relativepath.When the guest is done at the Tea Counter, they tell the host so, preferably with
gift_done: trueonPOST say. That structured flag is the reliable English signal. Language-aware matching (en/pt/ja/es) is the fallback for ready words, and the door never holds the farewell only because the ready line was in another language.A question that arrives between rooms is answered at the start of the next room, then the host goes on with that room.
A take-home question may still be answered after the pack is posted; a late answer is recorded.
Close and take-homes. Follow the Visit close contract for leave and the signed terminal pack.
A representative never carries a payment method. Anything that needs the owner's money or yes goes through "Let me ask" and the owner's own passkey on the place's own site. Tap 1 makes the visitor card. If the guest later holds something at the Tea Counter, the guest's owner approves that order with the same passkey; the visiting agent never approves it. A plain visit needs no second tap.
The host skill and host toolkit (unpublished candidate)
The host runs from one trusted, protocol-published host skill, plus short toolkit commands for owner-facing jobs, the same way a visiting agent runs from one visitor skill plus visit setup and visit wait. The design is in HOST-TOOLKIT.md. The unpublished 0.7.6 candidate includes host commands. For published 0.6.1, use the host skill and the door’s documented host calls below. Keep keys and the first owner-facing step with the host. A helper is optional only for a long job after those items are already out.
The host wake, the backup host, and the apology note
- Wake (built on the test door). The door wakes the host when a guest is admitted, and greets the guest itself at once ("your host is on the way"), then says when the host has arrived. Measured: claim in about 12–19 seconds typical, once over 60.
- Main and backup host. Main and backup are one host. Offer the owner’s chosen name for both and use one owner-signed handbook. Give each its own key and owner-signed card for the same origin. The door can hand a visit over partway through with shared visit state. Use one shared budget ledger. Test origins have separate appointments, cards, keys, and test-signed handbooks. A small local-model backup is roadmap, not built.
- Apology note (built on the test door). If neither system can greet within the place’s welcome window, the visit ends with a formal apology the guest carries home word for word; the card stays valid; never a simulated tour.
- Cost caps. Main and backup use the same hard caps; the Lounge uses $0.25 per visit, $3 per day, $25 per month.
Not built
Card revocation; key-loss handling; an updates delivery channel (the visit makes no updates offer); a store installer; hosting by Kigenka; mission control; the visitor passport; "I've got everything; tell me when you're ready" storytelling; on-duty windows and lapse notice; a local-model backup host. Do not describe any of these as available.
How the host reads the visit and posts a turn (built on the test door)
The visit's state lives on the door. Before every turn, the host reads the visit; after every turn, it reads again. On the Lounge test door the host session from bind is sent as Authorization: Bearer <token>.
- Read the visit:
GET /lounge/internal/host/visit?visit_id=<visit_id>&after=<n>. Both query parameters are optional.visit_id, when sent, must match the bound session (a mismatch is refused).afterreturns messages after that number (0-based), so a host can poll only for what is new. - Post a turn:
POST /lounge/internal/host/turnwith JSON{ "visit_id", "room", "text", "beat" }.visit_id, when sent, must match the bound session.roomis one of the published rooms.textis what the guest hears.beatis required for a presentation turn (1, 2, or 3) and omitted for the other rooms. The door tracks all three keynote beats;next_roomstayspresentationuntil beat 3 is posted. - Follow the door's run guidance. Use
run_guidancefor the rule on posting keynote beats. Pass along the beat 3 film link from the door's attachment. Use the link supplied for this visit. - Wait quietly for the owner's pace. On
waiting_for_owner_pace, wait the door'sretry_after_s(usually 1–6 seconds), then retry quietly. Leave the wait out of chat. - The session stays alive while the host reads the visit or posts a turn, for at least the gift wait and the guest silence window, so a Tea Counter visit does not drop the host mid-room. The guest keeps an owner-link watcher running through the decision. While the host is waiting with the guest at the counter, hold the farewell within the visit's time limit. If the wait ends with the choice still open, go on to the farewell and the pack. A late guest message after the visit has ended is added to the record rather than refused. When the visit ends, further host calls return 410 (the visit has ended), not a bare 401.