For builders implementing Shōkai. A visiting agent doesn't need this; follow the place's guide and the door's replies.
Shōkai extension: Peer meetings
Status: stable (in the reference with its own tests; within 0.5, it changes only for fixes). Extension peer-meetings, version 0.5.0, tied to the core SPEC.md v0.5.0 (wire shokai/0.5, with shokai/0.3 still accepted during the transition window, SPEC §11.1). Applies to v0.5.0 (unchanged since v0.4.0). Normative for implementations that claim this extension. Section references without a document name are to the core.
© 2026 Yu Sung Yeh. Licensed under the Apache License 2.0. Patent commitment (draft): PATENTS.md. Names and logo: TRADEMARKS.md.
Conformance level: Peer meetings. An implementation conforms to this extension when it conforms to the core and meets every requirement below for the roles it plays (inviting owner's representative, invited representative, pair place). An implementation that doesn't support it never uses the messages, members or actions below, and the core is complete without it. A representative shows it supports peer meetings by accepting a peer_invitation; a pair place has place.kind: "pair".
Requires: the core. Tests: see conformance/homes.json (home peer-meetings).
Peer meetings [SC-P1]
A peer meeting is one shared encounter in a small private place for two, seeded by an owner-to-owner invitation (the "meeting key", D11).
- A peer meeting MUST be seeded by a
PeerInvitationsigned by the inviting owner's passkey and accepted by the invited owner's passkeyOwnerConsent{action: "accept_invitation"}over the invitation's digest. Without both, a representative MUST answer a meeting requestdeny/not_nowwith retrywith_credential [owner_consent]. [SC-P1, PA2, C87, D11] - The invitation creates a pair place (
place.kind: "pair") whose house rules default to private: nothing leaves except to the two owners. The meeting MUST be one shared encounter whoseencounter_idis the place id. [SC-P1, PA2, C87, D11] - Both representatives MUST introduce themselves (
introductionwithinvitation_ref); the host side MUST introduce itself without being asked. The valid invitation counts as the introduction at full weight. Each request in the meeting MUST carrypeer_invitation. [SC-P1, PA2, C87, C108, D11] - Answer by. A
PeerInvitationMUST carryanswer_by. An invited representative MUST NOT take home an invitation past itsanswer_by, and the inviting side MUST ignore an answer issued afteranswer_by(plus the ±300 s skew): silence means decline (D7). [SC-P1, PA2, C126, D7, D11] - Invitation transport. The inviting side's representative MUST deliver the signed invitation to the invited representative in a
peer_invitationmessage; the invited representative takes it home (no live prompt) and returns the owner's passkeyaccept_invitation(or decline) in apeer_invitation_answermessage. Both sides then hold the meeting key. Over HTTP these travel through the inbox (§11). [SC-P1, PA2, C108, D11] - Pair red team. An invitation MUST be single use (spent at the meeting's farewell), MUST be presented only by the representative it names, and MUST stop working once the acceptance is revoked (
consent_revocation). A missing, spent, replayed, impersonated or revoked invitation MUST getdeny/not_nowwith readiness itemowner_consentand retrywith_credential [owner_consent]. [SC-P1, C109, C87] - In a peer meeting, both sides MUST run the full ritual and evaluate each other's requests with their own policies. [SC-P1, PA1, PA2, C5, C34]
- In a pair place, either side MAY send further
invitation_requests in the shared encounter after a response; each MUST be evaluated afresh. [SC-P1, PA2, C108, C34] - Message types in a pair encounter. Both sides play both roles, so each side MAY send every ritual and seat message in the shared encounter (
invitation_request,invitation_response,act,act_result,act_decision,consideration_outcome,farewell); a side MUST accept the answers to its own requests and MUST NOT treat them as out of order. [SC-P1, PA2, C108] - A spent invitation. A visit that reopens the closed pair encounter with a spent invitation MUST get the
owner_consentanswer above, notRITUAL_ORDER. [SC-P1, C109] - A commitment request beyond either side's standing seat MUST go
considering, routed to that side's principal, and is approved only later, by a passkeyapprove_commitmentcarried in the outcome'sowner_consents(§6.8, §8.1). A representative MUST NOT grant a commitment itself. [SC-P1, PA1, PA2, C34, C18, C75, C110] - Shared workspaces and files between peers are out of scope.
- Consent ids are a core rule (§8.1).
Pair places in the ritual
- Encounter binding in a pair place. In a pair place the encounter's parties are the place and the first greeter (the two invited representatives meet in it); a greeter that the presented invitation doesn't name owns the encounter but fails at its request. A ritual message in that encounter from anyone else MUST get a signed
denyaddressed to its sender:not_now/CREDENTIAL_REQUIREDwith readinessowner_consentand retrywith_credential [owner_consent](instead of the core'sRITUAL_ORDER). [SC-R1, SC-P1, C142, C109] - After
consideringin a pair place, the farewell outcome of both sides in that visit MUST betaken_inside, as everywhere (core §3.2). [PA2, C134] - The invitation is the introduction. In a pair place the invitation is the introduction at full weight; a vouch presented there is still bound by
vouch_digestas core §5.3 says. [SC-S1, PA2, C129]
Owner consent
- Passkey action.
accept_invitationMUST useassurance: "passkey". [SC-P1, C87, D7, D11]
Over HTTP
- A
peer_invitationand apeer_invitation_answertravel as ordinary signed messages: posted to the recipient's entry when the recipient runs one, otherwise held for its inbox (core §11.2); apeer_invitationMAY carryreply_to(core §11.1), and the place'sheldfor it carries the invitation'sanswer_by(core §11.2). [SC-P1, C108, C123, C126]
The test owner (Appendix B.2)
- A pair place in a conformance run MAY be run with a test owner: a simulated owner whose passkey signs by fixed rules, with no human. The test owner MUST answer a valid
peer_invitationat once, holding a signedpeer_invitation_answerfor the inviting representative's inbox (and sendingheld): it approves (accept_invitation, assurancepasskey) if and only if every purpose iscollaboration,invitationorintroduction, the invitation is valid now, it lasts at most 30 days (expires_at - valid_from), andanswer_byhasn't passed; otherwise it declines. An invitation already pastanswer_bygets nothing at all (this extension wins: noheld, no answer). [SC-P1, PA2, C124, C125, C126] - When the pair place's representative answers a commitment
consideringrouted to the test owner, the test owner MUST approve at once if and only if the request carries nomax_amount, with a passkeyapprove_commitmentover that considering response, carried in aconsideration_outcomeheld for the visiting representative's inbox; otherwise (a commitment request carryingmax_amount) it stays silent, which is a decline atresponse_by(D7). [SC-P1, PA2, C124, C110, D7] - The test owner's DID and passkey are the place's owner as named on its card; its decisions are visible only through the signed results above. How a real owner decides is out of band. [SC-P1, C124]
Open questions (informative)
- Peers' shared workspaces and files are out of scope (D11).