What changed in v0.5.0
Written November 1, 2026; refreshed November 5, 2026 after pre-release reviews. v0.5.0 is published as @kigenka/shokai@0.5.0, and the 0.5.1 patch release (@kigenka/shokai@0.5.1, November 11, 2026) followed it. The latest published npm package is @kigenka/shokai@0.7.6 (1 December 2026), which keeps this specification on the wire. 0.6.1 (25 November 2026) added visitor safety against trap places and the domain-and-certificate rule for doors. How earlier wire tags are treated is in the changelog. If this page and the specification (SPEC.md, normative detail in docs/SPEC-DETAIL.md) disagree, the specification wins.
This page says what changed since v0.4.0 and why, how to move to the new wire tag, which text is normative and which is a labeled proposal, how far conformance testing goes today, and what we know is missing. Every item links to the section that defines it. The full list is in the changelog.
In one paragraph
v0.5.0 builds on v0.4.0. Many additions are new optional members, messages or refusal codes, but not all: a 0.5.0 implementation has new mandatory requirements (below), the wire tag moves from shokai/0.3 to shokai/0.5, and places keep accepting shokai/0.3 for 90 days after the release. The largest new features are: a purchase above the owner's signed limit can be held and approved for that one purchase with one passkey tap (the spending extension, C230); a place can require trust and say how to earn it (provisional extension, C243/C244); one introducer can bring up to 50 newcomers with a Shōkai introduction card (provisional extension, C245); and rules that came out of building our first demo are now in the core. The normative text is docs/SPEC-DETAIL.md; each check's class (core, a stable extension or a provisional one) is in conformance/classes.json.
Current requirements: what a 0.5.0 implementation MUST do that 0.4.0 didn't
This list is the current contract (from SPEC-DETAIL.md and conformance/classes.json, November 5, 2026). The rest of this page also keeps historical notes from the November 1 draft, marked as such.
- Wire tag. Send
shokai/0.5; accept it; acceptshokai/0.3for the transition window; never downgrade with a place that advertises 0.5 (§11.1, C254, C298). - Audience-bound possession proofs. Under
shokai/0.5the card's possession proof is over{encounter_id, nonce, audience}(§2.4), with byte-exact vectors. - Addressing. Every signed message after the greeting carries
to= the representative on the door's Shōkai host card (§2.2); a door's addresses are https outside loopback and the test profile (C269); see place addresses. - The house summary is required for v0.5.0 hosts and is read by a v0.5.0 visitor before its request (§2.3, C248); conduct rules and named outside classifiers are shown before seating (C246, C250).
- Raw input. Messages are parsed as strict JSON from the bytes received (duplicate members and ambiguous numbers refused, invalid UTF-8 refused; C284) and bounded by
max_message_bytesas received (C239). - Free principals. Signed traffic from a principal with no history counts toward a newcomer budget; concurrent seats are capped per card and per source; failed introduction claims are capped per card (§4.1, §11.1, C278, C287).
- Place content is data, never instructions (§6.5, C256); every enforced setting is signed (C236).
- Extensions (claimed separately). The over-limit hold and one-purchase raise are the stable spending extension (C230); trust receipts (C243, C244) and the introduction card (C245) are provisional extensions.
What changed, and why
Each row names the conformance check that tests it.
| Change | Where | Why |
|---|---|---|
The over-limit hold. With policy.limit_calls: true, an act above the limit is held, not refused. The hold states the limit (the lower of the pass's and the mandate's max_amount), what is already used and what the act would make it. The place holds it only when the total is within the place's own stated limit. The owner approves with a new mandate that supersedes the old one, binds this hold by its id and the act's digest, has exactly the proposed total as its max_amount and expires with the hold. It releases that one act; the pass keeps its old mandate, so it never becomes a standing higher limit. SIGNING.md §8 says what the owner must see. | §5.1, §7.3 (C230) | A flat refusal at the limit sends the representative home with nothing. Raising the limit in advance gives the representative more authority than the errand needs. A hold bound to one purchase gives neither. |
Holds and repeats. One clock and one grace of at most 5 seconds for every hold check (C231). Hold policies are checked before the amount (C232). An act or approval can carry an idempotency_key, and a repeat gets the original signed answer and is never performed twice (C233). | §7.2, §7.3 | Networks drop replies. Without exact repeats, an agent that retries an approval can buy twice; without one clock, two parts of a door can disagree on whether a hold is still alive. |
Trust can have a price (proposal P27, adopted). A place may require trust for an action, name the issuers it counts and say where to obtain it. It signs a TrustReceipt (at most 400 days, revocable) that never touches the payment instrument. | §6.9 (C243, C244) | Places already decide whom they trust. Saying so in the open, with a way to earn it, is fairer than a silent refusal. |
| The Shōkai introduction card (P28, adopted). One introducer, one place, up to 50 claims, valid up to 90 days, checked like a vouch and revocable through the introducer's log. | §4.1 (C245) | A community organizer can bring newcomers to a place without signing a vouch for each one. |
House manners, the house summary and named outside classifiers. policy.conduct_rules with registered codes (C246). A compact, cacheable HouseSummary under summary_digest on the Shōkai host card, required for v0.5.0 hosts and read by a v0.5.0 visitor before it asks to be given a pass (C248). policy.third_party_classifiers: each outside classifier a place sends visitor content to, with its name, purpose, the countries where it processes content and how long it keeps it; absent or empty means none, nothing goes out before the visitor's request, and the list is in the house summary and the lobby (C250). | §2.3, §6.10 | A visitor should know the rules and where its words go before it says anything. Everything a door enforces stays inside what the owner signed (C236). |
Lighter visits. An owner-signed ErrandBudget (tokens, visits, wall-clock minutes) that the representative keeps and never sends to a place (C247). No acknowledgement-only messages (C249). | §5.5, §6.6 | Agents spend money on tokens as well as purchases. An errand should have a cost ceiling the owner set, and messages that say only "got it" cost both sides for nothing. |
| Host guards and a System 1 / System 2 pattern. Fast classifiers return typed answers with a confidence and escalate below a threshold. System 1 alone never decides a penalty, and it fails closed. | §6.10 (C250) | Hosts at volume can't send every message to a large model. The pattern keeps the cheap path from punishing anyone by mistake. |
Return with care and set up through conversation. ReturnPrefs is a separate owner-signed record, never sent to places (C251). door_questions with answered_by; nothing turns on by itself (C252). | §8.3, §8.4 | An owner should set up a door by answering a few questions, and decide how the representative comes back to the places it visited. |
Visitor text, model output and deletion. Raw visitor text and model output are kept only for stated purposes and for at most policy.retention_days (default 30, at most 90). A principal can ask a place to delete them and gets a signed receipt saying what was deleted and what was kept, and why (C255). | §12.4 | A place that hears agents' words should say how long it keeps them, and an owner should be able to ask for them to go. |
| High-volume hosts. An informative profile. | Appendix E (C253) | Large places asked what the minimum safe setup looks like. |
| Rules from demo 1. Thirteen rules found while building demo 1, each stated on its own terms in the specification. See What we learned building demo 1. | §2, §3, §5.4, §7, Appendix A (C231–C242) | They failed, or nearly failed, in a working build. |
Migration: the shokai/0.5 tag and the 0.3 window
The full rules are in §11.1 (check C254).
- Send
shokai/0.5. A v0.5.0 party emitsshokai/0.5on every message it starts, and signs new Shōkai host cards, Shōkai visitor cards, place listings and Shōkai introduction cards withprotocol: "shokai/0.5". - Keep accepting
shokai/0.3for 90 days after the release. The end date is a placeholder in the specification until the release, and the changelog will state the same date. After it, a receiver may answershokai/0.3with the lobby, as for any version it doesn't speak. - Answer in the visitor's tag. A reply to a
shokai/0.3message carriesshokai/0.3and no v0.5.0 members, messages or codes, so a v0.3.0 or v0.4.0 peer can read it. Messages a place starts inside a 0.3 encounter carryshokai/0.3as well. A signed tag is never rewritten. - A 0.3 message is read with every v0.5.0 member absent. There is no over-limit hold (an act above the limit is refused as before), no
idempotency_key, no house summary, no trust receipts or Shōkai introduction card (a trust requirement is refused withPOLICY_DENY), no conduct rules or named classifiers in the lobby (so that visitor's content goes to no outside classifier) and no hold grace. - Rules that need no new member still apply to the place's own conduct under either tag: the farewell, the payment-instrument scan and the host guards.
- Code. The reference place and the SDK export
WIRE_TAG,ACCEPTED_WIRE_TAGS,LEGACY_WIRE_TAGandWIRE_TAG_TRANSITION_DAYS. The JSON Schema is atschema/v0.5.0/schema.json, generated fromprotocol-shapes.ts.
What is normative, and what is a labeled proposal
- Normative: docs/SPEC-DETAIL.md (the full core, with MUST, SHOULD and MAY as in RFC 2119; SPEC.md is its short human read), the types in
protocol-shapes.ts, and each extension for implementations that claim it. Sections marked Informative in the specification, and Appendix E, are not requirements. - Adopted into the core in v0.5.0: P27 (trust can have a price), P28 (the Shōkai introduction card) and §2.9 of P31 (the over-limit hold).
- No draft text inside the core. The drop-in door's two draft bullets (P26) were moved back into the proposal. The one that mattered for safety, that the lobby text is under the owner's signature, is now normative on its own terms (§2.3, C236), and SIGNING.md §9 says the owner sees it before signing.
- Adoption is provisional. GOVERNANCE.md asks for a 14-day open discussion before a proposal is adopted. That can't happen until the repository is public, so P27, P28 and P31 §2.9 are adopted provisionally (§13 item 29).
- Shipped beside the core, not normative: P29 (holds, cancellation terms and house manners), P30 (projects and delegates), the rest of P31 (the Engawa) and short notes for v0.5.0 (several doors for one place, passkeys on phones, Shōkai on calls, other languages). Each is labeled as a proposal. See the proposals index.
- Extensions: no extension changed in v0.5.0. Each page now says "Applies to v0.5.0 (unchanged since v0.4.0)".
Conformance status
What we ran on our own code (first November 1, 2026; refreshed November 5). These are our own test results; outside pre-release reviewers read the code and the package, but no independent implementation has run them.
Checks. When this note was first written, 242 conformance checks had a home (201 core, 39 in extensions, 2 informative); the later red-team and review rounds added checks up to C299, and the total as of early November was 284 unique ids, each with its class in
conformance/classes.json. As of 2026-11-09 the current total is 286 unique ids (C1 through C301 are the check-id range; not every integer in the range is used), including C300 and C301. The ranges below differ on purpose: the byte-exact vectors cover C230–C254 (the checks with computed values), the black-box runner C230–C255, and the rule set C230–C256 (C256, place content is data, is checked in process). (Historical, November 1:) the 27 new checks C230 to C256 were then all listed as core;conformance/classes.jsonnow classes C230 as the spending extension and C243–C245 as provisional extensions. Every normative statement cites a check (trace-lint: 0 gaps). C230 to C256 trace to tests in the reference code or the SDK, C255 (deletion) and C256 (place content is data, §6.5) included, and the conformance runner checks most of them against a running door (30 pass and 7 skip against the reference place; see Known gaps).Full local run (historical, November 1; the November 5 run: root
npm test, core 1,618 of 1,618 and the SDK total inrelease/release-status.json).SHOKAI_SKIP_QUICKSTART=1 bash tools/run-all-suites.shexits 0: core 1,208 of 1,208, and every extension group passes. The v0.5.0 suite in the reference place passes 306 of 306, the SDK's v0.5.0 suite 86 of 86, and the reference signing page's one-purchase raise 24 of 24. Two golden traces are skipped on purpose: they cover a helper direction that was deferred (decision D3).Current totals (10 November 2026, local).
conformance/classes.jsonlists 286 distinct check ids (range C1–C301). The latest localSHOKAI_SKIP_QUICKSTART=1 tools/run-all-suites.shin-process total is core 1684/1684 (0 MUST fails). That headline is the in-process suite homes fromtools/suite-split.mjs; official HTTP runner rows, including C300 and C301, are reported separately in the black-box fernwood run and are not added into 1684. A loopback clean-room door (Quillfern Tea Room) was built from the handoff documents on 2026-11-09; under the current pinned official runner (v050.tssha-256cbc9708dd84e188f10a4aa271211d9db60759d48a007ab33b445ef6740e0dbf5, re-run 11:11 PM Pacific Time that day) it fails C301 and the Core Door claim is not established. The public Kettle door is deployed (tarball promoted about 11:51 PM Pacific Time on 9 November 2026) and was tested in an official paced HTTP run at 12:13 AM Pacific Time, 10 November 2026. 31 of 166 Core Door checks measured, all 31 passed, 133 unmeasured. Two checks were inapplicable (C241, a visiting representative’s duty, and C242, which requires closed templates). It is not publicly open. Build pins and pinned results are in Kettle operator notes.Types and data.
protocol-shapes.tscompiles undertsc --strict; the 47 typed examples compile; the JSON Schema is current, and 114 golden-trace messages validate against it. Test vectors for C230 to C254 are inconformance/test-vectors.json(sectionv050) and are computed by the reference code, not written by hand.Links and labels. Every relative link resolves in both copies of the specification, and the version markers the link checker knows agree on v0.5.0. Clean-room readers found labels it doesn't check (the SDK README, QUICKSTART and the agent skill); those were fixed on November 1, and the remaining 0.3.0/0.4.0 package labels were fixed in the November 3–5 review rounds; the link checker now scans every repository Markdown file.
Only our implementations. The reference place and the SDK are written by the same project as the specification. A loopback clean-room door (Quillfern Tea Room) was built from the handoff documents on 2026-11-09; that is an outside model implementation, not an outside organization, and under the current official runner it fails C301 (Core Door claim not established). The v0.3 field tests with outside agents predate v0.5.0 and haven't been repeated against it.
Known gaps
- QUICKSTART.md was first run from the package file.
tools/verify-quickstart.shran it as written againstrelease/kigenka-shokai-0.5.0.tgzon November 5, 2026, and was re-checked against the published 0.5.0 on November 10, 2026 and against the 0.5.1 package file on November 11, 2026 (see QUICKSTART.md). - The threat review is a desk review. THREAT-MODEL.md §9 reviews the over-limit hold, the superseding mandate, the house summary, named classifiers, retention and wire-tag downgrade against the text. Red-team rounds against v0.5.0 code ran on November 3–4, 2026 (review history); their fixes and accepted residuals are in THREAT-MODEL.md.
- The patent commitment hasn't been made. PATENTS.md describes an intended OWFa 1.0 commitment; its wording is pending legal review, and no version has been committed yet. Until it is, implementers have no royalty-free patent assurance from the project.
- Black-box conformance checks for C230 to C255 are partial. The runner checks the over-limit hold and its release (C230), holds (C231, C232), repeats (C233), the farewell and the host's closing farewell (C234), the payment-instrument scan (C235), start-up refusals of an invalid house config (C236), one Shōkai visitor card per visit (C237), size caps (C239), trust requirements (C243), the house summary, conduct rules, classifiers and model providers (C246, C248, C250), deletion (C255) and the wire tags (C254) against a running door. C234's closing farewell and C236 need the implementation's own off-wire hook (
--host-consolefor the reference host). Seven checks still skip: the classifier call order (C250) and storage pressure (C238) can't be observed from outside a door; the reference door keeps no passkey counter state, which Appendix A.1 allows (C240); receipts and Shōkai introduction cards need an issuer or introducer the place names (C244, C245); pins and errand budgets are visitor-side (C241, C247, covered by the SDK's own tests); and Appendix E is informative (C253). - The reference code now follows the November 1 rules (checked 2026-11-01): the one-purchase raise (
max_amountexactlyproposed, refused above or below it; expiry no later than the hold's; the pass keeps its mandate), refusing an invalid house config at start-up,accepted_tagsand the visitor's fallback toshokai/0.3, the deletion messages, and the SDK's visit report after a raise. - No independent human security audit of v0.5.0 has been done yet; the outside pre-release reviews of November 3–5 are recorded in review history.
- The 0.3 window's end date is a placeholder until release.
- Demo 1 is not public. It runs locally and is tested there (below). Its setup-page and asset milestones are built on a separate branch and not merged yet, and it hasn't run on a public host.
- A passkey can't prove a person tapped. Without attestation, software can register a passkey and sign with it. The signature-counter rule (C240) and per-owner limits slow this down; they don't stop it.
What we learned building demo 1
Demo 1 is the Lanternmoss tea house, a fictional place. A builder asks their own agent to buy a USD 20 gift card there. The agent is turned away kindly, brings a leaflet home, comes back with a Shōkai visitor card its owner signed with a passkey, and is admitted with a pass. If the owner then prefers the USD 40 gift card, the door holds it over the limit, and one passkey tap approves that purchase only. The money and the gift cards are pretend; the Shōkai cards, the checks, the holds and the signatures are real.
We built it as a small strict host beside the unchanged v0.4.0 SDK, and the strict host became v0.5.0's strict mode. The demo's build spec went through six review rounds and two code reviews before and during the build (it is at revision 4.15). These are the lessons that became rules:
- A limit raise must be bound to one purchase. Review round 2 asked what an approved USD 40 means after the purchase. If it stood, the agent could spend the difference on something else. The approval now names the hold and the act's digest, is accepted only as the answer to that hold, and afterwards the errand can spend nothing more (C230).
- Retries are normal, so repeats must be exact. Agents retry when a reply is slow. A repeated approval must return the same signed answer and never buy twice (C233). Repeats are also capped, because an unbounded retry loop is a cheap flood.
- Holds need one clock. A code review found that the check at purchase time used each server instance's own clock. One clock, with a grace of at most 5 seconds, now decides every check, and a hold ends on time even if nobody writes (C231).
- Check the hold policy before the amount. A second purchase during an open hold used to be refused as over the limit, which is true but unhelpful. The meaningful refusal comes first now (C232).
- Leaving must always work. A request quota that counted farewells could stop a visitor from leaving cleanly. Farewells are now outside every quota and cap, and a door says its own farewell once (C234). The same review found that an exhausted visit kept costing the door on every message, so a message cap per visit is now stated in the house rules (C239).
- Payment card numbers turn up in odd places. A code review found that a payment card number in a display name or a message id was stored and echoed back. A door now scans every message, header ids included, with a Luhn check, and refuses a match without storing it (C235).
- Enforce only what the owner signed. Some enforced settings and the leaflet sat outside the signed part of the house config, so they could change without the owner. Everything a door enforces is now inside the house digest, and a door that finds a stray copy refuses to start (C236).
- One Shōkai visitor card per visit. A spending act could be accepted with proof from a different Shōkai visitor card than the one the visit got a pass with. A visit is now tied to the Shōkai visitor card it opened with (C237).
- Small rules from a real build. Keep revocations in force even when storage is full (C238). Bound input sizes, and treat an oversized field as a setup mistake, not misconduct (C239). Refuse a passkey counter that goes backwards, and never overwrite an owner's registration (C240). Read a pin from two places outside the door's domain, and publish no private keys in test vectors (C241). Refuse a signed object with a member its closed template doesn't list, because the owner signed all of it (C242).
How it was tested. The build is green locally. The last full verification (November 1, 2026) passed every suite: the milestone 5 suite (the setup page and its test harnesses) 44 of 44, the groundwork suite 14 of 14, the scripted play-through 6 of 6 on two runs, and three full local integration rounds in a row, each on fresh stores. We also took the door down mid-visit: the approval tap was refused (HTTP 409), and once the door was back, the same tap signed. These are our own tests on our own machines, not a public trial.
What it doesn't show. The demo can't prove a person was behind a passkey, and it uses no real money or payment details anywhere, so it tests the shape of the protocol, not payments. Some of its cost bounds are worst cases worked out on paper, to be measured on a preview host before launch.