Domain: calendar

System prompt:
You are a highly capable and intelligent AI assistant designed to help users by executing tasks. You have access to a variety of tools and are expected to use them to answer questions and fulfill requests.

**Your Thought Process:**
1. **Analyze the Request:** Carefully analyze the user's latest message to understand their intent.
2. **Plan Your Actions:** If the request requires information or action that you cannot perform directly, identify the appropriate tool(s) from the provided list.
3. **Execute Tools:** Make one or more tool calls in a structured format. You can call multiple tools in parallel if needed.
4. **Observe the Results:** After I execute the tools for you, I will provide the results in a structured format.
5. **Formulate the Final Answer:** Use the tool results to construct a comprehensive, accurate, and helpful final answer to the user. If a tool fails, inform the user and ask for clarification if necessary.

**Constraints:**
- **Respond Only to the Latest Message:** The conversation history is for context only. Focus on resolving the user's most recent request.
- **Use Tools When Necessary:** Do not try to guess information that a tool can provide. If you need to know something, use a tool.
- **Stick to Available Tools:** Only use the tools provided to you in the tool list. Do not invent tools.
- **Final Response:** Once all necessary tool calls are complete and you have the information you need, provide a final, user-facing response without any further tool calls.

Task:
We need to execute a critical shift in your primary planning calendar and finalize team permissions. Today is Tuesday, January 6, 2026.

First, Identify the 'Sprint Planning & Architecture Review' event on the 'Project Management' calendar.

If Carol White is currently listed as an optional attendee, add a new private extended property to the event with the key policy_status and the value audit_required.
Otherwise, move the event entirely to the primary calendar and change its color to a soft, warm yellow/pale gold color.
You also need to schedule a new 'Product Deep Dive' meeting on the 'Team Coordination' calendar. The meeting should be 60 minutes long and start tomorrow at 1:00 PM (New York time).

This meeting must have a daily recurrence for 4 occurrences if the 'Sprint Planning & Architecture Review' event now has the policy_status property set to audit_required 
Otherwise, schedule it with a weekly recurrence for 2 occurrences.
Finally, enforce a bulk policy change: Find ALL events on your 'Project Management' calendar where the event summary contains the word 'Review' and set their guestsCanModify property to true.

Available tools:
list_events
get_calendar_list
patch_event
create_event

Verification checks:
[{"verifier_type": "database_state", "name": "Verify Extended Property Addition", "description": "Verify that 'policy_status' extended property was added using a join on the separate table.", "gym_name": "gym-calendar", "validation_config": {"query": "SELECT COUNT(ep.id)\nFROM extended_properties ep\nJOIN events e ON ep.event_id = e.event_id\nWHERE e.summary = 'Sprint Planning & Architecture Review'\n  AND e.calendar_id = 'alice-projects'\n  AND ep.scope = 'private'\n  AND ep.properties LIKE '%\"policy_status\": \"audit_required\"%';", "expected_value": 1, "comparison_type": "equals"}}, {"verifier_type": "database_state", "name": "Verify Product Deep Dive Creation (Correct Logic)", "description": "Verify 'Product Deep Dive' created on 'alice-team' with Daily recurrence (since policy_status was set).", "gym_name": "gym-calendar", "validation_config": {"query": "SELECT COUNT(*)\nFROM events\nWHERE summary = 'Product Deep Dive'\n  AND calendar_id = 'alice-team'\n  AND recurrence = 'RRULE:FREQ=DAILY;COUNT=4';", "expected_value": 1, "comparison_type": "equals"}}, {"verifier_type": "database_state", "name": "Verify Bulk guestsCanModify Update", "description": "Verify that events with 'Review' in the summary on 'alice-projects' have guestsCanModify set to true.", "gym_name": "gym-calendar", "validation_config": {"query": "SELECT COUNT(*)\nFROM events\nWHERE calendar_id = 'alice-projects' \n  AND summary LIKE '%Review%' \n  AND guestscanmodify = 1;", "expected_value": 1, "comparison_type": "equals"}}, {"verifier_type": "database_state", "name": "Verify Event Not Moved", "description": "Verify 'Sprint Planning & Architecture Review' remains on 'alice-projects' (Count should be 1).", "gym_name": "gym-calendar", "validation_config": {"query": "SELECT COUNT(*)\nFROM events\nWHERE summary = 'Sprint Planning & Architecture Review' \n  AND calendar_id = 'alice-projects';", "expected_value": 1, "comparison_type": "equals"}}, {"verifier_type": "database_state", "name": "Verify New Meeting Date", "description": "Verify 'Product Deep Dive' starts on Jan 7, 2026 (Tomorrow).", "gym_name": "gym-calendar", "validation_config": {"query": "SELECT COUNT(*)\nFROM events\nWHERE summary = 'Product Deep Dive' \n  AND start_datetime LIKE '2026-01-07%';", "expected_value": 1, "comparison_type": "equals"}}]