Review history
Shōkai, the agent introduction protocol, from Kigenka. Every review the project has had so far, who or what did it, what it found, and what changed. Published so you can weigh the evidence yourself. All times are Pacific Time.
The short version. Shōkai has been reviewed and tested hard, but almost entirely inside the project: by its author, by agents the author ran, and by language models asked to review it cold. No outside organization has reviewed it or implemented it yet. That is the most important gap, and the reason v0.5.0 is not 1.0, even though it is published and @kigenka/shokai@0.5.0 is npm latest as of 10 November 2026. If you review or implement it, please tell us; your report will be listed here. The later local door round for v0.5.0 is Evidence, under Verify. This history stays in Transparency.
The releases
| Version | Date | What it was |
|---|---|---|
| v0.1 to v0.2.10 | October 2026 | Drafts, before the public release line |
| v0.3.0-rc1 | 2026-10-26 | First release candidate of the 0.3 line |
| v0.3.0-rc2 | 2026-10-26 | Fixes from field tests 2 to 4 (limits across visits, amounts, reports) |
| v0.3.0-rc3 | 2026-10-26 | The normative MCP binding (§11.3) and rules the clean-room implementation had to guess |
| v0.3.0-rc4 | 2026-10-27 | Card revocation, durable state, the act check order; feature freeze |
| v0.3.0 | 2026-10-28 | The release: rc4's text with its clarifications, no wire change; published to npm as @kigenka/shokai@0.3.0 |
Every change is in the CHANGELOG.
1. Adversarial rounds against the reference door
Two scripted red-team rounds against the reference place server, rerun for v0.3.0-rc1, on loopback with fictional people and fresh keys: round 1 held 72 of 72 attacks; round 2 held 44 of 47, and the 3 that succeed (browsing by many agents or owners) are open by design. Details, and why those three stay open: security/redteam and the threat model.
2. Field tests with outside agents
The field tests now open with the 0.5 rounds of November 4–6, 2026. The earlier 0.3-era rounds, October 25–28, are in the same report: cold developers on Hermes Agent and OpenClaw, probe runs against the door, an independent implementation from the spec alone, Muse as a cold visitor, and two passkey-signing sessions with the author's own passkey.
3. A clean-room implementation from the specification alone
Part of the field tests (test 5, October 26): a sandboxed agent built a door for a fictional bookshop from the v0.3.0-rc2 text and the conformance runner only, with no Shōkai code. It passed 24 of 24 core checks and interoperated with the SDK, and its 60 notes led to rc3: the normative MCP binding (§11.3) and rules C184 to C189 for what it had to guess. It was directed by the project, so it isn't independent in the sense that matters most.
4. Cold reviews by language models (October 27)
The author asked models to review the project cold, as "a veteran reviewer of internet protocols and developer platforms", from the main documents, a newcomer's cold run and the release state, and to "be honest and specific; do not inflate". Each review was one request through a model router; the scores are the models' own.
| Round | Time | Model | Overall readiness | Cost (USD) |
|---|---|---|---|---|
| 1 | 2:30 AM | DeepSeek V3.2 | 4 / 10 | 0.023 |
| 1 | 2:30 AM | Gemini 3.8 Flash | 5.8 / 10 | 0.065 |
| 2 | 2:51 AM | DeepSeek V3.2 | 6.5 / 10 | 0.029 |
| 2 | 2:51 AM | Gemini 3.8 Flash | 6.5 / 10 | 0.080 |
What they agreed was strong: the specification's traceability (every MUST and SHOULD tied to a scenario, a trace or a check), the threat model and its honesty about what Shōkai doesn't prevent, the deterministic decision (signed facts and policy, never prose), the test discipline, and the clear position next to MCP, A2A, OAuth and the Personal Agent Protocol.
What they ranked as the biggest gaps, and where each stands now:
| Gap the reviewers named | Where it stands at v0.3.0 |
|---|---|
| The package isn't on npm; nobody outside can try it | Closed. @kigenka/shokai@0.3.0 is on npm (October 28): npx @kigenka/shokai demo |
| No public door to test a visitor against | Open. The demo place is ready to host (deploy/HOST-A-PLACE.md) but not deployed |
| No independent implementation or outside review | Partly addressed: an outside security review by a person read the public documents and the Lounge in December 2026 (not a formal audit). An independent implementation and a formal audit are still open |
| Owner key continuity: a lost passkey means a new identity | Open. Proposals P18 and P24, for v0.4 |
| Some golden traces used placeholder identifiers | Closed in rc4: every hand-written trace carries real DIDs, digests and signatures from public test keys |
| Too many extensions for a first release | Answered, not changed: the core stands alone, and each extension is optional and claimed separately (What to implement) |
| English-first heuristics in the inbound door's pressure checks | Open, recorded in SPEC §13 |
| Defaults left to each place (how long a "considering" answer lasts) | Open, recorded in SPEC §13 |
5. Can any agent follow it? (October 27)
A local test of the copy-and-paste prompt for "visit a demo door": small, cheap models (Gemini 3.5 Flash Lite and GPT-5.4 mini) given only the prompt and one command they may run. Each reached a visit and a report home in under 3 seconds of model time, for about 0.002 USD a run. What it found: the first prompt leaked the expected answer (fixed), and a cheap model still embellished the door's greeting in its summary (a model trait, so recorded demos quote the output verbatim).
Limits of all of the above
- Inside the project. The author wrote the specification, the SDK, the test places, the briefs and the probe suites.
- Model reviews are not expert reviews. They read what they were given, quickly, and can be confidently wrong. We publish their scores because they were low at first, not because they prove anything.
- Small numbers. One run per agent and model, mostly over two days.
What would change this page
An implementation from another organization, a review by someone who has worked on IETF, W3C, OAuth, WebAuthn or MCP specifications, or a human red team. Each will be listed here with its findings, whatever they are.
The editor. Stewarded by Kigenka.
v0.5.0 pre-release review log
Moved here from CHANGELOG.md, which keeps one entry per release. Item ids such as R8-01 name findings in the internal review rounds; they are kept so the commits that fixed them can be traced.
outside review round 2 fixes (2026-11-05; pre-release)
Fable 5.1's second review (scores 7.0 across site, package and repository) and Gemini's round 2. Fixed: reserved rp_ids are judged from the door's current entry address on every card, so createDoor() then setBaseUrl("https://…") refuses a development passkey (new SDK tests), and the reference host's default (absent or loopback entry: allowed) puts root npm test back to green; setBaseUrl() applies the C269 https rule; the flood test's public door now uses baseUrl; RELEASING.md gains a clean-history step (orphan branch or git filter-repo, then a history grep) before the repository is made public, with a one-line disclosure in SECURITY.md and CHANGELOG.md that the removed workshop keys were unlabeled test material; .gitignore keeps release/*.tgz and .sha256; @next lines then said "once 0.5.0 is on npm" (0.5.0 has been npm latest since 10 November 2026); bare npx shokai became npx --no-install shokai, the conformance runner is pinned; check-links-versions.mjs scans every repository Markdown file for those phrasings and for npm-status prose; one SDK test total in release-status.json, rendered on every site page; docs/whats-new-v050.md refreshed; docs/place-addresses.md annotated in REUSE.toml and LICENSE-docs ships in the package; /blend/open never points at a Vercel preview host; the release tarball's QUICKSTART link is rewritten by path pattern, so the first pack equals the second. Declined: the home-page hero (left to the editor).
outside review round 2: ChatGPT Pro (2026-11-05; pre-release)
Four Highs, all fixed and covered by packages/shokai/test/round2-guards.test.ts through Door.respond(), door.fetch(), handleHttp() and shokaiDoor(): sender-mismatched signed envelopes skipped the anonymous limit; NewcomerBudget and the seat caps were exported but not wired (now applied by createDoor(); the per-card claim-failure cap too); the encounter cap evicted a closed encounter whose pass was still live; the inbound boundary measured re-serialized JSON, buffered unbounded Web bodies and decoded UTF-8 leniently. A fifth (schema): nested objects of extensible artifacts now take x- members. Mediums and lows fixed: the setBaseUrl() passkey exception (with Fable's High), the Quickstart/CLI development-owner label, the release gate's tarball and site checks, docs/whats-new-v050.md's current-requirements list, the agent skill's links, LICENSE-docs in the package, the double-counted claims suite.
outside review round 1: governance fixes (2026-11-04 to 05; pre-release)
ChatGPT Pro, Gemini and Fable reviews of the package and repository. Governance and release findings fixed: REUSE.toml maps every path (SPEC-DETAIL.md annotated as Apache-2.0 under the docs/** CC-BY rule); NOTICE single-sourced into the package and checked; CODEOWNERS covers the specification, release and security files; PATENTS.md says the OWFa commitment is intended, not executed, and that implementers must not rely on it until the record table has a row; the draft safe harbor moved out of SECURITY.md into proposal P34; schema/README.md says what a schema can and can't check; RELEASING.md and release/release-status.json became the one source of publish-day facts, checked by tools/check-links-versions.mjs; workshop key files removed from the tree and gitignored.
editor decisions H1–H3 (2026-11-05; pre-release)
- H1 (accepted). Wire tags compare numerically, with every
shokai/0.Nbelowshokai/1(C299). A spending visit (max_amount) never falls back toshokai/0.3on its own, and an owner'smin_protocolis never overridden (C298, SDK:chooseWireTagguard,compareWireTags,SHOKAI_NO_FALLBACK). A place refuses a 0.3 request carryingmin_protocol(C297; runner check planned for 0.5.x). - H2 (accepted). At most two wire tags at once; a published window is never shortened; at least 90 days' notice before a tag is retired; core and stable extensions only.
- H3 (accepted; key ownership open). Signed listings SHOULD in 0.5; MUST at 1.0 only once the extension meets four stability criteria.
- Package.
engines.node >=22;@modelcontextprotocol/sdkpeer>=1.12.0 <2;./package.jsonexport; TypeScript sources (src/) ship in the package;publishConfig.tagisnext. CI tests Node 22 and 24.
review 9 repair (2026-11-05; pre-release)
Docs reading order (v0.5.0 draft copy). Core concepts are listed door-first. Worked examples (place stories) are separate from situations and proofs, and from runnable examples. Example prose calls the place's grant a pass. Snippets and old wire-log diagrams keep
seat, and say so. The customer link stays P21: a v0.4 draft in the v0.5.0 work, not "later" and not in the published core. Sidebar groups live in the site source, which is not in this repository (Verify stays Evidence plus the benchmark; the implementation film sits with the quickstart).R9b-05.
usedRaisesis recorded only after the reserved-total re-check passes, so a refused release keeps the hold and the raise.R9-01 (high). A mandate carrying
supersedesis refused as a seat mandate (MANDATE_INVALID); it is valid only insideact_confirmationfor its bound hold (§5.1, §7.3). The door check covers anysupersedesmember, not onlysupersedes.hold. New SDK negative test.R9-03 / C270 honesty. §13 item 36 clarifies which multi-instance tests exist and that decline-window / context-field memory residuals are not C270.
R9-04 / R9-06. Appendix G rows aligned with §3.5/§11.1; Python browse sketch marked NOT CONFORMANT.
review 8 repairs (2026-11-05; pre-release, not yet published)
- R8-01 (high). An over-limit hold now reserves its amount as well as its operation against the seat and mandate ledgers. Intervening spend that would push the reserved total past
proposedis refused while the hold is open; release re-checks the reserved total against the owner-signedmax_amountand refuses if it would exceed. Decline and expiry release the reservation (§7.3, C230; reference host). New SDK testr8-overlimit-ceiling. - R8-04 / C270. Atomic single use across instances is implemented by the SDK door's compare-and-set store (§11.1
429on a lost race) and covered by multi-instance tests (greeting/act single-use and mandate ledger). §13 item 36 updated: no longer listed as open. Residual: decline-window and costly-cap counts remain memory-only (fail-safe / provisional).
review 4 fixes (2026-11-04; pre-release, not yet published)
Review 7 repair (R7-01, high). Conformance roles now follow who the citing MUSTs bind: tools/conformance-classes.mjs reads every
a visiting representative MUST/a place (door, host representative) MUSTin a line, a check cited by both is roleboth(Core Door and Core Visitor), and R8 fails on a check whose role contradicts that. C204, C205, C292 and 22 other checks move from door-only to both; C178 (the report'sbrought_back) is visitor; Appendix F regenerated. New SDK visitor negative: a door proof addressed to another party ends the visit before any request (C292).Review 6 repairs (R6-01, R6-02, R6-03, R6-05). R6-01: no presentation check binds a card's principal any more. A copied or failing well-formed proof is the key holder's own setup failure (
not_now, nothing bound); a host card is refused as the wrong kind first (step 0); a card key that doesn't match its id isnot_now. Only a card presented by a party it doesn't name isnever, binding that presenter only (§2.4, §9.3). R6-02: the total anonymous cap is a MAY, and the static reads every visitor must make (pointer, listing, host card, house summary) never count toward it (§11.1, C278; SDK, example door). R6-03: probing counts only actions the place lists, outside both mandate and card, and the counted case has its own answer (readinesscard, retrysigned_card); guessed action names never count (§9.3; reference, example door, conformance runner). R6-05: the C284 number rule is restated as value equality after RFC 8785 re-serialization, with a newijson_c284vector group (20 cases) run by the SDK and the SDK-free door; the door now uses the same rule (2^60 is rejected: JCS writes it1152921504606847000). Tests: a deterministic fix for the intermittentredteam-fixesfailure (a memory-only door made after a mandate it then refused asstate_lost), and the browse-door checks no longer hit the per-source seat cap (now tested on its own door).Review 5 repairs (R5-01..R5-04). R5-01: seen-card revocations are bounded per principal (16, own oldest dropped) and in total; a store full in total drops its oldest entry and fails closed only for that principal, never door-wide (§2.6, C238; example door and reference). R5-02: at most one over-limit hold per seat; a newer over-limit act ends the older hold, so
current/proposedare the true totals (§7.3, C230). R5-03: one table of every path and status at a door (§11.1), namingGET host-card.json,503and the inbox403. R5-04: one check order for a revoked card with a failing proof (§2.4 steps 3a/3b; §2.6 restates it; example door check R5-04).R4-01
crit(C289). Only members that are critical to the artifact's own class go incrit:max_claims,supersedes.hold,sensitive,limits.booking. Opt-in members (owner_prompts,place.site,customer_link) MUST NOT, and members not incritare ignored. The referencewithCritand the SDK follow this; newmust_understandvectors.R4-02 Core Door (browse). The profile now has one definition: every Core Door check except Appendix F's excludes, plus the profile rules. examples/minimal-browse-door was rewritten to do all of it (lobby, DoorPointers, §3.2/§3.5 farewell,
house_digest, C292 both ways), and its check runs the SDK runner with--claim browse.R4-03 provable claims. The conformance runner has a
nastatus with a stated basis (precondition, class, role, informative, in-process backed by classes.jsonevidence), and a--claimflag. A claim fails on any fail, skip, or zero checks run. No more vacuous "no core checks ran" verdict.R4-04 audience-bound proof. New byte-exact
possession_proof_v05vectors and a recorded trace (conformance/golden-v05-g1.json), regenerated and checked withtools/gen-r4-vectors.mjs --check. The reference door's own proof now carriesaudience, and the SDK visitor checks it (§2.4).R4-05.
principal_idandrepresentative_idare MUST on every listing entry (§3.1).Review 4 mediums (R4-06..R4-20, by hand; the rest deferred with reasons in ROADMAP-0.6.md).
- R4-06:
encounter_idand greeting nonces MUST carry 128 bits from a CSPRNG.randomIdin the reference and the SDK now uses 16 bytes. - R4-07:
public_keyhas one encoding (raw base64url, 43 characters). Any other form is a malformed card (not_now, signed_card), nevernever. Newrepresentative_key_encodingvectors; the reference and the example door implement it. - R4-08: probing counts only requests outside the card's
mandate_scopeas well as the mandate (reference and example). - R4-09: no over-limit hold for a seat spending under an allowance grant (§7.3, reference).
- R4-10: counter state is a decision input, and
basis.counters_digestis optional. - R4-11: C294 binds the issuer; receivers detect it when they implement C210 or C235.
- R4-14: THREAT-MODEL §7/§9, the extension headers and the MCP notes refreshed.
- R4-15: nonce-reuse
neveris exempt from C288's expiry and appeal requirement (it binds nothing). - R4-19: the header's "every addition is optional" corrected.
- Example check: 89.
- R4-06:
Second fix check (R4-01, R4-03, R4-05 closed; R4-02, R4-04 partly; new highs N1, N2), repair round 1.
- N1: a revocation for an unseen card goes to a store bounded per principal and in total (C238). Failing closed only stops new seats; it never silences the door. Implemented in the reference and the example.
- N2: the copied-proof scan covers only the sender's own encounters, and encounters are bounded with idle ones dropped first (C152, C266).
- Example door:
- accepts the did:key form of
public_key; - checks the card's
owner_binding.rp_id; - keys the ledger by principal;
- refuses a mandate
critwith UNSUPPORTED_CRITICAL; - gives the lobby five readiness items, and answers an unknown type with the lobby;
- answers a farewell before an answer per §3.2;
- checks I-JSON precision;
- keys nonces by (from, nonce);
- answers a message addressed to another party with an empty envelope;
- returns the lobby deny before a verified card.
- accepts the did:key form of
- 82 example checks.
- Static evidence for C240 and C250.
- G1-v05 host card complete (C3 members, org_approval).
- verify prints the reference's per-class
--claim shoplines.
Attack harness: spec-level findings S1, S2, S4 are reported as "accepted (known spec-level, see threat model)".
Fix check (one fresh reviewer: R4-01, R4-04, R4-05 closed; R4-02, R4-03 partly; two new highs in the example door).
- The example door now follows §2.4's check order: key mismatch and copied proofs get
neverwith an expiry and an appeal path; nonce reuse getsneverand binds nothing; an exact greeting redelivery gets the original reply; and a host card shown as a visitor's credential gets the wrong-kind refusal. - Further example-door fixes:
conditional/narrow_actionsfor a partial overlap; probing counts only wholly-outside requests, within 24 hours (NEW-1);- a deny closes the encounter, and the introduction is required;
card_digestand mandate ⊆ card scope are checked;- outsiders get
RITUAL_ORDER; the lobby address enters the ritual; - the C189 act answers, seat caps and newcomer budgets, the default 60/min limit and I-JSON surrogates and integers;
house_digestis computed over {name, display_name, principal_id, policy};- revocations are bound to the card's principal, a
card_id-only revocation revokes every card with that id, and a full store fails closed (NEW-2).
- check.mjs has 70 checks, negatives included, plus in-process tests of the door's own code (evidence.json).
- In-process N/A now counts only when the claimant's own evidence file (
--evidence) names its test. The reference passes reference/engawa/conformance-evidence.json, andHOLDSsays plainly that unmeasured checks are self-asserted. critpaths gain[]for array elements, so the signer MUST forfields[].sensitivecan be met. The G1-v05 host card is complete and the trace records its house config. A listing entry withoutrepresentative_idends an SDK visit before the greeting. C24 gets an applicability note.
- The example door now follows §2.4's check order: key mismatch and copied proofs get
review 3 fixes (2026-11-04; pre-release, not yet published)
- R3-01 (high) Relay / unknown-key-share closed. Under
shokai/0.5the possession proof is signed over{encounter_id, nonce, audience}(audience= the door's host-card representative id) and carriesaudience; every signed message after the greeting carriesto. A door refuses a presentation not addressed to it withnot_now/CREDENTIAL_REQUIRED(readinesspossession_proof) and binds nothing.shokai/0.3is unchanged. New check C292; THREAT-MODEL spoofing row; attack R9 (48 attacks); tests in reference/engawa/test/v050.ts. The SDK visitor, conformance runner and enforcement suite sign the audience. - R3-02 (high) One source of truth for the conformance map. conformance/classes.json is authoritative;
homes.json"checks" is generated from it by tools/conformance-classes.mjs, and--checkand trace-lint R8 fail on any drift. R8 also fails when a check is cited in sections of different statuses. Cross-class tags fixed: §6.11 has its own check C293 (was C250); C210 split (C294 core card rule, C210 staysext-institutions); C287 split (C296 code guessing inext-introduction-card); C199 and C256 roleboth; stray C236/C243/C245/C260/C178/C199 citations removed from sections of another status. - R3-03 (high) Core Door (browse) made small and consistent. §0.1 lists its whole duty (identify, host card + listing + summary, browse only, polite leave, rate limits) and replaces every fetch with delivered revocations and hour-long seats;
did:key/did:jwkprincipals only; vouches not weighed; normal skew, no state epoch; a closed list of extensions it may claim. Excludes now also C24, C65, C191. New check C295. examples/minimal-browse-door: a 94-line door from SPEC.md alone, no SDK, passing 17 browse checks (run in the full suite). - R3-08 Only
deny/MANDATE_SCOPE_EXCEEDED(a request wholly outside the signed mandate) counts toward probing; an unmetconditionalnever escalates tonever. - R3-11 A byte-identical greeting resend is idempotent (the original reply again, nothing recorded); exact redelivery comes before nonce reuse.
- R3-12 A preset's status is the lowest of its classes:
browseandshopstable,bookingandmembersprovisional; R8 enforces it. - R3-18 (part) The
[0.3 WINDOW END …]placeholder and the stale §13 item 29 are gone (the number is kept). - Checks: 281 (C292–C296 new). Deferred to v0.6.0: listed in the expert-review 3 status table.
independent re-review fixes (2026-11-04; pre-release, not yet published)
- RR-01 Owner passkey signatures (Appendix A, A.1: C51, C195) and durable state (§3.6: C192, C175) are core.
- RR-02, RR-10 Re-homed C165 (ext-sign-up-limits), C167 and C169 (ext-inbound-door), C212 (ext-spending); roles fixed for C235 (door), C251, C252, C247 (visitor), and C83, C162, C197, C230, C254 (both). trace-lint R8 now fails when a check's class isn't the class of a section citing it, when its role contradicts the subject of its citing MUSTs, and when homes.json disagrees (phantom C277 removed; C17, C131 are
informative). - RR-03 Probing counts only
conditionalandMANDATE_SCOPE_EXCEEDED.POLICY_DENYnever counts, and honest refusals never lead tonever. Test: three or more trust-gated shapes undershokai/0.3. - RR-04 One Money grammar (§5.1 D10) everywhere. Canonical form is for comparison only, and "equal" means canonical equality.
- RR-06 The
shokai/0.3window is the one dated rule, scoped in §0.1. The placeholder is removed. - RR-08 Newcomer budgets are keyed by principal, with the source address only as a coarse fallback. There is no total cap by default, and seats per source go from 4 to 16. The trade-off is in THREAT-MODEL.
- RR-09
critis a MUST for the seven narrowing members, and the reference signers add it. Older readers are not protected, and the spec now says so. - RR-11 G9 is a
shokai/0.5visit recorded at the shape level (conformance/golden-v05.json). A kind-less host card waives nothing for admission (C214/C215). - RR-12 The MCP refusal code is
-32012, outside the reserved range (clients still read-32040from older places). The runner probes withserver/discoverand falls back toinitialize. - RR-14 Core Door (browse) profile and place presets (
browse,shop,booking,members). They are declared in classes.json and may be named in a host card'spreset. R8 checks that every preset class has tests.
core and extensions (2026-11-04; pre-release, not yet published)
Expert review SHK-07: the core was not minimal, and "provisional" MUSTs had no conformance meaning. The specification is now a minimal core plus named extensions, with conformance classes and a defined status vocabulary. No wire change: section numbers, check numbers, messages, members and codes are unchanged, and every 0.5 test, vector and attack passes as before.
- Conformance classes (SPEC §0.1, C290). Core Door and Core Visitor, plus one class per extension (
ext-…). A claim names the version, the core class or classes and every extension class, with provisional ones listed apart; a skipped check never counts as passed; a SHOULD is a warning, never a failure. - Named extensions inside SPEC.md. Stable:
ext-spending(§3.6, §5.2, §5.5, §7.3, §8.1, A.1),ext-institutions(§5.4),ext-host-guards(§6.10),ext-return-and-setup(§8.3, §8.4),ext-sign-up-limits(§9.4),ext-inbound-door(§10),ext-late-delivery(§11.2),ext-mcp-binding(§11.3),ext-visitor-text(§12.4),ext-high-volume(Appendix E). Provisional:ext-site-binding(§3.1.1),ext-introduction-card(§4.1),ext-trust-receipts(§6.9),ext-host-budget(§6.11),ext-context-requests(§6.12),ext-reservations(§7.4),ext-owner-ask(§7.5, §7.6),ext-costly-caps(§7.7). Each extension section opens with a line naming its extension and status. The documents inextensions/remain extensions, each a class. - Status vocabulary (SPEC §0.1, C291). Stable, provisional and experimental are defined. A provisional extension is opt-in, never required by a core or stable class, tested in full when claimed, and promoted only by a version release; an unclaimed one's members are read as unknown members. "Provisional" no longer appears on individual normative lines.
- Promoted to stable core. The red-team phase 1 and expert-review hardening rules in core sections: the open-seat revocation re-check (C265), idle encounters (C266), the published host card (C268), https only (C269), atomic single use (C270), the signed vouch-log head (C271), accept-anyone vouches admit only (C276), anonymous and newcomer rate limits and seat caps (C278, C287), the house digest over action definitions (C280), the short seat for cards with no revocation list (C281), and the expert-review rules C284, C285, C288, C289. C286 is stable in
ext-spending. - No time-conditional rules (C282). C282 said a vouch-log head would become required "at v0.5.0 final" while §4 kept the bare-array path. v0.5.0 keeps the §4 rule (a v0.4.0 vouch's bare-array log is still read, with the residual risk in §13 item 37); an introduction card always needs a head (C271). Requiring a head for every vouch is a candidate for the next version.
- Appendix F, the check map. Every check is in exactly one class (276 checks: Core Door 156, Core Visitor 103, stable extensions 100, provisional extensions 17).
conformance/classes.jsonholds the same map and labels each test file and each test vector group with the classes it exercises.tools/conformance-classes.mjsgenerates both; trace-lint R8 fails on a check with no class, a normative line outside a classed section, or a stale map. - Reference follow-ups (C286, C289). The reference place server (
reference/engawa, and the SDK core synced from it) now keeps the place-side allowance ledger per grant window and per seat (refusednot_now/SEAT_SCOPE_EXCEEDED, released with the act under C194) and refuses a request or act whosecritit can't honor (not_now/UNSUPPORTED_CRITICAL, not counted toward probing).protocol-shapes.tsgainsMustUnderstand(crit) on cards, mandates and allowances, and theUNSUPPORTED_CRITICALreason code. - Deferred to v0.6.0: moving the named extensions into their own documents (their names stay); per-class and per-kind (wire, vector, attested) reporting in the conformance runner (SHK-08); the §6.4 determinism option for counters.
red-team additions (2026-11-04; pre-release, not yet published)
- Expert review SHK-03 (2026-11-04): C289. Extension must-understand marker (crit) and unknown enum value rules (normative, with tests).
- [ ] C289 v0.5.0 (expert review SHK-03: extension must-understand marker (crit) and unknown enum value rules)
- Expert review SHK-05 (2026-11-04): C286. Host-enforced per-place and per-visit cap on allowance-derived spending (normative, with tests).
- [ ] C286 v0.5.0 (expert review SHK-05: host-enforced per-place and per-visit cap on allowance-derived spending)
- Expert review SHK-01 (2026-11-04): C284. Single canonical JSON reading (I-JSON) before verification and budget counting (normative, with tests).
- [ ] C284 v0.5.0 (expert review SHK-01: single canonical JSON reading (I-JSON) before verification and budget counting)
- Expert review SHK-02 (2026-11-04): C288. Graduated penalties: honest setup errors warn and retry, only signed misconduct escalates (normative, with tests).
- [ ] C288 v0.5.0 (expert review SHK-02: graduated penalties: honest setup errors warn and retry, only signed misconduct escalates)
- Expert review SHK-06 (2026-11-04): C287. Limits that include free principals: introduction-code guessing, seat caps (normative, with tests).
- [ ] C287 v0.5.0 (expert review SHK-06: limits that include free principals: introduction-code guessing, seat caps)
- Expert review SHK-04 (2026-11-04): C285. Normative SSRF rules for door fetches of visitor-chosen URLs (normative, with tests).
- [ ] C285 v0.5.0 (expert review SHK-04: normative SSRF rules for door fetches of visitor-chosen URLs)
- Red team 4d (2026-11-04, provisional): C279. Narrowed: doors that run as several instances of one host MUST share one BudgetStore (and DoorStore); FileBudgetStore covers one host. Residual: several hosts without a shared store can each spend up to the ceiling; in-flight overshoot remains (§13 item 33).
- [ ] C279 v0.5.0 (red team 4d: shared host-budget store across instances, narrowed; provisional)
- Red team 2b (2026-11-04, provisional): C282. Narrowed: at v0.5.0 final a RevocationLogHead is required for every vouch (bare arrays refused); until final, v0.4.0 vouches may still read a bare array (residual stale-prefix risk). No behavior change yet.
- [ ] C282 v0.5.0 (red team 2b: vouch log head required at v0.5.0 final, narrowed; provisional)
- Red team finding 3 (2026-11-04, provisional): C283. Within one visit, a required context field declined may return the same request once for reconsider; a further decline is
not_now/POLICY_DENYwith retry after the window and nocontext_request. - [ ] C283 v0.5.0 (red team finding 3: reconsider-once for declined required context fields, §6.12; provisional)
Repository and packaging work for going public, and two provisional additions.
Red team finding 2a (2026-11-04, provisional): C281. A revoked card with no
revocation_urlcould keep its open seat until the seat expired (up to a day). The gate now caps a seat granted under such a card atNO_REVOCATION_SEAT_TTL_S(3600 s, exported fromcore/gate.tswithseatExpiry), in addition toseat_ttl_s, the mandate andmax_session_s. Cards that name arevocation_urlare unchanged (list re-checked within 300 s, C265); a deliveredcard_revocationstill ends any seat at once (C198). SPEC §2.6 gains one bullet. New testno-revocation-url-seat.test.ts.[ ] C281 v0.5.0 (red team finding 2a: short seat lifetime for cards with no revocation_url, §2.6; provisional)
Red team finding 5 (2026-11-04, provisional): C280. Confirmed:
house_digestalready covers action definitions, sincepolicy.actions,spending_actions,consideringand the account settings are inside the hashedpolicy, and the reference listing (placeActions()) derives everyPlaceActionfrom them. No change to the digest's shape. SPEC §2.3 now says so outright: a listing's action definitions MUST be exactly those derived from the signed house config, and serving a different one is a changed house. New testdigest-actions.test.ts(digest moves with purposes, data_asks, spending_actions and account settings; listing matches the signed policy).[ ] C280 v0.5.0 (red team finding 5: house_digest covers action definitions; listing derived only from the signed policy, §2.3; provisional)
Red team 4b (2026-11-04, provisional): C278. The reference door now enforces SPEC §11.1's anonymous rate limit (the C266 remainder): lobby posts, unsigned ritual bodies, and listing, house summary and host card reads are counted per client address and in total over a 60-second window (
ANON_RATE_PER_ADDR= 60,ANON_RATE_TOTAL= 600;DoorOptions.anonRatePerAddr/anonRateTotaloverride,anonRateAddressHeadernames a trusted proxy header). Past either cap:429,retry-after: 60, an emptyReplyEnvelope(empty JSON for reads), never a finding. Signed ritual traffic isn't counted.respond()/handleHttp()takeclientAddress(Node: the socket address); counts are in memory, so a restart resets them and instances without a shared counter each apply their own. New testanon-rate.test.ts.[ ] C278 v0.5.0 (red team 4b: anonymous rate limits implemented in the reference, §11.1; provisional)
Red team H4 (2026-11-04, provisional): C277. Two new black-box conformance checks in
conformance/v050-h4.ts, run by the runner at thev050level:v050.site_binding(SPEC §3.1.1: a host card'splace.siteis a serialized https origin, and the site's own/.well-known/shokailists the entry exactly once, with the card'sprincipal_idfor a door on another origin) andv050.host_budget_declared(SPEC §6.11:host_budgetandknown_visitorsnever appear in the listing, the house summary or the lobby briefing). Both skip, never pass, when the door shows nothing to check. New testh4-checks.test.ts.[ ] C277 v0.5.0 (red team H4: black-box checks for §3.1.1 site binding and §6.11 host budget; provisional)
Red team phase 1 (2026-11-03): two provisional additions. Context requests on the wire (SPEC §6.12): the request rides on the invitation response (before entry) or on the grant (after admission); the owner's signed
ContextResponserides on the retriedinvitation_requestor on a lateract(InvitationRequest.context_response,Act.context_response). The door relies on a response only for a request it sent to that owner, unexpired and once; a required field declined returns the same request so the owner may reconsider; answers with retention 0 go when the seat ends. The SDK addssignContextResponse,visit.contextRequest, thecontextResponsevisit option andact(…, { contextResponse }), and the visit report quotes each field's what and why. The app-proxy path for hosted shops (SPEC §3.1.1, C264): when a site's/.well-known/shokaigives no pointer, arel="shokai"link in the home page's head to exactly<site>/apps/shokai/doorbinds the door (SDKAPP_PROXY_PATH,via: "app_proxy"). SPEC §13 items 34 (narrowed) and 35 (new).Red team phase 1 fixes (2026-11-03, provisional): C265–C270. Open seats granted under a card naming a
revocation_urlre-read that list (≤300 s) before every act, fail closed otherwise (C265); idle encounters drop oldest-first, seats never dropped (C266); house summaries restatecontext_requirementsand a visitor checks each request against it, declined fields aren't re-asked for 30 days, sensitive fields can't be required/before_entry/retained (C267); doors serve a signedGET <entry>/host-card.jsona visitor reads before its card, with matchingpayload_digest(C268); placebase/entry/lobby/inboxarehttpsoutside loopback (C269); single-use items are claimed atomically across instances, repeats get the original answer (C270). NewHousePolicyCore/HousePolicytypes and narrowed v0.5.0 types (HostCardV050,HousePolicyV050Required,LobbyBriefingV050,InvitationRequestBound).Red team H3 (2026-11-03, provisional): C276. §4: at a place whose introduction policy is accept-anyone (
trusted_introducers: "*"), a vouch from an introducer the place does not name (and not its own invitation) carries reduced weight. It may admit, but it never counts toward known status or any trust threshold beyond plain admission, and a place may not raise a visitor's standing on such vouches alone. This stops a ring of introducers vouching each other into standing. SDK:openOnlyVouch/capOpenOnlyin the core gate;redteam-highscovers the ring at accept-anyone vs. curated places. Threat model: H2 (allowance across places) recorded as an accepted residual risk.Red team batch 3 (2026-11-03, provisional): C275. The black-box conformance runner gains
v050.host_card_served(§3.2, C268:<entry>/host-card.jsonis signed and itspayload_digestmatches) andv050.context_request_declared(§6.12, C267: every requested field is declared verbatim in the house summary); each skips when the door gives it nothing to check. New SDK testredteam-highscovers §4.1 place binding of Shōkai introduction cards.Red team phase 1 decisions (2026-11-03, provisional): C271–C274. The introducer signs a log head (
RevocationLogHead), and a verifier MUST check its signature, that it names this log, and that it matches the entries' count and lastentry_hash, refusing a head older than 24 hours (REVOCATION_HEAD_MAX_AGE_S) or from the future beyond skew; a Shōkai introduction card REQUIRES a head while a v0.4.0 vouch still reads a bare array (C271). Everycard_receiptcarries aclaim_challenge(≥128 random bits, ≤300 s,CLAIM_CHALLENGE_TTL_S) that theIntroductionClaimsigns, and a door MUST refuse a claim with no challenge, one it didn't issue for this encounter, an expired one, or a re-used one; an offline-guessed code is then useless without an online attempt, which counts toward the samegate_probinglimit as codes bound to others (C272). A visitor counts as known through paid purchases only with paid purchases on 2 or more separate days (EARNED_MIN_DAYS), each before today in the owner's time zone; one small purchase isn't enough and a free booking never counts, though a place owner MAY mark a visiting owner known at once (C273). Default caps of 20 per seat and 100 per visiting owner per day apply to costly actions (spending, account-opening, host-model calls); a place MAY lower them or raise them only explicitly (SHOKAI_COSTLY_CAPS_INVALID), past a cap an act is refusednot_now/RATE_LIMITEDwith retry after (never a penalty) and no host-model call is made, and the reference SDK keeps counts in memory (C274).Context requests (SPEC §6.12, provisional, from P33). A place declares in its signed house config whether the Shōkai visitor card is enough, or it admits and then requests context, or it requests context before entry (
policy.context_requirements: up to 12 fields, each with what and why). It may request only declared fields; the visiting representative takes the request home; the owner answers or declines field by field and signs (ContextResponse); before entry, the request rides onnot_now/CREDENTIAL_REQUIREDwith retrywith_credential[context_response]. Declining is never misconduct. New checklist item C263; core checks inv050.ts; SDK testcontext-requests.test.ts. The owner-held representation profile stays in P33 (Proposed).The host budget (SPEC §6.11, provisional). A place's owner signs ceilings for the host representative's model inside the house config (
policy.host_budget: per visit, per day and per month, in plain dollars, tokens or calls, with an alert at 80% by default), so a business never wakes up to a runaway model bill. The door meters each host model call with the owner's own price table (no live pricing) and checks before each call whether it could pass a ceiling; if so, the model isn't called, the visitor gets a fixed courteous line ("We're closed to agent visits for today. Please come back tomorrow.") and the owner a notice. Admission needs no model call and goes on. Days and months reset at midnight in the owner's time zone; a restart resets nothing. A"subscription"mode, for a host whose model is paid by a flat fee, only counts calls for the owner's alerts, with optional ceilings. SDK:door.hostTurn(),door.hostBudgetCheck()/hostBudgetSettle(),door.ownerNotices(),door.hostBudgetUsed(),priceTableMeter(),DoorOptions.costMeter; a door with an invalid budget, or one its Shōkai host card doesn't cover, won't start. New SDK testhost-budget.test.tsand enforcement case 21 (a drain with many visits under fresh Shōkai visitor cards). §13 item 33 lists what is still open, including the default ceilings. The newcomers' share: all visitors the place doesn't know yet (not listed by the owner, no trust receipt or introducer, no paid purchase on an earlier day; a free booking alone doesn't count) together get at most a share of each day's ceiling (newcomer_share, default 25%), since fresh Shōkai visitor cards cost nothing to make; visitors the place knows still get conversations. A short design note in §6.11 says who pays.Enforcement suite (
npm run enforce).tools/enforce/: one command starts the SDK's reference door (the Lanternmoss Tea House,createDoor) on 127.0.0.1 with test keys and software passkey stand-ins, attacks it in 20 cases (no card; altered, expired, revoked, replayed, forged and stolen cards and errands; a revocation list that can't be reached; $50 on a $40 errand; a held over-limit purchase that comes back to the owner; three $20 purchases across visits; a purchase outside the errand; a card number; impostor and lookalike doors; a setup change without the owner's signature; instructions hidden in messages; and, at demo 2's tea house, never-share questions asked every way, an ask to widen the setup, forged and replayed owner answers and setup changes, bookings outside the signed limits, and forged booking confirmations) and prints, for each, the attack, what the door did and the spec section it enforces, with a JSON report. A rule the code doesn't enforce is reported as a GAP and fails the run. The one known gap it used to show (a self-consistent lookalike door the visitor had never met before) is closed by site binding (§3.1.1). Run bytools/run-all-suites.sh(its 51 checks count in the core totals) and as its own CI step. No AI, no outside network; nothing on the wire or in the specification changes.Seven steps everywhere, and yours-not-a-platform's (round 13j).
docs/how-it-works.mdnow tells one visit in the same seven steps as "Shōkai in 30 seconds" (window; knock and introduce; welcome and ask; decide and explain; pass; complete the visit; report home), with the anonymous visitor as a short scene before step 1.docs/index.mdgains "Yours, not a platform's": the representative belongs to its owner, the owner is in the driver's seat, nothing is forced, and reports home can be rich.docs/concepts/report-home.md: theVisitReportis the floor, not the ceiling (pictures, audio, the representative's own personality; quoted place text stays untrusted). No SPEC change.Home-page review (round 13g). Tested agents told accurately from the field tests (Muse's first plain visit and its admitted visit with stamp No. 002; Hermes Agent admitted, and its own Corsavel Books door at 24/24; OpenClaw admitted twice), with every visit at Willowfold Tea House, the fictional test place. "Everyone can implement either side of the door, or both." The seven steps in the README and
docs/how-it-works.md: Welcome and ask, a place's own style of admitting, Complete the visit (noticing what the place presents, in text, images or sound) and Report home and share the story (missions as a series of quests). A friend's recommendation versus a vouch (the Noor example). The demo's limit explained in plain words, and where it runs. Owner onboarding is now called a conversation, not an interview, in plain pages.Representatives, guests and planned visuals (round 13f). "A representative, not a representation" (it has agency and acts on its owner's behalf within what the owner signed; not a guard, it knows and belongs to what it represents) in
docs/index.md, the owners-and-representatives concept page and the glossary. Visitors and guests in plain words indocs/how-it-works.md,docs/concepts/arriving.md,docs/prepare-your-host-representative.mdand the glossary: what exists today (a place's own invitation, a vouch signed by its own key, §4/D17) and what's proposed (S8: a "come visit" invitation, guest marking in the pass and the report, a leaflet for an invitee without a representative), added todocs/future-directions.mdand the proposals candidates list. A newpurpose-lanesdiagram on the limits page. The README marks a planned introduction video and card illustration.Concepts, spec intro and examples review (round 13e). The concepts page "Cards" is now Shōkai cards, defined as an introduction card inspired by the meishi (not a payment card, ID card or driver's license), with "Shōkai card" in plain prose (code identifiers unchanged). Arriving, the glossary, FAQ, architecture, concepts index, README and diagrams (
three-ways,thirty-seconds,layers,arrival-sequence,core-extensions) use "introduced by someone known here", with a short fictional example: a friend signs the vouch herself, her representative can't sign it for her, and a tip heard at a gathering is a recommendation, not a vouch. Limits and mandates opens with purpose before money (a mandate may be called a mission or a quest in friendly copy). Report home, visit stamps, outcomes and how it works: a representative comes home with its pass and, where offered, a signed visit stamp, as proof of visitation. New pagedocs/future-directions.md(not in the protocol). Owners and representatives points to setup. The specification landing, extensions index and MCP notes invite readers to discuss the spec with their own technical agent, and the MCP notes say how Shōkai improves MCP. Examples: what annotated visits are, "Browse before you join", "Unsolicited offer, pressure declined", "A friend introduces a brand at your door", a simpler co-worker opening. Field tests: "What surprised us", the models that wouldn't play the bad actor and became defenders. Non-normative; SPEC.md is unchanged.Docs landing review (round 13d).
docs/index.md,docs/how-it-works.mdand the README's plain-words sections: why it matters now (Axios on banks, Amazon and Muse, the true story); "tested with agents that already exist", each maker named once; "Shōkai card" where a bare "card" could read as a payment card; each place keeps a Shōkai door; the leaflet is handed to take back to the owner; plain-language pages say a visitor is admitted with a pass (the specification's seat, which stays in SPEC.md, technical pages and code); "Introduced by someone known here" replaces "the optional extra"; "Anyone" can implement; "Businesses, organizations and individuals with a place"; the two onboarding interviews; a new diagram,docs/diagrams/src/mcp-door.mmd(and-tall), for how Shōkai makes MCP better; and the meishi exchange in Japan today, with sources. Non-normative; SPEC.md is unchanged.Home-page review (round 13c). README "Try it": who Aya is (a customer, not the shop's owner) and why she sent her representative; a seat in plain words; the measured demo time (1.4 s for the visit).
docs/how-it-works.md: how much to spend is between the owner and the representative, and what the shop sees today. New annotated examples,docs/examples/heritage-watchmaker.mdanddocs/examples/fan-community.md. The bank example opens with the situation today and adds a prospect; the co-worker example says it's inside one company and answers "why a door when there's single sign-on" in plain words. The setup guides: the onboarding interview's depth, with two fictional examples; a place's own policy; learning over time.docs/why.mdadds banks (Axios, October 22, 2026). The conformance command indeploy/HOST-A-PLACE.mdandschema/README.mdis nownpx -p @kigenka/shokai shokai-conformance, which works outside an install. Non-normative; SPEC.md is unchanged.Home-page review (round 13b). "Shōkai in 30 seconds" in the README and
docs/how-it-works.md: the Shōkai card (a meishi-style card, not a credit card) and what limits are; a representative knows its owner; the window is the doorstep; the introduction states purpose and context; step 3 is now "Review"; a seat is a temporary, limited pass with an end time; both sides remember the visit.docs/why.mdgains "Happening now: agents at the store" (Amazon and Meta's Muse, Amazon's agent terms, two public X posts, and what a Shōkai door would offer instead), and the true story is dated.docs/index.mdnames example agent frameworks and links each implementer to its guide; the setup guides say a representative should know its owner. Non-normative; SPEC.md is unchanged.Tested with existing public agents. The README gains a short "Tested with existing public agents" section near the top: a table of Grok Bot, Muse (Meta's personal agent), Hermes Agent and OpenClaw, what each was tested on, and the field tests behind it. Each tested agent with a public maker names it: Muse by Meta, Hermes Agent by Nous Research (open source) and OpenClaw by the OpenClaw Foundation (open source), also in
docs/index.mdand the platform table.docs/field-tests.mdgains "The agents we tested with". Wording that read as if Muse were one of the project's own representatives is fixed in the README,NOTICE,docs/index.md,docs/how-it-works.md, the field-test summary and the serverless signing notes: Muse is Meta's agent, and what the editor signed is a card for the agent he uses there. Non-normative.A true story on the problems page.
docs/why.mdgains "A true story: my agent bought a domain": what happened when the editor's agent bought the domain for Shōkai's website on 2026-10-28, what each site saw, and what a Shōkai door would change, with a before-and-after diagram (docs/diagrams/src/true-story-domain.mmd, wide and tall). The README's "Why Shōkai exists" links to it. Non-normative.A fifth use case: an online university (docs and an SDK run).
docs/examples/online-university.mdandexamples/university.md, with host and visiting diagrams, andexamples/traces/university.mjs(25 checks, run bynpm testinpackages/shokai). Fictional institution and people; non-normative.Lobby wording (for v0.3.1). The reference door's plain sentence for an owner whose agent has no card now reads "Your agent needs a representative card you sign once, saying who it represents." (was "Your assistant needs a profile card that you sign once, saying who it works for."), in the SDK (
@kigenka/shokai) and the reference place, with the same change in the Spanish, French, Japanese and Portuguese texts. It isowner_textprose, so nothing on the wire changes and no decision depends on it (SPEC §3.3, §6.1). The prototype's recorded transcripts keep the old sentence, as recorded.JSON Schema.
schema/v0.3.0/schema.json, generated fromprotocol-shapes.ts(the TypeScript stays the source of truth), as MCP publishes its schema.npm run check-schema(innpm testand CI) fails if it is stale, validates every golden-trace message without a fixture placeholder (103), and checks that broken controls fail. The SDK ships it asspec/schema.json(@kigenka/shokai/schema.json).Package links.
repository,homepageandbugsare back inpackages/shokai/package.json. The 27 relative links in the package'sspec/that only worked inside the repository now point to the same files at the release tag on GitHub, andcheck-linkschecks every Markdown file in the package's bundle.spec/conformance/mcp-2026-07-28-notes.mdis synced again (0.3.0 shipped an older copy that still said "rc4").Release workflow. It removes
"private"only in its own working copy, and skips a version that is already on npm, so pushing thev0.3.0tag publishes nothing.CI. Node.js 20, 22 and 24; the schema check; manual runs; one run per branch at a time. Dependabot for npm and GitHub Actions.
Issues and pull requests. Issue forms for specification issues and changes, bugs, conformance checks and implementation reports; blank issues off, with links to private vulnerability reporting, Discussions and the proposal process. The pull-request template asks about the schema and AI assistance.
CODEOWNERSandMAINTAINERS.mdname the editor, @Humanoidme.Project documents. A new README front page (what the repository contains, a 60-second try, three diagrams: the introduction, who stands behind whom, the trust path; a repository map);
MAINTAINERS.md; SECURITY.md gains supported versions, what happens after a report, and the behaviors that are intended rather than vulnerabilities; CONTRIBUTING.md gains getting started and where things live; a map of every docs page.Tested in the open. The field-test report (
docs/field-tests.md), a review history (docs/review-history.md) and the v0.3.0 release notes (docs/releases/v0.3.0.md) are published in the repository.Social cards say v0.3.0 instead of "release candidate" (re-rendered from
docs/assets/social-src).Deployment notes use placeholders instead of the steward's local paths, team and deployment identifiers.