Domain: calendar

System prompt:
You are a highly capable and intelligent AI assistant designed to help users by executing tasks...

Task:
We’re tightening our project security protocols, so we need to immediately clean up the “Sprint Planning & Architecture Review” event on the Project Management calendar. Start by checking its attachments: if the event includes the specific Google Sheets edit link, remove only that link and leave the existing Drive view link in place. If the spreadsheet link isn’t there, add the document at https://docs.google.com/document/d/New-Specs-v2.0 instead. After that, update the event’s location so it now points to a 'Microsoft Teams Meeting', keeps the attendee list private, and still allows extra invitations for participants. We also need to set up a “Documentation Handoff” meeting on the Team Coordination calendar. It should start tomorrow at 10:30 AM New York time, last 45 minutes, and use the right recurrence depending on what happened earlier, if you removed the spreadsheet link, it should repeat daily for three occurrences; if not, it should repeat weekly for two. Finally, apply a security pass across the entire Project Management calendar by finding any event that doesn't allow guests to modify details and granting that permission everywhere.

Available tools:
patch_event
create_event
get_calendar_list
list_events

Verification checks:
[{"verifier_type": "database_state", "name": "Verify Location Update", "description": "Verify Location Update to Microsoft Teams", "gym_name": "gym-calendar", "validation_config": {"query": "SELECT count(*) FROM events WHERE summary = 'Sprint Planning & Architecture Review' AND calendar_id = 'alice-projects' AND location = 'Microsoft Teams Meeting';", "expected_value": 1, "comparison_type": "equals"}}, {"verifier_type": "database_state", "name": "Verify Target Link Removed", "description": "Verify the specific spreadsheet attachment is gone.", "gym_name": "gym-calendar", "validation_config": {"query": "SELECT COUNT(*) FROM attachments WHERE event_id IN (SELECT event_id FROM events WHERE summary = 'Sprint Planning & Architecture Review' AND calendar_id = 'alice-projects') AND file_url = 'https://docs.google.com/spreadsheets/d/1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgvE2upms/edit';", "expected_value": 0, "comparison_type": "equals"}}, {"verifier_type": "database_state", "name": "Verify Guest Visibility (Private)", "description": "guestsCanSeeOtherGuests should be false (0).", "gym_name": "gym-calendar", "validation_config": {"query": "SELECT guestsCanSeeOtherGuests FROM events WHERE summary = 'Sprint Planning & Architecture Review' AND calendar_id = 'alice-projects';", "expected_value": 0, "comparison_type": "equals"}}, {"verifier_type": "database_state", "name": "Verify Guest Modification", "description": "Verify Guest Modification", "gym_name": "gym-calendar", "validation_config": {"query": "SELECT guestsCanModify FROM events WHERE summary = 'Sprint Planning & Architecture Review' AND calendar_id = 'alice-projects';", "expected_value": 1, "comparison_type": "equals"}}, {"verifier_type": "database_state", "name": "Verify Total Events Created", "description": "Verify Total Events Created", "gym_name": "gym-calendar", "validation_config": {"query": "SELECT COUNT(event_id) FROM events WHERE summary = 'Documentation Handoff' AND calendar_id = 'alice-team';\n", "expected_value": 4, "comparison_type": "equals"}}, {"verifier_type": "database_state", "name": "Verify Guest Invitation Unchanged", "description": "Verify Guest Invitation Unchanged", "gym_name": "gym-calendar", "validation_config": {"query": "SELECT COUNT(*) FROM events WHERE calendar_id = 'alice-projects' AND guestsCanInviteOthers = 1;", "expected_value": 0, "comparison_type": "greater_than"}}]