What's in v0.5.1
Published
Package 0.5.1 is an earlier package release. The latest published npm package is 0.7.12. 0.5.1 keeps specification v0.5.0 on the wire (wire tag shokai/0.5, spec_ref.version "0.5.0", the same JSON Schema id), fixes two red-team bugs found in 0.5.0, and adds the rule that a place must not ask for a password, recovery phrase or card number. Install with npm install @kigenka/shokai@0.5.1. Source: github.com/Kigenka/shokai.
A patch release of the package. The specification stays v0.5.0 on the wire: the wire tag is still shokai/0.5, spec_ref.version is still "0.5.0", and the v0.5.0 JSON Schema file is unchanged. The new members are in a new schema file, schema/v0.5.1/schema.json, with its own $id. 0.5.1 adds two optional members and one MUST-level rule, so a 0.5.0 peer and a 0.5.1 peer keep talking to each other. What a 0.5.0 peer sees differently is listed under each item.
- A binding
neversays when it lifts and where to appeal (red-team round 3, V05-F7-04; C288, SPEC-DETAIL §9.3). A door'sneverreply that binds a key or principal now carriesretry: { kind: "never", until, appeal: { url, place } }, withuntilat most 180 days after the binding. New door optionappealUrl(default: the door's inbox address). The new JSON Schema fileschema/v0.5.1/schema.json($idhttps://github.com/Kigenka/shokai/blob/v0.5.1/schema/v0.5.1/schema.json) adds the two optional members toRetryand aNeverAppealdefinition;schema/v0.5.0/schema.jsonstays byte for byte as released. A 0.5.0 receiver ignores the two members, as the Conventions require of unknown members. A validator that uses the 0.5.0 schema rejects aneverthat carriesuntilandappeal; to accept them, validate with the 0.5.1 schema file. The package's@kigenka/shokai/schema.jsonis now the 0.5.1 file. The 0.5.1 schema also makesin_reply_tooptional oninvitation_response, so the lobby's answer to plain prose or a malformed message validates: SPEC-DETAIL §2.3 says that answer MUST NOT carryin_reply_to, and the 0.5.0 schema wrongly required it. Every otherinvitation_responsestill MUST carry it; a schema can't express that condition. - A pasted session is refused (red-team round 3, V05-F10-04; C210). The credential names add
session_token,session_key,set_cookieandauth_token, and a pastedsessionobject carrying a cookie, token, secret or sid, or acookieholdingname=value, is refusedCREDENTIAL_NOT_ACCEPTED. Ordinary words such as a cookie flavor or a booked class session are not. - Context questions must not ask for a password, a recovery phrase or seed, or a card number (V05-F10-03; SPEC-DETAIL §6.12, C263, C267; MUST). A door refuses to start with such context requirements and will not emit them; a visiting representative refuses a request that arrives with them and says so in its report. A 0.5.0 door that asks such a question gets refused by a 0.5.1 representative.
- "Pass" in human-readable text. The SDK's report home, its MCP refusal messages, the CLI and the door's English courtesy lines now say pass where 0.5.0 said seat ("the place no longer knew my pass", "get a pass first", "Your pass is ready"). The wire field
seatand reason codes such asSEAT_SCOPE_EXCEEDEDare unchanged. If you matched 0.5.0's message text, match thereason_codeinstead. - The specification copies in the package carry the editor byline "YSY", the pass/
seatheadings and the updated threat model; outdated wording and internal notes were removed. - Release tooling.
tools/schema/schema.mjswrites the schema named byrelease-status.json'sschema_versionand fails if a released schema file changes.tools/check-links-versions.mjsaccepts a package patch version on the specification's major.minor line (release-status.jsongainsspec_version), andtools/verify-quickstart.shreads the pinned version from the package.
0.5.0 lacks all of the above. Use 0.5.1.