{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://ravenstrike.local/schemas/router_output.schema.json",
  "title": "Router Output",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "route_type": { "type": "string", "enum": ["slash_command", "intent_classifier", "full_pipeline"] },
    "target_module": {
      "type": "string",
      "enum": [
        "SIGNAL_SCOPE",
        "SIGMA_BUILD",
        "YARA_ASSIST",
        "ENRICH_PIPELINE",
        "MITRE_COVERAGE",
        "QUERY_FORGE",
        "TRIAGE_ASSIST",
        "LANDSCAPE_BRIEF",
        "FULL_PIPELINE"
      ]
    },
    "classifier_confidence": { "type": "number", "minimum": 0, "maximum": 1 },
    "fallback_action": { "type": "string", "enum": ["none", "disambiguate", "default_scope"] }
  },
  "required": ["route_type", "target_module", "classifier_confidence", "fallback_action"]
}

