Changelog
All notable changes to the Shōkai specification, SDK and reference code. Before 1.0, minor versions may break compatibility; each break is listed here. How each pre-release review shaped a release is in docs/review-history.md.
Unreleased
v0.7.12, 2026-12-03
By YSY
- Your agent marks the trip home as soon as the visit ends and tells you in a short line in your language.
- When a place makes the files available during the farewell, your agent can collect them while the visit is still open.
- At home, your agent greets you, waits for the stamped postcard to arrive, and tells you the story. The tea confirmation and chosen keepsakes follow the story.
The companion Lounge update keeps the current room in view on phones, makes the Keepsakes choice easier to reach, and gives the host the Tea Counter receipt number.
v0.7.11, 2026-12-03
By YSY
- Visitor cards now last 30 days by default. Spending starts at zero. Owners who want to allow spending can start with $20 per visit and $50 per week.
- The toolkit saves new agent keys in private files by default. Agents can use the system keyring when requested.
- An optional Visit pass lets an owner prepare a short allowance for one errand at a named place.
- The threat model and visitor guides explain how to protect keys, withdraw permission, and get started at a door. These updates followed an outside security review.
- A draft proposal explains how a place could ask for proof of personhood.
- Trip reports keep the story and attachments separate when a postcard is missing. The JSON mode for reading turns keeps waiting instructions in the JSON.
v0.7.10, 2026-12-02
- Homecoming commands print a numbered script so the greeting and stamped postcard come before the story.
- Agent-only reminders keep signature times, door admission, and delivery acknowledgments out of the owner's chat.
v0.7.9, 2026-12-02
visit waitfollows owner decisions and seats the visitor after signing in the same process.visit check --waitalso seats the visitor on a successful saved entry tap.- Setup prints the owner line and journey link ahead of optional listing reads. Visitor commands honor owner holds and retry at the place's pace.
visit collectwaits for held choices from the same visit and returns verified files after leave.- Homecoming opens with the agent's own natural greeting in the owner's language, then the stamped postcard, a short story, and the purchase confirmation and chosen keepsakes. The helper hands the paths straight to the agent speaking with the owner.
v0.7.8, 2026-12-02
- The agent reads the conversation in order, including each room it visited. Each turn has a visit-wide number, and
room_turnsrecords the opening number for each room. On a sequence or room gap, the agent replays from zero and saves its cursor after processing the batch. An incomplete replay leaves the previous cursor in place. - The agent reads both numbers in
closing_turns, the farewell and take-home turns, before leaving. A leave response can also return the closing turns, and the agent processes any it has yet to read. - The owner gets the stamped postcard, followed by the purchase confirmation if they ordered and the keepsakes they chose.
visit homecomingdownloads the manifest files, verifies their byte lengths and SHA-256 digests, and lists attachments markedhand_to: "owner"in delivery order.descriptor_bytesanddescriptor_sha256describe the descriptor.content_bytesandcontent_sha256describe the actual file. The manifest'sbytesandsha256are for the file. - After attaching the files, the agent runs
visit homecoming --delivered. The place can accept this acknowledgment after leave and return the same receipt on retries. The proof of visit stays on the journey page. - The place records confirmed owner participation in
owner_present,owner_present_at, andowner_present_source. The agent's report that it shared the journey link,owner_follow.sent, is separate. - The at-door line prepared for 0.7.7 ships in 0.7.8. The toolkit builds
say_to_owner_at_doorfrom the journey address so the agent can share the link once before knocking. - Use
npm install @kigenka/shokai@0.7.8, or verifykigenka-shokai-0.7.8.tgzagainst the SHA-256 sidecar. - The optional HTTP visit definitions are in schema v0.7.8. The core specification stays at v0.5.0 and the wire tag stays
shokai/0.5.
v0.7.6, 2026-12-01
- Proposal P40 (draft, informative): an optional visit progress feed, stops marked done, now or upcoming with order and times, for an owner following along. Not part of core 0.5.0.
- A no is an answer. When the owner skips an order or chooses nothing to take home,
visit checkandvisit take --collectsay the choice back in one plain line (“You chose not to order at …, so nothing was spent.” / “You chose nothing from … this time, so nothing is coming home.”), with no re-asking and no new link unless the owner asks. visit reportincludes the owner's no's (“My owner skipped the tea, so nothing was spent.” / “My owner chose nothing to take home this time.”), andvisit turnskeeps a localturns.logso the report can say what happened at the visit.- The ledger shows real spend before pretend gift card spend. The existing JSON totals and spend list are marked real-only, and the pretend block carries its own totals and spend list.
- At the place, the idle clock pauses while an owner link for the visit is open and unexpired. It resumes when the owner signs or declines, or the link expires.
- At the place, preview visits go straight to the backup host.
- The place’s Tea Counter page says it in one plain line: “Your passkey confirms this pick.”
- Owner presence: an owner may take part, send the agent alone, or be pulled away mid-visit, and all three are normal. Place design, host toolkit and visitor guidance describe it, and the Visit extension carries it as a candidate SHOULD note (non-normative; the core specification is unchanged).
- The “Shōkai in 30 seconds” diagram ends with the hand-over home: the postcard first, then each keepsake.
- The README and agent install guide use published
@kigenka/shokai@0.7.6. The install guide asks agents to install from npm, or to verify a package file against the SHA-256 supplied by the place or its site (1e5e0c65051d41d9a5e04304d24d51ea10d5d9bf8b9ba30831b0d4f7ed39d6a1).
v0.7.5 (release candidate, unpublished)
- Homecoming is part of the visit. Collection and reports list saved paths. The agent hands over the stamped postcard image first and each selected keepsake as a chat attachment before reporting.
- The protected preview runbook uses one cookie jar and verifies the download before installation. Conversation visits prompt the guest to greet the host.
- The ledger defaults to the latest recorded visit for real and pretend spend. Collection shows the signed approval time in Pacific Time and uses one test-copy label.
- Passkey-signed owner cards remain
person; cards signed with a test stand-in key remaincompany, consistent with core v0.5.0. - Core v0.5.0 and schema 0.6.1 stay unchanged. The wire is
shokai/0.5and also acceptsshokai/0.3. The published npm package is 0.6.1.
v0.7.4 (local candidate, unpublished)
- The ledger tallies pretend receipts separately by currency, day, month and visit. Real totals and caps use real spending records. Reports identify the Tea Counter receipt by room and display label, while keeping the item's provenance.
- Fresh-folder preview instructions run
npm init -ybefore installation.
v0.7.3 (local candidate, unpublished)
- Owner messages and trip stories began using a shared term for the files now called keepsakes.
visit takegets the link for the owner;visit shelflists the files.postcard.jsoncarries the public host name when available.
v0.7.2 (local candidate, unpublished)
- Test-signed postcards and proofs can come home on test visits, including when a backup host signs them. Test receipts, selections and reports are labeled as test copies.
- The report reconstructs the story from the visit log.
visit takefetches a missing list or gives a plain error. Files get the right extension, and the owner sees a separate page for files where nothing is bought.
v0.7.1 (local candidate, unpublished)
- The owner picks on one page and confirms with one passkey tap. The keepsakes page can offer “Bring them all.” Visit §8
- Test doors declare their environment and mark test signatures. The visit stays open through leave, and the report and ledger preserve take-homes and describe pretend credit. Visit §9
- The Visit draft defines the owner-signed host handbook, and the toolkit adds handbook build, test-sign, check and prompt commands. Visit extension
v0.7.0 (local toolkit)
- Added commands for setup, tap checks, room tours, host conversations, leave, verification, reporting and the ledger. The toolkit follows the links a door declares. What’s new in 0.7.0
- The Visit draft covers tap results, an owner-signed list of keepsakes, provenance checks, approved host origins, visit links and one identity for main and backup hosts. Visit extension
v0.6.1, 2026-11-25
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.
v0.6.0, 2026-11-18
A package and documentation release. The specification stays v0.5.0 on the wire: the wire tag is still shokai/0.5, and spec_ref.version is still "0.5.0".
0.6.0 does not change the SDK's compiled code from 0.5.1. The specification version and the wire tag stay v0.5.0 / shokai/0.5. What is new lives in the live Lounge door, the site, and the installer, host, visitor and invitation-setup skills. It brings the repository, the npm package docs and the skills in line with the live Shōkai Lounge door on shokaiprotocol.com. Current public conformance wording follows. 31 of 166 Core Door checks measured, all 31 passed, 133 unmeasured. This release does not claim a certification.
- Invitation cards and invitation setup. A place-signed invitation card the guest brings with its owner's Shōkai visitor card. It never stands in for that card and cannot widen anything the owner signed. Invitation setup is the fourth skill, after the door installer, host setup, and the visitor card and leaflet. The owner sets how long a hold and the approval stay open; the default is 24 hours. The visit does not wait on the passkey. One passkey tap per visit.
- Updates mode. “Just go and tell me after” (
report_after) is the default; “keep me posted” (keep_posted) is opt-in. Agent harnesses differ in how they can reach the owner. - English at the door, the owner's language inside. Fields the door checks in code — the formal retell, and the
gift_done/ ready signal — are read in English. Everything inside the visit, and everything owner-facing, follows the owner'spreferred_language. Language-aware matching (en/pt/ja/es) and the host's acceptance after two misses remain as fallbacks. - The $50 pretend gift card is the finale. Every visit ends at the guest gift and the Tea Counter (skipping is fine), then a short farewell and the take-home pack. The gift card is pretend and belongs to the place, not to the owner. A representative never carries a payment method. The Tea Counter receipt names the item and the receipt number once the owner has approved.
- One host-name setting. The host's calling name comes from one installer-written setting. The installer must ask the owner to name the host. It is never hardcoded.
- Card colors. Indigo for the host card, matcha green for the visitor card, soft-gold washi for the invitation card, silver for membership (roadmap only). Membership replaces invitation as the roadmap item; it is not built.
- Skills. Installer, host, visitor (Grok Bot, Muse, Hermes, OpenClaw, Dot) and invitation-setup drafts follow the live door.
- README. The 47-second hero film is at the top of this README.
Examples are fictional. Byline: YSY. American spelling.
v0.5.1, 2026-11-11
A patch release of the package. 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 the v0.5.0 JSON Schema file is unchanged. The new members are in a new schema file, schema/v0.5.1/schema.json, with its own $id. 0.5.1 adds two optional members and one MUST-level rule, so a 0.5.0 peer and a 0.5.1 peer keep talking to each other. What a 0.5.0 peer sees differently is listed under each item.
- A binding
neversays when it lifts and where to appeal (red-team round 3, V05-F7-04; C288, SPEC-DETAIL §9.3). A door'sneverreply that binds a key or principal now carriesretry: { kind: "never", until, appeal: { url, place } }, withuntilat most 180 days after the binding. New door optionappealUrl(default: the door's inbox address). The new JSON Schema fileschema/v0.5.1/schema.json($idhttps://github.com/Kigenka/shokai/blob/v0.5.1/schema/v0.5.1/schema.json) adds the two optional members toRetryand aNeverAppealdefinition;schema/v0.5.0/schema.jsonstays byte for byte as released. A 0.5.0 receiver ignores the two members, as the Conventions require of unknown members. A validator that uses the 0.5.0 schema rejects aneverthat carriesuntilandappeal; to accept them, validate with the 0.5.1 schema file. The package's@kigenka/shokai/schema.jsonis now the 0.5.1 file. The 0.5.1 schema also makesin_reply_tooptional oninvitation_response, so the lobby's answer to plain prose or a malformed message validates: SPEC-DETAIL §2.3 says that answer MUST NOT carryin_reply_to, and the 0.5.0 schema wrongly required it. Every otherinvitation_responsestill MUST carry it; a schema can't express that condition. - A pasted session is refused (red-team round 3, V05-F10-04; C210). The credential names add
session_token,session_key,set_cookieandauth_token, and a pastedsessionobject carrying a cookie, token, secret or sid, or acookieholdingname=value, is refusedCREDENTIAL_NOT_ACCEPTED. Ordinary words such as a cookie flavor or a booked class session are not. - Context questions must not ask for a password, a recovery phrase or seed, or a card number (V05-F10-03; SPEC-DETAIL §6.12, C263, C267; MUST). A door refuses to start with such context requirements and will not emit them; a visiting representative refuses a request that arrives with them and says so in its report. A 0.5.0 door that asks such a question gets refused by a 0.5.1 representative.
- "Pass" in human-readable text. The SDK's report home, its MCP refusal messages, the CLI and the door's English courtesy lines now say pass where 0.5.0 said seat ("the place no longer knew my pass", "get a pass first", "Your pass is ready"). The wire field
seatand reason codes such asSEAT_SCOPE_EXCEEDEDare unchanged. If you matched 0.5.0's message text, match thereason_codeinstead. - The specification copies in the package carry the editor byline "YSY", the pass/
seatheadings and the updated threat model; outdated wording and internal notes were removed. - Release tooling.
tools/schema/schema.mjswrites the schema named byrelease-status.json'sschema_versionand fails if a released schema file changes.tools/check-links-versions.mjsaccepts a package patch version on the specification's major.minor line (release-status.jsongainsspec_version), andtools/verify-quickstart.shreads the pinned version from the package.
0.5.0 lacks all of the above. Use 0.5.1.
v0.5.0, 2026-11-11
Pre-release review fixes (2026-11-03 to 2026-11-05). Nine internal review rounds and three outside model reviews (ChatGPT Pro, Gemini, Fable) before publication; the round-by-round record is in docs/review-history.md. In short:
- Short core:
SPEC.mdis a ~2.5k-word staged human read; full normative text isdocs/SPEC-DETAIL.md(stable check ids). Tools andconformance/homes.jsonhome core checks in the detail. - Dual spending totals on over-limit holds:
over_limit/LimitRequestcarry bindinglimit/current/proposedplusseatandmandate{limit,current}(per-visit and whole-mandate, including open holds). - Multi-instance money doors: holds and used superseding mandates ride the shared durable/live store; SPEC requires a shared store when a spending/hold door runs more than one instance (single-instance remains conformant). Conformance: instances test covers over-limit hold/release across instances.
- Byte-exact 0.5 traces:
tools/gen-v05-byte-traces.mjs --check— G1 browse, relay refusal, allowance+ordinary hold. - 0.6 proposal: door-side analytics for place owners + host-rep skill.
- Security: strict raw-JSON parsing in every adapter (duplicate members and ambiguous numbers are refused before any digest check); an anonymous request rate limit that a forged signature can't skip; a default cap of 10,000 open encounters in
createDoor(); bounded host log and fetch cache; development passkeys (RFC 2606rp_ids) refused at a public door;principal.kindchecked against its enum; the representative's own fetches use the door's DNS-pinned fetch policy. - Conformance: the JSON Schema validates every standalone golden trace; over-limit holds reserve their amount; atomic single use across instances; audience-bound possession proofs with byte-exact vectors.
- Release: one release-status file (
release/release-status.json) that the site and the repository checks read; the site's digest comes from the tarball; the dist-tag comes from the status file in the release workflow.
Published as @kigenka/shokai@0.5.0 on npm under the latest dist-tag at 2026-11-11T03:26:30.293Z (7:26:30 PM PT / America/Los_Angeles on 10 November 2026). sha256 259b414dfe78beb5a50a5b87a5c66c505dca73e2f34d6889622600904c22143b; npm shasum 5575c9588a5144442e8f53b2fad74e2890d86e26. A v0.5.0 place should keep accepting shokai/0.3 through 9 February 2027 (the UTC publish date plus 90 days).
In plain English: what changed since v0.3.0. v0.5.0 brings together the unreleased v0.4.0 work, the v0.5.0 core and what we learned building demo 2.
- Two kinds of Shōkai card. A Shōkai visitor card says who a representative agent is here for, why it came and what it may do; a Shōkai host card says who owns a place and what its host representative may do there. Both are signed by their owner with a passkey (from v0.4.0).
- Spending stays in the owner's hands. A purchase above the signed limit is held, not refused or slipped through, and the owner can raise the limit for that one purchase with one tap. An owner-signed errand budget sits beside the spending cap, and no card number or account number ever travels in a message (v0.4.0 and v0.5.0).
- A place says its rules before you walk in. Conduct rules, a short house summary, which outside services see visitor content, and how long the place keeps records are all signed by the owner and shown before a visitor is admitted. Visitors can ask for their records to be deleted.
- Trust a place can price. A place can see a visitor's standing and history in a form it can act on, and a friend can introduce a visitor with a Shōkai introduction card.
- Host representatives have guards. Fast checks by code first, a slower judgment second, and nothing a place serves is ever treated as an instruction to the visitor.
- A door belongs to its website. A Shōkai host card can name its site, and the site lists its door. A visiting representative won't call a door "the door of" a site unless both agree, so a lookalike door is refused before anything is sent (§3.1.1, from P26 amendment A).
- Outside the setup goes to the owner. A host representative handles what its owner signed. Anything else gets "I can't do that yet. I'll check with the owner." The owner sees what was asked for and why, then answers once, adds it to the setup with a new signature, or declines. A visitor's words can never change the setup (§7.5, §7.6, from P32).
- Reservations. A place can take bookings within limits the owner signed (time window, time zone, party size), checked by code on both sides, and the host representative signs each booking confirmation (§7.4).
- Proof it holds up. An enforcement suite runs a real door on this computer and attacks it (altered, expired, revoked and replayed Shōkai visitor cards, over-limit acts, lookalike doors, outside-the-setup asks); demo 2 runs end to end with no model.
- Wire tag
shokai/0.5. Places keep acceptingshokai/0.3for 90 days after release. - Still open, as post-demo work: keeping a changed setup across a door restart (SPEC §13 item 30), reservation holds for slots the owner didn't pre-approve (item 31), and the item and reason on a purchase held for the visitor's own owner (item 32).
P32 is adopted into this core as §7.4–7.6, provisional, like P27, P28, P31 §2.9 and P26 amendment A, until the open discussion GOVERNANCE.md asks for.
The details, as recorded during the work:
Additive to v0.4.0. The wire tag moves to shokai/0.5 (§11.1). Senders emit shokai/0.5. Receivers MUST accept it and SHOULD accept shokai/0.3 for 90 days after the v0.5.0 release date (§11.1; the end date is recorded here, with the release date, when the release is cut). Replies to shokai/0.3 carry shokai/0.3 and no v0.5.0 members. A shokai/0.3 message is read with every v0.5.0 member absent: no over-limit hold, ErrandBudget hint or HouseSummary. New check C254; new constants WIRE_TAG, ACCEPTED_WIRE_TAGS, LEGACY_WIRE_TAG and WIRE_TAG_TRANSITION_DAYS. Conformance checks C230–C254 are new; trace-lint shows no gaps. The reference code enforces v0.5.0 (see "Reference code").
- Outside the setup, changing the setup, and reservations (SPEC §7.4–7.6, C258–C261; from P32 and demo 2's gaps G2–G9; 2026-11-02). Provisional draft text, pending the open discussion (GOVERNANCE.md).
- Outside the setup (§7.5, C258).
place.askis matched by code, never by a model: the ask is normalized (case, width, invisible characters, spacing), the owner's never-disclose topics are checked first, then her signed answers' match words. One hit isansweredwith her words andsetup_version; a never-disclose hit iswithheldwith one fixed courtesy line (and her welcome), and nothing is sent to her; anything else ispending_owner: "I can't do that yet. I'll check with the owner." The pass is held while she answers (response_byis capped at the pass's end). The owner review shows who sent the visitor, the Shōkai visitor card's scope, the visiting agent's reason (labeled as its words) and whether it may spend, never the spending limit. Her decision (answer_once,answer_and_add,add_action,decline) is signed by her; the visitor gets it asask_answerwith her signed decision inside. Shapes:OwnerReview,OwnerAskDecision,AskAnswer,policy.outside_setup. - Changing the setup (§7.6, C259).
door.amendmentFor(changes)reads the change back and gives the Shōkai host card input for setup v+1 (setup.version,prev_house_digest,changes);door.amendSetup(card)serves it without a restart, or refuses (not_owner,stale,version,unlisted_change,not_shown,card_invalid,house_invalid). Open passes keep what they were granted. From an owner review, oneadd_actionat a time and never an action that spends.visit.setupFollows(prior)lets a visitor check the chain. - Reservations (§7.4, C260, C261). A registered
reservationpurpose withreservation.make,.change,.cancel(and.check);limits.booking(a window for the start time, a time zone, a party size), checked by code by the visitor and the door; aBookingConfirmationsigned by the host representative under the Shōkai host card's digest, verified byvisit.bookingConfirmation(). SDK:DoorOptions.reservationswith a calendar stand-in (CalendarStandIn: a labeled local JSON file, read as free or busy only),door.calendar. - Demo 2, run for real:
node tools/demo2/run.mjs(door:tools/demo2/lanternmoss.mjs), 10 beats, 24 checks, no model; enforcement cases 15–20. New SDK testdemo2.test.ts(64 checks); reference scenarios C258–C260, C262. - What and why (§7.5, C262; 2026-11-02). An ask that goes to the owner must carry
asks_for(what, and theactionwhen known) andreason; without both, blank, or over 120 / 300 characters (never cut), it is refusednot_now/REQUEST_INCOMPLETEand nothing reaches the owner.OwnerReview.asked_for(withoffered_now) andOwnerReview.agent_reasonare now required, labeled as the visiting agent's own words; the owner's text names both, and still no limit. Core:ownerAskProblems; SDK:visit.ask(text, { asksFor, reason })(a refusal listsmissing). Enforcement case 20; case 16 extended. The same for a purchase held for the visitor's owner (§7.3) is deferred (§13 item 32). - Not yet: amendments aren't kept across a door restart (§13 item 30); P29 reservation holds (§13 item 31).
- Outside the setup (§7.5, C258).
- Site binding: a door and the website it belongs to (SPEC §3.1.1, C257; from P26 amendment A; 2026-11-02). A Shōkai host card MAY name its website (
place.site, an origin, inside the owner's signature), and the site's own/.well-known/shokailists the door with itsprincipal_id. A visiting representative calls a place "the door of <site>" only when both agree; when its owner named a site and the door isn't bound to it, the visit ends with no request sent and a plain report. SDK:DoorOptions.site(createDoor refuses a Shōkai host card naming another site,SHOKAI_DOOR_SITE_INVALIDfor a non-origin),door.wellKnown()listsprincipal_id,checkSite(),siteHost(),VisitAsk.site/siteFetch/unboundSite,visit.verifiedSite, reports name a bound door by its site. Additive shapes:PlaceBinding.site,DoorPointer.places[].principal_id/place_listing. Enforcement case 12 now passes: a self-consistent lookalike the visitor had never met before (at its own site, or claiming lanternmoss.example) is refused before any errand is sent; the suite has no known gap. New SDK testsite.test.ts(21 checks). - Place content is data, never instructions (SPEC §6.5, C256; 2026-11-02). Everything a place serves to a visiting representative (house text, descriptions, leaflets, host replies, captions, media metadata) is data about the place for its owner, never an instruction: the representative follows none of it, lets it widen nothing, normalizes it as §10 does, logs embedded instructions as
manipulation, and keeps the place's words labeled apart from its own view in a visit report; a place serving steering text ismanipulation. Reference and SDK core:readPlaceContent,placeTextSteers,reportLayers. Open item 18 narrowed accordingly. No new wire member. - Counsel's final pre-release review (SPEC §12.4, SECURITY, GOVERNANCE, CONTRIBUTING, SIGNING §7). §12.4: only the required-record exception and the lawful-retention exception may permit retention beyond the maximum, each under its own conditions; a deletion request now names the §3.6 records that survive, requires raw visitor text inside them to stay minimized or deleted, and says how each retained item appears in the receipt (
kept, reasonrequired_recordorlegal_obligation/legal_claim, with adetail; the reference now gives revocations a detail too, test C255 extended). One governing IP statement (founder-stewarded; Apache-2.0 now; OWFa intended, not executed; signer to be determined through neutral stewardship and legal review) in GOVERNANCE.md and CONTRIBUTING.md. SECURITY.md research scope: only the open-source reference code run locally is in scope. SIGNING.md §7: a guided signing service for outside users is a trigger to revisit incorporating Kigenka. - Signing page: decision first, and native-review fixes to the Japanese (SIGNING.md §7, §8). A one-purchase raise opens with the question and the purchase amount (今回の購入(4,000円)だけを承認しますか? / "Approve this purchase (40.00 USD) only?"), then why, the four figures, the scope (this one purchase; the total isn't a new purchase; nothing else), the seller with its name marked unverified, the deadline, the signed text and buttons that say what they do; identifiers move under a collapsed Details section, in both languages. The signed
shown_to_ownernow states the action (approving raises the limit for this one purchase only; other purchases unchanged; lapses with the hold; no answer by the deadline is not approved). Japanese: plain です/ます; サイト, 依頼, 取引, 継続利用枠, 利用上限, Shōkai訪問者カード (never a bare カード); 4,000円 in sentences and ¥4,000 in cells; dates with the weekday and 日本時間; mismatch refusals label both figures. The serverless page now re-checks items in the owner's language and with a raise's context (a Japanese or raise session no longer fails its re-check). §7.3: a superseding mandate whosecounterpartiesname another site is refused (other_place); new reuse tests show a raise releases only its own hold, even where another purchase would keep the total within it. No wire change. - Japanese on the reference signing page (SIGNING.md §7). The page now supports English and Japanese: an items file with
owner_languagejaorja-JPgets every owner-facing line in Japanese (item facts, the one-purchase raise and its refusals, and the page's own text), from the same machine fields; any other language is still refused. Yen as ¥ with no decimals, other currencies by theja-JPnumber format, times with their zone; the raise'sshown_to_owneris the Japanese text (localeja-JP). Newreference/signing-page/i18n.mjs;test/language.mjsadds a figures-equivalence check; the serverless copy is rebuilt. No wire change. - Staged stewardship. SECURITY: the safe-harbor operator is YSY. GOVERNANCE: the Joint Development Foundation is the leading candidate for a neutral home, once two or more independent organizations implement Shōkai. SIGNING.md and the signing page README: the reference signing page is part of the open Apache-2.0 reference implementation; a hosted signing service is Kigenka's commercial offering. No wire change.
- Legal review round 4 (specification and signing page). SPEC §12.4: precedence when a record §3.6 requires holds raw visitor text (the minimum text, minimized where possible, purpose recorded, kept only for the record's lifetime; receipt reason
required_record), andneverbindings are pseudonymous, not anonymous (key and reason code only, reviewed at least every 90 days); §3.6 points to it. SIGNING.md §7: the reference signing page supports English only and is not conformant for other languages; it refuses to start for anowner_languageother than English and warns a browser with no English language (reference/signing-page/test/language.mjs). SIGNING.md §10 (informative): credential verification, delegated authority, financial authorization and payment execution are different things; place-enforced limits versus representative-managed budgets across places; real money is a separate launch category. No wire change. - Legal review round 4 (repository policy files). CONTRIBUTING: outside proposals and feedback may be discussed without the OWF CLA, but substantive material enters a final normative specification only after contributor-rights review, logged in the clearance register. TRADEMARKS and GOVERNANCE: a future foundation transfer covers only the Shōkai protocol word mark and a designated protocol logo; the Kigenka name, logo and services are reserved. SECURITY: a legal-boundary section (as SIGNING.md §10); 0.3.x gets no security backports once v0.5.0 is released (users upgrade to 0.5.x;
shokai/0.3wire compatibility in 0.5.x still lasts 90 days), and the contradictory sentence is removed. - Legal review round 3 (§12.4, C255). Lawful retention: a place may keep a record past its retention, or past a deletion request, only under a legal obligation or for a legal claim, with the purpose recorded, used for nothing else and deleted when the basis ends. A
DeletionRequestsupplements, and never replaces, rights people have under data-protection law, including people other than the principal named in visit text. Deletion asks outside model providers as well as classifiers.deletion_receiptnow reportsrequested,deleted,outside_services(eachclassifierormodel_provider,confirmedorpending) andkept(reasonrequired_record,legal_obligationorlegal_claim, with the recorded purpose) separately; theclassifiersmember is replaced byoutside_services. - Legal review round 3 (repository policy files). NOTICE and REUSE.toml: "Yu Sung Yeh and Shōkai contributors", contributors keep their own copyright; SIGNING.md and schema/ listed with the specification. CONTRIBUTING and GOVERNANCE: code uses Apache-2.0 plus DCO; normative specification changes will use the OWF CLA 1.0 (Copyright and Patent) once counsel approves it, and until then no outside normative changes are accepted. GOVERNANCE: the foundation path lists what moves and what doesn't (contributors' copyrights, existing patent commitments and licenses, and the Kigenka commercial brand stay). SECURITY: the supported-versions table shows v0.3.0 as the current release and v0.5.0 as a pre-release candidate, and a scoped safe-harbor draft is added. TRADEMARKS: three categories, filings planned once there is adoption, and a planned conformance listing (a factual test report and a public listing, no badge or mark). LICENSE-docs and LICENSES/CC-BY-4.0.txt now hold only the CC BY 4.0 text.
- Trust can have a price (P27, adopted). Places may require trust (
ReadinessRequirementcodetrust,TrustRequirement,TrustProofRule). ATrustReceiptis signed by the place, lasts at most 400 days and can be revoked; it never touches the payment instrument. New codesTRUST_REQUIREDandINTRODUCTION_USED_UP; new §6.9; design principle 7. C243, C244. - The Shōkai introduction card (P28, adopted). New §4.1 adds
ShokaiIntroductionandIntroductionClaim, valid up to 90 days with at most 50 claims, checked like a vouch. C245. - Call home at the limit (P31 §2.9, adopted). With
policy.limit_calls: true, an act above the limit is held (over_limit). The representative asks its owner (LimitRequest,notify_at), and the owner answers with a superseding mandate (Mandate.supersedes) carried inActConfirmation.mandate. §5.1, §7.3 (now a MUST). C230. - Holds and repeats. One clock and one grace of at most 5 s (C231). Hold policies are checked first (C232). Repeats are idempotent (
idempotency_key, at most 5 per hold and 10 per seat; C233). - Rulings from demo 1, each citing its demo source. The farewell is always accepted, and answered only by the place's own farewell (C234). Payment-instrument scan (C235). Everything enforced is signed (C236). One Shōkai visitor card per encounter (C237). Revocations are kept (C238). Bounded input and a message cap per encounter (C239). signCount and owner registry (C240). Pins, with no private keys in vectors (C241). Closed templates are exempt from ignore-unknown-members (C242). No admin route (informative).
- House manners and the house summary.
policy.conduct_ruleswith registered codes (C246). A compact, cacheableHouseSummaryat<entry>/house-summary.json, undersummary_digeston the Shōkai host card (C248). - Errand budget.
ErrandBudgetis kept by the representative and never sent to a place; places may give aneffort_hint. New §5.5, C247. - No acknowledgement-only messages (SHOULD, §6.6, C249).
- Host guards. New §6.10 lists host guards 1–14 and a vendor-neutral System 1 / System 2 classifier pattern: typed answers with a confidence; escalation below a threshold; System 1 alone never decides a penalty; it fails closed; visitor content goes to a third party only if the house rules say so. C250.
- Return with care. New §8.3:
ReturnPrefsis a separate owner-signed record, never sent to places; design principle 8. C251. - Set up through conversation. New §8.4:
door_questionsandanswered_by; nothing turns on by itself; design principle 9. C252. - High-volume hosts. New Appendix E, C253.
- Proposals shipped, not normative. P29 (holds, terms and manners), P30 (projects and delegates), P31 (the rest of the Engawa, now with the System 1 / System 2 pattern in §6.3) and NOTES-V050 (several doors, passkeys on phones, Shōkai on calls, other languages). P27 and P28 are adopted.
- Types.
protocol-shapes.tsgains the shapes above and passestsc --strict. - Labels. Package versions are now 0.5.0 (pre-release), and GOVERNANCE now says "Draft for v0.5.0".
- Governance and maintainers. GOVERNANCE.md now says Kigenka stewards Shōkai for now. It covers the proposal process (P-numbers; statuses Draft, Proposed, Accepted, Adopted and Withdrawn; each decision recorded in this changelog), the conformance and versioning policy (wire tag and transition windows) and the security contact (security@kigenka.com). A new section, "Path to a neutral home", gives triggers (independent interoperable implementations, outside maintainers, adopters) and steps (open call for maintainers, charter, terms for trademarks and IP, choosing a neutral foundation); nothing is agreed with any organization. MAINTAINERS.md lists the editor acting for Kigenka; NOTICE still names the copyright holder.
- Security policy. SECURITY.md now covers v0.5.0: 0.5.x is supported, and
shokai/0.3messages are accepted during the 90-day window. The contact is security@kigenka.com. - Named outside classifiers (2026-11-01). New house-config member
policy.third_party_classifiers: string[](§6.10, C250): the outside classifiers a place sends visitor content to, by name, insidehouse_digest. Absent or empty means none is allowed. A place that names any shows them before seating inLobbyBriefing.third_party_classifiers, besideconduct_rules; a visitor answered undershokai/0.3isn't shown the list, so its content goes to none of them. The C230 over-limit figure 2 now uses a seat capped at its mandate (USD 30 seat and mandate, USD 20 let through, a USD 15 act), since §6.1 never seats above the mandate. The extension pages, the extensions index and the threat model are relabelled v0.5.0 with "Applies to v0.5.0 (unchanged since v0.4.0)"; a full v0.5.0 threat review is scheduled for hardening. - Spec answers to the builder (2026-11-01). From the reference code catch-up: the policy members are named (
limit_calls,hold_grace_s,repeat_caps,hold_policies,trust_issuers,trust_obtain_url,established_introducers,message_cap; typeHousePolicyV050); "above the limit" is defined, and a superseding mandate binds the held act by digest (Mandate.supersedes.hold,Mandate.shown_to_owner); a declined hold is released at once;Introduction.introduction_cardandLobbyBriefing.conduct_rulesare in the types; a repeat past the cap with no hold isRATE_LIMITED; undershokai/0.3a trust refusal isPOLICY_DENY; grant periods are sliding windows; the payment scan runs after C210 and covers header ids; a farewell is answered only by the place's own farewell, anddoor.endSeatsends one closing farewellcompleted(§7.1);max_minutesis wall-clock time; place-started messages in ashokai/0.3encounter carryshokai/0.3. Conformance vectors for C230–C254 are thev050section ofconformance/test-vectors.json(tools/gen-v050-vectors.mjs); the golden traces name specification v0.5.0. - Reference code. The reference core and the SDK now enforce v0.5.0; the answers above list a few follow-ups for the code.
- Two named members (2026-11-01).
policy.max_message_bytes(§3.4, C239): the largest message a place reads, in bytes of its JSON as received; absent 65536, at least 4096; restated in the house summary; a larger message gets a bounded refusal (an actREQUEST_INCOMPLETE, anything else an empty reply, a farewell still accepted), and the black-box check now tests against it instead of warning.PlaceTemplates.closed: true(frompolicy.closed_templates, §2.2, C242): closed templates list every top-level member the place accepts (optional ones with an<optional …>placeholder), and a Shōkai visitor card or mandate carrying an unlisted top-level member is refused (x-members aside). The reference host implements both; itsfernwood-v05fixture states both. - Clean-room fixes (2026-11-01). From three clean-room readings (a host builder, a visitor builder, an owner-policy reader):
- One-purchase raise (§5.1, §7.3, C230). A superseding mandate binds one act, its
max_amountequals the hold'sproposed, it expires no later than the hold and is used up on release; the seat keeps its mandate, and the mandate offered again getsMANDATE_INVALID. A place holds an act above the limit only within its own stated limit. SIGNING.md §8 says what the owner sees; §8.2 says how the report words it. - Before seating (§2.3, §6.10, C246, C248, C250). The house summary is required for v0.5.0 hosts, carries
third_party_classifiers,retention_daysandmessage_cap, must agree with the policy, and is read by a v0.5.0 visitor before itsinvitation_request. Nothing goes to an outside classifier before that request. Ashokai/0.3visitor gets no finding for breaking a declared rule alone. - Classifiers as entries.
policy.third_party_classifiersis nowThirdPartyClassifier[](name,purpose,jurisdiction,retention_days,role), notstring[];"*"is invalid. - Privacy (new §12.4, C255). Purpose limits,
policy.retention_days(default 30, at most 90),deletion_requestanddeletion_receipt. - A valid house config (§2.3, C236). A door refuses to start with invalid v0.5.0 members; C236 now names the lobby text in its own words. SIGNING.md §9 shows the house config, lobby text included, before signing.
- Wire tags (§11.1, C254). Signed objects keep their members in 0.3 replies;
accepted_tags; the visitor's tag choice and no downgrade. - Text. P26's draft bullets moved back to the proposal; citations of the demo's build spec removed; the A.1 counter rule made consistent; §5.4 scan bullets placed inside §5.4; §5.5 stopping on the wire and
VisitReport.errand_used; §13 items reordered; adoption of P27, P28 and P31 §2.9 marked provisional pending the open discussion; stale v0.3.0 and v0.4.0 labels fixed. - Documents. New
docs/build-a-visitor.md; THREAT-MODEL.md §9, the v0.5.0 desk review; SECURITY.md, CODE_OF_CONDUCT.md and TRADEMARKS.md say one inbox handles all three kinds of report for now; HOST-A-PLACE.md lists the v0.5.0 settings. - Code, minimal. The reference core's
system1MayCalland the SDK take classifier entries; vectors and the schema regenerated. Reference behavior for the other rules above is a follow-up.
- One-purchase raise (§5.1, §7.3, C230). A superseding mandate binds one act, its
- Clean-room round 2 fixes (2026-11-01).
- The errand budget stops on the wire (§5.5, C247). Once a budget stops the errand, the SDK refuses every act and message locally except the farewell (
taken_homeby default), starts no new visit for it, andVisit.report()carrieserrand_used(ErrandMeter.usage(),Visit.errandStopped(),ErrandStep.metered). - Checking the figures before asking (§7.3, SIGNING.md §8, C230). The representative and the signing page MUST check a
LimitRequest'slimitagainst the owner's signed mandate,currentagainst the representative's own ledger andproposedminuscurrentagainst the held act's amount, and ask the owner nothing on a mismatch. The SDK does so beforeraiseLimit(limitRequestProblem) and reports a mismatch home. - The host's model provider is a named outside service (§6.10, §12.4, C250, C255). A hosted model or inference provider that runs the host's model goes in
policy.model_providers(below) with jurisdiction and retention; SIGNING.md §9 shows it. - The payment-instrument scan is a MUST (§5.4, C235), run before anything from a message is stored, logged or forwarded.
- A raise counts against an allowance's period budget (§5.2).
- Retention of records (§12.4, §3.6, §6.9). Relationship records, misconduct notices and findings, introducer penalties and conduct signals are kept only while the suspension, reduced standing or
neverdecision they support is in force, plus at most 90 days after it ends; records that support nothing followretention_days(default 30, at most 90). Aneverbinding keeps only the identity key, the reason code and its end. Trusthistorycounts only records still kept. The reference host prunes on this rule (Host.pruneRecords, run byprune()), with a test. - Documents reconciled with the code.
docs/build-a-visitor.md(thesupersedingMandatesignature,acceptSummary,wireTag,useMandate,pollInbox,requestDeletion), THREAT-MODEL §9 and the known gaps indocs/whats-new-v050.md.
- The errand budget stops on the wire (§5.5, C247). Once a budget stops the errand, the SDK refuses every act and message locally except the farewell (
- Local gaps closed (2026-11-01).
- Model-provider disclosure (§6.10, §2.3, C250). New
ModelProvider(name,purpose,jurisdiction,retention_days0–90, optionalrole) andpolicy.model_providers, insidehouse_digest, restated in the house summary and the lobby briefing (not to ashokai/0.3visitor). A door refuses to start with an incomplete entry, the name"*"or a summary that leaves one out. Conformance checkv050.model_providers; reference tests; the fixture placefernwood-v05lists one. - The reference signing page offers the one-purchase raise (SIGNING.md §8). A raise item carries the superseding mandate and its
raisecontext (theLimitRequest, the signed mandate, the seat's cap, the ledger figure and the held act). The page checkslimit,currentandproposed−currentagainst them and that the mandate is built from the hold (max_amount=proposed, no later expiry,supersedesnaming the hold and the signed mandate, the same Shōkai visitor card, no allowance); on any mismatch it offers nothing. It shows the place by its verified identifier, the four figures, "this one purchase only" and the deadline in the owner's time zone, writesshown_to_owneritself and never batches it. Tests:reference/signing-page/test/raise.mjs. - More black-box checks run against the reference place.
v050.trustandv050.trust_legacy(C243:fernwood-v05puts a trust requirement on its reviewer program),v050.host_farewell(C234) andv050.config_refusals(C236). The last two use the implementation's off-wire hook: the runner's--host-console <dir>drives the reference host's console queue (end_seat,try_config), and a module target'sdoor.endSeat. Againstfernwood-v05: 30 pass, 7 skip (was 25 and 9).
- Model-provider disclosure (§6.10, §2.3, C250). New
Pre-publish notes for v0.5.0 (2026-11-03 to 2026-11-10)
Listed under Unreleased until 0.5.1 was cut; they describe work before the 0.5.0 publish.
Public Kettle door: official Core Door run (2026-11-10, 12:13 AM Pacific Time, pre-publish). The official paced HTTP run against
https://kettle.shokaiprotocol.comat 12:13:20–12:19:05 AM Pacific Time, 10 November 2026, recorded these results. All 30 checks measured in that run passed. The run observed 28 checks over HTTP and used 2 implementer-provided in-process self-tests (C236, C240). Two checks were inapplicable (C241, a visiting representative’s duty, and C242, which requires closed templates). Build pins are indocs/evidence/kettle-operator-notes.md. It is deployed, not publicly open, and it is not a proven lasting host. The official runner presented pre-signed owner material signed by passkey (--visitor-fixtures); it never minted a development owner or fake-signed. Sitting A signed fresh ops1-e, under_two-e, and throwaway revoke-while-seated-c; sitting B signed that card's revocation (recovered via the steward admin results API after the public two-minute results window closed, then verified). Group A in-process evidence ran under--accept-evidence-execagainst the conf6 tarball and is labeled implementer-provided, not independent verification. A read-only pre-check at 12:12:47 AM Pacific Time saw store version 1169, the test principal was absent fromnever, 0 probing principals, and 0 probing-window shapes; nothing was cleared before the run. After the run (read-only, 12:19:24 AM Pacific Time; nothing cleared): store version 1322, YSY present inneveruntil 2027-05-09T08:18:56Z (1:18:56 AM Pacific Time, 9 May 2027), 3 probing-window shapes for this principal. House digest and host card unchanged. The previous conf5 HOLD remains historical. Pinned results: operator-held pinned official-run results (not shipped in this preview); see KNOWN-GAPS-0.5.md. Nothing was published or pushed during this recording.Review 9b / Review 10 pre-publish gates closed (2026-11-09, late evening, Pacific Time, local only). R9b-01: a two-instance over-limit vector now holds on instance A, refuses an intervening act on B (
SEAT_SCOPE_EXCEEDED), and releases once only atproposedon C, withused_raisespersisted in the shared store (packages/shokai/test/instances.test.ts); §13 item 36 names those tests and no longer claims holds as untested. R9b-02: §7.3 defines bindingcurrentas the reserved total of the ledger whose signed cap islimit(mandate-wide when the mandate cap binds);seatandmandatestill show both ledgers; release re-checks each ledger against the total that ledger showed at the hold plus this act, so a prior visit cannot make a valid release fail closed; a cross-visit release vector is inr8-overlimit-ceiling.test.ts. R9b-03:checkMandatestill refusessupersedes(one_purchase_mandate), andonRequestnow has a seating choke point that refusesgrant/conditional/consideringwhen the raw request carriessupersedes; negative tests cover a fresh invitation (after card presentation), awith_credential [signed_mandate]retry visit, and arequires_customer_linkaction path. R9b-04: those assertions pinreason_code === "MANDATE_INVALID", dispositionnot_now, and retrywith_credential [signed_mandate]. M1: §7.3 now requires the used-raise write to be durable before the release response (the reference door already persistsused_raisesin the same durable state and withholds the answer on a lost compare-and-set, §11.1429). M2:limitRequestProblemrequiresmandateCurrentwhenreq.mandateis present (no fallback to the seatcurrent). Runtime files:reference/engawa/src/host.ts(synced intopackages/shokai/src/core/host.ts) andpackages/shokai/src/index.ts(limitRequestProblem). That evening Kettle's official Core Door run was still tied to the earlier build (identifiers indocs/evidence/kettle-operator-notes.md); moving Kettle needed the owner's go plus a new official run (done later that night — see the conf6 entry above). Nothing was published, deployed, or pushed.Wording and fingerprinting pass after review-r7 (2026-11-09, late evening, Pacific Time, local only). The conf5 Core Door HOLD is unchanged. The run observed 28 checks over HTTP and used 2 implementer-provided in-process self-tests (C236, C240). Both THREAT-MODEL copies now list the production door-state store write credential under Tampering and Elevation of privilege as well as Information disclosure, and "spending limits hold" is qualified: a holder of that credential could rewrite spend ledgers and revocations. The scoped-clear reports and keys-and-versions diffs are hash-pinned; secret backups are identified by hash only and were not copied into the pack. A pinned companion names the official runner hashes (
v050.tssha-256cbc9708dd84e188f10a4aa271211d9db60759d48a007ab33b445ef6740e0dbf5and the other runner files), the six official attempts that evening, and the hashes of the five non-golden official runs. Group A in-process tests were verified to load@kigenka/shokaifrom the conf5 tarball (vendor copy ofkigenka-shokai-0.5.0-candidate-conf5.tgz, sha-25664aa6479…). A names-only listing of Vercel environment-variable names did not includeKETTLE_PRINCIPAL_KEYin Production or Preview; whether any differently named Preview variable holds a principal key is unknown. Review 9b/10 gates (R7-02 / R6-10) and the H1(f) extra-textual test (R7-08) remain open. Nothing was published, deployed, or pushed.Disclosure fix pass after review-r6 (2026-11-09, late evening, Pacific Time, local only). Custody write-ups now name the production door-state store write credential (Upstash) and say what it can and cannot do (scoped
never/probing clears; not place signing). The official-method text now states equally clearly that those host-side clears also set up the golden run's preconditions (store versions 999→1000 at 10:21:05 PM Pacific Time, then 1153→1154 at 10:40:56 PM). An older project convention used validated as a nickname for a holding official run; reader-facing pages now state the measured counts instead. publicly open is defined (a reachable URL or/healthz open=trueis not that status). The golden-run raw outputs and Group Aevidence.jsonare hash-pinned. Quillfern C301 was re-run under the current pinned runner (v050.tssha-256cbc9708dd84e188f10a4aa271211d9db60759d48a007ab33b445ef6740e0dbf5) at 11:11 PM Pacific Time; it still fails (visitor_invitation_response=1) and the Core Door claim is not established. The kigenka-signcard_revocationdeploy has its own review entry. Known gaps for a 0.5 draft release are inKNOWN-GAPS-0.5.md. Nothing was published, deployed, or pushed.Public Kettle door: official Core Door run on an earlier build (historical; superseded by the 10 November run above) (2026-11-09, evening, Pacific Time, pre-publish). The official paced HTTP run against
https://kettle.shokaiprotocol.comat 10:34 PM Pacific Time, 9 November 2026, recorded these historical results. All 30 checks measured in that run passed. The run observed 28 checks over HTTP and used 2 implementer-provided in-process self-tests (C236, C240). Two checks were inapplicable (C241, a visiting representative’s duty, and C242, which requires closed templates). Build notes are indocs/evidence/kettle-operator-notes.md. It was deployed, not publicly open, and it was not a proven lasting host. The official runner presented pre-signed owner material signed by passkey (--visitor-fixtures); it never minted a development owner or fake-signed. Group A in-process evidence ran under--accept-evidence-execand is labeled implementer-provided, not independent verification. A single-use material audit listed which fixtures a run consumes. Host-side scoped compare-and-set clears of this principal'sneverbinding and probing-window shapes were used both to set up the golden run's preconditions and to restore the door after it. They are not place signing: they rewrite durable door state for that principal only, using the production door-state store's write credential (Upstash). Setup (before the golden run): after the earlier official attemptofficial-public-kettle-conf5-presigned-probes-revocations-spend-c-evidence-2026-11-09(Core Door not established; C198 skipped), a scoped clear at 10:21:05 PM Pacific Time, 9 November 2026, moved the store from version 999 to 1000 (the test principal was removed fromnever; 0 probing principals; 0 probing-window shapes for this principal; other never DIDs unchanged). Backup (mode 0600): an operator-held door-state backup (path not published in this preview). Report: an operator-held clear-run report (not shipped in this preview). The golden run's read-only pre-check then saw store version 1000, the test principal was absent fromnever, 0 probing principals, and 0 probing-window shapes. Similar scoped clears the same evening after earlier skipped or failed official attempts likewise restored a clean never/probing map for this principal so later attempts would not start from leftover bindings. Cleanup (after the golden run): after C186 (neg.probing) PASSed last and the doorbindNever'd that principal, a scoped clear at 10:40:56 PM Pacific Time, 9 November 2026, moved the store from version 1153 to 1154 (the test principal was removed fromnever; 0 probing). Backup (mode 0600): an operator-held door-state backup (path not published in this preview). Report: an operator-held clear-run report (not shipped in this preview). Earlier official runs of the same build skipped or failed because of leftover spend, leftover probing-window shapes, an inferredneverbinding, a runner that ranneg.probingtoo early, missingv050.one_card/v050.sizerows, and an already-revoked throwaway card on C198; those were diagnosed and measured again with fresh material. Pinned results: operator-held pinned official-run results for the historical conf5 HOLD (not shipped in this preview).Official HTTP runner: probing runs last; C237/C239 always reported (2026-11-09, pre-publish).
neg.probing(C186) is run after the other official HTTP and v0.5.0 checks. A passing probing checkbindNevers that principal for 180 days; a pre-signed probe card is usually the same owner as the sitting card, so running it earlier poisons later rows (C233, C234, C238, C300, C248, C268). The development path still mints a fresh owner.v050.one_cardandv050.sizeare reported (as skip) when the instrument visit wasn't seated, instead of vanishing from the run.sign.kigenka.com visitor-prepare: card_revocation (2026-11-09, pre-publish).
POST /api/visitor/prepareaccepts acard_revocationitem (card_id,revoked_at;principal_idis forced to$OWNER_DID) as well as visitor cards and mandates. Host cards are still refused. This change was deployed to the kigenka-sign production project. Smoke tests confirmed that existing visitor card and mandate prepare still worked and that host cards were still refused. The Kettle door project was not redeployed for this change.Official HTTP runner: pre-signed probe material (2026-11-09, pre-publish). A
--visitor-fixturesdirectory may also include owner-signed probe items somandate.cross,card.revoked,card.revoked_seatandneg.probingcan be measured without minting a development owner (a mandate for anothercard_id, a mandate whose counterparties leave out this place, throwaway visitor cards plus pre-signedcard_revocations delivered by the runner, and a distinct card/mandate whose only action is unlisted). Revocations may be pre-signed; the runner delivers them at the moment the check needs (no mid-run re-sign, and not against the primary sitting card).v050.templatesis N/A when the place's templates are notclosed: true; a closed template still needs an off-template card. Missing probe items still SKIP with a reason, never a faked signature.Official HTTP runner: pre-signed passkey material (2026-11-09, pre-publish).
shokai-conformanceaccepts--card,--key,--mandate <role>=<file>(repeatable) and--visitor-fixtures <dir>so a public door that refuses reservedrp_iddevelopment cards can be measured with a visitor card and mandates the owner already signed. The runner presents that material as-is: it never mints a development stand-in owner, never re-signs a mandate, and never mutates a signature to look well-signed. Checks that need a fresh owner signature the runner cannot produce are reported SKIP with a reason (not a pass, not official evidence for that check). Roles includebrowse,purchase,c300(min_protocol"0.5"),c301(min_protocolshokai/0.6),ops1,cap001,under_two, andovercap. The default path (no these flags) is unchanged.H1(f) / C301 — normative rule change (2026-11-09, pre-publish). The version-mismatch lobby for a
shokai/0.5request whose mandate carriesmin_protocolabove the request's own tag is that lobby only: the place MUST NOT also send aninvitation_responsein the visitor's encounter. This is a new MUST NOT, added after a steward-guided clean-room door (Quillfern Tea Room) sent both a lobby briefing and a visitorinvitation_response. The reference and SDK already behaved this way; the official HTTP runner now has rows for C300 and C301 (well-signed mandates only). Under the runner from before those rows (v050.ts sha-256861f01646dcf…, 2026-11-09), Quillfern's Core Door claim exited 0; under the current pinned runner (v050.tssha-256cbc9708dd84e188f10a4aa271211d9db60759d48a007ab33b445ef6740e0dbf5, re-run 11:11 PM Pacific Time, 9 November 2026) it fails C301 (one check) and the claim is not established.Conformance evidence commands (2026-11-09, pre-publish).
--evidenceexecutes implementer-supplied commands (command+ a test file inside the implementation directory). The runner requires--accept-evidence-exec(orSHOKAI_ACCEPT_EVIDENCE_EXEC=1) and prints a warning in--help. A pass is only that command's exit 0 — not independent verification (C290). Bare-string evidence entries no longer count as a run (they stay skipped).Conformance passes 1–3: wire tags and
min_protocol(editor decision H1, pre-publish). Wire tags compare numerically, never as strings (compareWireTags;shokai/0.10is aboveshokai/0.9, leading zeros are refused; H1(a), C299). The visitor reads the owner's floor before it chooses a tag: the higher ofVisitAsk.minProtocoland the presented mandate's signedmin_protocol(newownerFloor). A floor aboveshokai/0.5ends the visit before anything is sent, a floor aboveshokai/0.3rules 0.3 out, and a malformed floor ends the visit withSHOKAI_BAD_TAG(H1(c), C298). A visit that can spend never falls back toshokai/0.3on its own;wireTag: "shokai/0.3"is the owner allowing it (H1(b)), and with a target that lists nospec_refthe visitor now speaksshokai/0.5when the floor rules 0.3 out (instead of refusing). At the door, a request whose mandate'smin_protocolis above the request's own tag gets the version-mismatch lobby, undershokai/0.3(H1(d), C297) and now undershokai/0.5too (shokai/0.6; H1(f), C301); amin_protocolthat isn't a wire tag getsdeny / not_now / MANDATE_INVALID, retrywith_credential [signed_mandate], under either tag (H1(e), C300; also a superseding mandate at act confirmation). New checks C300 and C301 (both roles); the checklist is C1…C301, 286 distinct checks. The SDK's door fetch also reads an introduction card'srevocation_logbefore a claim is judged (C245, C271). Doc comments forVisitAsk.wireTagandminProtocoldescribe these rules.Gemini round-2 fixes (pre-publish):
signedArrivaldocumented as shape-only (paired withverifiedArrivalat the door; flood test covers Gemini's"signatures":[{}]dummy).FileBudgetStoregains advisory locking andupdate(mutator)(host-budget ledger, C279);HostBudgetKeepermutations commit under that transaction — distinct fromfileStore, which already locked visitor state (C270).toCents/ allowance-cap now use the same 10^6 major-unit scale asparseMoney(C284; no ISO 4217 exponents). Claim evaluation counts evidence-backed in-process checks as having run. Adapter bodies over 256 KiB get HTTP 413 (ShokaiPayloadTooLargeError), not truncated JSON. Quickstart visitor guards a place with no free actions; Zod 4 pin documented. The repository package retains its private flag as a safeguard against accidental publication. SECURITY.md 0.3.x support wording aligned (no SDK backports after 0.5.0; wire compatibility is 0.5.x only). PATENTS.md clarifies implementers must not rely until the record table has a row. BrowserdigestOferrors clearly without WebCrypto / secure context.Pre-release review round 2 fixes (pre-publish). Reserved
rp_ids (RFC 2606 development passkeys) are now judged on every card from the door's current entry address, socreateDoor()thensetBaseUrl("https://…")refusesowners.exampleexactly like a constructorbaseUrl(it no longer keeps a stale allow from the loopback default); an explicithostOpts.allowReservedRpIdsstill wins. The reference host uses the same default (absent or loopback entry: allowed), which puts the reference suites back to green.setBaseUrl()now applies the constructor's https rule (SHOKAI_DOOR_INSECURE, C269)..gitignorekeepsrelease/*.tgzand its.sha256. The release tarball is reproducible on its first pack. The SDK test total is single-sourced inrelease/release-status.json.Pre-release review round 2, ChatGPT Pro (admission, capacity, raw input, schema). A signed arrival counts as authenticated only when its signature verifies and
signatures[0].signerispayload.from(C184); anything else is limited like anonymous traffic.createDoor()now applies the free-principal limits on the real admission path (C287): the newcomer budget (60 a minute per principal, 600 per source) inrespond(), concurrent seats per visitor card (2) and per source (16) on the grant path (outside the test profile;hostOpts.seatsPerCard/seatsPerSourcechange them), and a per-card cap of 10 failed introduction claims a day. The encounter cap no longer evicts a closed ritual whose pass is still live (or with a hold or consideration open), so a visitor can still act after its farewell when the door is full (§3.4, §3.5). Every inbound body goes through one bounded reader: counted as received, canceled past 256 KiB (HTTP 413), decoded as UTF-8 fatally (HTTP 400, never U+FFFD), andmax_message_bytesis measured on the bytes as received (C239, C284);ShokaiInvalidUtf8Erroris new. The generated JSON Schema applies one extensibility policy to nested objects (a card'sprincipaltakesx-members) while signatures, the signed envelope, Money, proofs and digests stay closed.test-total.mjsno longer counts theclaimssuite twice (and refuses duplicates). The Quickstart's visitor andshokai visitare labeled for local and test doors (a public door refuses the development owner). The release job runs the walkthrough against the committed tarball; the link check says when it skips the site, andSHOKAI_REQUIRE_SITE=1makes that a failure.Removed workshop keys (disclosure). Unlabeled workshop/test key files (
workshop/desk/*.json) were present in private development history. They were test material, never production owner keys; they were removed from the tree, are gitignored, and the published history must not contain them (RELEASING.md, publish-day step 3; SECURITY.md).New API since v0.3.0, listed for reference:
hostOpts.acceptedRpIds(the ownerrp_ids a door accepts),hostOpts.allowReservedRpIds(accept development passkeys at a public door; default: only on loopback),DEFAULT_MAX_ENCOUNTERS(10,000, the default open-encounter cap), conformance runner exit code 5 (a test-vector check failed), theSHOKAI_CONFORMANCE_VECTORSenvironment variable (path to another test-vectors file, for the runner's own regression test), and in the shapesRitualHeader.in_reply_to?withGreeting.tonow optional.
v0.4.0 (draft, 2026-10-29; private, not released)
Changes from v0.3.0. The wire tag stays shokai/0.3: every addition is a new optional member, message or code, so a v0.3.0 party reads v0.4.0 messages as before. Not published to npm; the SDK's version is 0.4.0 in the working copy only.
The drop-in door (2026-10-30; local, not released). Two ways in, one door: by hand, or by the owner's agent following an official instruction set. Nothing on the wire changes.
- Draft spec text, editor sign-off pending (P26): §2.3 says the leaflet is under the owner's signature (the lobby text is inside the house config
house_digestcovers); §11.1 adds finding a site's door at/.well-known/shokaior<link rel="shokai">, with the https / exact-path / no-query rule. Both bullets are marked as draft in SPEC.md. - SDK. The leaflet template (
shokai-leaflet/3: shared text plus the place's own words, signed off by the host representative;<base>/startserves it). Presetsopen,standard,strict.door.fetch()anddoor.respond()(one §11.1 router),shokaiDoor()for Express,nextDoor()for Next.js,door.fetchfor Hono, Bun, Deno and Workers.discover(),door.wellKnown(),shokaiLinkTag(). An asyncstore(memory, file, key-value with compare-and-set) with a version check that withholds a conflicting answer (429) and refuses a conflicting MCP call;door.ready.onEvent, machine fields only.house.json(format 1):checkHouse,houseToDoorOptions,previewHouse,hostCardRequest;representativePublic,houseConfigFor,hostScopeFor,hostCardSummary;signHostCardForDevelopmentfor tests only (reserved test names). - Setup kit.
shokai detect | house new|check|preview | init | host-card request|verify | agent-guide.initwrites the door module and the glue for express, hono, next, node or static; the door's key goes to.shokai/rep.key(mode 600, git-ignored) and is never printed. - Agent instruction set v1.
packages/shokai/agent-install/v1/AGENT-INSTALL.mdandinstall-manifest.json, shipped in the package: the agent detects the stack, has a setup conversation with the owner, runs the same commands, and stops at the owner's passkey. - Signing page. A Shōkai host card item carries its house config:
$HOUSE_DIGESTis filled in and checked, the rules are worded, the leaflet is quoted, every house field is listed;$IN_90D,$IN_180D,$IN_365D. Code only; nothing deployed. - Several instances, no sticky sessions. The door's
storenow also holds its visits in progress: encounters, passes (seats) and their counts, held purchases, considerations, held inbox messages and the MCP gate's single-use acts (core:Host.liveState()/restoreLive(), host-local JSON; nothing on the wire changes). Any instance answers any message of a visit.fileStorelocks each write, so several processes may share one file. - Finished visits are pruned. A door drops a visit an hour after its pass ends (
retainFinishedVisitsS, default 3600, at least 600;falsekeeps everything): its encounter, pass, counted acts, held purchases and de-duplication keys. What §3.6 says to keep stays as long as it says: greeting nonces for the visit receipts' lifetime (at most 7 days), each mandate's use until it expires,neverbindings, records, notices and revocations. The door also discards signed messages more than 900 s from its clock (maxMessageAgeS, RT-C4), so nothing it has forgotten can be replayed; the retention is never less than twice that plus 300 s. Pruning runs as messages arrive (at most every 30 s) and ondoor.prune(); it is the same on every instance, and the store's version check keeps one result. A busy door's state now levels off at about a day of visits (passes last a day by default) instead of growing ~5 KB with every visit. Core:HostOpts.retainS,Host.prune()(host-local; off unless set, so the golden traces are unchanged). - Tests. SDK: drop-in 26, instances 18, adapters 12, house 21, setup 19. Core: L1 (6). Signing page: host card 11 (both servers). Agent install harness: 62 (a scripted agent on four sample sites: Express, a real Next.js 16 build under
next start, Hono and plain node:http; both ways write identical files; two server processes sharing one door, messages alternating between them; 0 model calls). Snippets: 5.
Specification (SPEC.md).
- Two Shōkai cards (§2.3). A Shōkai card states its
kind: a Shōkai visitor card for going out, a Shōkai host card for keeping one place. A Shōkai host card is bound to one place (place: principal and entry), carrieshost_scope(actions and duties),house_digest(the digest of the house config the owner signed) andshown_to_owner(the summary the owner read); an organization's Shōkai host card is signed by the organization's key and carriesorg_approval, the record of the person who approved it. A representative's two Shōkai cards should use separate keys. A Shōkai card withoutkindis read as before (C214). - The wrong-kind refusal (§2.4 step 5, C202, trace K1). A Shōkai host card shown as a visitor's credential gets one fixed, fixable answer:
not_now/CREDENTIAL_REQUIRED, readinesscard_kind, with the fixed sentence for the owner; nevernever, nothing recorded. - The visitor checks who keeps the door (§3.1, §2.6; C203–C207, traces K2–K4). A visitor doesn't go in, and reports a fixed sentence home, when the place shows a Shōkai visitor card, a Shōkai host card for another place, a Shōkai host card over another house config than the listing names (
house_digeston listing entries), or a withdrawn Shōkai host card; a withdrawal list it can't fetch ends a spending visit (fail closed). A door whose own Shōkai host card doesn't fit (another place, a changed house) answers nothing until its owner signs a new one. - The purchase-only live owner prompt (§1, §5.2, new §7.3, §8.1; C212, C213, trace K5). The one live owner prompt allowed: a representative may ask a place to hold a purchase (
act.hold_for_owner) for its owner's passkeyapprove_purchase(newact_heldandact_confirmationmessages, reason codesLIVE_PROMPT_PURCHASE_ONLYandHOLD_LAPSED). Only for an act that spends; disclosed on the Shōkai visitor card (owner_prompts: "purchase_only") and to the place's owner (thehold_purchasesduty andpurchase_hold_s); at most 15 minutes; silence is no. - An amount carries nothing to pay with (§5.1, C211). A mandate's
max_amountauthorizes spending; a mandate carrying a payment token or other instrument isMANDATE_INVALID. - Institutions (new §5.4; C208–C210, trace K6). Actions marked
requires_customer_linkare served only under aCustomerLinkthe institution made in its own app (co-signed by its key and the owner's passkey, at most 400 days), named in the owner's mandate. Every link failure gets one uniform answer (CREDENTIAL_REQUIRED, readinesscustomer_link), so the door is no oracle for who is a customer. A link never widens a mandate, ending it ends its seats, and no money moves before itsmoney_from(cooling-off). The credential rule: a representative never holds a password, one-time code, session, account or payment card number; an act carrying one is refused (CREDENTIAL_NOT_ACCEPTED). - No Shōkai host card, no admission (§2.3, C215, reference scenario K7). Stated plainly: a door admits no visiting representative unless it holds an active Shōkai host card for that place, and otherwise answers nothing (
503). The reference door now also closes when its own Shōkai host card has expired or been withdrawn (previously: another place, a changed house or a Shōkai visitor card). An informative note adds that the host representative stands behind the deterministic checks and never replaces them. - §12.1 gains the credential and "check who keeps the door" rules; §13 item 28 lists what v0.4.0 leaves open.
spec_refis{version: "0.4.0"}; the conformance runner accepts"0.3.0"with a note.
Types and schema. protocol-shapes.ts: CardKind, PlaceBinding, HostScope, HostDuty, OrgApproval, CustomerLink, ActHeld, ActConfirmation; new members on RepresentativeCard, Mandate, Act, PlaceAction and PlaceListingEntry; new reason codes, readiness codes and credential kind; OwnerConsent action approve_purchase and subject kind act. schema/v0.4.0/schema.json generated.
Reference and SDK. The reference host implements all of the above (holds, customer links, the credential rule, the Shōkai host card self-check) and visitorPlaceCardCheck for the visiting side. The SDK (@kigenka/shokai 0.4.0, unpublished): signCard signs a Shōkai visitor card by default (cardKind, shownToOwner, ownerPrompts, host); a door signs a Shōkai host card bound to its entry and house (approvedBy, purchaseHoldSeconds, changeHouse, hostCardProblem, houseDigestFor, SHOKAI_HOUSE_CHANGED), closes with 503 when its Shōkai host card doesn't fit; a visit checks the place's Shōkai host card (and its withdrawal list) and actWithOwner asks the owner live, for a purchase only.
Follow-ups (2026-10-29). createDoor() now requires approvedBy (a named person and role) for a door that signs an organization's Shōkai host card, and throws SHOKAI_APPROVER_REQUIRED without it; there is no placeholder approver. The specification, extensions, conformance prose and docs say "host representative" (was "gatekeeper") and "visiting representative" (was "visitor", where it names the role). No wire name changes: none contains "gatekeeper", and wire values that say "visitor" keep their names (SPEC Terminology).
Docs wording (2026-10-29, website rounds 14 and 14b). Plain-language pages say "Shōkai card", "Shōkai visitor card" or "Shōkai host card" wherever a bare "card" meant one; a payment card, a gift card, a business card and product names such as A2A's Agent Card are left as they are, and so are quoted messages and recorded transcripts. Onboarding is called a conversation, and the representative is described by what its owner signs and can withdraw. Headings say Shōkai card too: SPEC §2 and §2.3 (anchors updated everywhere) and the conformance fixtures and traces F2–F19, G2a and G2b. Fixture titles are labels, so F13, F18 and F19, which the v0.3.0 prototype's trace generator writes, changed in reference/prototype/src/gen-traces.ts as well: those three label strings are the only change there. No wire name, message or test expectation changed.
Tests. New reference suite v040 (85 checks, golden traces K1–K6 replayed) and SDK suite twocard (22 checks). Tests that pinned spec_ref "0.3.0" were deliberately updated to "0.4.0"; the reference/prototype (a v0.3.0 core subset) is unchanged apart from the three fixture labels noted above.
v0.3.0, 2026-10-28
The first release of the 0.3 line. It is the text of release candidate 4 (below) with the clarifications and fixes made since its feature freeze on October 27, and nothing new on the wire.
In plain words. A place keeps a door. An agent arrives on someone's behalf, introduces itself with a card its owner signed with a passkey, says why it came, and shows the limits its owner signed. The place answers every arrival: it seats the agent, or gives it a leaflet and a kind "not now" it can recover from. Inside, every act is checked against the seat and the owner's limits, the agent reports home in plain words, and conduct has consequences. This release puts that in one tested text, a TypeScript package (@kigenka/shokai), a conformance runner and a reference place.
Compatibility. The wire tag stays shokai/0.3. spec_ref.version is now "0.3.0". Nothing on the wire changed from 0.3.0-rc4, so a peer that still names "0.3.0-rc4" speaks this text: the conformance runner accepts it with a note (SPEC §3.1, Compatibility). Release candidates rc1 to rc3 lack later additions of the 0.3 line (§2.6, §2.8, §3.6, §7.2).
What changed in the release itself
- Version. The specification, extensions, threat model, types, test vectors, golden traces, reference and SDK all say 0.3.0 (the package is
@kigenka/shokai@0.3.0). Notes that say when something was added (for example "v0.3.0-rc4 (§2.6)") are history and stay as they are. - Install. The README and quickstart install from npm (
npm install @kigenka/shokai,npx @kigenka/shokai demo), with a short fallback for installing from a package file. - Package.
shokai --versionprints the package version and the protocol it speaks. The author is YSY. Therepository,homepageandbugslinks are left out while the source repository is private. RELEASING.md describes the first publish, from a laptop without provenance, and later ones from CI with provenance. - Conformance runner.
door.spec_refpasses for "0.3.0" and, with a note, for "0.3.0-rc4"; any other version is a warning, as before. - Wording. TRADEMARKS.md: Shōkai has no badge or approval program. The extension statuses, roadmap, security and contributing notes no longer call this a release candidate.
- Example. The toy MCP example says who refused the call outside the seat, and why (it printed
undefined).
Changes since the rc4 feature freeze (all without a wire change; listed as they were made)
Fixes from the defender reviews of rc4 (2026-10-28; no wire change)
- Reference signing page (SIGNING.md §2 item 3, clarification): every signed field is shown, at any depth, and coverage is checked leaf by leaf:
owner_binding.platform_keyis worded as the chat key, the representative key is shown in full, identifiers are no longer shortened, and leftover fields on allowance grants are listed. Door rules must carry their private part ({salt, note}), checked againstprivate_digestand shown field by field. A value the page can't show faithfully (control or invisible characters, nesting deeper than 8, an odd field name) stops the page from starting. - Kind confusion: an item carrying the fields of more than one kind (for example a mandate's and a card's) is refused. Any item with an amount anywhere gets its own tap and can't join a one-tap batch. Signing page e2e: 64 checks.
- sign.kigenka.com front (deploy/sign-front, prepared, not deployed): the inert page now names the test stage and links to a full
/aboutnotice; the relay also forwards the rc4 page's/aboutand one-tap batch routes, which the October 26 front would have left inert. Checked on loopback bydeploy/sign-front/test.mjs(inrun-all-suites.sh). The notice text's "in advance, A way" typo is fixed. - sign.kigenka.com, serverless (deploy/sign-serverless; live since October 28, 11:14 AM PDT, on the editor's OK): the rc4 signing page as Vercel Functions with an Upstash Redis store (REST, no package), replacing relay mode, which needs a tunnel. Steward-only admin route (secret in a Sensitive env var) to load the public owner credential, open a one-time 30-minute session (only the token's hash is stored), read and verify results, and close it. Challenges are taken once and decisions written once across instances; stored items are re-checked against their summaries on every read. The signing page e2e runs unchanged against it (
SIGNING_SERVER=deploy/sign-serverless/local.mjs), plus 45 serverless checks; both inrun-all-suites.sh. Field test 8 (October 28, 11:14–11:27 AM PDT): The editor signed four items in three taps with his existing passkey; all four verified twice, independently; the session was closed. - Docs: the Grok Bot rollback recipe no longer re-delivers standby slips (they are live withdrawals); the doorbell no longer claims strangers can't ring, and says a signed ring proves only a key; the skill says a withdrawal ends visits where the place has learned of it; the FAQ says what still links pairwise identities (SPEC §12.3); "a hijacked agent can do at most what the owner signed" now says "as each place counts it"; "true representative" and "tested with" wording replaced. THREAT-MODEL known limits: vouch-log freshness, and what a silent file rollback can lose.
Fixes from an adversarial review of rc4 (2026-10-28; no wire change)
- Quickstart: its expected output matches the SDK again (the report line starts with "The place with key"), the verifier masks keys either way, and
tools/verify-quickstart.shnow runs intools/run-all-suites.shand so innpm test. - Reference signing page (SIGNING.md §2 item 3, §3, clarifications): every summary is built on the server from the item's machine fields (
describe.mjs); a supplier's title or summary is shown only as a marked quote. An item that can spend money (a mandate withmax_amount, an allowance) gets its own tap, and the server refuses a batch that includes one. Also: the authenticator's signature count is tracked, an oversized body is refused at once (413) and open challenges are bounded (429). 53 end-to-end checks, including ones where an item's summary and payload disagree. - Conformance runner: new core check
seat.max_amount(a door must refuse an act over the seat's cap; at a conformant door no money moves) and, with--spend <amount> [--spend-args <json>],seat.max_amount_totalandmandate.max_amount_total(a conformant door admits exactly one order). A door with its caps switched off fails them (runner tests). - SPEC §3.6 (clarification): a place with a state epoch gives a mandate's
valid_fromno forward skew, so restarting a place kept in memory, however often, never counts a used mandate from zero. The remaining window for a place that lost durable state is stated. - SPEC §3.3 (clarification) and SDK: a representative shows a place's
owner_textas a quote from the place, shows theonboarding_urlby its origin and never opens it itself; the SDK's report does so. THREAT-MODEL: a row for leaflet-to-owner phishing, and the worst-case window in which an open seat outlives a card revocation. - Docs:
deploy/SIGNING-PAGE-PLAN.mdreflects the first real-phone session at sign.kigenka.com (October 27) and drops signing on a preview; the doorbell guidance has the front door verify and rate-limit before ringing, and a fixed script pass the agent only verified fields; the key move is described as planned (P24), not existing; platform claims match what was tested; "feature-frozen except for clarifications", with the list in SPEC.md; own-name matching is best-effort; skipped checks are no longer counted as passes; internal message ids removed.
Licensing (pending legal review)
- The whole specification (
SPEC.md,extensions/,conformance/,proposals/,protocol-shapes.ts,THREAT-MODEL.md) is under the Apache License 2.0, like the code; CC BY 4.0 now covers only the explanatory docs indocs/. This fixes a contradiction between the README and NOTICE. - New: PATENTS.md (a draft royalty-free patent commitment, based on OWFa 1.0, for each final specification version; not yet made), TRADEMARKS.md, REUSE.toml and LICENSES/.
- CONTRIBUTING: a rule for AI-assisted contributions (the person signing off is accountable). GOVERNANCE: an intellectual-property section.
- SPDX headers in the specification, the extensions, the SDK sources and the tools; the SDK package now ships NOTICE.
Signing page: the test-stage notice, and a look-only preview (2026-10-28; no wire change)
- Reference signing page:
NOTICE=test-stageshows the test-stage notice fromdeploy/SIGNING-PAGE-PLAN.mdat the top of every screen, before "Create my passkey", with the page's own address and the advance-notice period (NOTICE_DAYS, default 90; the page won't start with less); one line on the done screen; and the full text with its FAQ atabout. Off by default (NOTICE=none), because the wording names Kigenka as the operator. The end-to-end test grew from 36 to 42 checks. deploy/sign-preview/: a static, script-free copy of that page for a separate Vercel preview project, with signing and the browser's passkey feature switched off and the hardening headers set. Prepared, not deployed: the exact deploy and teardown commands, and what needs the editor's OK, are in SIGNING-PAGE-PLAN.md ("Preview deployment").tools/run-all-suites.shchecks the copy hasn't drifted.
F3: a door card the owner signed (2026-10-28; no wire change)
- SDK:
createDoor({ card, keys: { rep }, ownerRpId, cardRevocations })presents a "my door" card the owner signed with a passkey. It takes the reference signing page's file as is, one tap (webauthn.batch) or one by one. The newverifyDoorCard()checks what a door checks for a visitor's card (§2.1–§2.3, §2.6): strict timestamps, the owner's ES256 signature againstowner_binding.rp_id, the owner binding, the protocol, the dates, the representative key and the door's scope. A tampered or mismatched card throwsSHOKAI_DOOR_CARD_INVALID, and a withdrawn one throwsSHOKAI_DOOR_CARD_REVOKED. A verified revocation of the door's own card, delivered in any visit or handed over withdoor.withdrawCard(), closes the running door: an empty listing, and HTTP 503 with an empty envelope. Also new:door.principalIdandfromSigningPage().keys.principalis now optional. - Reference door: a door with an owner-bound card and no principal key signs its notices with its representative key, as a person's door already did.
- New test
packages/shokai/test/doorcard.test.ts(21 checks; it runs the real signing page with a software authenticator). Docs updated: the SDK README, the Grok Bot skill (steps 4–5), the platforms index,scenarios/dual-role.mdand the experience notes.
Names are claims, checked against a real try (2026-10-28; no wire change)
In the round-4 refusal add-on, Gemini 3.5 Flash Lite was seated at an open bookshop to browse with "Ines Calloway" on a card signed by its own key. A local replay of that try (no model calls) checked every surface that names the visitor. The shop's report home said the owner with key …M2ctayJ9 (claims to be "Ines Calloway"; not verified). Its records and log never stored the name, its replies never used it, and nothing about the visitor reached Ines's representative.
- Fixed (reference door): the text a test owner is shown for a peer invitation named the inviter plainly ("Meet Kiran Vale's representative"). It now names them by key, with the name as a claim, both in the host's Appendix B.2 test owner and in the reference server's
answer_invitation. New scenario check. - SPEC §2.1 (clarification): at a place with no proof of who a counterpart is (a checked domain, a checked established-account proof (P23 draft), or a trusted vouch), a display name is always shown as an unverified claim and grants nothing. §7.1: a seat's informative
brand.labelis the visitor's own claim. §13 item 27: the reference still echoes it to the visitor withvendor_warranted: true; changing that changes golden bytes, so it waits for v0.4. FAQ updated. - SDK: new test
claims.test.ts(9 checks): the stranger with Ines's name is labeled on every surface, can't spend, and leaves Ines's representative's seat untouched.
Restarts and recovery (2026-10-27; the wire tag and spec_ref are unchanged)
Found when the field-test computer restarted and rolled its files back a few minutes.
- Reference door: message ids stay unique across a restart (§2.2 MUST). A restarted door numbered its replies from
-h1again, reusing ids it had already sent. A door that restores its state file (or has astateEpoch) now adds a random per-start tag (enc-…-<tag>-h1). A door with no state file is unchanged, so the golden traces stay byte-equal. - Reference door: an act whose seat was lost in a restart gets a clear courtesy text ("That visit is no longer open here; it may have been interrupted when the place restarted. Please knock again…", new key
act_seat_gonein all five locales). The disposition is stillnot_a_fit/SEAT_SCOPE_EXCEEDED, as §7.2 requires. - Reference door: simulated act references no longer repeat. With
uniqueActRefs(the SDK'sDoorsets it), or after a restart, the reference is<tool>-<msg_id>instead of<tool>-<n>. - SDK:
visit.act()throwsSHOKAI_PLACE_UNREACHABLEwhen the place doesn't answer, and marks the visitinterrupted("unreachable", or"seat_gone"when the place no longer knows the seat). The report home says which actions weren't carried out and which got no answer, and that the representative will knock again without repeating a purchase it can't confirm. Interrupted actions aren't counted as refused. - New test
packages/shokai/test/restart.test.ts(12 checks, including a file rollback: a rolled-back door forgets a revocation until the owner's side delivers it again) and example traceexamples/traces/restart.mjs, which kills the demo tea house by its exact pid mid-visit.
rc4 clarifications from a clean-room interop exercise (2026-10-27; the wire tag and spec_ref are unchanged)
- The visitor names the encounter (§2.2, §2.4, §3.2, §3.5; C197, trace G8). The place uses the visitor's
encounter_idin every message and checks the possession proof over it; a visitor that gets a reply in another encounter stops before presenting its card. A clean-room host that minted its own id answered every honest visitornever. - A lobby reply opens with the place's greeting (§3.3). The card order is normative (§3.2): the visitor presents first; the place presents its card in its reply, once the visitor's has verified.
- Latent questions answered as the reference behaves: a new place's state epoch (§3.6); durable act ids at the entry (§3.6); spending under a mandate with no
max_amount, and the §6.7 order before introductions (§6.7); the empty envelope for a discarded message and413as a MAY (§11.1); revocation checks per artifact, and a card revocation that arrives before its card (§2.6); an act whose encounter is gone (§7.2); retrying a refused MCP act (§11.3); seat Money copied exactly, caps not remainders (§6.1). - Informative: who signs what (§2.2 table); what still links per-place identities (§12.3); what the MCP binding uses from MCP 2026-07-28, and §13 item 26 (the
-32040code sits in MCP's reserved range; the runner still probes with the earlierinitialize). - SDK and runner:
visit()stops on a reply in another encounter;placeCheck.okis false (unchecked) when the place answered before showing its card; the MCP gate passesserver/discoverwithout a seat.shokai-conformance: newritual.encounter;lobby.proserequires the greeting first;ritual.grantfails when a prepared visitor is not seated (exceptconditional/considering). - Honesty and copy: the README and docs describe the field tests and the one clean-room implementation as they were, and say what a passkey shows; the seated farewell reads as a welcome; the quickstart shop declares only the data it asks for.
Round 3 of the clean-room exercise (2026-10-27)
- SDK: QUICKSTART.md now ships in the package (
spec/QUICKSTART.md), and the local/startpage names that path. Round 3's first owner journey found the page pointed to a file the package didn't contain. - Conformance: new core check
card.revoked_seat(C198): seat a test owner, deliver its card_revocation, then act in the open seat; the act must be refused deny / not_now with no reason code. A round-2 door without C198 fails it. - Revoking a card ends every open seat it holds (§2.6, §7.1, §7.2; C198, normative). Found by the portability test: an owner moved their representative to a new system and revoked the old card, but the old platform's still-open seat could keep acting until it expired. The reference door ends every open seat of a revoked card when it verifies the revocation; later acts get
deny/not_now, no reason code, retrywith_credential [signed_card]. - Names are claims, never identity (§2.1, §12.1, §12.2; C199, a clarification). Display names, "on behalf of" names, photos and handles are unverified claims; decisions, relationship records and reports home use the verified identifier and show a self-asserted name only as "claims to be …". The security considerations name look-alike names (homoglyphs, typosquats) and say what Shōkai does and doesn't guarantee. New draft proposal P23: identity binding for v0.4.
- Design principle 2 (informative): your representative is yours, next to places first (the later principles move down by one).
- SDK: an
amounton an action the listing marksspends: false(a quote) no longer counts against the representative's mandate ledger or its report (§5.1; an action the listing doesn't describe still counts). Reports home name a place by the identifier the visit verified (a did:web's domain, or a short key), and its display name only as the place's own unverified claim (placeLabel). A door's leaflet link (onboarding_url) defaults toSHOKAI_ONBOARDING_URL, else the door's own local setup page<baseUrl>/start, instead of a placeholder address. The package'sbinpaths no longer start with./.
Round 4 of the clean-room exercise (2026-10-27)
Someone using the owner's own name at the owner's door (§10; C201, a clarification).
- By default such a visitor is turned away (
not_now,POLICY_DENY) and asked for an introduction (a vouch), unless one the door counts came with it, so a real namesake can still be introduced. Neverneverfor a name alone. Nothing is ever granted for the name. - The door now tells its owner at once ("someone used your name here: the owner with key … (claims to be "…"; not verified)").
- New door-policy setting
own_name_visitors:"refuse"(the default, also when absent) or"seat_as_stranger"(opt-in: judge such a visitor exactly as a stranger). Any other value makes the policy invalid. - The comparison ignores case, accents, spacing and invisible characters. Look-alike letters from other scripts are still a gap (P23).
- Found in round 4: a model-played impostor using the owner's name was seated as a stranger, and nothing told the owner.
- The reference host keeps the alert in
ownerAlertsand says it in the report home.
- By default such a visitor is turned away (
Draft proposal P25, door status (v0.4; no rc4 change). Open, closed for now, back at a time, under construction, by appointment, leave a note: a signed hint in the leaflet and the 404 pointer's
here, never a decision. A note goes to the owner's representative and is never acted on automatically.- New reference conformance scenario RC4-N1 (7 checks). The alert is owner-facing and off the wire, so the HTTP runner can't see it.
A
GETat a place's own address names the place (§11.1; C200, a SHOULD in rc4, planned to become a MUST in v0.4). It is still a404with aDoorPointer, which should now carryhere: that place's addresses andmethod: "POST". It is present for an unlisted door too, since the asker already holds the address, and never names another place;placesstill lists only advertised places (C163). Found in round 4: a plain agent fetched an unlisted door's entry, read a404that listed no places as "nobody lives here", and never posted. New conformance checkdoor.404_here(core level, but a warning, not a failure, whenhereis absent, since rc4 is feature-frozen); the reference servers and the SDK'sDoor.handleHttpserve it.SDK: an act at a door reports what the door did (§10). At a §10 door the answer to an offer is a signed
offer_outcome, not anact_result.Visit.act()used to return nothing for it and the report home counted the act as refused even when the door kept the offer. It now returns theoffer_outcome;acceptedandkept_for_latercount as done,declinedanddeclined_reportedas refused, and the report says what the door did with each offer ("The door kept it for later ("Open studio")").SDK and skills, from two clean-room readers. New
exportRepresentativeKey/importRepresentativeKey: the key as one line for the system keyring, read back with the samedid:key; the error never echoes the input.Representative.isDevelopmentOwnersays whencreateRepresentative()signed its own card with a development stand-in.signCardstill defaults to 180 days, now documented (the protocol sets no lifetime), and the skills say to passvalidDays: 90. The skills and the package README name the test stand-in passkey, say where the signing page lives (reference/signing-page/, not in the package) and give its no-phone test path, and explain how to keep the key.Grok Bot recipe (docs only; the spec stays platform-neutral).
- An optional doorbell: a hosted front door
POSTs to a private webhook routine, which wakes the representative; the representative verifies the Shōkai signatures itself and answers through the inbox. - 1Password's approve-each-login and the Vault's approve-each-payment as illustrations of P21 and P22.
- Import Memory as the context half of portability.
- An optional established-account proof from the owner's connected social account (P23 B2): it proves control of the account, not a legal identity.
- Sharing the skill as a Grok Bot template (the skill only, never keys or cards).
- Keys kept in the system keyring, which Grok Bot's own changelog (0.77.0) says survives a recreated computer (not tested by this project).
- An optional doorbell: a hosted front door
v0.4 backlog: push. A narrow front-door key for
held, push toreply_to, and platform wake hooks (platforms index, Open items).
Reference signing page: one tap (2026-10-27, no protocol change)
- The reference signing page lists every waiting item in plain words, then signs them all with one passkey assertion over the batch digest (Appendix A.1, C195, D23, already in the spec); each item gets its own signature copy with
webauthn.batchandbatch_index, and verifies on its own. One by one stays as the fallback and for a single item. 15 new checks inreference/signing-page/test/e2e.mjs(2 to 16 items, no repeats, nothing unlisted, the exact origin, no replay, each copy verifies alone, a copy can't be moved to another item or position). The Grok Bot experience doc, the dual-role walkthrough and the Grok Bot recipe now say "Face ID once".
Docs (clarification only, no normative change)
Several cards per representative (§2.3, informative clarification). The spec never limited how many cards a principal issues or a representative holds; §2.3 now says so: one card per role (its owner's own door, going out) or per place, each signed, scoped and revocable on its own (C198), a place sees only the card shown to it, and accountability stays with the principal (§9.3, §9.4). No rule changed. Cards concept page: One representative, several cards.
The signing page is a test-stage convenience (2026-10-27).
deploy/SIGNING-PAGE-PLAN.mdnow requires a plain-words notice on Kigenka's signing page: it is early and test-stage; a passkey works only on the address it was made on; if the address ever moves, owners are told in advance and given a way to move to a new key signed with the old one before the old address closes; experts can always sign on their own page or with their own domain key. New FAQ entry. New draft proposal P24 (owner key move, v0.4), with the lost-old-key case stated honestly; SPEC §2.6's informative note points to it. No rule changed.THREAT-MODEL section 8, "Does Shōkai stop prompt injection?": what the rules do and don't do against a hijacked agent, each point cited to SPEC.md, with the remaining risk and the owner's mitigations. Linked from the README; a short version in
docs/security.mdand the FAQ.Places-first clarity pass (2026-10-27): the README, SPEC.md's informative opening, terminology, principles and story table, the docs (new How Shōkai works page, concepts, FAQ, glossary, security, architecture), the deploy guides, the extensions index and the diagrams now lead with places, the host at the door and the visitor's self-introduction (
vouch: null, already the normal case in §4); vouching is presented as an optional extra, the lobby briefing as the place's leaflet, and Gatherings and Peer meetings as the room inside a place.scenarios/places-first.mdadds the tea shop as the first walkthrough and (g) the room;proposals/README.mdlists candidates not yet drafted (a meishi exchange in the room). No rule, message or test changed.
v0.3.0-rc4, 2026-10-27
Gaps found in field tests and an expert-style review. The wire tag stays shokai/0.3; spec_ref.version is "0.3.0-rc4". New messages and members are additive (card_revocation, owner_link, webauthn.batch); one behavior is stricter (owner signatures from a cross-origin ceremony are refused).
Specification
- Conventions: the full BCP 14 boilerplate; a Terminology section; decision tags point to the new DECISIONS.md; the lint path is
tools/trace-lint.mjs. A References section (§14) pins MCP revision 2026-07-28 for §11.3. - Card revocation (§2.6, C191). A principal-signed
CardRevocation, delivered by anyone ascard_revocationor listed at the card'srevocation_url. A revoked card isnot_nowwith no reason code, decided before the possession proof (§2.4 step 3a), so a thief never gets the owner bound. An unreachable list fails closed. Owner key loss: standby revocations (informative), proposal P18. - Per-place owner identity (§2.8, C196, D22). Owner identities are per place and unlinkable by key by default; an
OwnerLinksigned by both passkeys joins two of them for one place, carrying records and nevers. - Durable state (§3.6, C192). A place keeps its ledgers, nonces, nevers and revocations across restarts, or refuses mandates valid before it lost them (
MANDATE_INVALID). - Acts (§7.2). The check order is fixed (C193): an act with no seat gets the seat's refusal whatever its arguments. Every admitted act counts one operation; a service refusal releases operation and amount together (C194).
- Owner signing profile (Appendix A.1, C195, D23, D24). Exact origin;
crossOriginabsent or false; notopOrigin; optional one-tap batches of 2–16 items. New SIGNING.md for signing pages. - §12 is now Security and Privacy Considerations, with normative requirements. §13 adds items 22–25 and calls the hand-written traces illustrative.
- Feature freeze (2026-10-27). No new features, members or proposals enter rc4; from here to v0.3.0, changes are for clarity, correctness and packaging only.
- What to implement. The spec's first page, the README and the extensions index now say what is core (required), which extensions are stable and which experimental (Teaching visits, Signed place listings, W3C VC mapping), and that proposals are drafts. Each extension states its status.
- Prose as evidence, never as authority (§6.5, §10; a clarification). The one place prose is read, an inbound door judging a brand's signed offer, is now explained where the rule lives: fixed checks over the signed bytes, whose result can only lower or cap an offer's outcome and never admit, accept or authorize anything.
- Golden traces. G1–G5b and M1, and fixtures F1–F6 and F9, now carry real DIDs, digests and signatures made by the reference code with public test keys (a Test parties table lists them); the replay verifies every signature and possession proof, M1's revocation log chain, and every gate digest (§13 item 5 updated). F9's key is now its own visitor's. L1 and H1–H2, and fixtures F7, F8 and F10–F12, followed in the same release: no placeholder bytes remain in the traces. L1's mandate, Seeking reference and card digest, and H1's cards and possession proofs, are checked; the input digests of the decisions no place replays (L1, H1, H2) are of labeled stand-ins.
- Signing-page wording: sign.kigenka.com is opened for guided signing sessions while Shōkai is a draft, with no uptime promise; the reference signing page lets anyone run their own.
Reference and SDK
- Reference host: card revocation (delivered and fetched),
durableState()/restoreDurable(),stateEpochrefuse-on-loss,releaseAct(), OwnerLink verification, batch and cross-origin checks. The reference server persists each place's state and prefetches card revocation lists. - SDK:
DooroptionstateFile(memory-only doors refuse mandates older than the door); prefetches the card'srevocation_url; mandates are valid from the moment of signing (no back-dating). Conformance runner checksact.orderandcard.revoked. - Tests:
v030rc4(52 checks), SDK state tests (6). - SDK owner helpers:
signCardRevocation(and standby),cardRevocationMessage,signOwnerLink,passkeyRequest/signedFromPasskeyAssertion, and@kigenka/shokai/browser(signWithPasskeywith a real passkey, WebCrypto only). Tests: owner (12). shokai demo: a door and a visitor on 127.0.0.1, printed, in about two seconds;shokai visit <door-url>for a demo door elsewhere. Tests: demo (7).reference/signing-page/: the reference passkey signing page (SIGNING.md profile, no dependencies), with a software-authenticator test (19).- Reference pilot server: keeps each place's durable state across restarts and refuses on loss (§3.6), and prefetches card revocation lists from its fetch allow-list only (§2.6). Tests: pilot persistence (6).
- Vectors:
passkey_profileinconformance/test-vectors.json(A.1, C195): crossOrigin false/true, topOrigin, an origin with a port, http, a subdomain, and a one-tap batch with its negatives (12 checks; also run by the conformance runner asvec.passkey_profileand against the reference signing page). Generated once bytools/gen-passkey-profile-vectors.mjsand frozen. - SDK MCP gate: releases an act the MCP server did not carry out (JSON-RPC error,
isErrorresult, 4xx/5xx with no result), operation and amount together (§7.2, C187, C194);releaseOnoption; SSE responses are not inspected. Tests: gate release (8). - Golden replay (Part A) runs under real verification:
reference/engawa/test/golden-keys.ts(the test keys) andgolden-gen.ts(the regenerator); a new row checks the bytes. - SDK door fetches:
httpsonly, and never a loopback, private, link-local or metadata address literal or alocalhost/.local/.internalname (a hardening toward proposal P8; refused means unreachable, which fails closed), read for at most 2 seconds and 256 KiB (§12.2 now notes these bounds, informative). Tests: fetch policy (9). deploy/HOST-A-PLACE.md: host a real place (stable keys, durable state, limits, a kill switch, egress);npm run quickstartnow runs itsplace.mjsas written, visits it with the quickstart's scripts and runs conformance against it. The demo place gainsKEY_DIR(stable keys,keys.mjs; 10 checks)..github/workflows/release.yml: publishes on a version tag with provenance, behind a reviewer-gated environment. Not run.deploy/: a demo place (simulated tea shop; rate limit, body cap, kill switch, durable state; 9 checks), the copy-paste prompt for any agent, and a deployment plan. Nothing is deployed. RELEASING.md: the package is publish-ready and not published.
Proposals (not normative)
- P18 owner key continuity; P19 asynchronous alignment (deferred, not before v0.4).
- P20 representative continuity and history (draft; D25 partly decided): full history export as a duty of a Shōkai-compatible agent (memory export SHOULD, envelope only); owner-signed succession that can only add to a record; an optional handover ceremony inspired by hikitsugi, in which the retiring representative introduces its successor at places the owner approved, with an optional farewell note and a lineage kept in the owner's history; several representatives per owner; an honest Sybil statement. Continuity is planned as an optional v0.3 extension; place receipts are deferred to v0.4. Sketch vectors checked by
tools/p20-sketch.mjs(21 checks). - DECISIONS.md: D25 (partly decided) and D26 (rc4 limits accepted as documented).
v0.3.0-rc3, 2026-10-26
Fixes from a clean-room implementation: a door written from the specification alone, without the reference code, by a sandboxed agent run by the editors (not by another organization). It passed every core check, but it had to guess where the text was silent, and it couldn't offer MCP because the text never defined how. The wire tag stays shokai/0.3; spec_ref.version is "0.3.0-rc3". Message shapes are unchanged; some answers are now fixed where they were open.
Specification
The MCP binding is normative (§11.3, checks C179–C182). A place that serves seated tools over MCP names its endpoint in its listing (
linksrelmcp-server, same origin as the entry). Eachtools/callcarriesShokai-Act: a signed act, base64url, whose tool and arguments digest match the call. The gate checks it as an act at the entry, plus ±300 s freshness and single use.tools/listwithShokai-Seatlists only the seat's tools; without one, the place lists every tool or none, and never refuses the listing. A refusal is HTTP 200 with JSON-RPC-32040anddata.shokai{refused_by, decision, disposition, reason_code, door, entry, act_decision?}. A spending tool'samountis in the call's arguments, under the act's digest. The "future work" notes in §11 and §13 are gone.One message per POST (§11.1, C183): a JSON array or a batch envelope is a malformed body and gets the lobby; nothing inside it is handled.
A good digest with a bad signature (§2.2, C184) gets the lobby, in a new lobby encounter, and never changes an encounter. Before, it got no reply; only a digest mismatch goes unanswered now.
REQUEST_INCOMPLETEretry (§5.3, C185): alwayswith_credential [signed_mandate], with a table of what to fix for each cause.Probing (§9.3, C186): shapes counted per principal across its representatives. The request that makes the Nth shape is answered
never, and the principal is then bound at that gatekeeper for 180 days. Appendix B.7 lets a place in a conformance run declarex-test-probing: "off"; the tester then skips probing checks.Price and stated amount (§7.2, C187): the gatekeeper counts the stated amount, never the price. The service never charges more, may charge less, and reports its own refusal as the act's result, not an
act_decision.Mandate cross-checks (§5.1, C188), all
MANDATE_INVALID:- a mandate for another
card_id; counterpartiesthat leave out the place;- a non-spending purpose with
max_amount.
Also defined: a request in another currency gets a conditional
lower_limit, andper_operationapplies only when the mandate says so.- a mandate for another
Act refusals (§7.2, C189) now have fixed reason codes:
- unknown seat or a tool outside the seat →
not_a_fit/SEAT_SCOPE_EXCEEDED; - expired seat or limits used up →
not_now/SEAT_SCOPE_EXCEEDED; - missing amount →
REQUEST_INCOMPLETE; - someone else's encounter → the outsider
RITUAL_ORDERdeny.
- unknown seat or a tool outside the seat →
The encounter lifecycle (new §3.5, C190): after a grant, deny or considering, another request is
RITUAL_ORDER, and the seat lives on.Gate-input and relationship digests are local to each gatekeeper and never compared across places (§6.4).
One-sentence clarifications for the small things the implementer had to decide:
- what
tois checked against, freshness, exact redelivery, key mismatch, and that nonce reuse binds nothing; - lobby addressing and the place's greeting (no
in_reply_to); - the outsider deny's shape,
not_a_fitfor policy, codes on a conditional,locale_matchfallback vs none; - seat fields and lifetime,
PlaceListing.door, the onboarding URL, the inbox body.
- what
C55 no longer requires a
visit_receipt(it is optional in the core, §3.3).Editorial: stale "Appendix A.4/A.5" references now point to A.1 and the vectors'
key_derivation; B.6 no longer links a document outside the bundle; the golden traces and the types name the current version.
Conformance runner (shokai-conformance)
- MCP checks (
mcp.*). They run when the listing advertises an endpoint, or when one is named with--mcp <url>; otherwise they are skipped. - New core checks:
body.batch,lobby.bad_signature,neg.bad_signature,request.incomplete,mandate.cross,seat.unknown,lifecycle.again,neg.probing. - The verdict is the core's. Extension failures are reported on their own and never print "NOT CONFORMANT". Exit codes:
- 0: conformant;
- 1: a core failure;
- 3: only an extension failed.
- The
--vectorsimplementationinterface is documented, in--helpand the types.isTimestampandisMoneyare now called with one argument, not as array callbacks. - The runner turns off its own representative-side checks, so
seat.outsideandseat.no_spendtest the door. Before, the SDK's local seat check could refuse the act first.
SDK (@kigenka/shokai 0.3.0-rc.3)
shokaiGateadds themcp-serverlink to the place's listing, unless the place already lists one or passesadvertise: false.- The reference door answers a bad signature with the lobby (C184).
- New tests:
- reference suite
v030rc3(33 checks); - runner tests against the gated toy server, a gate that checks nothing, and a gate with no freshness window.
- reference suite
Tooling
tools/check-links-versions.mjsruns in CI and innpm test. It checks that every relative link in the specification bundle resolves inside the bundle, and that every current-version string names the same version.
v0.3.0-rc2, 2026-10-26
Fixes from the first field test, in which an outside agent with only the docs and the SDK package set up a representative and visited a place. The wire tag stays shokai/0.3; spec_ref.version is "0.3.0-rc2".
Specification
- How an act states its amount (§7.2, check C174): a spending act carries
amount({value, currency}, exact decimals), which the door counts against the seat's cap. A door MUST refuse a spending act with no amount (not_now/REQUEST_INCOMPLETE, retrywith_credential [signed_mandate]), so an act can't spend uncounted. - A mandate's limits bind across visits (§5.1, check C175): a door counts each mandate's operations and amounts across every seat granted under it and refuses an act that would pass them (
SEAT_SCOPE_EXCEEDED), even in a new seat. Presenting a mandate again never renews it. - The representative's mandate ledger (§5.1, §8.2, check C176): a representative keeps a ledger per mandate, doesn't attempt an act beyond what remains, and reports every act done under a mandate; a report covers every visit under it (
VisitReport.under_mandate, new optional member). - An amount in another currency (§7.2, check C177): an act whose amount is in another currency than the seat's (or mandate's) cap is refused
not_now/SEAT_SCOPE_EXCEEDED, neverREQUEST_INCOMPLETE(an amount was stated), and counts nothing. No new reason code. - What was brought back (§8.2, check C178): a report SHOULD list each signed object received and kept for the owner, such as a visit stamp (
VisitReport.brought_back, new optional member: the envelope or its digest, the signer, whether it verified against the listed principal).taken_homestays for matters awaiting the owner's decision. - Visit reports (§8.2): new optional members
spent(the exact sum of the spending acts' amounts) andshared(what left the owner's side: the card, the mandate, each act's arguments). An informative note: when nothing is pending, the next step says so.
SDK (@kigenka/shokai 0.3.0-rc.2)
visit()checks the place against the listing entry it followed before it sends any request (§3.1, C104): every reply must be signed by the listed representative, and the place's card must be signed by the listed principal, name that representative and prove possession over this visit's nonce. On a mismatch the visit ends with nothing asked;visit.placeChecksays why.visit()takeslimits(for examplemax_amount) andmandate: { statement, validSeconds }; the mandate it signs defaults to one day, not thirty.signMandatetakesvalidSeconds.report(locale, { timeZone }): an owner-readable outcome (what was granted, what was done and refused, what was spent of what was allowed),spent,shared, the owner's time zone, and a next step that doesn't ask for approval when nothing is pending.- A per-mandate ledger (
rep.ledger,memoryLedger,fileLedger): a secondvisit()for the same errand presents the mandate the representative already holds;useMandateandmandate: { fresh: true }choose otherwise. An act beyond what's left of the mandate isn't sent.report()covers every visit under the mandate (under_mandate). - What comes home: a signed object a tool returns (a visit stamp) is kept in
visit.broughtBack, verified against the listing's principal, and reported inreport().brought_back(envelope, or{ broughtBack: "reference" }for the digest) and in the readable text;visit.keep()adds one by hand. - Checked before sending: the representative checks the seat's tool allowlist (
visit.checkSeatLocally, default on) as well as what remains of the mandate (visit.checkMandateLocally, default on) and doesn't send an act that wouldn't fit. A currency mismatch is named as such. - Refusal messages: every MCP gate refusal is still JSON-RPC −32040 (now also exported as
SHOKAI_REFUSED), but each class has its own message (only a call with no seat is told "get a seat first"), anddata.shokaicarriesrefused_byandreason_code.actRefusalMessage()is exported. shokai-conformancewith a URL and--vectorsends with a line saying the vectors say nothing about the door.shokai-conformancechecks that a mandate's limits bind across visits (seat.mandate_across, usingmax_operationson a non-spending action, so nothing is bought).@kigenka/shokai/coreresolves (it was missing its index).- The specification ships in the package, in
spec/, and a compiled example indist/examples/. shokai-conformancechecks the place against its listing (ritual.place_id), and says when--vectorsran on its own crypto rather than the door's.
Reference code
- The reference door refuses a spending act with no amount (C174).
- The reference door counts each mandate's use across seats (C175).
- A reference test for a currency mismatch (C177).
Docs
- The specification, the types, the conformance checklist, the extensions, the threat model and the changelog are rendered in the docs site, and the quickstart is the docs' quickstart page.
- New: which purpose to ask for (
visitation,inquiry,purchase), asking for a spending limit, what a listing entry carries (needs,spends,data_asks), checking the place, open tool listings, that the farewell ends the ritual and not the seat, what a report says was shared, the conformance levels and what the runner covers,relvalues as free-form hints, and how a visitor's principal links its visits. - The quickstart uses
visitation, adds a visit that spends within a limit, installs from the package file, and links only to files a reader has. - Places shouldn't copy an MCP client's label (
clientInfo.name) into anything they sign. - New: a visitor path in the quickstart (visiting a place someone else runs),
namevsdisplay_nameand the base URL vs the listing, a mandate's limits across visits, what a report covers, and the visit stamp as a place pattern (its result, its fields, and checking it against the listing's principal). - From the red-team pass: the quickstart's tools are
menu.viewthroughout; the trailing slash on a base URL; what a passing--vectorssection means against a URL; card scope vs mandate; what each refusal says and how to test a door's own enforcement; the stamp'sagent_nameargument; that stamp serials count place-wide; and what a report lists as brought back.
v0.3.0-rc1, 2026-10-26
The first public release candidate.
Breaking
- The protocol is named Shōkai. The wire tag is
shokai/0.3; earlier drafts used a working name and a different wire tag. Cards signed under the earlier drafts must be re-signed. - Sections are renumbered into the order of a visit: Arrive (§3), Introduce (§4), Ask (§5), Answer (§6), Act within limits (§7), Report home (§8), Conduct has consequences (§9), the inbound door (§10), the HTTP binding (§11). Appendix D maps the old numbers to the new ones.
- The specification is a small core plus eleven optional extensions (Gatherings, Peer meetings, Teaching visits, Profiles and evidence, Seeking, Visit receipts, Door gifts, Signed place listings, Revocation status, Meaning notes, W3C VC mapping), each with its own conformance level.
Specification
- Declared data asks: each action in a place's listing SHOULD say what personal data it will ask for (
data_asks, §3.1, check C172). - A lobby's
visit_receiptis optional. - Lobby templates and the sincere-approach heuristics are informative (Appendix C).
- Inbound-door defaults decided: reputation stays local, brands learn only the outcome code, paid introductions get no extra priority, no shared track records, hidden text is shown behind a visible marker, and reason categories are given except for reported declines (§13 item 19).
- Security considerations (§12) are backed by a STRIDE threat model.
New
@kigenka/shokai, the TypeScript SDK: signed cards, mandates, vouches and envelopes; doors and representatives; visit reports; and@kigenka/shokai/mcp, a gate that puts a Shōkai door in front of any MCP server.shokai-conformance, a conformance runner for any door: core HTTP checks tagged by scenario, opt-in extension checks and the test vectors.- QUICKSTART.md: a door and a visit in about five minutes.
- Contributor documents: CONTRIBUTING (DCO), GOVERNANCE, SECURITY, CODE_OF_CONDUCT; CI for every suite and the quickstart.
Tested
- 814 conformance and scenario checks across the reference place server, the narrated prototype and the HTTP binding pass (2 deferred checks are skipped); every normative statement is traced to a scenario, a golden trace or a check.
- Two red-team rounds: 72 of 72 and 44 of 47 attacks held. The three that don't are browsing by many agents or owners, which stays open by design (see the threat model).
v0.1 to v0.2.10, October 2026
Pre-release drafts under an earlier working name: the scenario catalog, the normative specification, five rounds of clean-room testing by testers who saw only the specification, the HTTP binding, a local pilot, two red-team rounds and the inbound door. SPEC Appendix D maps their section numbers.