Scope and default
- Applies to: events on Tuturuuu calendars (
provider = 'tuturuuu') in the Calendar app event dialog, and to every app that ships the shared calendar UI. - Provider events are excluded. Google and Microsoft events keep their
provider attendees, so the provider stays the only sender. The guest routes
return
409 provider_eventfor them. - Default: an event has no guests and sends no email. Adding a guest sends
one invitation unless the request sets
notify: false.
Guests
- Organizers add guests by workspace member, workspace contact or any email address. Member and contact emails are resolved on the server; a client cannot attach an arbitrary address to a member or contact.
- Each event has at most 100 guests (database trigger), and a request adds at most 50.
- The organizer is a guest row with
is_organizerand RSVPaccepted. - RSVP states are
pending,accepted,tentativeanddeclined. - Guest permissions default to: modify event off, invite others on,
see guest list on. “See guest list” is enforced in invitation email and
the
.icsattendee list. The modify and invite settings are stored and carried to clients; guests outside the workspace have no edit surface.
Invitation email
- Every message is built on the server from a snapshot of the stored event, taken when the send is queued. The client never supplies subject, body or recipients beyond the guest list.
- Mail goes through
@tuturuuu/email-servicewith the platform sender (root-workspace credentials) andReply-Toset to the organizer, so that service’s rate limits, blacklist and email audit apply. The manager who sends is the organizer andReply-Toof that message, so no manager can send under another member’s name or address. - Each email carries an RFC 5545 attachment:
METHOD:REQUESTfor invitations and updates,METHOD:CANCELfor cancellations, a stableUID, and aSEQUENCEthat increases on every update or cancellation. - “Email guests” sends an update to guests who were already invited. Deleting an event with invited guests sends a cancellation first; removing an invited guest sends that guest a cancellation. An event is cancelled once; repeat cancellation requests send nothing.
RSVP and unsubscribe links
- Links carry a 256-bit random token; only its SHA-256 is stored. Each token
has one purpose (
rsvporunsubscribe) and one recipient. Unsubscribe tokens store their own recipient, workspace and sender, so they keep working after the guest or the event is deleted; every message, including a late cancellation, carries one. - RSVP links expire a week after the event (60 days at most) and are revoked when the event is cancelled. Unsubscribe links last a year.
GETonly shows a confirmation page; the answer is written onPOST. Mail scanners that prefetch links therefore cannot answer an invitation.- Unsubscribe offers “block this organizer” and “stop all Tuturuuu calendar
invitations”. Messages include
List-UnsubscribeandList-Unsubscribe-Post(RFC 8058). - A
POSTwith a well-formed token is rate limited per token, so one-click unsubscribes from shared mailbox-provider addresses are never starved; other requests are rate limited per client IP.
Abuse limits
Counts come from the
calendar_invite_deliveries outbox, so they survive
restarts. A blocked send returns 429 and writes an audit row. Suppressed
recipients are recorded as suppressed and never mailed.
Delivery and stop fence
- Deliveries are queued with an idempotency key of event, recipient, sequence and kind; re-sending the same version is a no-op.
- The Calendar Worker request that queues a send claims and sends a bounded
batch with a two-minute lease. Retries back off exponentially for at most
five attempts. An ambiguous provider outcome, or a send whose lease expired,
is settled as
unknownand never resent. - Quotas are checked and deliveries inserted in one transaction
(
calendar_invite_enqueue) under locks on the requester and workspace. - Suppressions are checked when a delivery is queued and again right before it is sent.
- A row in
calendar_invite_send_fences(per workspace, or global with a nullws_id) stops both new sends and claims of queued deliveries. - Queued rows left by an interrupted request are claimed by the next send. A Cron Control drain for idle periods is not part of this release.
Tuturuuu Meet and Tasks
- “Add Tuturuuu Meet” creates a workspace meeting (or links an existing one of
the same workspace) and stores its join URL as the event’s conferencing
link. Invitations show a join button and include the URL in
LOCATION,DESCRIPTIONandCONFERENCE. - Events without other scheduling metadata also get the
tuturuuu_meetingmarker that Meet uses to show the scheduled event on the meeting page. - The event dialog shows the task linked through
task_idortask_calendar_events, with a link to it in Tasks. - Turning the toggle off removes the link; the meeting room is kept.
Data and access
Guest, settings, token, suppression, outbox, fence and audit tables, and the quota, claim and enqueue functions, live in theprivate schema and are
reachable only by the service role. RLS is enabled with no policies. The
Calendar API authorises manage_calendar for the event’s workspace before
using the service role, and guests act only through their link tokens. For
encrypted events, a delivery’s event snapshot is cleared once the delivery
settles (including suppressed, throttled and expired-lease rows), and a linked
meeting gets a generic name.
Regression coverage
apps/database/supabase/tests/calendar-event-guests.sql: grants, RLS, workspace match, guest cap, quotas, idempotency, fences, claims, lease settlement and the atomic enqueue.apps/calendar/src/lib/calendar/invitations/*.test.ts:.icsformat and injection, email escaping and guest-list privacy, tokens, queue classification, retries and ambiguous outcomes.