{
  "schema_version": 1,
  "module_id": "support",
  "name": "Support",
  "case_module": "support",
  "kind": "root",
  "root_profile": "support.root",
  "memory_root": "support",
  "profiles": [
    {
      "key": "support.root",
      "execution_kind": "llm",
      "owns": [
        "support"
      ]
    },
    {
      "key": "support.triage",
      "execution_kind": "llm",
      "owns": []
    },
    {
      "key": "support.resolution",
      "execution_kind": "llm",
      "owns": [
        "support/methodologies"
      ]
    },
    {
      "key": "support.communicator",
      "execution_kind": "llm",
      "owns": []
    }
  ],
  "entry_stage": "S1",
  "stages": [
    {
      "id": "S1",
      "profile": "support.triage",
      "consumes": [
        "normalised-arrival"
      ],
      "produces": [
        "route-packet"
      ],
      "gates": [
        {
          "kind": "H1",
          "when": "result_ready"
        }
      ],
      "done": "Classification and clock calculation recorded; correction remains available."
    },
    {
      "id": "route",
      "profile": "support.root",
      "consumes": [
        "route-packet"
      ],
      "produces": [
        "paper:plan"
      ],
      "gates": [
        {
          "kind": "H2",
          "when": "plan_ready"
        },
        {
          "kind": "Hd",
          "when": "on_handover"
        }
      ],
      "done": "One recorded route: wait, data subgraph, configuration or source handover."
    },
    {
      "id": "closure",
      "profile": "support.root",
      "consumes": [
        "paper:report"
      ],
      "produces": [
        "paper:report"
      ],
      "gates": [
        {
          "kind": "H5-send",
          "when": "before_execution"
        },
        {
          "kind": "CG-11",
          "when": "result_ready"
        }
      ],
      "done": "Requested outcome verified, reply delivered, acceptance scoped to that outcome."
    }
  ],
  "edges": [
    {
      "from": "S1",
      "to": "route",
      "on": "ready",
      "kind": "dependency"
    },
    {
      "from": "route",
      "to": "route",
      "on": "waiting trigger or material route change",
      "kind": "rework"
    },
    {
      "from": "route",
      "to": "closure",
      "on": "working graph or subcase verified",
      "kind": "dependency"
    }
  ],
  "eval_sets": [
    "support.triage",
    "support.routing",
    "support.closure"
  ]
}
