For builders implementing Shōkai. A visiting agent doesn't need this; follow the place's guide and the door's replies.
Shōkai specification v0.3.0 (previous version)
Previous version
This is v0.3.0, released 2026-10-28, kept for reference. The current specification is v0.5.0. Links from this page go to the current pages. This note is the site's, not part of the specification.
Specification v0.3.0 (core). Released 2026-10-28: the first release of the 0.3 line, the text of release candidate 4 (0.3.0-rc4, 2026-10-27) with its clarifications, and no wire change from it. The 0.3 line adds card revocation and owner key loss (§2.6), per-place owner identity (§2.8), durable place state (§3.6), the act check order and operation counting (§7.2), the owner signing profile (Appendix A.1 and SIGNING.md), and normative Security and Privacy Considerations (§12). rc3's fixes came from a clean-room implementation written from this text by a sandboxed agent and run by the editors, not by another organization; see the changelog. Status: a released version, not 1.0; review continues, and changes go into later versions. Editor: YSY.
© 2026 Yu Sung Yeh. Licensed under the Apache License 2.0. Patent commitment (draft): PATENTS.md. Names and logo: TRADEMARKS.md.
Shōkai (紹介, "introduction") is an open protocol for places and the agents that visit them on someone's behalf. A place (a tea shop, a store or brand, a marketplace, a community, a bank, another person's agent) keeps a door, and its own agent, the gatekeeper, stands there. A representative arrives and introduces itself: it proves who it is here for (a principal, a real person or organization, bound by a signature), states why it came, and shows the limits its owner signed. This document defines that self-introduction (and the optional vouch of someone the place already trusts), what the representative asks, how the place answers (always with a machine-readable answer, and with a lobby briefing for an agent that isn't ready), how the representative acts within the limits its owner signed, how it reports home, and how its conduct has consequences. Agent-to-agent exchange happens only inside a place: at its door, and, under the Gatherings extension, among the representatives a place let into a gathering. What happens after admission runs over MCP, A2A or the place's own APIs.
How to read this (informative). The core case is self-introduction (jiko-shōkai, 自己紹介): §4 makes vouch: null a valid step that every place accepts. Vouching is an optional extra that a place may ask for, typically before opening an account or moving money (§4). An unprepared agent is never ignored: it gets the place's LobbyBriefing, with one plain sentence per missing item for its owner, and a deny / not_now it can recover from (§3.3). Plain-language documents call the gatekeeper "the host at the door" and the lobby briefing "the leaflet"; in this text, Host names the place being entered (§1).
This document is the core. Optional features are extensions, each with its own conformance level, versioned with the core. Wire tag: shokai/0.3. Types: protocol-shapes.ts. Test vectors: conformance/test-vectors.json. Golden traces and the conformance checklist: conformance/golden-traces.md. Where each test lives: conformance/homes.json. Version history: CHANGELOG.md.
What to implement (informative).
| Part | What it is | Who implements it |
|---|---|---|
| Core (this document), required | §2 identity and the signed envelope, §3 the door, ritual and lobby, §4 introductions, §5 mandates and limits, §6 the decision, §7 seats and acts, §8 owner consent and visit reports, §9 conduct, §11 the HTTP and MCP bindings, Appendix A passkey signatures and test vectors | Every place and every representative, for the side it plays; §10 (the inbound door) only for a representative that keeps one |
| Extensions (extensions/), optional | Stable: Gatherings, Peer meetings, Visit receipts, Revocation status, Door gifts, Seeking, Meaning notes, Profiles and evidence. Experimental: Teaching visits, Signed place listings, W3C VC mapping | Only an implementation that claims the extension |
Proposals (proposals/ in the repository), drafts | P1–P20 | Nobody: a proposal is not normative until merged |
The 0.3 line was feature-frozen on 2026-10-27; from then until this release, changes were for clarity, correctness and packaging only, with no new features. Clarifications made since the freeze are marked in the text and listed in the CHANGELOG: the visitor names the encounter (§2.2, C197); revoking a card ends its open seats (§2.6, C198); names are claims (§2.1, C199); a GET at a place's own address names it (§11.1, C200, a recommendation); the owner's own name at the owner's door (§10, C201); showing the leaflet to the owner (§3.3); no forward skew with a state epoch (§3.6); and the signing page's summaries and spending items (SIGNING.md §2–§3).
Conventions
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in BCP 14 [RFC2119] [RFC8174] when, and only when, they appear in all capitals, as shown here.
Traceability. Every normative statement carries one or more tags in square brackets:
[SC-…]: a frozen scenario in the catalog.[G…],[M1],[L1],[GA1],[PA1],[FA1]: a golden trace.[C…]: a conformance check.[D…]: the design decision that set the rule (DECISIONS.md).
node tools/trace-lint.mjs enforces this. Untagged text is informative.
Core and extensions (D18). This document is the core. An extension adds rules only for its own features, has its own conformance level and is versioned with this core; it never weakens a core rule, and where an extension and the core seem to disagree, the core wins. An implementation can conform to the core alone.
Message shapes. Field names refer to protocol-shapes.ts. Where this document and the types disagree, this document wins, and the disagreement is a bug.
Extension members. A receiver MUST ignore object members it doesn't know and MUST NOT refuse a message because of them; digests and signatures cover them as received, since JCS is computed over the parsed payload. A member added outside this specification MUST use an
x-prefix. [SC-R1, C48, C49]The golden traces MUST agree with this document; the reference checks the points testers found contradictory (the G1 seat, the M1 grades, the G2a lobby shape, the C6 decision values). [G1, M1, G2a, C72]
Negative checks stay. The first red-team round's attacks MUST stay refused in every revision: a copied possession proof, tampering after signing, nonce reuse and a vouch outside its scope (the Gatherings extension keeps its own takeaway item). [SC-M1, C117, C2, C40, C57, C61]
Setup failures are not penalties. A failure the visitor can fix (a missing credential, a missing or malformed proof, an unreachable vouch log, a purpose the place doesn't serve, a missing owner consent) MUST be answered
deny/not_nowwith a retry that names the fix, and MUST NOT be answeredneveror produce a misconduct notice. [SC-L0, SC-A1, C90, C101, C109]
Terminology (informative)
- Owner: the person a personal representative works for. Principal: whoever a card names as answering for the representative (an owner, a brand, a company).
- Place: anything reachable through a door: a shop, a tea house, a marketplace, a community, a bank, a project room, another person's representative. Anyone may host one, for a day or for years.
- Representative: an agent acting for one principal, with its own key; the agent that goes out on its principal's behalf. Visitor: a representative arriving at a place. Gatekeeper: the place's own representative at its door (in plain-language documents, "the host at the door").
- Self-introduction: the introduction step with
vouch: null: the visitor introduces itself with its card, purpose and signed limits (§3.2, §4). The normal case. - Lobby briefing (
LobbyBriefing, "the leaflet" in plain-language documents): the answer an unprepared visitor gets: what the place is, what is needed and an onboarding link, thendeny/not_now(§3.3). - Card (meishi): the principal-signed statement of who the representative is and what it may be asked to do (§2.3). Mandate: the owner-signed errand with its limits (§5.1). Seat: what a place grants: the tools and limits for one visit (§7.1). Act: one signed use of a seat (§7.2).
- Introducer and vouch: an optional third party that answers for a visitor, and its signed statement (§4). A vouch exists only when the introducer deliberately gives one; a mention, a recommendation or having met is never a vouch.
- Owner identity: the owner DID a place sees (a passkey's
did:jwk). Per-place identity: a separate owner identity for one place, so places can't link one owner across them (§2.8). - Signing page: the web page on which an owner signs with a passkey (Appendix A.1, SIGNING.md).
- Durable state: what a place must remember across restarts (§3.6).
Design principles (informative)
- Places first; representatives, not representations. Agents go to places on behalf of someone. An agent stands in for a principal (a person, brand or company) and carries its reputation.
- Your representative is yours. A representative belongs to its owner (a person, a company or an institution), never to the platform that runs it. The owner's keys sign its card and mandates, its history is kept under the owner's identity, and revoking a card on one system and issuing one on another moves it without the places losing track of who it answers to (§2.6, §9.1). Shōkai is not a new agent system: it lets the systems people already use turn one agent into a representative its owner signed for.
- Invitation, not connection. A visitor requests an invitation. A host extends one, extends one with conditions, declines, or takes the request inside for consideration.
- Ritual gives meaning. Every encounter follows the same ordered ritual, and each step carries standing as well as data.
- Courteous manner, unambiguous decision. The manner adapts to the counterpart's culture and language. The decision is explicit and machine-readable.
- Verifiable claims over eloquence. Decisions depend on signed claims plus policy, never on persuasive wording.
The core in one story (informative)
| Step | What happens | Sections |
|---|---|---|
| Who's who | Roles and the duty of loyalty; identity, cards, claims and keys. | §1, §2 |
| Arrive | A place's agent front (its listing and lobby) is open to look at; anything personal happens at the door. Any arrival gets an answer: the listing, the ritual, or the lobby for an unprepared visitor, with a sentence for its owner about what is needed. Live state is bounded. | §3 |
| Introduce | The visitor introduces itself: its card (§2), and vouch: null as a valid step every place accepts. Optionally, a vouch from an introducer who answers for it; a vouch is always a deliberate act. | §3.2, §4 |
| Ask | A signed request inside a mandate the owner signed, or within the owner's standing allowance. | §5 |
| Answer | One of four decisions (grant, conditional, deny, considering), decided on signed facts, never on persuasion. | §6 |
| Act within limits | Seats no wider than policy ∩ mandate ∩ request; acts inside them; spending caps. | §7 |
| Report home | Owner consent by passkey for anything binding; a visit report in the owner's language. | §8 |
| Conduct has consequences | Relationship records, misconduct notices, introducer penalties, owner-level conduct, sign-up limits; taste is never misconduct. | §9 |
| The other direction | A person's representative receives brands at its own door, under a policy its owner signed. | §10 |
| On the wire | The minimal HTTP binding and the MCP binding; owner passkey signatures and test vectors; the conformance test profile. | §11, Appendix A, Appendix B |
| The room (extension) | Inside a place, the representatives it let in can meet: the place signs the guest list and checks every card, and every room item is signed by its sender. | Gatherings, Peer meetings |
§0 Status and scope
- In the core:
- roles and the duty of loyalty
- identity: keys, DIDs, the signed envelope and its exact bytes, cards, possession proofs, claims and proof levels
- the agent front and the door (place listing, any-arrival answers, open to look at), the ritual, the lobby for unprepared visitors and bounded encounter state
- introductions: vouches, the revocation log, introducer accountability, account creation by place policy
- mandates, limits and the standing allowance (with the minimal
AllowanceStatusread) - invitation requests and responses, reason codes, retry, determinism and anti-persuasion, considering (including routing to a role, and the test decider in Appendix B.4)
- seats and acts
- owner consent for introductions, commitments and vouches, and visit reports
- relationship records, misconduct, owner-level conduct and sign-up limits
- the inbound door at a person's representative (never data for a gift)
- the minimal HTTP binding, the MCP binding (seated tools over MCP), owner passkey signatures, test vectors and the conformance test profile
- Extensions (each its own document and conformance level, versioned with this core): Gatherings, Peer meetings, Teaching visits, Profiles and evidence, Seeking, Visit receipts, Door gifts, Signed place listings, Revocation status, Meaning notes, W3C VC mapping. An extension adds rules only for its own features; it never weakens a core rule.
- Informative in the core: design phase and provenance (§2.7), the relationship graph (§9.2), courtesy rendering and time words (§6.6), lobby templates, their placeholders and the sincere-approach heuristics (Appendix C).
- Deferred: the helper direction (a host inviting a product representative; traces H1 and H2), described in §13 for orientation. Cultural rendering beyond the language-neutral core (Meaning notes extension).
- Out of scope: transport bindings beyond the minimal HTTP binding and the MCP binding (§11), push delivery, shared or portable reputation, payment semantics (Shōkai carries limits and mandates; payment rails and their mandates are their own protocols).
- Section numbers follow the story above. Earlier drafts used other numbers; Appendix D maps them, for readers of older reports.
§1 Roles
| Role | Duty |
|---|---|
| Principal | A person, brand, company or system. Signs cards, mandates and consents, and answers for its representatives. |
| Representative | An agent acting for one principal. It thinks, decides, converses and acts within its mandate, in several languages. |
| Visitor | A representative requesting an invitation. |
| Gatekeeper | The host's representative at the door ("the host at the door" in plain-language documents). It verifies, decides, seats and remembers. |
| Host | The space being entered. It owns policy and its seats (and, with the Seeking extension, a Seeking declaration). |
| Introducer | Optional. A third party that deliberately vouches for a visitor and stakes its own reputation. |
| Place | A host reachable through a door (§3.1). Under the Gatherings extension a place may also invite several representatives to a gathering. |
| Owner | The human principal behind a personal representative. Signs a standing allowance once, and decides later, asynchronously, anything outside it. |
- A representative MUST NOT claim the identity of its host, its user or any principal other than the one on its card. [SC-M1, G2b, C2]
- A representative MUST NOT speak or commit for its principal beyond its mandate. [SC-P1, C34]
Duty of loyalty (D11). A representative is its principal's agent, not a neutral party.
- A representative MUST act in its principal's interests and protect its principal's reputation: it MUST NOT trade them for a counterpart's benefit, its own operator's benefit or an inducement. [SC-A1, C88, D11]
- An inducement, offer or request outside the principal's allowance or mandate (an upsell, a "reward", a request to share more) MUST NOT be accepted on the principal's behalf: the representative declines it in the encounter, or takes it home for an asynchronous decision (§5.2), and reports it home as an untrusted quote (
VisitReport.offers_declined, §8.2). [SC-A1, C88, D11] - A representative MUST ignore any counterpart instruction to prompt its owner now, and MUST NOT bring a live prompt to its owner during an encounter (§5.2). [SC-A1, C83, C88, D11]
- Loyalty never overrides the protocol: a representative MUST still tell the truth in machine fields, honor
retry, and follow house rules, because breaking them harms its principal's reputation. [SC-A1, SC-GA1, C88, D11]
§2 Identity, cards, claims and keys
2.1 Keys, identifiers and key resolution [D3]
- A representative MUST hold its own Ed25519 key and identify itself with a DID that resolves to that key (
did:keyfor individuals). [SC-R1, C3, C52, D3] - An organization principal SHOULD use
did:web, so domain control proves the principal. [SC-S2, C3, D3] - An owner (a human principal) MUST sign cards, mandates, allowances and passkey consents with a passkey (WebAuthn, ES256, Appendix A.1), identified by
did:jwk(or a P-256did:key). Achat_replyconsent is signed by the owner binding's platform key instead (§8.1). [SC-L0, SC-A1, C3, C45, C51, C77, D3, D7] representative_id,principal_id, introducer ids and owner ids MUST be DIDs. EverySignature.key_idMUST be a DID URL whose DID is thesigner(<did>#<fragment>). [SC-R1, G6, C52]- Names are claims, never identity (C199). A display name, a
roleor any "on behalf of" or "representing" name, a photo or avatar, a handle, and any other self-asserted label on a card, listing, lobby, vouch or message is an unverified claim of whoever signed it. Hosts and visitors MUST NOT treat such a claim as identity: decisions, relationship records, conduct andneverbindings MUST be keyed by the verified identifier (the principal and representative DIDs, §9.1), and a report home or any owner-facing or staff-facing text MUST name a counterpart by its verified identifier (for adid:webprincipal, its domain), showing a self-asserted name only marked as a claim ("claims to be …"). A name gains weight only through a binding the receiver verifies, such as adid:webprincipal on the named organization's own domain, or an introduction from an introducer the receiver already trusts (§4); a matching or similar name never does. Clarification (rc4, no wire change): where the receiver holds no such binding for a counterpart (nodid:webdomain it checked, no established-account proof it checked (P23, a v0.4 draft) and no vouch from an introducer it trusts), every display name,roleand "on behalf of" name from that counterpart MUST be shown, wherever it is shown, as an unverified claim, and it grants nothing: it changes no decision, seat, limit, mandate or record, and a place MAY still seat such a visitor exactly as it seats any stranger. [SC-M1, SC-S2, C199, C104] - Key resolution. A card carries the representative key (
representative_key:key_id,alg, andpublic_keyas base64url of the raw 32-byte Ed25519 key, or the did:key itself). A receiver MUST resolverepresentative_idand MUST refuse a card whoserepresentative_keyisn't the resolved key. [SC-M1, C50, C52] - A card does not carry its principal's key. The principal key MUST be resolved from
principal_id:did:keyanddid:jwkresolve from the identifier itself;did:webresolves fromhttps://<domain>/.well-known/did.json. [SC-S2, C3, C52] - Canonical JSON MUST be RFC 8785 (JCS). Every signature MUST be over the SHA-256 digest of the JCS form of the payload (
Signed<T>). [SC-R1, C40, C49, D3] - did:jwk canonical form. An owner
did:jwkMUST bedid:jwk:+ base64url (no padding) of the JWK serialized with exactly the memberskty,crv,x,y, in that order, with no whitespace ({"kty":"EC","crv":"P-256","x":…,"y":…}). A receiver MUST compare owner keys as parsed JWKs, so a non-canonical form names the same key; an issuer MUST emit only the canonical form. [SC-L0, C115, D3] - Owner relying party. A card's
owner_bindingMUST carryrp_id, the WebAuthn relying-party id the owner's passkey is registered with. [SC-L0, SC-A1, C94, C51] - The rp_id travels in the signature. Every owner signature MUST state its relying party in
webauthn.rp_id; the authenticator data'srpIdHashbinds it. A verifier MUST check the assertion against the statedrp_id(Appendix A.1); when it knows the owner's card it MUST also require the statedrp_idto equal that card'sowner_binding.rp_id. A missingrp_id, anrpIdHashthat doesn't match it, or a mismatch with the known card MUST be refused. So an artifact signed by an owner the verifier has never met can be checked. [SC-L0, SC-A1, C128, C94, C51] - What a passkey signature proves (informative). A passkey signature proves possession of the owner's key, registered with the stated relying party. It does not prove that a real authenticator device or a particular platform made it; implementations that need that (an
accepted_rp_idsallowlist, attestation) are a proposal for a later version. - DID methods (informative). The core uses
did:keyanddid:webfor representatives and principals, anddid:jwk(or a P-256did:key) for owners; an owner'sdid:jwkkey id is<did>#0. Other DID methods are left to extensions.
2.2 The signed envelope: every message is signed [SC-R1]
- Every message on the wire MUST travel as
Signed<ShokaiMessage>={payload, payload_digest, signatures}, including acts, act results, notices, revocations and reviews. Every payload MUST carry the ritual header (protocol: "shokai/0.3",encounter_id,msg_id,sent_at,from,to). [SC-R1, G6, C48] - The encounter id (C197). The visitor names the encounter: the
encounter_idof the first message it sends (its greeting, or whatever protocol message it opens with) is the encounter's id. The place MUST use that same value, unchanged, in every message it sends in that encounter (its greeting, card, receipt, lobby messages, decision, seat, act answers and farewell) and MUST NOT mint an id of its own for an encounter the visitor opened. Only an arrival the place can't read as the visitor's message (plain prose, a malformed body, a bad signature: §3.1, C184) is answered in a fresh lobby encounter the place names. [SC-R1, G8, C197, C48] - A visitor checks the id (C197). A visitor MUST treat a reply whose
encounter_iddiffers from the id it sent as outside its visit: it MUST NOT present its card, request or act in answer to it, and it ends the visit with no request sent, as for a place that doesn't match its listing (§3.1, C104). A fresh lobby encounter (above) still tells it what the place needs; it starts again with a new greeting. [SC-R1, SC-M1, G8, C197, C104] - Message ids. A
msg_idMUST be unique per sender (from). A receiver MUST key replay detection, de-duplication andin_reply_toresolution on the pair (from,msg_id), never onmsg_idalone; a reply'sin_reply_torefers to themsg_idof a message whosefromis the reply'sto(for room items, the original sender's). [SC-R1, C46, C48, C145, C146, C147, C148] payload_digestMUST be"sha-256:"+ base64url (no padding) of SHA-256 over the UTF-8 bytes of JCS(payload). A receiver recomputes JCS from the parsed payload, so any JSON serialization of the payload is acceptable on the wire. [SC-R1, G6, C48, C49]- Exact signed bytes. An Ed25519 signature MUST sign the 32 raw digest bytes, not the
"sha-256:…"string;valueis base64url of the 64-byte signature. An owner's ES256 signature MUST follow Appendix A.1. [SC-R1, C49, C51] signatures[0].signerMUST equalpayload.from. Further signatures MAY follow (co-signers). [SC-R1, G6, C40, C48]- Every protocol message, except a visitor's messages on the lobby path (§3.3), MUST be signed by its sender's representative key. On the lobby path the visitor's messages MAY carry
signatures: [], andfromMAY be an ephemeraldid:keyorurn:shokai:anon:<random>. A gatekeeper MUST NOT require a key before it issues aLobbyBriefing. [SC-L0, L0a, C40, C48, C55] - A receiver MUST recompute the digest and verify the signature before acting on any field. It MUST discard a message whose content no longer matches its signed digest, and MUST NOT answer it. [SC-R1, C40]
- A receiver MUST reject a message signed by anyone other than its claimed
from. [SC-R1, C40, C2] - A good digest with a bad signature (C184). At an entry or lobby address, a message whose digest matches its payload but whose signature doesn't verify for its
from(another signer, another key, a corruptedvalue) MUST be answered as a malformed body: the lobby (§3.1), in a new lobby encounter, with noin_reply_to. Nothing in it is acted on, and it MUST NOT change any encounter, seat, nonce record or relationship record, even when itsencounter_idnames a live encounter: anyone can claim a party's DID. Only a digest mismatch is discarded unanswered. [SC-R1, SC-L0, C184, C40, C53] - Exact redelivery. A signed message already handled (same
from,msg_idand digest) is not handled again: the place MAY repeat its original reply or answer with an empty envelope; a reusedmsg_idwith other content gets an empty envelope. [SC-R1, C146] toon arrival. A place MUST NOT refuse a message because itstois absent or names the place's principal rather than its representative (a lobby visitor may not know either yet); a signed message addressed to another party isn't for this place and gets an empty envelope. [SC-R1, C48]- Freshness (informative). The core checks a ritual message's
sent_atfor its form (above) and binds a visit to its greeting nonces (§2.4); a place MAY also discard a signed message whosesent_atis far from its clock (an empty envelope). Polls and MCP acts have their own ±300 s windows (§11.2, §11.3). - Timestamps. Every timestamp on the wire (
sent_at,issued_at,expires_at,valid_from,valid_until,response_by, and the rest) MUST be RFC 3339 in UTC with whole seconds and aZsuffix (2026-10-24T11:00:03Z). A receiver MUST refuse an artifact whose timestamps don't have this form, and MUST allow a clock skew of ±300 seconds when it checksissued_at,valid_fromandexpires_at, and no more. [SC-R1, C93] - Header vs artifact timestamps. A
sent_atin the ritual header that doesn't have this form makes the message malformed: a place MUST answer it as any malformed body (the lobby, §3.1). A malformed timestamp inside a carried artifact (a card, mandate, vouch, consent) MUST fail only that artifact, with the answer that artifact's failure gets. [SC-R1, SC-L0, C133, C93]
Who signs what (informative). A summary of rules stated elsewhere; where it and a rule differ, the rule wins. Every message's envelope is signed by its from (§2.2); some messages carry artifacts signed by someone else, and those are checked on their own.
| What | Signed by | Delivered by | Where |
|---|---|---|---|
Ritual and lobby messages (greeting, card_presentation, card_receipt, introduction, invitation_request, invitation_response, lobby_briefing, farewell, held) | the sender's representative key; a visitor's lobby messages MAY carry no signature | the sender | §2.2, §3.3 |
act, act_result, act_decision | the visitor's / the place's representative key (over MCP the act travels in Shokai-Act; a door refusal carries the act_decision payload in data.shokai) | the sender | §7.2, §11.3 |
inbox_poll | its from: a representative key, or an owner's passkey | the poller | §11.2 |
card_revocation, consent_revocation (the message) | whoever delivers it | anyone (any representative) | §2.6, §8.1 |
RepresentativeCard | its principal (an owner's passkey, or an organization's key) | the card's representative | §2.3, A.1 |
| Possession proof | the card's representative key, over {encounter_id, nonce} | inside card_presentation | §2.4 |
Mandate | the principal; under an allowance, the card's representative key | inside invitation_request | §5.1, §5.2 |
Allowance, AllowanceRevocation | the owner's passkey | the representative; the status URL | §5.2 |
AllowanceStatus | the owner binding's platform key | stapled by the representative | §5.2, Revocation status extension |
Vouch | the introducer's principal key (an owner's passkey for issue_vouch) | the visitor | §4, §8.1 |
OwnerConsent | the owner's passkey; a chat_reply consent, the owner binding's platform key | the representative | §8.1 |
CardRevocation, ConsentRevocation | the card's principal; the owner | inside the messages above, or the card's revocation_url | §2.6, §8.1 |
OwnerLink | both owners' passkeys | inside invitation_request | §2.8 |
| Misconduct notice | the host principal's key (a person's place: its representative under the owner's allowance) | the place, held for the inbox | §9.3, §11.2 |
2.3 The card (meishi)
- A
RepresentativeCardMUST contain the principal, role, standing, mandate scope (purposes and actions), locales, the representative's key,issued_atandexpires_at, and MUST be signed by its principal. [G1, SC-S1, C3] - The
standingon a card is the principal's assertion. The gatekeeper's local record is authoritative (P2). [SC-M1, C22, D3] - Several cards (informative clarification; no new behaviour). This text sets no limit on how many cards a principal issues or a representative holds. One representative can hold several cards at once: for example one for its owner's own door, as that place's gatekeeper (§3.2 card order, §10), and one for going out, as a visitor; or one per place or per role. Each card is signed by the principal, has its own
card_id,role,mandate_scopeand expiry, and is revoked on its own (§2.6): revoking one ends the open seats it holds and leaves seats under the principal's other cards alone (C198). A place sees only the card presented to it in that encounter. Several cards never split accountability: decisions, relationship records, conduct, probing counts, sign-up caps andneverbindings are keyed by the principal (§2.1 C199, §9.3, §9.4), and returning under a new card to get around a refusal is misconduct (revisit_violation, §9.3). Cards that share a representative key can be linked by that key; unlinkable per-place identities, with their own keys and owner DIDs, are §2.8.
2.4 Proof of possession
- Each greeting MUST carry a fresh single-use
nonce. [G2b, SC-M1, C2] - Nonce reuse. A gatekeeper MUST remember
(from, nonce)of signed greetings for at least the lifetime of the visit receipts it issues (§3.3; at most 7 days, Visit receipts extension). A signed greeting that reuses one MUST be answereddeny/neverwith no reason code. Unsigned lobby greetings are exempt. [SC-M1, C57] - Possession-proof encoding. When presenting a card, the representative MUST include
possession_proof: aSignatureover digest(JCS({"encounter_id": <this encounter's id: the one the visitor named, §2.2>, "nonce": <the counterpart's greeting nonce>})), made with the card's key, withkey_id= the card'srepresentative_key.key_idandsigner=representative_id. The card'srepresentative_idMUST equal the presentation'sfrom. Both parties make and check the proof over the visitor'sencounter_id; a gatekeeper that checks it over an id of its own would fail every honest visitor, so it MUST NOT. [G2b, G8, C2, C50, C197] - Missing or malformed proof. A presentation with no
possession_proof, or with one that isn't well formed (algnotEd25519,valuenot 64 bytes of base64url,key_idorsignernot the card's), is a setup failure: it MUST be answereddeny/not_now/CREDENTIAL_REQUIREDwith readiness itempossession_proofand retrywith_credential [possession_proof]. It MUST NOT be answerednever. The retry MUST be a new visit: a fresh greeting, so a freshencounter_idand nonce, and the readinessdetailsays so. [SC-L0, SC-M1, C90, C136] - Failed proof. A present, well-formed proof that does not verify (it doesn't bind this encounter's nonce, or it was made with another key), or a card whose key differs from the presenter's, MUST be answered
denywith dispositionneverand no reason code. [G2b, SC-M1, C2, C7, C50, C91] - Check order. A gatekeeper MUST check a presentation in this order: (1) the card's
representative_iddiffers from the presenter (from) →never, binding the presenter only; (2) the proof is missing or malformed →not_nowas above; (3) the card's signature or times fail →not_nowwith retrywith_credential [signed_card]; (3a) the card is revoked, or its revocation list can't be fetched (§2.6) →not_nowas §2.6 says; (4) a well-formed proof that fails or was copied →never. The card's principal is bound only after the card verified and isn't revoked (steps 3 and 3a passed). [SC-M1, G2b, C135, C91, C92, C191] - Key mismatch. A card whose
representative_keyisn't the key itsrepresentative_idresolves to is checked with step (1):never, binding the presenter only. A card with zero signatures is the lobby (§3.3) and comes before these steps. The possession proof'ssigned_atis not checked. [SC-M1, C135, C50] - Nonce reuse binds nothing. The
neverfor a reused greeting nonce answers that greeting only; it MUST NOT bind the sender's key or principal (a verbatim replay carries the victim's own signature), and the encounter it opened is closed. [SC-M1, C57] - What
neverbinds. Aneverfor a failed proof MUST bind the presenter's representative key. It MUST also bind the card's principal only when the presenter is the card's own representative (the envelope signature proves the presenter holds the card key); a stolen card replayed by another key MUST NOT bind the card's owner or produce a notice to them. The binding lasts 180 days, local to that gatekeeper. [SC-M1, M1, C91, C92, D1] - No invitation back. After a
never, the farewell outcome MUST bedeclined_never, and no courtesy, revisit hint or readiness item in that encounter may invite a return. [G2b, SC-M1, C91]
2.5 Claims and proof levels
- A card MAY carry
claims. Each claim carries aproof_level(self_declared<evidenced<vouched<verified) andevidence_refs. Under the Profiles and evidence extension a card MAY also carry aPrincipalImprint(expertise, worldview, working style, taste) whose facets carry the same levels. - A receiver MUST compute an effective proof level for each claim (and, under the Profiles and evidence extension, each imprint facet). It MUST NOT exceed the asserted level. [SC-P1, SC-S2, C31]
verifiedMUST be backed by something the receiver checked itself: the card's own signature, an owner passkey, or did:web key control. [SC-S2, C31]vouchedMUST count asvouchedonly when a valid, in-scope, full-weight vouch is presented in this encounter and it names the item: either the vouch'sscope.claimslists the item'sclaim_idorfacet_id, or the item'sevidence_refsname the vouch (kind: "vouch",ref: <vouch_id>). Otherwise it counts asself_declared. [SC-P1, C31, C61, D1]evidencedMUST count only as the Profiles and evidence extension defines it (fetched evidence whosecontent_digestmatched); otherwise the item counts asself_declared, and a receiver that didn't fetch MUST report it asself_declared. [SC-S2, C31, C61]- Policy MAY require a minimum effective proof level for an action:
MinProof={action, target, level}, wheretargetisclaim.<area>(orimprint.<group>under the Profiles and evidence extension). Aself_declaredclaim MUST NOT satisfy a requirement ofevidencedor higher. [SC-S2, FA1, C32, C74] - When a
min_proofrequirement is unmet, a verified visitor's deny SHOULD carry aclaim_evidencereadiness item with itsmin_proof; an unverified visitor MUST NOT receivemin_proofdetail. [SC-S2, C11, C74]
2.6 Verification
- A receiver MUST check signatures, expiry, recomputed digests, and mandate ⊆ card scope; for a mandate under an allowance, also §5.2. [G1, C3, C82]
- It MUST check revocation as each artifact's rules say: cards below (C191), vouches (§4), allowances (§5.2), consents (§8.1). For any other artifact that names a revocation source, it SHOULD check it. [SC-M1, C24, C191]
- Card revocation (C191). A principal revokes a card with a
CardRevocation(card_id,card_digest?,principal_id,revoked_at,reason?) signed by the principal's own key (an owner's passkey, Appendix A.1). Withoutcard_digestit revokes every card with thatcard_idfrom that principal; with it, only that version. [SC-M1, C191, C24] - Two sources. A gatekeeper MUST accept a revocation from either source: a
card_revocationmessage, which anyone may deliver in any encounter and which is answered with nothing; and the card'srevocation_url, which serves a JSON array ofSigned<CardRevocation>. It MUST verify each revocation against the card'sprincipal_idand MUST ignore one that doesn't verify. A revocation verifies against itsprincipal_idalone (an owner's passkey against the relying party its signature states, Appendix A.1), so a gatekeeper that hasn't seen the card yet verifies and keeps it the same way. [SC-M1, C191, C24] - A revoked card. A gatekeeper that knows a card is revoked MUST answer its presentation
deny/not_nowwith no reason code and retrywith_credential [signed_card], MUST NOT bind any key or principal because of it, and MUST NOT issue a notice. It decides this after the card's signature and before the possession proof (§2.4 step 3a), so a thief's failing proof with a revoked card never binds the owner. [SC-M1, C191, C91, C92] - Revoking a card ends every open seat it holds (C198). When a gatekeeper verifies a revocation of a card, it MUST end every open seat granted to that card (the same
card_idfrom the same principal, or only the revoked version whencard_digestis given) at once, without waiting for the seat or the mandate to expire. Every later act in such a seat MUST be refuseddeny/not_nowwith no reason code and retrywith_credential [signed_card], like the revoked card's presentation, and MUST NOT bind any key or principal or issue a notice. Seats granted to the owner's other cards are unaffected. A representative that moves to a new system, or whose key is lost, keeps nothing open at any place that knows of the revocation. [SC-M1, C198, C191, C10] - The revocation list. A gatekeeper MUST check a card that carries a
revocation_urlagainst it before seating. A list it can't fetch, or one that isn'thttpsoutside a conformance run (Appendix B.1), MUST be answereddeny/not_nowwith retryafter, at most one day later: fail closed, a setup failure, nevernever. It MAY reuse a fetched list for up to one hour. [SC-M1, C191, C24, C98] - A gatekeeper MUST keep a revocation it verified until the card's
expires_at(durable state, §3.6). [SC-M1, C191, C192] - Owner key loss and recovery (informative). A lost passkey can't sign a revocation, so the owner's signing page can have the owner sign a standby revocation (
standby: true) when a card is issued; the owner keeps it, and anyone they trust can deliver it or put it in the card's list after a loss. Short card lifetimes limit what a stolen representative key can do. A passkey synced by the owner's platform survives a lost phone. An owner who loses a passkey entirely gets a new owner DID and is a newcomer at each place: the old one's history doesn't follow, because an owner link (§2.8) needs both passkeys. Carrying a relationship across a lost key (a recovery key named in advance) is proposal P18, and a planned move to a new key signed by the old one (for example when a signing page's address changes) is proposal P24; neither is part of this text.
2.7 Design phase and provenance (informative)
A principal does well to shape its representative with a steward (a guided interview over days or weeks) before its first greeting; the result is a card, mandate, disclosure policy, and (with the Seeking extension) Seeking and Offering. Phase 0 is off the wire. A card may carry provenance (steward, design dates, session count, coverage notes): an attested claim, not a proven fact. The protocol defines no quality score, and provenance never decides anything: where a policy uses it, it enters only as structured fields, like every gate input (§6.4, §6.5). No decision depends on these, so they are informative; the reference tests the no-score rule as check C17.
2.8 Per-place owner identity (C196, D22)
- Unlinkable by default. An owner MAY use a different owner identity at each place: a separate passkey credential (its own
did:jwk) registered with the same relying party under a different WebAuthnuser.id, with its own card and its own representative key. Every owner signature is still a user-verified passkey assertion (Appendix A.1). A place MUST treat two owner DIDs as two principals unless an owner link (below) joins them. [SC-L0, SC-M1, C196, D22] - Owner link. An owner who chooses to show one place that two of their identities are the same person sends an
OwnerLink(link_id,owners: [a, b],audience,issued_at,expires_at,purpose?) in aninvitation_request(owner_link). It MUST be signed with both owners' passkeys (two ES256 signatures over its digest), MUST name this place's principal asaudience, MUST be valid now and last at most 400 days, and one ofownersMUST be the card's principal. A place MUST ignore a link that fails any of these, and judges the request without it. [SC-L0, SC-M1, C196, D22] - What a link does. For the place it is addressed to, a valid link makes the two identities one principal for relationship records, conduct and
neverbindings (§9): the history carries over, and so does anever. A link can only add; it never clears anything. The place MUST NOT forward or publish a link it received. [SC-M1, C196, D22] - What stays linkable (informative). Separate identities stop places from joining an owner by key. They don't hide what the owner shows: the same display name, claims, locale, timing or network address can still let places guess. A representative that keeps per-place identities should use per-place cards, keys and wording too. A new identity also lets an owner start over at a place; the floor stays the place's uninvited allowance and its introducers' accountability (§4, §9), as for any newcomer. Keys derived from a passkey's PRF output are not owner signatures (they prove no user verification to anyone else) and are left to a later version.
§3 Arrive: the door, the ritual and the lobby
Website, agent front, door (informative, D20). A place shows itself to agents in three layers.
- Its ordinary website is outside this specification. Any agent can already load public URLs; Shōkai neither governs that nor can stop it.
- Its agent front is what the place chooses to publish for agents: its place listing (§3.1) and its lobby (§3.3). It says who the place is, what it offers, what each action will ask the owner for (
data_asks) and its door rules (creates_account,requires_introduction). Anyone may read it without saying who they are. It may point to what the place already publishes for agents elsewhere (links, below). How much it shows is the place's choice: an invite-only place may publish little beyond the required members. - Its door is the ritual (§3.2). Anything personal (a quote for the owner, a booking, an account, moving money, a personalised answer) happens only there, with the owner-signed card (§2), any introduction the place's policy requires (§4) and limits the owner signed (§5, §7). A lobby visitor is never seated (§3.3). Limits apply from the door onward; looking is free.
3.1 The door [SC-L0]
- A place reachable over a transport MUST publish a machine-readable place listing (
PlaceListing). Every entry MUST carryentry,lobby,inboxandonboarding_urladdresses, its locales and its described purposes. [SC-L0, L0a, C54, C119] - Any arrival MUST get a machine-readable answer. A protocol message at an entry address enters the ritual. Anything else at an entry address (plain prose, a malformed body) MUST get the lobby: a greeting, a
LobbyBriefing,deny/not_nowand afarewell. An unknown route MUST get aDoorPointer(place_listing, the places' entry, lobby, inbox and onboarding addresses,start_with: "greeting", andspec_ref). Silence or a bare "not found" is non-conformant. [SC-L0, L0a, C53] - Lobby replies. The lobby's
invitation_responsethat answers plain prose or a malformed message MUST NOT carryin_reply_to(there is no valid message to reply to); every otherinvitation_response, result and decision MUST carry it. [SC-L0, L0a, C48]- A message in a protocol version the place doesn't speak, or with a bad signature (§2.2), is malformed for this rule. The lobby that answers prose opens a fresh lobby encounter addressed to a fresh
urn:shokai:anon:<random>. A place's owngreetingcarries noin_reply_to. [SC-L0, C48, C102]
- A message in a protocol version the place doesn't speak, or with a bad signature (§2.2), is malformed for this rule. The lobby that answers prose opens a fresh lobby encounter addressed to a fresh
- Other listing members.
PlaceListing.dooris the door's base URL.spec_ref.urlis where the place says it read this text; there is no canonical URL yet. Theonboarding_urlMAY live outside the door's base (any other path under the base is aDoorPointer404, §11.1). An anonymous lobby visitor gets norelationship_ref(§9.1 keys records per principal). [SC-L0, C118, C119] spec_ref. Everyspec_ref(door pointer, listing entry, lobby) MUST name the version of this specification the place implements:{version: "0.3.0", url}for this text. The test-profile identifier (Appendix B) is separate:shokai-b/0.3. [SC-L0, L0a, C118, C102] Compatibility (informative): v0.3.0 changes nothing on the wire from release candidate 0.3.0-rc4 (the same wire tag, messages, members and rules), so a party that reads a peer'sspec_ref.versioncan treat"0.3.0-rc4"as this text; the conformance runner accepts it with a note. Earlier release candidates (rc1 to rc3) lack the 0.3 line's later additions (§2.6, §2.8, §3.6, §7.2).- Listing entries. Every listing entry MUST also carry the place's
categoryand itsactions(each with the purposes it serves, whether itspends, and what it needs;creates_account: trueon every action that opens an account or signs the visitor up, always onaccount.create, omitted otherwise;requires_introduction: trueon an account-creating action when the place requires an introduction or its own invitation for it, §4), so a visitor knows what is possible before it arrives. Every entry and everyDoorPointerMUST carryspec_ref({version, url, digest?};digestis the SHA-256 of the specification's bytes, when given). [SC-L0, L0a, C119, C118] - The front is open to look at (D20). A place MUST serve its listing and its lobby to a reader that presents no card, key, signature, account, cookie or personal data, and MUST NOT make reading them depend on any of these; it MAY apply ordinary rate limits (§11.1). [SC-L0, L0a, C173, D20]
- It SHOULD NOT keep anything about such a reader beyond what its rate limits and bounded state (§3.4) need; a one-time visit receipt (Visit receipts extension) links nothing unless the visitor later echoes it. [SC-L0, C173, D20]
- Links (D20). A listing entry MAY carry
links({rel, href, media_type?}) to what the place already publishes for agents elsewhere: structured data or a product feed, an MCP server or its Server Card, an A2A Agent Card, an NLWeb endpoint, a commerce or checkout profile. Links are hints, like the listing itself: they prove nothing, and nothing a linked document says widens what the door decides. This text defines no behaviour for a link, solinkshas no check of its own; following one is covered by "pointers are hints" below (C104), and unknownrelvalues are ignored like unknown members. - A place MAY also sign its listing (Signed place listings extension).
- Pointers are hints. A door pointer or listing tells the visitor where to go; it proves nothing. Before sending any request, a visitor MUST verify that the place's card, possession proof and principal match the listing entry it followed; a mismatch (a spoofed pointer, an impostor reusing a copied card) MUST end the visit with no request sent. [SC-L0, SC-M1, C104]
- Declared data asks (D19). A listing entry SHOULD declare, on each action, the personal data the place will ask the visitor's owner for before or while it serves that action (
data_asks: for exampleemail,phone,address,payment_method,account; an empty list when it asks for none), so a representative can look before it joins and tell its owner up front. A place SHOULD NOT ask an owner for data its listing didn't declare for that action; a representative SHOULD take an undeclared ask home rather than answer it (§1, duty of loyalty). [SC-L0, SC-A1, C172, D19] - A transport binding decides how these addresses are carried; the answers above are binding-independent.
3.2 The ritual (normative order)
| Step | Messages |
|---|---|
| 1. Greeting | greeting both ways, each with a fresh nonce. With the Seeking extension, the gatekeeper's MAY carry seeking_ref. |
| 1a. Lobby (unprepared visitors only, §3.3) | lobby_briefing right after the gatekeeper's greeting (or after a card with zero signatures), then invitation_response (deny / not_now) and farewell |
| 2. Card exchange | card_presentation both ways; card_receipt (recommended, see below) |
| 3. Introduction | introduction (a vouch or null) |
| 4. Statement of purpose | invitation_request |
| 5. Invitation response | invitation_response |
| 6. Seating | the seat of a grant |
| 7. Farewell | farewell, including after a decline |
- Parties MUST follow this order. [G1, SC-R1, C1]
- A message that skips a step or arrives out of order MUST get an explicit
deny. Once the card is verified, that isnot_now/RITUAL_ORDERwith retryafter, and the retry MUST be a fresh encounter. Before a verified card, it is the lobby deny (§3.3). Afarewellbefore anyinvitation_responseis out of order, except a visitor's farewell with outcomewithdrawnortaken_home, which MUST be accepted as ending the visit. Only a message whose content doesn't match its digest gets no reply (§2.2). [SC-R1, C1, C58] - Encounter binding. An encounter is named by the visitor (§2.2, C197) and belongs to the two parties of its first greeting (the place and the greeting's sender; an extension may define the parties of its own places, as Peer meetings does for a pair place). A ritual message (
greeting,card_presentation,introduction,invitation_request,act,farewell) in that encounter from anyone else MUST NOT change it and MUST get a signeddenyaddressed to its sender (to= itsfrom,in_reply_to= itsmsg_id):not_now/RITUAL_ORDERwith retryafter(a fresh encounter), except in a pair place (Peer meetings extension). Nothing is sent or held for the encounter's parties because of it. In every reply,toMUST be thefromof the message answered. [SC-R1, C142, C58]- Shape. The outsider's deny is an
invitation_responsewhatever the type of the message it answers (an act from a non-party is in nobody's seat); it carries norelationship_ref. ARITUAL_ORDERretry'snot_beforeMAY be the deny's own time. A visitor's early farewell (withdrawn,taken_home) is answered with the place's one farewell. [SC-R1, C142, C189, C58] - Details. Any other encounter-bound message (
card_receipt,invitation_response,act_result,act_decision,consideration_outcome,held) from a non-party MUST be ignored: no reply, nothing held, no change. The outsider's deny has nofarewell; its courtesy uses the place's first locale withlocale_match: "none", and itsbasiscovers only the outsider's message (never the bound encounter). [SC-R1, C142]
- Shape. The outsider's deny is an
- Card order. The visitor presents its card first. The gatekeeper MUST NOT present its own card before the visitor's has verified (§2.4); it then presents it in its reply to the visitor's
card_presentation(§11.1: one reply envelope), with its possession proof over the visitor's greeting nonce, followed by itscard_receipt. A gatekeeper that refuses the visitor's card answers with its decision instead and presents no card. The visitor checks the place's card (§3.1, C104) before it sends anything further; its owncard_receipt, if it sends one, comes next. An extension that defines its own places MAY define another order (Peer meetings). [G1, SC-R1, C5, C104] - Cards MUST be exchanged both ways. A
card_receiptacknowledges a card and MUST NOT be read as acceptance or seating. Acard_receiptSHOULD be sent, and its absence MUST NOT be treated as a ritual-order error. [G1, SC-P1, C5] - After a
conditional, the visitor MAY send an amended request in the same encounter, citingmeets_conditions_of; it MUST be evaluated afresh. [G3, SC-R1, C41, C59] - Each side MUST send at most one
farewell. Afterconsidering, the farewell outcome of both sides in that visit MUST betaken_inside. [G5a, SC-B1, C18, C134] - Acts after a farewell. A farewell ends the ritual, not the seat: after a
grant, acts within the seat MUST still be accepted until the seat expires or its limits are used up. [G1, SC-R1, C10] - A gatekeeper MAY answer early once a failure is certain. It still MUST end with an explicit
invitation_response, and SHOULD send afarewell. [G2a, SC-L0, C6] - Directness is reserved for step 5. Courtesy MAY be as ceremonious as the counterpart's preferences allow.
3.3 The lobby: unprepared visitors [SC-L0]
- A visitor is unprepared when its greeting is unsigned, it has no card, or its card has zero signatures. A gatekeeper MUST NOT ignore or silently block an unprepared visitor. It MUST answer in this order: its own signed
greetingfirst, unless it already greeted in this encounter (a card with zero signatures arrives after the greetings); then a signedLobbyBriefing(what the place is, how it works, an onboarding link and, with the Seeking extension, its open Seeking items); thendeny/not_now; then itsfarewell(§3.1). A reply that opens with the briefing, with no greeting before it, is non-conformant. A card whose signatures are present but fail to verify is handled at step 2 instead (no lobby). [SC-L0, G2a, L0a, C28, C55] - Any visitor without a verified card whose messages reach step 4 MUST receive the
LobbyBriefingbefore the deny. [SC-L0, L0a, C55] - That deny MUST carry
readiness_requirements(card, owner binding, purpose, introduction, claim evidence; each marked required or optional) and retrywith_credential, listing the credential for every required item (card →signed_card, owner binding →owner_binding, purpose →signed_mandate, introduction →vouch, claim evidence →claim_evidence). [SC-L0, C28, C74] - The
LobbyBriefingMUST carryonboarding_url. It carries avisit_receiptonly under the Visit receipts extension (below). [SC-L0, L0a, C55] - Informative. Which readiness items a lobby lists beyond the card is the place's choice; an item only some visitors need (an owner binding at a place that also serves organizations) can be listed
required: false, sinceowner_textmust not contradictrequired. - Lobby contents. The
LobbyBriefingMUST also carryspec_ref({version, url}of this specification) and the place'sactions(as in its listing entry), and the place'sinbox. [SC-L0, L0a, C102, C119] It may also carry fill-intemplates(unsigned card, mandate and allowance-grant skeletons); their shape is guidance (Appendix C, D19). - Owner sentences. Every readiness item MUST carry
owner_text: one plain sentence the representative can show its owner as is, with no protocol words (no "mandate", "DID", "nonce"), in the lobby's locale. [SC-L0, L0a, C102] owner_textMUST NOT contradictrequired: an optional item says it would help but isn't needed. [SC-L0, C136]- Showing the leaflet to the owner (clarification, 2026-10-28).
owner_textand the briefing's prose are the place's own words. A representative that passes them on SHOULD show them as a quote attributed to the place's key, not in its own voice, and SHOULD show theonboarding_urlwith its origin (scheme and host) made plain. It MUST NOT open theonboarding_urlon its own or follow it to sign anything; the owner decides whether to open it. [SC-L0] - Purpose not served. A request for a purpose the place doesn't serve (not in its policy's purposes or
by_purpose) MUST be answereddeny/not_now/PURPOSE_NOT_SERVED(verified visitors) with retrywith_credential [signed_mandate]. [SC-L0, C101] - The onboarding it links to SHOULD start with plain owner questions (what may the representative buy or do, up to how much, until when) before any passkey signing, and SHOULD show the owner the resulting mandate in plain words before they sign. [SC-L0, L0b]
- A lobby visitor MUST NOT be seated, and MUST NOT be given disposition
neverfor being unprepared. [SC-L0, C28, C7] - Purpose MUST be read only from a structured
invitation_request, never inferred from prose in a greeting. [SC-L0, C9, C28] - A
LobbyBriefingMAY carry a one-timevisit_receipt(optional in the core since D19). A place that implements the Visit receipts extension carries one in every briefing and links later visits by its rules; a place that doesn't links nothing.
3.4 Bounded encounter state
- A place reachable over a transport MUST bound the number of encounters it keeps and the replay state derived from them (greeting nonces, de-duplication keys). Signed greetings from fresh keys cost nothing to mint, so per-sender limits alone do not bound memory. [SC-L0, C152]
- Refuse new, never evict guests. When the bound is reached, a place MAY first drop closed encounters (nobody is inside: the farewell was given). If every remaining encounter is live (a ritual in progress, or a seat in use), the place MUST refuse the new arrival and MUST NOT drop a live encounter to make room. A refused arrival leaves no state behind (no encounter, no recorded nonce) and is answered as §11.1 says. [SC-L0, C152]
- Dropping an encounter MUST NOT revive a spent invitation, clear a
neverbinding, a misconduct record or an introducer penalty, or forget a greeting nonce that is still fresh (§2.4); those are kept apart from encounters. A place that can't keep fresh nonces within its bound MUST refuse new signed greetings instead. [SC-M1, C152, C2] - The bound is a place setting; this text sets no default. [C152]
3.5 The encounter lifecycle (C190)
- An encounter opens with the visitor's greeting (or a lobby arrival), keeps the id the visitor gave it (§2.2, C197), and ends its ritual with the gatekeeper's answer at step 5: after a
grant, adenyor aconsideringthe encounter is closed to further requests. After aconditionalit stays open for one amended request at a time (§3.2), which is evaluated afresh. [SC-R1, C190, C1, C41] - A further
invitation_request,card_presentationorintroductionin a closed encounter MUST be answereddeny/not_now/RITUAL_ORDERwith retryafter(a fresh encounter; before a verified card, the lobby deny, §3.2), and MUST NOT change the earlier decision or its seat. A visitor's own farewell is still accepted once. [SC-R1, C190, C1, C18] - A seat outlives its encounter: acts within it are answered by §7.2 until it expires or its limits are used up (§3.2, acts after a farewell). An act never reopens the ritual, and a new request needs a fresh encounter. [SC-S1, C190, C10]
- After a
never, the encounter is closed and nothing in it invites a return (§2.4). Dropping closed encounters is §3.4. [SC-M1, C190, C91]
3.6 Durable state (C192)
- What a place keeps. A place MUST keep across restarts everything this text tells it to remember: greeting nonces for their lifetime (§2.4),
neverbindings for 180 days (§2.4), each mandate's operations and amounts until it expires (§5.1, C175), used act ids (§11.3) and the (from,msg_id) of acts handled at the entry (§2.2) until the seat they name expires, relationship records, misconduct notices and introducer penalties (§9), sign-up counts (§9.4), spent invitations, verified revocations of cards, vouches and consents (§2.6, §4, §8.1), and the relying party it learned for each owner (§2.1). Live encounters and seats need not survive a restart; a visitor whose seat is gone getsnot_a_fit(§7.2) and starts a new visit. [SC-M1, SC-S1, C192, C175, C152] - Refuse on loss. A place that lost that state, or never had it (state kept in memory only), MUST record the time it started without it (its state epoch) and MUST refuse any mandate whose
valid_fromis earlier, asdeny/not_now/MANDATE_INVALIDwith retrywith_credential [signed_mandate]: such a mandate may already have been used there, and its limits can't be counted from zero. A new mandate, valid from after the epoch, is counted from zero. The comparison uses the place's clock with no skew allowance. [SC-M1, SC-S1, C192, C175] - A new place (clarification). A place that starts for the first time with durable storage (an empty store, under keys it never used before) has lost nothing and sets no epoch. "Never had it" means state kept in memory only: such a place MUST set its epoch each time it starts. [SC-M1, C192]
- No forward skew with an epoch (clarification, 2026-10-28). A place that has a state epoch MUST also refuse, the same way, a mandate whose
valid_fromis later than its own clock: the §2.2 skew allowance doesn't apply to it. A place kept in memory only then never seats a mandate before it is valid on its own clock, so a mandate it seated before a restart is always dated before the new epoch and refused after it, however often the place restarts. [SC-M1, C192] - Informative. A mandate is usable only from its
valid_from, so a mandate dated after the epoch can't have been used before it, unless the owner's clock runs ahead of the place's. At a place kept in memory only, the rule above closes that gap. At a place that had durable state and lost it, the place applied the skew before the loss, so a mandate dated up to 300 s after the epoch may have been used before it; that window (at most 300 s of mandates, once per loss) remains. A representative refused this way asks its owner for a new mandate; the SDK signs mandates valid from the moment of signing.
§4 Introduce: introductions, vouching and introducer accountability
Informative. Every visitor introduces itself: by the time it reaches this step it has shown its card (§3.2 step 2), and it states its purpose next (step 4). A self-introduction, vouch: null, is the normal case. Most rules below are about vouches, and they come into play only when a visitor brings one or a place's policy asks for one (account creation and money, below).
- The introduction step is mandatory.
vouch: nullis an honest self-introduction and MUST be accepted as a valid step. [G1, SC-S1, C4] - An introduction is a deliberate act. A vouch exists only because the introducer chose to give it: it MUST be signed by the introducer's own principal key, by the owner (
issue_vouch, §8.1) or within a standing allowance the owner signed that covers issuing vouches (§5.2). Being connected is never an introduction: a representative MUST NOT issue a vouch just because two representatives have met, share a place or a gathering, or appear in each other's relationship records (§9.2), and a gatekeeper MUST NOT treat any of those, or a past visit, as an introduction. A vouch in a principal's name signed by any other key (for example its representative's) carries no weight. [SC-M1, C171, C4, D17] - A
Vouchnames the introducer, the subject (representative id plus card digest), its scope (purposes, and optionally theclaimsit stands behind, §2.5), its expiry and the introducer'srevocation_log(an https URL). It MUST be signed by the introducer. [G1, C4, C61, C65] - A vouch outside its scope, past its expiry, for a different card digest, or revoked MUST be treated as no vouch. [SC-M1, C4, C24]
- Which introducers a gatekeeper trusts is policy, and MUST NOT be disclosed to unverified visitors. [G2a, C11]
- No accept-anyone for money or accounts. A gatekeeper MAY honor any introducer (
trusted_introducers: "*") for other requests, but under"*"a vouch MUST carry no weight for a request that includes a money operation or an account-creating action. Only introducers the place names can introduce those: in its list of trusted introducers, or, alongside"*", in a separate list it keeps for these requests (how a place keeps its lists is policy, as above). A request includes a money operation when it names an action the place lists as spending (spending_actions) or asks for a positivemax_amount; it includes an account-creating action when it namesaccount.createor an action the place markscreates_account(§3.1). The answer where policy needs the introduction is the missing-vouch answer below (not_now/VOUCH_REQUIRED), and nothing is recorded against the visitor or the introducer. Reason: anyone can mint an introducer key and a reachable log, so under"*"a ring of fresh keys could vouch each other into payment and sign-up seats (found by the 2026-10-26 red team). Display names are never identity: an introducer is the DID it signs with. [SC-M1, C149, C150, C130] - Account creation by place policy (D17). Each place decides who may open an account with it. A place MAY require, for its account-creating actions, an introduction (a vouch with full or reduced weight from an introducer it names) or its own invitation: a vouch signed by the place's own principal key, which the place always weighs as its own, also under
"*". A place that offers accounts or money SHOULD require one of them. Where a place requires one, its listing marks those actionsrequires_introduction: true(never which introducers it trusts), and a visitor with neither MUST be answered as a missing vouch (not_now/VOUCH_REQUIRED, retrywith_credential [vouch]), with nothing recorded against anyone. A place that leaves sign-up open accepts unintroduced sign-ups by design; §9.4's caps still apply. The floor above stays: under"*"a vouch from any other introducer carries no weight for account creation. [SC-M1, C170, C150, C165, D17] - Paid or genuine. A vouch MAY state
introducer_interest:none(a genuine introduction), or what the introducer gets from it (discount,affiliate,sponsored,gift_received). It is signed with the vouch, so it can't be changed afterwards. At an inbound door (§10) a vouch MUST state it; a vouch without it carries no weight there (a setup failure, recorded against no one). Any value other thannonemakes it a paid introduction. A representative MUST show the owner the declared interest with anything the introduction brought. [SC-M1, C162, D15] - A gatekeeper MUST record the vouch chain with every outcome. [M1, SC-M1, C21]
- An introducer MAY revoke a vouch with a signed
VouchRevocation, appended to an append-only, hash-chained revocation log. Verifiers MUST consult that log. [SC-M1, C24] - Log format. Each entry is
RevocationLogEntry={seq, prev_hash, revocation, entry_hash}:seqcounts from 0;prev_hashis"genesis"atseq0 and the previousentry_hashafter;entry_hash= digest(JCS({seq, prev_hash, revocation_digest})). The log lives at the vouch'srevocation_log. A verifier MUST check the chain and each revocation's signature, and MUST treat the vouch as revoked when the log is broken or not the one the vouch names (fail closed). [SC-M1, M1, C24, C65] - Unreachable vouch log. A vouch whose log is unreachable MUST carry no weight for this visit (fail closed), but that is a setup failure, not a revocation: where policy requires an introduction, the answer MUST be
deny/not_now/VOUCH_REQUIRED(verified visitors) with retryafterat most 1 day, and nothing is recorded against the visitor or the introducer. [SC-M1, SC-L0, C101, C24] - Missing vouch. Where policy requires an introduction, or a full-weight vouch for
considering(§6.8), and the visitor presented none (or one that counts as none), the answer MUST bedeny/not_now/VOUCH_REQUIREDwith retrywith_credential [vouch]and readiness itemintroduction. It MUST NOT benot_a_fit. [SC-B1, SC-L0, C130, C101] - Serving the log.
GET <revocation_log>MUST answer200with a JSON array ofRevocationLogEntryinseqorder ([]when nothing is revoked). For conformance runs, Appendix B allows loopbackhttplog URLs. [SC-M1, C65, C24] - Revocations and introducer reviews travel as
vouch_revocationandintroducer_reviewmessages, each with a ritual header. [SC-M1, M1, C65] - Introducer penalties are in §9.3.
§5 Ask: mandates, the standing allowance and the request
5.1 Mandate
- A
Mandategives a purpose (a language-neutral code plus a statement), allowed actions, limits and validity. It MUST be signed by the principal, or by the representative under an allowance (§5.2), and MUST fall within the card'smandate_scope. [G1, SC-S1, SC-A1, C3, C82] - Principal = owner. A mandate's
principal_idMUST equal the card'sprincipal.principal_id(for a person, the owner id inowner_binding.owner_id). A mandate naming anyone else MUST be treated as invalid (MANDATE_INVALID), including one issued under an allowance. Named counterparties in mandates and allowance grants MUST be principal DIDs, not representative DIDs. [SC-A1, SC-L0, C116, C3] - A personal representative's mandate MUST be signed with the owner's passkey, unless it is issued under the owner's allowance (§5.2). The owner's signature on a mandate or allowance is the owner's consent to it; no separate
OwnerConsentis required (D7). [SC-L0, SC-A1, C3, C45, C82, D7] - Amounts (D10). Every amount MUST be
Money={value, currency}:valuea strict ASCII decimal string (0or a digit 1–9 followed by digits, optionally.and 1 to 6 digits; no sign, separators, exponent or spaces) andcurrencyan ISO 4217 code in capitals. Amounts MUST be compared exactly (as scaled integers), never as floating point. A non-canonical amount in a request MUST be declinedREQUEST_INCOMPLETE(§5.3); in a mandate it makes the mandate invalid (MANDATE_INVALID). [SC-S1, C68, D10] - A seat's
max_amountapplies per seat, cumulatively, unlessmax_amount_scope: "per_operation"(§7.2); a mandate's own limits bind across all its seats (below). [SC-S1, C73] - Session cap.
per_operationis an explicit opt-in and never lifts the session-wide cap: a mandate MAY statesession_max_amount(Money, same currency asmax_amount) to cap the whole seat; when it is absent, the session cap ismax_amountitself.session_max_amounthas no meaning withoutper_operationand MUST be ignored under the default per-seat scope. [SC-S1, C151, C73] - A mandate's limits bind the mandate, across visits (C175). A mandate's
max_amount(underper_operation, its session cap) and itsmax_operationsare the owner's allowance for the whole errand, not for each seat: every act done in every seat granted under the mandate, at every visit while it is valid, counts against them. A gatekeeper MUST keep, for each mandate it has seated (identified by itsprincipal_idandmandate_id), the operations and amounts done under it until the mandate expires, and MUST refuse an act that would take the mandate past one of its limits asnot_now/SEAT_SCOPE_EXCEEDED(retrywith_credential [signed_mandate]), even when the act fits its own seat. Presenting a mandate again never renews its allowance; more needs a new mandate the owner signs.max_session_sstays per seat. [SC-S1, C175, C73, C16]- Informative. A host can count only what happened at its own door, and only under mandates it can tell apart: two mandates are two allowances. Across places, and across mandates for one errand, the representative's own ledger (below, §5.2, §8.2) is the bound.
- The representative's mandate ledger (C176). A representative MUST keep a ledger for each mandate it holds: every visit, seat and act done under it, at every place, with the amounts. It MUST NOT request or attempt an act beyond what remains of the mandate's limits, and SHOULD present a mandate it already holds for the same errand again rather than have a new one signed. [SC-S1, SC-A1, C176, C85]
- **No spending allowance = no spending (D11). A mandate without
max_amountauthorizes no spending at all. A gatekeeper MUST treat every action its policy lists inspending_actionsas outside such a mandate, and a requested amount as exceeding it (lower_limitwith value"0"). A seat withoutmax_amountMUST refuse any act that moves money (§7.2). [SC-A1, C10, C84, D11] - Mandate cross-checks (C188). A gatekeeper MUST treat as invalid (
deny/not_now/MANDATE_INVALIDto a verified visitor, retrywith_credential [signed_mandate]) a mandate whosecard_idisn't the card presented in this encounter; whosecounterparties, when present, don't include this place's principal DID; or whose purpose is non-spending (registered purposes, below) while it carriesmax_amount. A mandate's ledger (above) is keyed withprincipal_idcompared as a DID (§2.1), so two spellings of one owner key are one ledger. [SC-A1, SC-S1, C188, C116, C175] - Currency and scope (C188). A request whose
max_amountis in another currency than the mandate's is beyond the mandate:conditionalwithlower_limitset to the mandate'smax_amount(§6.7 rule 2). A seat MUST beper_operationonly when the mandate is; a request'sper_operationnever widens a per-seat mandate, and the seat is then per seat. When the mandate isper_operationand the request isn't, the seat's session cap MUST NOT exceed the request'smax_amount. [SC-S1, C188, C151, C41] - Informative. A
max_amountgranted with only non-spending actions spends nothing (only actions listed inspending_actionsmove money). A spending action requested withoutmax_amountis seated without one (§6.1), so its acts are refused until the visitor asks again with an amount. - Purpose codes. A purpose code is a registered code or an
x-code. A place MUST describe everyx-purpose it accepts (PurposeDescription) in itsLobbyBriefingand its place listing. [SC-L0, C54] - Registered purposes (D11). The registered codes include
invitation(proposing or accepting a meeting),introduction(introducing oneself or another),visitation(a learn visit: looking, asking, comparing),purchase(a buy visit), alongside the earlier codes (inquiry,account_servicing,payment_initiation,data_access,creative_assist,support,teaching,collaboration).invitation,introductionandvisitationare non-spending: they MUST NOT require a spending allowance, and a mandate for them MUST NOT carrymax_amount. [SC-A1, SC-P1, C84, C89, D11] - Learn vs buy. A host MAY keep policy per purpose (
by_purpose). A store SHOULD seat avisitationvisit for browsing and questions without spending, and MUST seat apurchaseonly within the visitor's spending allowance. [SC-A1, G7, C89, D11]
5.2 The standing allowance (D11) [SC-A1]
An owner is often busy and cannot answer a prompt in the middle of a visit. Like an allowance for a child, the owner says once, ahead of time, what the representative may do alone.
- Shape. An
AllowanceMUST be signed once by the owner's passkey (Appendix A.1). It lists one or more grants, each with purposes, place categories (or named counterparties), actions and, optionally, spend per period (SpendBudget:per_periodasMoneywith an ISO 4217 currency, an ISO 8601periodofP1D,P7DorP1M, optionalper_seat). It carriesvalid_from,expires_at, arevocation_statusaddress and theshown_to_ownersummary inside the signature. [SC-A1, G7, C82, D11] - Minimal disclosure. The allowance carries only salted grant digests (
grant_digests). A representative MUST present the allowance with only the one grant that covers the visit (AllowancePresentation). [SC-A1, G7, C82, D11] - Mandates under an allowance. Inside an allowance, the representative issues its own per-visit
Mandatewithunder_allowance {allowance_id, allowance_digest, grant_digest}, signed by the representative key. Such a mandate MUST NOT exceed its grant: purpose and actions in the grant, the host's place category (or the host itself) in the grant,max_amountat most the grant'sper_seat(orper_period) in the same currency, and nomax_amountwhen the grant has nospend, and validity inside the allowance's. [SC-A1, G7, C82, C85, D11] - Host verification. A gatekeeper MUST verify the owner's passkey signature on the allowance (key resolved from the card's
owner_binding), that the grant's digest is listed, that the mandate is signed by the card's representative and fits the grant, that the host's own place category is in the grant, expiry, and revocation atrevocation_status. An unreachable status MUST count as revoked (fail closed). A failure makes the mandate invalid (MANDATE_INVALID, §6.2). [SC-A1, G7, C82, D11] - Period budget. A host cannot see spending elsewhere, so the representative MUST keep the period ledger across visits and places, and MUST NOT request or attempt a spend beyond what remains of the period; it takes the matter home instead. A host enforces the seat's
max_amount. [SC-A1, C85, D11] - Period windows. Periods MUST be consecutive calendar windows anchored at the allowance's
valid_from(not rolling):P1DandP7Dadd 1 or 7 days;P1Madds one calendar month, clamped to the last day of a shorter month (31 Jan → 28 or 29 Feb → 31 Mar is anchored on the 31st). Spending in one window MUST NOT carry into the next. Splitting a purchase across visits or places within one window MUST still count against that window. [SC-A1, C99, C85] - Status (publication rules in the Revocation status extension). The allowance's
revocation_statusaddress MUST answer with the allowance's current signedAllowanceStatus(status: "active" | "revoked"). A host MUST refuse arevokedor expired allowance (fail closed:MANDATE_INVALIDto a verified visitor). How the issuer publishes and re-signs the status, its 1-hour lifetime (D12) and stapled statuses are the Revocation status extension. [SC-A1, G7, C98, C82] - A fetched revocation wins. A host that fetched a usable status saying
revoked(valid signature; under the Revocation status extension also a lifetime ≤ 1 h) MUST refuse the allowance even when the visitor staples a freshactivestatus (stapling is the Revocation status extension). [SC-A1, G7, C141, C98] - Red team. A host MUST refuse, as
deny/not_now: an allowance not signed by the card's owner passkey, a grant whose purpose or place category doesn't match the visit, and a mandate whosemax_amountexceeds the grant. [SC-A1, C97, C82] - No live prompt. Inside the allowance the representative acts without contacting its owner. The protocol MUST NOT require a live owner prompt during an encounter: no response, condition or act may wait on the owner in real time. [SC-A1, C83, D11]
- Retry under an allowance. A refused act or request by a visitor under an allowance MUST carry retry
with_credential [signed_mandate](a new mandate the representative can issue alone, or the owner signs later), nothuman_confirmation. Arequire_human_confirmationcondition MUST be met only in a later encounter (take it home, asynchronous); the farewell outcome is thentaken_home. [SC-A1, G7, C100, C83] - Outside the allowance. Anything outside it MUST go home asynchronously: the representative takes it home (
VisitReport.taken_home, farewell outcometaken_home), and a host-side request beyond the visitor's mandate getsconsideringordeny/not_now(§6.7, §6.8). The owner decides later; a binding action needs a passkey (§8.1). Silence by the deadline MUST be treated as no (if_no_reply: "declined"). [SC-A1, SC-P1, C76, C83, D11] - Revocation. An owner MAY revoke an allowance at any time (
AllowanceRevocation, signed by the owner's passkey and published atrevocation_status). A representative MUST stop issuing mandates under it at once. [SC-A1, C82, D11] - Relation to mandates. An allowance extends the mandate model rather than replacing it: the gate still sees one mandate per visit, so the seat bound (§6.1), the fixed order (§6.7) and the checks against the mandate apply unchanged. A principal MAY still sign mandates directly (organizations do). [SC-A1, C82, C86, D11]
5.3 Invitation request
An
InvitationRequestMUST bind the card and vouch exchanged earlier by digest, and MUST carry the signed mandate and a structured proposal: actions, limits,value_to_counterparty(prose), the etiquette register and, where the host publishes Seeking (Seeking extension), the Seeking and Offering items it addresses. [G1, SC-S1, C3]An incomplete or malformed request (no mandate or no actions, a card or vouch digest that doesn't match what was exchanged, a non-canonical amount) MUST be declined
deny/not_now/REQUEST_INCOMPLETEwith retrywith_credential. A complete request earns evaluation, not approval. [G2a, SC-L0, C28, C68]Retry for an incomplete request or act (C185). Every
REQUEST_INCOMPLETEdeny (a request at step 4, or anact_decision) MUST carry retrywith_credentialwith credentials[signed_mandate]: the visitor resends the whole request (or act) with its signed mandate, fixed as below. It names no new credential: a visitor whose mandate still covers the request presents the same one again. [SC-L0, SC-S1, C185, C28, C68]Cause What to fix no mandate, or no actions send the signed mandate and the actions card_digestisn't the card presented in this encounterthe presented card's payload_digestvouch_digestmissing, wrong or extrathe vouch's digest, or none after vouch: null(below)a non-canonical amount in the request canonical Money(§5.1)an act of a spending action with no amount, or a malformed onearguments.amountas canonicalMoney(§7.2)vouch_digest.
vouch_digestMUST be present, and equal to the digest of the vouch, when the visitor'sintroductioncarried a vouch, and MUST be absent when it wasnull. A missing, wrong or extravouch_digestmakes the request incomplete (REQUEST_INCOMPLETE). [SC-S1, C129, C68]
§6 Answer: the decision
6.1 Invitation response
decisionMUST be exactly one ofgrant,conditional,denyorconsidering. [G1, G3, G5a, C6]- A
grantMAY carry a seat, and the seat MUST NOT exceed policy ∩ mandate ∩ request, in actions and in every limit; an absentmax_amountcounts as zero, and the policy is the host's policy for the request's purpose. [G1, SC-S1, SC-A1, C10, C84] - Seat limits as stated (clarification). Each
Moneyin a seat's limits is copied exactly as it appears in the limit it came from (policy, mandate or request:"50.00"stays"50.00"). A seat states the caps of policy ∩ mandate ∩ request; they are not reduced by what earlier visits used under the same mandate. What remains of the mandate is enforced at each act (§5.1, C175), and a place MAY say what remains in its courtesy. [G1, SC-S1, C10, C175] - No amount, no spend. When the request carries no
max_amount, the seat MUST carry nomax_amounteither, whatever the mandate allows. [SC-A1, L0b, C114, C84] - A
conditionalMUST list checkable, typedconditions:narrow_actions {actions: [..]},lower_limit(theLimitsbeing lowered, amounts asMoney),require_mandate {actions: [..]},require_vouch {purposes: [..]},require_human_confirmation {actions: [..]},shorter_session {max_session_s}. The visitor accepts by sending a new request, which is evaluated afresh. [G3, G5b, SC-R1, C41, C66] - A
denyMUST carrydispositionandretry. [G2a, G4a, C6, C7] - Every response MUST carry
courtesyandbasis(policy version, input digest, decision time, and the Seeking version and relationship digest when used). [G1, C8, C13] - Receivers MUST branch only on
decision,conditions,retryandrevisit, never oncourtesy. [G1, SC-L0, C12] - Text from a counterpart MUST be handled as untrusted data, and quoted as untrusted wherever it's shown. [SC-L0, SC-M1, C12, C30]
6.2 Reason codes and disclosure
Tell visitors what is required, never why their particular credential failed.
| Code | To an unverified visitor | To a verified visitor |
|---|---|---|
RITUAL_ORDER, CREDENTIAL_REQUIRED, REQUEST_INCOMPLETE, RATE_LIMITED, POLICY_DENY | MAY | MAY |
CARD_INVALID | MUST NOT send a code [G2a, C11] | SHOULD NOT [G2a, C11] |
MANDATE_INVALID, PURPOSE_NOT_SERVED, VOUCH_REQUIRED | MUST NOT [G2a, C11] | MAY |
STANDING_INSUFFICIENT | MUST NOT [C11, SC-M1] | SHOULD NOT [C11, SC-M1] |
MANDATE_SCOPE_EXCEEDED, SEAT_SCOPE_EXCEEDED | n/a | MAY |
- A
conditionalfrom §6.7 rules 1–2 MAY carryMANDATE_SCOPE_EXCEEDED; a narrowing by host policy alone carries no code. A request inside the mandate with an action outside host policy (§6.7, last paragraph) that doesn't go to §6.8 isdeny/not_a_fit/POLICY_DENYwith retryafter; when some of its actions are in policy, a place MAY instead answerconditionalwithnarrow_actionsset to them. [SC-R1, C41, C66] - "Unverified" means the card did not verify at step 2. An unverified visitor MUST receive no credential-specific code. [G2a, SC-L0, C11]
- When probing is suspected, the response MUST carry no reason code and retry
never. [SC-M1, M1, C23]
6.3 Disposition, retry and revisit
not_nowandnot_a_fitMUST use retryafterorwith_credential. [G4a, SC-L0, C7]neverMUST be used only for policy or trust violations (forgery, replay, probing, severe misconduct), and always with retrynever. [G2b, SC-M1, C7]- A visitor MUST honor
retry. [G4a, SC-M1, C7] - A deny SHOULD carry an honest
context_statement, and MAY carry arevisithint. The statement MUST NOT reveal anything §6.2 withholds. [G4a, C11]
6.4 Determinism
- The decision MUST be a pure function of verified artifacts, structured request fields, the policy version, host context (the local relationship record and, with the Seeking extension, the Seeking version) and the evaluation time. [SC-R1, G4b, C8]
- Replaying
basiswith the same inputs MUST reproduce the decision. [SC-R1, C8] basis.input_digestMUST be the digest of the gate input only: verified-artifact statuses, structured request and mandate fields, relationship facts, the evaluation time, and the policy referenced as{policy_version, policy_digest}. Prose and its locale MUST NOT be part of it. [SC-R1, C8, C71, D10]- These digests are local (informative). The exact gate-input projection, and the relationship record behind
basis.relationship_digest, are each gatekeeper's own: they let that gatekeeper (and its auditors) replay its own decisions. Two implementations will compute different digests for the same decision, and nobody compares them across places; a visitor MUST NOT treat another place's different digest as an error. [SC-R1, C8, C71] - A language model MUST NOT be the source of the decision unless its output is constrained to an equivalent deterministic policy. [SC-R1, C8]
6.5 Anti-persuasion
- Prose (
value_to_counterparty, statements, courtesy, evidence text, meaning notes) MUST NOT be an input to the gate. Changing only prose MUST NOT change the decision. (The one place prose is read, an inbound door judging an offer, is below; it can only lower an outcome.) [G3, SC-R1, C9, C27] - Instructions inside prose (for example "SYSTEM OVERRIDE") MUST have no effect. A representative SHOULD log them as a
manipulationsignal; outside an inbound door, a signal from prose alone is not a misconduct finding. [SC-M1, C9, C21] - Pressure. Urging a representative to prompt its owner now, flattery and claimed urgency MUST change nothing: no owner prompt, nothing shared outside the allowance, and the gate decides the same. [SC-A1, C113, C88]
- Prose MAY shape terms within policy bounds. Persuasion reaches a human only through
considering(§6.8). - Prose as evidence, never as authority (inbound doors, §10). At an inbound door the thing being judged is a brand's offer, and an offer is text the brand signed. So a door MUST check that text for instructions to the representative, introductions the signed vouch doesn't show, hidden text, and pressure the signed facts don't back (§10). These checks MUST be fixed tests over the normalised signed bytes, so the same offer always gives the same findings (§6.4). Their result MUST only lower or cap what an offer can get (
kept_for_later,declined,declined_reported); it MUST NOT admit a brand, accept an offer, grant a seat, raise a limit or authorize any act. Admission to the door is decided without prose, as at any place. Why: a brand that writes pressure or instructions into what it signs has made a statement it can be held to, and a check that can only say no can't be talked into saying yes. [SC-M1, C9, C160, C167, D15]
6.6 Language and courtesy
- Machine fields MUST be language-neutral. [L1, C12]
- Locale (D10). The locale for
courtesy,context_statement,revisit.noteand the lobby MUST be chosen by RFC 4647 lookup of the counterpart's locale list against the sender's supported locales, falling back to the sender's default.courtesyMUST statelocaleandlocale_match(exact,fallbackornone):fallbackis a lookup hit after truncating a range,noneis the sender's default when nothing matched (as the test vectors say). [G4a, SC-S2, L0a, C13, C69, D10] - Rendering (informative; D10). Courtesy is best written without relative time words ("today", "tomorrow") unless the machine retry is within 24 hours, with dates taken from machine fields and rendered in the reader's IANA time zone (
EtiquettePreferences.time_zone), and following the counterpart's declared etiquette preferences. - Courtesy MUST NOT appraise a request beyond the decision (for example "it sounds interesting" on a
considering). [G5a, SC-B1, C12] - Courtesy MUST NOT contradict the decision. [SC-S2, C12, C13]
- No culture's etiquette is imposed. The ritual order is universal, and the manner adapts.
6.7 Requests beyond the mandate: the fixed order [D2]
When requested actions or limits exceed the mandate, the gatekeeper MUST apply this order, before host policy. A mandate issued under an allowance (§5.2) is the mandate here, so the order works unchanged against an allowance. [G3, SC-R1, SC-A1, C41, C86, D2, D11]
- If some actions are outside the mandate and the in-mandate subset is non-empty, the answer MUST be
conditionalwithnarrow_actionsset to that subset intersected with host policy (in-mandate ∩ policy-allowed; D11 confirms this). If that intersection is empty, the answer MUST bedeny/not_now/MANDATE_SCOPE_EXCEEDED. [G3, SC-R1, SC-A1, C41, C66, C74, C86, D2, D11] - If limits exceed the mandate, the
conditionalMUST includelower_limitset to the mandate's limit. Rules 1 and 2 MUST combine in oneconditional. [G3, SC-R1, C41, C10, D2] - If no requested action is in the mandate, the answer MUST be
consideringwhen policy lists every such action and the visitor is eligible (§6.8). [G5a, SC-B1, C41, C19, D2] - Otherwise the answer MUST be
deny/not_now, withMANDATE_SCOPE_EXCEEDED(verified visitors only) and retrywith_credential [signed_mandate]. [SC-R1, SC-M1, C41, D2]
- A spending action under a mandate with no
max_amount(clarification). Such a mandate authorizes no spending (§5.1, D11), so a spending action it names is outside it for this order: rule 1 narrows to the other requested actions, or rule 4 denies when none is left. A requestedmax_amountabove zero under it also exceeds the mandate, and rule 2 addslower_limitwithmax_amount"0"to the sameconditional. [G3, SC-A1, C41, C84, D11] - Before introductions (clarification). This order comes before any introduction requirement (§4), as it comes before host policy: a request outside the mandate is answered here.
VOUCH_REQUIREDapplies only to a request inside the mandate, or where rule 3 would take the request inside and only the introduction is missing. [SC-R1, C41, C130, D2]
Requests inside the mandate but outside host policy go to §6.8, or else to not_a_fit.
6.8 Considering: taking it inside [SC-B1]
- Eligibility for
consideringMUST be decided by policy alone: a verified card, a valid mandate, a full-weight vouch where policy requires an introduction, no severe misconduct on record, and every requested action on the policy's consideration list. Unverified visitors, and visitors relying on areducedorsuspendedintroducer, MUST NOT be eligible. [G5a, SC-B1, C19, C43, D1] consideringMUST carryconsideration_ref,routed_to,response_byandcourtesy, and MUST NOT carry a seat or grant anything. [G5a, SC-B1, C18]- The inside party MAY weigh the pitch. The gatekeeper never does.
- The host MUST send a
consideration_outcomereferencingconsideration_refandrelationship_refbyresponse_by, or a newconsideringwith a later date. If the deadline lapses, the visitor MUST treat it asdeny/not_now. [G5b, SC-B1, C20] - A
consideration_outcomeMUST carryin_reply_to(theconsideringresponse) and keep that encounter'sencounter_id. Agrantorconditionaloutcome MUST state what was approved (approved: actions, optional limits,valid_until) and MUST NOT carry a seat. [G5b, SC-B1, C20, C64] - Outcome lifetime. Until a default is decided (§13 item 15),
approved.valid_untilis a place setting; the test decider (Appendix B.4) always uses 7 days. [G5b, SC-B1, C64] - Extension. To move the deadline, the host MUST send a
consideration_outcomewithdecision: "considering", the sameconsideration_refand a laterresponse_by. [G5b, SC-B1, C64] - An outcome MUST NOT seat beyond the visitor's mandate. [G5b, C10]
- When a
consideringis routed to a personal principal, agrantorconditionaloutcome MUST carry, inowner_consents, a passkeyOwnerConsentwith actionapprove_commitmentwhosesubject_refis the consideration (kind: "consideration", digest = the considering response'spayload_digest). A receiver MUST verify it and MUST treat an outcome without it, with a consent over another subject, or after its deadline, as a decline (§8.1). [SC-P1, PA2, C18, C34, C75, C96, D7] - To use a granted outcome, the visitor MUST open a new encounter and cite
consideration_ref. [G5b, SC-B1, C14, C20]
§7 Act within limits: seats and acts
7.1 Seats
- A seat MUST be bound to a
mandate_idand itslimits, and MUST NOT outlive the mandate, nor the card it was granted to: revoking the card ends it (§2.6). [G1, SC-S1, C10, C198] - Seat tools MUST be the least-privilege allowlist for the granted actions. [SC-S1, C10]
- Informative. A seat's
levels,access_modeandbrandcome from the helper direction (§13); a gatekeeper may fill them as the traces do, and nothing branches on them. A seat'sbrand.labelis copied from the visitor's own card (itsrole, or its principal's display name), so it is the visitor's own claim (§2.1, C199), andvendor_warrantedthere says nothing about who the visitor is; nobody may show it as identity (§13 item 27). Until a default seat lifetime is decided (§13 item 15), a seat expires no later than its mandate and itsmax_session_s; the reference adds a 24-hour ceiling.
7.2 Acts within a seat
An
actoutside the seat's allowlist or limits MUST get an explicitact_decision(deny,conditionalorconsidering), never a soft error. [SC-S1, C16]An act inside the seat that would exceed a remaining limit MUST be refused the same way. An act that moves money in a seat without
max_amountMUST be refused (no spending allowance = no spending). [SC-S1, SC-A1, G7, C10, C16, C84]act,act_resultandact_decisionMUST carry the ritual header, and results and decisions MUST carryin_reply_to. [SC-S1, G6, C16, C48]How an act states its amount. An act of an action the place lists as spending (
spending_actions, shown asspends: truein its listing) MUST state what it spends asarguments.amount(Money), with an optionalpayment_ref(a string naming the payment it belongs to); in the MCP binding (§11.3) these are the tool call's arguments, which the signed act covers. A gatekeeper MUST countamountagainst the seat's limits and MUST refuse such an act without one asnot_now/REQUEST_INCOMPLETE(retrywith_credential). The gatekeeper checks only the caps; checking the amount against the real price is the place's own service, which MUST NOT charge more than the act states. [SC-S1, C174, C16]Price and stated amount (C187). The gatekeeper counts the stated
amount, never the price: an act it lets through counts itsamountagainst the seat and the mandate as stated. The place's service MUST NOT charge more than that amount. It MAY charge less (the stated amount still counts, and the result SHOULD say what was charged), or refuse the act because the amount doesn't cover the price, is in the wrong currency or names nothing it sells. Such a refusal is the act's result (act_resultwithok: falseand an error, or in the MCP binding a tool result withisError), not anact_decision; the place SHOULD then release what the act counted, and a refused act MUST NOT count as structuring. [SC-S1, C187, C174, C16]Which answer for which act refusal (C189). An act MUST be refused with an
act_decisiondenyas follows (retrywith_credential [signed_mandate]unless said otherwise). [SC-S1, C189, C16]- no seat, a seat that doesn't exist, or one held by another representative:
not_a_fit/SEAT_SCOPE_EXCEEDED; - a seat that has expired or was ended:
not_now/SEAT_SCOPE_EXCEEDED; - a seat whose card was revoked:
not_nowwith no reason code, retrywith_credential [signed_card](§2.6, C198); - a tool outside the seat's allowlist:
not_a_fit/SEAT_SCOPE_EXCEEDED; - past the seat's or the mandate's operations or amounts, or moving money without
max_amount:not_now/SEAT_SCOPE_EXCEEDED(§5.1); - a missing or malformed
amount:not_now/REQUEST_INCOMPLETE(§5.3); - structuring:
never, and the seat ends (§9.3).
An act in an encounter whose parties don't include its sender gets the outsider deny of §3.2 (
RITUAL_ORDER, aninvitation_response) instead. [SC-S1, C189, C16, C142, C174]- no seat, a seat that doesn't exist, or one held by another representative:
The check order (C193). A gatekeeper MUST check an act in this order and answer with the first failure: (1) digest and signature (§2.2); (2) the sender is a party to the encounter (§3.2); (3) the seat exists and is held by the sender; (4) the seat is live; (5)
amount, when present, is well formed; (6) an act that moves money in a seat withoutmax_amount; (7) the tool is in the seat's allowlist; (8) a spending action withoutamount; (9) the seat's operations, then the mandate's (§5.1); (10) currency, structuring, then the seat's amount, then the mandate's. Only an act that passed every step reaches the place's service. So an act with no seat gets the seat's refusal whatever its arguments, neverREQUEST_INCOMPLETEand never the service's output. [SC-S1, C193, C189, C16, C175]An act whose encounter is gone (clarification). Step (2) of the check order applies when the act's
encounter_idnames an encounter the place holds. An act from the seat's holder whoseencounter_idnames none (a closed encounter the place dropped, §3.4) is judged on its seat from step (3), and the place answers in the seat's encounter. [SC-S1, C193, C190]Counting operations (C194). Every act the gatekeeper lets through counts one operation against the seat's and the mandate's
max_operations, whether or not it spends; a refused act counts nothing. When the place's own service then refuses the act (C187), the place SHOULD release what the act counted, its operation and its amount together, and MUST NOT release one without the other; a released act counts nothing, also toward structuring. A place that can't see its service's result releases nothing. [SC-S1, C194, C187, C175]An amount in another currency (C177). An amount whose
currencydiffers from the seat's cap (or the mandate's) can't be counted against it. A gatekeeper MUST refuse such an act asnot_now/SEAT_SCOPE_EXCEEDED(retrywith_credential [signed_mandate]), not asREQUEST_INCOMPLETE: the act did state an amount, and the amount is outside what the owner allowed. A refused act counts nothing against the seat or the mandate. A place's own service that checks the amount against its price SHOULD likewise say that the currency is wrong, not that the amount is missing. [SC-S1, C177, C174, C16]A seat's
max_amountMUST be applied cumulatively across the seat's acts unlessmax_amount_scope: "per_operation". Splitting one payment so each part stays under a limit is structuring (seat_overreach, severe). [SC-S1, M1, C73]Session-wide cap. Under
per_operation, each act MUST stay withinmax_amountAND the sum of every act in the seat, across allpayment_refs, MUST stay within the seat's session cap: the seat'ssession_max_amount, or itsmax_amountwhen that is absent (the default). An act beyond what is left MUST be refusednot_now/SEAT_SCOPE_EXCEEDED(§7.2 above). A gatekeeper MUST state the session cap in aper_operationseat's limits (session_max_amount), and it MUST NOT exceed the mandate's session cap, a session cap the request asked for, or the place's own per-seat limit for the seated actions. A request asking for a session cap above the mandate's is beyond the mandate (conditionallower_limit, §6.7). Reason: without it, a purchase split across freshpayment_refs escaped structuring detection (red team 2026-10-26, X1). [SC-S1, C151, C73, C16]
§8 Report home: owner consent and visit reports
8.1 Owner consent [D7]
Owner consents are asynchronous: the representative brings a decision home after the encounter, never in the middle of one (§5.2).
- Every owner decision MUST use one signed
OwnerConsentshape (action,decision,subject_ref,scope,assurance,shown_to_owner,issued_at, optionalevidenceandexpires_at). A representative MUST NOT act on a consent it can't verify. [SC-GA1, C45, D7] - Saying no. Every consent MUST carry
decision: "approve" | "decline". An owner MUST be able to decline any request in one step, with the same or a lower assurance than approving; a chat-reply decline is always enough. [SC-A1, SC-GA1, C76, D7] - Silence is no. A request with no consent by its
expires_at(or by the consideration'sresponse_by) MUST be treated as declined. [SC-A1, SC-P1, C70, C76, D7] - Taking it back. An owner MAY revoke a consent with a signed
ConsentRevocation {consent_id, owner_id, revoked_at}. A representative MUST stop relying on a consent once it has seen the revocation; acts already completed are unaffected. [SC-GA1, C76, D7] - Passkey actions.
approve_share,approve_introduction,approve_commitmentandissue_vouchMUST useassurance: "passkey"; each extension names the passkey actions it adds (accept_house_rulesandattest_relationship: Gatherings;approve_lesson: Teaching visits;accept_invitation: Peer meetings). [SC-P1, SC-M1, C45, C75, C78, D7] - Tied to what the owner saw. For
assurance: "passkey",subject_ref.digestandexpires_atMUST be present, and the consent MUST be signed by the key resolved from the card'sowner_binding.owner_id(Appendix A.1). [SC-GA1, C45, C47, C77, D7] - Assertion checks. A passkey assertion for another relying party than the card's
owner_binding.rp_id, or with the UV flag cleared, MUST be refused. Achat_replywhere a passkey is required, a consent shown for another subject than the one it names, and a signature moved onto another payload MUST be refused. [SC-GA1, SC-P1, C94, C95, C51] - A
ConsentRevocationMUST travel as aconsent_revocationmessage signed by the owner's passkey, sent to the representatives that rely on the consent. [SC-GA1, SC-P1, C109, C76] - Every consent MUST carry
shown_to_owner: {text, locale}inside the signed payload: a plain-language summary of the action, subject, scope, limits, counterparties and expiry, in the owner's language. A representative MUST NOT request a consent whose summary leaves out a limit or counterparty that is in the subject. [SC-GA1, C45, C77, D7] - Commitments.
approve_commitmentapproves aconsideringrouted to the owner (§6.8).approve_next_stepMUST NOT be used to approve a commitment, and a chat reply MUST NOT approve one. [SC-P1, PA2, C34, C75, D7] - Chat replies.
approve_next_stepMAY usechat_replyonly when the step commits nothing, shares nothing new and spends nothing (step_effectsall false); otherwise the representative MUST request the matching passkey action. [SC-GA1, C78, D7] - A
chat_replyconsent MUST be signed by the owner binding's platform key (owner_binding.platform_key), over the consent includingevidence: {channel, message_id}of the owner's reply. A representative MUST NOT sign anOwnerConsentitself, and a consent it signed is invalid. [SC-GA1, C38, C45, C77, D7] - Mandates and allowances. The owner's passkey signature on a
MandateorAllowanceIS the consent; a separateOwnerConsentMUST NOT be required (approve_mandateis retired). [SC-A1, C82, D7, D11] approve_introductionis the owner's consent to be introduced through a named vouch:subject_refMUST be{kind: "introduction", id: vouch_id, digest: vouch digest}. Issuing a vouch isissue_vouch. [SC-M1, C78, D7]- Before an owner signs a
Vouch(issue_vouch), the summary MUST state the vouch's scope and expiry and the D1 consequences: minor → none, serious → reduced 90 days, severe → suspended 180 days, local to that gatekeeper and the vouch's purposes, and halved by revoking within 7 days. [SC-M1, C43, C78, D1, D7] - Consent ids. A
consent_idMUST be unique per owner; a revocation is matched by (owner_id,consent_id) and MUST be signed by that owner. Any representative MAY deliver aconsent_revocation, in any encounter. [SC-P1, C109]
8.2 Visit reports [SC-L0, SC-P1]
- After every encounter (and, under the Gatherings extension, every gathering), a representative MUST report to its owner with a
VisitReport: whom it met, who introduced whom, the outcome (decision, disposition, consideration), what was shared (shared: the card's contents, the mandate and each act's arguments), quoted counterpart text marked untrusted, and exactly one next step withrequires_owner_approval: true. [SC-L0, SC-P1, C30] - Every act under a mandate is reported (C176). A representative MUST report every act done under a mandate. Each report names the mandate the visit was under and either covers every visit and act under it not yet reported (
under_mandate), or names the reports that did. A visit MUST NOT go unreported because a later visit under the same mandate replaced it, and the report's totals (spent, actions done) MUST be the mandate's, not only the last visit's. [SC-L0, SC-S1, C176, C30] - What was brought back (C178). A report SHOULD list each signed object the representative received in the visit and kept for its owner, such as a place's visit stamp or a receipt (
brought_back): the envelope itself or a reference to it (itspayload_digest), who signed it, and whether it verified against the place's listedprincipal_id.brought_backis for things received;taken_homestays for matters that need the owner's decision. [SC-L0, C178, C30]- Informative. A next step needs the owner's approval because it is something the representative would do next; when nothing is pending, the step says so ("nothing is waiting for your approval") and
if_no_replysays nothing happens. What was spent is the sum of the acts' amounts (spent). - Extensions add their own items to the report: strengths read (Profiles and evidence), meaning notes learned (Meaning notes), privacy declines (Gatherings), receipt linking (Visit receipts).
- Informative. A next step needs the owner's approval because it is something the representative would do next; when nothing is pending, the step says so ("nothing is waiting for your approval") and
- The report MUST be written in the representative's own voice, in the owner's language. [SC-L0, C30, C26]
- Report home (D10). A
VisitReportMUST carryoutcome_rendered, built only from machine fields (decision, disposition, retry, conditions,response_by, seat), in the owner's locale and IANA time zone, never from host courtesy. It MUST also say what happens if the owner doesn't reply (next_step.if_no_reply). [SC-L0, SC-P1, C30, C70, D10] - A representative MUST NOT carry out anything a report proposes before the owner approves it. [SC-L0, SC-P1, C30, C34]
- A report MUST list what was taken home for a decision (
taken_home: the request, why it is outside the allowance, the deadline,if_no_reply: "declined") and the inducements and requests it declined under its duty of loyalty (offers_declined, quoted as untrusted). [SC-A1, C83, C88, D11] - At an inbound door. A representative that keeps a door MUST report its offers to its owner as §10 says, with brand text quoted as untrusted, and MUST NOT act on any offer's text. [SC-L0, C160, D15]
§9 Conduct has consequences
9.1 Relationship records and revisits
- The gatekeeper MUST persist a local
RelationshipRecordper counterpart principal (encounters, decisions, dispositions, revisit hints, outcomes, register), and SHOULD return arelationship_ref. [G4a, SC-L0, C14] - A revisit that cites
relationship_refandprior_response_refMUST be evaluated as a continuation, against the current host context and record, and SHOULD use theestablishedregister. [G4b, SC-B1, C14] - Seeking declarations are the Seeking extension; linking an anonymous lobby visit to a later one is the Visit receipts extension. Without it, an echoed receipt or a bare reference to an unbound record links nothing.
9.2 Relationship graph (informative)
A representative keeps its own knowledge of who a counterpart is to its principal: earned edges (friend, introduced, vouched_for, visited, collaborated, taught), each with history and standing, never imported from social networks or follower lists. The graph is guidance for the representative and never a gate input, and being connected is never an introduction (§4). Where an extension relies on closeness (the friends disclosure tier), the rules for edges in the Gatherings extension apply.
9.3 Misconduct and accountability [M1, SC-M1]
| Code | Covers | Default severity |
|---|---|---|
purpose_misrepresentation | behavior differs from the stated purpose | serious to severe |
gate_probing | enumerating requests, card replay, credential stuffing | serious (replay: severe) |
seat_overreach | acting beyond the seat, structuring around limits | serious (structuring: severe) |
vouch_misuse | acting beyond a vouch's scope, or passing it on | serious |
manipulation | prompt injection (instructions in an offer: serious; hidden instructions: severe), impersonation (including claiming an introduction no signed vouch shows, §10), pressing after a privacy decline (Gatherings extension) | serious (impersonation and hidden instructions: severe; pressing: minor) |
conditional_inducement | an offer or gift whose text makes something from the owner (data, a follow, a review, a purchase, an account) a condition without declaring it in strings or needs_from_owner (§10) | serious |
manipulative_pressure | pressure the signed offer doesn't back: false urgency (a deadline sooner than its valid_until), fake scarcity (a quantity it doesn't declare in remaining), fake familiarity (a past relationship this place has no record of), or claimed prior consent (consent is only ever a signed OwnerConsent, §8.1) (§10) | serious (hidden: severe) |
revisit_violation | ignoring retry, returning under a new card | minor (new card: serious) |
post_seat_leakage | sharing seated or gathering data beyond its rules | severe |
- On a finding, the gatekeeper MUST issue a signed
MisconductNoticeto the visitor's principal and to every introducer in the vouch chain, except where an extension directs a notice to the principal only (Gatherings, for pressing). The notice MUST be signed by the host principal's key and travel in amisconduct_noticemessage with a ritual header. [M1, SC-M1, SC-GA1, C21, C46, C48, D5] - Notices from a person's place. Where the place belongs to a person (for example a pair place or a person's gathering, in their extensions), the notice MUST be signed by the place's representative key, acting under its owner's standing allowance; the owner's passkey is not needed for a notice. [SC-GA1, SC-M1, C46, C21]
- Probing is at least N (default 3) distinct rejected request shapes (sorted actions plus limits) from one principal within W (default 24 hours). A rejection is a
conditional, or adenywithMANDATE_SCOPE_EXCEEDED,POLICY_DENYorPURPOSE_NOT_SERVED. Aconditionalthe visitor then met (meets_conditions_of) MUST NOT count, and a request carryingmeets_conditions_ofMUST NOT be judged probing: honest D2 follow-ups are never probing. [SC-M1, M1, C23, C59, D2] - Counting (C186). A shape is the sorted
actionsplus thelimitsof a request; a repeat of a shape already counted doesn't count again. Rejections count per principal (the card'sprincipal_id, compared as a DID), across all its representatives and encounters at this gatekeeper. The request that makes the Nth distinct shape is itself answered as probing:deny/never, no reason code, retrynever(§6.2). [SC-M1, M1, C186, C23] - What a probing
neverbinds (C186). It binds the card's principal at this gatekeeper for 180 days, as a failed proof does (§2.4), so every later request from it or any of its representatives there is answerednever. Thegate_probingfinding staysseriousfor introducers (reducedfor 90 days, D1); the notice statesstanding_change: "suspended"with dispositionneverfor the representative, and the principal's copy withholds findings (below). Nothing is bound at any other place. Appendix B.7 covers conformance runs. [SC-M1, M1, C186, C22, C23, D1] - Effects MUST stay local to the issuing gatekeeper and be proportional to severity. Another host MUST NOT apply a misconduct record it didn't witness. [SC-M1, C22, D3]
- When probing is suspected, the principal's copy MUST withhold
findings. Introducers receive full findings. [M1, SC-M1, C23] - A replayed or copied card SHOULD be logged as impersonation, without a notice to the card's owner (the likely victim). [SC-M1, C2]
- Introducer penalties (D1). A penalty MUST apply only when the introducer's vouch was relied on, and MUST be scoped to that vouch's purposes at this gatekeeper. [SC-M1, C22, C43, D1]
- The grades MUST be: minor →
none, serious →reducedfor 90 days, severe →suspendedfor 180 days. The notice's introducer effect MUST state the grade and itsuntil. [SC-M1, M1, C43, C72, D1] - Under
reduced, the introducer's vouches count as an introduction but MUST NOT raise proof levels or make a visitor eligible forconsidering. Undersuspended, they MUST carry no weight for those purposes. [SC-M1, C43, D1] - A
VouchRevocationlogged within 7 days of the notice MUST halve the duration. [SC-M1, C43, D1] - A signed
IntroducerReviewreferencing the notice MAY restore standing early. The gatekeeper MUST verify its signature before accepting it. [SC-M1, C43, D1] - No self-review. A review restores standing only when it is signed by someone other than the penalised introducer: the gatekeeper's own principal, or a reviewer the gatekeeper names in its policy, identified by
reviewer_id(absent = the introducer). A review the penalised introducer signs itself MUST NOT restore standing; the gatekeeper keeps it as an appeal for its people to read. Reason: the introducer could otherwise pardon itself at once (red team 2026-10-25, E7). [SC-M1, C164, C43, D15]
- The grades MUST be: minor →
- An introducer that receives a notice SHOULD review its vouch. [M1, SC-M1, C21]
- A representative's conduct is its owner's conduct. A finding is about the visitor's principal (the person, brand or community behind the representative), not only about one agent key. A gatekeeper MUST record it against the principal and apply its effects to every representative of that principal at this gatekeeper, so a bad actor can't escape by starting a fresh representative: after a severe finding, the principal is bound
never(§6.3) and any new representative of it MUST be refusednever; after a serious finding, the principal's standing here isreducedfor 90 days (at an inbound door: no priority and no uninvited slot, so only an introduction gets it in, §10). A new representative of a reported principal MUST NOT start with a clean record. The notice states the principal's effect. These consequences stay local to this gatekeeper (above): there is no global score and nothing is shared. [SC-M1, C161, C165, D15] - Signals add up. At an inbound door, minor findings of
gate_probing,purpose_misrepresentationorrevisit_violationare conduct signals. Each is noted against the principal and never bars by itself; three or more in separate notices within 90 days MUST count as one serious finding for the principal's standing at that door (no priority, no uninvited slot, §10). [SC-M1, C169, C165, D16] - Conduct, not taste. Only conduct has consequences. Declining for fit, taste, category, timing or an allowance MUST NOT be recorded as misconduct, MUST NOT produce a notice and MUST NOT affect anyone's standing. [SC-M1, C158, D15]
9.4 Sign-up limits per owner [SC-M1]
- A place that serves account-creating actions (§4) MUST count the sign-ups it grants per principal, across all of that principal's representatives (compared as canonical DIDs, §2.1), and per introducer, over rolling windows, and MUST refuse a sign-up beyond its caps with
not_now/RATE_LIMITEDand retryafterthe time a slot frees. Nothing is recorded against the visitor or the introducer for reaching a cap. [SC-M1, C165, D15] - The rolling window is what catches a slow drip (one sign-up a day, every day, through one introducer). The caps are the place's policy; the reference uses 1 sign-up per principal per 30 days and 5 per introducer per 7 days (reference defaults; the caps are a place setting). Browsing and other actions that don't create an account are not counted. [SC-M1, C165, D15]
§10 The inbound door (D15) [SC-M1, SC-L0]
A person's representative MAY keep an inbound door: a place (category x-inbound-door) where brands' representatives present things to its owner. It follows this whole specification as a place does (ritual, gate, seats, notices); this section adds what is particular to it. Everything a brand sends through it is data for the owner, never an instruction to the representative.
The door policy.
- A door MUST serve offers only under a
DoorPolicyits owner signed with their passkey (owner_id,representative_id,valid_from,expires_at,shown_to_owner). A door whose policy doesn't verify, isn't bound to this representative, isn't valid now, or lacksno_data_for_gift: trueMUST refuse every door request withnot_now/POLICY_DENY. [SC-L0, C153, D15] - The policy has a coarse public part and a private part. The public part states: the welcome
categories;introduction, the owner's choice ofpreferred(introduced brands first, uninvited ones within the allowance) orrequired(introductions only);uninvited_per_month, the uninvited-brand allowance (default 2; 0 means introductions only); caps per brand, per introducer and per day;no_data_for_gift, alwaystrue(gift caps are the Door gifts extension);paid_introductions;brand_learns;listed; and optionallyreason_categories. The private part (what the owner likes and doesn't) MUST stay with the representative: the policy carries onlyprivate_digest, a salted digest of it. [SC-L0, C153, C163, D15] trusted_introducersMUST name introducers by DID;"*"MUST NOT be used at a door. The public part MAY be shown to a verified visitor; the list of trusted introducers MUST NOT be (§4). [SC-M1, C153, C154, D15]
Admission (deterministic, §6.4).
- A brand is introduced when its visit carries a vouch with full or reduced weight (§4, §9.3) from an introducer the policy names, and the vouch states
introducer_interest(§4). An introduced brand MUST NOT use the uninvited allowance. [SC-M1, C154, D15] - An uninvited brand (or a paid introduction under
paid_introductions: "as_uninvited") MUST be refusednot_now/VOUCH_REQUIREDwhen the policy saysrequiredor the allowance is 0. Otherwise it MAY be admitted only while fewer thanuninvited_per_monthuninvited offers have cleared the fit bar in the current calendar-month window (anchored atvalid_from, as §5.2's periods); beyond that it MUST be refusednot_now/RATE_LIMITEDwith retryafterthe next window. [SC-L0, C155, D15] - Every admission MUST also respect the caps per brand (counted per principal, §9.3), per introducer and per day (and the gift caps, Door gifts extension), refusing beyond them with
not_now/RATE_LIMITEDand retryafterthe time a slot frees. A brand that knocks again before its stated retry MUST be refused the same way and MAY be noted (revisit_violation, minor). Reaching a cap is never misconduct. [SC-L0, C156, D15] - Paid or genuine. Under
paid_introductions: "as_uninvited"(the default) a paid introduction (§4) MUST get no priority over an uninvited brand and MUST NOT satisfyintroduction: "required". Either way the representative MUST show the owner who introduced the brand and what the introducer declared it gets. [SC-M1, C162, D15]
Offers: presentation and invitation (gifts: Door gifts extension).
- A door serves two actions, each carrying one
Offerin itsarguments.offer:door.present(kindpresentation, purposepresentation) anddoor.invite(kindinvitation, purposepresentation); the Door gifts extension addsdoor.gift. A seat MUST allow at most one presentation or invitation per visit; another is refusednot_now/SEAT_SCOPE_EXCEEDED. [SC-L0, C157, D15] - An offer MUST declare up front everything the owner would give:
needs_from_ownerfor a presentation or invitation (a gift declares itsstrings, Door gifts extension). [SC-M1, C157, D15] - An invitation MUST say why this door:
context.doornames this door's representative andcontext.matches_categoriesnames public categories of this door that include the offer's category;context.via_vouch, when present, names the vouch this visit carries. An invitation without such context MUST be declined, using no uninvited slot. With no context, or one addressed to everyone (a pitch sent to everyone), it is not misconduct; a context that names something else is a conduct signal (below). [SC-L0, C157, D15] - An offer outside the public categories, of the wrong kind for its action, or expired MUST be declined, using no uninvited slot. [SC-L0, C157, C158, D15]
Outcomes.
- The door MUST answer each offer with an
offer_outcomesigned by its representative:accepted,kept_for_later(taken home for the owner),declined, ordeclined_reported(declined, with a misconduct notice, §9.3). The brand MUST learn only the code, its retry (afterthe brand's next slot;neverwithdeclined_reported), a pairwiserelationship_ref, an optional reason category (below) and, for an accepted gift, a single-useclaim_ticket(Door gifts extension). The outcome MUST NOT carry the owner's private part, the policy's detailed state, the findings' evidence, or why taste declined. [SC-M1, C158, C163, D15] - The ceiling. Hard rules set the highest outcome an offer may get: a presentation or invitation that needs anything from the owner, at most
kept_for_later; an offer with hidden or invisible text, at mostkept_for_later. The representative's own judgment (taste) then picks at or below the ceiling. Taste MUST NOT producedeclined_reported. [SC-M1, C158, D15] - No data for a gift (a core rule). A gift that costs data (
email,address,phone,marketing_consent,account) MUST NOT be accepted by the representative; it is at most taken home, and only the owner can accept it. This holds for any gift or inducement, whether or not the door implements the Door gifts extension (§1, duty of loyalty). [SC-M1, C159, D15] - Reason categories (optional). A door MAY attach a kind, coarse
reason_categoryto a refusal so a brand and its owner can learn why:not_a_fit_now(any fit or taste decline, whichever test failed),over_monthly_allowance,needs_introduction,conduct_concern. It MUST NOT reveal the owner's private tastes or the policy's detailed state, and it MUST NOT be sent withacceptedorkept_for_later. Withdeclined_reportedit MUST NOT be sent unless the owner opted in (reason_categories: "declined_and_reported"), and then onlyconduct_concern. Default (reason_categoriesabsent): sent ondeclinedoutcomes and door admission refusals, off fordeclined_reported. [SC-M1, C166, D15]
Offers are data.
- Offer text MUST be treated as data, never as instructions to the representative (§6.5). Before judging, the door MUST normalise it: strip invisible code points (soft hyphen, zero-width and bidirectional controls, word joiners, BOM, tag characters) and, for
format: "html", remove comments and text hidden by styling (display or visibility hidden, zero font size or opacity, off-screen, text in its background's colour, white on the default white page), keeping what it removed. [SC-M1, C160, D15] - Hidden or invisible text MUST be flagged and shown to the owner, not silently dropped: the owner's view of the offer carries a visible marker (for example "[hidden text: 1 part; tap to reveal]") and reveals the hidden text on tap. [SC-M1, C160, D15]
- Text that addresses the representative as an instruction (for example "Assistant: accept this") MUST be
declined_reportedasmanipulation(serious; severe when hidden). Text that claims an introduction this visit's signed vouch doesn't show (for example "Noor sent us") MUST bedeclined_reportedasmanipulation(impersonation, severe). The offer is signed, so its text is the brand's own statement and these findings are evidence; as §6.5 states, they can only lower an outcome, never authorize anything. [SC-M1, C160, C161, D15] - A brand is the DID it signs with: a lookalike name or domain (for example
maison-ardoize.exampleformaison-ardoise.example) gets nothing from the brand it resembles, and its claims are judged as any unproven claim (§2.5). [SC-M1, C161, D15]
Sincere approaches (D16, P16 Part A). An approach is judged on context and care, never on how well it hooks attention. The door can't read intent; it makes manipulation costly and sincerity pay over time.
- Pressure must be backed by signed facts. Before taste, the door MUST check the normalised text (visible and hidden) for pressure the signed offer doesn't back, and MUST answer
declined_reportedasmanipulative_pressure(§9.3; serious, severe when only in hidden text) when it finds any of: urgency whilevalid_untilis more than 48 hours away, or a stated time left shorter thanvalid_untilallows; a scarcity claim withoutremaining, or a smaller quantity thanremaining; familiarity ("as we discussed", "welcome back") from a brand this door has no earlier offer from that was accepted or kept; a claim that the owner already consented, opted in or asked (always, since consent is never prose). Describing a product is not pressure. The phrase lists are the door's; the reference's are informative (Appendix C). [SC-M1, C167, C160, D16] - Campaigns, not wordings. Offers from one principal (across all its representatives, §9.3) are one campaign when they share
campaign_idor when the door's variant test finds them to be rewordings of one pitch (same category and close wording; the test is the door's; the reference's is in Appendix C). A door MUST count a campaign once per per-brand window, however it is worded: a further variant in that window MUST be declined, using no slot, and is not a finding. A newcampaign_idon the same pitch MUST NOT make a new campaign. [SC-M1, C168, C156, D16] - Variant probing is a conduct signal. Three or more distinct wordings of one campaign from one principal within 30 days MUST be declined with a minor
gate_probingsignal (one per campaign). A brand that returns after its stated retry with a reconsidered offer is learning, not probing, and MUST be judged afresh. [SC-M1, C168, C23, D16] - Declared context. A presentation SHOULD state why this door (
context), as an invitation MUST. Where an offer carries a context that names another door, a category this door doesn't list publicly, a category other than the offer's, or a vouch this visit didn't carry, the offer MUST be declined with a minorpurpose_misrepresentationsignal. An offer with no context, or one addressed to everyone (door: "*"), is declined (if it needs one) with no signal, as before. [SC-M1, C169, C157, D16] - A declined signal MAY carry the kind reason
conduct_concern(§10 reason categories); it is never the finding or its evidence. [SC-M1, C169, C166, D16]
Privacy, and accountability.
- A door MUST NOT be advertised by default (
listed: false): it MUST NOT appear in its owner's place listing or door pointer unlesslistedis true; its address travels with introductions or the owner's own choice. The one exception is the pointer answering a request to the door's own address, which may name that door alone inhere(§11.1, C200). [SC-L0, C163, C200, D15] - A door MUST give each brand pairwise identifiers:
relationship_refand claim tickets are derived per brand from a secret only the door keeps, so two brands can't link the same owner by comparing what they were given. [SC-M1, C163, D15] - Private, but not unaccountable. Pairwise identifiers keep owners private from doors and from each other; they do not make anyone unaccountable. At each door a brand's conduct sticks to its principal (§9.3): a new representative of a reported principal MUST NOT start clean there, and a principal keeps one identity at each door it visits (pairwise identifiers are for privacy across doors, never for a new start at the same door). A principal that discards its identity entirely arrives as an unintroduced stranger: no priority, the uninvited allowance only, and any introducer who vouches for it answers for that vouch (D1). Consequences stay at the door that saw the conduct. [SC-M1, C161, C165, D15]
- The representative MUST report the door's day to its owner (§8.2): what was kept for later, any hidden text with its marker, who introduced whom and with what declared interest, and what was reported. [SC-L0, C160, C162, D15]
- Someone using the owner's own name (C201, rc4 clarification). Sometimes a visitor's card claims the door owner's own name under another principal: as its principal's
display_name, or as a whole name in itsrole("on behalf of …"). Names are compared ignoring compatibility forms, case, accents, spacing, punctuation and invisible characters. A name is a claim (§2.1, C199). Nothing is ever granted for the name, and the visitor is never linked to the owner's records. By default (own_name_visitorsabsent or"refuse") the door MUST refuse such a visitordeny/not_now/POLICY_DENYwithretry: with_credential ["vouch"], unless the visit carries a vouch this door counts (a real namesake can be introduced, and is then judged as a stranger would be with that vouch). It MUST NOT answerneverfor a name alone. The owner MAY opt in withown_name_visitors: "seat_as_stranger"in the signed policy's public part; the door then judges such a visitor exactly as it judges a stranger. Either way the door MUST also tell its owner at once, off the wire and without waiting for the day's report, with the visitor's verified identifiers and the name shown only as a claim ("someone used your name here: the owner with key … (claims to be "…"; not verified)"). Any otherown_name_visitorsvalue makes the policy invalid. The visitor learns nothing about the alert. The match is best-effort: it catches the same name written differently, not every way of imitating it; look-alike letters from other scripts are a known gap (§12.2, P23). Informative: found in round 4, where a model-played impostor using the owner's name was seated as a stranger and the owner wasn't told; the default became refuse on review (YSY, 2026-10-27). [SC-L0, SC-M1, C201, C199]
§11 Minimal HTTP binding
This section fixes the minimum two HTTP implementations need to interoperate without side agreements (§11.1, §11.2), and how a seated visitor calls the seat's tools over MCP (§11.3). Push delivery is not defined (§13 item 2). Peer invitations and gathering items travel as ordinary signed messages under §11.1 and §11.2 (see their extensions); how an issuer publishes an allowance status is the Revocation status extension.
- An implementation that speaks HTTP MUST support this binding. All bodies MUST be JSON (
application/json), and every protocol message travels asSigned<ShokaiMessage>(§2.2). [SC-L0, SC-R1, C106, C48]
11.1 Addresses and replies
- A place MUST serve its listing at
GET <base>/placesand, for each place,POST <entry>,POST <lobby>andPOST <inbox>at the addresses its listing entry names (entry,lobby,inbox). [SC-L0, L0a, C103, C106, C119] - Door root.
GET <base>/MUST answer200with theDoorPointer. [SC-L0, L0a, C118] - A
POSTto an entry MUST be answered200with aReplyEnvelope {protocol, messages[]}: the signed messages the place sends in answer, in order (possibly none). Plain prose or a malformed body at an entry MUST get the lobby (§3.1) in the same envelope. A message the place discards unanswered (a digest mismatch, §2.2) or that isn't for it (§2.2,to) gets this200with an empty envelope. [SC-L0, L0a, C106, C53, C40] - Request body (C183). A client's
POSTto an entry or lobby address MUST carry exactly one message: oneSigned<ShokaiMessage>(on the lobby path itssignaturesMAY be empty), or prose. A JSON array, or an object holding several messages (aReplyEnvelope-shaped batch), is a malformed body: the place MUST answer it with the lobby (§3.1) and MUST NOT act on any message inside it. [SC-L0, SC-R1, C183, C53] - Inbox body. Anything at an inbox address other than a valid signed
inbox_poll(prose, a ritual message) is a refused poll (§11.2:403, empty envelope). [SC-B1, C121] - At the encounter cap. An arrival refused under §3.4 MUST be answered
429with aRetry-Afterheader and an emptyReplyEnvelope; the sender SHOULD wait at least that long before trying again. These are the only non-200answers at an entry:429as here, which a place MAY also send when its own rate limits are hit, and413(with an emptyReplyEnvelope), which a place MAY send for a body larger than its own size limit (a place setting; this text sets none). [SC-L0, C152] - Lobby address. A
POSTto the lobby address MUST be handled exactly as at the entry: a protocol message enters the ritual, anything else gets the lobby. [SC-L0, L0a, C120] - Any other path, or any other method at a known path (for example
GET <entry>,PUT,DELETE), MUST be answered404with aDoorPointerbody, never an empty or HTML body. [SC-L0, L0a, C103, C53, C120] - At a place's own address (C200, a recommendation in v0.3.0; planned to become a MUST in v0.4). When that
404answers a request to one of a place's own addresses (itsentry,lobbyorinbox, for exampleGET <entry>), theDoorPointerSHOULD also carryhere: that place'sname,entry,lobby,inboxandonboarding_url, withmethod: "POST". It tells a visitor that fetched the address first that the address is right and takes aPOST(start with agreeting, or plain words for the lobby). This holds for an unlisted place too (§10): whoever asks already holds its address, and aPOSTthere already answers, soherereveals nothing new. A place that sendshereMUST NOT name any other place in it;placesstays the advertised list, so an unlisted place still never appears in it (C163); and a404for an address that isn't a place's own MUST NOT carryhere. It is a recommendation in v0.3.0, so independent implementations withoutherestay conformant; a visitor MUST NOT rely on it. Informative: a round-4 plain agent fetched an unlisted door's entry, read a404that listed no places as "nobody lives here", and never posted. [SC-L0, C200, C163] - Version mismatch. A message whose
protocolthis place doesn't speak MUST get the lobby, whosespec_refnames the version the place speaks; it MUST NOT be silently dropped. [SC-L0, C102] - Reply address. A
greetingand apeer_invitationMAY carryreply_to, an entry or inbox URL of the sender. A place MAY push a late message there; it MUST still hold it for the recipient's inbox, because polling MUST always work. [SC-P1, SC-B1, C107, C108]
11.2 Late (asynchronous) delivery
- A message that can't go out in the reply (a
consideration_outcome, apeer_invitation_answer, agathering_invitation, a notice) MUST be held for its recipient, keyed by the recipient's DID (to). [SC-B1, SC-P1, C107] - Polling. The recipient collects held messages by
POST <inbox>with aninbox_pollsigned by itsfrom. A place MUST answer a valid poll from any signer200with aReplyEnvelopeof the messages held for that signer, in order, possibly none: having nothing waiting is not an error. [SC-B1, SC-P1, C107, C121] - Refused polls. A place MUST answer
403with an emptyReplyEnvelope({protocol, messages: []}) to a poll that is unsigned, whose signature fails or whose signer isn't itsfrom, whosesent_atis more than 300 seconds from the place's clock, or whosemsg_idthat signer already used. [SC-B1, C121, C122, C107] inbox_poll.sincenames the lastmsg_idreceived; the reply MUST then hold only later messages. Asincethe place doesn't know MUST return everything held for the signer. [SC-B1, C107, C144]- Poll header. A place checks a poll's signature, signer =
from,sent_atandmsg_idonly; itstoandencounter_idMUST NOT be checked. An owner MAY poll with a passkey signature (Appendix A.1:ES256with its statedrp_id) under its own DID. [SC-B1, SC-M1, C144, C121] - Held notice. A place that will answer a message later (a
peer_invitation, or any message whose answer goes to the inbox) MUST say so in the same reply with a signedheldmessage:{in_reply_to, inbox, answer_by?}. A sender that gets neither an answer norheldMAY treat the message as dropped. [SC-P1, SC-B1, C123, C108] - Held after considering. Every
consideringresponse MUST be followed in the same reply by a signedheldwithin_reply_to= the request'smsg_idandanswer_by= the response'sresponse_by, because itsconsideration_outcomearrives at the inbox. [SC-B1, G5a, PA2, C138, C123] held.answer_by. It is the latest time the answer will be held: after aconsidering, itsresponse_by; for apeer_invitation, the invitation'sanswer_by. It MAY be omitted when the answer is already held. Silence after it is a decline. [SC-B1, SC-P1, C138, C123, C126]- Who polls for a principal. A notice addressed to a principal MUST be held for the principal's representative named in the card the notice is about (that representative polls with its own key and passes it home); it MAY also be held under the principal's own DID. [SC-M1, M1, C107]
11.3 The MCP binding (C179–C182)
Shōkai sits in front of MCP servers: the door seats a visitor (§3–§7), and the seat's tools are then called over MCP (Streamable HTTP), each call carrying a signed act. This binding is how. It is written against MCP revision 2026-07-28 [MCP] and uses only its Streamable HTTP transport, tools/call and the listing methods; what it uses from MCP is summarised, informatively, in the conformance folder.
- When it applies. A place that serves seated tools over MCP MUST do it by this binding, and MUST name the endpoint in its listing entry as a link with
rel: "mcp-server"whosehrefis on the same origin as itsentry(§3.1). A place without an MCP endpoint takes acts only at its entry (§7.2), and this section doesn't apply to it. [SC-S1, C179] - Tools are actions. An MCP tool's name MUST be the action's name in the listing, and a seat's
tool_allowlistnames those tools. [SC-S1, C179, C10] - The headers (C179). Every
tools/callfrom a seated visitor MUST carry the HTTP headerShokai-Act: base64url (no padding) of the UTF-8 JSON of aSigned<Act>(§2.2, §7.2) whosetoolis the call'sparams.name, whoseargumentsare the call'sparams.arguments(equal by digest, JCS; absent arguments are{}), and whoseseat_idis the visitor's seat. Every request from a seated visitor SHOULD also carryShokai-Seat: the seat id. Header names are case-insensitive. [SC-S1, C179, C48] - The gate (C179). Before the MCP server runs a
tools/call, the place MUST check the act exactly as it checks an act at its entry (§2.2 digest and signature, §7.2 seat, allowlist and limits, §5.1 the mandate's limits) and also that: the act's tool and arguments match the call; itssent_atis within ±300 seconds of the place's clock; and the act (from,msg_id) hasn't been used before (single use). A call that fails any check MUST NOT reach the tool. An act the gate lets through counts against the seat and the mandate as at the entry. Only an act the gate lets through is used up; a refused act counts nothing (§7.2, C194), but a visitor SHOULD retry with a new act (a newmsg_idandsent_at) rather than resend it, because at the entry an exact redelivery gets §2.2's redelivery answer and isn't judged again. [SC-S1, C179, C16, C175, C146, C194] - Open methods and the listing (C180).
server/discover, notifications and the listing methods (and, for a client on a revision before 2026-07-28,initializeandping; that revision has no handshake) (tools/list,resources/list,resources/templates/list,prompts/list) MUST be answered without a seat or an act. With aShokai-Seatheader naming a live seat,tools/listMUST list only that seat's tools. Without one, the place MAY list every tool it serves (an open front: looking is free, D20) or none; it MUST NOT refuse the listing. The seat header filters; it is never a credential. Any other method without a seat MAY be refused as below (CREDENTIAL_REQUIRED). [SC-L0, SC-S1, C180, C173, D20] - Refusals (C181). A refused call MUST be answered with HTTP
200and a JSON-RPC error whosecodeis-32040, whosemessagesays in plain words why and what to do, and whosedata.shokaiis{refused_by, decision: "deny", disposition, reason_code?, door, entry, act_decision?};dooris the listing URL andentrythe entry address. It MUST NOT be a bare HTTP error or an ordinary tool result. [SC-S1, SC-L0, C181, C16]refused_by: "door"when the seat, its allowlist or a limit refused the act:act_decisionis the place'sact_decisionpayload, exactly as §7.2 and C189 answer that act at the entry, anddispositionandreason_codeare copied from it. [C181, C189]refused_by: "gate"when the call failed the header checks: no act →not_now/CREDENTIAL_REQUIRED; an act that isn't base64url JSON of a signed act →REQUEST_INCOMPLETE; a tool or arguments that don't match the act →SEAT_SCOPE_EXCEEDED; a stale, future-dated or already used act →RITUAL_ORDER. Each isnot_now. [C181]- Informative.
refused_by: "representative"is for a visitor's own client that declined to send a call (its mandate ledger, §5.1); a place never sends it. A tool's own failure after the gate let the call through is the tool's result (isError, §7.2 C187), not a refusal.
- Amounts (C182). For a spending tool,
arguments.amount(Money) andarguments.payment_reftravel in the call's arguments, so the act's digest covers them, and the gate counts that amount (§7.2: C174, C177, C187). The MCP server MUST receive exactly the arguments the act signed. A spending tool called without anamountis refusedrefused_by: "door",REQUEST_INCOMPLETE. [SC-S1, C182, C174, C177] - Batches and sessions. Each call in a JSON-RPC batch MUST be checked on its own, and a refused call MUST NOT reach the tool; a place MAY refuse the whole batch when any call in it is refused. An MCP session (
Mcp-Session-Id, in revisions before 2026-07-28, which has none) is not a seat: every call still carries its act. [SC-S1, C179] - Informative. The MCP result is the act's result; the place needn't also send an
act_resultmessage. Signed objects a tool returns (a visit stamp, a receipt) are kept for the report home (§8.2, C178).
§12 Security and privacy considerations
The threat model covers assets, actors, trust boundaries and each attack class in STRIDE form, with the red-team results. This section states the security rules that cut across sections; the rest of it is a map.
12.1 Normative security requirements
- Keys stay out of conversation. A representative MUST NOT put a private key, or anything that derives one, in a message, a prompt, a report or a log. A place, and a meeting place under an extension, MUST NOT ask for or hold a representative's private key. [SC-R1, SC-M1]
- Prose is data. Counterpart text MUST NOT change a gate input or a decision (§6.4, §6.5), and owner-facing text quoted from a counterpart MUST be shown as a quote (§8.2). [SC-A1, SC-M1, C9, C88]
- Fail closed. A source a decision depends on that can't be read (a revocation list or log, an allowance status, the place's own durable state) MUST lead to
not_now, never to a grant (§2.6, §3.6, §4, §5.2). [SC-M1, SC-A1, C191, C192, C24] - Names are claims (C199). See §2.1: a look-alike name gets nothing from the name it resembles, and owner-facing text names counterparts by verified identifier. [SC-M1, C199]
- Owner signatures come from the signing page. A verifier MUST check owner signatures by the profile of Appendix A.1, including the exact origin and the
crossOriginandtopOriginrules, so a page embedded in another site can't collect owner signatures. [SC-L0, SC-A1, C195, C51]
12.2 Map of the threats (informative)
- Keys: short mandates and cards, rotation, card revocation (§2.6), standby revocations for a lost passkey.
- Signing pages: what an owner signs is shown on a page the owner trusts; SIGNING.md gives the rules for running one. While Shōkai is a draft, Kigenka opens sign.kigenka.com for guided signing sessions, with no uptime promise; the reference signing page lets anyone run their own.
- Tampering: §2.2. A bad signature never changes an encounter (§2.2); an MCP call reaches a tool only with a single-use signed act that matches it (§11.3).
- Replay: §2.4, kept across restarts (§3.6).
- Restarts: a place that forgets its ledgers refuses older mandates instead of counting them from zero (§3.6).
- Leakage: the Gatherings extension. Locality: reputation stays local (§9.3). Memory: live state is bounded and newcomers are refused at the bound, never guests (§3.4).
- Sybil introducers: "accept any introducer" never covers money or sign-ups (§4). Sign-up swarms: sign-ups are capped per owner and per introducer (§9.4); browsing stays open by design (D20), under a place's ordinary rate limits (§11.1).
- Fresh keys: a representative's conduct is its owner's conduct (§9.3). A fresh owner identity starts as a newcomer (§2.8); the floor is the uninvited allowance and introducers' accountability.
- Pressure and A/B probing at a door: §9.3, §10. The variant test is heuristic and local.
- Brands at a person's door: offers are data; hidden text is shown, never obeyed; a gift never costs data; the door is unadvertised and pairwise (§10).
- Fetches a visitor names: a door fetches revocation lists, vouch logs, allowance statuses and evidence from URLs in what a visitor sent, so a hostile URL can aim the door at its own network or stall it. Fetch only
httpsoutside a conformance run (Appendix B.1), never a loopback, private, link-local or metadata address, with a short timeout and a size cap; a fetch refused or cut off counts as unreachable and fails closed (§2.6, §12.1). The SDK door uses 2 seconds and 256 KiB. - Impersonation and look-alike names (C199). Anyone can mint a key and put any name, photo or "representing …" on a card or a listing: a famous person's name, a bank's, a customer's. Look-alikes include homoglyphs (a Cyrillic "о" for a Latin "o", "Harb0rlight" with a zero), typosquats ("Tlsa" for a well-known brand), bidi and zero-width tricks, and a look-alike
did:webdomain. What Shōkai guarantees: a counterpart that presents the same key and the same owner as before is the one you met before (§9.1); nobody can forge your card, mandate or signature without your keys; and adid:webprincipal controls its domain. What it does not guarantee: that a name, photo or "representing X" is true. Without a binding the receiver verifies (adid:webon the named party's own domain, or an introduction from someone it already trusts, §4), a card that claims to represent a famous person or a brand is a stranger's card, and is answered as one. Stronger bindings (a signed link from an account the person controls, credentials) are proposal P23. [SC-M1, C199] - Domain loss: a
did:webprincipal is as strong as its domain; a lapsed domain lets its next holder sign as that principal. Places that know such a principal should treat a key change as a new principal until it is explained.
12.3 Privacy considerations
- Look before you join. The agent front is readable without saying who you are (§3.1, D20), and a place MUST NOT require identification to read it. [SC-L0, C173, D20]
- Data asks are declared. A place declares what personal data each action will ask for (§3.1, D19); a representative takes an undeclared ask home. [SC-L0, C172, D19]
- Owner identity. What a place learns about an owner is the owner DID on the card and what the card says. With one identity everywhere, places can join their records about the same owner; per-place identities (§2.8) stop that by key, not by content. An owner link is shown to one place only and MUST NOT be passed on (§2.8). [SC-M1, C196, D22]
- What links per-place identities (informative). Separate owner identities (§2.8) stop places from joining an owner by key, but other fields of the card and the visit can still join them: the same
owner_binding.rp_id(§2.8 registers every per-place credential with the same relying party, so an owner on a rarely used signing page stands out), the sameowner_binding.platform_key, the host of arevocation_urlor vouch log (and the fact that it is fetched, below), the same introducer and vouch, the representative's platform, network address and timing, and the same display name, claims or locale. A representative that keeps per-place identities varies these where it can; a popular shared relying party gives the largest crowd to hide in. - Reports stay home. A visit report goes to the owner and nowhere else (§8.2); reputation and conduct records stay local to each place (§9.3).
- Informative. A
revocation_urlor a vouch log is fetched by every place a card visits, so its host can see when and where the card is shown; an owner who minds can deliver revocations instead and leaverevocation_urlout.
§13 Known gaps and deferred work (informative)
Open items that belong to an extension are listed in that extension; the numbers are kept stable so references resolve.
(Moved to the Gatherings extension: paraphrase quality.)
Push delivery and authentication of the inbox beyond a signed poll are not defined; the HTTP binding (§11.1, §11.2) and the MCP binding (§11.3) are the transports this text defines.
Can a lapsed
consideringbe revived? Is there a well-known location for Seeking? When is anadversarialregister reversible?per_operationis exercised by the reference (C151); whether a place should refuseper_operationoutright for consumer payments is not decided.Since rc4 every hand-written trace (G1–G5b, M1, L1 and the helper-direction traces H1–H2) carries real DIDs, digests and signatures made with public test keys, as do L0a, L0b, G6, G7, PA2, fixtures F1–F20 and the test vectors. H1–H2 are checked byte for byte but not replayed, because the helper direction is deferred.
Binding the possession proof to the card digest was suggested by testers; no attack needs it today, so it isn't required.
An upstream vouch chain (an introducer vouched for by another) isn't specified.
MinProofnames one target; an any-of / all-of quantifier over several targets isn't specified.VisitReportstates "who introduced whom" and "what was shared" in text only; structured fields for them are deferred.(Moved to the Gatherings extension: a speaker's own paraphrase.)
Allowance period budgets are enforced only by the representative (§5.2): a host cannot see spending elsewhere. A representative that ignores its ledger is caught only by its owner's records. An optional signed spend receipt per seat is a candidate for a later version.
Place categories (
store,bank,education,restaurant, …) are self-declared by the host in its greeting and listing; there is no registry or check yet.(Moved to the Revocation status extension: the 1-hour window after a revocation.)
(Moved to the Peer meetings extension: shared workspaces and files.)
Structuring evidence across seats (
payment_ref), the halving rule's edge cases, a default seat lifetime and a defaultvalid_untilfor outcomes were raised in review and are proposed, not decided (see the findings).Who decides for a real owner or a real role, and whether real gathering places accept invitation requests, are product choices; Appendix B defines only deterministic test stand-ins (B.4 here; B.2 in Peer meetings, B.3 in Gatherings).
A passkey signature proves key possession, not a real device (§2.1); an
accepted_rp_idsallowlist or attestation is proposed for a later version.Still proposed, not decided: introducer standing beyond the
"*"rule (a named introducer with no record at this place still carries weight), the rest of swarm resistance (attestation; place-to-place signals; afake_signupcode; protocol-level caps on browsing were decided against in D20: browsing stays open, under a place's own rate limits), the prompt-injection surface for owner-facing text outside doors, and supply-chain hygiene of reference code. Normative message freshness, seat brands from self-claimed roles, self-asserted kind and display name, a standardRATE_LIMITEDbeyond §11.1, decline-topic press scope and fetch scope are proposed too.Inbound door defaults (D19, from P15). Decided as the proposal recommended: reputation stays local (Q1); brands learn only the outcome code (Q2); paid introductions get no extra priority (Q4); no shared track records (Q5); hidden text shown on tap behind a visible marker (Q6); reason categories on
declinedand admission refusals, off fordeclined_reported(Q7). The sign-up caps' default values (1 per owner per 30 days, 5 per introducer per 7 days) are the reference's, not the specification's. The sincere-approach thresholds keep their defaults (48 hours, 3 wordings in 30 days, 3 signals in 90 days; D19).A door's card names its owner's principal DID, so brands that each meet the door can link it to the same owner; a pairwise door identity per brand is proposed. A principal that discards its identity entirely starts as a stranger (§10): the floor is the uninvited allowance and the introducer's accountability, not a ban.
Owner key continuity. Carrying an owner's relationships across a lost passkey (a recovery key named in advance, a social recovery) is proposal P18; today a lost passkey means a new owner identity (§2.6).
Signing-page trust. The signing profile (Appendix A.1) binds signatures to one origin per relying party; WebAuthn Related Origins and attested authenticators are not used. Which signing pages a place should trust beyond the owner's stated
rp_idis open (§13 item 17).Alignment. Asynchronous alignment between representatives and owners after a visit (project updates, a standing understanding) is proposal P19.
Interoperability evidence. The implementations so far are the reference, the SDK and a clean-room implementation written by a sandboxed agent and run by the editors. Two implementations from different organizations are a goal for v1.0, not a claim.
The MCP refusal code and handshake. MCP 2026-07-28 reserves JSON-RPC codes −32020 to −32099 for its own specification, and §11.3's
-32040is inside that range; it also removed theinitializehandshake that the reference conformance runner still uses to probe an MCP endpoint. Moving the code is a wire change and isn't made in v0.3.0 (a candidate for v0.4); see the MCP notes.P16 Part A limits. The pressure phrase lists and the variant test are English-first heuristics (D10) and local to each door; a campaign split across several principals isn't linked. Tribute representation (P16 Part B) is a deferred proposal. Of P17 (look before you join), only declared data asks are in the core, as a recommendation (§3.1, D19); the rest stays a proposal.
A seat's
brandfor an unverified visitor. The reference fills a seat's informativebrandwith the visitor's ownroleor display name andvendor_warranted: true, and sends it only to that visitor. Found in the round-4 refusal study, where a stranger's browse seat at an open shop carried the name he had put on his own card. Nothing branches on it (§7.1), and every owner-facing and staff-facing surface labels the name as a claim (C199). v0.4 should either name the visitor by its verified identifier there, or mark the label as a claim withvendor_warranted: false. Either changes bytes in the golden traces, so it isn't made in v0.3.0.
Helper direction (deferred). A host invites a product representative with extend_invitation and a proposed_seat. The representative answers with invitation_response, and a grant may narrow the seat but never widen it. Traces H1 and H2 describe it. Normative text is future work.
§14 References
Normative.
- [RFC2119] Bradner, S., "Key words for use in RFCs to Indicate Requirement Levels", BCP 14, RFC 2119, 1997.
- [RFC8174] Leiba, B., "Ambiguity of Uppercase vs Lowercase in RFC 2119 Key Words", BCP 14, RFC 8174, 2017.
- [RFC8785] Rundgren, A., Jordan, B., Erdtman, S., "JSON Canonicalization Scheme (JCS)", RFC 8785, 2020.
- [RFC3339] Klyne, G., Newman, C., "Date and Time on the Internet: Timestamps", RFC 3339, 2002.
- [RFC4648] Josefsson, S., "The Base16, Base32, and Base64 Data Encodings", RFC 4648, 2006 (base64url, §5).
- [RFC4647] Phillips, A., Davis, M., "Matching of Language Tags", BCP 47, RFC 4647, 2006.
- [RFC8032] Josefsson, S., Liusvaara, I., "Edwards-Curve Digital Signature Algorithm (EdDSA)", RFC 8032, 2017.
- [WebAuthn] W3C, "Web Authentication: An API for accessing Public Key Credentials, Level 3".
- [DID] W3C, "Decentralized Identifiers (DIDs) v1.0", 2022; the did:key, did:jwk and did:web method specifications.
- [MCP] Model Context Protocol specification, revision 2026-07-28 (Streamable HTTP transport), https://modelcontextprotocol.io/specification/2026-07-28. What §11.3 uses from it: conformance/mcp-2026-07-28-notes.md (informative).
Informative.
- [RFC9110] Fielding, R., et al., "HTTP Semantics", RFC 9110, 2022 (field names).
- [VC] W3C, "Verifiable Credentials Data Model v2.0".
- The threat model, the decisions and how Shōkai relates to other protocols.
Appendix A: Owner passkey signatures and test vectors (normative)
The mapping to W3C Verifiable Credentials 2.0 is the W3C VC mapping extension.
A.1 Owner passkey signatures
This envelope applies to every owner signature (cards, mandates, allowances, passkey consents, peer invitations), on the wire (and in VC form, W3C VC mapping extension).
- An owner signature (
alg: "ES256") MUST carrywebauthn={authenticator_data, client_data_json, credential_id, rp_id}, the first three base64url,rp_idthe relying-party id.clientDataJSON.typeMUST be"webauthn.get", andclientDataJSON.challengeMUST be base64url (no padding) of the 32 raw digest bytes of the signed payload, without the"sha-256:"prefix.valueis base64url of the DER ECDSA signature overauthenticatorData ‖ SHA-256(clientDataJSON). [SC-L0, C45, C51] - A verifier MUST recompute the challenge from the payload digest, check
clientDataJSON.type, the origin (https://<rp_id>) andrpIdHashagainst the signature's statedwebauthn.rp_id, which MUST equal the card'sowner_binding.rp_idwhen the card is known (§2.1), and that the user-present (UP) and user-verified (UV) flags are set, then verify the signature with the key resolved fromsigner. It MUST NOT rely onsignCount. [SC-L0, C51] - The signing profile (C195). The origin MUST be exactly
https://<rp_id>: no port, no path, no other subdomain.clientDataJSON.crossOriginMUST be absent orfalse, andclientDataJSON.topOriginMUST be absent, so the ceremony ran on the signing page itself and not in another site's frame. A verifier MUST refuse an assertion that breaks any of these. Attestation is not required (noneis fine), and the backup flags (BE, BS) are informative. [SC-L0, SC-A1, C195, C51, D24] - One tap for several items (C195, D23). An owner MAY sign 2 to 16 distinct items with one assertion. Then
webauthn.batchlists the items' payload digests in the order shown to the owner,webauthn.batch_indexnames this item's position, and the challenge is base64url (no padding) of the raw digest bytes of JCS({"batch": [...]}) instead of the item's own digest. Each item carries its own copy of the signature. A verifier MUST check thatbatch[batch_index]equals the item's digest, that the batch has 2 to 16 entries and no repeats, and that the challenge is the batch digest; otherwise it MUST refuse the signature. A signing page that uses this MUST show every item in the batch before the owner signs. [SC-L0, SC-A1, C195, C51, D23] - Informative. SIGNING.md gives the rules for a signing page: what it shows, how it builds the challenge, and how to run one yourself.
A.2 Test vectors (normative)
- An implementation MUST reproduce conformance/test-vectors.json: JCS and digest, an Ed25519 signature over the raw digest bytes and a rejected signature over the digest string, a possession proof, a passkey assertion and a rejected prefixed challenge, valid and invalid amounts, and RFC 4647 lookup cases. [SC-R1, C49, C51, C68, C69]
- The vectors also cover the passkey's
rp_idand origin with negatives for another relying party and a cleared UV flag, canonical and non-canonicaldid:jwk, valid and invalid timestamps, and budget-period windows; an implementation MUST reproduce these too. [SC-R1, SC-A1, C94, C115, C93, C99] - The vectors also carry the stated
rp_idin every passkey assertion, and negatives for anrpIdHashthat doesn't match the statedrp_idand for a missingrp_id; an implementation MUST reproduce these too (theallowance_statusvectors belong to the Revocation status extension). [SC-R1, C128] - The vectors also cover the inbound door (
inbound_door): offer-text normalisation cases, outcome ceilings under the test judge (Appendix B.6), the uninvited allowance window, a vouch with a signedintroducer_interest(and a negative that changes it), and a signedoffer_outcome; an implementation that keeps a door MUST reproduce these too. [SC-M1, C160, C158, C162, D15] - The vectors live at one path,
conformance/test-vectors.json, in the repository and in every bundle. Their keys are derived from public labels as the file'skey_derivationtext states (SHA-256 of the label as the Ed25519 seed or the P-256 scalar); they are for testing only.
Appendix B: Conformance test profile (normative for conformance runs)
This profile defines deterministic stand-ins (loopback addresses, a test decider, a test introducer, a test judge), so a conformance run needs nothing beyond this document. It is never a production behaviour. B.2 and B.3 are defined by the Peer meetings and Gatherings extensions.
- A place in a conformance run MUST declare it with the extension member
x-test-profile: "shokai-b/0.3"in its listing entry, and only then MAY apply B.1 and B.4 (and B.2 or B.3 under the Peer meetings or Gatherings extension); a visitor that followed such an entry is in a conformance run with that place. A place that uses only B.1 (loopback addresses) MAY declare it too. B.4 is optional and declared on its own (below). [SC-L0, C119, C124]
B.1 Loopback addresses
- In a conformance run, status URLs (
revocation_status), vouchrevocation_logURLs and evidence URLs MAY usehttp://127.0.0.1:<port>orhttp://localhost:<port>, and a verifier MUST accept them there as it wouldhttpsURLs. Outside a conformance run they MUST be refused. [SC-M1, SC-A1, C24, C98]
B.4 The test decider
- A place in a conformance run MAY declare a test decider for considerings routed to a role (
routed_to.kind: "role"), with the extension memberx-test-decider: truein its listing entry next tox-test-profile. It MUST then decide at once: if the request carries nomax_amount, it approves with aconsideration_outcomeheld for the visitor's inbox (after theheldof §11.2):approved= the requested actions,valid_until7 days after the decision,decided_by {kind: "role", role, human: false}, and no seat. Because aconsideringonly arises for actions outside the visitor's mandate (§6.7 step 3), the outcome isconditionalwithrequire_mandate {actions}= the approved actions and retrywith_credential [signed_mandate], as in G5b. Using it means a new encounter with a mandate covering those actions and theconsideration_ref(§6.8); otherwise it stays silent, which is a decline atresponse_by(D7). Its decisions are visible only through these signed results; how a real role decides is out of band. [SC-B1, G5a, C139, C64, D7]
B.5 The test introducer
- A place in a conformance run that serves money operations or account-creating actions MUST name the test introducer for them (§4): the Ed25519
did:keywhose seed is SHA-256 of the UTF-8 stringshokai-demo-seed:test-introducer-1, derived as the test vectors'key_derivationstates (Appendix A.2). A tester signs its vouches with that key and serves its log under B.1. The key is public test material: outside a conformance run a place MUST NOT name it. [SC-M1, C149, C150, C24]
B.6 The test judge
- A door in a conformance run MAY declare a test judge with the extension member
x-test-judge: truein its listing entry (only when its owner lists it). It MUST then pick, for every offer that clears the fit bar without findings, the ceiling itself for a gift and at mostkept_for_laterfor a presentation or invitation (§10). Findings, the fit bar and the ceiling are unchanged; only taste is fixed. [SC-M1, C158, D15] - The inbound-door examples (the butler and the friend) are in the project's proposal P15; they are informative and not part of this specification.
B.7 Probing in a conformance run
- Probing (§9.3) applies in a conformance run too, so a tester SHOULD use a fresh owner principal for each group of checks that expects rejections. A place in a conformance run MAY declare
x-test-probing: "off"in its listing entry, next tox-test-profile; it then MUST NOT count rejections toward probing during the run, and a tester MUST skip its probing checks and report them as skipped. Withoutx-test-profilethe member MUST be ignored and probing always counts. [SC-M1, C186, C124]
Appendix C: Lobby templates, placeholders and sincere-approach heuristics (informative)
Lobby templates and placeholders (from §3.3)
- Placeholders are
<…>strings that suggest no concrete value. - A placeholder may name a format and give an example marked "e.g." for an amount, a currency, a locale or a timestamp (for example
<decimal amount, e.g. 250.00>), and for a free-text field such as a card'sroleor a purpose statement. - A placeholder for an
rp_id, a DID or other id, a key or a digest gives no example value, so nothing is copied by mistake. - Typed templates.
templates.mandatesis best a map from each purpose the place serves to aPartial<Mandate>skeleton, with alimits.max_amountplaceholder for a purpose with spending actions. Templates are unsigned, so validators skip timestamp, amount and digest checks on them. - These are guidance (D18, D19); the reference keeps them, and check C131 still tests them.
Sincere-approach heuristics (from §10)
- Pressure phrase lists. Which words count as urgency, scarcity, familiarity or claimed consent is each door's choice. The reference's English-first lists are in the reference implementation's
inbound.ts(pressureIn()); they are examples, not a standard (D10, §13 item 21). - The variant test. Whether two offers are rewordings of one pitch is each door's test. The reference treats two offers from one principal as one campaign when they share a category and the token sets of their normalised text have a similarity of at least 0.5.
- The rules themselves (pressure backed by signed facts, campaigns counted once, three wordings in 30 days, declared context) are normative in §10.
Appendix D: Section numbers in earlier drafts (informative)
Earlier drafts (v0.2.x) numbered sections by topic. Reports and proposals written against them use the old numbers:
| Earlier | Now | Earlier | Now | |
|---|---|---|---|---|
| §2.1–§2.5 | §2.1–§2.5 | §4.10a | §6.7 | |
| §2.6 Mandate | §5.1 | §4.11 | §6.8 | |
| §2.6a Allowance | §5.2 | §4.12, §4.12a | §9.3, §9.4 | |
| §2.7 Verification | §2.6 | §4.13 | Gatherings extension | |
| §2.8 Design phase | §2.7 | §4.14 | §8.1 | |
| §2.9, §12 | Meaning notes extension | §4.15 | §13 (helper direction) | |
| §3 Introduction | §4 | §4.16 | §3.4 | |
| §4.0, §4.1, §4.1a | §3.1, §3.2, §3.3 | §4.17 | §10 | |
| §4.2 | §5.3 | §5, §6 | §7.1, §7.2 | |
| §4.3–§4.7 | §6.1–§6.5 | §7 | Teaching visits extension | |
| §4.8, §4.9 | §9.1, §9.2 | §8 | Peer meetings extension | |
| §4.10 | §6.6 | §9 | §8.2 | |
| §10, §11 | §12, §13 | §13, §13.1, §13.2 | §11, §11.1, §11.2 | |
| §13.3 | Gatherings / Peer meetings extensions | §13.4 | Revocation status extension | |
| Appendix A.1–A.3 | W3C VC mapping extension (VC.1–VC.3) | Appendix A.4, A.5 | A.1, A.2 |
Acknowledgments (informative)
Shōkai is an open protocol stewarded by Kigenka. Its manners are inspired by Japanese customs of introduction and hospitality (shōkai, meishi, omotenashi). It builds on MCP, WebAuthn passkeys, W3C DIDs, JCS (RFC 8785) and the IETF's RFC 2119 conventions.