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 doing a quarterly comment audit on the Technical Spec.pdf file and need to document our review process. Find the Technical Spec.pdf document in the engineering drive and go through all the comment threads. For each unresolved comment, add a reply saying "Reviewed as part of Q4 2024 audit - please reopen if still relevant" and mark it as resolved. For comments that are already resolved, add a reply saying "Confirmed closed during Q4 2024 audit". Then create a new document called "Q4 Comment Audit Report" that summarizes how many comments were found, how many were newly resolved, and how many were already resolved. Finally, share this audit report with Mike Chen giving him commenter access so he can add his review notes.

Available tools:
create_file
list_files
create_permission
create_replies
list_comments

Verification checks:
[{"verifier_type": "database_state", "name": "1. Unresolved Comment Now Resolved", "description": "Verifies that Unresolved Comment Now Resolved", "gym_name": "gym-google-drive-mcp", "validation_config": {"query": "SELECT COUNT(*) as resolved_count FROM comments \nWHERE file_id = '01JBQM3K8TGHZX9RNVQM5Y2P8R' \nAND id = '01JBQM3K8TGHZX9RNVQM5Y2P95' \nAND resolved = true \nAND deleted = false;", "expected_value": 1, "comparison_type": "equals"}}, {"verifier_type": "database_state", "name": "Audit Reply Added to Unresolved Comment", "description": "Verifies that Audit Reply Added to Unresolved Comment", "gym_name": "gym-google-drive-mcp", "validation_config": {"query": "SELECT COUNT(*) as audit_reply_count FROM replies r \nWHERE r.comment_id = '01JBQM3K8TGHZX9RNVQM5Y2P95' \nAND r.author_id = '01JBQM3K8TGHZX9RNVQM5Y2P7Y'\nAND r.content LIKE '%Q4 2024 audit%' \nAND r.deleted = false;", "expected_value": 1, "comparison_type": "equals"}}, {"verifier_type": "database_state", "name": "Confirmation Reply Added to First Resolved Comment", "description": "Verify that Confirmation Reply Added to First Resolved Comment", "gym_name": "gym-google-drive-mcp", "validation_config": {"query": "SELECT COUNT(*) as confirm_reply_count FROM replies r \nWHERE r.comment_id = '01JBQM3K8TGHZX9RNVQM5Y2P96' \nAND r.author_id = '01JBQM3K8TGHZX9RNVQM5Y2P7Y'\nAND r.content LIKE '%Confirmed closed during Q4 2024 audit%' \nAND r.deleted = false;", "expected_value": 1, "comparison_type": "equals"}}, {"verifier_type": "database_state", "name": "Confirmation Reply Added to Second Resolved Comment", "description": "Verifies that Confirmation Reply Added to Second Resolved Comment", "gym_name": "gym-google-drive-mcp", "validation_config": {"query": "SELECT COUNT(*) as confirm_reply_count FROM replies r \nWHERE r.comment_id = '01JBQM3K8TGHZX9RNVQM5Y2P99' \nAND r.author_id = '01JBQM3K8TGHZX9RNVQM5Y2P7Y'\nAND r.content LIKE '%Confirmed closed during Q4 2024 audit%' \nAND r.deleted = false;", "expected_value": 1, "comparison_type": "equals"}}, {"verifier_type": "database_state", "name": "Q4 Comment Audit Report Created", "description": "Verifies that Q4 Comment Audit Report Created", "gym_name": "gym-google-drive-mcp", "validation_config": {"query": "SELECT COUNT(*) as report_count FROM files \nWHERE name = 'Q4 Comment Audit Report' \nAND mime_type IN ('application/vnd.google-apps.document', 'application/vnd.openxmlformats-officedocument.wordprocessingml.document')\nAND trashed = false;", "expected_value": 1, "comparison_type": "equals"}}, {"verifier_type": "database_state", "name": "Audit Report Has Content", "description": "Verifies that Audit Report Has Content", "gym_name": "gym-google-drive-mcp", "validation_config": {"query": "SELECT COUNT(*) as report_content_count FROM files \nWHERE name = 'Q4 Comment Audit Report' \nAND (description IS NOT NULL OR properties IS NOT NULL);", "expected_value": 1, "comparison_type": "equals"}}, {"verifier_type": "database_state", "name": "Mike Chen Has Commenter Access to Report", "description": "Verifies that Mike Chen Has Commenter Access to Report", "gym_name": "gym-google-drive-mcp", "validation_config": {"query": "SELECT COUNT(*) as mike_permission_count FROM permissions p \nJOIN files f ON p.file_id = f.id \nWHERE f.name = 'Q4 Comment Audit Report' \nAND p.user_id = '01JBQM3K8TGHZX9RNVQM5Y2P7Y' \nAND p.role = 'commenter' \nAND p.deleted = false;", "expected_value": 1, "comparison_type": "equals"}}]