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: Gatherings
Status: stable (in the reference with its own tests; within 0.5, it changes only for fixes). Extension gatherings, 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: Gatherings. An implementation conforms to this extension when it conforms to the core and meets every requirement below for the roles it plays (place, attendee, owner's representative). An implementation that doesn't support it never uses the messages, members or actions below, and the core is complete without it. A place shows it supports gatherings by delivering a signed Gathering in a gathering_invitation and serving gathering.attend.
Requires: the core. Tests: see conformance/homes.json (home gatherings).
Gatherings: groups are places [GA1, SC-GA1]
- A gathering MUST be a
Gatheringsigned by the place, listing invitees and house rules. Attendees MUST verify it and their own presence on the list. The place MUST verify each attendee's card against the list. [GA1, SC-GA1, C35] - Purpose and invitation. Attending a gathering uses the registered, non-spending purpose
gathering. The place delivers the signedGatheringto each invitee in agathering_invitationmessage; a representative MUST keep it only if the place's signature verifies and it is named as an invitee, and MUST drop it otherwise. [GA1, SC-GA1, C111, C35] - Every
GatheringMessageandPrivacyDeclineMUST be signed by its sender and verified by every receiver. [GA1, SC-GA1, C40] - Removed from the guest list. When a re-signed
Gatheringno longer names a seated attendee, the place MUST unseat it: it refuses that attendee's further items and stops holding the room's items for it. [GA1, SC-GA1, C111] - Entry MUST require each attendee's owner to sign an
OwnerConsent(accept_house_rules,decision: "approve", assurancepasskey) over the gathering's digest. [GA1, SC-GA1, C47, D7, D8] - Entry message. Entry MUST run the ritual with action
gathering.attend, and theinvitation_requestMUST carry the consent inowner_consents. Without a valid consent the answer MUST bedeny/not_nowwith retrywith_credential [owner_consent]. [GA1, SC-GA1, C47, C62, D8] - An answerer MUST decide personal questions by its principal's
DisclosurePolicy(per topic:open,friends,private). Closeness MUST come only from the earned graph (Closeness, below). [GA1, SC-GA1, C33, C36] - Topic codes (D10). A topic MUST be a registered code (
work,craft,wellbeing,health,family,relationships,finances,location,schedule,beliefs,identity) or anx-code listed in the gathering'shouse_rules.topics. A missing or unknown topic MUST get the most restrictive tier (private), and asking one after a decline MUST count as a press against every topic already declined to that asker. [GA1, SC-GA1, C67, D10] - A
PrivacyDeclineMUST carrypenalized: false, and MUST NOT be treated as misconduct by anyone. [GA1, SC-GA1, C36] - Pressing (D5). Asking the same topic again after a decline is pressing. [GA1, SC-GA1, C46, C67, D5, D10]
house_rules.pressingMUST state the thresholds (default{light_flags: 2, notice_at: 3}). House rules MAY be stricter (lower numbers), never laxer; a laxer value MUST be ignored in favor of the defaults. The owner sees the thresholds in theaccept_house_rulessummary. [GA1, SC-GA1, C37, C46, C47, C80, D5]- A question counts as the same topic if it carries the same topic code, or if the answerer declines it by referring to the earlier decline. Rewording MUST NOT reset the count. [SC-GA1, C46, C67, C80, D5, D10]
- Presses MUST be counted per asker, per place and per topic code, for 30 days, across that place's gatherings. Another place MUST NOT see them. [SC-GA1, C22, C46, C80, D5]
- What counts. The asker is the asking representative's principal (from its card), so changing representatives doesn't reset the count. The place counts a press when it holds, from that asker, a room
questionon topic T after it has held aprivacy_declineof an earlier question by that asker on T (an unknown code counts against every topic declined to that asker; a decline that refers to the earlier decline counts as T). The count is the place's own, from room items alone; a decline'spressfield never changes it. [SC-GA1, C46, C67, C112, D5] - Presses up to
light_flagsMUST produce only a light flag: local to the place, with no notice and no effect on introducers. [GA1, SC-GA1, C37, C46, D5] - The press at
notice_atMUST produce a minormanipulationMisconductNoticefrom the place to the presser's principal only, not to introducers. It is issued once per asker, place and topic per 30-day window (later presses in the window are recorded locally with no further notice), and a fresh asker starts at zero whatever others did. [SC-GA1, C46, C80, D5] - A
PrivacyDeclinethat answers a press MUST say so inpress: {count, light_flags, notice_at}, so the presser knows where it stands before a notice. The decliner fills it in (the decline is signed by the decliner), from its own count of presses by that asker and the house-rule thresholds. [SC-GA1, C112, C81] - A representative that received a
PrivacyDeclineor a light flag MUST include it in its ownVisitReport(privacy_declines), so its owner can correct course before a notice. [SC-GA1, C30, C37, C81, D5]
- House rules default to Chatham House. Content MAY leave the gathering, but attribution MUST NOT, unless the speaker consented (
attributable_with_consentwithattribution_consent_for). [GA1, SC-GA1, C39] attribution_consent_fornames the principals who may learn the speaker's identity. It MUST NOT be read as permission for onward attribution by them. [GA1, SC-GA1, C39]- Anything tagged
privateMUST NOT leave the gathering, including in reports and stories. [GA1, SC-GA1, C39] - Quoting (D4). What leaves MUST be paraphrased by default, with affiliation hints that could identify a speaker removed. Verbatim quotes MUST require the speaker's
verbatim_consent. [GA1, SC-GA1, C44, D4] - A takeaway paraphrase MUST strip organization names, job titles and other affiliation hints found in the item or the speaker's card. [GA1, SC-GA1, C44, C63, D4]
- Enforcement (D8). The protocol makes leaks attributable and costly (signed, tagged items, signed entry consent,
post_seat_leakage). Implementations MUST NOT claim that leaks are prevented. [SC-GA1, C47, D8] - A
VisitReportMAY carryoffered_stories: teasers that reveal nothing. Story content MUST be told only after the owner'sOwnerConsent(hear_story, either assurance) for that one story. [GA1, SC-GA1, C38, C79, D7] - A told story (
ToldStory) MUST mark each passageparaphrasedorverbatim_with_consent, and MUST remind the owner of the house rules they accepted (Chatham House; private never leaves). [GA1, SC-GA1, C39, C44, C79, D4, D7] - Negative check (from the core Conventions). The round-1 red-team attack of affiliation hints in takeaways MUST stay refused in every revision. [SC-M1, C117, C63]
Closeness: the relationship graph [SC-P1]
- A representative's knowledge of who a counterpart is to its principal MUST come from a local graph of earned edges (
friend,introduced,vouched_for,visited,collaborated,taught), each with history and standing. [SC-P1, C33] - Edges MUST NOT be imported from social networks or follower lists. [SC-P1, SC-GA1, C33]
- A
friendedge MUST be attested by both principals' signatures, each over digest(JCS({edge_id, from, to, kind, since})). Standing and history stay local and unsigned. [SC-P1, C33]
Owner consent for gatherings
- Passkey actions.
accept_house_rulesandattest_relationshipMUST useassurance: "passkey". [SC-GA1, SC-P1, C45, C47, C78, D7] - Chat replies.
hear_storyMAY usechat_reply. - The
accept_house_rulessummary MUST state what may leave and how (paraphrase, no attribution), that private items never leave, the pressing thresholds, that enforcement is accountability, not prevention, and that a leak by the owner's own representative ispost_seat_leakage(severe) against them and their introducers. [SC-GA1, C47, C79, D7, D8]
Reports
- A representative MUST report home after every gathering as after every encounter (core §8.2), and its report MUST list the privacy declines and light flags it received (
privacy_declines). [SC-GA1, C81, C30, D5]
Over HTTP
- A
gathering_invitationtravels as an ordinary signed message: posted to the recipient's entry when the recipient runs one, otherwise held for its inbox (core §11.2). [SC-GA1, C108, C111] - Guest list and feed. The guest list is the signed
Gatheringdelivered in agathering_invitation; when it changes, the place MUST deliver the re-signedGatheringthe same way. Gathering items (gathering_message,privacy_decline) addressed to the room MUST be held for the inbox of every seated attendee other than the sender. [SC-GA1, GA1, C143] [SC-GA1, GA1, C111, C107] - Room items. An attendee addressing the room MUST set both
encounter_idandtoto the gathering id; the place MUST hold the original signed items (it can't rewrite a signed header). [SC-GA1, GA1, C137, C111]
The test gathering (Appendix B.3)
- A gathering place in a conformance run MAY serve the action
gathering.request_invitation(purposeinvitation). It MUST grant it to a verified visiting representative whose card and mandate verify, re-sign itsGatheringwith that visiting representative's representative added toinvitees, and hold agathering_invitationfor the visiting representative's inbox. The visiting representative then enters as in this extension. [SC-GA1, GA1, C127, C111] - Pressing in a run. A test gathering MUST count presses exactly as this extension says, from room items alone, and MUST hold the notice for the presser's representative (and MAY hold it under the principal's DID) while handling the room question that is the press at
notice_at, so it is in the next poll. Counts are never shared between askers or kept place- or gathering-wide. [SC-GA1, GA1, C46, C37] - Trigger and gate. The invitation follows the
grantof aninvitation_requestnaminggathering.request_invitation; noactis needed. The normal gate still applies: a visiting representative that fails it (for example a malformed possession proof) is not granted and gets no invitation. [SC-GA1, GA1, C140, C127, C90]
Open questions (informative)
- Paraphrase quality (D4) can't be checked mechanically. Conformance checks only for the absence of verbatim text, organization names, titles and listed hints.
- A speaker can't yet supply their own paraphrase or list identifying terms for a takeaway; the host-side stripping rule (this extension) applies meanwhile.