{
  "run_id": "20250703-151230-abc123",
  "generated_at": "2025-07-03T15:12:30Z",
  "version": "1.0",
  "metadata": {
    "user": "developer@example.com",
    "command": "/parallel-dev \"Fix auth.js login bug\" bg-login \"Add dashboard charts\" ft-dash \"Style auth forms\" ui-auth",
    "project_root": "/Users/developer/project",
    "main_branch": "main"
  },
  "work_items": [
    {
      "id": "bg-login",
      "description": "Fix auth.js login bug",
      "worktree_name": "bg-login",
      "branch_name": "parallel/bg-login",
      "worktree_path": "/Users/developer/project/../bg-login",
      "validation_status": {
        "passed": true,
        "critical_issues": 0,
        "warnings": [
          {
            "rule": "NO_DEV_NOTES",
            "message": "Missing implementation details",
            "overridden": true,
            "justification": "Bug fix is straightforward - validation logic error"
          }
        ],
        "suggestions": ["Consider adding unit tests for edge cases"]
      },
      "predicted_files": [
        "src/auth/auth.js",
        "src/auth/login.component.js",
        "tests/auth.test.js"
      ],
      "complexity": "medium",
      "agent_spec": {
        "innovation_dimension": "error_handling",
        "conflict_zones": ["authentication_flow"]
      }
    },
    {
      "id": "ft-dash",
      "description": "Add dashboard charts",
      "worktree_name": "ft-dash",
      "branch_name": "parallel/ft-dash",
      "worktree_path": "/Users/developer/project/../ft-dash",
      "validation_status": {
        "passed": true,
        "critical_issues": 0,
        "warnings": [],
        "suggestions": []
      },
      "predicted_files": [
        "src/dashboard/dashboard.js",
        "src/dashboard/charts.component.js",
        "tests/dashboard.test.js"
      ],
      "complexity": "high",
      "agent_spec": {
        "innovation_dimension": "data_visualization",
        "conflict_zones": ["dashboard_layout"]
      }
    },
    {
      "id": "ui-auth",
      "description": "Style auth forms",
      "worktree_name": "ui-auth",
      "branch_name": "parallel/ui-auth",
      "worktree_path": "/Users/developer/project/../ui-auth",
      "validation_status": {
        "passed": true,
        "critical_issues": 0,
        "warnings": [],
        "suggestions": ["Consider accessibility guidelines"]
      },
      "predicted_files": [
        "src/styles/auth.css",
        "src/auth/auth.js",
        "src/auth/login.component.js",
        "src/auth/auth.form.js"
      ],
      "complexity": "low",
      "agent_spec": {
        "innovation_dimension": "user_experience",
        "conflict_zones": ["auth_components"]
      }
    }
  ],
  "wave_plan": {
    "total_waves": 2,
    "waves": [
      {
        "wave_number": 1,
        "type": "parallel",
        "work_item_ids": ["ft-dash", "bg-login"],
        "estimated_duration": "45 minutes",
        "rationale": "No file conflicts detected - can execute simultaneously",
        "conflicts": []
      },
      {
        "wave_number": 2,
        "type": "sequential",
        "work_item_ids": ["ui-auth"],
        "estimated_duration": "30 minutes",
        "rationale": "Conflicts with bg-login on auth.js and login.component.js",
        "conflicts": [
          {
            "between": ["bg-login", "ui-auth"],
            "files": ["src/auth/auth.js", "src/auth/login.component.js"]
          }
        ]
      }
    ]
  },
  "execution_strategy": {
    "approach": "balanced",
    "risk_level": "medium",
    "rollback_complexity": "low",
    "max_concurrent_agents": 4,
    "failure_mode": "fail_fast"
  },
  "validation_results": {
    "all_passed": false,
    "overrides_used": 1,
    "recommendation": "PROCEED",
    "pre_flight_checks": {
      "clean_working_tree": true,
      "all_tests_passing": true,
      "sufficient_disk_space": true,
      "no_blocking_issues": true
    }
  },
  "execution_commands": {
    "setup_commands": [
      {
        "description": "Create run directory",
        "command": "mkdir -p .bmad-workspace/ck-parallel-dev/runs/20250703-151230-abc123"
      },
      {
        "description": "Create worktree for bg-login",
        "command": "git worktree add -b parallel/bg-login ../bg-login"
      },
      {
        "description": "Create worktree for ft-dash",
        "command": "git worktree add -b parallel/ft-dash ../ft-dash"
      },
      {
        "description": "Create worktree for ui-auth",
        "command": "git worktree add -b parallel/ui-auth ../ui-auth"
      }
    ],
    "wave_commands": {
      "wave_1": [
        {
          "work_item_id": "bg-login",
          "task_prompt": "Work on 'Fix auth.js login bug' in worktree bg-login\n\nWORK DESCRIPTION: Fix auth.js login bug\n\nCONTEXT:\n- You are working in an isolated git worktree: ../bg-login\n- This is part of wave 1 with 1 other concurrent agent\n- Your branch: parallel/bg-login\n\nCOORDINATION:\n- Wave 1 agents: ft-dash\n- Focus on error_handling as your innovation dimension\n- Known conflict zones: authentication_flow\n\nDELIVERABLES:\n1. Complete the work as described\n2. Write tests for your changes\n3. Ensure all existing tests still pass\n4. Document your changes\n5. Ready code for merge",
          "worktree_path": "../bg-login"
        },
        {
          "work_item_id": "ft-dash",
          "task_prompt": "Work on 'Add dashboard charts' in worktree ft-dash\n\nWORK DESCRIPTION: Add dashboard charts\n\nCONTEXT:\n- You are working in an isolated git worktree: ../ft-dash\n- This is part of wave 1 with 1 other concurrent agent\n- Your branch: parallel/ft-dash\n\nCOORDINATION:\n- Wave 1 agents: bg-login\n- Focus on data_visualization as your innovation dimension\n- Known conflict zones: dashboard_layout\n\nDELIVERABLES:\n1. Complete the work as described\n2. Write tests for your changes\n3. Ensure all existing tests still pass\n4. Document your changes\n5. Ready code for merge",
          "worktree_path": "../ft-dash"
        }
      ],
      "wave_2": [
        {
          "work_item_id": "ui-auth",
          "task_prompt": "Work on 'Style auth forms' in worktree ui-auth\n\nWORK DESCRIPTION: Style auth forms\n\nCONTEXT:\n- You are working in an isolated git worktree: ../ui-auth\n- This is part of wave 2 (sequential execution)\n- Your branch: parallel/ui-auth\n- Previous wave modified auth.js and login.component.js\n\nCOORDINATION:\n- Working alone in this wave\n- Build upon changes from bg-login in auth.js\n- Focus on user_experience as your innovation dimension\n- Known conflict zones: auth_components\n\nDELIVERABLES:\n1. Complete the work as described\n2. Write tests for your changes\n3. Ensure all existing tests still pass\n4. Document your changes\n5. Ready code for merge",
          "worktree_path": "../ui-auth"
        }
      ]
    },
    "cleanup_commands": [
      {
        "description": "Remove worktree bg-login",
        "command": "git worktree remove ../bg-login"
      },
      {
        "description": "Remove worktree ft-dash",
        "command": "git worktree remove ../ft-dash"
      },
      {
        "description": "Remove worktree ui-auth",
        "command": "git worktree remove ../ui-auth"
      }
    ]
  },
  "success_criteria": {
    "all_work_completed": "All Task agents report successful completion",
    "no_merge_conflicts": "Git merge for all branches completes without conflicts",
    "tests_passing": "npm test passes on merged code"
  },
  "rollback_info": {
    "strategy": "git_reset",
    "automated_safe": true,
    "manual_steps": [
      "cd to main project directory",
      "git worktree remove ../bg-login",
      "git worktree remove ../ft-dash", 
      "git worktree remove ../ui-auth",
      "git branch -D parallel/bg-login parallel/ft-dash parallel/ui-auth"
    ]
  }
}