{
  "components": {
    "schemas": {
      "Abs": {
        "additionalProperties": false,
        "properties": {
          "target_var": {
            "$ref": "#/components/schemas/VarName"
          },
          "type": {
            "const": "abs",
            "type": "string"
          },
          "var": {
            "$ref": "#/components/schemas/VarName"
          }
        },
        "required": [
          "type",
          "target_var",
          "var"
        ],
        "type": "object"
      },
      "AllDifferent": {
        "additionalProperties": false,
        "properties": {
          "type": {
            "const": "all_different",
            "type": "string"
          },
          "vars": {
            "items": {
              "$ref": "#/components/schemas/VarName"
            },
            "maxItems": 500,
            "minItems": 1,
            "type": "array"
          }
        },
        "required": [
          "type",
          "vars"
        ],
        "type": "object"
      },
      "AllowedAssignments": {
        "additionalProperties": false,
        "properties": {
          "tuples": {
            "items": {
              "items": {
                "$ref": "#/components/schemas/Int"
              },
              "maxItems": 20,
              "minItems": 1,
              "type": "array"
            },
            "maxItems": 500,
            "minItems": 1,
            "type": "array"
          },
          "type": {
            "const": "allowed_assignments",
            "type": "string"
          },
          "vars": {
            "items": {
              "$ref": "#/components/schemas/VarName"
            },
            "maxItems": 20,
            "minItems": 1,
            "type": "array"
          }
        },
        "required": [
          "type",
          "vars",
          "tuples"
        ],
        "type": "object"
      },
      "Arc": {
        "additionalProperties": false,
        "properties": {
          "head": {
            "maximum": 999,
            "minimum": 0,
            "type": "integer"
          },
          "tail": {
            "maximum": 999,
            "minimum": 0,
            "type": "integer"
          },
          "var": {
            "$ref": "#/components/schemas/VarName"
          }
        },
        "required": [
          "tail",
          "head",
          "var"
        ],
        "type": "object"
      },
      "BoolLiteral": {
        "additionalProperties": false,
        "properties": {
          "eq": {
            "$ref": "#/components/schemas/Int"
          },
          "var": {
            "$ref": "#/components/schemas/VarName"
          }
        },
        "required": [
          "var",
          "eq"
        ],
        "type": "object"
      },
      "BoolOr": {
        "additionalProperties": false,
        "properties": {
          "literals": {
            "items": {
              "$ref": "#/components/schemas/BoolLiteral"
            },
            "maxItems": 100,
            "minItems": 1,
            "type": "array"
          },
          "type": {
            "const": "bool_or",
            "type": "string"
          }
        },
        "required": [
          "type",
          "literals"
        ],
        "type": "object"
      },
      "Circuit": {
        "additionalProperties": false,
        "properties": {
          "arcs": {
            "items": {
              "$ref": "#/components/schemas/Arc"
            },
            "maxItems": 500,
            "minItems": 1,
            "type": "array"
          },
          "type": {
            "const": "circuit",
            "type": "string"
          }
        },
        "required": [
          "type",
          "arcs"
        ],
        "type": "object"
      },
      "CpsatRequest": {
        "additionalProperties": false,
        "properties": {
          "constraints": {
            "items": {
              "oneOf": [
                {
                  "$ref": "#/components/schemas/LinearConstraint"
                },
                {
                  "$ref": "#/components/schemas/AllDifferent"
                },
                {
                  "$ref": "#/components/schemas/NoOverlap"
                },
                {
                  "$ref": "#/components/schemas/Implication"
                },
                {
                  "$ref": "#/components/schemas/Element"
                },
                {
                  "$ref": "#/components/schemas/Cumulative"
                },
                {
                  "$ref": "#/components/schemas/Circuit"
                },
                {
                  "$ref": "#/components/schemas/AllowedAssignments"
                },
                {
                  "$ref": "#/components/schemas/BoolOr"
                },
                {
                  "$ref": "#/components/schemas/ExactlyOne"
                },
                {
                  "$ref": "#/components/schemas/MinMax"
                },
                {
                  "$ref": "#/components/schemas/Abs"
                }
              ]
            },
            "maxItems": 2000,
            "minItems": 1,
            "type": "array"
          },
          "objective": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Objective"
              },
              {
                "type": "null"
              }
            ]
          },
          "produce_unsat_core": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "default": false
          },
          "timeout_ms": {
            "anyOf": [
              {
                "maximum": 5000,
                "minimum": 100,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": 3000
          },
          "variables": {
            "items": {
              "$ref": "#/components/schemas/Variable"
            },
            "maxItems": 500,
            "minItems": 1,
            "type": "array"
          }
        },
        "required": [
          "variables",
          "constraints"
        ],
        "type": "object"
      },
      "CpsatResponse": {
        "additionalProperties": false,
        "properties": {
          "best_bound": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ]
          },
          "objective_value": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ]
          },
          "solution": {
            "anyOf": [
              {
                "additionalProperties": {
                  "type": "integer"
                },
                "type": "object"
              },
              {
                "type": "null"
              }
            ]
          },
          "stats": {
            "$ref": "#/components/schemas/Stats"
          },
          "unsat_core": {
            "anyOf": [
              {
                "items": {
                  "minimum": 0,
                  "type": "integer"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ]
          },
          "verdict": {
            "enum": [
              "optimal",
              "feasible",
              "infeasible",
              "unknown",
              "timeout"
            ],
            "type": "string"
          },
          "verified": {
            "type": "boolean"
          }
        },
        "required": [
          "verdict",
          "verified",
          "stats"
        ],
        "type": "object"
      },
      "Cumulative": {
        "additionalProperties": false,
        "properties": {
          "capacity": {
            "maximum": 1000000000,
            "minimum": 0,
            "type": "integer"
          },
          "intervals": {
            "items": {
              "$ref": "#/components/schemas/CumulativeInterval"
            },
            "maxItems": 200,
            "minItems": 1,
            "type": "array"
          },
          "type": {
            "const": "cumulative",
            "type": "string"
          }
        },
        "required": [
          "type",
          "intervals",
          "capacity"
        ],
        "type": "object"
      },
      "CumulativeInterval": {
        "additionalProperties": false,
        "properties": {
          "demand": {
            "maximum": 1000000000,
            "minimum": 0,
            "type": "integer"
          },
          "duration": {
            "maximum": 1000000000,
            "minimum": 0,
            "type": "integer"
          },
          "start_var": {
            "$ref": "#/components/schemas/VarName"
          }
        },
        "required": [
          "start_var",
          "duration",
          "demand"
        ],
        "type": "object"
      },
      "Element": {
        "additionalProperties": false,
        "properties": {
          "index_var": {
            "$ref": "#/components/schemas/VarName"
          },
          "target_var": {
            "$ref": "#/components/schemas/VarName"
          },
          "type": {
            "const": "element",
            "type": "string"
          },
          "values": {
            "items": {
              "$ref": "#/components/schemas/Int"
            },
            "maxItems": 1000,
            "minItems": 1,
            "type": "array"
          }
        },
        "required": [
          "type",
          "index_var",
          "values",
          "target_var"
        ],
        "type": "object"
      },
      "ErrorEnvelope": {
        "additionalProperties": false,
        "properties": {
          "error": {
            "additionalProperties": false,
            "properties": {
              "code": {
                "enum": [
                  "INVALID_INPUT",
                  "PAYLOAD_TOO_LARGE",
                  "UNSUPPORTED_FEATURE",
                  "TIMEOUT",
                  "RESOURCE_LIMIT_EXCEEDED",
                  "OVERLOADED",
                  "BANDWIDTH_CAP_REACHED",
                  "RATE_LIMITED",
                  "INTERNAL_ERROR"
                ],
                "type": "string"
              },
              "details": {
                "items": {
                  "additionalProperties": false,
                  "properties": {
                    "column": {
                      "type": "integer"
                    },
                    "command": {
                      "type": "string"
                    },
                    "line": {
                      "type": "integer"
                    },
                    "path": {
                      "type": "string"
                    },
                    "reason": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "reason"
                  ],
                  "type": "object"
                },
                "type": "array"
              },
              "docs_resource": {
                "format": "uri",
                "type": "string"
              },
              "docs_url": {
                "format": "uri",
                "type": "string"
              },
              "example_resource": {
                "format": "uri",
                "type": "string"
              },
              "example_url": {
                "format": "uri",
                "type": "string"
              },
              "message": {
                "type": "string"
              }
            },
            "required": [
              "code",
              "message",
              "docs_url",
              "example_url",
              "docs_resource",
              "example_resource"
            ],
            "type": "object"
          }
        },
        "required": [
          "error"
        ],
        "type": "object"
      },
      "ExactlyOne": {
        "additionalProperties": false,
        "properties": {
          "literals": {
            "items": {
              "$ref": "#/components/schemas/BoolLiteral"
            },
            "maxItems": 100,
            "minItems": 1,
            "type": "array"
          },
          "type": {
            "const": "exactly_one",
            "type": "string"
          }
        },
        "required": [
          "type",
          "literals"
        ],
        "type": "object"
      },
      "FeedbackRequest": {
        "additionalProperties": false,
        "properties": {
          "category": {
            "enum": [
              "bug_report",
              "feature_request",
              "schema_friction",
              "positive"
            ],
            "type": "string"
          },
          "message": {
            "description": "Plain text, stored for the operator. No personal data, secrets, credentials or proprietary inputs.",
            "maxLength": 1000,
            "minLength": 1,
            "type": "string"
          },
          "no_sensitive_data": {
            "const": true,
            "description": "Required opt-in confirmation that message has no sensitive data.",
            "type": "boolean"
          },
          "tool": {
            "enum": [
              "solve_smt",
              "solve_cpsat",
              "solve_lp_mip",
              "analyze_rules",
              "verify_state_machine",
              "analyze_regex",
              "check_schema_compat"
            ],
            "type": "string"
          }
        },
        "required": [
          "category",
          "message",
          "no_sensitive_data"
        ],
        "type": "object"
      },
      "FeedbackResponse": {
        "additionalProperties": false,
        "properties": {
          "status": {
            "const": "received",
            "type": "string"
          }
        },
        "required": [
          "status"
        ],
        "type": "object"
      },
      "FsmDeadlock": {
        "additionalProperties": false,
        "properties": {
          "found": {
            "default": false,
            "type": "boolean"
          },
          "trace": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Trace"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "type": "object"
      },
      "FsmDomainViolation": {
        "additionalProperties": false,
        "properties": {
          "trace": {
            "$ref": "#/components/schemas/Trace"
          },
          "variable": {
            "$ref": "#/components/schemas/Name"
          }
        },
        "required": [
          "variable",
          "trace"
        ],
        "type": "object"
      },
      "FsmEnumVariable": {
        "additionalProperties": false,
        "properties": {
          "name": {
            "$ref": "#/components/schemas/Name"
          },
          "type": {
            "const": "enum",
            "type": "string"
          },
          "values": {
            "items": {
              "$ref": "#/components/schemas/Name"
            },
            "maxItems": 32,
            "minItems": 1,
            "type": "array"
          }
        },
        "required": [
          "name",
          "type",
          "values"
        ],
        "type": "object"
      },
      "FsmIntVariable": {
        "additionalProperties": false,
        "properties": {
          "max": {
            "$ref": "#/components/schemas/StateInt"
          },
          "min": {
            "$ref": "#/components/schemas/StateInt"
          },
          "name": {
            "$ref": "#/components/schemas/Name"
          },
          "type": {
            "const": "int",
            "type": "string"
          }
        },
        "required": [
          "name",
          "type",
          "min",
          "max"
        ],
        "type": "object"
      },
      "FsmInvariantViolation": {
        "additionalProperties": false,
        "properties": {
          "invariant": {
            "$ref": "#/components/schemas/Name"
          },
          "trace": {
            "$ref": "#/components/schemas/Trace"
          }
        },
        "required": [
          "invariant",
          "trace"
        ],
        "type": "object"
      },
      "FsmLivelock": {
        "additionalProperties": false,
        "properties": {
          "found": {
            "default": false,
            "type": "boolean"
          },
          "loop_start": {
            "anyOf": [
              {
                "maximum": 199,
                "minimum": 0,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ]
          },
          "trace": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Trace"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "type": "object"
      },
      "FsmPredicate": {
        "additionalProperties": false,
        "properties": {
          "expr": {
            "$ref": "#/components/schemas/StateExpr"
          },
          "name": {
            "$ref": "#/components/schemas/Name"
          }
        },
        "required": [
          "name",
          "expr"
        ],
        "type": "object"
      },
      "FsmReachability": {
        "additionalProperties": false,
        "properties": {
          "goal": {
            "$ref": "#/components/schemas/Name"
          },
          "reachable": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ]
          },
          "trace": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Trace"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "goal",
          "reachable"
        ],
        "type": "object"
      },
      "FsmRequest": {
        "additionalProperties": false,
        "anyOf": [
          {
            "required": [
              "initial"
            ]
          },
          {
            "required": [
              "initial_states"
            ]
          }
        ],
        "properties": {
          "check_deadlocks": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "default": true
          },
          "check_livelocks": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "default": false
          },
          "initial": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/FsmState"
              },
              {
                "type": "null"
              }
            ]
          },
          "initial_states": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/FsmState"
                },
                "maxItems": 16,
                "minItems": 1,
                "type": "array"
              },
              {
                "type": "null"
              }
            ]
          },
          "invariants": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/FsmPredicate"
                },
                "maxItems": 32,
                "type": "array"
              },
              {
                "type": "null"
              }
            ]
          },
          "max_depth": {
            "anyOf": [
              {
                "maximum": 200,
                "minimum": 1,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": 50
          },
          "max_states": {
            "anyOf": [
              {
                "maximum": 20000,
                "minimum": 1,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": 5000
          },
          "reachability": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/FsmPredicate"
                },
                "maxItems": 16,
                "type": "array"
              },
              {
                "type": "null"
              }
            ]
          },
          "terminal_condition": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/StateExpr"
              },
              {
                "type": "null"
              }
            ]
          },
          "timeout_ms": {
            "anyOf": [
              {
                "maximum": 5000,
                "minimum": 100,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": 3000
          },
          "transitions": {
            "items": {
              "$ref": "#/components/schemas/FsmTransition"
            },
            "maxItems": 64,
            "minItems": 1,
            "type": "array"
          },
          "variables": {
            "items": {
              "oneOf": [
                {
                  "$ref": "#/components/schemas/RuleBoolVariable"
                },
                {
                  "$ref": "#/components/schemas/FsmIntVariable"
                },
                {
                  "$ref": "#/components/schemas/FsmEnumVariable"
                }
              ]
            },
            "maxItems": 16,
            "minItems": 1,
            "type": "array"
          }
        },
        "required": [
          "variables",
          "transitions"
        ],
        "type": "object"
      },
      "FsmResponse": {
        "additionalProperties": false,
        "properties": {
          "deadlock": {
            "$ref": "#/components/schemas/FsmDeadlock"
          },
          "domain_violations": {
            "items": {
              "$ref": "#/components/schemas/FsmDomainViolation"
            },
            "maxItems": 1,
            "type": "array"
          },
          "exhaustive": {
            "default": false,
            "type": "boolean"
          },
          "invariant_violations": {
            "items": {
              "$ref": "#/components/schemas/FsmInvariantViolation"
            },
            "maxItems": 32,
            "type": "array"
          },
          "livelock": {
            "$ref": "#/components/schemas/FsmLivelock"
          },
          "reachability": {
            "items": {
              "$ref": "#/components/schemas/FsmReachability"
            },
            "maxItems": 16,
            "type": "array"
          },
          "states_explored": {
            "default": 0,
            "maximum": 20000,
            "minimum": 0,
            "type": "integer"
          },
          "stats": {
            "$ref": "#/components/schemas/Stats"
          },
          "status": {
            "enum": [
              "verified_safe",
              "counterexample_found",
              "state_limit_reached",
              "timeout"
            ],
            "type": "string"
          },
          "transitions_fired": {
            "default": 0,
            "maximum": 1280000,
            "minimum": 0,
            "type": "integer"
          },
          "unreachable_transitions": {
            "items": {
              "$ref": "#/components/schemas/Name"
            },
            "maxItems": 64,
            "type": "array"
          },
          "verified": {
            "type": "boolean"
          }
        },
        "required": [
          "status",
          "verified",
          "stats"
        ],
        "type": "object"
      },
      "FsmState": {
        "maxProperties": 16,
        "patternProperties": {
          "^[a-zA-Z_][a-zA-Z0-9_]{0,47}$": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "integer"
              },
              {
                "$ref": "#/components/schemas/Name"
              }
            ]
          }
        },
        "propertyNames": {
          "maxLength": 48,
          "minLength": 1
        },
        "type": "object"
      },
      "FsmStep": {
        "additionalProperties": false,
        "properties": {
          "state": {
            "$ref": "#/components/schemas/FsmState"
          },
          "step": {
            "maximum": 200,
            "minimum": 0,
            "type": "integer"
          },
          "transition": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Name"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "step",
          "transition",
          "state"
        ],
        "type": "object"
      },
      "FsmTransition": {
        "additionalProperties": false,
        "properties": {
          "guard": {
            "$ref": "#/components/schemas/StateExpr"
          },
          "name": {
            "$ref": "#/components/schemas/Name"
          },
          "updates": {
            "maxProperties": 16,
            "patternProperties": {
              "^[a-zA-Z_][a-zA-Z0-9_]{0,47}$": {
                "$ref": "#/components/schemas/UpdateExpr"
              }
            },
            "propertyNames": {
              "maxLength": 48,
              "minLength": 1
            },
            "type": "object"
          }
        },
        "required": [
          "name",
          "guard",
          "updates"
        ],
        "type": "object"
      },
      "Implication": {
        "additionalProperties": false,
        "properties": {
          "if_all": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/LinearConstraint"
                },
                "maxItems": 100,
                "minItems": 1,
                "type": "array"
              },
              {
                "type": "null"
              }
            ]
          },
          "if_any": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/LinearConstraint"
                },
                "maxItems": 100,
                "minItems": 1,
                "type": "array"
              },
              {
                "type": "null"
              }
            ]
          },
          "if_eq": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Int"
              },
              {
                "type": "null"
              }
            ]
          },
          "if_op": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/LinearOp"
              },
              {
                "type": "null"
              }
            ],
            "default": "=="
          },
          "if_var": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/VarName"
              },
              {
                "type": "null"
              }
            ]
          },
          "then": {
            "$ref": "#/components/schemas/LinearConstraint"
          },
          "type": {
            "const": "implication",
            "type": "string"
          }
        },
        "required": [
          "type",
          "then"
        ],
        "type": "object"
      },
      "Int": {
        "maximum": 1000000000,
        "minimum": -1000000000,
        "type": "integer"
      },
      "Interval": {
        "additionalProperties": false,
        "properties": {
          "duration": {
            "maximum": 1000000000,
            "minimum": 0,
            "type": "integer"
          },
          "start_var": {
            "$ref": "#/components/schemas/VarName"
          }
        },
        "required": [
          "start_var",
          "duration"
        ],
        "type": "object"
      },
      "JsonValue": {},
      "Label": {
        "maxLength": 64,
        "minLength": 1,
        "type": "string"
      },
      "LinearConstraint": {
        "additionalProperties": false,
        "properties": {
          "op": {
            "$ref": "#/components/schemas/LinearOp"
          },
          "rhs": {
            "maximum": 1000000000000000000,
            "minimum": -1000000000000000000,
            "type": "integer"
          },
          "terms": {
            "$ref": "#/components/schemas/Terms"
          },
          "type": {
            "const": "linear",
            "default": "linear",
            "type": "string"
          }
        },
        "required": [
          "terms",
          "op",
          "rhs"
        ],
        "type": "object"
      },
      "LinearOp": {
        "enum": [
          "<=",
          "==",
          ">=",
          "<",
          ">",
          "!="
        ],
        "type": "string"
      },
      "LpConstraint": {
        "additionalProperties": false,
        "properties": {
          "op": {
            "enum": [
              "<=",
              "==",
              ">="
            ],
            "type": "string"
          },
          "rhs": {
            "maximum": 1000000000000,
            "minimum": -1000000000000,
            "type": "number"
          },
          "terms": {
            "items": {
              "$ref": "#/components/schemas/LpTerm"
            },
            "maxItems": 1000,
            "minItems": 1,
            "type": "array"
          }
        },
        "required": [
          "terms",
          "op",
          "rhs"
        ],
        "type": "object"
      },
      "LpObjective": {
        "additionalProperties": false,
        "properties": {
          "sense": {
            "enum": [
              "minimize",
              "maximize"
            ],
            "type": "string"
          },
          "terms": {
            "items": {
              "$ref": "#/components/schemas/LpTerm"
            },
            "maxItems": 1000,
            "minItems": 1,
            "type": "array"
          }
        },
        "required": [
          "sense",
          "terms"
        ],
        "type": "object"
      },
      "LpRequest": {
        "additionalProperties": false,
        "properties": {
          "constraints": {
            "items": {
              "$ref": "#/components/schemas/LpConstraint"
            },
            "maxItems": 2000,
            "minItems": 1,
            "type": "array"
          },
          "objective": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/LpObjective"
              },
              {
                "type": "null"
              }
            ]
          },
          "timeout_ms": {
            "anyOf": [
              {
                "maximum": 5000,
                "minimum": 100,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": 3000
          },
          "variables": {
            "items": {
              "$ref": "#/components/schemas/LpVariable"
            },
            "maxItems": 1000,
            "minItems": 1,
            "type": "array"
          }
        },
        "required": [
          "variables",
          "constraints"
        ],
        "type": "object"
      },
      "LpResponse": {
        "additionalProperties": false,
        "properties": {
          "best_bound": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "bound_verified": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ]
          },
          "max_violation": {
            "anyOf": [
              {
                "minimum": 0,
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "objective_value": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "solution": {
            "anyOf": [
              {
                "additionalProperties": {
                  "type": "number"
                },
                "type": "object"
              },
              {
                "type": "null"
              }
            ]
          },
          "stats": {
            "$ref": "#/components/schemas/Stats"
          },
          "verdict": {
            "enum": [
              "optimal",
              "feasible",
              "infeasible",
              "unknown",
              "timeout"
            ],
            "type": "string"
          },
          "verified": {
            "type": "boolean"
          }
        },
        "required": [
          "verdict",
          "verified",
          "stats"
        ],
        "type": "object"
      },
      "LpTerm": {
        "additionalProperties": false,
        "properties": {
          "coeff": {
            "maximum": 1000000,
            "minimum": -1000000,
            "type": "number"
          },
          "var": {
            "$ref": "#/components/schemas/VarName"
          }
        },
        "required": [
          "var",
          "coeff"
        ],
        "type": "object"
      },
      "LpVariable": {
        "additionalProperties": false,
        "properties": {
          "max": {
            "maximum": 1000000000,
            "minimum": -1000000000,
            "type": "number"
          },
          "min": {
            "maximum": 1000000000,
            "minimum": -1000000000,
            "type": "number"
          },
          "name": {
            "$ref": "#/components/schemas/VarName"
          },
          "type": {
            "enum": [
              "continuous",
              "integer"
            ],
            "type": "string"
          }
        },
        "required": [
          "name",
          "type",
          "min",
          "max"
        ],
        "type": "object"
      },
      "MinMax": {
        "additionalProperties": false,
        "properties": {
          "op": {
            "enum": [
              "min",
              "max"
            ],
            "type": "string"
          },
          "target_var": {
            "$ref": "#/components/schemas/VarName"
          },
          "type": {
            "const": "min_max",
            "type": "string"
          },
          "vars": {
            "items": {
              "$ref": "#/components/schemas/VarName"
            },
            "maxItems": 500,
            "minItems": 1,
            "type": "array"
          }
        },
        "required": [
          "type",
          "op",
          "target_var",
          "vars"
        ],
        "type": "object"
      },
      "Name": {
        "maxLength": 48,
        "minLength": 1,
        "pattern": "^[a-zA-Z_][a-zA-Z0-9_]{0,47}$",
        "type": "string"
      },
      "NoOverlap": {
        "additionalProperties": false,
        "properties": {
          "intervals": {
            "items": {
              "$ref": "#/components/schemas/Interval"
            },
            "maxItems": 500,
            "minItems": 1,
            "type": "array"
          },
          "type": {
            "const": "no_overlap",
            "type": "string"
          }
        },
        "required": [
          "type",
          "intervals"
        ],
        "type": "object"
      },
      "Objective": {
        "additionalProperties": false,
        "properties": {
          "sense": {
            "enum": [
              "minimize",
              "maximize"
            ],
            "type": "string"
          },
          "terms": {
            "$ref": "#/components/schemas/Terms"
          }
        },
        "required": [
          "sense",
          "terms"
        ],
        "type": "object"
      },
      "RegexAmbiguity": {
        "additionalProperties": false,
        "properties": {
          "ambiguous": {
            "type": "boolean"
          },
          "risk_class": {
            "enum": [
              "none",
              "finite",
              "polynomial",
              "exponential"
            ],
            "type": "string"
          },
          "witness": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RegexWitness"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "ambiguous",
          "risk_class"
        ],
        "type": "object"
      },
      "RegexEquivalence": {
        "additionalProperties": false,
        "properties": {
          "equivalent": {
            "type": "boolean"
          },
          "only_in_compare": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Text"
              },
              {
                "type": "null"
              }
            ]
          },
          "only_in_pattern": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Text"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "equivalent"
        ],
        "type": "object"
      },
      "RegexPath": {
        "additionalProperties": false,
        "properties": {
          "choices": {
            "items": {
              "maximum": 1000000000000000,
              "minimum": 0,
              "type": "integer"
            },
            "maxItems": 16385,
            "type": "array"
          },
          "states": {
            "items": {
              "maximum": 2048,
              "minimum": -1,
              "type": "integer"
            },
            "maxItems": 16386,
            "minItems": 1,
            "type": "array"
          }
        },
        "required": [
          "states",
          "choices"
        ],
        "type": "object"
      },
      "RegexRequest": {
        "additionalProperties": false,
        "properties": {
          "check_ambiguity": {
            "default": true,
            "type": "boolean"
          },
          "compare_pattern": {
            "maxLength": 1024,
            "minLength": 1,
            "type": "string"
          },
          "max_samples": {
            "default": 5,
            "maximum": 20,
            "minimum": 0,
            "type": "integer"
          },
          "pattern": {
            "maxLength": 1024,
            "minLength": 1,
            "type": "string"
          },
          "timeout_ms": {
            "default": 3000,
            "maximum": 5000,
            "minimum": 100,
            "type": "integer"
          }
        },
        "required": [
          "pattern"
        ],
        "type": "object"
      },
      "RegexResponse": {
        "additionalProperties": false,
        "properties": {
          "ambiguity": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RegexAmbiguity"
              },
              {
                "type": "null"
              }
            ]
          },
          "empty": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ]
          },
          "equivalence": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RegexEquivalence"
              },
              {
                "type": "null"
              }
            ]
          },
          "matching_samples": {
            "items": {
              "$ref": "#/components/schemas/Text"
            },
            "maxItems": 20,
            "type": "array"
          },
          "non_matching_samples": {
            "items": {
              "$ref": "#/components/schemas/Text"
            },
            "maxItems": 20,
            "type": "array"
          },
          "stats": {
            "$ref": "#/components/schemas/Stats"
          },
          "universal": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ]
          },
          "verdict": {
            "enum": [
              "complete",
              "timeout"
            ],
            "type": "string"
          },
          "verified": {
            "type": "boolean"
          }
        },
        "required": [
          "verdict",
          "verified",
          "stats"
        ],
        "type": "object"
      },
      "RegexWitness": {
        "additionalProperties": false,
        "properties": {
          "accepting_paths": {
            "items": {
              "maximum": 1000000000000000,
              "minimum": 1,
              "type": "integer"
            },
            "maxItems": 4,
            "minItems": 1,
            "type": "array"
          },
          "attack_suffix": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Text"
              },
              {
                "type": "null"
              }
            ]
          },
          "example_string": {
            "$ref": "#/components/schemas/Text"
          },
          "paths": {
            "items": {
              "$ref": "#/components/schemas/RegexPath"
            },
            "maxItems": 2,
            "minItems": 2,
            "type": "array"
          },
          "prefix": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Text"
              },
              {
                "type": "null"
              }
            ]
          },
          "pump": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Text"
              },
              {
                "type": "null"
              }
            ]
          },
          "pump_paths": {
            "items": {
              "$ref": "#/components/schemas/RegexPath"
            },
            "maxItems": 3,
            "type": "array"
          },
          "suffix": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Text"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "example_string",
          "accepting_paths",
          "paths"
        ],
        "type": "object"
      },
      "Rule": {
        "additionalProperties": false,
        "properties": {
          "action": {
            "$ref": "#/components/schemas/Label"
          },
          "id": {
            "$ref": "#/components/schemas/Label"
          },
          "when": {
            "$ref": "#/components/schemas/RuleExpr"
          }
        },
        "required": [
          "id",
          "when",
          "action"
        ],
        "type": "object"
      },
      "RuleBoolVariable": {
        "additionalProperties": false,
        "properties": {
          "name": {
            "$ref": "#/components/schemas/Name"
          },
          "type": {
            "const": "bool",
            "type": "string"
          }
        },
        "required": [
          "name",
          "type"
        ],
        "type": "object"
      },
      "RuleBoolean": {
        "additionalProperties": false,
        "properties": {
          "args": {
            "items": {
              "$ref": "#/components/schemas/RuleExpr"
            },
            "maxItems": 255,
            "minItems": 1,
            "type": "array"
          },
          "op": {
            "enum": [
              "and",
              "or"
            ],
            "type": "string"
          }
        },
        "required": [
          "op",
          "args"
        ],
        "type": "object"
      },
      "RuleComparison": {
        "additionalProperties": false,
        "properties": {
          "op": {
            "enum": [
              "eq",
              "ne",
              "lt",
              "le",
              "gt",
              "ge"
            ],
            "type": "string"
          },
          "value": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "$ref": "#/components/schemas/Int"
              },
              {
                "$ref": "#/components/schemas/Name"
              },
              {
                "$ref": "#/components/schemas/VarRef"
              }
            ]
          },
          "var": {
            "$ref": "#/components/schemas/Name"
          }
        },
        "required": [
          "op",
          "var",
          "value"
        ],
        "type": "object"
      },
      "RuleConstant": {
        "additionalProperties": false,
        "properties": {
          "op": {
            "enum": [
              "true",
              "false"
            ],
            "type": "string"
          }
        },
        "required": [
          "op"
        ],
        "type": "object"
      },
      "RuleDiff": {
        "additionalProperties": false,
        "properties": {
          "equivalent": {
            "type": "boolean"
          },
          "witnesses": {
            "items": {
              "$ref": "#/components/schemas/RuleDiffWitness"
            },
            "maxItems": 20,
            "type": "array"
          }
        },
        "required": [
          "equivalent",
          "witnesses"
        ],
        "type": "object"
      },
      "RuleDiffWitness": {
        "additionalProperties": false,
        "properties": {
          "input": {
            "$ref": "#/components/schemas/Witness"
          },
          "v1_action": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Label"
              },
              {
                "type": "null"
              }
            ]
          },
          "v1_rule": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Label"
              },
              {
                "type": "null"
              }
            ]
          },
          "v2_action": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Label"
              },
              {
                "type": "null"
              }
            ]
          },
          "v2_rule": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Label"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "input",
          "v1_action",
          "v2_action",
          "v1_rule",
          "v2_rule"
        ],
        "type": "object"
      },
      "RuleEnumVariable": {
        "additionalProperties": false,
        "properties": {
          "name": {
            "$ref": "#/components/schemas/Name"
          },
          "type": {
            "const": "enum",
            "type": "string"
          },
          "values": {
            "items": {
              "$ref": "#/components/schemas/Name"
            },
            "maxItems": 64,
            "minItems": 1,
            "type": "array"
          }
        },
        "required": [
          "name",
          "type",
          "values"
        ],
        "type": "object"
      },
      "RuleExpr": {
        "oneOf": [
          {
            "$ref": "#/components/schemas/RuleConstant"
          },
          {
            "$ref": "#/components/schemas/RuleBoolean"
          },
          {
            "$ref": "#/components/schemas/RuleNot"
          },
          {
            "$ref": "#/components/schemas/RuleComparison"
          },
          {
            "$ref": "#/components/schemas/RuleMembership"
          }
        ]
      },
      "RuleGap": {
        "additionalProperties": false,
        "properties": {
          "has_gap": {
            "type": "boolean"
          },
          "witness": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Witness"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "has_gap"
        ],
        "type": "object"
      },
      "RuleIntVariable": {
        "additionalProperties": false,
        "properties": {
          "max": {
            "$ref": "#/components/schemas/Int"
          },
          "min": {
            "$ref": "#/components/schemas/Int"
          },
          "name": {
            "$ref": "#/components/schemas/Name"
          },
          "type": {
            "const": "int",
            "type": "string"
          }
        },
        "required": [
          "name",
          "type",
          "min",
          "max"
        ],
        "type": "object"
      },
      "RuleMembership": {
        "additionalProperties": false,
        "properties": {
          "op": {
            "const": "in",
            "type": "string"
          },
          "values": {
            "items": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/Int"
                },
                {
                  "$ref": "#/components/schemas/Name"
                }
              ]
            },
            "maxItems": 256,
            "minItems": 1,
            "type": "array"
          },
          "var": {
            "$ref": "#/components/schemas/Name"
          }
        },
        "required": [
          "op",
          "var",
          "values"
        ],
        "type": "object"
      },
      "RuleNot": {
        "additionalProperties": false,
        "properties": {
          "arg": {
            "$ref": "#/components/schemas/RuleExpr"
          },
          "op": {
            "const": "not",
            "type": "string"
          }
        },
        "required": [
          "op",
          "arg"
        ],
        "type": "object"
      },
      "RuleOverlap": {
        "additionalProperties": false,
        "properties": {
          "conflict": {
            "type": "boolean"
          },
          "rule_a": {
            "$ref": "#/components/schemas/Label"
          },
          "rule_b": {
            "$ref": "#/components/schemas/Label"
          },
          "witness": {
            "$ref": "#/components/schemas/Witness"
          }
        },
        "required": [
          "rule_a",
          "rule_b",
          "conflict",
          "witness"
        ],
        "type": "object"
      },
      "RulesRequest": {
        "additionalProperties": false,
        "properties": {
          "compare_default_action": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Label"
              },
              {
                "type": "null"
              }
            ]
          },
          "compare_rules": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/Rule"
                },
                "maxItems": 128,
                "minItems": 1,
                "type": "array"
              },
              {
                "type": "null"
              }
            ]
          },
          "default_action": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Label"
              },
              {
                "type": "null"
              }
            ]
          },
          "max_witnesses": {
            "anyOf": [
              {
                "maximum": 20,
                "minimum": 1,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": 10
          },
          "rules": {
            "items": {
              "$ref": "#/components/schemas/Rule"
            },
            "maxItems": 128,
            "minItems": 1,
            "type": "array"
          },
          "timeout_ms": {
            "anyOf": [
              {
                "maximum": 5000,
                "minimum": 100,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": 3000
          },
          "variables": {
            "items": {
              "oneOf": [
                {
                  "$ref": "#/components/schemas/RuleBoolVariable"
                },
                {
                  "$ref": "#/components/schemas/RuleIntVariable"
                },
                {
                  "$ref": "#/components/schemas/RuleEnumVariable"
                }
              ]
            },
            "maxItems": 64,
            "minItems": 1,
            "type": "array"
          }
        },
        "required": [
          "variables",
          "rules"
        ],
        "type": "object"
      },
      "RulesResponse": {
        "additionalProperties": false,
        "properties": {
          "diff": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RuleDiff"
              },
              {
                "type": "null"
              }
            ]
          },
          "overlaps": {
            "items": {
              "$ref": "#/components/schemas/RuleOverlap"
            },
            "maxItems": 20,
            "type": "array"
          },
          "stats": {
            "$ref": "#/components/schemas/Stats"
          },
          "uncovered_gap": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RuleGap"
              },
              {
                "type": "null"
              }
            ]
          },
          "unreachable_rules": {
            "items": {
              "$ref": "#/components/schemas/UnreachableRule"
            },
            "maxItems": 128,
            "type": "array"
          },
          "verdict": {
            "enum": [
              "complete",
              "timeout",
              "unknown"
            ],
            "type": "string"
          },
          "verified": {
            "type": "boolean"
          }
        },
        "required": [
          "verdict",
          "verified",
          "stats"
        ],
        "type": "object"
      },
      "SchemaCompatRequest": {
        "additionalProperties": false,
        "properties": {
          "new_schema": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "additionalProperties": true,
                "type": "object"
              }
            ]
          },
          "old_schema": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "additionalProperties": true,
                "type": "object"
              }
            ]
          },
          "timeout_ms": {
            "default": 3000,
            "maximum": 5000,
            "minimum": 100,
            "type": "integer"
          }
        },
        "required": [
          "old_schema",
          "new_schema"
        ],
        "type": "object"
      },
      "SchemaCompatResponse": {
        "additionalProperties": false,
        "properties": {
          "backward_compatible": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ]
          },
          "backward_counterexample": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SchemaCounterexample"
              },
              {
                "type": "null"
              }
            ]
          },
          "forward_compatible": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ]
          },
          "forward_counterexample": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SchemaCounterexample"
              },
              {
                "type": "null"
              }
            ]
          },
          "stats": {
            "$ref": "#/components/schemas/Stats"
          },
          "verdict": {
            "enum": [
              "complete",
              "timeout",
              "unknown"
            ],
            "type": "string"
          },
          "verified": {
            "type": "boolean"
          }
        },
        "required": [
          "verdict",
          "verified",
          "stats"
        ],
        "type": "object"
      },
      "SchemaCounterexample": {
        "additionalProperties": false,
        "properties": {
          "payload": {
            "$ref": "#/components/schemas/JsonValue"
          }
        },
        "required": [
          "payload"
        ],
        "type": "object"
      },
      "SmtRequest": {
        "additionalProperties": false,
        "properties": {
          "produce_model": {
            "default": true,
            "type": "boolean"
          },
          "produce_unsat_core": {
            "default": false,
            "type": "boolean"
          },
          "smtlib2": {
            "maxLength": 32768,
            "minLength": 1,
            "type": "string"
          },
          "timeout_ms": {
            "default": 3000,
            "maximum": 5000,
            "minimum": 100,
            "type": "integer"
          }
        },
        "required": [
          "smtlib2"
        ],
        "type": "object"
      },
      "SmtResponse": {
        "additionalProperties": false,
        "properties": {
          "model": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Witness"
              },
              {
                "type": "null"
              }
            ]
          },
          "objective_values": {
            "anyOf": [
              {
                "items": {
                  "anyOf": [
                    {
                      "type": "integer"
                    },
                    {
                      "type": "string"
                    }
                  ]
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ]
          },
          "stats": {
            "$ref": "#/components/schemas/Stats"
          },
          "unsat_core": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ]
          },
          "verdict": {
            "enum": [
              "sat",
              "optimal",
              "unsat",
              "unknown",
              "timeout"
            ],
            "type": "string"
          },
          "verified": {
            "type": "boolean"
          }
        },
        "required": [
          "verdict",
          "verified",
          "stats"
        ],
        "type": "object"
      },
      "StateBoolean": {
        "additionalProperties": false,
        "properties": {
          "args": {
            "items": {
              "$ref": "#/components/schemas/StateExpr"
            },
            "maxItems": 255,
            "minItems": 1,
            "type": "array"
          },
          "op": {
            "enum": [
              "and",
              "or"
            ],
            "type": "string"
          }
        },
        "required": [
          "op",
          "args"
        ],
        "type": "object"
      },
      "StateComparison": {
        "additionalProperties": false,
        "properties": {
          "op": {
            "enum": [
              "eq",
              "ne",
              "lt",
              "le",
              "gt",
              "ge"
            ],
            "type": "string"
          },
          "value": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "$ref": "#/components/schemas/StateInt"
              },
              {
                "$ref": "#/components/schemas/Name"
              },
              {
                "$ref": "#/components/schemas/VarRef"
              }
            ]
          },
          "var": {
            "$ref": "#/components/schemas/Name"
          }
        },
        "required": [
          "op",
          "var",
          "value"
        ],
        "type": "object"
      },
      "StateExpr": {
        "oneOf": [
          {
            "$ref": "#/components/schemas/RuleConstant"
          },
          {
            "$ref": "#/components/schemas/StateBoolean"
          },
          {
            "$ref": "#/components/schemas/StateNot"
          },
          {
            "$ref": "#/components/schemas/StateComparison"
          },
          {
            "$ref": "#/components/schemas/RuleMembership"
          }
        ]
      },
      "StateInt": {
        "maximum": 1000000,
        "minimum": -1000000,
        "type": "integer"
      },
      "StateNot": {
        "additionalProperties": false,
        "properties": {
          "arg": {
            "$ref": "#/components/schemas/StateExpr"
          },
          "op": {
            "const": "not",
            "type": "string"
          }
        },
        "required": [
          "op",
          "arg"
        ],
        "type": "object"
      },
      "Stats": {
        "additionalProperties": false,
        "properties": {
          "elapsed_ms": {
            "minimum": 0,
            "type": "integer"
          },
          "timed_out": {
            "type": "boolean"
          }
        },
        "required": [
          "elapsed_ms",
          "timed_out"
        ],
        "type": "object"
      },
      "Term": {
        "additionalProperties": false,
        "properties": {
          "coeff": {
            "$ref": "#/components/schemas/Int"
          },
          "var": {
            "$ref": "#/components/schemas/VarName"
          }
        },
        "required": [
          "var",
          "coeff"
        ],
        "type": "object"
      },
      "Terms": {
        "items": {
          "$ref": "#/components/schemas/Term"
        },
        "maxItems": 1000,
        "minItems": 1,
        "type": "array"
      },
      "Text": {
        "maxLength": 16384,
        "type": "string"
      },
      "Trace": {
        "items": {
          "$ref": "#/components/schemas/FsmStep"
        },
        "maxItems": 201,
        "minItems": 1,
        "type": "array"
      },
      "UnreachableRule": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "$ref": "#/components/schemas/Label"
          },
          "reason": {
            "enum": [
              "unsatisfiable",
              "shadowed"
            ],
            "type": "string"
          },
          "shadowed_by": {
            "items": {
              "$ref": "#/components/schemas/Label"
            },
            "type": "array"
          }
        },
        "required": [
          "id",
          "reason"
        ],
        "type": "object"
      },
      "UpdateArithmetic": {
        "additionalProperties": false,
        "properties": {
          "left": {
            "$ref": "#/components/schemas/UpdateExpr"
          },
          "op": {
            "enum": [
              "add",
              "sub"
            ],
            "type": "string"
          },
          "right": {
            "$ref": "#/components/schemas/UpdateExpr"
          }
        },
        "required": [
          "op",
          "left",
          "right"
        ],
        "type": "object"
      },
      "UpdateClamp": {
        "additionalProperties": false,
        "properties": {
          "arg": {
            "$ref": "#/components/schemas/UpdateExpr"
          },
          "max": {
            "$ref": "#/components/schemas/StateInt"
          },
          "min": {
            "$ref": "#/components/schemas/StateInt"
          },
          "op": {
            "const": "clamp",
            "type": "string"
          }
        },
        "required": [
          "op",
          "arg",
          "min",
          "max"
        ],
        "type": "object"
      },
      "UpdateConstant": {
        "additionalProperties": false,
        "properties": {
          "op": {
            "const": "const",
            "type": "string"
          },
          "value": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "$ref": "#/components/schemas/StateInt"
              },
              {
                "$ref": "#/components/schemas/Name"
              }
            ]
          }
        },
        "required": [
          "op",
          "value"
        ],
        "type": "object"
      },
      "UpdateExpr": {
        "oneOf": [
          {
            "$ref": "#/components/schemas/UpdateConstant"
          },
          {
            "$ref": "#/components/schemas/UpdateReference"
          },
          {
            "$ref": "#/components/schemas/UpdateArithmetic"
          },
          {
            "$ref": "#/components/schemas/UpdateClamp"
          }
        ]
      },
      "UpdateReference": {
        "additionalProperties": false,
        "properties": {
          "op": {
            "const": "var",
            "type": "string"
          },
          "var": {
            "$ref": "#/components/schemas/Name"
          }
        },
        "required": [
          "op",
          "var"
        ],
        "type": "object"
      },
      "VarName": {
        "maxLength": 64,
        "minLength": 1,
        "pattern": "^[A-Za-z_][A-Za-z0-9_.\\-\\[\\]]*$",
        "type": "string"
      },
      "VarRef": {
        "additionalProperties": false,
        "properties": {
          "var": {
            "$ref": "#/components/schemas/Name"
          }
        },
        "required": [
          "var"
        ],
        "type": "object"
      },
      "Variable": {
        "additionalProperties": false,
        "properties": {
          "max": {
            "$ref": "#/components/schemas/Int"
          },
          "min": {
            "$ref": "#/components/schemas/Int"
          },
          "name": {
            "$ref": "#/components/schemas/VarName"
          }
        },
        "required": [
          "name",
          "min",
          "max"
        ],
        "type": "object"
      },
      "Witness": {
        "additionalProperties": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "integer"
            },
            {
              "type": "string"
            }
          ]
        },
        "type": "object"
      }
    }
  },
  "info": {
    "title": "Deterministic Verification & Optimization Oracles",
    "version": "0.2.0"
  },
  "openapi": "3.1.0",
  "paths": {
    "/v1/analyze/regex": {
      "post": {
        "operationId": "analyze_regex",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RegexRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RegexResponse"
                }
              }
            },
            "description": "Solver result"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Request error"
          },
          "408": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Request error"
          },
          "413": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Request error"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Request error"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Request error"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Request error",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "analyze_regex"
      }
    },
    "/v1/analyze/rules": {
      "post": {
        "operationId": "analyze_rules",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RulesRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RulesResponse"
                }
              }
            },
            "description": "Solver result"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Request error"
          },
          "408": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Request error"
          },
          "413": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Request error"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Request error"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Request error"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Request error",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "analyze_rules"
      }
    },
    "/v1/check/schema-compat": {
      "post": {
        "operationId": "check_schema_compat",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SchemaCompatRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SchemaCompatResponse"
                }
              }
            },
            "description": "Solver result"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Request error"
          },
          "408": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Request error"
          },
          "413": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Request error"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Request error"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Request error"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Request error",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "check_schema_compat"
      }
    },
    "/v1/feedback": {
      "post": {
        "description": "Opt-in: send a bug report, feature request, schema friction note or positive feedback about this service. Call only when you or your user explicitly choose to send feedback. Not read-only: each call stores one entry. category: bug_report, feature_request, schema_friction, positive. tool: optional solver name. message: 1..1000 characters of plain text. no_sensitive_data must be true. Do not include personal data, secrets, credentials or proprietary inputs; messages are stored as plain text and read by the operator. Global limits: 10 per UTC hour, 50 per UTC day; RATE_LIMITED otherwise.",
        "operationId": "submit_feedback",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FeedbackRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FeedbackResponse"
                }
              }
            },
            "description": "Feedback stored"
          },
          "413": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Request error"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Request error"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Request error",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Request error"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Request error",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "submit_feedback"
      }
    },
    "/v1/solve/cpsat": {
      "post": {
        "operationId": "solve_cpsat",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CpsatRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpsatResponse"
                }
              }
            },
            "description": "Solver result"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Request error"
          },
          "408": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Request error"
          },
          "413": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Request error"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Request error"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Request error"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Request error",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "solve_cpsat"
      }
    },
    "/v1/solve/lp-mip": {
      "post": {
        "operationId": "solve_lp_mip",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LpRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LpResponse"
                }
              }
            },
            "description": "Solver result"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Request error"
          },
          "408": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Request error"
          },
          "413": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Request error"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Request error"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Request error"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Request error",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "solve_lp_mip"
      }
    },
    "/v1/solve/smt": {
      "post": {
        "operationId": "solve_smt",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SmtRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SmtResponse"
                }
              }
            },
            "description": "Solver result"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Request error"
          },
          "408": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Request error"
          },
          "413": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Request error"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Request error"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Request error"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Request error",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "solve_smt"
      }
    },
    "/v1/verify/state-machine": {
      "post": {
        "operationId": "verify_state_machine",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FsmRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FsmResponse"
                }
              }
            },
            "description": "Solver result"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Request error"
          },
          "408": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Request error"
          },
          "413": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Request error"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Request error"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Request error"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Request error",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "verify_state_machine"
      }
    }
  },
  "security": [],
  "servers": [
    {
      "url": "https://oracles.burgeonads.com"
    }
  ]
}
