Skip to content

Releases

Shōkai package 0.7.8

Choose a tag to compare

@Humanoidme Humanoidme released this 02 Dec 08:36

Shōkai package 0.7.8 (2 December 2026)

A toolkit package release. The specification stays v0.5.0 on the wire (wire tag shokai/0.5).

Install: npm install @kigenka/shokai@0.7.8

Visitors should use 0.7.8, because 0.7.6 does not hand over the actual keepsake files.

What changed

  • Real files at homecoming. The toolkit downloads each file the place lists, checks its size and fingerprint, saves it, and tells the agent to hand it over as an attachment: the stamped postcard image first, then the purchase confirmation if there was one, then the keepsakes the owner chose. After the files are in the owner's hands, visit homecoming --delivered records the handoff. The place can accept that note after leave, and a retry returns the same acknowledgment.
  • Turns read in order. The toolkit reads every numbered turn, including per-room numbers, starts over from the beginning if a number is missing, and saves its place after the whole batch.
  • Closing turns. The farewell and take-home turns are read before leaving, and leave can also return those closing turns.
  • Owner presence. The place can say whether the owner is here, kept apart from the agent's own report that it shared the journey link.
  • The at-door line. The toolkit builds say_to_owner_at_door from the journey address so the agent can share the link once before knocking.

Files

  • kigenka-shokai-0.7.8.tgz, the package published on npm
  • kigenka-shokai-0.7.8.sha256

SHA-256 of the tarball: 5600cef44aaad788044456e659c072c9e49e547d0fb9fa1bfd1ff3c0672799f5

More

Shōkai package 0.6.1

Choose a tag to compare

@Humanoidme Humanoidme released this 26 Nov 05:07

Shōkai package 0.6.1 (25 November 2026)

A package patch release. The specification stays v0.5.0 on the wire (wire tag shokai/0.5), so a 0.6.0 peer and a 0.6.1 peer keep talking to each other. Unlike 0.6.0, this release changes the SDK's compiled code.

Install: npm install @kigenka/shokai@0.6.1

What changed

  • Visitor safety against trap places. The specification now 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 (SPEC-DETAIL §12.5, checks C302–C310; THREAT-MODEL §10).
  • The owner is never asked for numbers. The visitor derives its own take-home budget from the kind of errand. The owner's brief can be one sentence or absent.
  • Heavy or unusual content asks first. A PDF, audio or video, an archive or program, or a large download is not brought home until the owner has said yes in plain words (C310).
  • No anonymous doors. A door's addresses name a domain, not an IP address, and the door is served with a certificate valid for that domain (C311–C314). A door that started on an https IP address under 0.6.0 will not start under 0.6.1: put it behind a domain name.
  • A 1 MiB reply cap. The default HTTP transport and the MCP client refuse a larger reply whole, with SHOKAI_PLACE_REPLY_TOO_LARGE (C305).
  • Corrected spec_ref.url. The reference implementation and the SDK now emit the published address, https://shokaiprotocol.com/docs/spec-detail, in place of a placeholder that did not resolve.
  • TakeHome and the take_home report member. New in the SDK, optional. A visitor that never passes takeHome gets the reply cap, the corrected address and the domain-name rule, and nothing else. Validate reports with the new schema file schema/v0.6.1/schema.json.

What this does not claim

The official conformance run is unchanged: 30 of 164 Core Door checks measured, all 30 passed, 132 unmeasured. That run predates this release. The new checks (C302–C314) are measured offline, in process, by the SDK's tests and the trap-places harness (C312, the certificate check, is measured by no offline test). The official runner measures none of them, and this release claims no certification.

Files

  • kigenka-shokai-0.6.1.tgz, the package published on npm
  • kigenka-shokai-0.6.1.sha256

SHA-256 of the tarball: 47607771a09162564304071176138a91df1b7bc4d2f9fc663d81eeea3eae3eb1

More

v0.5.1

Choose a tag to compare

@Humanoidme Humanoidme released this 11 Nov 22:03

Shōkai SDK 0.5.1

@kigenka/shokai@0.5.1 is a patch release of the SDK. The specification stays v0.5.0: the wire tag is still shokai/0.5, spec_ref.version is still "0.5.0", and a 0.5.0 door or representative can still talk to a 0.5.1 one. The JSON Schema gets a new file, schema/v0.5.1/schema.json, with its own $id (see below). We recommend 0.5.1 for everyone on 0.5.0.

npm install @kigenka/shokai@0.5.1
npx --no-install shokai --version   # @kigenka/shokai 0.5.1 (shokai/0.5, spec 0.5.0)

What's new, in plain words

  • A "never" answer now says when it ends and where to appeal. When a place refuses a representative for good reason (for example, it showed someone else's Shōkai visitor card), the answer now carries an end date, at most 180 days away, and the place's appeal address. Appealing doesn't lift anything by itself; the place decides. On the wire these are the optional retry.until and retry.appeal members of a binding never (SPEC §9.3).
  • A pasted login session is refused. If a representative's request carries its owner's session token or cookie, the door refuses that request with the reason CREDENTIAL_NOT_ACCEPTED before the place's own service sees it. The same request without the session goes through.
  • A place may not ask for a password, a recovery phrase or a card number in its context questions. A door refuses to start with such questions, and a visiting representative won't carry such a question home; it tells its owner the place asked (SPEC-DETAIL §6.12). This rule is a MUST in 0.5.1.
  • "Pass" in the words people read. Messages from the SDK, the MCP gate and the command line now say pass where they said seat ("get a pass first", "not in this pass"). The wire field is still seat, and reason codes such as SEAT_SCOPE_EXCEEDED are unchanged, so code that reads fields keeps working. If you matched on the old English text, update it.
  • Spec copies in the package are refreshed: the byline, the pass/seat headings and the threat model, with outdated wording removed.

A place still answers with one of the same five statuses: grant, conditional, deny as not_now, deny as not_a_fit, and considering.

0.5.0 doesn't have these changes. Both red-team fixes and the §6.12 rule are in 0.5.1.

A new JSON Schema file: v0.5.1

The new optional fields need a new schema file, so 0.5.1 adds one rather than changing the old one:

  • schema/v0.5.1/schema.json ($id https://github.com/Kigenka/shokai/blob/v0.5.1/schema/v0.5.1/schema.json) describes 0.5.1 messages. It's the file the package ships as @kigenka/shokai/schema.json.
  • schema/v0.5.0/schema.json is unchanged, byte for byte, with the same $id as before.

If you validate messages with the 0.5.0 schema, switch to the 0.5.1 file. The 0.5.0 schema rejects a never reply that carries until and appeal. The 0.5.1 file accepts those fields and every message the 0.5.0 file accepts. It also stops requiring in_reply_to on the lobby's answer to plain prose or a malformed message. The specification already said that answer must not carry in_reply_to, but the 0.5.0 schema required it.

The SDK itself doesn't validate against the schema. A 0.5.0 SDK visiting a 0.5.1 door reads a never reply normally and ignores the two new fields.

Checks for this release

  • SDK tests: 1275 passed, 0 failed.
  • Attack harness: 93 attacks, 90 held, 3 accepted as known specification-level limits (S1, S2, S4; see the threat model), 0 broke.
  • The ten recorded example traces re-run against the packed 0.5.1 file: every check held (85 of 85). Every signed message and artifact they produced (384) validates against the 0.5.1 schema.
  • The quickstart, run as written from a fresh install of the packed file.

The package file

Attached: kigenka-shokai-0.5.1.tgz, the same bytes as on npm and on the site.

  • sha256: e8a407fc2431464103eae23fc14eae64da1ffe6c704c300259a3fd538255dfa4
  • npm integrity: sha512-XcBGkD9UeDiuU/h1NN1gMrgyMbd1f+nkcxpFxKyy80cQLyQcN416NnO1JEBPhxJmUjWu02rQOE1DT0QqftK5ew==

Check it with sha256sum kigenka-shokai-0.5.1.tgz, or npm view @kigenka/shokai@0.5.1 dist.integrity.

Full list of changes: CHANGELOG.md.

v0.5.0

Choose a tag to compare

@Humanoidme Humanoidme released this 11 Nov 03:30

Shōkai 0.5.0 is published as @kigenka/shokai@0.5.0 on npm under the latest dist-tag.

  • Registry time: 2026-11-11T03:26:30.293Z (7:26:30 PM PT / America/Los_Angeles on 10 November 2026)
  • Tarball sha256: 259b414dfe78beb5a50a5b87a5c66c505dca73e2f34d6889622600904c22143b
  • npm shasum: 5575c9588a5144442e8f53b2fad74e2890d86e26
  • Wire: shokai/0.5. Places should keep accepting shokai/0.3 through 9 February 2027 (the UTC publish date plus 90 days).

Install: npm install @kigenka/shokai@0.5.0 or npx @kigenka/shokai demo. See CHANGELOG.md and the compatibility page for what changed since 0.3.0.

Shōkai v0.3.0

Choose a tag to compare

@Humanoidme Humanoidme released this 28 Oct 20:00

Shōkai v0.3.0

Release notes for the GitHub release of tag v0.3.0, 2026-10-28. Shōkai, the agent introduction protocol, from Kigenka.

This is the first release of the 0.3 line: the specification, a TypeScript SDK on npm, a conformance runner and a reference place. It is a released version, not 1.0. Review continues, and changes go into later versions.

In plain words

A place keeps a door. An agent arrives on someone's behalf and 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.

Try it

npx @kigenka/shokai demo          # a door and a visitor on your machine, in about two seconds
npm install @kigenka/shokai       # build a door, a gate in front of your MCP server, or a representative
npx shokai-conformance <url>      # check a door against the core

Then follow QUICKSTART.md, from a clean machine to a seated visit and a report home.

What's in it

  • The core specification (SPEC.md): identity and the signed envelope, the door and the leaflet, self-introduction and optional vouches, mandates and limits, the decision, seats and acts, reports home, conduct, the HTTP and MCP bindings, passkey signatures and test vectors. Every MUST and SHOULD is tied to a scenario, a golden trace or a conformance check.
  • Eleven optional extensions: eight stable (Gatherings, Peer meetings, Visit receipts, Revocation status, Door gifts, Seeking, Meaning notes, Profiles and evidence) and three experimental.
  • @kigenka/shokai 0.3.0 on npm: doors, representatives, owner helpers, an MCP gate, shokai demo and the conformance runner shokai-conformance.
  • Reference implementations: a place server, a prototype, and a passkey signing page you can run on your own domain (SIGNING.md).

Compatibility

The wire tag is shokai/0.3. Nothing on the wire changed from 0.3.0-rc4, so a peer that names "0.3.0-rc4" in spec_ref.version speaks this text, and the conformance runner accepts it with a note (SPEC §3.1). Release candidates rc1 to rc3 lack later additions of the 0.3 line (§2.6, §2.8, §3.6, §7.2). The full list of changes is in the CHANGELOG.

The package

Package @kigenka/shokai@0.3.0 (dist-tag latest), 85 files
sha256 of the tarball f4b12f8dc722db2fcaf9110ab9eb372478311b5c5e3f4086d6ae883ebfc0d515
npm shasum (sha1) fa3ac40e9c0a6fcae497d7003fb2476ca2e05e62
Provenance None for this first publish (it was published from a laptop, before the repository was public). Later releases are published from CI with provenance; see RELEASING.md.

You can rebuild it: check out v0.3.0, run npm ci in packages/shokai, remove "private": true from its package.json (npm pkg delete private) and run npm pack. With npm 11.21 (the version it was packed with) the tarball is byte-identical; with another npm, compare the contents.

How it was tested

Every suite passes on Node.js 20, 22 and 24: the reference's vectors, golden traces and scenarios, the core conformance checks, the SDK, the signing page end to end, and the quickstart run exactly as written. Outside agents (Hermes Agent, OpenClaw, Muse and Grok Bot) were seated at fictional test places, and the author signed real cards with his own passkey. What we tested, what broke and what we changed: Field tests and Review history.

Known limits

  • No outside implementation or review yet. All testing so far was done inside the project. This is the most useful thing you can help with.
  • Shōkai makes deception costly and traceable, not impossible. The accepted risks are in the threat model, and the open questions in SPEC §13.
  • No public demo door yet, and sign.kigenka.com opens only for guided signing sessions, with no uptime promise. The reference signing page lets anyone run their own.
  • PATENTS.md is a draft, pending legal review.

Thanks

To everyone who reads the specification, tries the package, or tells us where it's unclear or unsafe. Open an issue, start a discussion, or report a vulnerability privately (SECURITY.md).

Author: YSY. Stewarded by Kigenka. Code and specification under the Apache License 2.0; documentation under CC BY 4.0.