Appointing the host (signing the card) (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.
By YSY.
For toolkit-backed setup, follow the installer package pin for @kigenka/shokai@0.7.12.
DRAFT — UNPUBLISHED. Written 18 November 2026 (Pacific Time). A shared chapter for the installer and host-representative drafts. Signing the host card is a required setup step and the heart of setting up a place. Writing or reading this file authorizes no install, deploy, publication, host appointment, live visit, spending, or door change. Examples are fictional.
The signed host card is the owner's contract with the appointed host representative. It names who keeps the place, for which door, under which duties, and for how long. Until that card is hung on the door, the door is not open.
What to do, in this order
- Name the main host and ask about backup. Ask the owner what to call the main host, who should cover as backup, and on which system. Offer the owner’s chosen name for both, even if they run on different systems. See Naming the host.
- Draft the handbook with the owner. After naming the hosts, use the place design to write down how they should welcome and guide guests. Use
shokai host handbook buildand show the owner the text withshokai host handbook prompt. Ask the owner to sign the handbook once alongside the shelf. Point both hosts at the same signed handbook and have them check it for the place's origin before loading it. Train your hosts - Prepare a card for each appointed host at that door. The role (the calling name and whose representative this is), the duties, the place, the door address, the relying-party id (
rp_id, the site the owner's passkey is bound to), and a suggested 30-day validity window. The owner can choose longer. Each of these is part of what the owner signs. - The owner reviews and taps their passkey on the place's own site, on their own device. Show them in ordinary words what they are signing. Do not open a signing session while they are away. Signing does not open the door and does not charge anyone. It only approves this host for this door under these rules.
- Hang the signed card on that door — put it in the door's config — and redeploy so the door can present it. A card sitting in a file is not yet in force.
If the role text or the calling name later changes, prepare a new card and wait for a new passkey signature. Do not change only the invitation line or a name in config: the served card and what visitors hear would then disagree.
Use the confirmed name for each appointment. Prepare each card from a house that already carries the name visitors will hear.
Appoint a test host
Ask the owner to confirm a name such as <host> (test). Set up the live appointment and a separate appointment for each test origin. Give the test host a separate test-signed card bound to the test origin. Mark the card test: true. The test host reads the same handbook from a test-signed copy. Keep its identity and keys separate from live. Visit §9
A signed card for each host at each door it serves
Every door needs its own signed card for each host it presents. That includes the main door and any room or shop with its own door.
A card is bound to one place and one entry. A door that is asked to present a card signed for a different place will refuse it: the signature, the dates, and the place do not match. The honest answer in that case is that this door is not open — not that the guest's card failed.
Until a door has its own signed card in force, it should say plainly that it is not open, and why. The host must check that the other door is open before sending a guest there. If it is closed, say so and skip it; do not send the guest to a door that will only refuse them.
A lesson from the Lounge
The Shōkai Lounge has two doors: the Lounge itself, and the Tea Counter, a shop inside the visit with a door of its own. The 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 that door. A visiting agent may browse the menu, hold an item, and place an order only after the owner's passkey.
When the counter was first hung in production, it was given the Lounge's host card. The counter's door rejected that card (SHOKAI_DOOR_CARD_INVALID): the card was valid for the Lounge, not for the Tea Counter. Guests were sent to a door that answered it was not open. The fix is the rule above: give the Tea Counter its own signed card, and have the host check the counter is open before offering the gift. Until that card is in force, the counter honestly says it is not open, and the host skips it.
Setup and protocol
Preparing cards and asking for the owner’s passkey tap are installer steps. 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. See Visit §4 and §6 for the protocol rules.
The place records which system served each visit, reply times, turns and cost when known. The owner can compare main and backup using these internal records. Keep them out of visitor and owner messages and keep secrets out of the records.
For the Visit preview, follow the toolkit quick start, signing guidance, preview preflight and Visit handbook contract.