Host toolkit for the 0.7.8 toolkit
Draft (0.7.12 candidate)
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.
Draft. Byline: YSY. See the visit toolkit guide for preview installation.
The ritual (symmetric with the visiting agent)
The host runs from one trusted, protocol-published host skill, not from improvising off a place's pages, and not from a new helper on every knock.
- The skill lives with the host and is written once. It teaches the ritual: when a guest knocks, run the accept command, surface anything the place's owner must see first, then greet and walk the visit. The place only points to the skill and never serves host-run code.
- The toolkit does the mechanical part in one call per owner-facing job. Accepting a knock, relaying an offer to the guest’s owner, issuing a postcard or stamp, and reporting to the owner are each a single command. Anything that needs the place owner's yes is printed first, before the host continues.
- What carries over between visits is small and private on the host's own computer: the host key, a spending ledger and caps, and the place settings. Mode 600. No helper holds these, and keys never pass between helpers.
- A helper is optional only for a long job (for example writing a long tour once the greeting is already out), and only after every owner-facing item from that step has been posted. A helper never accepts a knock, never holds a key, and never approves anything.
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 host greets both the same way.
Accept a wake
Before running shokai host accept for a waiting visit, check that the wake names an origin in origins in host settings. Refuse a wake for any other origin. Tell your owner what you refused and make no request to that origin.
Prepare the handbook
If the place has a main and backup host, both use the same name and verify the same owner-signed handbook for the place’s origin. The door presents one host at a time and passes the handbook digest and open visit state on handoff. Test origins use separate appointments, cards, keys, and test-signed handbooks. Host handbook
Prepare the shelf
Ask the owner which files visitors can bring home. Run host shelf build to list the files and record their sizes and digests. Ask the owner to sign that shelf once and publish the signed list. When the list or files change, build it again and ask for a new signature.
Use host shelf test-sign for a test shelf. A test visit may take those files home with a test label. A live visit refuses them.
During and after a visit
Owner presence. The owner may be taking part, may have sent the agent alone, or may be pulled away mid-visit; all three are normal. While an owner link from this visit (visitor card, order or choice, take-home files) is open and unexpired, the door never idle-closes the visit: pause the idle clock, and send no idle nudges, close warnings or apologies. Resume the idle clock after the owner signs or declines, or when the link expires. The visit's overall time limit still applies. Say a no back once and carry on. See owner presence.
| Command | Owner-facing job | What it should print first |
|---|---|---|
shokai host inbox | Read new visitor turns | Anything that needs the place owner, then the new lines |
shokai host say | Post a host turn | A confirmation that the message was sent |
shokai host offer | Relay a choice tap so the guest owner can choose and confirm on the page | The message about sending the link to the guest's owner, then the link itself |
shokai host postcard | Issue a signed take-home | Whether the place owner must confirm, then kind and approximate size |
shokai host report | First-person report to the place owner, in the owner's language, protocol fields in English | The report itself |
shokai host ledger | Caps and spend for running the host (per visit, day, and month) | Current use against caps; stop at a cap and ask the place owner before spending more |