diff --git a/tasks/2048/create-two-high-tiles.json b/tasks/2048/create-two-high-tiles.json new file mode 100644 index 0000000000000000000000000000000000000000..5333785f0a07b2746a055a2019739adc42829c4e --- /dev/null +++ b/tasks/2048/create-two-high-tiles.json @@ -0,0 +1,13 @@ +{ + "id": "create-two-high-tiles", + "name": "Create Two 128 Tiles", + "description": "Get at least two tiles with value 128 or higher on the board", + "environment": "{\"type\": \"url\", \"path\": \"https://dojo-spas-production.s3.us-east-1.amazonaws.com/2048/index.html\"}", + "initial_state": "{\"board\": [64, 64, 0, 0, 32, 32, 0, 0, 16, 16, 0, 0, 16, 4, 0, 0], \"gameOver\": false, \"gameInitialized\": true}", + "instructions": "{\"user_prompt\": \"Create at least two tiles with value 128 or higher on the board. You'll need to combine smaller tiles strategically to reach this goal.\", \"success_criteria\": \"The board must contain at least two tiles with value 128 or higher.\"}", + "reward_function": "_validate_create_two_high_tiles", + "valid_target_states": "", + "max_steps": 10, + "timeout_seconds": 120, + "metadata": "{\"category\": \"games\", \"difficulty\": \"medium\", \"action\": \"two_high_tiles\"}" +} diff --git a/tasks/2048/get-128-tile.json b/tasks/2048/get-128-tile.json new file mode 100644 index 0000000000000000000000000000000000000000..1b3fbbd87a542cb25a6ba1e4664c40879c79cd6e --- /dev/null +++ b/tasks/2048/get-128-tile.json @@ -0,0 +1,13 @@ +{ + "id": "get-128-tile", + "name": "Get 128 Tile", + "description": "Create a 128 tile in one move", + "environment": "{\"type\": \"url\", \"path\": \"https://dojo-spas-production.s3.us-east-1.amazonaws.com/2048/index.html\"}", + "initial_state": "{\"board\": [0, 0, 0, 0, 0, 64, 0, 0, 0, 0, 0, 0, 0, 64, 0, 0], \"gameOver\": false, \"gameInitialized\": true}", + "instructions": "{\"user_prompt\": \"Create a 128 tile by combining the two 64-tiles in the middle column. Make the move that will merge them together.\", \"success_criteria\": \"The board must contain a 128-tile after the move.\"}", + "reward_function": "_validate_get_128_tile", + "valid_target_states": "", + "max_steps": 2, + "timeout_seconds": 60, + "metadata": "{\"category\": \"games\", \"difficulty\": \"easy\", \"action\": \"create_128\"}" +} diff --git a/tasks/2048/get-2048.json b/tasks/2048/get-2048.json index d28924fb788059e356c6990a14d505cf7e680951..60a81c534a3bcacde7d9f1c6973cc00cefda3634 100644 --- a/tasks/2048/get-2048.json +++ b/tasks/2048/get-2048.json @@ -10,4 +10,4 @@ "max_steps": 2, "timeout_seconds": 120, "metadata": "{\"category\": \"games\", \"difficulty\": \"easy\"}" -} \ No newline at end of file +} diff --git a/tasks/2048/get-256-tile.json b/tasks/2048/get-256-tile.json new file mode 100644 index 0000000000000000000000000000000000000000..4e008237250d4018bf88841cb663002aaba49294 --- /dev/null +++ b/tasks/2048/get-256-tile.json @@ -0,0 +1,13 @@ +{ + "id": "get-256-tile", + "name": "Get 256 Tile", + "description": "Create a 256 tile in three moves", + "environment": "{\"type\": \"url\", \"path\": \"https://dojo-spas-production.s3.us-east-1.amazonaws.com/2048/index.html\"}", + "initial_state": "{\"board\": [0, 0, 32, 32, 0, 0, 32, 32, 0, 32, 0, 32, 0, 0, 32, 32], \"gameOver\": false, \"gameInitialized\": true}", + "instructions": "{\"user_prompt\": \"Create a 256 tile by combining 32-tiles to make 64-tiles, then combining those 64-tiles to make 128-tiles, and finally combining those 128-tiles to make a 256-tile. This requires three strategic moves.\", \"success_criteria\": \"The board must contain a 256-tile after completing the three moves.\"}", + "reward_function": "_validate_get_256_tile", + "valid_target_states": "", + "max_steps": 10, + "timeout_seconds": 60, + "metadata": "{\"category\": \"games\", \"difficulty\": \"medium\", \"action\": \"create_256\"}" +} diff --git a/tasks/2048/get-32-tile.json b/tasks/2048/get-32-tile.json new file mode 100644 index 0000000000000000000000000000000000000000..1038cc3ec159a5a2608220ac80d30583e5b90ac7 --- /dev/null +++ b/tasks/2048/get-32-tile.json @@ -0,0 +1,13 @@ +{ + "id": "get-32-tile", + "name": "Get 32 Tile", + "description": "Combine two 16-tiles to create a 32-tile", + "environment": "{\"type\": \"url\", \"path\": \"https://dojo-spas-production.s3.us-east-1.amazonaws.com/2048/index.html\"}", + "initial_state": "{\"board\": [0, 0, 0, 0, 0, 16, 16, 0, 0, 0, 0, 0, 0, 0, 0, 0], \"gameOver\": false, \"gameInitialized\": true}", + "instructions": "{\"user_prompt\": \"Combine the two 16-tiles in the middle row to create a 32-tile. Move the tiles so they merge together.\", \"success_criteria\": \"The board must contain a 32-tile after the move.\"}", + "reward_function": "_validate_get_32_tile", + "valid_target_states": "", + "max_steps": 3, + "timeout_seconds": 30, + "metadata": "{\"category\": \"games\", \"difficulty\": \"easy\", \"action\": \"create_32\"}" +} diff --git a/tasks/2048/get-512-tile.json b/tasks/2048/get-512-tile.json new file mode 100644 index 0000000000000000000000000000000000000000..cd34fa6abfbd1c936c6da51e1049af94f40d2027 --- /dev/null +++ b/tasks/2048/get-512-tile.json @@ -0,0 +1,13 @@ +{ + "id": "get-512-tile", + "name": "Get 512 Tile", + "description": "Create a 512 tile in three moves", + "environment": "{\"type\": \"url\", \"path\": \"https://dojo-spas-production.s3.us-east-1.amazonaws.com/2048/index.html\"}", + "initial_state": "{\"board\": [64, 64, 0, 0, 64, 0, 64, 0, 64, 64, 0, 0, 64, 0, 0, 64], \"gameOver\": false, \"gameInitialized\": true}", + "instructions": "{\"user_prompt\": \"Create a 512 tile by combining 64-tiles to make 128-tiles, then combining those 128-tiles to make 256-tiles, and finally combining those 256-tiles to make a 512-tile. This requires three strategic moves.\", \"success_criteria\": \"The board must contain a 512-tile after completing the three moves.\"}", + "reward_function": "_validate_get_512_tile", + "valid_target_states": "", + "max_steps": 10, + "timeout_seconds": 60, + "metadata": "{\"category\": \"games\", \"difficulty\": \"medium\", \"action\": \"create_512\"}" +} diff --git a/tasks/2048/make-first-move.json b/tasks/2048/make-first-move.json new file mode 100644 index 0000000000000000000000000000000000000000..2c2541a378d2520792863443cc48093f1e417a7a --- /dev/null +++ b/tasks/2048/make-first-move.json @@ -0,0 +1,13 @@ +{ + "id": "make-first-move", + "name": "Make First Move", + "description": "Make any valid move from the initial board state", + "environment": "{\"type\": \"url\", \"path\": \"https://dojo-spas-production.s3.us-east-1.amazonaws.com/2048/index.html\"}", + "initial_state": "{\"board\": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], \"gameOver\": false, \"gameInitialized\": true}", + "instructions": "{\"user_prompt\": \"Make any valid move in the 2048 game. Use the arrow keys to move tiles in any direction (up, down, left, or right).\", \"success_criteria\": \"The board must change from its initial state after making a move.\"}", + "reward_function": "_validate_2048_make_first_move", + "valid_target_states": "", + "max_steps": 5, + "timeout_seconds": 30, + "metadata": "{\"category\": \"games\", \"difficulty\": \"easy\", \"action\": \"first_move\"}" +} diff --git a/tasks/2048/move-tiles-right.json b/tasks/2048/move-tiles-right.json new file mode 100644 index 0000000000000000000000000000000000000000..30c531785cb0d56add0fc228891a2c09aa97ac1d --- /dev/null +++ b/tasks/2048/move-tiles-right.json @@ -0,0 +1,13 @@ +{ + "id": "move-tiles-right", + "name": "Move Tiles Right", + "description": "Move all tiles to the right side of the board", + "environment": "{\"type\": \"url\", \"path\": \"https://dojo-spas-production.s3.us-east-1.amazonaws.com/2048/index.html\"}", + "initial_state": "{\"board\": [2, 0, 0, 0, 4, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 0], \"gameOver\": false, \"gameInitialized\": true}", + "instructions": "{\"user_prompt\": \"Move all tiles to the right side of the board using the right arrow key. All tiles should be positioned in the rightmost column.\", \"success_criteria\": \"All tiles must be in the rightmost column (positions 3, 7, 11, 15).\"}", + "reward_function": "_validate_move_tiles_right", + "valid_target_states": "", + "max_steps": 3, + "timeout_seconds": 30, + "metadata": "{\"category\": \"games\", \"difficulty\": \"easy\", \"action\": \"move_right\"}" +} diff --git a/tasks/2048/reach-540-sum.json b/tasks/2048/reach-540-sum.json new file mode 100644 index 0000000000000000000000000000000000000000..29bcfa153825a5c263c1e224e20729d6f46824a4 --- /dev/null +++ b/tasks/2048/reach-540-sum.json @@ -0,0 +1,13 @@ +{ + "id": "reach-540-sum", + "name": "Reach 540 Sum", + "description": "Achieve a board with tiles summing to 540 or more", + "environment": "{\"type\": \"url\", \"path\": \"https://dojo-spas-production.s3.us-east-1.amazonaws.com/2048/index.html\"}", + "initial_state": "{\"board\": [256, 128, 64, 32, 16, 8, 4, 2, 2, 2, 0, 0, 0, 0, 0, 0], \"gameOver\": false, \"gameInitialized\": true}", + "instructions": "{\"user_prompt\": \"Achieve a board where the sum of all tile values is 540 or more. Combine tiles strategically to increase the total value.\", \"success_criteria\": \"The sum of all tile values on the board must be 540 or greater.\"}", + "reward_function": "_validate_reach_540_sum", + "valid_target_states": "", + "max_steps": 20, + "timeout_seconds": 120, + "metadata": "{\"category\": \"games\", \"difficulty\": \"hard\", \"action\": \"target_540_sum\"}" +} diff --git a/tasks/2048/strategic-32.json b/tasks/2048/strategic-32.json new file mode 100644 index 0000000000000000000000000000000000000000..317ee8896afdf380477789cb6fc304601533ece5 --- /dev/null +++ b/tasks/2048/strategic-32.json @@ -0,0 +1,13 @@ +{ + "id": "strategic-32", + "name": "Strategic 32", + "description": "Create a 32 tile from a sparse board with strategic moves", + "environment": "{\"type\": \"url\", \"path\": \"https://dojo-spas-production.s3.us-east-1.amazonaws.com/2048/index.html\"}", + "initial_state": "{\"board\": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], \"gameOver\": false, \"gameInitialized\": true}", + "instructions": "{\"user_prompt\": \"Starting from an empty board, strategically create a 32 tile. You'll need to build up from smaller tiles through careful planning and multiple moves. This requires combining tiles multiple times: 2→4→8→16→32.\", \"success_criteria\": \"The board must contain a 32-tile after completing the strategic moves.\"}", + "reward_function": "_validate_strategic_32", + "valid_target_states": "", + "max_steps": 40, + "timeout_seconds": 180, + "metadata": "{\"category\": \"games\", \"difficulty\": \"hard\", \"action\": \"strategic_32\"}" +} diff --git a/tasks/action-tester/must-click.json b/tasks/action-tester/must-click.json index f1eaa20c1aec400b6bb7c1eb7a13b291c743c02c..2b3bd6c91a4f07a8b686718b326141ef3918e394 100644 --- a/tasks/action-tester/must-click.json +++ b/tasks/action-tester/must-click.json @@ -10,4 +10,4 @@ "max_steps": 5, "timeout_seconds": 30, "metadata": "{\"difficulty\": \"easy\", \"action_type\": \"click\", \"target_element\": \"blue button with text 'Click Me!'\"}" -} \ No newline at end of file +} diff --git a/tasks/action-tester/must-complete-all-actions.json b/tasks/action-tester/must-complete-all-actions.json index ec840de981d49d59be6693986fa58b5a2a15c791..a4471c7fd28f314b462ef5ee615fb31bfcc9ef09 100644 --- a/tasks/action-tester/must-complete-all-actions.json +++ b/tasks/action-tester/must-complete-all-actions.json @@ -10,4 +10,4 @@ "max_steps": 15, "timeout_seconds": 120, "metadata": "{\"difficulty\": \"hard\", \"action_type\": \"comprehensive\", \"target_element\": \"all interactive elements in the action tester\", \"actions_required\": [\"click\", \"double_click\", \"right_click\", \"middle_click\", \"drag\", \"type\", \"hotkey\", \"scroll\"]}" -} \ No newline at end of file +} diff --git a/tasks/action-tester/must-double-click.json b/tasks/action-tester/must-double-click.json index bb1a4e353d7126091a61d74b0792b3c0165c3a88..c4be21d20240a1fcd58706dd32cb3bd9a06c2931 100644 --- a/tasks/action-tester/must-double-click.json +++ b/tasks/action-tester/must-double-click.json @@ -10,4 +10,4 @@ "max_steps": 5, "timeout_seconds": 30, "metadata": "{\"difficulty\": \"easy\", \"action_type\": \"double_click\", \"target_element\": \"purple button with text 'Double Click Me!'\"}" -} \ No newline at end of file +} diff --git a/tasks/action-tester/must-drag.json b/tasks/action-tester/must-drag.json index 0310590129f6c3950166710936a810bdbcaf8546..359ee4e7177bc8be6607c0215c680124ca88ee77 100644 --- a/tasks/action-tester/must-drag.json +++ b/tasks/action-tester/must-drag.json @@ -10,4 +10,4 @@ "max_steps": 10, "timeout_seconds": 45, "metadata": "{\"difficulty\": \"medium\", \"action_type\": \"drag\", \"target_element\": \"red draggable box with text 'Drag Me'\"}" -} \ No newline at end of file +} diff --git a/tasks/action-tester/must-hotkey.json b/tasks/action-tester/must-hotkey.json index fd844edbd7d0d910d195fcfa5e4f58b4e74b440b..e4e2de34d7f121870b48c7522c8fd92213dafc5f 100644 --- a/tasks/action-tester/must-hotkey.json +++ b/tasks/action-tester/must-hotkey.json @@ -10,4 +10,4 @@ "max_steps": 5, "timeout_seconds": 30, "metadata": "{\"difficulty\": \"medium\", \"action_type\": \"hotkey\", \"target_element\": \"keyboard shortcut Ctrl+S or Cmd+S\"}" -} \ No newline at end of file +} diff --git a/tasks/action-tester/must-middle-click.json b/tasks/action-tester/must-middle-click.json index 710bda1b84629c1e4b31627d77bb72075029a54e..efdf2936005d4564c4395fbf120a4ef65313cdfe 100644 --- a/tasks/action-tester/must-middle-click.json +++ b/tasks/action-tester/must-middle-click.json @@ -10,4 +10,4 @@ "max_steps": 5, "timeout_seconds": 30, "metadata": "{\"difficulty\": \"medium\", \"action_type\": \"middle_click\", \"target_element\": \"teal area with text 'Middle Click Here'\"}" -} \ No newline at end of file +} diff --git a/tasks/action-tester/must-perform-three-medium-actions.json b/tasks/action-tester/must-perform-three-medium-actions.json new file mode 100644 index 0000000000000000000000000000000000000000..1f34c2a7c1ca1386c4f230fbf752514b2655bcb5 --- /dev/null +++ b/tasks/action-tester/must-perform-three-medium-actions.json @@ -0,0 +1,13 @@ +{ + "id": "must-perform-three-medium-actions", + "name": "Three Medium Actions Test", + "description": "Test the agent's ability to perform three medium-difficulty actions in sequence: drag, hotkey, and middle-click", + "environment": "{\"type\": \"url\", \"path\": \"https://dojo-spas-production.s3.us-east-1.amazonaws.com/action-tester/index.html\"}", + "initial_state": "{\"hasClicked\": false, \"hasDoubleClicked\": false, \"hasDragged\": false, \"hasHotkeyed\": false, \"hasMiddleClicked\": false, \"hasRightClicked\": false, \"hasScrolled\": false, \"hasTyped\": false}", + "instructions": "{\"user_prompt\": \"Complete three medium-difficulty computer use actions to finish this test: 1) Drag the red 'Drag Me' box to a new position (at least 10 pixels away), 2) Press the keyboard shortcut Ctrl+S (or Cmd+S on Mac), and 3) Middle-click (scroll wheel click) on the teal area labeled 'Middle Click Here'. All three actions must be completed successfully in any order.\", \"success_criteria\": \"The hasDragged, hasHotkeyed, and hasMiddleClicked states must all be set to True\"}", + "reward_function": "", + "valid_target_states": "[{\"hasDragged\": true, \"hasHotkeyed\": true, \"hasMiddleClicked\": true}]", + "max_steps": 15, + "timeout_seconds": 90, + "metadata": "{\"difficulty\": \"hard\", \"action_type\": \"combined_medium_actions\", \"target_element\": \"multiple interactive elements requiring drag, hotkey, and middle-click\", \"actions_required\": [\"drag\", \"hotkey\", \"middle_click\"]}" +} diff --git a/tasks/action-tester/must-right-click.json b/tasks/action-tester/must-right-click.json index 085e12460724fb5f7fa125ef862e392af38c8668..db83011255c2c5503a163472e526e42021f7e96e 100644 --- a/tasks/action-tester/must-right-click.json +++ b/tasks/action-tester/must-right-click.json @@ -10,4 +10,4 @@ "max_steps": 5, "timeout_seconds": 30, "metadata": "{\"difficulty\": \"easy\", \"action_type\": \"right_click\", \"target_element\": \"orange area with text 'Right Click Here'\"}" -} \ No newline at end of file +} diff --git a/tasks/action-tester/must-scroll.json b/tasks/action-tester/must-scroll.json index 28b31fdb18bfe6c1e461b11fba1a7b5ad7b52f4f..f9eec6ad5b8db9d0a1def9a4630f28fcdb04fd9e 100644 --- a/tasks/action-tester/must-scroll.json +++ b/tasks/action-tester/must-scroll.json @@ -10,4 +10,4 @@ "max_steps": 5, "timeout_seconds": 30, "metadata": "{\"difficulty\": \"easy\", \"action_type\": \"scroll\", \"target_element\": \"page scroll area\"}" -} \ No newline at end of file +} diff --git a/tasks/action-tester/must-type.json b/tasks/action-tester/must-type.json index f373218de249108e4e0bbdc70fe5d0a91013b4cb..7883edef12acafb5cea1def979f22030b1c03478 100644 --- a/tasks/action-tester/must-type.json +++ b/tasks/action-tester/must-type.json @@ -10,4 +10,4 @@ "max_steps": 10, "timeout_seconds": 30, "metadata": "{\"difficulty\": \"easy\", \"action_type\": \"type\", \"target_element\": \"text input field with placeholder 'Type here...'\"}" -} \ No newline at end of file +} diff --git a/tasks/linear/add-label-to-issue.json b/tasks/linear/add-label-to-issue.json new file mode 100644 index 0000000000000000000000000000000000000000..7655f7accbdcb36fb46a77ae8154d362ec002b18 --- /dev/null +++ b/tasks/linear/add-label-to-issue.json @@ -0,0 +1,13 @@ +{ + "id": "add-label-to-issue", + "name": "Add Label to Issue", + "description": "Add the Bug label to issue VSS-104", + "environment": "{\"type\": \"url\", \"path\": \"https://dojo-spas-production.s3.us-east-1.amazonaws.com/linear/index.html\"}", + "initial_state": "{\"issues\": [{\"id\": \"4\", \"identifier\": \"VSS-104\", \"title\": \"Build 3D station rotation visualizer component\", \"status\": \"queued\", \"assigneeId\": \"1\", \"labels\": [], \"projectId\": \"proj1\", \"priority\": \"none\"}], \"users\": [{\"id\": \"1\", \"name\": \"Riley\", \"avatar\": \"R\", \"email\": \"riley@station.space\"}, {\"id\": \"2\", \"name\": \"Chen\", \"avatar\": \"C\", \"email\": \"chen@station.space\"}], \"labels\": [{\"id\": \"label1\", \"name\": \"Bug\", \"color\": \"#EF4444\"}, {\"id\": \"label2\", \"name\": \"Operations\", \"color\": \"#8B5CF6\"}, {\"id\": \"label3\", \"name\": \"Feature\", \"color\": \"#10B981\"}], \"cycles\": [{\"id\": \"cycle53\", \"name\": \"Cycle 53\", \"startDate\": \"Oct 20\", \"endDate\": \"Oct 26\", \"scope\": 114, \"started\": 32, \"completed\": 22, \"status\": \"current\"}, {\"id\": \"cycle54\", \"name\": \"Cycle 54\", \"startDate\": \"Oct 27\", \"endDate\": \"Nov 2\", \"scope\": 0, \"started\": 0, \"completed\": 0, \"status\": \"upcoming\"}], \"projects\": [{\"id\": \"proj1\", \"name\": \"Data Collector\", \"teamId\": \"team1\"}], \"milestones\": [{\"id\": \"milestone3\", \"name\": \"Data Pipeline v2 Release\", \"targetDate\": \"Nov 1\", \"color\": \"#10B981\", \"projectId\": \"proj1\"}], \"teamIdentifier\": \"VSS\"}", + "instructions": "{\"user_prompt\": \"Add the Bug label to issue VSS-104 by following these steps: 1) Click on issue VSS-104 on the kanban board to open it. 2) Find the Labels section in the right sidebar of the issue details page. 3) Click the 'Add label' button to open the labels dropdown. 4) Click on the 'Bug' label in the dropdown to add it to the issue.\", \"success_criteria\": \"Issue VSS-104 must have the Bug label (id='label1') in its labels array.\"}", + "reward_function": "", + "valid_target_states": "[{\"issues\": [{\"id\": \"4\", \"identifier\": \"VSS-104\", \"title\": \"Build 3D station rotation visualizer component\", \"status\": \"queued\", \"assigneeId\": \"1\", \"labels\": [{\"id\": \"label1\", \"name\": \"Bug\", \"color\": \"#EF4444\"}], \"projectId\": \"proj1\", \"priority\": \"none\"}]}]", + "max_steps": 7, + "timeout_seconds": 60, + "metadata": "{\"category\": \"productivity\", \"difficulty\": \"medium\"}" +} diff --git a/tasks/linear/change-issue-priority.json b/tasks/linear/change-issue-priority.json new file mode 100644 index 0000000000000000000000000000000000000000..e95dd14a7f77f2a6a44b5f38756ce289bac21c75 --- /dev/null +++ b/tasks/linear/change-issue-priority.json @@ -0,0 +1,13 @@ +{ + "id": "change-issue-priority", + "name": "Change Issue Priority", + "description": "Change the priority of issue VSS-101 from none to high", + "environment": "{\"type\": \"url\", \"path\": \"https://dojo-spas-production.s3.us-east-1.amazonaws.com/linear/index.html\"}", + "initial_state": "{\"issues\": [{\"id\": \"1\", \"identifier\": \"VSS-101\", \"title\": \"Design oxygen level monitoring dashboard\", \"status\": \"queued\", \"assigneeId\": \"1\", \"labels\": [], \"projectId\": \"proj1\", \"priority\": \"none\"}], \"users\": [{\"id\": \"1\", \"name\": \"Riley\", \"avatar\": \"R\", \"email\": \"riley@station.space\"}, {\"id\": \"2\", \"name\": \"Chen\", \"avatar\": \"C\", \"email\": \"chen@station.space\"}], \"labels\": [{\"id\": \"label1\", \"name\": \"Bug\", \"color\": \"#EF4444\"}, {\"id\": \"label2\", \"name\": \"Operations\", \"color\": \"#8B5CF6\"}, {\"id\": \"label3\", \"name\": \"Feature\", \"color\": \"#10B981\"}], \"cycles\": [{\"id\": \"cycle53\", \"name\": \"Cycle 53\", \"startDate\": \"Oct 20\", \"endDate\": \"Oct 26\", \"scope\": 114, \"started\": 32, \"completed\": 22, \"status\": \"current\"}, {\"id\": \"cycle54\", \"name\": \"Cycle 54\", \"startDate\": \"Oct 27\", \"endDate\": \"Nov 2\", \"scope\": 0, \"started\": 0, \"completed\": 0, \"status\": \"upcoming\"}], \"projects\": [{\"id\": \"proj1\", \"name\": \"Data Collector\", \"teamId\": \"team1\"}], \"milestones\": [{\"id\": \"milestone3\", \"name\": \"Data Pipeline v2 Release\", \"targetDate\": \"Nov 1\", \"color\": \"#10B981\", \"projectId\": \"proj1\"}], \"teamIdentifier\": \"VSS\"}", + "instructions": "{\"user_prompt\": \"Change the priority of issue VSS-101 by following these steps: 1) Click on issue VSS-101 on the kanban board to open it. 2) Locate the Priority section in the right sidebar. 3) Click on the priority dropdown (currently showing 'Set priority'). 4) Select 'High' from the dropdown menu.\", \"success_criteria\": \"Issue VSS-101 must have priority set to 'high'.\"}", + "reward_function": "", + "valid_target_states": "[{\"issues\": [{\"id\": \"1\", \"identifier\": \"VSS-101\", \"title\": \"Design oxygen level monitoring dashboard\", \"status\": \"queued\", \"assigneeId\": \"1\", \"labels\": [], \"projectId\": \"proj1\", \"priority\": \"high\"}]}]", + "max_steps": 5, + "timeout_seconds": 60, + "metadata": "{\"category\": \"productivity\", \"difficulty\": \"easy\"}" +} diff --git a/tasks/linear/change-issue-status.json b/tasks/linear/change-issue-status.json new file mode 100644 index 0000000000000000000000000000000000000000..ffead5a6f412eb591f69b0afdaf49c9d0369a657 --- /dev/null +++ b/tasks/linear/change-issue-status.json @@ -0,0 +1,13 @@ +{ + "id": "change-issue-status", + "name": "Change Issue Status", + "description": "Change the status of issue VSS-102 from queued to in_progress", + "environment": "{\"type\": \"url\", \"path\": \"https://dojo-spas-production.s3.us-east-1.amazonaws.com/linear/index.html\"}", + "initial_state": "{\"issues\": [{\"id\": \"2\", \"identifier\": \"VSS-102\", \"title\": \"Add solar panel efficiency widget to control panel\", \"status\": \"queued\", \"assigneeId\": \"1\", \"labels\": [], \"projectId\": \"proj1\", \"priority\": \"none\"}], \"users\": [{\"id\": \"1\", \"name\": \"Riley\", \"avatar\": \"R\", \"email\": \"riley@station.space\"}, {\"id\": \"2\", \"name\": \"Chen\", \"avatar\": \"C\", \"email\": \"chen@station.space\"}], \"labels\": [{\"id\": \"label1\", \"name\": \"Bug\", \"color\": \"#EF4444\"}, {\"id\": \"label2\", \"name\": \"Operations\", \"color\": \"#8B5CF6\"}, {\"id\": \"label3\", \"name\": \"Feature\", \"color\": \"#10B981\"}], \"cycles\": [{\"id\": \"cycle53\", \"name\": \"Cycle 53\", \"startDate\": \"Oct 20\", \"endDate\": \"Oct 26\", \"scope\": 114, \"started\": 32, \"completed\": 22, \"status\": \"current\"}, {\"id\": \"cycle54\", \"name\": \"Cycle 54\", \"startDate\": \"Oct 27\", \"endDate\": \"Nov 2\", \"scope\": 0, \"started\": 0, \"completed\": 0, \"status\": \"upcoming\"}], \"projects\": [{\"id\": \"proj1\", \"name\": \"Data Collector\", \"teamId\": \"team1\"}], \"milestones\": [{\"id\": \"milestone3\", \"name\": \"Data Pipeline v2 Release\", \"targetDate\": \"Nov 1\", \"color\": \"#10B981\", \"projectId\": \"proj1\"}], \"teamIdentifier\": \"VSS\"}", + "instructions": "{\"user_prompt\": \"Change the status of issue VSS-102 by following these steps: 1) Click on issue VSS-102 on the kanban board to open it. 2) Locate the Status section in the right sidebar. 3) Click on the status dropdown (currently showing 'Queued'). 4) Select 'In Progress' from the dropdown menu.\", \"success_criteria\": \"Issue VSS-102 must have status set to 'in_progress'.\"}", + "reward_function": "", + "valid_target_states": "[{\"issues\": [{\"id\": \"2\", \"identifier\": \"VSS-102\", \"title\": \"Add solar panel efficiency widget to control panel\", \"status\": \"in_progress\", \"assigneeId\": \"1\", \"labels\": [], \"projectId\": \"proj1\", \"priority\": \"none\"}]}]", + "max_steps": 5, + "timeout_seconds": 60, + "metadata": "{\"category\": \"productivity\", \"difficulty\": \"easy\"}" +} diff --git a/tasks/linear/complete-issue-workflow.json b/tasks/linear/complete-issue-workflow.json new file mode 100644 index 0000000000000000000000000000000000000000..595d1e85978690088ffa25353c13a270ed4d0b72 --- /dev/null +++ b/tasks/linear/complete-issue-workflow.json @@ -0,0 +1,13 @@ +{ + "id": "complete-issue-workflow", + "name": "Complete Issue Workflow", + "description": "Complete an end-to-end workflow: create issue, set priority, assign, add label, move to in_progress, and add comment", + "environment": "{\"type\": \"url\", \"path\": \"https://dojo-spas-production.s3.us-east-1.amazonaws.com/linear/index.html\"}", + "initial_state": "{\"issues\": [], \"users\": [{\"id\": \"1\", \"name\": \"Riley\", \"avatar\": \"R\", \"email\": \"riley@station.space\"}, {\"id\": \"2\", \"name\": \"Chen\", \"avatar\": \"C\", \"email\": \"chen@station.space\"}], \"labels\": [{\"id\": \"label1\", \"name\": \"Bug\", \"color\": \"#EF4444\"}, {\"id\": \"label2\", \"name\": \"Operations\", \"color\": \"#8B5CF6\"}, {\"id\": \"label3\", \"name\": \"Feature\", \"color\": \"#10B981\"}], \"cycles\": [{\"id\": \"cycle53\", \"name\": \"Cycle 53\", \"startDate\": \"Oct 20\", \"endDate\": \"Oct 26\", \"scope\": 114, \"started\": 32, \"completed\": 22, \"status\": \"current\"}, {\"id\": \"cycle54\", \"name\": \"Cycle 54\", \"startDate\": \"Oct 27\", \"endDate\": \"Nov 2\", \"scope\": 0, \"started\": 0, \"completed\": 0, \"status\": \"upcoming\"}], \"projects\": [{\"id\": \"proj1\", \"name\": \"Data Collector\", \"teamId\": \"team1\"}], \"milestones\": [{\"id\": \"milestone3\", \"name\": \"Data Pipeline v2 Release\", \"targetDate\": \"Nov 1\", \"color\": \"#10B981\", \"projectId\": \"proj1\"}], \"teamIdentifier\": \"VSS\"}", + "instructions": "{\"user_prompt\": \"Complete an end-to-end workflow by following these detailed steps: 1) Click the 'Create issue' button (edit/pencil icon) in the top right of the left sidebar to open the new issue modal. 2) Click in the title field and type 'Fix critical database connection bug'. 3) Click in the description field (below title) and type a description. 4) In the bottom section of the modal, locate the Priority dropdown and click it, then select 'High'. 5) Locate the Assignee dropdown and click it, then select 'Chen'. 6) Locate the Labels section and click the 'Add label' button, then select 'Bug'. 7) Locate the Status dropdown (current showing 'Queued') and click it, then select 'In Progress'. 8) Click the 'Create' button at the bottom of the modal to create the issue. 9) Find the newly created issue in the Chen's row of the In Progress column. 10) Click the newly created issue on the kanban board to open it. 11) Scroll to the comments section at the bottom of the issue details page. 12) Click in the comment text field and type 'Starting investigation'. 13) Click the submit button (arrow icon) to post the comment.\", \"success_criteria\": \"A new issue must exist with title 'Fix critical database connection bug', priority='high', assigneeId='2', status='in_progress', Bug label in labels array, and at least one comment containing 'Starting investigation'.\"}", + "reward_function": "_validate_complete_issue_workflow", + "valid_target_states": "", + "max_steps": 25, + "timeout_seconds": 180, + "metadata": "{\"category\": \"productivity\", \"difficulty\": \"hard\"}" +} diff --git a/tasks/linear/create-new-issue.json b/tasks/linear/create-new-issue.json new file mode 100644 index 0000000000000000000000000000000000000000..c3bc5cc6b95c7951ef43bb8638e5c0108c43556a --- /dev/null +++ b/tasks/linear/create-new-issue.json @@ -0,0 +1,13 @@ +{ + "id": "create-new-issue", + "name": "Create New Issue", + "description": "Create a new issue with title, description, assignee, and priority", + "environment": "{\"type\": \"url\", \"path\": \"https://dojo-spas-production.s3.us-east-1.amazonaws.com/linear/index.html\"}", + "initial_state": "{\"issues\": [], \"users\": [{\"id\": \"1\", \"name\": \"Riley\", \"avatar\": \"R\", \"email\": \"riley@station.space\"}, {\"id\": \"2\", \"name\": \"Chen\", \"avatar\": \"C\", \"email\": \"chen@station.space\"}], \"labels\": [{\"id\": \"label1\", \"name\": \"Bug\", \"color\": \"#EF4444\"}, {\"id\": \"label2\", \"name\": \"Operations\", \"color\": \"#8B5CF6\"}, {\"id\": \"label3\", \"name\": \"Feature\", \"color\": \"#10B981\"}], \"cycles\": [{\"id\": \"cycle53\", \"name\": \"Cycle 53\", \"startDate\": \"Oct 20\", \"endDate\": \"Oct 26\", \"scope\": 114, \"started\": 32, \"completed\": 22, \"status\": \"current\"}, {\"id\": \"cycle54\", \"name\": \"Cycle 54\", \"startDate\": \"Oct 27\", \"endDate\": \"Nov 2\", \"scope\": 0, \"started\": 0, \"completed\": 0, \"status\": \"upcoming\"}], \"projects\": [{\"id\": \"proj1\", \"name\": \"Data Collector\", \"teamId\": \"team1\"}], \"milestones\": [{\"id\": \"milestone3\", \"name\": \"Data Pipeline v2 Release\", \"targetDate\": \"Nov 1\", \"color\": \"#10B981\", \"projectId\": \"proj1\"}], \"teamIdentifier\": \"VSS\"}", + "instructions": "{\"user_prompt\": \"Create a new issue by following these steps: 1) Click the 'Create issue' button (edit/pencil icon) in the top right of the left sidebar to open the new issue modal. 2) Click in the title field and type 'Implement user authentication system'. 3) Click in the description field (below the title field) and type 'Add JWT-based authentication'. 4) In the bottom section of the modal, locate the Assignee dropdown and click it, then select 'Chen' from the dropdown. 5) Locate the Priority dropdown and click it, then select 'High' from the dropdown. 6) Click the 'Create' button at the bottom of the modal to create the issue.\", \"success_criteria\": \"A new issue must be created with the title 'Implement user authentication system', description containing 'JWT-based authentication', assigned to Chen (assigneeId='2'), and priority set to 'high'.\"}", + "reward_function": "_validate_create_new_issue", + "valid_target_states": "", + "max_steps": 12, + "timeout_seconds": 90, + "metadata": "{\"category\": \"productivity\", \"difficulty\": \"medium\"}" +} diff --git a/tasks/linear/drag-and-reassign-issue.json b/tasks/linear/drag-and-reassign-issue.json new file mode 100644 index 0000000000000000000000000000000000000000..489232edfce1bd9baae7e9c3549db5b7fdb419d9 --- /dev/null +++ b/tasks/linear/drag-and-reassign-issue.json @@ -0,0 +1,13 @@ +{ + "id": "drag-and-reassign-issue", + "name": "Drag and Reassign Issue", + "description": "Drag issue VSS-106 from Riley's Queued to Chen's In Progress", + "environment": "{\"type\": \"url\", \"path\": \"https://dojo-spas-production.s3.us-east-1.amazonaws.com/linear/index.html\"}", + "initial_state": "{\"issues\": [{\"id\": \"6\", \"identifier\": \"VSS-106\", \"title\": \"Build real-time life support system monitoring API\", \"status\": \"queued\", \"assigneeId\": \"1\", \"labels\": [], \"projectId\": \"proj1\", \"priority\": \"medium\"}], \"users\": [{\"id\": \"1\", \"name\": \"Riley\", \"avatar\": \"R\", \"email\": \"riley@station.space\"}, {\"id\": \"2\", \"name\": \"Chen\", \"avatar\": \"C\", \"email\": \"chen@station.space\"}], \"labels\": [{\"id\": \"label1\", \"name\": \"Bug\", \"color\": \"#EF4444\"}, {\"id\": \"label2\", \"name\": \"Operations\", \"color\": \"#8B5CF6\"}, {\"id\": \"label3\", \"name\": \"Feature\", \"color\": \"#10B981\"}], \"cycles\": [{\"id\": \"cycle53\", \"name\": \"Cycle 53\", \"startDate\": \"Oct 20\", \"endDate\": \"Oct 26\", \"scope\": 114, \"started\": 32, \"completed\": 22, \"status\": \"current\"}, {\"id\": \"cycle54\", \"name\": \"Cycle 54\", \"startDate\": \"Oct 27\", \"endDate\": \"Nov 2\", \"scope\": 0, \"started\": 0, \"completed\": 0, \"status\": \"upcoming\"}], \"projects\": [{\"id\": \"proj1\", \"name\": \"Data Collector\", \"teamId\": \"team1\"}], \"milestones\": [{\"id\": \"milestone3\", \"name\": \"Data Pipeline v2 Release\", \"targetDate\": \"Nov 1\", \"color\": \"#10B981\", \"projectId\": \"proj1\"}], \"teamIdentifier\": \"VSS\"}", + "instructions": "{\"user_prompt\": \"Drag issue VSS-106 to change both its status and assignee by following these steps: 1) Locate issue VSS-106 in Riley's row in the Queued column on the kanban board. 2) Click and hold on the issue card. 3) Drag the issue to Chen's row in the In Progress column. 4) Release to drop the issue (this will change both the status to 'In Progress' and the assignee to 'Chen').\", \"success_criteria\": \"Issue VSS-106 must have status='in_progress' and assigneeId='2' (Chen).\"}", + "reward_function": "_validate_drag_and_reassign_issue", + "valid_target_states": "", + "max_steps": 8, + "timeout_seconds": 90, + "metadata": "{\"category\": \"productivity\", \"difficulty\": \"medium\"}" +} diff --git a/tasks/linear/drag-issue-different-column.json b/tasks/linear/drag-issue-different-column.json new file mode 100644 index 0000000000000000000000000000000000000000..12f2347aa06e4d75584a721b383c686871a87977 --- /dev/null +++ b/tasks/linear/drag-issue-different-column.json @@ -0,0 +1,13 @@ +{ + "id": "drag-issue-different-column", + "name": "Drag issue to different column", + "description": "Drag issue VSS-101 from Queued to In Progress column for user Riley", + "environment": "{\"type\": \"url\", \"path\": \"https://dojo-spas-production.s3.us-east-1.amazonaws.com/linear/index.html\"}", + "initial_state": "{\"issues\": [{\"id\": \"1\", \"identifier\": \"VSS-101\", \"title\": \"Design oxygen level monitoring dashboard\", \"status\": \"queued\", \"assigneeId\": \"1\", \"labels\": [], \"projectId\": \"proj1\", \"priority\": \"none\"}, {\"id\": \"2\", \"identifier\": \"VSS-102\", \"title\": \"Add solar panel efficiency widget to control panel\", \"status\": \"queued\", \"assigneeId\": \"1\", \"labels\": [], \"projectId\": \"proj1\", \"priority\": \"none\"}, {\"id\": \"6\", \"identifier\": \"VSS-106\", \"title\": \"Build real-time life support system monitoring API\", \"status\": \"in_progress\", \"assigneeId\": \"1\", \"labels\": [], \"projectId\": \"proj1\", \"priority\": \"medium\"}], \"users\": [{\"id\": \"1\", \"name\": \"Riley\", \"avatar\": \"R\", \"email\": \"riley@station.space\"}, {\"id\": \"2\", \"name\": \"Chen\", \"avatar\": \"C\", \"email\": \"chen@station.space\"}], \"labels\": [{\"id\": \"label1\", \"name\": \"Bug\", \"color\": \"#EF4444\"}, {\"id\": \"label2\", \"name\": \"Operations\", \"color\": \"#8B5CF6\"}, {\"id\": \"label3\", \"name\": \"Feature\", \"color\": \"#10B981\"}], \"cycles\": [{\"id\": \"cycle53\", \"name\": \"Cycle 53\", \"startDate\": \"Oct 20\", \"endDate\": \"Oct 26\", \"scope\": 114, \"started\": 32, \"completed\": 22, \"status\": \"current\"}, {\"id\": \"cycle54\", \"name\": \"Cycle 54\", \"startDate\": \"Oct 27\", \"endDate\": \"Nov 2\", \"scope\": 0, \"started\": 0, \"completed\": 0, \"status\": \"upcoming\"}], \"projects\": [{\"id\": \"proj1\", \"name\": \"Data Collector\", \"teamId\": \"team1\"}], \"milestones\": [{\"id\": \"milestone3\", \"name\": \"Data Pipeline v2 Release\", \"targetDate\": \"Nov 1\", \"color\": \"#10B981\", \"projectId\": \"proj1\"}], \"teamIdentifier\": \"VSS\"}", + "instructions": "{\"user_prompt\": \"Drag issue VSS-101 to a different column by following these steps: 1) Locate issue VSS-101 in Riley's row in the Queued column on the kanban board. 2) Click and hold on the issue card. 3) Drag the issue to the In Progress column in Riley's row. 4) Release to drop the issue in its new location.\", \"success_criteria\": \"Issue VSS-101 must be in the In Progress column and still assigned to user Riley (assigneeId=1).\"}", + "reward_function": "_validate_drag_to_different_column", + "valid_target_states": "", + "max_steps": 10, + "timeout_seconds": 120, + "metadata": "{\"category\": \"productivity\", \"difficulty\": \"medium\"}" +} diff --git a/tasks/linear/drag-two-issues-same-user.json b/tasks/linear/drag-two-issues-same-user.json new file mode 100644 index 0000000000000000000000000000000000000000..f78169af1d9cb234fe77285652e9d73a67a1e6ab --- /dev/null +++ b/tasks/linear/drag-two-issues-same-user.json @@ -0,0 +1,13 @@ +{ + "id": "drag-two-issues-same-user", + "name": "Drag two issues for same user", + "description": "Drag VSS-101 to In Progress and VSS-106 to Queued, both for user Riley", + "environment": "{\"type\": \"url\", \"path\": \"https://dojo-spas-production.s3.us-east-1.amazonaws.com/linear/index.html\"}", + "initial_state": "{\"issues\": [{\"id\": \"1\", \"identifier\": \"VSS-101\", \"title\": \"Design oxygen level monitoring dashboard\", \"status\": \"queued\", \"assigneeId\": \"1\", \"labels\": [], \"projectId\": \"proj1\", \"priority\": \"none\"}, {\"id\": \"6\", \"identifier\": \"VSS-106\", \"title\": \"Build real-time life support system monitoring API\", \"status\": \"in_progress\", \"assigneeId\": \"1\", \"labels\": [], \"projectId\": \"proj1\", \"priority\": \"medium\"}], \"users\": [{\"id\": \"1\", \"name\": \"Riley\", \"avatar\": \"R\", \"email\": \"riley@station.space\"}, {\"id\": \"2\", \"name\": \"Chen\", \"avatar\": \"C\", \"email\": \"chen@station.space\"}], \"labels\": [{\"id\": \"label1\", \"name\": \"Bug\", \"color\": \"#EF4444\"}, {\"id\": \"label2\", \"name\": \"Operations\", \"color\": \"#8B5CF6\"}, {\"id\": \"label3\", \"name\": \"Feature\", \"color\": \"#10B981\"}], \"cycles\": [{\"id\": \"cycle53\", \"name\": \"Cycle 53\", \"startDate\": \"Oct 20\", \"endDate\": \"Oct 26\", \"scope\": 114, \"started\": 32, \"completed\": 22, \"status\": \"current\"}, {\"id\": \"cycle54\", \"name\": \"Cycle 54\", \"startDate\": \"Oct 27\", \"endDate\": \"Nov 2\", \"scope\": 0, \"started\": 0, \"completed\": 0, \"status\": \"upcoming\"}], \"projects\": [{\"id\": \"proj1\", \"name\": \"Data Collector\", \"teamId\": \"team1\"}], \"milestones\": [{\"id\": \"milestone3\", \"name\": \"Data Pipeline v2 Release\", \"targetDate\": \"Nov 1\", \"color\": \"#10B981\", \"projectId\": \"proj1\"}], \"teamIdentifier\": \"VSS\"}", + "instructions": "{\"user_prompt\": \"Perform two drag operations in Riley's board row by following these detailed steps: 1) First drag: Locate issue VSS-101 in Riley's row in the Queued column, click and hold on the issue card, drag it to the In Progress column in Riley's row, and release to drop. 2) Second drag: Locate issue VSS-106 in Riley's row in the In Progress column, click and hold on the issue card, drag it to the Queued column in Riley's row, and release to drop. Both issues should remain assigned to Riley.\", \"success_criteria\": \"Issue VSS-101 must be in In Progress column and issue VSS-106 must be in Queued column, both assigned to user Riley (assigneeId=1).\"}", + "reward_function": "_validate_drag_two_issues_same_user", + "valid_target_states": "", + "max_steps": 15, + "timeout_seconds": 120, + "metadata": "{\"category\": \"productivity\", \"difficulty\": \"hard\"}" +} diff --git a/tasks/linear/linear-drag-issue-different-column.json b/tasks/linear/linear-drag-issue-different-column.json deleted file mode 100644 index 4488365b417cc407daddedfbbe72ed2f3f699684..0000000000000000000000000000000000000000 --- a/tasks/linear/linear-drag-issue-different-column.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "id": "linear-drag-issue-different-column", - "name": "Drag issue to different column", - "description": "Drag issue VSS-101 from Queued to In Progress column for user Riley", - "environment": "{\"type\": \"url\", \"path\": \"https://dojo-spas-production.s3.us-east-1.amazonaws.com/linear/index.html\"}", - "initial_state": "{\"issues\": [{\"id\": \"1\", \"identifier\": \"VSS-101\", \"title\": \"Design oxygen level monitoring dashboard\", \"status\": \"queued\", \"assigneeId\": \"1\", \"labels\": [], \"projectId\": \"proj1\", \"priority\": \"none\"}, {\"id\": \"2\", \"identifier\": \"VSS-102\", \"title\": \"Add solar panel efficiency widget to control panel\", \"status\": \"queued\", \"assigneeId\": \"1\", \"labels\": [], \"projectId\": \"proj1\", \"priority\": \"none\"}, {\"id\": \"6\", \"identifier\": \"VSS-106\", \"title\": \"Build real-time life support system monitoring API\", \"status\": \"in_progress\", \"assigneeId\": \"1\", \"labels\": [], \"projectId\": \"proj1\", \"priority\": \"medium\"}], \"users\": [{\"id\": \"1\", \"name\": \"Riley\", \"avatar\": \"R\", \"email\": \"riley@station.space\"}, {\"id\": \"2\", \"name\": \"Chen\", \"avatar\": \"C\", \"email\": \"chen@station.space\"}], \"labels\": [], \"cycles\": [], \"projects\": [], \"milestones\": []}", - "instructions": "{\"user_prompt\": \"In the Linear board, drag the issue 'VSS-101' (currently in the Queued column) to the In Progress column. Keep it assigned to user 'Riley'.\", \"success_criteria\": \"Issue VSS-101 must be in the In Progress column and still assigned to user Riley (assigneeId=1).\"}", - "reward_function": "_validate_drag_to_different_column", - "valid_target_states": "", - "max_steps": 10, - "timeout_seconds": 120, - "metadata": "{\"category\": \"productivity\", \"difficulty\": \"medium\"}" -} \ No newline at end of file diff --git a/tasks/linear/linear-drag-two-issues-same-user.json b/tasks/linear/linear-drag-two-issues-same-user.json deleted file mode 100644 index c664c37bd919abf0b3f65993106d447e635945fd..0000000000000000000000000000000000000000 --- a/tasks/linear/linear-drag-two-issues-same-user.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "id": "linear-drag-two-issues-same-user", - "name": "Drag two issues for same user", - "description": "Drag VSS-101 to In Progress and VSS-106 to Queued, both for user Riley", - "environment": "{\"type\": \"url\", \"path\": \"https://dojo-spas-production.s3.us-east-1.amazonaws.com/linear/index.html\"}", - "initial_state": "{\"issues\": [{\"id\": \"1\", \"identifier\": \"VSS-101\", \"title\": \"Design oxygen level monitoring dashboard\", \"status\": \"queued\", \"assigneeId\": \"1\", \"labels\": [], \"projectId\": \"proj1\", \"priority\": \"none\"}, {\"id\": \"6\", \"identifier\": \"VSS-106\", \"title\": \"Build real-time life support system monitoring API\", \"status\": \"in_progress\", \"assigneeId\": \"1\", \"labels\": [], \"projectId\": \"proj1\", \"priority\": \"medium\"}], \"users\": [{\"id\": \"1\", \"name\": \"Riley\", \"avatar\": \"R\", \"email\": \"riley@station.space\"}], \"labels\": [], \"cycles\": [], \"projects\": [], \"milestones\": [], \"teamIdentifier\": \"VSS\", \"isNewIssueModalOpen\": false}", - "instructions": "{\"user_prompt\": \"In the Linear board for user 'Riley': 1) Drag issue VSS-101 from Queued to In Progress column, and 2) Drag issue VSS-106 from In Progress to Queued column. Both issues should remain assigned to Riley.\", \"success_criteria\": \"Issue VSS-101 must be in In Progress column and issue VSS-106 must be in Queued column, both assigned to user Riley (assigneeId=1).\"}", - "reward_function": "_validate_drag_two_issues_same_user", - "valid_target_states": "", - "max_steps": 15, - "timeout_seconds": 120, - "metadata": "{\"category\": \"productivity\", \"difficulty\": \"hard\"}" -} \ No newline at end of file diff --git a/tasks/linear/multi-issue-reorganization.json b/tasks/linear/multi-issue-reorganization.json new file mode 100644 index 0000000000000000000000000000000000000000..d7cab7e92eeee6c7ffb9b80802ad2475c38549c6 --- /dev/null +++ b/tasks/linear/multi-issue-reorganization.json @@ -0,0 +1,13 @@ +{ + "id": "multi-issue-reorganization", + "name": "Multi-Issue Reorganization", + "description": "Reorganize three issues by dragging them to different columns and assignees", + "environment": "{\"type\": \"url\", \"path\": \"https://dojo-spas-production.s3.us-east-1.amazonaws.com/linear/index.html\"}", + "initial_state": "{\"issues\": [{\"id\": \"1\", \"identifier\": \"VSS-101\", \"title\": \"Design oxygen level monitoring dashboard\", \"status\": \"queued\", \"assigneeId\": \"1\", \"labels\": [], \"projectId\": \"proj1\", \"priority\": \"none\"}, {\"id\": \"2\", \"identifier\": \"VSS-102\", \"title\": \"Add solar panel efficiency widget to control panel\", \"status\": \"queued\", \"assigneeId\": \"1\", \"labels\": [], \"projectId\": \"proj1\", \"priority\": \"none\"}, {\"id\": \"3\", \"identifier\": \"VSS-103\", \"title\": \"Create crew member profile cards with avatar animations\", \"status\": \"queued\", \"assigneeId\": \"1\", \"labels\": [], \"projectId\": \"proj1\", \"priority\": \"none\"}], \"users\": [{\"id\": \"1\", \"name\": \"Riley\", \"avatar\": \"R\", \"email\": \"riley@station.space\"}, {\"id\": \"2\", \"name\": \"Chen\", \"avatar\": \"C\", \"email\": \"chen@station.space\"}, {\"id\": \"3\", \"name\": \"Kowalski\", \"avatar\": \"K\", \"email\": \"kowalski@station.space\"}], \"labels\": [{\"id\": \"label1\", \"name\": \"Bug\", \"color\": \"#EF4444\"}, {\"id\": \"label2\", \"name\": \"Operations\", \"color\": \"#8B5CF6\"}, {\"id\": \"label3\", \"name\": \"Feature\", \"color\": \"#10B981\"}], \"cycles\": [{\"id\": \"cycle53\", \"name\": \"Cycle 53\", \"startDate\": \"Oct 20\", \"endDate\": \"Oct 26\", \"scope\": 114, \"started\": 32, \"completed\": 22, \"status\": \"current\"}, {\"id\": \"cycle54\", \"name\": \"Cycle 54\", \"startDate\": \"Oct 27\", \"endDate\": \"Nov 2\", \"scope\": 0, \"started\": 0, \"completed\": 0, \"status\": \"upcoming\"}], \"projects\": [{\"id\": \"proj1\", \"name\": \"Data Collector\", \"teamId\": \"team1\"}], \"milestones\": [{\"id\": \"milestone3\", \"name\": \"Data Pipeline v2 Release\", \"targetDate\": \"Nov 1\", \"color\": \"#10B981\", \"projectId\": \"proj1\"}], \"teamIdentifier\": \"VSS\"}", + "instructions": "{\"user_prompt\": \"Reorganize the board by performing three drag operations with detailed steps: 1) First drag: Locate issue VSS-101 in Riley's row in the Queued column, click and hold on the issue card, drag it to Chen's row in the In Progress column, and release to drop. 2) Second drag: Locate issue VSS-102 in Riley's row in the Queued column, click and hold on the issue card, drag it to Kowalski's row in the Blocked column, and release to drop. 3) Third drag: Locate issue VSS-103 in Riley's row in the Queued column, click and hold on the issue card, drag it to Riley's row in the In Review column, and release to drop.\", \"success_criteria\": \"VSS-101 must have status='in_progress' and assigneeId='2', VSS-102 must have status='blocked' and assigneeId='3', VSS-103 must have status='in_review' and assigneeId='1'.\"}", + "reward_function": "_validate_multi_issue_reorganization", + "valid_target_states": "", + "max_steps": 20, + "timeout_seconds": 120, + "metadata": "{\"category\": \"productivity\", \"difficulty\": \"hard\"}" +} diff --git a/tasks/linear/reassign-issue.json b/tasks/linear/reassign-issue.json new file mode 100644 index 0000000000000000000000000000000000000000..80f7ad8e2b9053f3e521157e3f9f9ecd26e20d6e --- /dev/null +++ b/tasks/linear/reassign-issue.json @@ -0,0 +1,13 @@ +{ + "id": "reassign-issue", + "name": "Reassign Issue", + "description": "Reassign issue VSS-103 from Riley to Chen", + "environment": "{\"type\": \"url\", \"path\": \"https://dojo-spas-production.s3.us-east-1.amazonaws.com/linear/index.html\"}", + "initial_state": "{\"issues\": [{\"id\": \"3\", \"identifier\": \"VSS-103\", \"title\": \"Create crew member profile cards with avatar animations\", \"status\": \"queued\", \"assigneeId\": \"1\", \"labels\": [], \"projectId\": \"proj1\", \"priority\": \"none\"}], \"users\": [{\"id\": \"1\", \"name\": \"Riley\", \"avatar\": \"R\", \"email\": \"riley@station.space\"}, {\"id\": \"2\", \"name\": \"Chen\", \"avatar\": \"C\", \"email\": \"chen@station.space\"}], \"labels\": [{\"id\": \"label1\", \"name\": \"Bug\", \"color\": \"#EF4444\"}, {\"id\": \"label2\", \"name\": \"Operations\", \"color\": \"#8B5CF6\"}, {\"id\": \"label3\", \"name\": \"Feature\", \"color\": \"#10B981\"}], \"cycles\": [{\"id\": \"cycle53\", \"name\": \"Cycle 53\", \"startDate\": \"Oct 20\", \"endDate\": \"Oct 26\", \"scope\": 114, \"started\": 32, \"completed\": 22, \"status\": \"current\"}, {\"id\": \"cycle54\", \"name\": \"Cycle 54\", \"startDate\": \"Oct 27\", \"endDate\": \"Nov 2\", \"scope\": 0, \"started\": 0, \"completed\": 0, \"status\": \"upcoming\"}], \"projects\": [{\"id\": \"proj1\", \"name\": \"Data Collector\", \"teamId\": \"team1\"}], \"milestones\": [{\"id\": \"milestone3\", \"name\": \"Data Pipeline v2 Release\", \"targetDate\": \"Nov 1\", \"color\": \"#10B981\", \"projectId\": \"proj1\"}], \"teamIdentifier\": \"VSS\"}", + "instructions": "{\"user_prompt\": \"Reassign issue VSS-103 from Riley to Chen by following these steps: 1) Click on issue VSS-103 on the kanban board to open it. 2) Locate the Assignee section in the right sidebar. 3) Click on the assignee dropdown (currently showing 'Riley'). 4) Select 'Chen' from the dropdown menu.\", \"success_criteria\": \"Issue VSS-103 must be assigned to Chen (assigneeId='2').\"}", + "reward_function": "", + "valid_target_states": "[{\"issues\": [{\"id\": \"3\", \"identifier\": \"VSS-103\", \"title\": \"Create crew member profile cards with avatar animations\", \"status\": \"queued\", \"assigneeId\": \"2\", \"labels\": [], \"projectId\": \"proj1\", \"priority\": \"none\"}]}]", + "max_steps": 5, + "timeout_seconds": 60, + "metadata": "{\"category\": \"productivity\", \"difficulty\": \"easy\"}" +} diff --git a/tasks/linear/update-issue-properties.json b/tasks/linear/update-issue-properties.json new file mode 100644 index 0000000000000000000000000000000000000000..d5c69376624c182e254ef3a022664469dc58c998 --- /dev/null +++ b/tasks/linear/update-issue-properties.json @@ -0,0 +1,13 @@ +{ + "id": "update-issue-properties", + "name": "Update Issue Properties", + "description": "Change both priority to urgent and add Operations label to VSS-105", + "environment": "{\"type\": \"url\", \"path\": \"https://dojo-spas-production.s3.us-east-1.amazonaws.com/linear/index.html\"}", + "initial_state": "{\"issues\": [{\"id\": \"5\", \"identifier\": \"VSS-105\", \"title\": \"Implement gravity simulator physics calculations\", \"status\": \"queued\", \"assigneeId\": \"2\", \"labels\": [], \"projectId\": \"proj1\", \"priority\": \"none\"}], \"users\": [{\"id\": \"1\", \"name\": \"Riley\", \"avatar\": \"R\", \"email\": \"riley@station.space\"}, {\"id\": \"2\", \"name\": \"Chen\", \"avatar\": \"C\", \"email\": \"chen@station.space\"}], \"labels\": [{\"id\": \"label1\", \"name\": \"Bug\", \"color\": \"#EF4444\"}, {\"id\": \"label2\", \"name\": \"Operations\", \"color\": \"#8B5CF6\"}, {\"id\": \"label3\", \"name\": \"Feature\", \"color\": \"#10B981\"}], \"cycles\": [{\"id\": \"cycle53\", \"name\": \"Cycle 53\", \"startDate\": \"Oct 20\", \"endDate\": \"Oct 26\", \"scope\": 114, \"started\": 32, \"completed\": 22, \"status\": \"current\"}, {\"id\": \"cycle54\", \"name\": \"Cycle 54\", \"startDate\": \"Oct 27\", \"endDate\": \"Nov 2\", \"scope\": 0, \"started\": 0, \"completed\": 0, \"status\": \"upcoming\"}], \"projects\": [{\"id\": \"proj1\", \"name\": \"Data Collector\", \"teamId\": \"team1\"}], \"milestones\": [{\"id\": \"milestone3\", \"name\": \"Data Pipeline v2 Release\", \"targetDate\": \"Nov 1\", \"color\": \"#10B981\", \"projectId\": \"proj1\"}], \"teamIdentifier\": \"VSS\"}", + "instructions": "{\"user_prompt\": \"Update issue VSS-105 by following these steps: 1) Click on issue VSS-105 on the kanban board to open it. 2) First, locate the Priority section in the right sidebar and click the priority dropdown. 3) Select 'Urgent' from the dropdown menu. 4) Then, locate the Labels section in the right sidebar. 5) Click the 'Add label' button to open the labels dropdown. 6) Click on the 'Operations' label to add it to the issue.\", \"success_criteria\": \"Issue VSS-105 must have priority='urgent' and contain the Operations label (id='label2') in its labels array.\"}", + "reward_function": "_validate_update_issue_properties", + "valid_target_states": "", + "max_steps": 10, + "timeout_seconds": 90, + "metadata": "{\"category\": \"productivity\", \"difficulty\": \"medium\"}" +} diff --git a/tasks/linear/view-issue-details.json b/tasks/linear/view-issue-details.json new file mode 100644 index 0000000000000000000000000000000000000000..5a1b3c1922f291222c6b98d2f00ed6caac8e1cf8 --- /dev/null +++ b/tasks/linear/view-issue-details.json @@ -0,0 +1,13 @@ +{ + "id": "view-issue-details", + "name": "View Issue Details", + "description": "Click on issue VSS-104 to view its details", + "environment": "{\"type\": \"url\", \"path\": \"https://dojo-spas-production.s3.us-east-1.amazonaws.com/linear/index.html\"}", + "initial_state": "{\"issues\": [{\"id\": \"4\", \"identifier\": \"VSS-104\", \"title\": \"Build 3D station rotation visualizer component\", \"status\": \"queued\", \"assigneeId\": \"1\", \"labels\": [], \"projectId\": \"proj1\", \"priority\": \"none\"}], \"users\": [{\"id\": \"1\", \"name\": \"Riley\", \"avatar\": \"R\", \"email\": \"riley@station.space\"}, {\"id\": \"2\", \"name\": \"Chen\", \"avatar\": \"C\", \"email\": \"chen@station.space\"}], \"labels\": [{\"id\": \"label1\", \"name\": \"Bug\", \"color\": \"#EF4444\"}, {\"id\": \"label2\", \"name\": \"Operations\", \"color\": \"#8B5CF6\"}, {\"id\": \"label3\", \"name\": \"Feature\", \"color\": \"#10B981\"}], \"cycles\": [{\"id\": \"cycle53\", \"name\": \"Cycle 53\", \"startDate\": \"Oct 20\", \"endDate\": \"Oct 26\", \"scope\": 114, \"started\": 32, \"completed\": 22, \"status\": \"current\"}, {\"id\": \"cycle54\", \"name\": \"Cycle 54\", \"startDate\": \"Oct 27\", \"endDate\": \"Nov 2\", \"scope\": 0, \"started\": 0, \"completed\": 0, \"status\": \"upcoming\"}], \"projects\": [{\"id\": \"proj1\", \"name\": \"Data Collector\", \"teamId\": \"team1\"}], \"milestones\": [{\"id\": \"milestone3\", \"name\": \"Data Pipeline v2 Release\", \"targetDate\": \"Nov 1\", \"color\": \"#10B981\", \"projectId\": \"proj1\"}], \"teamIdentifier\": \"VSS\"}", + "instructions": "{\"user_prompt\": \"Click on issue VSS-104 on the kanban board to open and view its details.\", \"success_criteria\": \"The taskId must be set to '4' to indicate issue VSS-104 is being viewed.\"}", + "reward_function": "", + "valid_target_states": "[{\"taskId\": \"4\"}]", + "max_steps": 3, + "timeout_seconds": 30, + "metadata": "{\"category\": \"productivity\", \"difficulty\": \"easy\"}" +} diff --git a/tasks/linkedin/complex-people-search.json b/tasks/linkedin/complex-people-search.json new file mode 100644 index 0000000000000000000000000000000000000000..a1d6c1d96f0eee95edec8938892498867d6b4db6 --- /dev/null +++ b/tasks/linkedin/complex-people-search.json @@ -0,0 +1,13 @@ +{ + "id": "complex-people-search", + "name": "Complex People Search with Multiple Filters", + "description": "Perform a comprehensive people search with query and multiple sub-filters including connections, locations, companies, and industry", + "environment": "{\"type\": \"url\", \"path\": \"https://dojo-spas-production.s3.us-east-1.amazonaws.com/linkedin/index.html\"}", + "initial_state": "{\"currentView\": \"feed\",\"viewedUserId\": \"1\",\"searchQuery\": \"\",\"searchFilter\": {\"mainCategory\": \"All\",\"connections\": [],\"locations\": [],\"companies\": [],\"industry\": [],\"companySize\": [],\"datePosted\": [],\"underTenApplicants\": false},\"currentUser\": {\"id\": \"1\",\"name\": \"Dzaka Athif\",\"title\": \"Junior Forward Deployed Engineer\",\"company\": \"Chakra\",\"location\": \"Sydney, New South Wales\",\"avatar\": \"https://i.pravatar.cc/150?img=33\",\"coverImage\": \"linear-gradient(135deg, #667eea 0%, #764ba2 100%)\",\"isVerified\": true,\"connectionCount\": 477,\"contactInfo\": \"dzaka.athif@example.com\",\"connectionDegree\": \"1st\",\"currentCompany\": \"Chakra\",\"regions\": [\"Asia Pacific\"]},\"posts\": [],\"users\": [{\"id\": \"1\",\"name\": \"Dzaka Athif\",\"title\": \"Junior Forward Deployed Engineer\",\"company\": \"Chakra\",\"location\": \"Sydney, New South Wales\",\"avatar\": \"https://i.pravatar.cc/150?img=33\",\"coverImage\": \"linear-gradient(135deg, #667eea 0%, #764ba2 100%)\",\"isVerified\": true,\"connectionCount\": 477,\"contactInfo\": \"dzaka.athif@example.com\",\"connectionDegree\": \"1st\",\"currentCompany\": \"Chakra\",\"regions\": [\"Asia Pacific\"]},{\"id\": \"2\",\"name\": \"John Smith\",\"title\": \"Software Engineer\",\"company\": \"Tech Corp\",\"location\": \"San Francisco, CA\",\"avatar\": \"https://i.pravatar.cc/150?img=12\",\"coverImage\": \"linear-gradient(135deg, #667eea 0%, #764ba2 100%)\",\"isVerified\": false,\"connectionCount\": 250,\"contactInfo\": \"john.smith@example.com\",\"connectionDegree\": \"2nd\",\"currentCompany\": \"Tech Corp\",\"regions\": [\"North America\"]},{\"id\": \"3\",\"name\": \"Jane Doe\",\"title\": \"Product Manager\",\"company\": \"StartUp Inc\",\"location\": \"New York, NY\",\"avatar\": \"https://i.pravatar.cc/150?img=45\",\"coverImage\": \"linear-gradient(135deg, #667eea 0%, #764ba2 100%)\",\"isVerified\": true,\"connectionCount\": 512,\"contactInfo\": \"jane.doe@example.com\",\"connectionDegree\": \"1st\",\"currentCompany\": \"StartUp Inc\",\"regions\": [\"North America\"],\"industry\": \"Technology\"},{\"id\": \"4\",\"name\": \"Sarah Johnson\",\"title\": \"Senior Product Manager\",\"company\": \"StartUp Inc\",\"location\": \"New York, NY\",\"avatar\": \"https://i.pravatar.cc/150?img=25\",\"coverImage\": \"linear-gradient(135deg, #667eea 0%, #764ba2 100%)\",\"isVerified\": true,\"connectionCount\": 892,\"contactInfo\": \"sarah.johnson@example.com\",\"connectionDegree\": \"1st\",\"currentCompany\": \"StartUp Inc\",\"regions\": [\"North America\"]},{\"id\": \"5\",\"name\": \"Jane Smith\",\"title\": \"Data Scientist\",\"company\": \"Tech Corp\",\"location\": \"San Francisco, CA\",\"avatar\": \"https://i.pravatar.cc/150?img=32\",\"coverImage\": \"linear-gradient(135deg, #667eea 0%, #764ba2 100%)\",\"isVerified\": false,\"connectionCount\": 320,\"contactInfo\": \"jane.smith@example.com\",\"connectionDegree\": \"1st\",\"currentCompany\": \"Tech Corp\",\"regions\": [\"North America\"],\"industry\": \"Technology\"},{\"id\": \"6\",\"name\": \"Jane Wilson\",\"title\": \"Marketing Director\",\"company\": \"Global Marketing Co\",\"location\": \"London, UK\",\"avatar\": \"https://i.pravatar.cc/150?img=28\",\"coverImage\": \"linear-gradient(135deg, #667eea 0%, #764ba2 100%)\",\"isVerified\": true,\"connectionCount\": 640,\"contactInfo\": \"jane.wilson@example.com\",\"connectionDegree\": \"1st\",\"currentCompany\": \"Global Marketing Co\",\"regions\": [\"Europe\"],\"industry\": \"Marketing\"},{\"id\": \"7\",\"name\": \"Jane Chen\",\"title\": \"Software Architect\",\"company\": \"Innovate Labs\",\"location\": \"Singapore\",\"avatar\": \"https://i.pravatar.cc/150?img=21\",\"coverImage\": \"linear-gradient(135deg, #667eea 0%, #764ba2 100%)\",\"isVerified\": true,\"connectionCount\": 445,\"contactInfo\": \"jane.chen@example.com\",\"connectionDegree\": \"3rd+\",\"currentCompany\": \"Innovate Labs\",\"regions\": [\"Asia Pacific\"],\"industry\": \"Technology\"}],\"companies\": [],\"jobs\": [],\"searchResults\": {\"people\": [],\"companies\": [],\"jobs\": [],\"allPeople\": [],\"allCompanies\": [],\"allJobs\": [],\"totalPeople\": 0,\"totalCompanies\": 0,\"totalJobs\": 0,\"peopleQueryOnly\": [],\"companiesQueryOnly\": [],\"jobsQueryOnly\": []}}", + "instructions": "{\"user_prompt\": \"You are on the LinkedIn feed page. Perform a comprehensive people search with multiple filters: 1) Click the search input bar at the top navigation, 2) Type 'jane' in the search field, 3) Click 'see all results' in the dropdown to go to the search results page, 4) Click on the 'People' filter button in the top filter bar to switch to People view, 5) Click the '1st' connection degree button to filter by 1st degree connections, 6) Click on the 'Locations' filter dropdown and select 'North America', 7) Click on the 'Companies' filter dropdown and select 'StartUp Inc', 8) Click on the 'Industry' filter dropdown and select 'Technology'. Verify that Jane Doe appears in the filtered results.\", \"success_criteria\": \"The app must be on search view with mainCategory='People', searchQuery containing 'jane', and searchFilter containing connections=['1st'], locations including 'North America', companies including 'StartUp Inc', and industry including 'Technology'.\"}", + "reward_function": "", + "valid_target_states": "[{\"currentView\": \"search\", \"searchQuery\": \"jane\", \"searchFilter\": {\"mainCategory\": \"People\", \"connections\": [\"1st\"], \"locations\": [\"North America\"], \"companies\": [\"StartUp Inc\"], \"industry\": [\"Technology\"], \"companySize\": [], \"datePosted\": [], \"underTenApplicants\": false}, \"searchResults\": {\"people\": [{\"id\": \"3\", \"name\": \"Jane Doe\", \"title\": \"Product Manager\", \"company\": \"StartUp Inc\", \"location\": \"New York, NY\", \"avatar\": \"https://i.pravatar.cc/150?img=45\", \"coverImage\": \"linear-gradient(135deg, #667eea 0%, #764ba2 100%)\", \"isVerified\": true, \"connectionCount\": 512, \"contactInfo\": \"jane.doe@example.com\", \"connectionDegree\": \"1st\", \"currentCompany\": \"StartUp Inc\", \"regions\": [\"North America\"], \"industry\": \"Technology\"}], \"companies\": [], \"jobs\": [], \"allPeople\": [], \"allCompanies\": [], \"allJobs\": [], \"totalPeople\": 1, \"totalCompanies\": 0, \"totalJobs\": 0, \"peopleQueryOnly\": [], \"companiesQueryOnly\": [], \"jobsQueryOnly\": []}}]", + "max_steps": 18, + "timeout_seconds": 150, + "metadata": "{\"category\": \"social\", \"difficulty\": \"hard\"}" +} diff --git a/tasks/linkedin/filter-by-connection.json b/tasks/linkedin/filter-by-connection.json new file mode 100644 index 0000000000000000000000000000000000000000..b4fb7b0fab6f99a0ba3e00025e4596c0355e6b25 --- /dev/null +++ b/tasks/linkedin/filter-by-connection.json @@ -0,0 +1,13 @@ +{ + "id": "filter-by-connection", + "name": "Filter Search by Connection Degree", + "description": "Apply a connection degree filter to search results", + "environment": "{\"type\": \"url\", \"path\": \"https://dojo-spas-production.s3.us-east-1.amazonaws.com/linkedin/index.html\"}", + "initial_state": "{\"currentView\": \"search\", \"viewedUserId\": \"1\", \"searchQuery\": \"engineer\", \"searchFilter\": {\"mainCategory\": \"People\", \"connections\": [], \"locations\": [], \"companies\": [], \"industry\": [], \"companySize\": [], \"datePosted\": [], \"underTenApplicants\": false}, \"currentUser\": {\"id\": \"1\", \"name\": \"Dzaka Athif\", \"title\": \"Junior Forward Deployed Engineer\", \"company\": \"Chakra\", \"location\": \"Sydney, New South Wales\", \"avatar\": \"https://i.pravatar.cc/150?img=33\", \"coverImage\": \"linear-gradient(135deg, #667eea 0%, #764ba2 100%)\", \"isVerified\": true, \"connectionCount\": 477, \"contactInfo\": \"dzaka.athif@example.com\", \"connectionDegree\": \"1st\", \"currentCompany\": \"Chakra\", \"regions\": [\"Asia Pacific\"]}, \"posts\": [], \"users\": [], \"companies\": [], \"jobs\": [], \"searchResults\": {\"people\": [], \"companies\": [], \"jobs\": [], \"allPeople\": [], \"allCompanies\": [], \"allJobs\": [], \"totalPeople\": 0, \"totalCompanies\": 0, \"totalJobs\": 0, \"peopleQueryOnly\": [], \"companiesQueryOnly\": [], \"jobsQueryOnly\": []}}", + "instructions": "{\"user_prompt\": \"You are on the search results page for 'engineer' with the People filter active. Click on the '1st' connection degree button to filter results to show only 1st degree connections.\", \"success_criteria\": \"The searchFilter must have connections array containing '1st' while maintaining currentView='search' and mainCategory='People'.\"}", + "reward_function": "", + "valid_target_states": "[{\"currentView\": \"search\", \"searchFilter\": {\"mainCategory\": \"People\", \"connections\": [\"1st\"], \"locations\": [], \"companies\": [], \"industry\": [], \"companySize\": [], \"datePosted\": [], \"underTenApplicants\": false}}]", + "max_steps": 5, + "timeout_seconds": 45, + "metadata": "{\"category\": \"social\", \"difficulty\": \"easy\"}" +} diff --git a/tasks/linkedin/navigate-and-compare-profiles.json b/tasks/linkedin/navigate-and-compare-profiles.json new file mode 100644 index 0000000000000000000000000000000000000000..f48648531b1d15ed9ce14663bc51c4d8e63d375f --- /dev/null +++ b/tasks/linkedin/navigate-and-compare-profiles.json @@ -0,0 +1,13 @@ +{ + "id": "navigate-and-compare-profiles", + "name": "Navigate and Compare Multiple Profiles", + "description": "Search for users, navigate between their profiles to examine details, and navigate back to search results", + "environment": "{\"type\": \"url\", \"path\": \"https://dojo-spas-production.s3.us-east-1.amazonaws.com/linkedin/index.html\"}", + "initial_state": "{\"currentView\": \"feed\", \"viewedUserId\": \"1\", \"searchQuery\": \"\", \"searchFilter\": {\"mainCategory\": \"All\", \"connections\": [], \"locations\": [], \"companies\": [], \"industry\": [], \"companySize\": [], \"datePosted\": [], \"underTenApplicants\": false}, \"currentUser\": {\"id\": \"1\", \"name\": \"Dzaka Athif\", \"title\": \"Junior Forward Deployed Engineer\", \"company\": \"Chakra\", \"location\": \"Sydney, New South Wales\", \"avatar\": \"https://i.pravatar.cc/150?img=33\", \"coverImage\": \"linear-gradient(135deg, #667eea 0%, #764ba2 100%)\", \"isVerified\": true, \"connectionCount\": 477, \"contactInfo\": \"dzaka.athif@example.com\", \"connectionDegree\": \"1st\", \"currentCompany\": \"Chakra\", \"regions\": [\"Asia Pacific\"]}, \"posts\": [], \"users\": [{\"id\": \"1\", \"name\": \"Dzaka Athif\", \"title\": \"Junior Forward Deployed Engineer\", \"company\": \"Chakra\", \"location\": \"Sydney, New South Wales\", \"avatar\": \"https://i.pravatar.cc/150?img=33\", \"coverImage\": \"linear-gradient(135deg, #667eea 0%, #764ba2 100%)\", \"isVerified\": true, \"connectionCount\": 477, \"contactInfo\": \"dzaka.athif@example.com\", \"connectionDegree\": \"1st\", \"currentCompany\": \"Chakra\", \"regions\": [\"Asia Pacific\"]}, {\"id\": \"2\", \"name\": \"John Smith\", \"title\": \"Software Engineer\", \"company\": \"Tech Corp\", \"location\": \"San Francisco, CA\", \"avatar\": \"https://i.pravatar.cc/150?img=12\", \"coverImage\": \"linear-gradient(135deg, #667eea 0%, #764ba2 100%)\", \"isVerified\": false, \"connectionCount\": 250, \"contactInfo\": \"john.smith@example.com\", \"connectionDegree\": \"2nd\", \"currentCompany\": \"Tech Corp\", \"regions\": [\"North America\"], \"skills\": [{\"id\": \"skill-1\", \"name\": \"JavaScript\", \"endorsements\": 45}, {\"id\": \"skill-2\", \"name\": \"Python\", \"endorsements\": 38}, {\"id\": \"skill-3\", \"name\": \"React\", \"endorsements\": 42}, {\"id\": \"skill-4\", \"name\": \"Node.js\", \"endorsements\": 40}, {\"id\": \"skill-5\", \"name\": \"AWS\", \"endorsements\": 35}, {\"id\": \"skill-6\", \"name\": \"Docker\", \"endorsements\": 30}], \"education\": [{\"id\": \"edu-1\", \"school\": \"Stanford University\", \"schoolAbbreviation\": \"Stanford\", \"degree\": \"Master of Computer Science\", \"field\": \"Computer Science\", \"startYear\": \"2019\", \"endYear\": \"2021\"}, {\"id\": \"edu-2\", \"school\": \"UC Berkeley\", \"schoolAbbreviation\": \"UC Berkeley\", \"degree\": \"Bachelor of Computer Science\", \"field\": \"Computer Science\", \"startYear\": \"2015\", \"endYear\": \"2019\"}, {\"id\": \"edu-3\", \"school\": \"Coursera\", \"degree\": \"Machine Learning Specialization\", \"field\": \"AI/ML\", \"startYear\": \"2020\", \"endYear\": \"2020\"}, {\"id\": \"edu-4\", \"school\": \"Udemy\", \"degree\": \"Full-Stack Development Bootcamp\", \"field\": \"Web Development\", \"startYear\": \"2019\", \"endYear\": \"2019\"}, {\"id\": \"edu-5\", \"school\": \"Pluralsight\", \"degree\": \"DevOps Foundations\", \"field\": \"DevOps\", \"startYear\": \"2019\", \"endYear\": \"2019\"}, {\"id\": \"edu-6\", \"school\": \"Codecademy\", \"degree\": \"Data Structures & Algorithms\", \"field\": \"Programming\", \"startYear\": \"2018\", \"endYear\": \"2018\"}]}, {\"id\": \"3\", \"name\": \"Jane Doe\", \"title\": \"Product Manager\", \"company\": \"StartUp Inc\", \"location\": \"New York, NY\", \"avatar\": \"https://i.pravatar.cc/150?img=45\", \"coverImage\": \"linear-gradient(135deg, #667eea 0%, #764ba2 100%)\", \"isVerified\": true, \"connectionCount\": 512, \"contactInfo\": \"jane.doe@example.com\", \"connectionDegree\": \"1st\", \"currentCompany\": \"StartUp Inc\", \"regions\": [\"North America\"], \"skills\": [{\"id\": \"skill-1\", \"name\": \"Product Management\", \"endorsements\": 60}, {\"id\": \"skill-2\", \"name\": \"Agile Methodologies\", \"endorsements\": 55}, {\"id\": \"skill-3\", \"name\": \"User Research\", \"endorsements\": 52}, {\"id\": \"skill-4\", \"name\": \"Data Analysis\", \"endorsements\": 48}, {\"id\": \"skill-5\", \"name\": \"Stakeholder Management\", \"endorsements\": 50}, {\"id\": \"skill-6\", \"name\": \"Product Strategy\", \"endorsements\": 45}], \"education\": [{\"id\": \"edu-1\", \"school\": \"Harvard Business School\", \"schoolAbbreviation\": \"HBS\", \"degree\": \"MBA\", \"field\": \"Business Administration\", \"startYear\": \"2018\", \"endYear\": \"2020\"}, {\"id\": \"edu-2\", \"school\": \"MIT\", \"schoolAbbreviation\": \"MIT\", \"degree\": \"Bachelor of Science in Management\", \"field\": \"Business\", \"startYear\": \"2014\", \"endYear\": \"2018\"}, {\"id\": \"edu-3\", \"school\": \"Product School\", \"degree\": \"Product Management Certification\", \"field\": \"Product Management\", \"startYear\": \"2019\", \"endYear\": \"2019\"}, {\"id\": \"edu-4\", \"school\": \"General Assembly\", \"degree\": \"UX Design Immersive\", \"field\": \"UX Design\", \"startYear\": \"2019\", \"endYear\": \"2019\"}, {\"id\": \"edu-5\", \"school\": \"LinkedIn Learning\", \"degree\": \"Product Strategy Fundamentals\", \"field\": \"Product Strategy\", \"startYear\": \"2020\", \"endYear\": \"2020\"}, {\"id\": \"edu-6\", \"school\": \"Stanford Continuing Studies\", \"degree\": \"Entrepreneurship and Innovation\", \"field\": \"Business Innovation\", \"startYear\": \"2018\", \"endYear\": \"2018\"}]}], \"companies\": [], \"jobs\": [], \"searchResults\": {\"people\": [], \"companies\": [], \"jobs\": [], \"allPeople\": [], \"allCompanies\": [], \"allJobs\": [], \"totalPeople\": 0, \"totalCompanies\": 0, \"totalJobs\": 0, \"peopleQueryOnly\": [], \"companiesQueryOnly\": [], \"jobsQueryOnly\": []}}", + "instructions": "{\"user_prompt\": \"You are on the LinkedIn feed page. Complete this multi-step navigation workflow: 1) Click the search input bar at the top navigation, 2) Type 'john' in the search field, 3) Click 'see all results' in the dropdown, 4) Click on 'John Smith' in the search results to view his profile, 5) Scroll down on John Smith's profile page to find the Skills section, 6) Click 'Show all skills' or the arrow icon next to the Skills section to navigate to his skills detail section (profile-skills), 7) Click the LinkedIn logo at the top left to return to the feed, 8) Click the search input bar again, 9) Type 'jane' in the search field, 10) Click 'see all results' in the dropdown, 11) Click on 'Jane Doe' in the search results to view her profile, 12) Scroll down on Jane Doe's profile page to find the Education section, 13) Click 'Show all education' or the arrow icon next to the Education section to navigate to her education detail section (profile-education).\", \"success_criteria\": \"The app must end on Jane Doe's education detail page (currentView='profile-education', viewedUserId='3').\"}", + "reward_function": "", + "valid_target_states": "[{\"currentView\": \"profile-education\", \"viewedUserId\": \"3\"}]", + "max_steps": 27, + "timeout_seconds": 180, + "metadata": "{\"category\": \"social\", \"difficulty\": \"hard\"}" +} diff --git a/tasks/linkedin/navigate-to-profile.json b/tasks/linkedin/navigate-to-profile.json new file mode 100644 index 0000000000000000000000000000000000000000..368c4461d6eeaf34eb84df39a69f34bdc9430d84 --- /dev/null +++ b/tasks/linkedin/navigate-to-profile.json @@ -0,0 +1,13 @@ +{ + "id": "navigate-to-profile", + "name": "Navigate to User Profile", + "description": "Click on a user's name to navigate to their profile page", + "environment": "{\"type\": \"url\", \"path\": \"https://dojo-spas-production.s3.us-east-1.amazonaws.com/linkedin/index.html\"}", + "initial_state": "{\"currentView\": \"search\", \"viewedUserId\": \"1\", \"searchQuery\": \"jane\", \"searchFilter\": {\"mainCategory\": \"People\", \"connections\": [], \"locations\": [], \"companies\": [], \"industry\": [], \"companySize\": [], \"datePosted\": [], \"underTenApplicants\": false}, \"currentUser\": {\"id\": \"1\", \"name\": \"Dzaka Athif\", \"title\": \"Junior Forward Deployed Engineer\", \"company\": \"Chakra\", \"location\": \"Sydney, New South Wales\", \"avatar\": \"https://i.pravatar.cc/150?img=33\", \"coverImage\": \"linear-gradient(135deg, #667eea 0%, #764ba2 100%)\", \"isVerified\": true, \"connectionCount\": 477, \"contactInfo\": \"dzaka.athif@example.com\", \"connectionDegree\": \"1st\", \"currentCompany\": \"Chakra\", \"regions\": [\"Asia Pacific\"]}, \"posts\": [], \"users\": [{\"id\": \"1\", \"name\": \"Dzaka Athif\", \"title\": \"Junior Forward Deployed Engineer\", \"company\": \"Chakra\", \"location\": \"Sydney, New South Wales\", \"avatar\": \"https://i.pravatar.cc/150?img=33\", \"coverImage\": \"linear-gradient(135deg, #667eea 0%, #764ba2 100%)\", \"isVerified\": true, \"connectionCount\": 477, \"contactInfo\": \"dzaka.athif@example.com\", \"connectionDegree\": \"1st\", \"currentCompany\": \"Chakra\", \"regions\": [\"Asia Pacific\"]}, {\"id\": \"2\", \"name\": \"John Smith\", \"title\": \"Software Engineer\", \"company\": \"Tech Corp\", \"location\": \"San Francisco, CA\", \"avatar\": \"https://i.pravatar.cc/150?img=12\", \"coverImage\": \"linear-gradient(135deg, #667eea 0%, #764ba2 100%)\", \"isVerified\": false, \"connectionCount\": 250, \"contactInfo\": \"john.smith@example.com\", \"connectionDegree\": \"2nd\", \"currentCompany\": \"Tech Corp\", \"regions\": [\"North America\"]}, {\"id\": \"3\", \"name\": \"Jane Doe\", \"title\": \"Product Manager\", \"company\": \"StartUp Inc\", \"location\": \"New York, NY\", \"avatar\": \"https://i.pravatar.cc/150?img=45\", \"coverImage\": \"linear-gradient(135deg, #667eea 0%, #764ba2 100%)\", \"isVerified\": true, \"connectionCount\": 512, \"contactInfo\": \"jane.doe@example.com\", \"connectionDegree\": \"1st\", \"currentCompany\": \"StartUp Inc\", \"regions\": [\"North America\"]}], \"companies\": [], \"jobs\": [], \"searchResults\": {\"people\": [{\"id\": \"3\", \"name\": \"Jane Doe\", \"title\": \"Product Manager\", \"company\": \"StartUp Inc\", \"location\": \"New York, NY\", \"avatar\": \"https://i.pravatar.cc/150?img=45\", \"coverImage\": \"linear-gradient(135deg, #667eea 0%, #764ba2 100%)\", \"isVerified\": true, \"connectionCount\": 512, \"contactInfo\": \"jane.doe@example.com\", \"connectionDegree\": \"1st\", \"currentCompany\": \"StartUp Inc\", \"regions\": [\"North America\"]}], \"companies\": [], \"jobs\": [], \"allPeople\": [{\"id\": \"3\", \"name\": \"Jane Doe\", \"title\": \"Product Manager\", \"company\": \"StartUp Inc\", \"location\": \"New York, NY\", \"avatar\": \"https://i.pravatar.cc/150?img=45\", \"coverImage\": \"linear-gradient(135deg, #667eea 0%, #764ba2 100%)\", \"isVerified\": true, \"connectionCount\": 512, \"contactInfo\": \"jane.doe@example.com\", \"connectionDegree\": \"1st\", \"currentCompany\": \"StartUp Inc\", \"regions\": [\"North America\"]}], \"allCompanies\": [], \"allJobs\": [], \"totalPeople\": 1, \"totalCompanies\": 0, \"totalJobs\": 0, \"peopleQueryOnly\": [{\"id\": \"3\", \"name\": \"Jane Doe\", \"title\": \"Product Manager\", \"company\": \"StartUp Inc\", \"location\": \"New York, NY\", \"avatar\": \"https://i.pravatar.cc/150?img=45\", \"coverImage\": \"linear-gradient(135deg, #667eea 0%, #764ba2 100%)\", \"isVerified\": true, \"connectionCount\": 512, \"contactInfo\": \"jane.doe@example.com\", \"connectionDegree\": \"1st\", \"currentCompany\": \"StartUp Inc\", \"regions\": [\"North America\"]}], \"companiesQueryOnly\": [], \"jobsQueryOnly\": []}}", + "instructions": "{\"user_prompt\": \"You are on the LinkedIn search results page showing 'Jane Doe' in the results. Click on 'Jane Doe' to navigate to her profile page.\", \"success_criteria\": \"The app must be on the profile view (currentView='profile') and viewing Jane Doe's profile (viewedUserId='3').\"}", + "reward_function": "", + "valid_target_states": "[{\"currentView\": \"profile\", \"viewedUserId\": \"3\"}]", + "max_steps": 5, + "timeout_seconds": 30, + "metadata": "{\"category\": \"social\", \"difficulty\": \"easy\"}" +} diff --git a/tasks/linkedin/search-and-filter-people.json b/tasks/linkedin/search-and-filter-people.json new file mode 100644 index 0000000000000000000000000000000000000000..d15c0f33d6bdcfd58ecaef63049c131e8dfeb118 --- /dev/null +++ b/tasks/linkedin/search-and-filter-people.json @@ -0,0 +1,13 @@ +{ + "id": "search-and-filter-people", + "name": "Search and Filter People by Connection and Location", + "description": "Search for users and apply connection degree and location filters", + "environment": "{\"type\": \"url\", \"path\": \"https://dojo-spas-production.s3.us-east-1.amazonaws.com/linkedin/index.html\"}", + "initial_state": "{\"currentView\": \"feed\", \"viewedUserId\": \"1\", \"searchQuery\": \"\", \"searchFilter\": {\"mainCategory\": \"All\", \"connections\": [], \"locations\": [], \"companies\": [], \"industry\": [], \"companySize\": [], \"datePosted\": [], \"underTenApplicants\": false}, \"currentUser\": {\"id\": \"1\", \"name\": \"Dzaka Athif\", \"title\": \"Junior Forward Deployed Engineer\", \"company\": \"Chakra\", \"location\": \"Sydney, New South Wales\", \"avatar\": \"https://i.pravatar.cc/150?img=33\", \"coverImage\": \"linear-gradient(135deg, #667eea 0%, #764ba2 100%)\", \"isVerified\": true, \"connectionCount\": 477, \"contactInfo\": \"dzaka.athif@example.com\", \"connectionDegree\": \"1st\", \"currentCompany\": \"Chakra\", \"regions\": [\"Asia Pacific\"]}, \"posts\": [], \"users\": [{\"id\": \"1\", \"name\": \"Dzaka Athif\", \"title\": \"Junior Forward Deployed Engineer\", \"company\": \"Chakra\", \"location\": \"Sydney, New South Wales\", \"avatar\": \"https://i.pravatar.cc/150?img=33\", \"coverImage\": \"linear-gradient(135deg, #667eea 0%, #764ba2 100%)\", \"isVerified\": true, \"connectionCount\": 477, \"contactInfo\": \"dzaka.athif@example.com\", \"connectionDegree\": \"1st\", \"currentCompany\": \"Chakra\", \"regions\": [\"Asia Pacific\"]}, {\"id\": \"2\", \"name\": \"John Smith\", \"title\": \"Software Engineer\", \"company\": \"Tech Corp\", \"location\": \"San Francisco, CA\", \"avatar\": \"https://i.pravatar.cc/150?img=12\", \"coverImage\": \"linear-gradient(135deg, #667eea 0%, #764ba2 100%)\", \"isVerified\": false, \"connectionCount\": 250, \"contactInfo\": \"john.smith@example.com\", \"connectionDegree\": \"2nd\", \"currentCompany\": \"Tech Corp\", \"regions\": [\"North America\"]}, {\"id\": \"3\", \"name\": \"Jane Doe\", \"title\": \"Product Manager\", \"company\": \"StartUp Inc\", \"location\": \"New York, NY\", \"avatar\": \"https://i.pravatar.cc/150?img=45\", \"coverImage\": \"linear-gradient(135deg, #667eea 0%, #764ba2 100%)\", \"isVerified\": true, \"connectionCount\": 512, \"contactInfo\": \"jane.doe@example.com\", \"connectionDegree\": \"1st\", \"currentCompany\": \"StartUp Inc\", \"regions\": [\"North America\"]}, {\"id\": \"5\", \"name\": \"Jane Smith\", \"title\": \"Data Scientist\", \"company\": \"Tech Corp\", \"location\": \"San Francisco, CA\", \"avatar\": \"https://i.pravatar.cc/150?img=32\", \"coverImage\": \"linear-gradient(135deg, #667eea 0%, #764ba2 100%)\", \"isVerified\": false, \"connectionCount\": 320, \"contactInfo\": \"jane.smith@example.com\", \"connectionDegree\": \"2nd\", \"currentCompany\": \"Tech Corp\", \"regions\": [\"North America\"]}, {\"id\": \"6\", \"name\": \"Jane Wilson\", \"title\": \"Marketing Director\", \"company\": \"Global Marketing Co\", \"location\": \"London, UK\", \"avatar\": \"https://i.pravatar.cc/150?img=28\", \"coverImage\": \"linear-gradient(135deg, #667eea 0%, #764ba2 100%)\", \"isVerified\": true, \"connectionCount\": 640, \"contactInfo\": \"jane.wilson@example.com\", \"connectionDegree\": \"1st\", \"currentCompany\": \"Global Marketing Co\", \"regions\": [\"Europe\"]}], \"companies\": [], \"jobs\": [], \"searchResults\": {\"people\": [], \"companies\": [], \"jobs\": [], \"allPeople\": [], \"allCompanies\": [], \"allJobs\": [], \"totalPeople\": 0, \"totalCompanies\": 0, \"totalJobs\": 0, \"peopleQueryOnly\": [], \"companiesQueryOnly\": [], \"jobsQueryOnly\": []}}", + "instructions": "{\"user_prompt\": \"You are on the LinkedIn feed page. Search for people and apply filters: 1) Click the search input bar at the top navigation, 2) Type 'jane' in the search field, 3) Click 'see all results' in the dropdown to go to the search results page, 4) Click on the 'People' filter button in the top filter bar to switch to People view, 5) Click the '1st' connection degree button to filter by 1st degree connections, 6) Click on the 'Locations' filter dropdown and select 'North America'.\", \"success_criteria\": \"The app must be on search view with mainCategory='People', searchQuery containing 'jane', and searchFilter containing connections=['1st'] and locations including 'North America'.\"}", + "reward_function": "", + "valid_target_states": "[{\"currentView\": \"search\", \"searchQuery\": \"jane\", \"searchFilter\": {\"mainCategory\": \"People\", \"connections\": [\"1st\"], \"locations\": [\"North America\"], \"companies\": [], \"industry\": [], \"companySize\": [], \"datePosted\": [], \"underTenApplicants\": false}, \"searchResults\": {\"people\": [{\"id\": \"3\", \"name\": \"Jane Doe\", \"title\": \"Product Manager\", \"company\": \"StartUp Inc\", \"location\": \"New York, NY\", \"avatar\": \"https://i.pravatar.cc/150?img=45\", \"coverImage\": \"linear-gradient(135deg, #667eea 0%, #764ba2 100%)\", \"isVerified\": true, \"connectionCount\": 512, \"contactInfo\": \"jane.doe@example.com\", \"connectionDegree\": \"1st\", \"currentCompany\": \"StartUp Inc\", \"regions\": [\"North America\"]}], \"companies\": [], \"jobs\": [], \"allPeople\": [], \"allCompanies\": [], \"allJobs\": [], \"totalPeople\": 1, \"totalCompanies\": 0, \"totalJobs\": 0, \"peopleQueryOnly\": [], \"companiesQueryOnly\": [], \"jobsQueryOnly\": []}}]", + "max_steps": 15, + "timeout_seconds": 90, + "metadata": "{\"category\": \"social\", \"difficulty\": \"medium\"}" +} diff --git a/tasks/linkedin/search-company.json b/tasks/linkedin/search-company.json new file mode 100644 index 0000000000000000000000000000000000000000..0da67f5458e9bbb136d27f5281538b4134cb41c9 --- /dev/null +++ b/tasks/linkedin/search-company.json @@ -0,0 +1,13 @@ +{ + "id": "search-company", + "name": "Search for Company", + "description": "Search for a specific company by name and view results", + "environment": "{\"type\": \"url\", \"path\": \"https://dojo-spas-production.s3.us-east-1.amazonaws.com/linkedin/index.html\"}", + "initial_state": "{\"currentView\": \"feed\", \"viewedUserId\": \"1\", \"searchQuery\": \"\", \"searchFilter\": {\"mainCategory\": \"All\", \"connections\": [], \"locations\": [], \"companies\": [], \"industry\": [], \"companySize\": [], \"datePosted\": [], \"underTenApplicants\": false}, \"currentUser\": {\"id\": \"1\", \"name\": \"Dzaka Athif\", \"title\": \"Junior Forward Deployed Engineer\", \"company\": \"Chakra\", \"location\": \"Sydney, New South Wales\", \"avatar\": \"https://i.pravatar.cc/150?img=33\", \"coverImage\": \"linear-gradient(135deg, #667eea 0%, #764ba2 100%)\", \"isVerified\": true, \"connectionCount\": 477, \"contactInfo\": \"dzaka.athif@example.com\", \"connectionDegree\": \"1st\", \"currentCompany\": \"Chakra\", \"regions\": [\"Asia Pacific\"]}, \"posts\": [], \"users\": [], \"companies\": [], \"jobs\": [], \"searchResults\": {\"people\": [], \"companies\": [], \"jobs\": [], \"allPeople\": [], \"allCompanies\": [], \"allJobs\": [], \"totalPeople\": 0, \"totalCompanies\": 0, \"totalJobs\": 0, \"peopleQueryOnly\": [], \"companiesQueryOnly\": [], \"jobsQueryOnly\": []}}", + "instructions": "{\"user_prompt\": \"You are on the LinkedIn feed page. Search for a company: 1) Click the search input bar at the top navigation, 2) Type 'Tech Corp' in the search field, 3) Click 'see all results' in the dropdown to navigate to the search results page.\", \"success_criteria\": \"The app must be on the search view (currentView='search') with searchQuery containing 'Tech Corp'.\"}", + "reward_function": "", + "valid_target_states": "[{\"currentView\": \"search\", \"searchQuery\": \"Tech Corp\"}]", + "max_steps": 15, + "timeout_seconds": 45, + "metadata": "{\"category\": \"social\", \"difficulty\": \"easy\"}" +} diff --git a/tasks/linkedin/linkedin-search-user.json b/tasks/linkedin/search-user.json similarity index 99% rename from tasks/linkedin/linkedin-search-user.json rename to tasks/linkedin/search-user.json index df86d749b10001297b07e03127b9f1cc448f875e..13f01139adb88f9b9b4c7111bd9882743f2b466e 100644 --- a/tasks/linkedin/linkedin-search-user.json +++ b/tasks/linkedin/search-user.json @@ -1,5 +1,5 @@ { - "id": "linkedin-search-user", + "id": "search-user", "name": "Search for User on LinkedIn", "description": "Click the search input, type 'dzaka', and click 'see all results' to find Dzaka Athif in the search results", "environment": "{\"type\": \"url\", \"path\": \"https://dojo-spas-production.s3.us-east-1.amazonaws.com/linkedin/index.html\"}", @@ -10,4 +10,4 @@ "max_steps": 10, "timeout_seconds": 60, "metadata": "{\"category\": \"social\", \"difficulty\": \"easy\"}" -} \ No newline at end of file +} diff --git a/tasks/linkedin/search-with-multiple-filters.json b/tasks/linkedin/search-with-multiple-filters.json new file mode 100644 index 0000000000000000000000000000000000000000..144ae6d31068f57c66573e6a0e0a9f4d96bd9566 --- /dev/null +++ b/tasks/linkedin/search-with-multiple-filters.json @@ -0,0 +1,13 @@ +{ + "id": "search-with-multiple-filters", + "name": "Search with Multiple Filters", + "description": "Perform a search and apply multiple filters including location, company, and connection degree", + "environment": "{\"type\": \"url\", \"path\": \"https://dojo-spas-production.s3.us-east-1.amazonaws.com/linkedin/index.html\"}", + "initial_state": "{\"currentView\": \"feed\", \"viewedUserId\": \"1\", \"searchQuery\": \"\", \"searchFilter\": {\"mainCategory\": \"All\", \"connections\": [], \"locations\": [], \"companies\": [], \"industry\": [], \"companySize\": [], \"datePosted\": [], \"underTenApplicants\": false}, \"currentUser\": {\"id\": \"1\", \"name\": \"Dzaka Athif\", \"title\": \"Junior Forward Deployed Engineer\", \"company\": \"Chakra\", \"location\": \"Sydney, New South Wales\", \"avatar\": \"https://i.pravatar.cc/150?img=33\", \"coverImage\": \"linear-gradient(135deg, #667eea 0%, #764ba2 100%)\", \"isVerified\": true, \"connectionCount\": 477, \"contactInfo\": \"dzaka.athif@example.com\", \"connectionDegree\": \"1st\", \"currentCompany\": \"Chakra\", \"regions\": [\"Asia Pacific\"]}, \"posts\": [], \"users\": [], \"companies\": [], \"jobs\": [], \"searchResults\": {\"people\": [], \"companies\": [], \"jobs\": [], \"allPeople\": [], \"allCompanies\": [], \"allJobs\": [], \"totalPeople\": 0, \"totalCompanies\": 0, \"totalJobs\": 0, \"peopleQueryOnly\": [], \"companiesQueryOnly\": [], \"jobsQueryOnly\": []}}", + "instructions": "{\"user_prompt\": \"You are on the LinkedIn feed page. Search for people with multiple filters: 1) Click the search input bar at the top navigation, 2) Type 'john' in the search field, 3) Click 'see all results' in the dropdown to go to the search results page, 4) Click on the 'People' filter button in the top filter bar to switch to People view, 5) Click the '2nd' connection degree button to filter by 2nd degree connections, 6) Click on the 'Locations' filter dropdown and select 'North America', 7) Click on the 'Companies' filter dropdown and select 'Tech Corp'.\", \"success_criteria\": \"The app must be on search view with searchQuery='john', mainCategory='People', and searchFilter containing connections=['2nd'], locations including 'North America', and companies including 'Tech Corp'.\"}", + "reward_function": "", + "valid_target_states": "[{\"currentView\": \"search\", \"searchQuery\": \"john\", \"searchFilter\": {\"mainCategory\": \"People\", \"connections\": [\"2nd\"], \"locations\": [\"North America\"], \"companies\": [\"Tech Corp\"], \"industry\": [], \"companySize\": [], \"datePosted\": [], \"underTenApplicants\": false}}]", + "max_steps": 17, + "timeout_seconds": 90, + "metadata": "{\"category\": \"social\", \"difficulty\": \"medium\"}" +} diff --git a/tasks/linkedin/view-profile-experience.json b/tasks/linkedin/view-profile-experience.json new file mode 100644 index 0000000000000000000000000000000000000000..f5c6a8e209591025c0b8e6ee84a2ce8d16890d8e --- /dev/null +++ b/tasks/linkedin/view-profile-experience.json @@ -0,0 +1,13 @@ +{ + "id": "view-profile-experience", + "name": "View Profile Experience Section", + "description": "Navigate to a user's profile and view their detailed experience section", + "environment": "{\"type\": \"url\", \"path\": \"https://dojo-spas-production.s3.us-east-1.amazonaws.com/linkedin/index.html\"}", + "initial_state": "{\"currentView\": \"profile\", \"viewedUserId\": \"2\", \"searchQuery\": \"\", \"searchFilter\": {\"mainCategory\": \"All\", \"connections\": [], \"locations\": [], \"companies\": [], \"industry\": [], \"companySize\": [], \"datePosted\": [], \"underTenApplicants\": false}, \"currentUser\": {\"id\": \"1\", \"name\": \"Dzaka Athif\", \"title\": \"Junior Forward Deployed Engineer\", \"company\": \"Chakra\", \"location\": \"Sydney, New South Wales\", \"avatar\": \"https://i.pravatar.cc/150?img=33\", \"coverImage\": \"linear-gradient(135deg, #667eea 0%, #764ba2 100%)\", \"isVerified\": true, \"connectionCount\": 477, \"contactInfo\": \"dzaka.athif@example.com\", \"connectionDegree\": \"1st\", \"currentCompany\": \"Chakra\", \"regions\": [\"Asia Pacific\"]}, \"posts\": [], \"users\": [{\"id\": \"1\", \"name\": \"Dzaka Athif\", \"title\": \"Junior Forward Deployed Engineer\", \"company\": \"Chakra\", \"location\": \"Sydney, New South Wales\", \"avatar\": \"https://i.pravatar.cc/150?img=33\", \"coverImage\": \"linear-gradient(135deg, #667eea 0%, #764ba2 100%)\", \"isVerified\": true, \"connectionCount\": 477, \"contactInfo\": \"dzaka.athif@example.com\", \"connectionDegree\": \"1st\", \"currentCompany\": \"Chakra\", \"regions\": [\"Asia Pacific\"]}, {\"id\": \"2\", \"name\": \"John Smith\", \"title\": \"Software Engineer\", \"company\": \"Tech Corp\", \"location\": \"San Francisco, CA\", \"avatar\": \"https://i.pravatar.cc/150?img=12\", \"coverImage\": \"linear-gradient(135deg, #667eea 0%, #764ba2 100%)\", \"isVerified\": false, \"connectionCount\": 250, \"contactInfo\": \"john.smith@example.com\", \"connectionDegree\": \"2nd\", \"currentCompany\": \"Tech Corp\", \"regions\": [\"North America\"], \"experience\": [{\"id\": \"exp-1\", \"title\": \"Senior Software Engineer\", \"company\": \"Tech Corp\", \"employmentType\": \"Full-time\", \"startDate\": \"2022-01\", \"endDate\": \"2024-12\", \"location\": \"San Francisco, CA\", \"description\": \"Leading development of cloud infrastructure and microservices architecture\"}, {\"id\": \"exp-2\", \"title\": \"Software Engineer\", \"company\": \"StartupHub\", \"employmentType\": \"Full-time\", \"startDate\": \"2020-06\", \"endDate\": \"2021-12\", \"location\": \"San Francisco, CA\", \"description\": \"Developed scalable web applications using React and Node.js\"}, {\"id\": \"exp-3\", \"title\": \"Junior Software Engineer\", \"company\": \"DevShop\", \"employmentType\": \"Full-time\", \"startDate\": \"2018-03\", \"endDate\": \"2020-05\", \"location\": \"Remote\", \"description\": \"Built RESTful APIs and database schemas for client projects\"}, {\"id\": \"exp-4\", \"title\": \"Software Engineering Intern\", \"company\": \"Tech Corp\", \"employmentType\": \"Internship\", \"startDate\": \"2017-06\", \"endDate\": \"2017-09\", \"location\": \"San Francisco, CA\", \"description\": \"Assisted in developing internal tools and automation scripts\"}, {\"id\": \"exp-5\", \"title\": \"Teaching Assistant\", \"company\": \"Stanford University\", \"employmentType\": \"Part-time\", \"startDate\": \"2017-01\", \"endDate\": \"2017-12\", \"location\": \"Stanford, CA\", \"description\": \"Taught introductory programming and data structures courses\"}, {\"id\": \"exp-6\", \"title\": \"Freelance Web Developer\", \"company\": \"Independent\", \"employmentType\": \"Contract\", \"startDate\": \"2016-06\", \"endDate\": \"2018-02\", \"location\": \"Remote\", \"description\": \"Created custom websites for small businesses and nonprofits\"}]}], \"companies\": [], \"jobs\": [], \"searchResults\": {\"people\": [], \"companies\": [], \"jobs\": [], \"allPeople\": [], \"allCompanies\": [], \"allJobs\": [], \"totalPeople\": 0, \"totalCompanies\": 0, \"totalJobs\": 0, \"peopleQueryOnly\": [], \"companiesQueryOnly\": [], \"jobsQueryOnly\": []}}", + "instructions": "{\"user_prompt\": \"You are viewing John Smith's profile. Scroll down the profile page to find the Experience section. Then click on the 'Show all experiences' link or arrow icon to view the detailed experience section.\", \"success_criteria\": \"The app must navigate to the profile-experience view (currentView='profile-experience') for John Smith (viewedUserId='2').\"}", + "reward_function": "", + "valid_target_states": "[{\"currentView\": \"profile-experience\", \"viewedUserId\": \"2\"}]", + "max_steps": 7, + "timeout_seconds": 45, + "metadata": "{\"category\": \"social\", \"difficulty\": \"easy\"}" +} diff --git a/tasks/linkedin/view-user-education-details.json b/tasks/linkedin/view-user-education-details.json new file mode 100644 index 0000000000000000000000000000000000000000..3369137d2f1c4c897baefb072c53228053c052a3 --- /dev/null +++ b/tasks/linkedin/view-user-education-details.json @@ -0,0 +1,13 @@ +{ + "id": "view-user-education-details", + "name": "View User Education Details", + "description": "Navigate to a specific user's profile and view their detailed education section", + "environment": "{\"type\": \"url\", \"path\": \"https://dojo-spas-production.s3.us-east-1.amazonaws.com/linkedin/index.html\"}", + "initial_state": "{\"currentView\": \"search\", \"viewedUserId\": \"1\", \"searchQuery\": \"product\", \"searchFilter\": {\"mainCategory\": \"People\", \"connections\": [], \"locations\": [], \"companies\": [], \"industry\": [], \"companySize\": [], \"datePosted\": [], \"underTenApplicants\": false}, \"currentUser\": {\"id\": \"1\", \"name\": \"Dzaka Athif\", \"title\": \"Junior Forward Deployed Engineer\", \"company\": \"Chakra\", \"location\": \"Sydney, New South Wales\", \"avatar\": \"https://i.pravatar.cc/150?img=33\", \"coverImage\": \"linear-gradient(135deg, #667eea 0%, #764ba2 100%)\", \"isVerified\": true, \"connectionCount\": 477, \"contactInfo\": \"dzaka.athif@example.com\", \"connectionDegree\": \"1st\", \"currentCompany\": \"Chakra\", \"regions\": [\"Asia Pacific\"]}, \"posts\": [], \"users\": [{\"id\": \"1\", \"name\": \"Dzaka Athif\", \"title\": \"Junior Forward Deployed Engineer\", \"company\": \"Chakra\", \"location\": \"Sydney, New South Wales\", \"avatar\": \"https://i.pravatar.cc/150?img=33\", \"coverImage\": \"linear-gradient(135deg, #667eea 0%, #764ba2 100%)\", \"isVerified\": true, \"connectionCount\": 477, \"contactInfo\": \"dzaka.athif@example.com\", \"connectionDegree\": \"1st\", \"currentCompany\": \"Chakra\", \"regions\": [\"Asia Pacific\"]}, {\"id\": \"2\", \"name\": \"John Smith\", \"title\": \"Software Engineer\", \"company\": \"Tech Corp\", \"location\": \"San Francisco, CA\", \"avatar\": \"https://i.pravatar.cc/150?img=12\", \"coverImage\": \"linear-gradient(135deg, #667eea 0%, #764ba2 100%)\", \"isVerified\": false, \"connectionCount\": 250, \"contactInfo\": \"john.smith@example.com\", \"connectionDegree\": \"2nd\", \"currentCompany\": \"Tech Corp\", \"regions\": [\"North America\"]}, {\"id\": \"3\", \"name\": \"Jane Doe\", \"title\": \"Product Manager\", \"company\": \"StartUp Inc\", \"location\": \"New York, NY\", \"avatar\": \"https://i.pravatar.cc/150?img=45\", \"coverImage\": \"linear-gradient(135deg, #667eea 0%, #764ba2 100%)\", \"isVerified\": true, \"connectionCount\": 512, \"contactInfo\": \"jane.doe@example.com\", \"connectionDegree\": \"1st\", \"currentCompany\": \"StartUp Inc\", \"regions\": [\"North America\"], \"education\": [{\"id\": \"edu-1\", \"school\": \"Harvard Business School\", \"schoolAbbreviation\": \"HBS\", \"degree\": \"MBA\", \"field\": \"Business Administration\", \"startYear\": \"2018\", \"endYear\": \"2020\"}, {\"id\": \"edu-2\", \"school\": \"MIT\", \"schoolAbbreviation\": \"MIT\", \"degree\": \"Bachelor of Science in Management\", \"field\": \"Business\", \"startYear\": \"2014\", \"endYear\": \"2018\"}, {\"id\": \"edu-3\", \"school\": \"Product School\", \"degree\": \"Product Management Certification\", \"field\": \"Product Management\", \"startYear\": \"2019\", \"endYear\": \"2019\"}, {\"id\": \"edu-4\", \"school\": \"General Assembly\", \"degree\": \"UX Design Immersive\", \"field\": \"UX Design\", \"startYear\": \"2019\", \"endYear\": \"2019\"}, {\"id\": \"edu-5\", \"school\": \"LinkedIn Learning\", \"degree\": \"Product Strategy Fundamentals\", \"field\": \"Product Strategy\", \"startYear\": \"2020\", \"endYear\": \"2020\"}, {\"id\": \"edu-6\", \"school\": \"Stanford Continuing Studies\", \"degree\": \"Entrepreneurship and Innovation\", \"field\": \"Business Innovation\", \"startYear\": \"2018\", \"endYear\": \"2018\"}]}], \"companies\": [], \"jobs\": [], \"searchResults\": {\"people\": [{\"id\": \"3\", \"name\": \"Jane Doe\", \"title\": \"Product Manager\", \"company\": \"StartUp Inc\", \"location\": \"New York, NY\", \"avatar\": \"https://i.pravatar.cc/150?img=45\", \"coverImage\": \"linear-gradient(135deg, #667eea 0%, #764ba2 100%)\", \"isVerified\": true, \"connectionCount\": 512, \"contactInfo\": \"jane.doe@example.com\", \"connectionDegree\": \"1st\", \"currentCompany\": \"StartUp Inc\", \"regions\": [\"North America\"]}], \"companies\": [], \"jobs\": [], \"allPeople\": [{\"id\": \"3\", \"name\": \"Jane Doe\", \"title\": \"Product Manager\", \"company\": \"StartUp Inc\", \"location\": \"New York, NY\", \"avatar\": \"https://i.pravatar.cc/150?img=45\", \"coverImage\": \"linear-gradient(135deg, #667eea 0%, #764ba2 100%)\", \"isVerified\": true, \"connectionCount\": 512, \"contactInfo\": \"jane.doe@example.com\", \"connectionDegree\": \"1st\", \"currentCompany\": \"StartUp Inc\", \"regions\": [\"North America\"]}], \"allCompanies\": [], \"allJobs\": [], \"totalPeople\": 1, \"totalCompanies\": 0, \"totalJobs\": 0, \"peopleQueryOnly\": [{\"id\": \"3\", \"name\": \"Jane Doe\", \"title\": \"Product Manager\", \"company\": \"StartUp Inc\", \"location\": \"New York, NY\", \"avatar\": \"https://i.pravatar.cc/150?img=45\", \"coverImage\": \"linear-gradient(135deg, #667eea 0%, #764ba2 100%)\", \"isVerified\": true, \"connectionCount\": 512, \"contactInfo\": \"jane.doe@example.com\", \"connectionDegree\": \"1st\", \"currentCompany\": \"StartUp Inc\", \"regions\": [\"North America\"]}], \"companiesQueryOnly\": [], \"jobsQueryOnly\": []}}", + "instructions": "{\"user_prompt\": \"From the search results, click on 'Jane Doe' to view her profile. Scroll down the profile page to find the Education section. Then click on 'Show all education' or the arrow icon next to the Education section to view her detailed education section.\", \"success_criteria\": \"The app must be on the profile-education view (currentView='profile-education') for Jane Doe (viewedUserId='3').\"}", + "reward_function": "", + "valid_target_states": "[{\"currentView\": \"profile-education\", \"viewedUserId\": \"3\"}]", + "max_steps": 10, + "timeout_seconds": 90, + "metadata": "{\"category\": \"social\", \"difficulty\": \"medium\"}" +} diff --git a/tasks/minesweeper/flag-corner-mines.json b/tasks/minesweeper/flag-corner-mines.json new file mode 100644 index 0000000000000000000000000000000000000000..c3111a1cc4b5cb2a4a213a0fd898f793ed93c440 --- /dev/null +++ b/tasks/minesweeper/flag-corner-mines.json @@ -0,0 +1,13 @@ +{ + "id": "flag-corner-mines", + "name": "Flag All Corner Mines", + "description": "Flag mines located at all four corners of the board", + "environment": "{\"type\": \"url\", \"path\": \"https://dojo-spas-production.s3.us-east-1.amazonaws.com/minesweeper/index.html\"}", + "initial_state": "{\"gameStatus\":\"playing\",\"board\":[[{\"isMine\":true,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":1},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":1},{\"isMine\":true,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0}],[{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":1},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":1},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":1},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":1}],[{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0}],[{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0}],[{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0}],[{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0}],[{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0}],[{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":1},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":1},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":1},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":1}],[{\"isMine\":true,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":1},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":1},{\"isMine\":true,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0}]]}", + "instructions": "{\"user_prompt\": \"Mines have been identified at all four corners of the board: [0][0] (top-left), [0][8] (top-right), [8][0] (bottom-left), and [8][8] (bottom-right). Flag all four corner positions.\", \"success_criteria\": \"All four corner cells must be flagged correctly.\"}", + "reward_function": "_validate_minesweeper_flag_corner_mines", + "valid_target_states": "", + "max_steps": 8, + "timeout_seconds": 60, + "metadata": "{\"category\": \"games\", \"difficulty\": \"medium\", \"action\": \"flag_corners\"}" +} diff --git a/tasks/minesweeper/flag-single-mine.json b/tasks/minesweeper/flag-single-mine.json new file mode 100644 index 0000000000000000000000000000000000000000..3c7e7e2067989d7ea2c71e86567d783c4237ef03 --- /dev/null +++ b/tasks/minesweeper/flag-single-mine.json @@ -0,0 +1,13 @@ +{ + "id": "flag-single-mine", + "name": "Flag Single Mine", + "description": "Flag a specific mine location that has been identified", + "environment": "{\"type\": \"url\", \"path\": \"https://dojo-spas-production.s3.us-east-1.amazonaws.com/minesweeper/index.html\"}", + "initial_state": "{\"gameStatus\":\"playing\",\"board\":[[{\"isMine\":true,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":1},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0}],[{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":1},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":1},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0}],[{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0}],[{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0}],[{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0}],[{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0}],[{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0}],[{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0}],[{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0}]]}", + "instructions": "{\"user_prompt\": \"A mine has been identified at row 0, column 0 (top-left corner). Right-click on that cell to place a flag and mark it as a mine.\", \"success_criteria\": \"The cell at position [0][0] must be flagged.\"}", + "reward_function": "_validate_minesweeper_flag_single_mine", + "valid_target_states": "", + "max_steps": 2, + "timeout_seconds": 30, + "metadata": "{\"category\": \"games\", \"difficulty\": \"easy\", \"action\": \"flag_mine\"}" +} diff --git a/tasks/minesweeper/flag-three-mines.json b/tasks/minesweeper/flag-three-mines.json new file mode 100644 index 0000000000000000000000000000000000000000..15d85f362c8c1adf14649c9a6d95350bd8ce1c4b --- /dev/null +++ b/tasks/minesweeper/flag-three-mines.json @@ -0,0 +1,13 @@ +{ + "id": "flag-three-mines", + "name": "Flag Three Mines", + "description": "Flag three specific mine locations that have been identified", + "environment": "{\"type\": \"url\", \"path\": \"https://dojo-spas-production.s3.us-east-1.amazonaws.com/minesweeper/index.html\"}", + "initial_state": "{\"gameStatus\":\"playing\",\"board\":[[{\"isMine\":true,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":1},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":1},{\"isMine\":true,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0}],[{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":1},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":1},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":1},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":1}],[{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0}],[{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0}],[{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0}],[{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0}],[{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0}],[{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":1},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":1},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0}],[{\"isMine\":true,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":1},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0}]]}", + "instructions": "{\"user_prompt\": \"Three mines have been identified at positions: [0][0] (top-left), [0][8] (top-right), and [8][0] (bottom-left). Right-click on each of these three cells to flag them as mines.\", \"success_criteria\": \"All three cells at positions [0][0], [0][8], and [8][0] must be flagged.\"}", + "reward_function": "_validate_minesweeper_flag_three_mines", + "valid_target_states": "", + "max_steps": 5, + "timeout_seconds": 45, + "metadata": "{\"category\": \"games\", \"difficulty\": \"easy\", \"action\": \"flag_multiple\"}" +} diff --git a/tasks/minesweeper/reveal-10-cells.json b/tasks/minesweeper/reveal-10-cells.json new file mode 100644 index 0000000000000000000000000000000000000000..103c622faa542ae9d2772406c4cb35a140640afa --- /dev/null +++ b/tasks/minesweeper/reveal-10-cells.json @@ -0,0 +1,13 @@ +{ + "id": "reveal-10-cells", + "name": "Reveal 10 Cells", + "description": "Reveal at least 10 safe cells without hitting any mines", + "environment": "{\"type\": \"url\", \"path\": \"https://dojo-spas-production.s3.us-east-1.amazonaws.com/minesweeper/index.html\"}", + "initial_state": "{\"gameStatus\":\"playing\",\"board\":[[{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0}],[{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0}],[{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0}],[{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0}],[{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0}],[{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0}],[{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0}],[{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":1},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":2},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":2}],[{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":1},{\"isMine\":true,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":true,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0}]]}", + "instructions": "{\"user_prompt\": \"Reveal at least 10 safe cells on the board. Use the numbers shown to deduce safe cells and avoid mines. The game should still be in progress.\", \"success_criteria\": \"At least 10 cells must be revealed, none of them should be mines, and the game should still be in progress.\"}", + "reward_function": "_validate_minesweeper_reveal_10_cells", + "valid_target_states": "", + "max_steps": 5, + "timeout_seconds": 60, + "metadata": "{\"category\": \"games\", \"difficulty\": \"medium\", \"action\": \"reveal_10_cells\"}" +} diff --git a/tasks/minesweeper/reveal-20-cells.json b/tasks/minesweeper/reveal-20-cells.json new file mode 100644 index 0000000000000000000000000000000000000000..b83f77f06a89a95f597a65db0295c904214cb78a --- /dev/null +++ b/tasks/minesweeper/reveal-20-cells.json @@ -0,0 +1,13 @@ +{ + "id": "reveal-20-cells", + "name": "Reveal 20 Cells", + "description": "Reveal at least 20 safe cells without hitting any mines", + "environment": "{\"type\": \"url\", \"path\": \"https://dojo-spas-production.s3.us-east-1.amazonaws.com/minesweeper/index.html\"}", + "initial_state": "{\"gameStatus\":\"playing\",\"board\":[[{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0}],[{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0}],[{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0}],[{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0}],[{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0}],[{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0}],[{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0}],[{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":1},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":2},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":3},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":2}],[{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":1},{\"isMine\":true,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":true,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":true,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0}]]}", + "instructions": "{\"user_prompt\": \"Carefully reveal cells on the board to uncover at least 20 safe cells. Use the numbers shown to deduce safe cells and avoid mines. The game should still be in progress after revealing 20+ cells.\", \"success_criteria\": \"At least 20 cells must be revealed, the game status should still be 'playing' (not lost or won).\"}", + "reward_function": "_validate_minesweeper_reveal_20_cells", + "valid_target_states": "", + "max_steps": 15, + "timeout_seconds": 90, + "metadata": "{\"category\": \"games\", \"difficulty\": \"medium\", \"action\": \"reveal_20_cells\"}" +} diff --git a/tasks/minesweeper/reveal-first-cell.json b/tasks/minesweeper/reveal-first-cell.json new file mode 100644 index 0000000000000000000000000000000000000000..ab85af96b0334dd538149d516eae8af26b38a10a --- /dev/null +++ b/tasks/minesweeper/reveal-first-cell.json @@ -0,0 +1,13 @@ +{ + "id": "reveal-first-cell", + "name": "Reveal First Cell", + "description": "Make the first move in Minesweeper by revealing any cell", + "environment": "{\"type\": \"url\", \"path\": \"https://dojo-spas-production.s3.us-east-1.amazonaws.com/minesweeper/index.html\"}", + "initial_state": "{\"gameStatus\":\"not_started\",\"board\":[[{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0}],[{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0}],[{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0}],[{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0}],[{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0}],[{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0}],[{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0}],[{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0}],[{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0}]]}", + "instructions": "{\"user_prompt\": \"Start playing Minesweeper by revealing any cell on the board. Left-click on any cell to begin the game.\", \"success_criteria\": \"At least one cell must be revealed and the game status should change to 'playing'.\"}", + "reward_function": "_validate_minesweeper_reveal_first_cell", + "valid_target_states": "", + "max_steps": 2, + "timeout_seconds": 30, + "metadata": "{\"category\": \"games\", \"difficulty\": \"easy\", \"action\": \"first_move\"}" +} diff --git a/tasks/minesweeper/reveal-numbered-cell.json b/tasks/minesweeper/reveal-numbered-cell.json new file mode 100644 index 0000000000000000000000000000000000000000..af738816791d3783d412acaa2964fee7ae683650 --- /dev/null +++ b/tasks/minesweeper/reveal-numbered-cell.json @@ -0,0 +1,13 @@ +{ + "id": "reveal-numbered-cell", + "name": "Reveal Numbered Cell", + "description": "Reveal a cell that shows the count of neighboring mines", + "environment": "{\"type\": \"url\", \"path\": \"https://dojo-spas-production.s3.us-east-1.amazonaws.com/minesweeper/index.html\"}", + "initial_state": "{\"gameStatus\":\"playing\",\"board\":[[{\"isMine\":true,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":1},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0}],[{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":1},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":1},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0}],[{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0}],[{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0}],[{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0}],[{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0}],[{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0}],[{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0}],[{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0}]]}", + "instructions": "{\"user_prompt\": \"The cell at row 1, column 1 is safe and has neighboring mines. Left-click on that cell to reveal it and see the count of neighboring mines.\", \"success_criteria\": \"The cell at position [1][1] must be revealed and show a neighbor mine count greater than 0.\"}", + "reward_function": "_validate_minesweeper_reveal_numbered_cell", + "valid_target_states": "", + "max_steps": 2, + "timeout_seconds": 30, + "metadata": "{\"category\": \"games\", \"difficulty\": \"easy\", \"action\": \"reveal_numbered\"}" +} diff --git a/tasks/minesweeper/reveal-safe-cell.json b/tasks/minesweeper/reveal-safe-cell.json new file mode 100644 index 0000000000000000000000000000000000000000..6411fe4a5538862158785fce91f2ff31bc67db33 --- /dev/null +++ b/tasks/minesweeper/reveal-safe-cell.json @@ -0,0 +1,13 @@ +{ + "id": "reveal-safe-cell", + "name": "Reveal Safe Cell", + "description": "Reveal a specific safe cell with no neighboring mines", + "environment": "{\"type\": \"url\", \"path\": \"https://dojo-spas-production.s3.us-east-1.amazonaws.com/minesweeper/index.html\"}", + "initial_state": "{\"gameStatus\":\"playing\",\"board\":[[{\"isMine\":true,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":1},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":1},{\"isMine\":true,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0}],[{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":1},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":1},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":1},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":1}],[{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0}],[{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0}],[{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0}],[{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0}],[{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0}],[{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":1},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":1},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":1},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":1}],[{\"isMine\":true,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":1},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":1},{\"isMine\":true,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0}]]}", + "instructions": "{\"user_prompt\": \"The cell at row 4, column 4 (center) is confirmed safe with no neighboring mines. Left-click on that cell to reveal it.\", \"success_criteria\": \"The cell at position [4][4] must be revealed and show no neighboring mines.\"}", + "reward_function": "_validate_minesweeper_reveal_safe_cell", + "valid_target_states": "", + "max_steps": 2, + "timeout_seconds": 30, + "metadata": "{\"category\": \"games\", \"difficulty\": \"easy\", \"action\": \"reveal_safe\"}" +} diff --git a/tasks/minesweeper/strategic-flagging-and-clearing.json b/tasks/minesweeper/strategic-flagging-and-clearing.json new file mode 100644 index 0000000000000000000000000000000000000000..f4ebb526b9da029ebdb28f7da5b3922ae7f25043 --- /dev/null +++ b/tasks/minesweeper/strategic-flagging-and-clearing.json @@ -0,0 +1,13 @@ +{ + "id": "strategic-flagging-and-clearing", + "name": "Strategic Flagging and Clearing", + "description": "Complete a Minesweeper game by strategically flagging mines and revealing all safe cells", + "environment": "{\"type\": \"url\", \"path\": \"https://dojo-spas-production.s3.us-east-1.amazonaws.com/minesweeper/index.html\"}", + "initial_state": "{\"gameStatus\":\"playing\",\"board\":[[{\"isMine\":true,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":1},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":1},{\"isMine\":true,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0}],[{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":1},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":1},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":1},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":1}],[{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":true,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":true,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":true,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":true,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":true,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0}],[{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":true,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":true,\"isFlagged\":false,\"neighborMineCount\":1},{\"isMine\":false,\"isRevealed\":true,\"isFlagged\":false,\"neighborMineCount\":1},{\"isMine\":false,\"isRevealed\":true,\"isFlagged\":false,\"neighborMineCount\":1},{\"isMine\":false,\"isRevealed\":true,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0}],[{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":true,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":true,\"isFlagged\":false,\"neighborMineCount\":1},{\"isMine\":true,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":true,\"isFlagged\":false,\"neighborMineCount\":1},{\"isMine\":false,\"isRevealed\":true,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0}],[{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":true,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":true,\"isFlagged\":false,\"neighborMineCount\":1},{\"isMine\":false,\"isRevealed\":true,\"isFlagged\":false,\"neighborMineCount\":1},{\"isMine\":false,\"isRevealed\":true,\"isFlagged\":false,\"neighborMineCount\":1},{\"isMine\":false,\"isRevealed\":true,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0}],[{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":true,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":true,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":true,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":true,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":true,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0}],[{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":1},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":1},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":1},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":1}],[{\"isMine\":true,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":1},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":1},{\"isMine\":true,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0}]]}", + "instructions": "{\"user_prompt\": \"The board is partially revealed with some cells already uncovered. Use strategic thinking to flag all remaining mines and reveal all safe cells to win the game. Use the number clues to deduce mine locations.\", \"success_criteria\": \"The game must end with status 'won' by revealing all non-mine cells. All mines should ideally be flagged correctly.\"}", + "reward_function": "", + "valid_target_states": "[{\"gameStatus\": \"won\"}]", + "max_steps": 20, + "timeout_seconds": 180, + "metadata": "{\"category\": \"games\", \"difficulty\": \"hard\", \"action\": \"strategic_complete\", \"strategy\": \"comprehensive\"}" +} diff --git a/tasks/minesweeper/win-small-game.json b/tasks/minesweeper/win-small-game.json new file mode 100644 index 0000000000000000000000000000000000000000..fad2a1146cb2e8b83925142e3fcd9a0e8601e0ce --- /dev/null +++ b/tasks/minesweeper/win-small-game.json @@ -0,0 +1,13 @@ +{ + "id": "win-small-game", + "name": "Win Small Game", + "description": "Win a Minesweeper game that is mostly cleared and close to completion", + "environment": "{\"type\": \"url\", \"path\": \"https://dojo-spas-production.s3.us-east-1.amazonaws.com/minesweeper/index.html\"}", + "initial_state": "{\"gameStatus\":\"playing\",\"board\":[[{\"isMine\":true,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":true,\"isFlagged\":false,\"neighborMineCount\":1},{\"isMine\":false,\"isRevealed\":true,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":true,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":true,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":true,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":true,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":true,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":true,\"isFlagged\":false,\"neighborMineCount\":0}],[{\"isMine\":false,\"isRevealed\":true,\"isFlagged\":false,\"neighborMineCount\":1},{\"isMine\":false,\"isRevealed\":true,\"isFlagged\":false,\"neighborMineCount\":1},{\"isMine\":false,\"isRevealed\":true,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":true,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":true,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":true,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":true,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":true,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":true,\"isFlagged\":false,\"neighborMineCount\":0}],[{\"isMine\":false,\"isRevealed\":true,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":true,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":true,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":true,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":true,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":true,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":true,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":true,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":true,\"isFlagged\":false,\"neighborMineCount\":0}],[{\"isMine\":false,\"isRevealed\":true,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":true,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":true,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":true,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":true,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":true,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":true,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":true,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":true,\"isFlagged\":false,\"neighborMineCount\":0}],[{\"isMine\":false,\"isRevealed\":true,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":true,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":true,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":true,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":true,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":true,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":true,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":true,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":true,\"isFlagged\":false,\"neighborMineCount\":0}],[{\"isMine\":false,\"isRevealed\":true,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":true,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":true,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":true,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":true,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":true,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":true,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":true,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":true,\"isFlagged\":false,\"neighborMineCount\":0}],[{\"isMine\":false,\"isRevealed\":true,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":true,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":true,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":true,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":true,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":true,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":true,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":true,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":true,\"isFlagged\":false,\"neighborMineCount\":0}],[{\"isMine\":false,\"isRevealed\":true,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":true,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":true,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":true,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":true,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":true,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":true,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":1},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":1}],[{\"isMine\":false,\"isRevealed\":true,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":true,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":true,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":true,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":true,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":true,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":true,\"isFlagged\":false,\"neighborMineCount\":0},{\"isMine\":false,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":1},{\"isMine\":true,\"isRevealed\":false,\"isFlagged\":false,\"neighborMineCount\":0}]]}", + "instructions": "{\"user_prompt\": \"The board is mostly cleared with only a few cells remaining. Reveal the remaining safe cells to win the game. Be careful not to hit any mines!\", \"success_criteria\": \"The game must end with status 'won' by revealing all non-mine cells.\"}", + "reward_function": "", + "valid_target_states": "[{\"gameStatus\": \"won\"}]", + "max_steps": 10, + "timeout_seconds": 120, + "metadata": "{\"category\": \"games\", \"difficulty\": \"hard\", \"action\": \"win_game\"}" +} diff --git a/tasks/salesforce/change-case-status.json b/tasks/salesforce/change-case-status.json new file mode 100644 index 0000000000000000000000000000000000000000..28ab2a9e121b264096b6d7c244ef5061cef6296d --- /dev/null +++ b/tasks/salesforce/change-case-status.json @@ -0,0 +1,13 @@ +{ + "id": "change-case-status", + "name": "Change Case Status", + "description": "Change a case's status from the case details page", + "environment": "{\"type\": \"url\", \"path\": \"https://dojo-spas-production.s3.us-east-1.amazonaws.com/salesforce/index.html\"}", + "initial_state": "{\"tabs\": [{\"id\": \"home-dashboard\", \"type\": \"home-dashboard\"}, {\"id\": \"case-case-001\", \"type\": \"home-case\", \"dataId\": \"case-001\"}], \"activeTabId\": \"case-case-001\", \"leads\": [], \"contacts\": [], \"opportunities\": [], \"cases\": [{\"id\": \"case-001\", \"status\": \"New\", \"caseOrigin\": \"Web\", \"priority\": \"Medium\", \"caseOwner\": \"Dzaka Athif\", \"caseReason\": \"--None--\", \"contactName\": \"John Smith\", \"accountName\": \"Acme Corp\", \"subject\": \"Product inquiry\", \"description\": \"Customer wants more information about the product\", \"sendNotificationEmail\": false}], \"isNewLeadDialogOpen\": false, \"isNewContactDialogOpen\": false, \"isConvertLeadDialogOpen\": false, \"convertingLeadId\": null, \"isAfterConvertDialogOpen\": false, \"afterConvertLeadId\": null, \"isNewOpportunityDialogOpen\": false, \"isCloseOpportunityDialogOpen\": false, \"closingOpportunityId\": null, \"isNewCaseDialogOpen\": false, \"isEditCaseDialogOpen\": false}", + "instructions": "{\"user_prompt\": \"You are on a case details page with current status 'New'. Click on the 'Working' status button in the status path bar, then click the 'Mark as Current Status' button to update the case status.\", \"success_criteria\": \"The case's status must be updated to 'Working' in the cases array.\"}", + "reward_function": "", + "valid_target_states": "[{\"cases\": [{\"id\": \"case-001\", \"status\": \"Working\", \"caseOrigin\": \"Web\", \"priority\": \"Medium\", \"caseOwner\": \"Dzaka Athif\", \"caseReason\": \"--None--\", \"contactName\": \"John Smith\", \"accountName\": \"Acme Corp\", \"subject\": \"Product inquiry\", \"description\": \"Customer wants more information about the product\", \"sendNotificationEmail\": false}]}]", + "max_steps": 10, + "timeout_seconds": 60, + "metadata": "{\"category\": \"crm\", \"difficulty\": \"easy\"}" +} diff --git a/tasks/salesforce/change-lead-status.json b/tasks/salesforce/change-lead-status.json new file mode 100644 index 0000000000000000000000000000000000000000..9582a7adcef9a86b8bbeaffbe575faeac841f2a6 --- /dev/null +++ b/tasks/salesforce/change-lead-status.json @@ -0,0 +1,13 @@ +{ + "id": "change-lead-status", + "name": "Change Lead Status", + "description": "Change a lead's status from the lead details page", + "environment": "{\"type\": \"url\", \"path\": \"https://dojo-spas-production.s3.us-east-1.amazonaws.com/salesforce/index.html\"}", + "initial_state": "{\"tabs\": [{\"id\": \"home-dashboard\", \"type\": \"home-dashboard\"}, {\"id\": \"lead-lead-001\", \"type\": \"home-lead\", \"dataId\": \"lead-001\"}], \"activeTabId\": \"lead-lead-001\", \"leads\": [{\"id\": \"lead-001\", \"name\": \"John Doe\", \"company\": \"Tech Solutions Inc\", \"salutation\": \"Mr.\", \"firstName\": \"John\", \"lastName\": \"Doe\", \"title\": \"CTO\", \"website\": \"https://techsolutions.com\", \"description\": \"Potential client for enterprise software\", \"leadStatus\": \"New\", \"leadOwner\": \"Dzaka Athif\", \"phone\": \"+1-555-0123\", \"email\": \"john.doe@techsolutions.com\", \"country\": \"United States\", \"street\": \"123 Tech Street\", \"city\": \"San Francisco\", \"state\": \"CA\", \"zipCode\": \"94105\", \"numberOfEmployees\": \"500\", \"annualRevenue\": \"$10M\", \"leadSource\": \"Web\", \"industry\": \"Technology\"}], \"contacts\": [], \"opportunities\": [], \"cases\": [], \"isNewLeadDialogOpen\": false, \"isNewContactDialogOpen\": false, \"isConvertLeadDialogOpen\": false, \"convertingLeadId\": null, \"isAfterConvertDialogOpen\": false, \"afterConvertLeadId\": null, \"isNewOpportunityDialogOpen\": false, \"isCloseOpportunityDialogOpen\": false, \"closingOpportunityId\": null, \"isNewCaseDialogOpen\": false, \"isEditCaseDialogOpen\": false}", + "instructions": "{\"user_prompt\": \"You are on a lead details page for John Doe with current status 'New'. Click on the 'Contacted' status button in the status path bar, then click the 'Mark as Current Status' button to update the lead status.\", \"success_criteria\": \"The lead's status must be updated to 'Contacted' in the leads array.\"}", + "reward_function": "", + "valid_target_states": "[{\"leads\": [{\"id\": \"lead-001\", \"name\": \"John Doe\", \"company\": \"Tech Solutions Inc\", \"salutation\": \"Mr.\", \"firstName\": \"John\", \"lastName\": \"Doe\", \"title\": \"CTO\", \"website\": \"https://techsolutions.com\", \"description\": \"Potential client for enterprise software\", \"leadStatus\": \"Contacted\", \"leadOwner\": \"Dzaka Athif\", \"phone\": \"+1-555-0123\", \"email\": \"john.doe@techsolutions.com\", \"country\": \"United States\", \"street\": \"123 Tech Street\", \"city\": \"San Francisco\", \"state\": \"CA\", \"zipCode\": \"94105\", \"numberOfEmployees\": \"500\", \"annualRevenue\": \"$10M\", \"leadSource\": \"Web\", \"industry\": \"Technology\"}]}]", + "max_steps": 10, + "timeout_seconds": 60, + "metadata": "{\"category\": \"crm\", \"difficulty\": \"easy\"}" +} diff --git a/tasks/salesforce/convert-lead-to-contact.json b/tasks/salesforce/convert-lead-to-contact.json new file mode 100644 index 0000000000000000000000000000000000000000..58dec2326d183a21b8d283e7cbb111d3abbc3538 --- /dev/null +++ b/tasks/salesforce/convert-lead-to-contact.json @@ -0,0 +1,13 @@ +{ + "id": "convert-lead-to-contact", + "name": "Convert Lead to Contact", + "description": "Convert an existing lead to a contact through the full conversion workflow", + "environment": "{\"type\": \"url\", \"path\": \"https://dojo-spas-production.s3.us-east-1.amazonaws.com/salesforce/index.html\"}", + "initial_state": "{\"tabs\": [{\"id\": \"home-dashboard\", \"type\": \"home-dashboard\"}, {\"id\": \"lead-lead-001\", \"type\": \"home-lead\", \"dataId\": \"lead-001\"}], \"activeTabId\": \"lead-lead-001\", \"leads\": [{\"id\": \"lead-001\", \"name\": \"Michael Brown\", \"company\": \"Enterprise Solutions LLC\", \"salutation\": \"Mr.\", \"firstName\": \"Michael\", \"lastName\": \"Brown\", \"title\": \"CEO\", \"website\": \"https://enterprisesolutions.com\", \"description\": \"Ready to close enterprise deal\", \"leadStatus\": \"Nurturing\", \"leadOwner\": \"Dzaka Athif\", \"phone\": \"+1-555-4567\", \"email\": \"michael.brown@enterprisesolutions.com\", \"country\": \"United States\", \"street\": \"789 Executive Blvd\", \"city\": \"Boston\", \"state\": \"MA\", \"zipCode\": \"02101\", \"numberOfEmployees\": \"250\", \"annualRevenue\": \"$25M\", \"leadSource\": \"Trade Show\", \"industry\": \"Technology\"}], \"contacts\": [], \"opportunities\": [], \"cases\": [], \"isNewLeadDialogOpen\": false, \"isNewContactDialogOpen\": false, \"isConvertLeadDialogOpen\": false, \"convertingLeadId\": null, \"isAfterConvertDialogOpen\": false, \"afterConvertLeadId\": null, \"isNewOpportunityDialogOpen\": false, \"isCloseOpportunityDialogOpen\": false, \"closingOpportunityId\": null, \"isNewCaseDialogOpen\": false, \"isEditCaseDialogOpen\": false}", + "instructions": "{\"user_prompt\": \"You are on the lead details page for Michael Brown. Convert this lead to a contact by: 1) Click on the 'Converted' status button in the status path bar to select it, 2) Click the 'Select Converted Status' button that appears, 3) In the convert lead dialog that opens, click the 'Convert' button, 4) In the success dialog that appears, click the 'Go to Leads' button. You will be redirected to the leads list page.\", \"success_criteria\": \"The lead must be marked as converted (leadStatus: 'Converted' and convertedToContactId set), a new contact must be created in the contacts array with the lead's information, and the active view must be the leads list page (activeTabId: 'home-listLeads').\"}", + "reward_function": "_validate_salesforce_convert_lead", + "valid_target_states": "", + "max_steps": 20, + "timeout_seconds": 120, + "metadata": "{\"category\": \"crm\", \"difficulty\": \"medium\"}" +} diff --git a/tasks/salesforce/create-and-close-case.json b/tasks/salesforce/create-and-close-case.json new file mode 100644 index 0000000000000000000000000000000000000000..f906a5a703ccfd130bc0c1c06656f8472434ac33 --- /dev/null +++ b/tasks/salesforce/create-and-close-case.json @@ -0,0 +1,13 @@ +{ + "id": "create-and-close-case", + "name": "Create and Close Case", + "description": "Complete workflow of creating a new case and closing it", + "environment": "{\"type\": \"url\", \"path\": \"https://dojo-spas-production.s3.us-east-1.amazonaws.com/salesforce/index.html\"}", + "initial_state": "{\"tabs\": [{\"id\": \"home-dashboard\", \"type\": \"home-dashboard\"}], \"activeTabId\": \"home-dashboard\", \"leads\": [], \"contacts\": [], \"opportunities\": [], \"cases\": [], \"isNewLeadDialogOpen\": false, \"isNewContactDialogOpen\": false, \"isConvertLeadDialogOpen\": false, \"convertingLeadId\": null, \"isAfterConvertDialogOpen\": false, \"afterConvertLeadId\": null, \"isNewOpportunityDialogOpen\": false, \"isCloseOpportunityDialogOpen\": false, \"closingOpportunityId\": null, \"isNewCaseDialogOpen\": false, \"isEditCaseDialogOpen\": false}", + "instructions": "{\"user_prompt\": \"You are on the Salesforce dashboard. Complete the full case creation and closure workflow: 1) Click the 'New' button on the Cases card to open the new case dialog, 2) Scroll down and fill in Subject: 'Customer complaint resolved', 3) Click 'Save' to create the case and navigate to its details page, 4) Click on the 'Closed' status button in the status path bar, 5) Click the 'Mark as Current Status' button to close the case.\", \"success_criteria\": \"A case with subject 'Customer complaint resolved' must be created and marked as closed (status: 'Closed'), and remain on the case details page.\"}", + "reward_function": "_validate_salesforce_create_and_close_case", + "valid_target_states": "", + "max_steps": 20, + "timeout_seconds": 120, + "metadata": "{\"category\": \"crm\", \"difficulty\": \"hard\"}" +} diff --git a/tasks/salesforce/create-and-convert-lead.json b/tasks/salesforce/create-and-convert-lead.json new file mode 100644 index 0000000000000000000000000000000000000000..4c43bb694473cd6cd7be87ab3fd8b947ade04d02 --- /dev/null +++ b/tasks/salesforce/create-and-convert-lead.json @@ -0,0 +1,13 @@ +{ + "id": "create-and-convert-lead", + "name": "Create and Convert Lead", + "description": "Complete workflow of creating a new lead and converting it to a contact", + "environment": "{\"type\": \"url\", \"path\": \"https://dojo-spas-production.s3.us-east-1.amazonaws.com/salesforce/index.html\"}", + "initial_state": "{\"tabs\": [{\"id\": \"home-dashboard\", \"type\": \"home-dashboard\"}], \"activeTabId\": \"home-dashboard\", \"leads\": [], \"contacts\": [], \"opportunities\": [], \"cases\": [], \"isNewLeadDialogOpen\": false, \"isNewContactDialogOpen\": false, \"isConvertLeadDialogOpen\": false, \"convertingLeadId\": null, \"isAfterConvertDialogOpen\": false, \"afterConvertLeadId\": null, \"isNewOpportunityDialogOpen\": false, \"isCloseOpportunityDialogOpen\": false, \"closingOpportunityId\": null, \"isNewCaseDialogOpen\": false, \"isEditCaseDialogOpen\": false}", + "instructions": "{\"user_prompt\": \"You are on the Salesforce dashboard. Complete the full lead creation and conversion workflow: 1) Click the 'New' button on the Leads card to open the new lead dialog, 2) Fill in the required fields: Name: 'Robert Taylor' and Company: 'Future Innovations Inc', 3) Click 'Save' to create the lead and navigate to its details page, 4) Click on the 'Converted' status button in the status path bar, 5) Click the 'Select Converted Status' button, 6) In the convert lead dialog, click 'Convert', 7) In the success dialog, click 'Go to Leads' to go to the leads list page.\", \"success_criteria\": \"A lead with name 'Robert Taylor' must be created and marked as converted, a new contact must be created from this lead in the contacts array with matching information, and the active view must be the leads list page (activeTabId: 'home-listLeads').\"}", + "reward_function": "_validate_salesforce_create_and_convert_lead", + "valid_target_states": "", + "max_steps": 30, + "timeout_seconds": 180, + "metadata": "{\"category\": \"crm\", \"difficulty\": \"hard\"}" +} diff --git a/tasks/salesforce/create-new-case.json b/tasks/salesforce/create-new-case.json new file mode 100644 index 0000000000000000000000000000000000000000..74d714143e6f5423aa09f4100220ded3a377dd58 --- /dev/null +++ b/tasks/salesforce/create-new-case.json @@ -0,0 +1,13 @@ +{ + "id": "create-new-case", + "name": "Create New Case", + "description": "Create a new case by filling out the form and saving it", + "environment": "{\"type\": \"url\", \"path\": \"https://dojo-spas-production.s3.us-east-1.amazonaws.com/salesforce/index.html\"}", + "initial_state": "{\"tabs\": [{\"id\": \"home-dashboard\", \"type\": \"home-dashboard\"}], \"activeTabId\": \"home-dashboard\", \"leads\": [], \"contacts\": [], \"opportunities\": [], \"cases\": [], \"isNewLeadDialogOpen\": false, \"isNewContactDialogOpen\": false, \"isConvertLeadDialogOpen\": false, \"convertingLeadId\": null, \"isAfterConvertDialogOpen\": false, \"afterConvertLeadId\": null, \"isNewOpportunityDialogOpen\": false, \"isCloseOpportunityDialogOpen\": false, \"closingOpportunityId\": null, \"isNewCaseDialogOpen\": false, \"isEditCaseDialogOpen\": false}", + "instructions": "{\"user_prompt\": \"You are on the Salesforce dashboard. Create a new case by: 1) Click the 'New' button on the Cases card to open the new case dialog, 2) Scroll down and fill in Subject: 'Technical support request'. 3) Click the 'Save' button. A new case will be created and you will be redirected to the case details page.\", \"success_criteria\": \"A new case with subject 'Technical support request' must exist in the cases array, and a new tab of type 'home-case' must be created and active.\"}", + "reward_function": "_validate_salesforce_create_new_case", + "valid_target_states": "", + "max_steps": 15, + "timeout_seconds": 90, + "metadata": "{\"category\": \"crm\", \"difficulty\": \"medium\"}" +} diff --git a/tasks/salesforce/create-new-lead.json b/tasks/salesforce/create-new-lead.json new file mode 100644 index 0000000000000000000000000000000000000000..8d75bc90fdb027af408d1635925e97bf4c0b66a0 --- /dev/null +++ b/tasks/salesforce/create-new-lead.json @@ -0,0 +1,13 @@ +{ + "id": "create-new-lead", + "name": "Create New Lead", + "description": "Create a new lead by filling out the form and saving it", + "environment": "{\"type\": \"url\", \"path\": \"https://dojo-spas-production.s3.us-east-1.amazonaws.com/salesforce/index.html\"}", + "initial_state": "{\"tabs\": [{\"id\": \"home-dashboard\", \"type\": \"home-dashboard\"}], \"activeTabId\": \"home-dashboard\", \"leads\": [], \"contacts\": [], \"opportunities\": [], \"cases\": [], \"isNewLeadDialogOpen\": false, \"isNewContactDialogOpen\": false, \"isConvertLeadDialogOpen\": false, \"convertingLeadId\": null, \"isAfterConvertDialogOpen\": false, \"afterConvertLeadId\": null, \"isNewOpportunityDialogOpen\": false, \"isCloseOpportunityDialogOpen\": false, \"closingOpportunityId\": null, \"isNewCaseDialogOpen\": false, \"isEditCaseDialogOpen\": false}", + "instructions": "{\"user_prompt\": \"You are on the Salesforce dashboard. Create a new lead by: 1) Click the 'New' button on the Leads card to open the new lead dialog, 2) Fill in First Name: 'Jane', Last Name: 'Smith', Company: 'Innovation Labs'. 3) Click the 'Save' button. A new lead will be created and you will be redirected to the lead details page.\", \"success_criteria\": \"A new lead with name 'Jane Smith' and company 'Innovation Labs' must exist in the leads array, and a new tab of type 'home-lead' must be created and active.\"}", + "reward_function": "_validate_salesforce_create_new_lead", + "valid_target_states": "", + "max_steps": 15, + "timeout_seconds": 90, + "metadata": "{\"category\": \"crm\", \"difficulty\": \"medium\"}" +} diff --git a/tasks/salesforce/edit-lead-inline.json b/tasks/salesforce/edit-lead-inline.json new file mode 100644 index 0000000000000000000000000000000000000000..5eaa0e281a52d4c00d25ad4fdf999b42ff6aa429 --- /dev/null +++ b/tasks/salesforce/edit-lead-inline.json @@ -0,0 +1,13 @@ +{ + "id": "edit-lead-inline", + "name": "Edit Lead Inline", + "description": "Edit a lead's details using inline editing on the details panel", + "environment": "{\"type\": \"url\", \"path\": \"https://dojo-spas-production.s3.us-east-1.amazonaws.com/salesforce/index.html\"}", + "initial_state": "{\"tabs\": [{\"id\": \"home-dashboard\", \"type\": \"home-dashboard\"}, {\"id\": \"lead-lead-001\", \"type\": \"home-lead\", \"dataId\": \"lead-001\"}], \"activeTabId\": \"lead-lead-001\", \"leads\": [{\"id\": \"lead-001\", \"name\": \"Sarah Johnson\", \"company\": \"Global Tech Corp\", \"salutation\": \"Ms.\", \"firstName\": \"Sarah\", \"lastName\": \"Johnson\", \"title\": \"VP of Sales\", \"website\": \"https://globaltech.com\", \"description\": \"Key decision maker for enterprise solutions\", \"leadStatus\": \"Contacted\", \"leadOwner\": \"Dzaka Athif\", \"phone\": \"+1-555-9876\", \"email\": \"sarah.johnson@globaltech.com\", \"country\": \"United States\", \"street\": \"456 Business Ave\", \"city\": \"New York\", \"state\": \"NY\", \"zipCode\": \"10001\", \"numberOfEmployees\": \"1000\", \"annualRevenue\": \"$50M\", \"leadSource\": \"Referral\", \"industry\": \"Technology\"}], \"contacts\": [], \"opportunities\": [], \"cases\": [], \"isNewLeadDialogOpen\": false, \"isNewContactDialogOpen\": false, \"isConvertLeadDialogOpen\": false, \"convertingLeadId\": null, \"isAfterConvertDialogOpen\": false, \"afterConvertLeadId\": null, \"isNewOpportunityDialogOpen\": false, \"isCloseOpportunityDialogOpen\": false, \"closingOpportunityId\": null, \"isNewCaseDialogOpen\": false, \"isEditCaseDialogOpen\": false}", + "instructions": "{\"user_prompt\": \"You are on the lead details page for Sarah Johnson. Edit the lead's information by: 1) Click the pencil icon in the Lead Details panel on the left side to enter edit mode, 2) Scroll down to find the Title field, 3) Change the Title field from 'VP of Sales' to 'Senior VP of Sales', 4) Click the 'Save' button to save the changes.\", \"success_criteria\": \"The lead's title must be updated to 'Senior VP of Sales' in the leads array.\"}", + "reward_function": "_validate_salesforce_edit_lead_inline", + "valid_target_states": "", + "max_steps": 15, + "timeout_seconds": 90, + "metadata": "{\"category\": \"crm\", \"difficulty\": \"medium\"}" +} diff --git a/tasks/salesforce/open-edit-case-dialog.json b/tasks/salesforce/open-edit-case-dialog.json new file mode 100644 index 0000000000000000000000000000000000000000..3ee13d2f260bfcd5e0ddd19a7d574dc03175408e --- /dev/null +++ b/tasks/salesforce/open-edit-case-dialog.json @@ -0,0 +1,13 @@ +{ + "id": "open-edit-case-dialog", + "name": "Open Edit Case Dialog", + "description": "Open the edit case dialog from a case details page", + "environment": "{\"type\": \"url\", \"path\": \"https://dojo-spas-production.s3.us-east-1.amazonaws.com/salesforce/index.html\"}", + "initial_state": "{\"tabs\": [{\"id\": \"home-dashboard\", \"type\": \"home-dashboard\"}, {\"id\": \"case-case-001\", \"type\": \"home-case\", \"dataId\": \"case-001\"}], \"activeTabId\": \"case-case-001\", \"leads\": [], \"contacts\": [], \"opportunities\": [], \"cases\": [{\"id\": \"case-001\", \"status\": \"New\", \"caseOrigin\": \"Web\", \"priority\": \"Medium\", \"caseOwner\": \"Dzaka Athif\", \"caseReason\": \"--None--\", \"contactName\": \"John Smith\", \"accountName\": \"Acme Corp\", \"subject\": \"Product inquiry\", \"description\": \"Customer wants more information about the product\", \"sendNotificationEmail\": false}], \"isNewLeadDialogOpen\": false, \"isNewContactDialogOpen\": false, \"isConvertLeadDialogOpen\": false, \"convertingLeadId\": null, \"isAfterConvertDialogOpen\": false, \"afterConvertLeadId\": null, \"isNewOpportunityDialogOpen\": false, \"isCloseOpportunityDialogOpen\": false, \"closingOpportunityId\": null, \"isNewCaseDialogOpen\": false, \"isEditCaseDialogOpen\": false}", + "instructions": "{\"user_prompt\": \"You are on a case details page. Click the blue 'Edit' button in the Key Fields section (located under the status path bar on the right side) to open the edit case dialog.\", \"success_criteria\": \"The edit case dialog must be open (isEditCaseDialogOpen must be true).\"}", + "reward_function": "", + "valid_target_states": "[{\"isEditCaseDialogOpen\": true}]", + "max_steps": 5, + "timeout_seconds": 30, + "metadata": "{\"category\": \"crm\", \"difficulty\": \"easy\"}" +} diff --git a/tasks/salesforce/open-new-case-dialog.json b/tasks/salesforce/open-new-case-dialog.json new file mode 100644 index 0000000000000000000000000000000000000000..840bc6c8c201bf69fc3befb87b9359cf1f869bc5 --- /dev/null +++ b/tasks/salesforce/open-new-case-dialog.json @@ -0,0 +1,13 @@ +{ + "id": "open-new-case-dialog", + "name": "Open New Case Dialog", + "description": "Open the new case creation dialog from the dashboard", + "environment": "{\"type\": \"url\", \"path\": \"https://dojo-spas-production.s3.us-east-1.amazonaws.com/salesforce/index.html\"}", + "initial_state": "{\"tabs\": [{\"id\": \"home-dashboard\", \"type\": \"home-dashboard\"}], \"activeTabId\": \"home-dashboard\", \"leads\": [], \"contacts\": [], \"opportunities\": [], \"cases\": [], \"isNewLeadDialogOpen\": false, \"isNewContactDialogOpen\": false, \"isConvertLeadDialogOpen\": false, \"convertingLeadId\": null, \"isAfterConvertDialogOpen\": false, \"afterConvertLeadId\": null, \"isNewOpportunityDialogOpen\": false, \"isCloseOpportunityDialogOpen\": false, \"closingOpportunityId\": null, \"isNewCaseDialogOpen\": false, \"isEditCaseDialogOpen\": false}", + "instructions": "{\"user_prompt\": \"You are on the Salesforce dashboard. Click the 'New' button on the Cases card to open the new case dialog.\", \"success_criteria\": \"The new case dialog must be open (isNewCaseDialogOpen must be true).\"}", + "reward_function": "", + "valid_target_states": "[{\"isNewCaseDialogOpen\": true}]", + "max_steps": 5, + "timeout_seconds": 30, + "metadata": "{\"category\": \"crm\", \"difficulty\": \"easy\"}" +} diff --git a/tasks/salesforce/open-new-contact-dialog.json b/tasks/salesforce/open-new-contact-dialog.json new file mode 100644 index 0000000000000000000000000000000000000000..cca5a0bfa3abaf9883557f1ba5d66c6b7227800d --- /dev/null +++ b/tasks/salesforce/open-new-contact-dialog.json @@ -0,0 +1,13 @@ +{ + "id": "open-new-contact-dialog", + "name": "Open New Contact Dialog", + "description": "Open the new contact creation dialog from the dashboard", + "environment": "{\"type\": \"url\", \"path\": \"https://dojo-spas-production.s3.us-east-1.amazonaws.com/salesforce/index.html\"}", + "initial_state": "{\"tabs\": [{\"id\": \"home-dashboard\", \"type\": \"home-dashboard\"}], \"activeTabId\": \"home-dashboard\", \"leads\": [], \"contacts\": [], \"opportunities\": [], \"cases\": [], \"isNewLeadDialogOpen\": false, \"isNewContactDialogOpen\": false, \"isConvertLeadDialogOpen\": false, \"convertingLeadId\": null, \"isAfterConvertDialogOpen\": false, \"afterConvertLeadId\": null, \"isNewOpportunityDialogOpen\": false, \"isCloseOpportunityDialogOpen\": false, \"closingOpportunityId\": null, \"isNewCaseDialogOpen\": false, \"isEditCaseDialogOpen\": false}", + "instructions": "{\"user_prompt\": \"You are on the Salesforce dashboard. Click the 'New' button on the Contacts card to open the new contact dialog.\", \"success_criteria\": \"The new contact dialog must be open (isNewContactDialogOpen must be true).\"}", + "reward_function": "", + "valid_target_states": "[{\"isNewContactDialogOpen\": true}]", + "max_steps": 5, + "timeout_seconds": 30, + "metadata": "{\"category\": \"crm\", \"difficulty\": \"easy\"}" +} diff --git a/tasks/salesforce/open-new-lead-dialog.json b/tasks/salesforce/open-new-lead-dialog.json new file mode 100644 index 0000000000000000000000000000000000000000..1b7aca9a56fe5726fb17844c73c59b55a1f7e4bc --- /dev/null +++ b/tasks/salesforce/open-new-lead-dialog.json @@ -0,0 +1,13 @@ +{ + "id": "open-new-lead-dialog", + "name": "Open New Lead Dialog", + "description": "Open the new lead creation dialog from the dashboard", + "environment": "{\"type\": \"url\", \"path\": \"https://dojo-spas-production.s3.us-east-1.amazonaws.com/salesforce/index.html\"}", + "initial_state": "{\"tabs\": [{\"id\": \"home-dashboard\", \"type\": \"home-dashboard\"}], \"activeTabId\": \"home-dashboard\", \"leads\": [], \"contacts\": [], \"opportunities\": [], \"cases\": [], \"isNewLeadDialogOpen\": false, \"isNewContactDialogOpen\": false, \"isConvertLeadDialogOpen\": false, \"convertingLeadId\": null, \"isAfterConvertDialogOpen\": false, \"afterConvertLeadId\": null, \"isNewOpportunityDialogOpen\": false, \"isCloseOpportunityDialogOpen\": false, \"closingOpportunityId\": null, \"isNewCaseDialogOpen\": false, \"isEditCaseDialogOpen\": false}", + "instructions": "{\"user_prompt\": \"You are on the Salesforce dashboard. Click the 'New' button on the Leads card to open the new lead dialog.\", \"success_criteria\": \"The new lead dialog must be open (isNewLeadDialogOpen must be true).\"}", + "reward_function": "", + "valid_target_states": "[{\"isNewLeadDialogOpen\": true}]", + "max_steps": 5, + "timeout_seconds": 30, + "metadata": "{\"category\": \"crm\", \"difficulty\": \"easy\"}" +} diff --git a/tasks/salesforce/open-new-opportunity-dialog.json b/tasks/salesforce/open-new-opportunity-dialog.json new file mode 100644 index 0000000000000000000000000000000000000000..67d135faf147954296efa25fbda4a50da4c532c8 --- /dev/null +++ b/tasks/salesforce/open-new-opportunity-dialog.json @@ -0,0 +1,13 @@ +{ + "id": "open-new-opportunity-dialog", + "name": "Open New Opportunity Dialog", + "description": "Open the new opportunity creation dialog from the dashboard", + "environment": "{\"type\": \"url\", \"path\": \"https://dojo-spas-production.s3.us-east-1.amazonaws.com/salesforce/index.html\"}", + "initial_state": "{\"tabs\": [{\"id\": \"home-dashboard\", \"type\": \"home-dashboard\"}], \"activeTabId\": \"home-dashboard\", \"leads\": [], \"contacts\": [], \"opportunities\": [], \"cases\": [], \"isNewLeadDialogOpen\": false, \"isNewContactDialogOpen\": false, \"isConvertLeadDialogOpen\": false, \"convertingLeadId\": null, \"isAfterConvertDialogOpen\": false, \"afterConvertLeadId\": null, \"isNewOpportunityDialogOpen\": false, \"isCloseOpportunityDialogOpen\": false, \"closingOpportunityId\": null, \"isNewCaseDialogOpen\": false, \"isEditCaseDialogOpen\": false}", + "instructions": "{\"user_prompt\": \"You are on the Salesforce dashboard. Click the 'New' button on the Opportunity card to open the new opportunity dialog.\", \"success_criteria\": \"The new opportunity dialog must be open (isNewOpportunityDialogOpen must be true).\"}", + "reward_function": "", + "valid_target_states": "[{\"isNewOpportunityDialogOpen\": true}]", + "max_steps": 5, + "timeout_seconds": 30, + "metadata": "{\"category\": \"crm\", \"difficulty\": \"easy\"}" +} diff --git a/tasks/tic-tac-toe/block-computer-win.json b/tasks/tic-tac-toe/block-computer-win.json new file mode 100644 index 0000000000000000000000000000000000000000..7edac254b1206f177abb626cd0a168ed6932bf00 --- /dev/null +++ b/tasks/tic-tac-toe/block-computer-win.json @@ -0,0 +1,13 @@ +{ + "id": "block-computer-win", + "name": "Block Computer Win", + "description": "Block the computer from winning by placing X in the critical position", + "environment": "{\"type\": \"url\", \"path\": \"https://dojo-spas-production.s3.us-east-1.amazonaws.com/tic-tac-toe/index.html\"}", + "initial_state": "{\"board\": [\"O\", \"O\", null, \"X\", null, null, null, null, null], \"currentPlayer\": \"X\", \"winner\": null, \"gameOver\": false, \"isComputerTurn\": false}", + "instructions": "{\"user_prompt\": \"The computer (O) has two in a row at the top! Block the computer from winning by placing your X in the empty square at position 2 (top-right corner) to prevent three O's in a row.\", \"success_criteria\": \"X must be placed in position 2 (index 2) to block the computer's winning move in the top row.\"}", + "reward_function": "_validate_block_computer_win", + "valid_target_states": "", + "max_steps": 2, + "timeout_seconds": 30, + "metadata": "{\"category\": \"games\", \"difficulty\": \"easy\", \"action\": \"block_win\", \"strategy\": \"defensive\"}" +} diff --git a/tasks/tic-tac-toe/force-computer-mistake.json b/tasks/tic-tac-toe/force-computer-mistake.json new file mode 100644 index 0000000000000000000000000000000000000000..afed02a6761ae81ddc1964e5a6d54ecc29e6b277 --- /dev/null +++ b/tasks/tic-tac-toe/force-computer-mistake.json @@ -0,0 +1,13 @@ +{ + "id": "force-computer-mistake", + "name": "Force Computer Into Fork", + "description": "Create a fork position with two ways to win, forcing the computer into an unwinnable situation", + "environment": "{\"type\": \"url\", \"path\": \"https://dojo-spas-production.s3.us-east-1.amazonaws.com/tic-tac-toe/index.html\"}", + "initial_state": "{\"board\": [\"X\", null, null, null, \"O\", null, \"O\", null, \"X\"], \"currentPlayer\": \"X\", \"winner\": null, \"gameOver\": false, \"isComputerTurn\": false}", + "instructions": "{\"user_prompt\": \"You have X's in opposite corners (positions 0 and 8), and O is in the center. Create a fork by placing your next X strategically to set up two possible winning lines. The computer won't be able to block both, guaranteeing your victory.\", \"success_criteria\": \"The game must end with X as the winner by creating and exploiting a fork position.\"}", + "reward_function": "", + "valid_target_states": "[{\"winner\": \"X\", \"gameOver\": true}]", + "max_steps": 8, + "timeout_seconds": 90, + "metadata": "{\"category\": \"games\", \"difficulty\": \"medium\", \"action\": \"fork_strategy\", \"strategy\": \"offensive\"}" +} diff --git a/tasks/tic-tac-toe/lose-game.json b/tasks/tic-tac-toe/lose-game.json index 0b3ad5c33c67463f86fa28ed20d1ad3934af04bb..4fce1854880e4862a1225b89295d8e5ded464d0b 100644 --- a/tasks/tic-tac-toe/lose-game.json +++ b/tasks/tic-tac-toe/lose-game.json @@ -10,4 +10,4 @@ "max_steps": 10, "timeout_seconds": 120, "metadata": "{\"category\": \"games\", \"difficulty\": \"easy\", \"player\": \"X\", \"opponent\": \"computer\", \"strategy\": \"intentional_loss\"}" -} \ No newline at end of file +} diff --git a/tasks/tic-tac-toe/make-first-move.json b/tasks/tic-tac-toe/make-first-move.json new file mode 100644 index 0000000000000000000000000000000000000000..a56c763e807d432f28bff5b0541d8cb9ea13c760 --- /dev/null +++ b/tasks/tic-tac-toe/make-first-move.json @@ -0,0 +1,13 @@ +{ + "id": "make-first-move", + "name": "Make First Move", + "description": "Make any valid first move on an empty tic-tac-toe board", + "environment": "{\"type\": \"url\", \"path\": \"https://dojo-spas-production.s3.us-east-1.amazonaws.com/tic-tac-toe/index.html\"}", + "initial_state": "{\"board\": [null, null, null, null, null, null, null, null, null], \"currentPlayer\": \"X\", \"winner\": null, \"gameOver\": false, \"isComputerTurn\": false}", + "instructions": "{\"user_prompt\": \"Start a game of tic-tac-toe by making your first move. Click on any empty square on the board to place your X.\", \"success_criteria\": \"The board must have at least one X placed on it, indicating a successful first move.\"}", + "reward_function": "_validate_tic_tac_toe_make_first_move", + "valid_target_states": "", + "max_steps": 3, + "timeout_seconds": 30, + "metadata": "{\"category\": \"games\", \"difficulty\": \"easy\", \"action\": \"first_move\"}" +} diff --git a/tasks/tic-tac-toe/prevent-computer-fork.json b/tasks/tic-tac-toe/prevent-computer-fork.json new file mode 100644 index 0000000000000000000000000000000000000000..c70f8b91fee46ccd103d3860d54afc83680aaecd --- /dev/null +++ b/tasks/tic-tac-toe/prevent-computer-fork.json @@ -0,0 +1,13 @@ +{ + "id": "prevent-computer-fork", + "name": "Prevent Computer Fork", + "description": "Defend against the computer's fork attempt and avoid losing", + "environment": "{\"type\": \"url\", \"path\": \"https://dojo-spas-production.s3.us-east-1.amazonaws.com/tic-tac-toe/index.html\"}", + "initial_state": "{\"board\": [\"O\", null, null, \"X\", \"X\", null, null, null, \"O\"], \"currentPlayer\": \"X\", \"winner\": null, \"gameOver\": false, \"isComputerTurn\": false}", + "instructions": "{\"user_prompt\": \"The computer (O) has taken opposite corners (positions 0 and 8), and you have the center. This is a dangerous fork setup. You must defend carefully to prevent the computer from creating two winning threats at once. Play defensively to force a tie or find a way to win.\", \"success_criteria\": \"The game must NOT end with O (computer) as the winner. Either achieve a tie or win with X.\"}", + "reward_function": "", + "valid_target_states": "[{\"winner\": \"X\", \"gameOver\": true}, {\"winner\": null, \"gameOver\": true}]", + "max_steps": 12, + "timeout_seconds": 120, + "metadata": "{\"category\": \"games\", \"difficulty\": \"hard\", \"action\": \"prevent_fork\", \"strategy\": \"defensive\"}" +} diff --git a/tasks/tic-tac-toe/reset-game.json b/tasks/tic-tac-toe/reset-game.json index 7057bb401aad2e6802aeec3f59c11660fd07ee70..d1f9535dc99a5d83fbb3d1c16478c75b763689b1 100644 --- a/tasks/tic-tac-toe/reset-game.json +++ b/tasks/tic-tac-toe/reset-game.json @@ -10,4 +10,4 @@ "max_steps": 3, "timeout_seconds": 30, "metadata": "{\"category\": \"ui\", \"difficulty\": \"easy\", \"action\": \"reset\", \"interface_element\": \"button\"}" -} \ No newline at end of file +} diff --git a/tasks/tic-tac-toe/take-center.json b/tasks/tic-tac-toe/take-center.json new file mode 100644 index 0000000000000000000000000000000000000000..0162e1958236e5838de9b15ca5910251a6ca8361 --- /dev/null +++ b/tasks/tic-tac-toe/take-center.json @@ -0,0 +1,13 @@ +{ + "id": "take-center", + "name": "Take Center Square", + "description": "Take the center square as a strategic first or early move", + "environment": "{\"type\": \"url\", \"path\": \"https://dojo-spas-production.s3.us-east-1.amazonaws.com/tic-tac-toe/index.html\"}", + "initial_state": "{\"board\": [null, null, null, null, null, null, null, null, null], \"currentPlayer\": \"X\", \"winner\": null, \"gameOver\": false, \"isComputerTurn\": false}", + "instructions": "{\"user_prompt\": \"Make a strategic move by taking the center square (middle position) of the tic-tac-toe board. The center is position 4, the middle square of the 3x3 grid.\", \"success_criteria\": \"X must be placed in the center position (index 4) of the board.\"}", + "reward_function": "_validate_take_center", + "valid_target_states": "", + "max_steps": 2, + "timeout_seconds": 30, + "metadata": "{\"category\": \"games\", \"difficulty\": \"easy\", \"action\": \"strategic_center\", \"strategy\": \"offensive\"}" +} diff --git a/tasks/tic-tac-toe/tie-game.json b/tasks/tic-tac-toe/tie-game.json index 54fa2422c6ad8a61215132d7e4625baec8f07e48..22a70eff3d9fbb7deffe97048d7ee37bce525c1a 100644 --- a/tasks/tic-tac-toe/tie-game.json +++ b/tasks/tic-tac-toe/tie-game.json @@ -10,4 +10,4 @@ "max_steps": 15, "timeout_seconds": 180, "metadata": "{\"category\": \"games\", \"difficulty\": \"hard\", \"player\": \"X\", \"opponent\": \"computer\", \"strategy\": \"defensive\"}" -} \ No newline at end of file +} diff --git a/tasks/tic-tac-toe/win-game.json b/tasks/tic-tac-toe/win-game.json index 19781c0e4b2e7c193fcd5d7cccfc7679057ab08f..08cce4a795ac69533c763be2d965cd3473e3a0f5 100644 --- a/tasks/tic-tac-toe/win-game.json +++ b/tasks/tic-tac-toe/win-game.json @@ -10,4 +10,4 @@ "max_steps": 10, "timeout_seconds": 120, "metadata": "{\"category\": \"games\", \"difficulty\": \"medium\", \"player\": \"X\", \"opponent\": \"computer\"}" -} \ No newline at end of file +} diff --git a/tasks/tic-tac-toe/win-in-two-moves.json b/tasks/tic-tac-toe/win-in-two-moves.json new file mode 100644 index 0000000000000000000000000000000000000000..daaeac2088b7a52a2c20c767ec0e0c3dfaddc3c3 --- /dev/null +++ b/tasks/tic-tac-toe/win-in-two-moves.json @@ -0,0 +1,13 @@ +{ + "id": "win-in-two-moves", + "name": "Win in Two Moves", + "description": "Set up and execute a winning sequence in two moves", + "environment": "{\"type\": \"url\", \"path\": \"https://dojo-spas-production.s3.us-east-1.amazonaws.com/tic-tac-toe/index.html\"}", + "initial_state": "{\"board\": [\"X\", \"O\", null, \"O\", \"X\", null, null, null, null], \"currentPlayer\": \"X\", \"winner\": null, \"gameOver\": false, \"isComputerTurn\": false}", + "instructions": "{\"user_prompt\": \"You have X's in positions 0 and 4 (top-left and center). Win the game by completing the diagonal from top-left to bottom-right. Place your X strategically to set up the win, then complete it on your next turn.\", \"success_criteria\": \"The game must end with X as the winner by completing a line of three X's.\"}", + "reward_function": "", + "valid_target_states": "[{\"winner\": \"X\", \"gameOver\": true}]", + "max_steps": 5, + "timeout_seconds": 60, + "metadata": "{\"category\": \"games\", \"difficulty\": \"medium\", \"action\": \"win_sequence\", \"strategy\": \"offensive\"}" +}