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 need to restructure how the Technical Spec PDF is organized and archived. Find the Technical Spec document in engineering and first update its description to say "Legacy technical specification - migrated to new structure on [today's date]". Then check what folder it is currently in and move it out of that folder into the root of the engineering drive so it is easier to find. After moving it, create a copy of the document and rename the copy to "Technical Spec - Archive 2024". For the archived copy, star it so we can quickly locate it later, and also update its description to include "Archived version preserved for audit purposes". Finally, create a new document called "Technical Spec Migration Log" that documents what changes were made, which folders were involved, and includes links to both the original and archived versions.

Available tools:
copy_files
update_files
list_files
create_file

Verification checks:
[{"verifier_type": "database_state", "name": "Archive Copy Has Audit Description", "description": "Verifies that Archive Copy Has Audit Description", "gym_name": "gym-google-drive-mcp", "validation_config": {"query": "SELECT COUNT(*) as archive_desc_count\nFROM files\nWHERE name = 'Technical Spec - Archive 2024'\n  AND description LIKE '%Archived version%'\n  AND description LIKE '%audit purposes%';", "expected_value": 1, "comparison_type": "equals"}}, {"verifier_type": "database_state", "name": "Original Technical Spec Description Updated with Migration Note", "description": "Verifies that Original Technical Spec Description Updated with Migration Note", "gym_name": "gym-google-drive-mcp", "validation_config": {"query": "SELECT COUNT(*) as desc_updated_count\nFROM files\nWHERE id = '01JBQM3K8TGHZX9RNVQM5Y2P8R'\n  AND description LIKE '%Legacy technical specification%'\n  AND description LIKE '%migrated to new structure%';", "expected_value": 1, "comparison_type": "equals"}}, {"verifier_type": "database_state", "name": "Technical Spec Moved to Engineering Drive Root", "description": "Verifies that Technical Spec Moved to Engineering Drive Root", "gym_name": "gym-google-drive-mcp", "validation_config": {"query": "SELECT COUNT(*) as root_file_count\nFROM files\nWHERE id = '01JBQM3K8TGHZX9RNVQM5Y2P8R'\n  AND drive_id = '01JBQM3K8TGHZX9RNVQM5Y2P8B'\n  AND parent_id IS NULL;", "expected_value": 1, "comparison_type": "equals"}}, {"verifier_type": "database_state", "name": "Technical Spec No Longer in Project Documents Folder", "description": "Verifies that Technical Spec No Longer in Project Documents Folder", "gym_name": "gym-google-drive-mcp", "validation_config": {"query": "SELECT COUNT(*) as old_location_count\nFROM files\nWHERE id = '01JBQM3K8TGHZX9RNVQM5Y2P8R'\n  AND parent_id = '01JBQM3K8TGHZX9RNVQM5Y2P8Q';", "expected_value": 0, "comparison_type": "equals"}}, {"verifier_type": "database_state", "name": "Archive Copy Created with Correct Name", "description": "Verifies that Archive Copy Created with Correct Name", "gym_name": "gym-google-drive-mcp", "validation_config": {"query": "SELECT COUNT(*) as archive_count\nFROM files\nWHERE name = 'Technical Spec - Archive 2024'\n  AND mime_type = 'application/pdf'\n  AND trashed = false;", "expected_value": 1, "comparison_type": "equals"}}, {"verifier_type": "database_state", "name": "Archive Copy Starred", "description": "Verifies that Archive Copy Starred", "gym_name": "gym-google-drive-mcp", "validation_config": {"query": "SELECT COUNT(*) as starred_archive_count\nFROM files\nWHERE name = 'Technical Spec - Archive 2024'\n  AND starred = true;", "expected_value": 1, "comparison_type": "equals"}}, {"verifier_type": "database_state", "name": "Migration Log Document Created", "description": "Verifies that Migration Log Document Created", "gym_name": "gym-google-drive-mcp", "validation_config": {"query": "SELECT COUNT(*) as log_count\nFROM files\nWHERE name = 'Technical Spec Migration Log'\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;", "expected_value": 1, "comparison_type": "equals"}}, {"verifier_type": "database_state", "name": "Migration Log Has Content", "description": "Verifies that Migration Log Has Content", "gym_name": "gym-google-drive-mcp", "validation_config": {"query": "SELECT COUNT(*) as log_content_count\nFROM files\nWHERE name = 'Technical Spec Migration Log'\n  AND (description IS NOT NULL OR properties IS NOT NULL);", "expected_value": 1, "comparison_type": "equals"}}]