Calendar block and a Calendly-like door into illogical (idea) #119

Open
opened 2026-10-03 21:51:30 +00:00 by jhgaylor · 0 comments
Owner

An idea, not planned yet: a calendar block tied to a calendar service, and a Calendly-like door that lets people outside book their way into the system. Most of the door reuses pieces we already have: M19 invites and timed grants, M20 sandboxes, M21 push, presence, and the "agents draft, people send" rule from the forge track. What's new is a calendar adapter and the booking page.

The worktree for it is .claude/worktrees/calendar (branch calendar-block, from main at 3fe6c9a).

1. The calendar block (looking inward)

A BlockType::Calendar with the provider in its config, like the forge block, following the same block contract:

  • State: today's events, the next one, and free/busy. capture --text gives agents something like "Jake is in a meeting until 15:00, free 15:00–17:30".
  • Attention: about 5 minutes before an event, an input card with the join link, on the rail and the phone.
  • Using the calendar to decide when to interrupt you: while you're in a meeting, needs-you pushes are held on the rail and sent as one batch when it ends. Unlike the other blocks, this one also changes how attention reaches you.
  • Methods: freebusy {range}, hold {start, end, title}, refresh. When an agent wants to put time on the calendar, it follows the forge rule "agents draft, people send": the call becomes an ask holding a draft, and the owner sends it.
  • Ways in: illogical calendar, Open calendar… in the picker, MCP open_calendar / read_calendar, and swarm kind calendar.

2. The door (looking outward, the Calendly part)

  • Where it lives: control, because it's the only part strangers can reach. For example control.illogical.widgets.wtf/@jake/pair.
  • Booking types: for example "Pair with me, 30 min", "Office hours" and "Demo". Each has durations, buffers, daily limits and questions for the invitee.
  • What control sees (the E2E promise):
    • control sees only free/busy and the slot that was booked;
    • the invitee's answers are sealed to the owner's device keys, which control already distributes, so control never reads them;
    • names and emails are metadata, the same rule as session names.
  • What a booking creates: a calendar event, plus a booking block on the swarm showing who, when and their sealed answers.
  • The room, at T−5 minutes:
    • the daemon sets up a tab on a sandbox VM (M20). This is M14's rule that guests type in VMs, so their shell never runs on the owner's machine;
    • the invitee gets an M19 grant that opens at the start and is revoked at the end plus a grace period;
    • they sign in with GitHub, a passkey or a magic link (M19 / S15 identity).
  • Arrival: "Alice is in the lobby" goes to the rail and the phone (M21), and presence shows them joining.
  • The end: M19's revoke cuts them off within a second, and the VM goes away with the tab (M3c / M20 lifecycle). Sandbox minutes are metered as usual (M22).

A twist: rooms prepared in advance, and booking the swarm

  • A prepared room: a booking type can set the room up before anyone joins. For "Debug X in repo Y", the box clones the repo, and an agent block starts briefed with the invitee's answers.
  • "Book my swarm": the slot runs an agent instead of you, and you review it afterwards (forge drafts, diff blocks). Calendly can't do this, and it ties into the multi-machine and teams story (compare Herdr Cloud in the GTM study).

Decisions needed (for Jake)

  1. Which calendar first:
    • Google: needs OAuth through control's Fly app, like the forge GitHub App;
    • CalDAV (Fastmail, iCloud): the daemon talks to it directly, so no calendar tokens go to control;
    • a read-only secret ICS URL for v0: gives the inward block cheaply, but can't create bookings.
  2. What a booking opens: a shared tab on a VM (recommended), a read-only live view (a read-only link), or just a calendar event with a link.
  3. "Book my swarm" (agent slots): in scope now, or later.
  4. Who it's for: only the owner, or team members on control too. Teams would mean round-robin and collective booking types per team.

Questions for a spike, if this goes ahead

Before picking an S number, check Forgejo and the other worktrees; numbers have collided before.

  • Read path and cost per provider: Google Calendar API free/busy and events (syncToken, push channels); CalDAV REPORT with sync-collection; ICS polling. Measure the latency and rate limits for a poll that finds nothing changed.
  • Free/busy without contents: can control get free/busy alone (Google's freeBusy, CalDAV free-busy-query), so that event titles never leave the daemon? If not, does the daemon push free/busy up to control?
  • Writing the booking: who creates the event. Either control with a scoped token, or the daemon when it hears about the booking, which needs the daemon online; otherwise control holds the booking until the daemon comes back.
  • Sealed answers: do the invitee's answers, sealed in the browser to the owner's device keys, decrypt on the swarm's booking block?
  • Timed grants: M19 grants don't have a start time today. What it takes to give a grant a start, and to warm the VM at T−5.
  • Abuse: rate limits per booking type, a captcha or email check before a VM is spent on someone, and quota against M20's --sandbox-quota.

Done when (sketch):

  • a stranger with only a browser books "Pair with me" on the owner's page;
  • the event appears on the owner's calendar, and the booking is on the swarm;
  • at the slot, the stranger signs in and lands in a shared VM tab, and the owner's phone says they're in the lobby;
  • at the end plus the grace period, they're cut off and the VM is deleted;
  • control's logs show the slot and the email, never the answers.
An idea, not planned yet: a **calendar block** tied to a calendar service, and a **Calendly-like door** that lets people outside book their way into the system. Most of the door reuses pieces we already have: M19 invites and timed grants, M20 sandboxes, M21 push, presence, and the "agents draft, people send" rule from the forge track. What's new is a calendar adapter and the booking page. The worktree for it is `.claude/worktrees/calendar` (branch `calendar-block`, from `main` at `3fe6c9a`). ## 1. The calendar block (looking inward) A `BlockType::Calendar` with the provider in its config, like the forge block, following the same block contract: - **State:** today's events, the next one, and free/busy. `capture --text` gives agents something like "Jake is in a meeting until 15:00, free 15:00–17:30". - **Attention:** about 5 minutes before an event, an `input` card with the join link, on the rail and the phone. - **Using the calendar to decide when to interrupt you:** while you're in a meeting, needs-you pushes are held on the rail and sent as one batch when it ends. Unlike the other blocks, this one also changes how attention reaches you. - **Methods:** `freebusy {range}`, `hold {start, end, title}`, `refresh`. When an agent wants to put time on the calendar, it follows the forge rule "agents draft, people send": the call becomes an ask holding a draft, and the owner sends it. - **Ways in:** `illogical calendar`, *Open calendar…* in the picker, MCP `open_calendar` / `read_calendar`, and swarm kind `calendar`. ## 2. The door (looking outward, the Calendly part) - **Where it lives:** control, because it's the only part strangers can reach. For example `control.illogical.widgets.wtf/@jake/pair`. - **Booking types:** for example "Pair with me, 30 min", "Office hours" and "Demo". Each has durations, buffers, daily limits and questions for the invitee. - **What control sees** (the E2E promise): - control sees only free/busy and the slot that was booked; - the invitee's answers are sealed to the owner's device keys, which control already distributes, so control never reads them; - names and emails are metadata, the same rule as session names. - **What a booking creates:** a calendar event, plus a `booking` block on the swarm showing who, when and their sealed answers. - **The room, at T−5 minutes:** - the daemon sets up a tab on a sandbox VM (M20). This is M14's rule that guests type in VMs, so their shell never runs on the owner's machine; - the invitee gets an M19 grant that opens at the start and is revoked at the end plus a grace period; - they sign in with GitHub, a passkey or a magic link (M19 / S15 identity). - **Arrival:** "Alice is in the lobby" goes to the rail and the phone (M21), and presence shows them joining. - **The end:** M19's revoke cuts them off within a second, and the VM goes away with the tab (M3c / M20 lifecycle). Sandbox minutes are metered as usual (M22). ### A twist: rooms prepared in advance, and booking the swarm - **A prepared room:** a booking type can set the room up before anyone joins. For "Debug X in repo Y", the box clones the repo, and an agent block starts briefed with the invitee's answers. - **"Book my swarm":** the slot runs an agent instead of you, and you review it afterwards (forge drafts, diff blocks). Calendly can't do this, and it ties into the multi-machine and teams story (compare Herdr Cloud in the GTM study). ## Decisions needed (for Jake) 1. **Which calendar first:** - **Google:** needs OAuth through control's Fly app, like the forge GitHub App; - **CalDAV** (Fastmail, iCloud): the daemon talks to it directly, so no calendar tokens go to control; - **a read-only secret ICS URL for v0:** gives the inward block cheaply, but can't create bookings. 2. **What a booking opens:** a shared tab on a VM (recommended), a read-only live view (a read-only link), or just a calendar event with a link. 3. **"Book my swarm" (agent slots):** in scope now, or later. 4. **Who it's for:** only the owner, or team members on control too. Teams would mean round-robin and collective booking types per team. ## Questions for a spike, if this goes ahead Before picking an S number, check Forgejo and the other worktrees; numbers have collided before. - **Read path and cost per provider:** Google Calendar API free/busy and events (`syncToken`, push channels); CalDAV `REPORT` with `sync-collection`; ICS polling. Measure the latency and rate limits for a poll that finds nothing changed. - **Free/busy without contents:** can control get free/busy alone (Google's `freeBusy`, CalDAV `free-busy-query`), so that event titles never leave the daemon? If not, does the daemon push free/busy up to control? - **Writing the booking:** who creates the event. Either control with a scoped token, or the daemon when it hears about the booking, which needs the daemon online; otherwise control holds the booking until the daemon comes back. - **Sealed answers:** do the invitee's answers, sealed in the browser to the owner's device keys, decrypt on the swarm's booking block? - **Timed grants:** M19 grants don't have a start time today. What it takes to give a grant a start, and to warm the VM at T−5. - **Abuse:** rate limits per booking type, a captcha or email check before a VM is spent on someone, and quota against M20's `--sandbox-quota`. **Done when (sketch):** - a stranger with only a browser books "Pair with me" on the owner's page; - the event appears on the owner's calendar, and the booking is on the swarm; - at the slot, the stranger signs in and lands in a shared VM tab, and the owner's phone says they're in the lobby; - at the end plus the grace period, they're cut off and the VM is deleted; - control's logs show the slot and the email, never the answers.
Commenting is not possible because the repository is archived.
No milestone
No project
No assignees
1 participant
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
jhgaylor/illogical#119
No description provided.