You are a planning agent. Decompose the following task into an ordered DAG of subtasks.

TASK:
{{task}}

{{profileSection}}

{{retrievalSection}}

SCHEMA for your response:
{
  "goal": "<restate the goal concisely>",
  "subtasks": [
    {
      "id": "<short unique id, e.g. 'st-1'>",
      "kind": "inspect" | "patch" | "test" | "migrate" | "verify" | "merge",
      "targets": ["<file or symbol>", ...],
      "dependsOn": ["<subtask id>", ...],
      "reason": "<why this subtask is needed>",
      "validation": ["<shell command or assertion>", ...]
    }
  ],
  "riskAreas": ["<file or module at risk>", ...],
  "unknowns": ["<ambiguity or missing information>", ...]
}

RULES:
- Every subtask must have a unique "id".
- "dependsOn" references must be ids of earlier subtasks in the array.
- Include at least one "verify" subtask at the end.
- The first subtask should usually be an "inspect" of the most relevant file.
- Keep the plan pragmatic: do not exceed 12 subtasks.
- Respond ONLY with the JSON object, no additional text.
