What's in v0.6.1
Published
Package 0.6.1 is an earlier published npm release. The current published package is 0.7.12. 0.6.1 keeps specification v0.5.0 on the wire (wire tag shokai/0.5). Unlike 0.6.0 it changes the SDK's compiled code: a visitor now protects its owner from a place built to work on it (trap places), and every door needs a domain name and a valid certificate. Install with npm install @kigenka/shokai@0.6.1. Source: github.com/Kigenka/shokai.
A package patch release. The specification stays v0.5.0 on the wire: the wire tag is still shokai/0.5, spec_ref.version is still "0.5.0", and no wire member changes. Like 0.5.1, the package amends the text in place, adds one optional member in a new JSON Schema file (schema/v0.6.1/schema.json; the v0.5.0 and v0.5.1 files are unchanged), and adds MUST-level rules. Unlike 0.6.0, this release changes the SDK's compiled code. A 0.6.0 peer and a 0.6.1 peer keep talking to each other: nothing on the wire changes.
Conformance. Current public conformance wording follows. 31 of 166 Core Door checks measured, all 31 passed, 133 unmeasured. The historical run predates this release. Package 0.6.1 adds two Core Door checks (C311, a door has a domain name, and C312, a door's certificate is valid), so Core Door is now 166 checks, and the run measured neither of the two. Core Visitor goes from 120 to 132 checks (twelve new: C302–C310, C311, C313, C314), 299 checks in all. C302–C310, C313 and C314 are measured in process only, by the SDK's trap-places and trust-layers tests and the offline harness in tools/trap-places/; C311 is measured in process for the SDK's own door and visitor; C312 is a property of how a door is hosted, and no offline test measures it. The official conformance runner measures none of them, and this release claims no certification. A claim for C302–C314 names package 0.6.1 or later.
Specification (text amended in place)
- Visitor safety: trap places (SPEC-DETAIL §12.5, C302–C310; THREAT-MODEL §10; decision D28). The specification so far protected a place from its visitors. This protects a visiting representative, and its owner, from a place built to work on visitors: floods, instructions hidden in what it serves, nudges to the owner's taste, and requests to write to the owner's memory. A representative treats place content as data, curates by the errand and the owner's words, keeps the take-home within a small budget, reads under a size cap, writes nothing to the owner's lasting memory without the owner, leaves a place that floods or pressures, and reports what it kept, what it left and why, and the trap signals it saw. The counts in the report are the representative's own, never the place's (C306). The rules bind only the visitor. They are core, not an extension, because a trap place would simply not ask for an extension.
- The owner is never asked for numbers (C303, C304). The take-home budget is the visitor's own: it derives it from the kind of errand (
errand,visit,research), starting from safe implementation defaults (informative: one item and 1 KiB, five items and 4 KiB, ten items and 8 KiB). The owner's brief can be one sentence or absent, and a visitor with no brief curates by the errand and the mandate and says so in its report. This replaces the earlier draft wording, in which the owner set the budget in the brief; that wording was never in a published version. - Heavy or unusual content asks first (C310). A PDF or document, audio or video, an archive or program, a large download or an attachment is not brought home until the visitor has asked the owner in plain words (what it is, where from, roughly how big, why) and the owner said yes. Before the yes it notes only the name, type and size, and does not open, run or follow anything in it. The content stays untrusted after the yes.
- A door has a domain name and a valid certificate (SPEC-DETAIL §11.1, C311–C314). There are no anonymous doors: a door's addresses name a domain, not an IP address (C311, building on C269's https rule; loopback and the conformance run stay excepted), and it is served with a certificate valid for that domain (C312). A visiting representative checks the certificate, sends nothing when it fails, and has no "continue anyway" (C313). A domain and certificate show who controls the domain, not that the place is honest, so they never relax a visitor-safety rule, and the visitor never calls a place "verified" or "safe" because of them (C314). §12.6 (informative) sets out three layers: the web (domain, certificate, hosting protections), Shōkai (signed sign, cards, limits, visitor safety) and the place (identity proofing a place requires of its own owners, such as a bank's, which the protocol can carry to the owner and does not define; see §5.4).
spec_ref.url(SPEC-DETAIL §3.1). The reference implementation and the SDK puthttps://shokaiprotocol.com/docs/spec-detail, the published text, in everyspec_refthey emit. Before, they emitted a placeholder address (https://shokai.example/spec/v0.5.0) that does not resolve. The member's meaning does not change: it is where the place says it read the text, and no URL is canonical. Signed objects in the golden traces and test vectors that carry the old placeholder are fixtures and stay as they are.- Known limit, said in the text. Ordering can starve a visitor that reads only so much, and the signal detector is heuristic and English-first. The threat model says both.
SDK (@kigenka/shokai 0.6.1)
- A 1 MiB reply cap (C305). The default HTTP transport and the MCP client read a place's reply under a 1 MiB cap and refuse a larger reply whole, with
SHOKAI_PLACE_REPLY_TOO_LARGE. It is never read as a truncated prefix. A place that sends more than 1 MiB in one reply is refused where 0.6.0 would have read it. TakeHome(src/take-home.ts). Needs no brief. Derives the budget from the errand kind (errandKindOf, orbrief.errand), bounds intake, flags trap signals (trapSignals, heuristic, English-first), refuses a memory write without the owner and an act that only place content asked for (SHOKAI_NEEDS_OWNER), asks the owner before heavy content (isHeavy,mayOpen,askAboutHeavy,heavyAnswered), and builds the report'stake_home.visitReport(visit, locale, { takeHome })addstake_hometo the owner's report. The shapes (TakeHomeReport,TrapSignal,KeptItem) are in the protocol shapes, soVisitReporttypes it, and the JSON Schema fileschema/v0.6.1/schema.jsonaccepts it. The 0.5.1 file rejects a report that carries it, becauseVisitReportis closed; validate reports with the 0.6.1 file.- A door has a domain name, and a bad certificate stops a visit (C311, C313).
secureEntryand the door's start-up check refuse anhttpsaddress whose host is an IP address (SHOKAI_DOOR_INSECURE), and the visitor greets none. The default HTTP transport validates certificates as before and now says so in plain words: a failure isSHOKAI_PLACE_CERTIFICATE_INVALID, nothing is sent, and the SDK never turns checking off. A door that started on anhttpsIP address under 0.6.0 will not start under 0.6.1: put it behind a domain name. - What this changes for a 0.6.0 user. Nothing you have to do. A visitor that never passes
takeHomegets the reply cap, the correctedspec_ref.urland the domain-name rule, and nothing else. A door on anhttpsIP address is the one thing that stops working.
Evidence and documentation
- Trap places explains the rules in plain language. The offline harness ran a fictional trap store with 3,001 items, hidden instructions, taste-nudging copy, memory-write asks, a pushed purchase and a reply of about 7 MB against the SDK and a model-driven visitor, on one computer, offline. It is not a certificate. Security and the docs and evidence indexes point to it.
- Release tooling.
tools/schema/schema.mjsalso freezes the released v0.5.1 file. The suite total printed inrelease/release-status.jsonis the 0.6.1 suite.
Documentation carried from the unreleased 0.6.0 follow-ups
These notes describe the earlier Lounge flow. See v0.7.5 above for the release candidate.
No change to the compiled SDK in these items.
- The Shōkai Lounge, as a worked example. A new page, The Shōkai Lounge, puts the whole visit in one place: the invitation, redemption, the door and the named host, the rooms, the $50 pretend gift card, the Tea Counter's MCP tools (
see_menu,hold_order,place_order) behind their own door, one passkey tap per visit, the receipt and the proof of visit, the updates modes and how different agents reach their owners (owner_reach), the English-only rule for fields the door checks in code, the host named through the installer, and the public guestbook that counts visits, not traffic. It ends with what is not built. - The visit-flow diagrams (
docs/diagrams/src/example-shokai-lounge-visit*.mmd, rendered to SVG and PNG) now show the agent asking first, the owner accepting, and redemption issuing a place-signed visitor card and a one-visit mandate. The host is "named by the owner." - The invitation card at the protocol level. Shōkai cards now explains how the invitation relates to SPEC v0.5.0: not a fourth
kind, but the printed face of a single-use invitation that the guest's agent redeems with its own key for a place-signed visitor card and a one-visit mandate. It covers the consent model (the card offers; only the owner accepts), the two ways a guest uses the card, the launch page at shokaiprotocol.com/demo, and the hold window. The card art (host, visitor and invitation, fronts, backs and taken-apart views) and a fictional invitation card are indocs/assets/cards/. - Field tests 12–18. Field tests adds the missing summary row for round 12 and the Lounge rounds of 16–18 November 2026, each with what we saw and the lesson it led to. The Lounge rounds of 13–15 November and the dated Lounge visits record are now in this repository, matching the site.
- Roadmap and known gaps. The roadmap lists the open questions the Lounge raised, all not built: a passkey at acceptance, early revocation of an invitation and the visitor card it issued, linking a card to an account the owner already has (beyond SPEC v0.5.0's
CustomerLink), membership, and an always-on hosted host. - Guest passkeys at the Lounge. Each invited owner makes their own passkey for the invitation on shokaiprotocol.com, and that same passkey gives the one yes at the Tea Counter; the Lounge owner's passkey never signs a guest's order. A guest's owner is named by the first name they type on /demo, or "your owner". See the design note.
- Skills. The visitor skills say what to do with an invitation card (ask first, never invent a code, redeem with your own key) and how the owner's own passkey for the invitation is set up and then used for the one yes at the Lounge. The invitation-setup skill says what the printed card carries and what it does not.
- README. The hero film now sits right below the title, as a poster in this repository that opens the film on shokaiprotocol.com. A pointer to the Lounge follows the quick demo.
- Docs now match the site. Setting up a place, set up your representative, prepare your host, design lessons, known gaps, how it works, the docs index and the evidence index carry the same Lounge lessons as the site.
- Corrections to the v0.6.0 entry below. The card colors are matcha green for the host card and indigo for the visitor card, as in the card art; the entry below has them reversed. And redeeming an invitation is itself how the guest's agent gets a visitor card for that visit, signed by the place; the invitation does not have to travel beside a card the owner signed.
- American spelling in the docs and skills.