Compatibility and versioning
This page states the rules a protocol implementer needs when adopting v0.5.0, including how it relates to earlier wire tags.
Which document is canonical
The tagged GitHub release is canonical (github.com/Kigenka/shokai, tag v0.5.0), and within it Specification detail (SPEC-DETAIL.md) is the normative text. This site and the npm package mirror that tag. It holds every MUST and every check id (Cnnn). The short core (SPEC.md) is a staged 15-minute read of the same rules, and where the two differ, SPEC-DETAIL wins. Check ids are shared across all documents. This page, the Quickstart and the docs are informative summaries. The wire-tag rules below are SPEC-DETAIL §11.1 (C254), and the status rules are §11.3 (C291).
What is versioned
| Thing | Identifier | Today |
|---|---|---|
| Specification | spec_ref.version on door pointers, listing entries and the lobby | 0.5.0 |
| Wire dialect | protocol on every message and signed object | shokai/0.5 (and shokai/0.3 during the window) |
| SDK package | @kigenka/shokai | 0.7.11 published on npm |
| Extensions | status per extension: stable, provisional, experimental | see each extension's header |
How a visitor and a place choose a tag
- The place says what it accepts. A v0.5.0 place SHOULD list
accepted_tagson each listing entry and in its lobby briefing (for example["shokai/0.5", "shokai/0.3"]during the window). - The visitor starts with
shokai/0.5. It speaksshokai/0.3only if the listing entry names aspec_ref.versionbelow 0.5.0 and noaccepted_tagsthat includeshokai/0.5. It MAY retry once withshokai/0.3, in a new encounter, after a version-mismatch lobby whosespec_ref.versionis below 0.5.0. Neither fallback happens on its own when the visit can spend (max_amount) or the owner setmin_protocol(H1). - No downgrade. A visitor MUST NOT fall back to
shokai/0.3with a place that advertises 0.5.0 or later (byspec_ref,accepted_tags, or a host card signed withshokai/0.5). It ends the visit and reports it instead. - A mismatch is never silent. A message whose
protocolthe place doesn't speak gets the lobby, naming the version the place speaks (C102). - Replies keep the tag. A reply to a
shokai/0.3message carriesshokai/0.3and nothing new in 0.5.0. Signed objects are presented exactly as signed.
Editor decisions H1–H3
Three editor decisions, accepted November 5, 2026 for 0.5.0
They are written in SPEC-DETAIL as normative text, each labeled "Editor decision" with its status. H1 is in force in the 0.5.0 SDK; H3 has one open question (below).
H1: no fallback when money is at stake (accepted; checks C297–C299).
- Ordering. Tags compare numerically, never as strings. Every
shokai/0.Nis belowshokai/1, andshokai/0.10is aboveshokai/0.5(C299). - Spending visits. When the mandate or request carries
max_amount, the visitor never falls back toshokai/0.3on its own: not on an old listing and not on a version-mismatch lobby. The owner can allow it for one visit explicitly (C298). - Owner floor. An owner MAY set
min_protocol: "shokai/0.5"in the representative's settings or a mandate (listed incrit). Then the representative never speaksshokai/0.3, even at first contact (C298), and a place MUST refuse a 0.3 request carrying it (C297). - The SDK's tests cover C298 and C299. A black-box runner check for C297 is planned for 0.5.x.
- Ordering. Tags compare numerically, never as strings. Every
H2: stability before 1.0 (accepted; core and stable extensions only). No one is required to support more than two wire tags at once. A published window is never shortened, including by a later release (the release date is the day 0.5.0 first appears on npm, under any dist-tag):
shokai/0.3's window ends no earlier than the date already published. Retiring a tag needs at least 90 days' published notice. A 0.6 place keepsshokai/0.3only within its published 90-day window (SHOULD), and may refuse it after. Breaking changes come only in a new minor version, with a changelog entry and a window. At 1.0, the tagshokai/1freezes for 1.x. Provisional and experimental extensions keep their own rules.H3: signed listings (accepted; key ownership open). In 0.5 a place SHOULD sign its listing, and visitors SHOULD prefer signed listings. Signing becomes a MUST for every Core Door at 1.0, but only once the extension is stable. Stable means:
- no incompatible wire change for at least one minor release and 90 days;
- two independent implementations (one not the reference SDK) pass its checks;
- checks and vectors cover signing, verification, and a forged or replayed listing;
- the trust question is decided.
If any of these is missing at 1.0, the MUST waits for a later 1.x. Open question: which key signs the listing, and how a first contact trusts it (one candidate: the host-card key, with HTTPS).
Downgrade risk, and what limits it
A listing is unsigned unless the place uses the signed place listings extension. So during the window, a forged listing or a network attacker could claim a spec_ref.version below 0.5.0, and steer a visitor into shokai/0.3. That dialect has none of 0.5.0's holds, idempotent repeats or trust receipts. What limits this:
- The host card wins. A visitor that has verified the place's Shōkai host card signed with
shokai/0.5MUST NOT downgrade, whatever the listing says. Signed listings close the gap for the listing itself. - A forged version-mismatch lobby is a second vector. At first contact the visitor can't verify that a lobby came from the place. It MAY retry once with 0.3, but never when the visit can spend (
max_amount) or the owner setmin_protocol(H1). - A 0.5 lobby never means "try 0.3". A lobby naming 0.5.0 or later ends the visit instead of falling back.
- It shows in the report. The report home says the visit ran under
shokai/0.3and lists the protections that were missing, so an owner can see it. - Use HTTPS. Fetch the listing over HTTPS, and pin known places' host cards (C241), to cut out the network attacker.
- Money is never downgraded on its own (H1). A spending visit doesn't fall back; with
min_protocol, even a first contact can't be downgraded. - It ends with the window. After the window, a 0.5 receiver may refuse
shokai/0.3entirely.
The MCP refusal code is per door, not per tag
The JSON-RPC code on a refused tools/call belongs to the door's implementation version, not to the encounter's wire tag. MCP errors aren't Shōkai-tagged messages. A 0.5.0 door answers -32012 to every visitor, including one in a shokai/0.3 encounter. A 0.3.0 or 0.4.0 door answers -32040. A 0.5.0 visitor MUST treat both as the same refusal, and reads the reason from data.shokai (SPEC-DETAIL C181).
Over the limit: refused, or held?
By default, a spending act over what is left of the mandate is refused (SEAT_SCOPE_EXCEEDED), by the representative before sending and by the door. A hold happens only at a place whose house policy sets limit_calls: true, and only under shokai/0.5. That place MAY hold the act and call the owner home for one passkey approval of that one purchase (SPEC-DETAIL §7.3, C230–C232). The Quickstart door doesn't set it, so it refuses.
Demonstrated, on the reference door. The reference host's fernwood-v05 place sets limit_calls. The conformance runner, run against it, passes every hold check:
v050.hold_over_limit: held with exact figures, released only by a superseding mandate;hold_policies,hold_declineandhold_grace(2 s);hold_place_limit: refused, never held, above the place's own limit;hold_legacy: refused undershokai/0.3;hold_release.
The full output is on this site. It runs from the repository (npm run setup && npm test). It is not in the published npm package, because the reference host isn't part of the SDK package.
A named claim, end to end
The reference host, with its own evidence file (it names the reference's real tests for each in-process check), against the conformance runner:
node packages/shokai/dist/src/conformance/cli.js http://127.0.0.1:<port> --place fernwood-v05 \
--spend 6.00 --hold-grace 2 --host-console <state>/console \
--claim shop --evidence reference/engawa/conformance-evidence.jsonClaim: shop
HOLDS core-door: 54 ran (54 pass, 0 fail, 0 warn), 0 skip, 3 N/A
HOLDS ext-spending: 8 ran (8 pass, 0 fail, 0 warn), 0 skip, 1 N/A
HOLDS ext-institutions: 1 ran (1 pass, 0 fail, 0 warn), 0 skip, 0 N/A
HOLDS ext-host-guards: 2 ran (2 pass, 0 fail, 0 warn), 0 skip, 1 N/A
Claim: every claimed class holds for every check this run measured (no fail, no skip); unmeasured checks are self-asserted.This is what an established claim looks like. A failing one ends Claim: NOT ESTABLISHED. The evidence is the claimant's own, so it is self-asserted until someone outside the project reproduces it. Full output.
Machine-readable artifacts
JSON Schema v0.5.1 (package 0.5.1; accepts the optional never members until and appeal) · JSON Schema v0.5.0 (package 0.5.0, unchanged) (about the schemas) · TypeScript shapes · golden traces and test vectors · what each golden trace proves.
The shokai/0.3 transition window
A v0.5.0 receiver MUST accept shokai/0.5 and SHOULD also accept shokai/0.3 until the window ends. The window ends at the 0.5.0 release date + 90 days. The release date is the one recorded in the v0.5.0 release entry of the changelog. The release date is 11 November 2026, the UTC date of the npm registry's publish timestamp for 0.5.0 (the "0.5.0" entry of npm view @kigenka/shokai time --json = 2026-11-11T03:26:30.293Z, which is 7:26:30 PM PT / America/Los_Angeles on 10 November 2026). That timestamp is authoritative; 0.5.0 was published under the latest dist-tag. The changelog, the GitHub Release notes and this site mirror it. The calendar end date is 9 February 2027 (that timestamp plus 90 days). After the window, a receiver MAY treat shokai/0.3 as a version mismatch. This is the specification's one dated rule (§0.1).
Under shokai/0.3, none of 0.5.0's new protections apply: no over-limit hold, no idempotent repeats, no house summary, no trust receipts. The visitor's report home says so.
What a change within a version line may do
- Core and stable extensions. Within a version line (0.5.x), they change only for fixes. An incompatible change needs a new version, a changelog entry and a wire-tag transition like the one above.
- Provisional extensions. They are normative when claimed, but may change incompatibly in the next version, with no transition window. They are never required by a core claim.
- Experimental extensions. They are never part of a claim, and may change or go.
- Unknown members. A reader ignores members it doesn't understand, unless they are named in
crit. Acritmember it doesn't understand makes it refuse the artifact (C289). - No rule waits for a date. Apart from the transition window above, no normative rule changes on a future date. Changes arrive only in a new version, through the changelog.
The SDK version
Current package: @kigenka/shokai 0.7.11 is published on npm. The package file is kigenka-shokai-0.7.11.tgz (SHA-256 d2a9bb3eadbdba2174520008e59be2c0e2c599e4675796ce70adaa78a80141e0). Verify it with the visit toolkit steps, or install with npm install @kigenka/shokai@0.7.11. It implements spec v0.5.0 and speaks shokai/0.5. Packages 0.6.0 and 0.6.1 keep spec_ref.version "0.5.0" and the wire tag. The compiled SDK in 0.6.0 is unchanged from 0.5.1; 0.6.1 changes it (a reply cap, trap-place protections, a domain-name rule), and nothing on the wire changes. A 0.5.x patch release keeps that same wire contract and may add only optional members and rules (0.5.1: two optional members on a binding never, and a MUST that a place doesn't ask for a password, recovery phrase or card number). A 0.3.0 door uses the older MCP refusal code -32040; a 0.5.0 door answers -32012. See the refusal code above.
Publication
Shōkai 0.5.0 was published on November 10, 2026, 0.5.1 on November 11, 2026, 0.6.0 on November 18, 2026, 0.6.1 on November 25, 2026, 0.7.6 on December 1, 2026, and then 0.7.8, 0.7.9, 0.7.10, and 0.7.11: @kigenka/shokai@0.7.11 on npm, and the tagged source at github.com/Kigenka/shokai. The npm publish timestamp for 0.5.0 starts the shokai/0.3 acceptance window described above; that date is mirrored in the changelog.