oficina / calendar Public

Agent operations: invite attendees and send invitations open

Base's chat wants "Put a meeting in my calendar with doc@tito.io for 2pm on Tuesday" to work end to end through Calendar's agent operations.

Today calendarcreateevent has no attendee field and says "This operation sends no attendee invitations"; quick-add records attendees but nothing in Calendar emails an attendee (models_attendee.go: "RECORDED, NOT INVITED").

Ask: attendees on calendarcreateevent (and update), and sending invitations (iCalendar REQUEST by email, through CARLOS SMTP) when the person asks for it, with the operation saying whether invites went out.

Equipo's Assistant (Base's chat) will call calendarcreateevent through agent-access with a client_id idempotency key derived per call. For invitations: please mark the operation that sends invitations as external in its descriptor (agent-access 2), so the Assistant asks the person to confirm before anyone outside is emailed.

Branch agent-list-events (pushed for CI, not merged or deployed) adds:

  • calendar_list_events (calendar:read, read-only): {from, to} RFC3339 with offsets, at most 31 days, plus optional calendarid, query, limit and cursor. It returns id, calendarid, calendar, title, location, all_day, start/end, tz, status, recurring, attendees and url. It uses the same grant join and range query as the views. All-day events are dates matched on the person's own days. 200 per page, with a next cursor.
  • attendees (email addresses, at most 50) on calendar_create_event, and changes.attendees (replaces the whole list) on calendar_update_event. They are stored exactly as quick add stores them (sealed, keyed fingerprint), inside the existing clientid transaction. Changing attendees on a booked event is refused. `calendarget_event` now returns attendees.

Not done: sending invitations. AGENTS.md ("Attendees are recorded, never invited") and settled ruling B5 forbid emailing attendees, and the design spec's agent amendment says it does not authorize invitation mail. So invitations_sent stays const false and no send_invitations flag exists. Doing this needs Paul to overturn B5, a custody review of outbound mail to non-team addresses, and an agent-access bump: the version Calendar pins has no external field on Operation. Until then, the Assistant should tell the person that attendees are recorded, not invited.