{
  "objective": "Produce a read-only implementation plan and human approval checkpoint without mutation.",
  "library": {
    "sources": [
      "package"
    ]
  },
  "authority": {
    "allowFilesystemRead": true
  },
  "steps": [
    {
      "id": "scope-map",
      "agent": {
        "ref": "package:scout"
      },
      "task": "Map the affected local surface, owners, tests, docs, risks, and unknowns for the concrete parent-copied planning question. If no concrete question, affected surface, stop condition, or expected output fields were copied in, return NEEDS-SCOPE without broad repo search. Do not run commands or edit."
    },
    {
      "id": "implementation-plan",
      "agent": {
        "ref": "package:planner"
      },
      "needs": [
        "scope-map"
      ],
      "task": "Prepare the smallest coherent implementation contract, owned files, exclusions, validation plan, and exact human approval question. Do not edit."
    },
    {
      "id": "premortem",
      "agent": {
        "ref": "package:critic"
      },
      "needs": [
        "implementation-plan"
      ],
      "task": "Stress-test the plan for trust, coupling, data loss, stale copy, validation gaps, and hidden approval needs. Do not edit."
    },
    {
      "id": "final-decision",
      "agent": {
        "ref": "package:synthesizer"
      },
      "after": [
        "scope-map",
        "implementation-plan",
        "premortem"
      ],
      "task": "Return the proposed plan, blockers, exact human approval question, required mutationScope for a later run, and validation plan. Make clear that no mutation was authorized or performed."
    }
  ],
  "limits": {
    "concurrency": 2,
    "timeoutSecondsPerStep": 9000
  }
}
