{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/factorguide-io/json-schema/factorguide-io-navigate-request-schema.json",
  "title": "NavigateRequest",
  "x-generated": "2026-11-07",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/factorguide-io-openapi.json#/components/schemas/NavigateRequest",
  "properties": {
    "coupling": {
      "anyOf": [
        {
          "$ref": "#/$defs/PrecisionMatrixInput"
        },
        {
          "$ref": "#/$defs/CorrelationMatrixInput"
        },
        {
          "$ref": "#/$defs/CovarianceMatrixInput"
        },
        {
          "$ref": "#/$defs/EdgeListInput"
        }
      ],
      "title": "Coupling"
    },
    "sample_size": {
      "type": "integer",
      "minimum": 10.0,
      "title": "Sample Size"
    },
    "model_class": {
      "$ref": "#/$defs/ModelClass",
      "default": "unknown"
    },
    "accuracy_target": {
      "type": "number",
      "maximum": 7.0,
      "exclusiveMinimum": 1.0,
      "title": "Accuracy Target",
      "default": 2.0
    },
    "compute_budget": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "string",
          "const": "minimize"
        }
      ],
      "title": "Compute Budget",
      "default": "minimize"
    },
    "cost_model": {
      "$ref": "#/$defs/CostModel",
      "default": "cubic"
    },
    "variable_names": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Variable Names"
    },
    "synergy_check": {
      "type": "boolean",
      "title": "Synergy Check",
      "default": false
    },
    "report_marginal_ic": {
      "type": "boolean",
      "title": "Report Marginal Ic",
      "default": false
    },
    "report_sign_detectability": {
      "type": "boolean",
      "title": "Report Sign Detectability",
      "default": false
    },
    "task_type": {
      "$ref": "#/$defs/TaskType",
      "default": "inference"
    },
    "distribution_diagnostics": {
      "anyOf": [
        {
          "$ref": "#/$defs/DistributionDiagnostics"
        },
        {
          "type": "null"
        }
      ]
    },
    "encoding_label": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 128
        },
        {
          "type": "null"
        }
      ],
      "title": "Encoding Label"
    }
  },
  "type": "object",
  "required": [
    "coupling",
    "sample_size"
  ],
  "$defs": {
    "CorrelationMatrixInput": {
      "properties": {
        "correlation_matrix": {
          "items": {
            "items": {
              "type": "number"
            },
            "type": "array"
          },
          "type": "array",
          "title": "Correlation Matrix"
        }
      },
      "type": "object",
      "required": [
        "correlation_matrix"
      ],
      "title": "CorrelationMatrixInput"
    },
    "CostModel": {
      "type": "string",
      "enum": [
        "cubic",
        "quadratic",
        "linear",
        "information_cost"
      ],
      "title": "CostModel"
    },
    "CovarianceMatrixInput": {
      "properties": {
        "covariance_matrix": {
          "items": {
            "items": {
              "type": "number"
            },
            "type": "array"
          },
          "type": "array",
          "title": "Covariance Matrix"
        }
      },
      "type": "object",
      "required": [
        "covariance_matrix"
      ],
      "title": "CovarianceMatrixInput"
    },
    "DistributionDiagnostics": {
      "properties": {
        "excess_kurtosis": {
          "anyOf": [
            {
              "items": {
                "type": "number"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "title": "Excess Kurtosis"
        },
        "skewness": {
          "anyOf": [
            {
              "items": {
                "type": "number"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "title": "Skewness"
        },
        "spearman_rank_correlation": {
          "anyOf": [
            {
              "items": {
                "items": {
                  "type": "number"
                },
                "type": "array"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "title": "Spearman Rank Correlation"
        }
      },
      "type": "object",
      "title": "DistributionDiagnostics"
    },
    "EdgeListInput": {
      "properties": {
        "edge_list": {
          "items": {},
          "type": "array",
          "title": "Edge List"
        },
        "n": {
          "type": "integer",
          "minimum": 2.0,
          "title": "N"
        }
      },
      "type": "object",
      "required": [
        "edge_list",
        "n"
      ],
      "title": "EdgeListInput"
    },
    "ModelClass": {
      "type": "string",
      "enum": [
        "filtering",
        "hierarchical",
        "deep_hierarchy",
        "graphical_model",
        "gp",
        "vae",
        "unknown",
        "constitutive",
        "inductive"
      ],
      "title": "ModelClass"
    },
    "PrecisionMatrixInput": {
      "properties": {
        "precision_matrix": {
          "items": {
            "items": {
              "type": "number"
            },
            "type": "array"
          },
          "type": "array",
          "title": "Precision Matrix"
        }
      },
      "type": "object",
      "required": [
        "precision_matrix"
      ],
      "title": "PrecisionMatrixInput"
    },
    "TaskType": {
      "type": "string",
      "enum": [
        "inference",
        "control"
      ],
      "title": "TaskType"
    }
  }
}