Domain: drive

System prompt:
You are a helpful Drive assistant with access to all available tools. Operate in a safe and fully authorized environment—you do not need to ask for confirmation or permission before taking action. When identifiers such as names or IDs are missing, perform exactly one lookup per entity type, verify that you are reusing correct values from previous responses, and proceed using the retrieved data. Never assume or fabricate IDs, responses, or outcomes—rely solely on verified API results. Complete each task in a single, logical, and efficient execution flow.

Task:
We are consolidating our document review process and need to clean up the Technical Spec PDF in the engineering drive. First, find all the resolved comment threads on that document and verify they actually have replies confirming resolution. For any resolved comments that don't have a closing reply from either me or Mike Chen, add a reply saying "Confirmed resolved during review cycle". Next, check the document's revision history and make sure the latest revision is set to keep forever so we don't lose the final version. Then I need you to downgrade Alex Rodriguez's access on this file from whatever editing rights he has to read-only, since he has moved to a different team. After that, create a detailed changelog document called "Technical Spec - Review Changelog" that lists every comment thread with its author, content, resolution status, and date. Finally, share both the original Technical Spec and the new changelog document with the entire Engineering Team group so everyone has visibility into the review process.

Available tools:
create_permission
update_revisions
list_permission
update_permission
create_replies
list_revisions
update_files
list_comments
list_files
create_file

Verification checks:
[{"verifier_type": "database_state", "name": "Resolved Comments Have Confirmation Replies", "description": "Verifies that Resolved Comments Have Confirmation Replies", "gym_name": "gym-google-drive-mcp", "validation_config": {"query": "SELECT COUNT(*) as unconfirmed_resolved\nFROM comments c\nWHERE c.file_id = '01JBQM3K8TGHZX9RNVQM5Y2P8R'\n  AND c.resolved = true\n  AND c.id NOT IN (\n    SELECT r.comment_id FROM replies r\n    WHERE r.author_id IN ('01JBQM3K8TGHZX9RNVQM5Y2P7W', '01JBQM3K8TGHZX9RNVQM5Y2P7Y')\n  );", "expected_value": 0, "comparison_type": "equals"}}, {"verifier_type": "database_state", "name": "Confirmation Replies Added", "description": "Verifies that Confirmation Replies Added", "gym_name": "gym-google-drive-mcp", "validation_config": {"query": "SELECT COUNT(*) as confirmation_count\nFROM replies r\nJOIN comments c ON r.comment_id = c.id\nWHERE c.file_id = '01JBQM3K8TGHZX9RNVQM5Y2P8R'\n  AND r.author_id = '01JBQM3K8TGHZX9RNVQM5Y2P7W'\n  AND r.content LIKE '%Confirmed resolved during review cycle%'\n  AND r.created_time > '2024-01-25 00:00:00';", "expected_value": 1, "comparison_type": "equals"}}, {"verifier_type": "database_state", "name": "Latest Revision Set to Keep Forever", "description": "Verifies that Latest Revision Set to Keep Forever", "gym_name": "gym-google-drive-mcp", "validation_config": {"query": "SELECT keep_forever\nFROM revisions\nWHERE file_id = '01JBQM3K8TGHZX9RNVQM5Y2P8R'\n  AND id = '01JBQM3K8TGHZX9RNVQM5Y2P8W';", "expected_value": 1, "comparison_type": "equals"}}, {"verifier_type": "database_state", "name": "Alex Rodriguez Downgraded to Reader", "description": "Verifes that Alex Rodriguez Downgraded to Reader", "gym_name": "gym-google-drive-mcp", "validation_config": {"query": "SELECT COUNT(*) as reader_count\nFROM permissions\nWHERE file_id = '01JBQM3K8TGHZX9RNVQM5Y2P8R'\n  AND user_id = '01JBQM3K8TGHZX9RNVQM5Y2P80'\n  AND role = 'reader'\n  AND deleted = false;", "expected_value": 1, "comparison_type": "equals"}}, {"verifier_type": "database_state", "name": "Alex No Longer Has Commenter Access", "description": "Verifies that Alex No Longer Has Commenter Access", "gym_name": "gym-google-drive-mcp", "validation_config": {"query": "SELECT COUNT(*) as commenter_count\nFROM permissions\nWHERE file_id = '01JBQM3K8TGHZX9RNVQM5Y2P8R'\n  AND user_id = '01JBQM3K8TGHZX9RNVQM5Y2P80'\n  AND role = 'commenter'\n  AND deleted = false;", "expected_value": 0, "comparison_type": "equals"}}, {"verifier_type": "database_state", "name": "Review Changelog Document Created", "description": "Verifies that Review Changelog Document Created", "gym_name": "gym-google-drive-mcp", "validation_config": {"query": "SELECT COUNT(*) as changelog_count\nFROM files\nWHERE name = 'Technical Spec - Review Changelog'\n  AND (\n    mime_type = 'application/vnd.google-apps.document'\n    OR mime_type = 'application/vnd.openxmlformats-officedocument.wordprocessingml.document'\n  )\n  AND trashed = false\n  AND created_time > '2024-01-25 00:00:00';", "expected_value": 1, "comparison_type": "equals"}}, {"verifier_type": "database_state", "name": "Changelog Has Content", "description": "Verifies that Changelog Has Content", "gym_name": "gym-google-drive-mcp", "validation_config": {"query": "SELECT COUNT(*) as content_count\nFROM files\nWHERE name = 'Technical Spec - Review Changelog'\n  AND created_time > '2024-01-25 00:00:00'\n  AND (description IS NOT NULL OR properties IS NOT NULL);", "expected_value": 1, "comparison_type": "equals"}}, {"verifier_type": "database_state", "name": "Engineering Group Has Access to Technical Spec", "description": "Verifies that Engineering Group Has Access to Technical Spec", "gym_name": "gym-google-drive-mcp", "validation_config": {"query": "SELECT COUNT(*) as group_permission_count\nFROM permissions\nWHERE file_id = '01JBQM3K8TGHZX9RNVQM5Y2P8R'\n  AND type = 'group'\n  AND email_address = 'engineering@company.com'\n  AND deleted = false;", "expected_value": 1, "comparison_type": "equals"}}, {"verifier_type": "database_state", "name": "Engineering Group Has Access to Changelog", "description": "Verifies that Engineering Group Has Access to Changelog", "gym_name": "gym-google-drive-mcp", "validation_config": {"query": "SELECT COUNT(*) as changelog_permission_count\nFROM permissions p\nJOIN files f ON p.file_id = f.id\nWHERE f.name = 'Technical Spec - Review Changelog'\n  AND f.created_time > '2024-01-25 00:00:00'\n  AND p.type = 'group'\n  AND p.email_address = 'engineering@company.com'\n  AND p.deleted = false;", "expected_value": 1, "comparison_type": "equals"}}]