Deterministic Verification & Optimization Oracles

SMT-LIB2, CP-SAT, LP/MIP, rules, FSM, regex, SemVer, cron, JSON Schema. No API key. Zero-logging.

Sollte ich dies verwenden

Qualität und Sicherheit

A
Qualität der Beschreibung
96%
Vollständigkeit des Schemas
72%
Qualität der Benennung
92%
Risiko der Vergiftung
100%
Übereinstimmung der Berechtigungen
100%
Einhaltung des Protokolls
100%

Basierend auf einer automatisierten Analyse der Tool-Definitionen und der Einhaltung des Protokolls.

Kontextkosten

~11,539Tokens (Tool-Definitionen)
~11.0 KBTypische Antwortgröße
Erhebliche Auswirkung auf die Aufmerksamkeit (9.01% von 128k Kontext)

Dies ist die ungefähre Anzahl der Tokens, die jedes Mal verbraucht werden, wenn die Tools des Servers in den Kontext eines Modells geladen werden. Höhere Werte verringern die Aufmerksamkeit, die für andere Aufgaben verfügbar ist.

Installieren

Installation mit einem Klick

Fügen Sie dies Ihrer Datei `claude_desktop_config.json` hinzu:

{
  "mcpServers": {
    "oracles": {
      "url": "https://burgeonads.com/mcp"
    }
  }
}

Remote-Endpunkte

https://burgeonads.com/mcpstreamable-http
https://oracles.burgeonads.com/mcpstreamable-http

Was es kann

Tool-Inventar

Tools (10)

🟢 Nur lesen🟡 Schreiben🔴 Löschen⚪ Unbekannt
🟢analyze_schedule_windows(start, end, schedules, timeout_ms)

Verify numeric cron and recurring UTC/IANA windows over a fixed horizon. Exact overlaps, blackout conflicts, uncovered gaps and fire timestamps. Docs: oracle://docs/schedule-windows. Minimal example: {"start":"2026-01-01T00:00:00Z","end":"2026-01-01T02:00:00Z","schedules":[{"type":"cron","id":"job","expression":"0 * * * *","duration_minutes":30}]}

Eingabe-Schema

{
  "type": "object",
  "properties": {
    "start": {
      "maxLength": 20,
      "minLength": 20,
      "pattern": "^20[0-9]{2}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:00Z$",
      "type": "string"
    },
    "end": {
      "maxLength": 20,
      "minLength": 20,
      "pattern": "^20[0-9]{2}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:00Z$",
      "type": "string"
    },
    "schedules": {
      "items": {
        "oneOf": [
          {
            "$ref": "#/$defs/CronSchedule"
          },
          {
            "$ref": "#/$defs/WindowSchedule"
          }
        ]
      },
      "maxItems": 16,
      "minItems": 1,
      "type": "array"
    },
    "timeout_ms": {
      "anyOf": [
        {
          "maximum": 5000,
          "minimum": 100,
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "default": 3000
    }
  },
  "required": [
    "start",
    "end",
    "schedules"
  ],
  "additionalProperties": false,
  "$defs": {
    "CronSchedule": {
      "additionalProperties": false,
      "properties": {
        "type": {
          "const": "cron",
          "type": "string"
        },
        "id": {
          "$ref": "#/$defs/VarName"
        },
        "role": {
          "default": "coverage",
          "enum": [
            "coverage",
            "blackout"
          ],
          "type": "string"
        },
        "timezone": {
          "default": "UTC",
          "maxLength": 64,
          "minLength": 1,
          "type": "string"
        },
        "expression": {
          "maxLength": 256,
          "minLength": 9,
          "type": "string"
        },
        "duration_minutes": {
          "default": 1,
          "maximum": 1440,
          "minimum": 1,
          "type": "integer"
        }
      },
      "required": [
        "type",
        "id",
        "expression"
      ],
      "type": "object"
    },
    "VarName": {
      "maxLength": 64,
      "minLength": 1,
      "pattern": "^[A-Za-z_][A-Za-z0-9_.\\-\\[\\]]*$",
      "type": "string"
    },
    "WindowSchedule": {
      "additionalProperties": false,
      "properties": {
        "type": {
          "const": "window",
          "type": "string"
        },
        "id": {
          "$ref": "#/$defs/VarName"
        },
        "role": {
          "default": "coverage",
          "enum": [
            "coverage",
            "blackout"
          ],
          "type": "string"
        },
        "timezone": {
          "default": "UTC",
          "maxLength": 64,
          "minLength": 1,
          "type": "string"
        },
        "weekdays": {
          "items": {
            "maximum": 6,
            "minimum": 0,
            "type": "integer"
          },
          "maxItems": 7,
          "minItems": 1,
          "type": "array"
        },
        "start_time": {
          "pattern": "^(?:[01][0-9]|2[0-3]):[0-5][0-9]$",
          "type": "string"
        },
        "end_time": {
          "pattern": "^(?:[01][0-9]|2[0-3]):[0-5][0-9]$",
          "type": "string"
        }
      },
      "required": [
        "type",
        "id",
        "weekdays",
        "start_time",
        "end_time"
      ],
      "type": "object"
    }
  }
}

Ausgabe-Schema

{
  "type": "object",
  "anyOf": [
    {
      "$ref": "#/$defs/ScheduleResponse"
    },
    {
      "required": [
        "error"
      ],
      "properties": {
        "error": {
          "type": "object"
        }
      }
    }
  ],
  "$defs": {
    "ScheduleAnalysis": {
      "additionalProperties": false,
      "properties": {
        "schedules": {
          "items": {
            "$ref": "#/$defs/ScheduleRecord"
          },
          "type": "array"
        },
        "overlaps": {
          "items": {
            "$ref": "#/$defs/ScheduleOverlap"
          },
          "type": "array"
        },
        "blackout_conflicts": {
          "items": {
            "$ref": "#/$defs/ScheduleOverlap"
          },
          "type": "array"
        },
        "uncovered_gaps": {
          "items": {
            "$ref": "#/$defs/TimeSpan"
          },
          "type": "array"
        }
      },
      "required": [
        "schedules",
        "overlaps",
        "blackout_conflicts",
        "uncovered_gaps"
      ],
      "type": "object"
    },
    "ScheduleOverlap": {
      "additionalProperties": false,
      "properties": {
        "left": {
          "$ref": "#/$defs/VarName"
        },
        "right": {
          "$ref": "#/$defs/VarName"
        },
        "intervals": {
          "items": {
            "$ref": "#/$defs/TimeSpan"
          },
          "type": "array"
        }
      },
      "required": [
        "left",
        "right",
        "intervals"
      ],
      "type": "object"
    },
    "ScheduleRecord": {
      "additionalProperties": false,
      "properties": {
        "id": {
          "$ref": "#/$defs/VarName"
        },
        "fires": {
          "items": {
            "maxLength": 20,
            "minLength": 20,
            "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:00Z$",
            "type": "string"
          },
          "type": "array"
        },
        "intervals": {
          "items": {
            "$ref": "#/$defs/TimeSpan"
          },
          "type": "array"
        }
      },
      "required": [
        "id",
        "fires",
        "intervals"
      ],
      "type": "object"
    },
    "ScheduleResponse": {
      "additionalProperties": false,
      "properties": {
        "verdict": {
          "enum": [
            "complete",
            "unknown",
            "timeout"
          ],
          "type": "string"
        },
        "analysis": {
          "anyOf": [
            {
              "$ref": "#/$defs/ScheduleAnalysis"
            },
            {
              "type": "null"
            }
          ]
        },
        "tzdata_version": {
          "type": "string"
        },
        "verified": {
          "type": "boolean"
        },
        "stats": {
          "$ref": "#/$defs/Stats"
        }
      },
      "required": [
        "verdict",
        "tzdata_version",
        "verified",
        "stats"
      ],
      "type": "object"
    },
    "Stats": {
      "additionalProperties": false,
      "properties": {
        "elapsed_ms": {
          "minimum": 0,
          "type": "integer"
        },
        "timed_out": {
          "type": "boolean"
        }
      },
      "required": [
        "elapsed_ms",
        "timed_out"
      ],
      "type": "object"
    },
    "TimeSpan": {
      "additionalProperties": false,
      "properties": {
        "start": {
          "maxLength": 20,
          "minLength": 20,
          "pattern": "^20[0-9]{2}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:00Z$",
          "type": "string"
        },
        "end": {
          "maxLength": 20,
          "minLength": 20,
          "pattern": "^20[0-9]{2}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:00Z$",
          "type": "string"
        }
      },
      "required": [
        "start",
        "end"
      ],
      "type": "object"
    },
    "VarName": {
      "maxLength": 64,
      "minLength": 1,
      "pattern": "^[A-Za-z_][A-Za-z0-9_.\\-\\[\\]]*$",
      "type": "string"
    }
  }
}
🟢resolve_constraints(packages, requirements, conflicts, timeout_ms)

Resolve supplied SemVer versions, conditional dependencies, ranges and conflicts. Independently prove the lexicographic newest assignment or a minimal conflict. Docs: oracle://docs/resolve-constraints. Minimal example: {"packages":[{"name":"lib","versions":[{"version":"1.0.0"},{"version":"1.2.0"}]}],"requirements":[{"package":"lib","range":"^1.0.0"}]}

Eingabe-Schema

{
  "type": "object",
  "properties": {
    "packages": {
      "items": {
        "$ref": "#/$defs/CandidatePackage"
      },
      "maxItems": 64,
      "minItems": 1,
      "type": "array"
    },
    "requirements": {
      "anyOf": [
        {
          "items": {
            "$ref": "#/$defs/VersionRequirement"
          },
          "maxItems": 512,
          "type": "array"
        },
        {
          "type": "null"
        }
      ]
    },
    "conflicts": {
      "anyOf": [
        {
          "items": {
            "$ref": "#/$defs/VersionConflict"
          },
          "maxItems": 512,
          "type": "array"
        },
        {
          "type": "null"
        }
      ]
    },
    "timeout_ms": {
      "anyOf": [
        {
          "maximum": 5000,
          "minimum": 100,
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "default": 3000
    }
  },
  "required": [
    "packages"
  ],
  "$defs": {
    "CandidatePackage": {
      "additionalProperties": false,
      "properties": {
        "name": {
          "maxLength": 64,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9_@][A-Za-z0-9_.@/\\-]*$",
          "type": "string"
        },
        "versions": {
          "items": {
            "$ref": "#/$defs/PackageVersion"
          },
          "maxItems": 128,
          "minItems": 1,
          "type": "array"
        }
      },
      "required": [
        "name",
        "versions"
      ],
      "type": "object"
    },
    "PackageVersion": {
      "additionalProperties": false,
      "properties": {
        "version": {
          "maxLength": 128,
          "minLength": 1,
          "type": "string"
        },
        "dependencies": {
          "items": {
            "$ref": "#/$defs/VersionRequirement"
          },
          "maxItems": 64,
          "type": "array"
        }
      },
      "required": [
        "version"
      ],
      "type": "object"
    },
    "VersionConflict": {
      "additionalProperties": false,
      "properties": {
        "left": {
          "$ref": "#/$defs/VersionRequirement"
        },
        "right": {
          "$ref": "#/$defs/VersionRequirement"
        }
      },
      "required": [
        "left",
        "right"
      ],
      "type": "object"
    },
    "VersionRequirement": {
      "additionalProperties": false,
      "properties": {
        "package": {
          "maxLength": 64,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9_@][A-Za-z0-9_.@/\\-]*$",
          "type": "string"
        },
        "range": {
          "maxLength": 512,
          "minLength": 1,
          "type": "string"
        }
      },
      "required": [
        "package",
        "range"
      ],
      "type": "object"
    }
  },
  "additionalProperties": false
}

Ausgabe-Schema

{
  "type": "object",
  "anyOf": [
    {
      "$ref": "#/$defs/ResolveResponse"
    },
    {
      "required": [
        "error"
      ],
      "properties": {
        "error": {
          "type": "object"
        }
      }
    }
  ],
  "$defs": {
    "ResolveResponse": {
      "additionalProperties": false,
      "properties": {
        "verdict": {
          "enum": [
            "optimal",
            "infeasible",
            "unknown",
            "timeout"
          ],
          "type": "string"
        },
        "assignment": {
          "anyOf": [
            {
              "additionalProperties": {
                "type": "string"
              },
              "type": "object"
            },
            {
              "type": "null"
            }
          ]
        },
        "conflict": {
          "anyOf": [
            {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ]
        },
        "verified": {
          "type": "boolean"
        },
        "stats": {
          "$ref": "#/$defs/Stats"
        }
      },
      "required": [
        "verdict",
        "verified",
        "stats"
      ],
      "type": "object"
    },
    "Stats": {
      "additionalProperties": false,
      "properties": {
        "elapsed_ms": {
          "minimum": 0,
          "type": "integer"
        },
        "timed_out": {
          "type": "boolean"
        }
      },
      "required": [
        "elapsed_ms",
        "timed_out"
      ],
      "type": "object"
    }
  }
}
🟢check_schema_compat(old_schema, new_schema, timeout_ms)

Decide backward (old inputs accepted by new) and forward JSON Schema compatibility; validate concrete counterexamples. Read the supported subset: oracle://docs/schema-compat. Minimal example: {"old_schema":{"type":"integer"},"new_schema":{"type":"number"}}

Eingabe-Schema

{
  "type": "object",
  "properties": {
    "old_schema": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "additionalProperties": true,
          "type": "object"
        }
      ]
    },
    "new_schema": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "additionalProperties": true,
          "type": "object"
        }
      ]
    },
    "timeout_ms": {
      "default": 3000,
      "maximum": 5000,
      "minimum": 100,
      "type": "integer"
    }
  },
  "required": [
    "old_schema",
    "new_schema"
  ],
  "additionalProperties": false
}

Ausgabe-Schema

{
  "type": "object",
  "anyOf": [
    {
      "$ref": "#/$defs/SchemaCompatResponse"
    },
    {
      "required": [
        "error"
      ],
      "properties": {
        "error": {
          "type": "object"
        }
      }
    }
  ],
  "$defs": {
    "JsonValue": {},
    "SchemaCompatResponse": {
      "additionalProperties": false,
      "properties": {
        "verdict": {
          "enum": [
            "complete",
            "timeout",
            "unknown"
          ],
          "type": "string"
        },
        "backward_compatible": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ]
        },
        "forward_compatible": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ]
        },
        "backward_counterexample": {
          "anyOf": [
            {
              "$ref": "#/$defs/SchemaCounterexample"
            },
            {
              "type": "null"
            }
          ]
        },
        "forward_counterexample": {
          "anyOf": [
            {
              "$ref": "#/$defs/SchemaCounterexample"
            },
            {
              "type": "null"
            }
          ]
        },
        "verified": {
          "type": "boolean"
        },
        "stats": {
          "$ref": "#/$defs/Stats"
        }
      },
      "required": [
        "verdict",
        "verified",
        "stats"
      ],
      "type": "object"
    },
    "SchemaCounterexample": {
      "additionalProperties": false,
      "properties": {
        "payload": {
          "$ref": "#/$defs/JsonValue"
        }
      },
      "required": [
        "payload"
      ],
      "type": "object"
    },
    "Stats": {
      "additionalProperties": false,
      "properties": {
        "elapsed_ms": {
          "minimum": 0,
          "type": "integer"
        },
        "timed_out": {
          "type": "boolean"
        }
      },
      "required": [
        "elapsed_ms",
        "timed_out"
      ],
      "type": "object"
    }
  }
}
🟢analyze_regex(pattern, compare_pattern, max_samples, check_ambiguity, timeout_ms)

Compare regex languages; verify differences and backtracking witnesses. Docs: oracle://docs/verification-oracles. Minimal example: {"pattern":"a+","compare_pattern":"aa*"}

Eingabe-Schema

{
  "type": "object",
  "properties": {
    "pattern": {
      "maxLength": 1024,
      "minLength": 1,
      "type": "string"
    },
    "compare_pattern": {
      "maxLength": 1024,
      "minLength": 1,
      "type": "string"
    },
    "max_samples": {
      "default": 5,
      "maximum": 20,
      "minimum": 0,
      "type": "integer"
    },
    "check_ambiguity": {
      "default": true,
      "type": "boolean"
    },
    "timeout_ms": {
      "default": 3000,
      "maximum": 5000,
      "minimum": 100,
      "type": "integer"
    }
  },
  "required": [
    "pattern"
  ],
  "additionalProperties": false
}

Ausgabe-Schema

{
  "type": "object",
  "anyOf": [
    {
      "$ref": "#/$defs/RegexResponse"
    },
    {
      "required": [
        "error"
      ],
      "properties": {
        "error": {
          "type": "object"
        }
      }
    }
  ],
  "$defs": {
    "RegexAmbiguity": {
      "additionalProperties": false,
      "properties": {
        "ambiguous": {
          "type": "boolean"
        },
        "risk_class": {
          "enum": [
            "none",
            "finite",
            "polynomial",
            "exponential"
          ],
          "type": "string"
        },
        "witness": {
          "anyOf": [
            {
              "$ref": "#/$defs/RegexWitness"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "ambiguous",
        "risk_class"
      ],
      "type": "object"
    },
    "RegexEquivalence": {
      "additionalProperties": false,
      "properties": {
        "equivalent": {
          "type": "boolean"
        },
        "only_in_pattern": {
          "anyOf": [
            {
              "$ref": "#/$defs/Text"
            },
            {
              "type": "null"
            }
          ]
        },
        "only_in_compare": {
          "anyOf": [
            {
              "$ref": "#/$defs/Text"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "equivalent"
      ],
      "type": "object"
    },
    "RegexPath": {
      "additionalProperties": false,
      "properties": {
        "states": {
          "items": {
            "maximum": 2048,
            "minimum": -1,
            "type": "integer"
          },
          "maxItems": 16386,
          "minItems": 1,
          "type": "array"
        },
        "choices": {
          "items": {
            "maximum": 1000000000000000,
            "minimum": 0,
            "type": "integer"
          },
          "maxItems": 16385,
          "type": "array"
        }
      },
      "required": [
        "states",
        "choices"
      ],
      "type": "object"
    },
    "RegexResponse": {
      "additionalProperties": false,
      "properties": {
        "verdict": {
          "enum": [
            "complete",
            "timeout"
          ],
          "type": "string"
        },
        "empty": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ]
        },
        "universal": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ]
        },
        "matching_samples": {
          "items": {
            "$ref": "#/$defs/Text"
          },
          "maxItems": 20,
          "type": "array"
        },
        "non_matching_samples": {
          "items": {
            "$ref": "#/$defs/Text"
          },
          "maxItems": 20,
          "type": "array"
        },
        "equivalence": {
          "anyOf": [
            {
              "$ref": "#/$defs/RegexEquivalence"
            },
            {
              "type": "null"
            }
          ]
        },
        "ambiguity": {
          "anyOf": [
            {
              "$ref": "#/$defs/RegexAmbiguity"
            },
            {
              "type": "null"
            }
          ]
        },
        "verified": {
          "type": "boolean"
        },
        "stats": {
          "$ref": "#/$defs/Stats"
        }
      },
      "required": [
        "verdict",
        "verified",
        "stats"
      ],
      "type": "object"
    },
    "RegexWitness": {
      "additionalProperties": false,
      "properties": {
        "prefix": {
          "anyOf": [
            {
              "$ref": "#/$defs/Text"
            },
            {
              "type": "null"
            }
          ]
        },
        "pump": {
          "anyOf": [
            {
              "$ref": "#/$defs/Text"
            },
            {
              "type": "null"
            }
          ]
        },
        "suffix": {
          "anyOf": [
            {
              "$ref": "#/$defs/Text"
            },
            {
              "type": "null"
            }
          ]
        },
        "attack_suffix": {
          "anyOf": [
            {
              "$ref": "#/$defs/Text"
            },
            {
              "type": "null"
            }
          ]
        },
        "example_string": {
          "$ref": "#/$defs/Text"
        },
        "accepting_paths": {
          "items": {
            "maximum": 1000000000000000,
            "minimum": 1,
            "type": "integer"
          },
          "maxItems": 4,
          "minItems": 1,
          "type": "array"
        },
        "paths": {
          "items": {
            "$ref": "#/$defs/RegexPath"
          },
          "maxItems": 2,
          "minItems": 2,
          "type": "array"
        },
        "pump_paths": {
          "items": {
            "$ref": "#/$defs/RegexPath"
          },
          "maxItems": 3,
          "type": "array"
        }
      },
      "required": [
        "example_string",
        "accepting_paths",
        "paths"
      ],
      "type": "object"
    },
    "Stats": {
      "additionalProperties": false,
      "properties": {
        "elapsed_ms": {
          "minimum": 0,
          "type": "integer"
        },
        "timed_out": {
          "type": "boolean"
        }
      },
      "required": [
        "elapsed_ms",
        "timed_out"
      ],
      "type": "object"
    },
    "Text": {
      "maxLength": 16384,
      "type": "string"
    }
  }
}
🟢solve_smt(smtlib2, produce_model, produce_unsat_core, timeout_ms)

SMT-LIB2 lexicographic Int/Real optimization; verified models, optima and cores. Docs: oracle://docs/constraint-oracle. Minimal example: {"smtlib2":"(declare-const x Int)(assert (= x 7))"}

Eingabe-Schema

{
  "type": "object",
  "properties": {
    "smtlib2": {
      "maxLength": 32768,
      "minLength": 1,
      "type": "string"
    },
    "produce_model": {
      "default": true,
      "type": "boolean"
    },
    "produce_unsat_core": {
      "default": false,
      "type": "boolean"
    },
    "timeout_ms": {
      "default": 3000,
      "maximum": 5000,
      "minimum": 100,
      "type": "integer"
    }
  },
  "required": [
    "smtlib2"
  ],
  "additionalProperties": false
}

Ausgabe-Schema

{
  "type": "object",
  "anyOf": [
    {
      "$ref": "#/$defs/SmtResponse"
    },
    {
      "required": [
        "error"
      ],
      "properties": {
        "error": {
          "type": "object"
        }
      }
    }
  ],
  "$defs": {
    "SmtResponse": {
      "additionalProperties": false,
      "properties": {
        "verdict": {
          "enum": [
            "sat",
            "optimal",
            "unsat",
            "unknown",
            "timeout"
          ],
          "type": "string"
        },
        "model": {
          "anyOf": [
            {
              "$ref": "#/$defs/Witness"
            },
            {
              "type": "null"
            }
          ]
        },
        "unsat_core": {
          "anyOf": [
            {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ]
        },
        "objective_values": {
          "anyOf": [
            {
              "items": {
                "anyOf": [
                  {
                    "type": "integer"
                  },
                  {
                    "type": "string"
                  }
                ]
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ]
        },
        "verified": {
          "type": "boolean"
        },
        "stats": {
          "$ref": "#/$defs/Stats"
        }
      },
      "required": [
        "verdict",
        "verified",
        "stats"
      ],
      "type": "object"
    },
    "Stats": {
      "additionalProperties": false,
      "properties": {
        "elapsed_ms": {
          "minimum": 0,
          "type": "integer"
        },
        "timed_out": {
          "type": "boolean"
        }
      },
      "required": [
        "elapsed_ms",
        "timed_out"
      ],
      "type": "object"
    },
    "Witness": {
      "additionalProperties": {
        "anyOf": [
          {
            "type": "boolean"
          },
          {
            "type": "integer"
          },
          {
            "type": "string"
          }
        ]
      },
      "type": "object"
    }
  }
}
🟢solve_cpsat(variables, constraints, objective, timeout_ms, produce_unsat_core)

CP-SAT optimization; verified solutions and optional minimal cores. Docs: oracle://docs/constraint-oracle. Minimal example: {"variables":[{"name":"x","min":0,"max":9}],"constraints":[{"type":"linear","terms":[{"var":"x","coeff":1}],"op":"==","rhs":7}]}

Eingabe-Schema

{
  "type": "object",
  "properties": {
    "variables": {
      "items": {
        "$ref": "#/$defs/Variable"
      },
      "maxItems": 500,
      "minItems": 1,
      "type": "array"
    },
    "constraints": {
      "items": {
        "oneOf": [
          {
            "$ref": "#/$defs/LinearConstraint"
          },
          {
            "$ref": "#/$defs/AllDifferent"
          },
          {
            "$ref": "#/$defs/NoOverlap"
          },
          {
            "$ref": "#/$defs/Implication"
          },
          {
            "$ref": "#/$defs/Element"
          },
          {
            "$ref": "#/$defs/Cumulative"
          },
          {
            "$ref": "#/$defs/Circuit"
          },
          {
            "$ref": "#/$defs/AllowedAssignments"
          },
          {
            "$ref": "#/$defs/BoolOr"
          },
          {
            "$ref": "#/$defs/ExactlyOne"
          },
          {
            "$ref": "#/$defs/MinMax"
          },
          {
            "$ref": "#/$defs/Abs"
          }
        ]
      },
      "maxItems": 2000,
      "minItems": 1,
      "type": "array"
    },
    "objective": {
      "anyOf": [
        {
          "$ref": "#/$defs/Objective"
        },
        {
          "type": "null"
        }
      ]
    },
    "timeout_ms": {
      "anyOf": [
        {
          "maximum": 5000,
          "minimum": 100,
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "default": 3000
    },
    "produce_unsat_core": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "default": false
    }
  },
  "required": [
    "variables",
    "constraints"
  ],
  "additionalProperties": false,
  "$defs": {
    "Abs": {
      "additionalProperties": false,
      "properties": {
        "type": {
          "const": "abs",
          "type": "string"
        },
        "target_var": {
          "$ref": "#/$defs/VarName"
        },
        "var": {
          "$ref": "#/$defs/VarName"
        }
      },
      "required": [
        "type",
        "target_var",
        "var"
      ],
      "type": "object"
    },
    "AllDifferent": {
      "additionalProperties": false,
      "properties": {
        "type": {
          "const": "all_different",
          "type": "string"
        },
        "vars": {
          "items": {
            "$ref": "#/$defs/VarName"
          },
          "maxItems": 500,
          "minItems": 1,
          "type": "array"
        }
      },
      "required": [
        "type",
        "vars"
      ],
      "type": "object"
    },
    "AllowedAssignments": {
      "additionalProperties": false,
      "properties": {
        "type": {
          "const": "allowed_assignments",
          "type": "string"
        },
        "vars": {
          "items": {
            "$ref": "#/$defs/VarName"
          },
          "maxItems": 20,
          "minItems": 1,
          "type": "array"
        },
        "tuples": {
          "items": {
            "items": {
              "$ref": "#/$defs/Int"
            },
            "maxItems": 20,
            "minItems": 1,
            "type": "array"
          },
          "maxItems": 500,
          "minItems": 1,
          "type": "array"
        }
      },
      "required": [
        "type",
        "vars",
        "tuples"
      ],
      "type": "object"
    },
    "Arc": {
      "additionalProperties": false,
      "properties": {
        "tail": {
          "maximum": 999,
          "minimum": 0,
          "type": "integer"
        },
        "head": {
          "maximum": 999,
          "minimum": 0,
          "type": "integer"
        },
        "var": {
          "$ref": "#/$defs/VarName"
        }
      },
      "required": [
        "tail",
        "head",
        "var"
      ],
      "type": "object"
    },
    "BoolLiteral": {
      "additionalProperties": false,
      "properties": {
        "var": {
          "$ref": "#/$defs/VarName"
        },
        "eq": {
          "$ref": "#/$defs/Int"
        }
      },
      "required": [
        "var",
        "eq"
      ],
      "type": "object"
    },
    "BoolOr": {
      "additionalProperties": false,
      "properties": {
        "type": {
          "const": "bool_or",
          "type": "string"
        },
        "literals": {
          "items": {
            "$ref": "#/$defs/BoolLiteral"
          },
          "maxItems": 100,
          "minItems": 1,
          "type": "array"
        }
      },
      "required": [
        "type",
        "literals"
      ],
      "type": "object"
    },
    "Circuit": {
      "additionalProperties": false,
      "properties": {
        "type": {
          "const": "circuit",
          "type": "string"
        },
        "arcs": {
          "items": {
            "$ref": "#/$defs/Arc"
          },
          "maxItems": 500,
          "minItems": 1,
          "type": "array"
        }
      },
      "required": [
        "type",
        "arcs"
      ],
      "type": "object"
    },
    "Cumulative": {
      "additionalProperties": false,
      "properties": {
        "type": {
          "const": "cumulative",
          "type": "string"
        },
        "intervals": {
          "items": {
            "$ref": "#/$defs/CumulativeInterval"
          },
          "maxItems": 200,
          "minItems": 1,
          "type": "array"
        },
        "capacity": {
          "maximum": 1000000000,
          "minimum": 0,
          "type": "integer"
        }
      },
      "required": [
        "type",
        "intervals",
        "capacity"
      ],
      "type": "object"
    },
    "CumulativeInterval": {
      "additionalProperties": false,
      "properties": {
        "start_var": {
          "$ref": "#/$defs/VarName"
        },
        "duration": {
          "maximum": 1000000000,
          "minimum": 0,
          "type": "integer"
        },
        "demand": {
          "maximum": 1000000000,
          "minimum": 0,
          "type": "integer"
        }
      },
      "required": [
        "start_var",
        "duration",
        "demand"
      ],
      "type": "object"
    },
    "Element": {
      "additionalProperties": false,
      "properties": {
        "type": {
          "const": "element",
          "type": "string"
        },
        "index_var": {
          "$ref": "#/$defs/VarName"
        },
        "values": {
          "items": {
            "$ref": "#/$defs/Int"
          },
          "maxItems": 1000,
          "minItems": 1,
          "type": "array"
        },
        "target_var": {
          "$ref": "#/$defs/VarName"
        }
      },
      "required": [
        "type",
        "index_var",
        "values",
        "target_var"
      ],
      "type": "object"
    },
    "ExactlyOne": {
      "additionalProperties": false,
      "properties": {
        "type": {
          "const": "exactly_one",
          "type": "string"
        },
        "literals": {
          "items": {
            "$ref": "#/$defs/BoolLiteral"
          },
          "maxItems": 100,
          "minItems": 1,
          "type": "array"
        }
      },
      "required": [
        "type",
        "literals"
      ],
      "type": "object"
    },
    "Implication": {
      "additionalProperties": false,
      "properties": {
        "type": {
          "const": "implication",
          "type": "string"
        },
        "if_var": {
          "anyOf": [
            {
              "$ref": "#/$defs/VarName"
            },
            {
              "type": "null"
            }
          ]
        },
        "if_eq": {
          "anyOf": [
            {
              "$ref": "#/$defs/Int"
            },
            {
              "type": "null"
            }
          ]
        },
        "if_op": {
          "anyOf": [
            {
              "$ref": "#/$defs/LinearOp"
            },
            {
              "type": "null"
            }
          ],
          "default": "=="
        },
        "if_all": {
          "anyOf": [
            {
              "items": {
                "$ref": "#/$defs/LinearConstraint"
              },
              "maxItems": 100,
              "minItems": 1,
              "type": "array"
            },
            {
              "type": "null"
            }
          ]
        },
        "if_any": {
          "anyOf": [
            {
              "items": {
                "$ref": "#/$defs/LinearConstraint"
              },
              "maxItems": 100,
              "minItems": 1,
              "type": "array"
            },
            {
              "type": "null"
            }
          ]
        },
        "then": {
          "$ref": "#/$defs/LinearConstraint"
        }
      },
      "required": [
        "type",
        "then"
      ],
      "type": "object"
    },
    "Int": {
      "maximum": 1000000000,
      "minimum": -1000000000,
      "type": "integer"
    },
    "Interval": {
      "additionalProperties": false,
      "properties": {
        "start_var": {
          "$ref": "#/$defs/VarName"
        },
        "duration": {
          "maximum": 1000000000,
          "minimum": 0,
          "type": "integer"
        }
      },
      "required": [
        "start_var",
        "duration"
      ],
      "type": "object"
    },
    "LinearConstraint": {
      "additionalProperties": false,
      "properties": {
        "type": {
          "const": "linear",
          "default": "linear",
          "type": "string"
        },
        "terms": {
          "$ref": "#/$defs/Terms"
        },
        "op": {
          "$ref": "#/$defs/LinearOp"
        },
        "rhs": {
          "maximum": 1000000000000000000,
          "minimum": -1000000000000000000,
          "type": "integer"
        }
      },
      "required": [
        "terms",
        "op",
        "rhs"
      ],
      "type": "object"
    },
    "LinearOp": {
      "enum": [
        "<=",
        "==",
        ">=",
        "<",
        ">",
        "!="
      ],
      "type": "string"
    },
    "MinMax": {
      "additionalProperties": false,
      "properties": {
        "type": {
          "const": "min_max",
          "type": "string"
        },
        "op": {
          "enum": [
            "min",
            "max"
          ],
          "type": "string"
        },
        "target_var": {
          "$ref": "#/$defs/VarName"
        },
        "vars": {
          "items": {
            "$ref": "#/$defs/VarName"
          },
          "maxItems": 500,
          "minItems": 1,
          "type": "array"
        }
      },
      "required": [
        "type",
        "op",
        "target_var",
        "vars"
      ],
      "type": "object"
    },
    "NoOverlap": {
      "additionalProperties": false,
      "properties": {
        "type": {
          "const": "no_overlap",
          "type": "string"
        },
        "intervals": {
          "items": {
            "$ref": "#/$defs/Interval"
          },
          "maxItems": 500,
          "minItems": 1,
          "type": "array"
        }
      },
      "required": [
        "type",
        "intervals"
      ],
      "type": "object"
    },
    "Objective": {
      "additionalProperties": false,
      "properties": {
        "sense": {
          "enum": [
            "minimize",
            "maximize"
          ],
          "type": "string"
        },
        "terms": {
          "$ref": "#/$defs/Terms"
        }
      },
      "required": [
        "sense",
        "terms"
      ],
      "type": "object"
    },
    "Term": {
      "additionalProperties": false,
      "properties": {
        "var": {
          "$ref": "#/$defs/VarName"
        },
        "coeff": {
          "$ref": "#/$defs/Int"
        }
      },
      "required": [
        "var",
        "coeff"
      ],
      "type": "object"
    },
    "Terms": {
      "items": {
        "$ref": "#/$defs/Term"
      },
      "maxItems": 1000,
      "minItems": 1,
      "type": "array"
    },
    "VarName": {
      "maxLength": 64,
      "minLength": 1,
      "pattern": "^[A-Za-z_][A-Za-z0-9_.\\-\\[\\]]*$",
      "type": "string"
    },
    "Variable": {
      "additionalProperties": false,
      "properties": {
        "name": {
          "$ref": "#/$defs/VarName"
        },
        "min": {
          "$ref": "#/$defs/Int"
        },
        "max": {
          "$ref": "#/$defs/Int"
        }
      },
      "required": [
        "name",
        "min",
        "max"
      ],
      "type": "object"
    }
  }
}

Ausgabe-Schema

{
  "type": "object",
  "anyOf": [
    {
      "$ref": "#/$defs/CpsatResponse"
    },
    {
      "required": [
        "error"
      ],
      "properties": {
        "error": {
          "type": "object"
        }
      }
    }
  ],
  "$defs": {
    "CpsatResponse": {
      "additionalProperties": false,
      "properties": {
        "verdict": {
          "enum": [
            "optimal",
            "feasible",
            "infeasible",
            "unknown",
            "timeout"
          ],
          "type": "string"
        },
        "solution": {
          "anyOf": [
            {
              "additionalProperties": {
                "type": "integer"
              },
              "type": "object"
            },
            {
              "type": "null"
            }
          ]
        },
        "objective_value": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ]
        },
        "best_bound": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ]
        },
        "unsat_core": {
          "anyOf": [
            {
              "items": {
                "minimum": 0,
                "type": "integer"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ]
        },
        "verified": {
          "type": "boolean"
        },
        "stats": {
          "$ref": "#/$defs/Stats"
        }
      },
      "required": [
        "verdict",
        "verified",
        "stats"
      ],
      "type": "object"
    },
    "Stats": {
      "additionalProperties": false,
      "properties": {
        "elapsed_ms": {
          "minimum": 0,
          "type": "integer"
        },
        "timed_out": {
          "type": "boolean"
        }
      },
      "required": [
        "elapsed_ms",
        "timed_out"
      ],
      "type": "object"
    }
  }
}
🟢solve_lp_mip(variables, constraints, objective, timeout_ms)

Continuous or mixed-integer linear optimization (allocations, blends, flows); exact feasibility checks and dual bounds. Docs: oracle://docs/constraint-oracle. Minimal example: {"variables":[{"name":"x","type":"continuous","min":0,"max":10}],"constraints":[{"terms":[{"var":"x","coeff":2}],"op":"<=","rhs":7}],"objective":{"sense":"maximize","terms":[{"var":"x","coeff":1}]}}

Eingabe-Schema

{
  "type": "object",
  "properties": {
    "variables": {
      "items": {
        "$ref": "#/$defs/LpVariable"
      },
      "maxItems": 1000,
      "minItems": 1,
      "type": "array"
    },
    "constraints": {
      "items": {
        "$ref": "#/$defs/LpConstraint"
      },
      "maxItems": 2000,
      "minItems": 1,
      "type": "array"
    },
    "objective": {
      "anyOf": [
        {
          "$ref": "#/$defs/LpObjective"
        },
        {
          "type": "null"
        }
      ]
    },
    "timeout_ms": {
      "anyOf": [
        {
          "maximum": 5000,
          "minimum": 100,
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "default": 3000
    }
  },
  "required": [
    "variables",
    "constraints"
  ],
  "additionalProperties": false,
  "$defs": {
    "LpConstraint": {
      "additionalProperties": false,
      "properties": {
        "terms": {
          "items": {
            "$ref": "#/$defs/LpTerm"
          },
          "maxItems": 1000,
          "minItems": 1,
          "type": "array"
        },
        "op": {
          "enum": [
            "<=",
            "==",
            ">="
          ],
          "type": "string"
        },
        "rhs": {
          "maximum": 1000000000000,
          "minimum": -1000000000000,
          "type": "number"
        }
      },
      "required": [
        "terms",
        "op",
        "rhs"
      ],
      "type": "object"
    },
    "LpObjective": {
      "additionalProperties": false,
      "properties": {
        "sense": {
          "enum": [
            "minimize",
            "maximize"
          ],
          "type": "string"
        },
        "terms": {
          "items": {
            "$ref": "#/$defs/LpTerm"
          },
          "maxItems": 1000,
          "minItems": 1,
          "type": "array"
        }
      },
      "required": [
        "sense",
        "terms"
      ],
      "type": "object"
    },
    "LpTerm": {
      "additionalProperties": false,
      "properties": {
        "var": {
          "$ref": "#/$defs/VarName"
        },
        "coeff": {
          "maximum": 1000000,
          "minimum": -1000000,
          "type": "number"
        }
      },
      "required": [
        "var",
        "coeff"
      ],
      "type": "object"
    },
    "LpVariable": {
      "additionalProperties": false,
      "properties": {
        "name": {
          "$ref": "#/$defs/VarName"
        },
        "type": {
          "enum": [
            "continuous",
            "integer"
          ],
          "type": "string"
        },
        "min": {
          "maximum": 1000000000,
          "minimum": -1000000000,
          "type": "number"
        },
        "max": {
          "maximum": 1000000000,
          "minimum": -1000000000,
          "type": "number"
        }
      },
      "required": [
        "name",
        "type",
        "min",
        "max"
      ],
      "type": "object"
    },
    "VarName": {
      "maxLength": 64,
      "minLength": 1,
      "pattern": "^[A-Za-z_][A-Za-z0-9_.\\-\\[\\]]*$",
      "type": "string"
    }
  }
}

Ausgabe-Schema

{
  "type": "object",
  "anyOf": [
    {
      "$ref": "#/$defs/LpResponse"
    },
    {
      "required": [
        "error"
      ],
      "properties": {
        "error": {
          "type": "object"
        }
      }
    }
  ],
  "$defs": {
    "LpResponse": {
      "additionalProperties": false,
      "properties": {
        "verdict": {
          "enum": [
            "optimal",
            "feasible",
            "infeasible",
            "unknown",
            "timeout"
          ],
          "type": "string"
        },
        "solution": {
          "anyOf": [
            {
              "additionalProperties": {
                "type": "number"
              },
              "type": "object"
            },
            {
              "type": "null"
            }
          ]
        },
        "objective_value": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "best_bound": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "bound_verified": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ]
        },
        "max_violation": {
          "anyOf": [
            {
              "minimum": 0,
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "verified": {
          "type": "boolean"
        },
        "stats": {
          "$ref": "#/$defs/Stats"
        }
      },
      "required": [
        "verdict",
        "verified",
        "stats"
      ],
      "type": "object"
    },
    "Stats": {
      "additionalProperties": false,
      "properties": {
        "elapsed_ms": {
          "minimum": 0,
          "type": "integer"
        },
        "timed_out": {
          "type": "boolean"
        }
      },
      "required": [
        "elapsed_ms",
        "timed_out"
      ],
      "type": "object"
    }
  }
}
🟢analyze_rules(variables, rules, default_action, compare_rules, compare_default_action, ...)

Check ordered rules for dead rules, overlaps, gaps and differences. Replay every witness. Docs: oracle://docs/verification-oracles. Minimal example: {"variables":[{"name":"role","type":"enum","values":["admin","guest"]}],"rules":[{"id":"r1","when":{"op":"eq","var":"role","value":"admin"},"action":"allow"}]}

Eingabe-Schema

{
  "type": "object",
  "properties": {
    "variables": {
      "items": {
        "oneOf": [
          {
            "$ref": "#/$defs/RuleBoolVariable"
          },
          {
            "$ref": "#/$defs/RuleIntVariable"
          },
          {
            "$ref": "#/$defs/RuleEnumVariable"
          }
        ]
      },
      "maxItems": 64,
      "minItems": 1,
      "type": "array"
    },
    "rules": {
      "items": {
        "$ref": "#/$defs/Rule"
      },
      "maxItems": 128,
      "minItems": 1,
      "type": "array"
    },
    "default_action": {
      "anyOf": [
        {
          "$ref": "#/$defs/Label"
        },
        {
          "type": "null"
        }
      ]
    },
    "compare_rules": {
      "anyOf": [
        {
          "items": {
            "$ref": "#/$defs/Rule"
          },
          "maxItems": 128,
          "minItems": 1,
          "type": "array"
        },
        {
          "type": "null"
        }
      ]
    },
    "compare_default_action": {
      "anyOf": [
        {
          "$ref": "#/$defs/Label"
        },
        {
          "type": "null"
        }
      ]
    },
    "max_witnesses": {
      "anyOf": [
        {
          "maximum": 20,
          "minimum": 1,
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "default": 10
    },
    "timeout_ms": {
      "anyOf": [
        {
          "maximum": 5000,
          "minimum": 100,
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "default": 3000
    }
  },
  "required": [
    "variables",
    "rules"
  ],
  "additionalProperties": false,
  "$defs": {
    "Int": {
      "maximum": 1000000000,
      "minimum": -1000000000,
      "type": "integer"
    },
    "Label": {
      "maxLength": 64,
      "minLength": 1,
      "type": "string"
    },
    "Name": {
      "maxLength": 48,
      "minLength": 1,
      "pattern": "^[a-zA-Z_][a-zA-Z0-9_]{0,47}$",
      "type": "string"
    },
    "Rule": {
      "additionalProperties": false,
      "properties": {
        "id": {
          "$ref": "#/$defs/Label"
        },
        "when": {
          "$ref": "#/$defs/RuleExpr"
        },
        "action": {
          "$ref": "#/$defs/Label"
        }
      },
      "required": [
        "id",
        "when",
        "action"
      ],
      "type": "object"
    },
    "RuleBoolVariable": {
      "additionalProperties": false,
      "properties": {
        "name": {
          "$ref": "#/$defs/Name"
        },
        "type": {
          "const": "bool",
          "type": "string"
        }
      },
      "required": [
        "name",
        "type"
      ],
      "type": "object"
    },
    "RuleBoolean": {
      "additionalProperties": false,
      "properties": {
        "op": {
          "enum": [
            "and",
            "or"
          ],
          "type": "string"
        },
        "args": {
          "items": {
            "$ref": "#/$defs/RuleExpr"
          },
          "maxItems": 255,
          "minItems": 1,
          "type": "array"
        }
      },
      "required": [
        "op",
        "args"
      ],
      "type": "object"
    },
    "RuleComparison": {
      "additionalProperties": false,
      "properties": {
        "op": {
          "enum": [
            "eq",
            "ne",
            "lt",
            "le",
            "gt",
            "ge"
          ],
          "type": "string"
        },
        "var": {
          "$ref": "#/$defs/Name"
        },
        "value": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "$ref": "#/$defs/Int"
            },
            {
              "$ref": "#/$defs/Name"
            },
            {
              "$ref": "#/$defs/VarRef"
            }
          ]
        }
      },
      "required": [
        "op",
        "var",
        "value"
      ],
      "type": "object"
    },
    "RuleConstant": {
      "additionalProperties": false,
      "properties": {
        "op": {
          "enum": [
            "true",
            "false"
          ],
          "type": "string"
        }
      },
      "required": [
        "op"
      ],
      "type": "object"
    },
    "RuleEnumVariable": {
      "additionalProperties": false,
      "properties": {
        "name": {
          "$ref": "#/$defs/Name"
        },
        "type": {
          "const": "enum",
          "type": "string"
        },
        "values": {
          "items": {
            "$ref": "#/$defs/Name"
          },
          "maxItems": 64,
          "minItems": 1,
          "type": "array"
        }
      },
      "required": [
        "name",
        "type",
        "values"
      ],
      "type": "object"
    },
    "RuleExpr": {
      "oneOf": [
        {
          "$ref": "#/$defs/RuleConstant"
        },
        {
          "$ref": "#/$defs/RuleBoolean"
        },
        {
          "$ref": "#/$defs/RuleNot"
        },
        {
          "$ref": "#/$defs/RuleComparison"
        },
        {
          "$ref": "#/$defs/RuleMembership"
        }
      ]
    },
    "RuleIntVariable": {
      "additionalProperties": false,
      "properties": {
        "name": {
          "$ref": "#/$defs/Name"
        },
        "type": {
          "const": "int",
          "type": "string"
        },
        "min": {
          "$ref": "#/$defs/Int"
        },
        "max": {
          "$ref": "#/$defs/Int"
        }
      },
      "required": [
        "name",
        "type",
        "min",
        "max"
      ],
      "type": "object"
    },
    "RuleMembership": {
      "additionalProperties": false,
      "properties": {
        "op": {
          "const": "in",
          "type": "string"
        },
        "var": {
          "$ref": "#/$defs/Name"
        },
        "values": {
          "items": {
            "anyOf": [
              {
                "$ref": "#/$defs/Int"
              },
              {
                "$ref": "#/$defs/Name"
              }
            ]
          },
          "maxItems": 256,
          "minItems": 1,
          "type": "array"
        }
      },
      "required": [
        "op",
        "var",
        "values"
      ],
      "type": "object"
    },
    "RuleNot": {
      "additionalProperties": false,
      "properties": {
        "op": {
          "const": "not",
          "type": "string"
        },
        "arg": {
          "$ref": "#/$defs/RuleExpr"
        }
      },
      "required": [
        "op",
        "arg"
      ],
      "type": "object"
    },
    "VarRef": {
      "additionalProperties": false,
      "properties": {
        "var": {
          "$ref": "#/$defs/Name"
        }
      },
      "required": [
        "var"
      ],
      "type": "object"
    }
  }
}

Ausgabe-Schema

{
  "type": "object",
  "anyOf": [
    {
      "$ref": "#/$defs/RulesResponse"
    },
    {
      "required": [
        "error"
      ],
      "properties": {
        "error": {
          "type": "object"
        }
      }
    }
  ],
  "$defs": {
    "Label": {
      "maxLength": 64,
      "minLength": 1,
      "type": "string"
    },
    "RuleDiff": {
      "additionalProperties": false,
      "properties": {
        "equivalent": {
          "type": "boolean"
        },
        "witnesses": {
          "items": {
            "$ref": "#/$defs/RuleDiffWitness"
          },
          "maxItems": 20,
          "type": "array"
        }
      },
      "required": [
        "equivalent",
        "witnesses"
      ],
      "type": "object"
    },
    "RuleDiffWitness": {
      "additionalProperties": false,
      "properties": {
        "input": {
          "$ref": "#/$defs/Witness"
        },
        "v1_action": {
          "anyOf": [
            {
              "$ref": "#/$defs/Label"
            },
            {
              "type": "null"
            }
          ]
        },
        "v2_action": {
          "anyOf": [
            {
              "$ref": "#/$defs/Label"
            },
            {
              "type": "null"
            }
          ]
        },
        "v1_rule": {
          "anyOf": [
            {
              "$ref": "#/$defs/Label"
            },
            {
              "type": "null"
            }
          ]
        },
        "v2_rule": {
          "anyOf": [
            {
              "$ref": "#/$defs/Label"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "input",
        "v1_action",
        "v2_action",
        "v1_rule",
        "v2_rule"
      ],
      "type": "object"
    },
    "RuleGap": {
      "additionalProperties": false,
      "properties": {
        "has_gap": {
          "type": "boolean"
        },
        "witness": {
          "anyOf": [
            {
              "$ref": "#/$defs/Witness"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "has_gap"
      ],
      "type": "object"
    },
    "RuleOverlap": {
      "additionalProperties": false,
      "properties": {
        "rule_a": {
          "$ref": "#/$defs/Label"
        },
        "rule_b": {
          "$ref": "#/$defs/Label"
        },
        "conflict": {
          "type": "boolean"
        },
        "witness": {
          "$ref": "#/$defs/Witness"
        }
      },
      "required": [
        "rule_a",
        "rule_b",
        "conflict",
        "witness"
      ],
      "type": "object"
    },
    "RulesResponse": {
      "additionalProperties": false,
      "properties": {
        "verdict": {
          "enum": [
            "complete",
            "timeout",
            "unknown"
          ],
          "type": "string"
        },
        "unreachable_rules": {
          "items": {
            "$ref": "#/$defs/UnreachableRule"
          },
          "maxItems": 128,
          "type": "array"
        },
        "overlaps": {
          "items": {
            "$ref": "#/$defs/RuleOverlap"
          },
          "maxItems": 20,
          "type": "array"
        },
        "uncovered_gap": {
          "anyOf": [
            {
              "$ref": "#/$defs/RuleGap"
            },
            {
              "type": "null"
            }
          ]
        },
        "diff": {
          "anyOf": [
            {
              "$ref": "#/$defs/RuleDiff"
            },
            {
              "type": "null"
            }
          ]
        },
        "verified": {
          "type": "boolean"
        },
        "stats": {
          "$ref": "#/$defs/Stats"
        }
      },
      "required": [
        "verdict",
        "verified",
        "stats"
      ],
      "type": "object"
    },
    "Stats": {
      "additionalProperties": false,
      "properties": {
        "elapsed_ms": {
          "minimum": 0,
          "type": "integer"
        },
        "timed_out": {
          "type": "boolean"
        }
      },
      "required": [
        "elapsed_ms",
        "timed_out"
      ],
      "type": "object"
    },
    "UnreachableRule": {
      "additionalProperties": false,
      "properties": {
        "id": {
          "$ref": "#/$defs/Label"
        },
        "reason": {
          "enum": [
            "unsatisfiable",
            "shadowed"
          ],
          "type": "string"
        },
        "shadowed_by": {
          "items": {
            "$ref": "#/$defs/Label"
          },
          "type": "array"
        }
      },
      "required": [
        "id",
        "reason"
      ],
      "type": "object"
    },
    "Witness": {
      "additionalProperties": {
        "anyOf": [
          {
            "type": "boolean"
          },
          {
            "type": "integer"
          },
          {
            "type": "string"
          }
        ]
      },
      "type": "object"
    }
  }
}
🟢verify_state_machine(variables, initial, initial_states, transitions, invariants, ...)

Check bounded state machines for invariant, deadlock and livelock bugs; replay counterexamples. Docs: oracle://docs/verification-oracles. Minimal example: {"variables":[{"name":"n","type":"int","min":0,"max":3}],"initial":{"n":0},"transitions":[{"name":"inc","guard":{"op":"lt","var":"n","value":3},"updates":{"n":{"op":"add","left":{"op":"var","var":"n"},"right":{"op":"const","value":1}}}}],"invariants":[{"name":"small","expr":{"op":"le","var":"n","value":2}}]}

Eingabe-Schema

{
  "type": "object",
  "properties": {
    "variables": {
      "items": {
        "oneOf": [
          {
            "$ref": "#/$defs/RuleBoolVariable"
          },
          {
            "$ref": "#/$defs/FsmIntVariable"
          },
          {
            "$ref": "#/$defs/FsmEnumVariable"
          }
        ]
      },
      "maxItems": 16,
      "minItems": 1,
      "type": "array"
    },
    "initial": {
      "anyOf": [
        {
          "$ref": "#/$defs/FsmState"
        },
        {
          "type": "null"
        }
      ]
    },
    "initial_states": {
      "anyOf": [
        {
          "items": {
            "$ref": "#/$defs/FsmState"
          },
          "maxItems": 16,
          "minItems": 1,
          "type": "array"
        },
        {
          "type": "null"
        }
      ]
    },
    "transitions": {
      "items": {
        "$ref": "#/$defs/FsmTransition"
      },
      "maxItems": 64,
      "minItems": 1,
      "type": "array"
    },
    "invariants": {
      "anyOf": [
        {
          "items": {
            "$ref": "#/$defs/FsmPredicate"
          },
          "maxItems": 32,
          "type": "array"
        },
        {
          "type": "null"
        }
      ]
    },
    "check_deadlocks": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "default": true
    },
    "check_livelocks": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "default": false
    },
    "terminal_condition": {
      "anyOf": [
        {
          "$ref": "#/$defs/StateExpr"
        },
        {
          "type": "null"
        }
      ]
    },
    "reachability": {
      "anyOf": [
        {
          "items": {
            "$ref": "#/$defs/FsmPredicate"
          },
          "maxItems": 16,
          "type": "array"
        },
        {
          "type": "null"
        }
      ]
    },
    "max_states": {
      "anyOf": [
        {
          "maximum": 20000,
          "minimum": 1,
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "default": 5000
    },
    "max_depth": {
      "anyOf": [
        {
          "maximum": 200,
          "minimum": 1,
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "default": 50
    },
    "timeout_ms": {
      "anyOf": [
        {
          "maximum": 5000,
          "minimum": 100,
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "default": 3000
    }
  },
  "required": [
    "variables",
    "transitions"
  ],
  "additionalProperties": false,
  "anyOf": [
    {
      "required": [
        "initial"
      ]
    },
    {
      "required": [
        "initial_states"
      ]
    }
  ],
  "$defs": {
    "FsmEnumVariable": {
      "additionalProperties": false,
      "properties": {
        "name": {
          "$ref": "#/$defs/Name"
        },
        "type": {
          "const": "enum",
          "type": "string"
        },
        "values": {
          "items": {
            "$ref": "#/$defs/Name"
          },
          "maxItems": 32,
          "minItems": 1,
          "type": "array"
        }
      },
      "required": [
        "name",
        "type",
        "values"
      ],
      "type": "object"
    },
    "FsmIntVariable": {
      "additionalProperties": false,
      "properties": {
        "name": {
          "$ref": "#/$defs/Name"
        },
        "type": {
          "const": "int",
          "type": "string"
        },
        "min": {
          "$ref": "#/$defs/StateInt"
        },
        "max": {
          "$ref": "#/$defs/StateInt"
        }
      },
      "required": [
        "name",
        "type",
        "min",
        "max"
      ],
      "type": "object"
    },
    "FsmPredicate": {
      "additionalProperties": false,
      "properties": {
        "name": {
          "$ref": "#/$defs/Name"
        },
        "expr": {
          "$ref": "#/$defs/StateExpr"
        }
      },
      "required": [
        "name",
        "expr"
      ],
      "type": "object"
    },
    "FsmState": {
      "maxProperties": 16,
      "patternProperties": {
        "^[a-zA-Z_][a-zA-Z0-9_]{0,47}$": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "integer"
            },
            {
              "$ref": "#/$defs/Name"
            }
          ]
        }
      },
      "propertyNames": {
        "maxLength": 48,
        "minLength": 1
      },
      "type": "object"
    },
    "FsmTransition": {
      "additionalProperties": false,
      "properties": {
        "name": {
          "$ref": "#/$defs/Name"
        },
        "guard": {
          "$ref": "#/$defs/StateExpr"
        },
        "updates": {
          "maxProperties": 16,
          "patternProperties": {
            "^[a-zA-Z_][a-zA-Z0-9_]{0,47}$": {
              "$ref": "#/$defs/UpdateExpr"
            }
          },
          "propertyNames": {
            "maxLength": 48,
            "minLength": 1
          },
          "type": "object"
        }
      },
      "required": [
        "name",
        "guard",
        "updates"
      ],
      "type": "object"
    },
    "Int": {
      "maximum": 1000000000,
      "minimum": -1000000000,
      "type": "integer"
    },
    "Name": {
      "maxLength": 48,
      "minLength": 1,
      "pattern": "^[a-zA-Z_][a-zA-Z0-9_]{0,47}$",
      "type": "string"
    },
    "RuleBoolVariable": {
      "additionalProperties": false,
      "properties": {
        "name": {
          "$ref": "#/$defs/Name"
        },
        "type": {
          "const": "bool",
          "type": "string"
        }
      },
      "required": [
        "name",
        "type"
      ],
      "type": "object"
    },
    "RuleConstant": {
      "additionalProperties": false,
      "properties": {
        "op": {
          "enum": [
            "true",
            "false"
          ],
          "type": "string"
        }
      },
      "required": [
        "op"
      ],
      "type": "object"
    },
    "RuleMembership": {
      "additionalProperties": false,
      "properties": {
        "op": {
          "const": "in",
          "type": "string"
        },
        "var": {
          "$ref": "#/$defs/Name"
        },
        "values": {
          "items": {
            "anyOf": [
              {
                "$ref": "#/$defs/Int"
              },
              {
                "$ref": "#/$defs/Name"
              }
            ]
          },
          "maxItems": 256,
          "minItems": 1,
          "type": "array"
        }
      },
      "required": [
        "op",
        "var",
        "values"
      ],
      "type": "object"
    },
    "StateBoolean": {
      "additionalProperties": false,
      "properties": {
        "op": {
          "enum": [
            "and",
            "or"
          ],
          "type": "string"
        },
        "args": {
          "items": {
            "$ref": "#/$defs/StateExpr"
          },
          "maxItems": 255,
          "minItems": 1,
          "type": "array"
        }
      },
      "required": [
        "op",
        "args"
      ],
      "type": "object"
    },
    "StateComparison": {
      "additionalProperties": false,
      "properties": {
        "op": {
          "enum": [
            "eq",
            "ne",
            "lt",
            "le",
            "gt",
            "ge"
          ],
          "type": "string"
        },
        "var": {
          "$ref": "#/$defs/Name"
        },
        "value": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "$ref": "#/$defs/StateInt"
            },
            {
              "$ref": "#/$defs/Name"
            },
            {
              "$ref": "#/$defs/VarRef"
            }
          ]
        }
      },
      "required": [
        "op",
        "var",
        "value"
      ],
      "type": "object"
    },
    "StateExpr": {
      "oneOf": [
        {
          "$ref": "#/$defs/RuleConstant"
        },
        {
          "$ref": "#/$defs/StateBoolean"
        },
        {
          "$ref": "#/$defs/StateNot"
        },
        {
          "$ref": "#/$defs/StateComparison"
        },
        {
          "$ref": "#/$defs/RuleMembership"
        }
      ]
    },
    "StateInt": {
      "maximum": 1000000,
      "minimum": -1000000,
      "type": "integer"
    },
    "StateNot": {
      "additionalProperties": false,
      "properties": {
        "op": {
          "const": "not",
          "type": "string"
        },
        "arg": {
          "$ref": "#/$defs/StateExpr"
        }
      },
      "required": [
        "op",
        "arg"
      ],
      "type": "object"
    },
    "UpdateArithmetic": {
      "additionalProperties": false,
      "properties": {
        "op": {
          "enum": [
            "add",
            "sub"
          ],
          "type": "string"
        },
        "left": {
          "$ref": "#/$defs/UpdateExpr"
        },
        "right": {
          "$ref": "#/$defs/UpdateExpr"
        }
      },
      "required": [
        "op",
        "left",
        "right"
      ],
      "type": "object"
    },
    "UpdateClamp": {
      "additionalProperties": false,
      "properties": {
        "op": {
          "const": "clamp",
          "type": "string"
        },
        "arg": {
          "$ref": "#/$defs/UpdateExpr"
        },
        "min": {
          "$ref": "#/$defs/StateInt"
        },
        "max": {
          "$ref": "#/$defs/StateInt"
        }
      },
      "required": [
        "op",
        "arg",
        "min",
        "max"
      ],
      "type": "object"
    },
    "UpdateConstant": {
      "additionalProperties": false,
      "properties": {
        "op": {
          "const": "const",
          "type": "string"
        },
        "value": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "$ref": "#/$defs/StateInt"
            },
            {
              "$ref": "#/$defs/Name"
            }
          ]
        }
      },
      "required": [
        "op",
        "value"
      ],
      "type": "object"
    },
    "UpdateExpr": {
      "oneOf": [
        {
          "$ref": "#/$defs/UpdateConstant"
        },
        {
          "$ref": "#/$defs/UpdateReference"
        },
        {
          "$ref": "#/$defs/UpdateArithmetic"
        },
        {
          "$ref": "#/$defs/UpdateClamp"
        }
      ]
    },
    "UpdateReference": {
      "additionalProperties": false,
      "properties": {
        "op": {
          "const": "var",
          "type": "string"
        },
        "var": {
          "$ref": "#/$defs/Name"
        }
      },
      "required": [
        "op",
        "var"
      ],
      "type": "object"
    },
    "VarRef": {
      "additionalProperties": false,
      "properties": {
        "var": {
          "$ref": "#/$defs/Name"
        }
      },
      "required": [
        "var"
      ],
      "type": "object"
    }
  }
}

Ausgabe-Schema

{
  "type": "object",
  "anyOf": [
    {
      "$ref": "#/$defs/FsmResponse"
    },
    {
      "required": [
        "error"
      ],
      "properties": {
        "error": {
          "type": "object"
        }
      }
    }
  ],
  "$defs": {
    "FsmDeadlock": {
      "additionalProperties": false,
      "properties": {
        "found": {
          "default": false,
          "type": "boolean"
        },
        "trace": {
          "anyOf": [
            {
              "$ref": "#/$defs/Trace"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "type": "object"
    },
    "FsmDomainViolation": {
      "additionalProperties": false,
      "properties": {
        "variable": {
          "$ref": "#/$defs/Name"
        },
        "trace": {
          "$ref": "#/$defs/Trace"
        }
      },
      "required": [
        "variable",
        "trace"
      ],
      "type": "object"
    },
    "FsmInvariantViolation": {
      "additionalProperties": false,
      "properties": {
        "invariant": {
          "$ref": "#/$defs/Name"
        },
        "trace": {
          "$ref": "#/$defs/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": "#/$defs/Trace"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "type": "object"
    },
    "FsmReachability": {
      "additionalProperties": false,
      "properties": {
        "goal": {
          "$ref": "#/$defs/Name"
        },
        "reachable": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ]
        },
        "trace": {
          "anyOf": [
            {
              "$ref": "#/$defs/Trace"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "goal",
        "reachable"
      ],
      "type": "object"
    },
    "FsmResponse": {
      "additionalProperties": false,
      "properties": {
        "status": {
          "enum": [
            "verified_safe",
            "counterexample_found",
            "state_limit_reached",
            "timeout"
          ],
          "type": "string"
        },
        "exhaustive": {
          "default": false,
          "type": "boolean"
        },
        "states_explored": {
          "default": 0,
          "maximum": 20000,
          "minimum": 0,
          "type": "integer"
        },
        "transitions_fired": {
          "default": 0,
          "maximum": 1280000,
          "minimum": 0,
          "type": "integer"
        },
        "invariant_violations": {
          "items": {
            "$ref": "#/$defs/FsmInvariantViolation"
          },
          "maxItems": 32,
          "type": "array"
        },
        "domain_violations": {
          "items": {
            "$ref": "#/$defs/FsmDomainViolation"
          },
          "maxItems": 1,
          "type": "array"
        },
        "deadlock": {
          "$ref": "#/$defs/FsmDeadlock"
        },
        "livelock": {
          "$ref": "#/$defs/FsmLivelock"
        },
        "reachability": {
          "items": {
            "$ref": "#/$defs/FsmReachability"
          },
          "maxItems": 16,
          "type": "array"
        },
        "unreachable_transitions": {
          "items": {
            "$ref": "#/$defs/Name"
          },
          "maxItems": 64,
          "type": "array"
        },
        "verified": {
          "type": "boolean"
        },
        "stats": {
          "$ref": "#/$defs/Stats"
        }
      },
      "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": "#/$defs/Name"
            }
          ]
        }
      },
      "propertyNames": {
        "maxLength": 48,
        "minLength": 1
      },
      "type": "object"
    },
    "FsmStep": {
      "additionalProperties": false,
      "properties": {
        "step": {
          "maximum": 200,
          "minimum": 0,
          "type": "integer"
        },
        "transition": {
          "anyOf": [
            {
              "$ref": "#/$defs/Name"
            },
            {
              "type": "null"
            }
          ]
        },
        "state": {
          "$ref": "#/$defs/FsmState"
        }
      },
      "required": [
        "step",
        "transition",
        "state"
      ],
      "type": "object"
    },
    "Name": {
      "maxLength": 48,
      "minLength": 1,
      "pattern": "^[a-zA-Z_][a-zA-Z0-9_]{0,47}$",
      "type": "string"
    },
    "Stats": {
      "additionalProperties": false,
      "properties": {
        "elapsed_ms": {
          "minimum": 0,
          "type": "integer"
        },
        "timed_out": {
          "type": "boolean"
        }
      },
      "required": [
        "elapsed_ms",
        "timed_out"
      ],
      "type": "object"
    },
    "Trace": {
      "items": {
        "$ref": "#/$defs/FsmStep"
      },
      "maxItems": 201,
      "minItems": 1,
      "type": "array"
    }
  }
}
🟡submit_feedback(category, tool, message, no_sensitive_data)

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.

Eingabe-Schema

{
  "type": "object",
  "properties": {
    "category": {
      "enum": [
        "bug_report",
        "feature_request",
        "schema_friction",
        "positive"
      ],
      "type": "string"
    },
    "tool": {
      "enum": [
        "analyze_schedule_windows",
        "resolve_constraints",
        "solve_smt",
        "solve_cpsat",
        "solve_lp_mip",
        "analyze_rules",
        "verify_state_machine",
        "analyze_regex",
        "check_schema_compat"
      ],
      "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"
    }
  },
  "required": [
    "category",
    "message",
    "no_sensitive_data"
  ],
  "additionalProperties": false
}

Ausgabe-Schema

{
  "type": "object",
  "anyOf": [
    {
      "$ref": "#/$defs/FeedbackResponse"
    },
    {
      "required": [
        "error"
      ],
      "properties": {
        "error": {
          "type": "object"
        }
      }
    }
  ],
  "$defs": {
    "FeedbackResponse": {
      "additionalProperties": false,
      "properties": {
        "status": {
          "const": "received",
          "type": "string"
        }
      },
      "required": [
        "status"
      ],
      "type": "object"
    }
  }
}

Community

Diesen Server bewerten

Nachweis

Aktuelle Beobachtungen

verifiziertVersion nicht aufgezeichnet10 Tools