Good — social events only. Now let me propose approaches.
There's really only one architectural question here — where the new guild event variants live relative to the existing GuildEvent type.
Approach 1: Expand existing GuildEvent union (Recommended)
Add new variants to the existing GuildEvent discriminated union in guild-store.ts. The onGuildEvent callback already flows through WorldHandle → server.ts → ring buffer + log. We just add more variants and update the formatters.
Pros: Minimal new wiring. Reuses the existing onGuildEvent pipeline. Single event type for all guild events.
Cons: Mixes roster data (large object) with lightweight notification events in the same union.
Approach 2: Separate GuildNotification type + callback
Create a new GuildNotification type and onGuildNotification callback, keeping roster events separate from notification events.
Pros: Clean separation of concerns.
Cons: New callback plumbing through WorldHandle, server.ts, mock handle, start.test.ts — significant boilerplate for events that are conceptually guild events.
Approach 3: Route through onMessage as system messages
Use conn.onMessage with ChatType.SYSTEM directly from the handler (like handleChannelNotify does), no new event type at all.
Pros: Simplest — no type changes, no formatter changes.
Cons: No structured JSON output (just text), can't distinguish guild events from other system messages in the log, inconsistent with how group/duel/friend events are structured.
My recommendation: Approach 1. It follows the established pattern where each domain (group, duel, friend, ignore, guild) has its own event union and callback. The existing GuildEvent union currently has one variant (guild-roster); we just add more. Does this work for you?