Constraint Oracle
Endpoints
MCP: https://oracles.burgeonads.com/mcp (Streamable HTTP, stateless JSON). REST: POST JSON. No API key or account required. Zero-logging execution.
MCP Resources
oracle://docs/schema-compat, oracle://docs/overview, oracle://docs/constraint-oracle, oracle://docs/verification-oracles, oracle://docs/full, oracle://examples, oracle://examples/{slug}. Read-only; no compute slot.
MCP Prompts
check_schema_compat(), diff_regex(), check_state_machine(), verify_rules(), model_schedule(engine), debug_unsat(tool), optimize_linear(), optimize_allocation(pattern, sense). All arguments optional.
Solver tool annotations: readOnlyHint=true, destructiveHint=false, idempotentHint=true, openWorldHint=false. submit_feedback: readOnlyHint=false, destructiveHint=false, idempotentHint=false, openWorldHint=false. outputSchema: verified result or error envelope.
Limits
Request: 65536 bytes. Response: 262144 bytes. timeout_ms: 100..5000, default 3000. Compute slots: 3. Queue wait: 500 ms. Unknown JSON fields rejected. Strict JSON types; no coercion.
Verification
solve_lp_mip: exact rational checks of bounds, integrality, rows and objective; continuous optimality by exact dual certificate. SMT-LIB2: each assertion evaluated against the model. Unsat cores deletion-minimized and re-solved. CP-SAT: variable bounds, constraints and objective independently checked; cumulative load is swept at every interval start, circuit degrees and single-cycle connectivity are traced. SMT optimality is checked by fresh no-better feasibility queries for each lexicographic prefix. CP-SAT optimality and best_bound remain solver-reported; assignment verification does not independently prove CP-SAT optimality. No unverified model, solution or unsat_core is returned. CP-SAT cores are re-solved infeasible with the same engine; minimality has independently checked feasible witnesses for each single deletion, not a separate infeasibility proof certificate.
solve_smt
POST /v1/solve/smt. One check-sat, or solve at end of script. Declarations and assertions must precede check-sat. push/pop resolve scopes. set-logic is validated then removed. Trailing get-model, get-value, get-unsat-core and exit are stripped. set-info metadata and get-info/get-objectives queries are stripped. Harmless set-option flags :produce-models, :produce-unsat-cores and :print-success accept true/false and are ignored; JSON output flags take precedence. :opt.priority lex is accepted. Other options, get-option, echo, reset, reset-assertions and check-sat-assuming are rejected.
Allowed commands: set-logic, declare-sort, define-sort, declare-const, declare-fun, define-fun, define-fun-rec, declare-datatype, declare-datatypes, assert, minimize, maximize, define-const, check-sat, push, pop. smtlib2: 1..32768 UTF-8 bytes. produce_model defaults to true. produce_unsat_core defaults to false; requires named assertions for a verified core.
minimize/maximize: Int or Real objectives in script order, lexicographic priority. All objectives must precede check-sat. optimal returns objective_values in the original senses, as exact integers or rational strings, even with produce_model=false. Unbounded objectives, unattained real infima/suprema and incomplete verification return unknown or timeout without a model or objective_values. Bitvector objectives are unsupported; convert explicitly with bv2int. Parse errors use static diagnostic categories and original line/column positions, never raw solver messages. Verdicts: sat, optimal, unsat, unknown, timeout. Model: nullary constants only; function interpretations omitted. Reals: exact strings "p" or "p/q". Bitvectors: hexadecimal strings. Assertions that cannot be evaluated produce unknown without a model. Unsat re-check timeout produces verified=false without a core. No core requested: unsat may have verified=false. Unknown and timeout carry verified=false.
solve_cpsat
POST /v1/solve/cpsat. variables: 1..500 unique names, integer bounds -1000000000..1000000000, min <= max. constraints: 1..2000. All variable references must exist. Expression magnitude must not exceed 2^62. objective: optional minimize/maximize weighted sum. Optional objective, timeout_ms and produce_unsat_core accept explicit null; null means their default (none, 3000, false).
linear: weighted terms, op <=, ==, >=, <, >, !=, integer rhs. all_different: distinct variable values. no_overlap: intervals conflict iff start_a < start_b + duration_b and start_b < start_a + duration_a; zero durations conflict only strictly inside another interval. implication: if_var compared to if_eq using if_op (default ==) implies then linear constraint; if_op accepts all linear comparisons. Alternatively use if_all or if_any, a nonempty list of up to 100 linear comparisons, for conjunction or disjunction guards. Supply exactly one guard form; then is always linear. Unused guard forms may be null. element: values[index_var] == target_var; index must be in range. min_max: {type: min_max, op: min or max, target_var, vars} equates target_var to min/max of 1..500 variable values. abs: {type: abs, target_var, var} equates target_var to abs(var).
cumulative: 1..200 intervals with start_var, duration and demand, plus capacity; duration, demand and capacity >= 0. At every interval start t, the summed demand of intervals with start <= t < start + duration must be <= capacity.
circuit: 1..500 arcs with tail, head and var. Node indices 0..999; every index 0..N-1 must appear, where N = max index + 1. Arc variables need bounds within 0..1. Duplicate (tail, head) arcs are rejected. Arcs with var = 1 form one cycle through every node except skipped nodes. A node is skipped iff its self-loop arc (tail == head) has var = 1; a skipped node has no other active arc. All nodes skipped is valid.
allowed_assignments: 1..20 vars and 1..500 tuples, each tuple of length len(vars). The values of vars, in order, must equal one tuple. bool_or: at least one literal holds. exactly_one: exactly one literal holds. Literal: {var, eq} holds iff var == eq; 1..100 literals.
Verdicts: optimal, feasible, infeasible, unknown, timeout. No objective: feasible. verified=true requires a checked solution or a verified minimal conflict core. Set produce_unsat_core=true to debug infeasible models. unsat_core contains sorted zero-based indices into constraints; variable domains stay fixed background and the objective is omitted. The subset is freshly re-solved infeasible and every single deletion has a feasible witness checked against the original semantics. Minimal means subset-minimal, not minimum cardinality. All core work shares timeout_ms; incomplete checks return infeasible with verified=false and unsat_core=null, and stats.timed_out=true if the deadline expired. Without a requested core, infeasible remains verified=false. unknown and timeout carry verified=false. objective_value is independently recomputed; best_bound is solver-reported.
solve_lp_mip
POST /v1/solve/lp-mip. MCP: solve_lp_mip. Linear programs over continuous variables, or mixed-integer programs when any variable has type integer. Use it for fractional allocations, budget splits, flows and blends; use solve_cpsat for integer-only models with global constraints. Continuous models use a simplex engine; mixed-integer models use branch-and-bound. One engine thread; results reached at a time limit can vary between runs.
variables: 1..1000 unique names, type continuous or integer, finite bounds min and max within -1000000000..1000000000, min <= max; integer bounds must be integral. Every variable is bounded, so no unbounded verdict exists. constraints: 1..2000 rows {terms, op, rhs}; op is <=, == or >=; rhs within -1000000000000..1000000000000. terms: 1..1000 {var, coeff} per row; coefficient magnitude <= 1000000 and either 0 or >= 0.000001; a repeated variable in one row is summed; at most 20000 terms in total. objective: optional {sense: minimize or maximize, terms}. Optional objective and timeout_ms accept explicit null. Numbers are JSON numbers read as binary64 values; booleans, NaN and Infinity are rejected.
Verification: every returned solution is checked independently in exact rational arithmetic. Integer variables are integral, every value lies within its bounds exactly, and each row holds within tolerance: violation <= 0.000001 * max(1, |rhs|, sum of |coeff * value|). max_violation is the largest absolute row violation. objective_value is recomputed exactly from the returned values; the engine's own objective must agree. A failed check returns unknown without a solution. Solutions come from double-precision engines, so an exactly infeasible model can still have a tolerance-feasible solution.
best_bound is a lower bound on the optimum when minimizing and an upper bound when maximizing. bound_verified=true means an exact weak-duality certificate from row multipliers proves the bound for every exactly feasible point; it is rounded outward. Continuous optimal requires that certificate to close the gap: objective_value and best_bound differ by at most 0.000001 * max(1, |objective_value|). Mixed-integer best_bound is the branch-and-bound bound with bound_verified=false, unless the exact continuous relaxation certificate, rounded up for integral objectives, is at least as tight. Mixed-integer optimal without a verified bound is engine-proven, not independently certified.
infeasible with verified=true: exact row multipliers prove that no point within the bounds satisfies every row exactly, even with integrality relaxed. infeasible with verified=false: integer infeasibility proved by the engine only, or no certificate within timeout_ms. Verdicts: optimal, feasible, infeasible, unknown, timeout. No objective: feasible. feasible with an objective: a verified solution whose gap is not closed, including a mixed-integer incumbent at timeout with stats.timed_out=true. timeout and unknown carry no solution and verified=false. One timeout_ms budget covers solving and certificates.
JSON Schemas
solve_smt request
{
"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"
}solve_smt response
{
"$defs": {
"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"
}
},
"additionalProperties": false,
"properties": {
"model": {
"anyOf": [
{
"$ref": "#/$defs/Witness"
},
{
"type": "null"
}
]
},
"objective_values": {
"anyOf": [
{
"items": {
"anyOf": [
{
"type": "integer"
},
{
"type": "string"
}
]
},
"type": "array"
},
{
"type": "null"
}
]
},
"stats": {
"$ref": "#/$defs/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"
}solve_cpsat request
{
"$defs": {
"Abs": {
"additionalProperties": false,
"properties": {
"target_var": {
"$ref": "#/$defs/VarName"
},
"type": {
"const": "abs",
"type": "string"
},
"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": {
"tuples": {
"items": {
"items": {
"$ref": "#/$defs/Int"
},
"maxItems": 20,
"minItems": 1,
"type": "array"
},
"maxItems": 500,
"minItems": 1,
"type": "array"
},
"type": {
"const": "allowed_assignments",
"type": "string"
},
"vars": {
"items": {
"$ref": "#/$defs/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": "#/$defs/VarName"
}
},
"required": [
"tail",
"head",
"var"
],
"type": "object"
},
"BoolLiteral": {
"additionalProperties": false,
"properties": {
"eq": {
"$ref": "#/$defs/Int"
},
"var": {
"$ref": "#/$defs/VarName"
}
},
"required": [
"var",
"eq"
],
"type": "object"
},
"BoolOr": {
"additionalProperties": false,
"properties": {
"literals": {
"items": {
"$ref": "#/$defs/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": "#/$defs/Arc"
},
"maxItems": 500,
"minItems": 1,
"type": "array"
},
"type": {
"const": "circuit",
"type": "string"
}
},
"required": [
"type",
"arcs"
],
"type": "object"
},
"Cumulative": {
"additionalProperties": false,
"properties": {
"capacity": {
"maximum": 1000000000,
"minimum": 0,
"type": "integer"
},
"intervals": {
"items": {
"$ref": "#/$defs/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": "#/$defs/VarName"
}
},
"required": [
"start_var",
"duration",
"demand"
],
"type": "object"
},
"Element": {
"additionalProperties": false,
"properties": {
"index_var": {
"$ref": "#/$defs/VarName"
},
"target_var": {
"$ref": "#/$defs/VarName"
},
"type": {
"const": "element",
"type": "string"
},
"values": {
"items": {
"$ref": "#/$defs/Int"
},
"maxItems": 1000,
"minItems": 1,
"type": "array"
}
},
"required": [
"type",
"index_var",
"values",
"target_var"
],
"type": "object"
},
"ExactlyOne": {
"additionalProperties": false,
"properties": {
"literals": {
"items": {
"$ref": "#/$defs/BoolLiteral"
},
"maxItems": 100,
"minItems": 1,
"type": "array"
},
"type": {
"const": "exactly_one",
"type": "string"
}
},
"required": [
"type",
"literals"
],
"type": "object"
},
"Implication": {
"additionalProperties": false,
"properties": {
"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"
}
]
},
"if_eq": {
"anyOf": [
{
"$ref": "#/$defs/Int"
},
{
"type": "null"
}
]
},
"if_op": {
"anyOf": [
{
"$ref": "#/$defs/LinearOp"
},
{
"type": "null"
}
],
"default": "=="
},
"if_var": {
"anyOf": [
{
"$ref": "#/$defs/VarName"
},
{
"type": "null"
}
]
},
"then": {
"$ref": "#/$defs/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": "#/$defs/VarName"
}
},
"required": [
"start_var",
"duration"
],
"type": "object"
},
"LinearConstraint": {
"additionalProperties": false,
"properties": {
"op": {
"$ref": "#/$defs/LinearOp"
},
"rhs": {
"maximum": 1000000000000000000,
"minimum": -1000000000000000000,
"type": "integer"
},
"terms": {
"$ref": "#/$defs/Terms"
},
"type": {
"const": "linear",
"default": "linear",
"type": "string"
}
},
"required": [
"terms",
"op",
"rhs"
],
"type": "object"
},
"LinearOp": {
"enum": [
"<=",
"==",
">=",
"<",
">",
"!="
],
"type": "string"
},
"MinMax": {
"additionalProperties": false,
"properties": {
"op": {
"enum": [
"min",
"max"
],
"type": "string"
},
"target_var": {
"$ref": "#/$defs/VarName"
},
"type": {
"const": "min_max",
"type": "string"
},
"vars": {
"items": {
"$ref": "#/$defs/VarName"
},
"maxItems": 500,
"minItems": 1,
"type": "array"
}
},
"required": [
"type",
"op",
"target_var",
"vars"
],
"type": "object"
},
"NoOverlap": {
"additionalProperties": false,
"properties": {
"intervals": {
"items": {
"$ref": "#/$defs/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": "#/$defs/Terms"
}
},
"required": [
"sense",
"terms"
],
"type": "object"
},
"Term": {
"additionalProperties": false,
"properties": {
"coeff": {
"$ref": "#/$defs/Int"
},
"var": {
"$ref": "#/$defs/VarName"
}
},
"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": {
"max": {
"$ref": "#/$defs/Int"
},
"min": {
"$ref": "#/$defs/Int"
},
"name": {
"$ref": "#/$defs/VarName"
}
},
"required": [
"name",
"min",
"max"
],
"type": "object"
}
},
"additionalProperties": false,
"properties": {
"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"
}
]
},
"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": "#/$defs/Variable"
},
"maxItems": 500,
"minItems": 1,
"type": "array"
}
},
"required": [
"variables",
"constraints"
],
"type": "object"
}solve_cpsat response
{
"$defs": {
"Stats": {
"additionalProperties": false,
"properties": {
"elapsed_ms": {
"minimum": 0,
"type": "integer"
},
"timed_out": {
"type": "boolean"
}
},
"required": [
"elapsed_ms",
"timed_out"
],
"type": "object"
}
},
"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": "#/$defs/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"
}solve_lp_mip request
{
"$defs": {
"LpConstraint": {
"additionalProperties": false,
"properties": {
"op": {
"enum": [
"<=",
"==",
">="
],
"type": "string"
},
"rhs": {
"maximum": 1000000000000,
"minimum": -1000000000000,
"type": "number"
},
"terms": {
"items": {
"$ref": "#/$defs/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": "#/$defs/LpTerm"
},
"maxItems": 1000,
"minItems": 1,
"type": "array"
}
},
"required": [
"sense",
"terms"
],
"type": "object"
},
"LpTerm": {
"additionalProperties": false,
"properties": {
"coeff": {
"maximum": 1000000,
"minimum": -1000000,
"type": "number"
},
"var": {
"$ref": "#/$defs/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": "#/$defs/VarName"
},
"type": {
"enum": [
"continuous",
"integer"
],
"type": "string"
}
},
"required": [
"name",
"type",
"min",
"max"
],
"type": "object"
},
"VarName": {
"maxLength": 64,
"minLength": 1,
"pattern": "^[A-Za-z_][A-Za-z0-9_.\\-\\[\\]]*$",
"type": "string"
}
},
"additionalProperties": false,
"properties": {
"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
},
"variables": {
"items": {
"$ref": "#/$defs/LpVariable"
},
"maxItems": 1000,
"minItems": 1,
"type": "array"
}
},
"required": [
"variables",
"constraints"
],
"type": "object"
}solve_lp_mip response
{
"$defs": {
"Stats": {
"additionalProperties": false,
"properties": {
"elapsed_ms": {
"minimum": 0,
"type": "integer"
},
"timed_out": {
"type": "boolean"
}
},
"required": [
"elapsed_ms",
"timed_out"
],
"type": "object"
}
},
"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": "#/$defs/Stats"
},
"verdict": {
"enum": [
"optimal",
"feasible",
"infeasible",
"unknown",
"timeout"
],
"type": "string"
},
"verified": {
"type": "boolean"
}
},
"required": [
"verdict",
"verified",
"stats"
],
"type": "object"
}Errors
Errors contain static code, message, docs_url, example_url, the matching MCP resources docs_resource and example_resource, and optional structural details. Raw input is never echoed.
{
"error": {
"code": "INVALID_INPUT",
"docs_resource": "oracle://docs/constraint-oracle",
"docs_url": "https://oracles.burgeonads.com/docs/constraint-oracle.md",
"example_resource": "oracle://examples/cpsat-bin-packing",
"example_url": "https://oracles.burgeonads.com/examples/cpsat-bin-packing.json",
"message": "Schema validation failed."
}
}INVALID_INPUT: HTTP 400 or 422. Schema validation failed.
PAYLOAD_TOO_LARGE: HTTP 413. Request body exceeds 65536 bytes.
UNSUPPORTED_FEATURE: HTTP 400. Input uses an unsupported feature.
TIMEOUT: HTTP 200 solver timeout; 408 transport timeout. Request timed out.
RESOURCE_LIMIT_EXCEEDED: HTTP 422. Resource limit exceeded.
OVERLOADED: HTTP 503. All compute slots are busy. Retry shortly. Retry-After: 2.
BANDWIDTH_CAP_REACHED: HTTP 503. Monthly bandwidth cap reached. Retry-After: 3600.
RATE_LIMITED: HTTP 429. Feedback rate limit reached. Retry later. Retry-After: 3600. submit_feedback only.
INTERNAL_ERROR: HTTP 500. Internal error. No unverified result was returned.
Feedback
POST /v1/feedback. MCP: submit_feedback. Opt-in bug reports, feature requests, schema friction notes and positive feedback from people or agents. Not read-only and not idempotent: each accepted call stores one entry. Separate from solver execution: solver payloads are never stored, and feedback never enters aggregate metrics beyond a request count.
Do not include personal data, secrets, credentials or proprietary inputs; messages are stored as plain text and read by the operator. Never paste solver inputs. Only category, tool, message and the UTC hour are stored. The newest 200 entries are kept; older entries are deleted.
Limits: message 1..1000 characters, no control or invisible format characters except newline and tab. Global admission: 10 per UTC hour and 50 per UTC day; beyond that RATE_LIMITED with Retry-After: 3600. The message is never echoed in responses or errors.
{
"category": "schema_friction",
"message": "<your note>",
"no_sensitive_data": true,
"tool": "solve_cpsat"
}submit_feedback request
{
"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"
}submit_feedback response
{
"additionalProperties": false,
"properties": {
"status": {
"const": "received",
"type": "string"
}
},
"required": [
"status"
],
"type": "object"
}Worked Examples
- Shift scheduling (SMT-LIB2)
- Over-constrained allocation with unsat core (SMT-LIB2)
- 8-bit addition overflow counterexample (SMT-LIB2)
- Capacitated bin packing (CP-SAT)
- Job shop makespan with no_overlap (CP-SAT)
- Task assignment with all_different, element, implication (CP-SAT)
- Crew-capacity scheduling with cumulative (CP-SAT)
- Single-route visit order with circuit and bool_or (CP-SAT)
- Lexicographic integer optimization
- Min, max and absolute value
- Minimal conflicting constraint set
- Fractional feed blend
- Budget split with fixed channel costs
- Certified infeasible network flow
- Role policy gaps and overlaps
- Decision table semantic difference
- Lock acquisition deadlock
- Order lifecycle safety
- Variable-to-variable rule comparisons
- Retry loop livelock
- Bounded retry always terminates
- Regex language difference
- Regex exponential ambiguity
- Required property change
- String pattern widening
- Overlapping exclusive branches
Static outputs are build-time verified. stats.elapsed_ms is normalized to 0 in static examples. Live elapsed time varies.
smt-scheduling-sat
curl --fail-with-body --silent --show-error https://oracles.burgeonads.com/v1/solve/smt -H 'Content-Type: application/json' --data-raw '{"smtlib2":"(set-logic QF_LIA)\n; shifts: 0 early, 1 late, 2 night\n(declare-const w1 Int)\n(declare-const w2 Int)\n(declare-const w3 Int)\n(declare-const w4 Int)\n(define-fun shift ((s Int)) Bool (and (>= s 0) (<= s 2)))\n(define-fun covered ((k Int)) Bool (or (= w1 k) (= w2 k) (= w3 k) (= w4 k)))\n(assert (and (shift w1) (shift w2) (shift w3) (shift w4)))\n(assert (and (covered 0) (covered 1) (covered 2)))\n(assert (distinct w1 w2))\n(assert (not (= w3 2)))\n(assert (< w4 w1))\n(check-sat)\n(get-model)\n(exit)\n","produce_model":true,"produce_unsat_core":false,"timeout_ms":3000}'smt-unsat-core
curl --fail-with-body --silent --show-error https://oracles.burgeonads.com/v1/solve/smt -H 'Content-Type: application/json' --data-raw '{"smtlib2":"(set-logic QF_LIA)\n(declare-const cpu_a Int)\n(declare-const cpu_b Int)\n(declare-const cpu_c Int)\n(assert (! (>= cpu_a 2) :named min_a))\n(assert (! (>= cpu_b 3) :named min_b))\n(assert (! (>= cpu_c 1) :named min_c))\n(assert (! (<= cpu_a 4) :named max_a))\n(assert (! (<= (+ cpu_a cpu_b cpu_c) 5) :named capacity))\n(check-sat)\n(get-unsat-core)\n","produce_model":true,"produce_unsat_core":true,"timeout_ms":3000}'smt-bitvector-bounds
curl --fail-with-body --silent --show-error https://oracles.burgeonads.com/v1/solve/smt -H 'Content-Type: application/json' --data-raw '{"smtlib2":"(set-logic QF_BV)\n(declare-const x (_ BitVec 8))\n(declare-const y (_ BitVec 8))\n; both operands in [100, 200], unsigned\n(assert (and (bvuge x #x64) (bvule x #xc8)))\n(assert (and (bvuge y #x64) (bvule y #xc8)))\n; the 8-bit sum wraps around\n(assert (bvult (bvadd x y) x))\n(check-sat)\n(get-model)\n","produce_model":true,"produce_unsat_core":false,"timeout_ms":3000}'cpsat-bin-packing
curl --fail-with-body --silent --show-error https://oracles.burgeonads.com/v1/solve/cpsat -H 'Content-Type: application/json' --data-raw '{"variables":[{"name":"x0_0","min":0,"max":1},{"name":"x0_1","min":0,"max":1},{"name":"x0_2","min":0,"max":1},{"name":"x1_0","min":0,"max":1},{"name":"x1_1","min":0,"max":1},{"name":"x1_2","min":0,"max":1},{"name":"x2_0","min":0,"max":1},{"name":"x2_1","min":0,"max":1},{"name":"x2_2","min":0,"max":1},{"name":"x3_0","min":0,"max":1},{"name":"x3_1","min":0,"max":1},{"name":"x3_2","min":0,"max":1},{"name":"x4_0","min":0,"max":1},{"name":"x4_1","min":0,"max":1},{"name":"x4_2","min":0,"max":1},{"name":"x5_0","min":0,"max":1},{"name":"x5_1","min":0,"max":1},{"name":"x5_2","min":0,"max":1},{"name":"used0","min":0,"max":1},{"name":"used1","min":0,"max":1},{"name":"used2","min":0,"max":1}],"constraints":[{"type":"linear","terms":[{"var":"x0_0","coeff":1},{"var":"x0_1","coeff":1},{"var":"x0_2","coeff":1}],"op":"==","rhs":1},{"type":"linear","terms":[{"var":"x1_0","coeff":1},{"var":"x1_1","coeff":1},{"var":"x1_2","coeff":1}],"op":"==","rhs":1},{"type":"linear","terms":[{"var":"x2_0","coeff":1},{"var":"x2_1","coeff":1},{"var":"x2_2","coeff":1}],"op":"==","rhs":1},{"type":"linear","terms":[{"var":"x3_0","coeff":1},{"var":"x3_1","coeff":1},{"var":"x3_2","coeff":1}],"op":"==","rhs":1},{"type":"linear","terms":[{"var":"x4_0","coeff":1},{"var":"x4_1","coeff":1},{"var":"x4_2","coeff":1}],"op":"==","rhs":1},{"type":"linear","terms":[{"var":"x5_0","coeff":1},{"var":"x5_1","coeff":1},{"var":"x5_2","coeff":1}],"op":"==","rhs":1},{"type":"linear","terms":[{"var":"x0_0","coeff":4},{"var":"x1_0","coeff":8},{"var":"x2_0","coeff":1},{"var":"x3_0","coeff":4},{"var":"x4_0","coeff":2},{"var":"x5_0","coeff":1},{"var":"used0","coeff":-10}],"op":"<=","rhs":0},{"type":"linear","terms":[{"var":"x0_1","coeff":4},{"var":"x1_1","coeff":8},{"var":"x2_1","coeff":1},{"var":"x3_1","coeff":4},{"var":"x4_1","coeff":2},{"var":"x5_1","coeff":1},{"var":"used1","coeff":-10}],"op":"<=","rhs":0},{"type":"linear","terms":[{"var":"x0_2","coeff":4},{"var":"x1_2","coeff":8},{"var":"x2_2","coeff":1},{"var":"x3_2","coeff":4},{"var":"x4_2","coeff":2},{"var":"x5_2","coeff":1},{"var":"used2","coeff":-10}],"op":"<=","rhs":0},{"type":"linear","terms":[{"var":"used0","coeff":1},{"var":"used1","coeff":-1}],"op":">=","rhs":0},{"type":"linear","terms":[{"var":"used1","coeff":1},{"var":"used2","coeff":-1}],"op":">=","rhs":0}],"objective":{"sense":"minimize","terms":[{"var":"used0","coeff":1},{"var":"used1","coeff":1},{"var":"used2","coeff":1}]},"timeout_ms":3000}'cpsat-job-shop
curl --fail-with-body --silent --show-error https://oracles.burgeonads.com/v1/solve/cpsat -H 'Content-Type: application/json' --data-raw '{"variables":[{"name":"s0_0","min":0,"max":16},{"name":"s0_1","min":0,"max":16},{"name":"s1_0","min":0,"max":16},{"name":"s1_1","min":0,"max":16},{"name":"s2_0","min":0,"max":16},{"name":"s2_1","min":0,"max":16},{"name":"makespan","min":0,"max":16}],"constraints":[{"type":"linear","terms":[{"var":"s0_1","coeff":1},{"var":"s0_0","coeff":-1}],"op":">=","rhs":3},{"type":"linear","terms":[{"var":"makespan","coeff":1},{"var":"s0_1","coeff":-1}],"op":">=","rhs":2},{"type":"linear","terms":[{"var":"s1_1","coeff":1},{"var":"s1_0","coeff":-1}],"op":">=","rhs":2},{"type":"linear","terms":[{"var":"makespan","coeff":1},{"var":"s1_1","coeff":-1}],"op":">=","rhs":4},{"type":"linear","terms":[{"var":"s2_1","coeff":1},{"var":"s2_0","coeff":-1}],"op":">=","rhs":2},{"type":"linear","terms":[{"var":"makespan","coeff":1},{"var":"s2_1","coeff":-1}],"op":">=","rhs":3},{"type":"no_overlap","intervals":[{"start_var":"s0_0","duration":3},{"start_var":"s1_1","duration":4},{"start_var":"s2_0","duration":2}]},{"type":"no_overlap","intervals":[{"start_var":"s0_1","duration":2},{"start_var":"s1_0","duration":2},{"start_var":"s2_1","duration":3}]}],"objective":{"sense":"minimize","terms":[{"var":"makespan","coeff":1}]},"timeout_ms":3000}'cpsat-assignment-implication
curl --fail-with-body --silent --show-error https://oracles.burgeonads.com/v1/solve/cpsat -H 'Content-Type: application/json' --data-raw '{"variables":[{"name":"worker_t0","min":0,"max":2},{"name":"worker_t1","min":0,"max":2},{"name":"worker_t2","min":0,"max":2},{"name":"cost_t0","min":0,"max":100},{"name":"cost_t1","min":0,"max":100},{"name":"cost_t2","min":0,"max":100}],"constraints":[{"type":"all_different","vars":["worker_t0","worker_t1","worker_t2"]},{"type":"element","index_var":"worker_t0","values":[4,1,8],"target_var":"cost_t0"},{"type":"element","index_var":"worker_t1","values":[4,3,5],"target_var":"cost_t1"},{"type":"element","index_var":"worker_t2","values":[3,2,7],"target_var":"cost_t2"},{"type":"implication","if_var":"worker_t0","if_eq":1,"then":{"type":"linear","terms":[{"var":"worker_t2","coeff":1}],"op":">=","rhs":2}}],"objective":{"sense":"minimize","terms":[{"var":"cost_t0","coeff":1},{"var":"cost_t1","coeff":1},{"var":"cost_t2","coeff":1}]},"timeout_ms":3000}'cpsat-cumulative-resources
curl --fail-with-body --silent --show-error https://oracles.burgeonads.com/v1/solve/cpsat -H 'Content-Type: application/json' --data-raw '{"variables":[{"name":"s_pour","min":0,"max":15},{"name":"s_frame","min":0,"max":15},{"name":"s_wire","min":0,"max":15},{"name":"s_plumb","min":0,"max":15},{"name":"s_roof","min":0,"max":15},{"name":"s_paint","min":0,"max":15},{"name":"makespan","min":0,"max":15}],"constraints":[{"type":"cumulative","intervals":[{"start_var":"s_pour","duration":3,"demand":2},{"start_var":"s_frame","duration":2,"demand":3},{"start_var":"s_wire","duration":4,"demand":1},{"start_var":"s_plumb","duration":2,"demand":3},{"start_var":"s_roof","duration":3,"demand":2},{"start_var":"s_paint","duration":1,"demand":3}],"capacity":4},{"type":"linear","terms":[{"var":"s_frame","coeff":1},{"var":"s_pour","coeff":-1}],"op":">=","rhs":3},{"type":"linear","terms":[{"var":"s_roof","coeff":1},{"var":"s_frame","coeff":-1}],"op":">=","rhs":2},{"type":"linear","terms":[{"var":"s_plumb","coeff":1},{"var":"s_pour","coeff":-1}],"op":">=","rhs":3},{"type":"linear","terms":[{"var":"s_paint","coeff":1},{"var":"s_roof","coeff":-1}],"op":">=","rhs":3},{"type":"linear","terms":[{"var":"makespan","coeff":1},{"var":"s_pour","coeff":-1}],"op":">=","rhs":3},{"type":"linear","terms":[{"var":"makespan","coeff":1},{"var":"s_frame","coeff":-1}],"op":">=","rhs":2},{"type":"linear","terms":[{"var":"makespan","coeff":1},{"var":"s_wire","coeff":-1}],"op":">=","rhs":4},{"type":"linear","terms":[{"var":"makespan","coeff":1},{"var":"s_plumb","coeff":-1}],"op":">=","rhs":2},{"type":"linear","terms":[{"var":"makespan","coeff":1},{"var":"s_roof","coeff":-1}],"op":">=","rhs":3},{"type":"linear","terms":[{"var":"makespan","coeff":1},{"var":"s_paint","coeff":-1}],"op":">=","rhs":1}],"objective":{"sense":"minimize","terms":[{"var":"makespan","coeff":1}]},"timeout_ms":3000}'cpsat-circuit-routing
curl --fail-with-body --silent --show-error https://oracles.burgeonads.com/v1/solve/cpsat -H 'Content-Type: application/json' --data-raw '{"variables":[{"name":"x0_1","min":0,"max":1},{"name":"x0_2","min":0,"max":1},{"name":"x0_3","min":0,"max":1},{"name":"x0_4","min":0,"max":1},{"name":"x1_0","min":0,"max":1},{"name":"x1_2","min":0,"max":1},{"name":"x1_3","min":0,"max":1},{"name":"x1_4","min":0,"max":1},{"name":"x2_0","min":0,"max":1},{"name":"x2_1","min":0,"max":1},{"name":"x2_3","min":0,"max":1},{"name":"x2_4","min":0,"max":1},{"name":"x3_0","min":0,"max":1},{"name":"x3_1","min":0,"max":1},{"name":"x3_2","min":0,"max":1},{"name":"x3_4","min":0,"max":1},{"name":"x4_0","min":0,"max":1},{"name":"x4_1","min":0,"max":1},{"name":"x4_2","min":0,"max":1},{"name":"x4_3","min":0,"max":1}],"constraints":[{"type":"circuit","arcs":[{"tail":0,"head":1,"var":"x0_1"},{"tail":0,"head":2,"var":"x0_2"},{"tail":0,"head":3,"var":"x0_3"},{"tail":0,"head":4,"var":"x0_4"},{"tail":1,"head":0,"var":"x1_0"},{"tail":1,"head":2,"var":"x1_2"},{"tail":1,"head":3,"var":"x1_3"},{"tail":1,"head":4,"var":"x1_4"},{"tail":2,"head":0,"var":"x2_0"},{"tail":2,"head":1,"var":"x2_1"},{"tail":2,"head":3,"var":"x2_3"},{"tail":2,"head":4,"var":"x2_4"},{"tail":3,"head":0,"var":"x3_0"},{"tail":3,"head":1,"var":"x3_1"},{"tail":3,"head":2,"var":"x3_2"},{"tail":3,"head":4,"var":"x3_4"},{"tail":4,"head":0,"var":"x4_0"},{"tail":4,"head":1,"var":"x4_1"},{"tail":4,"head":2,"var":"x4_2"},{"tail":4,"head":3,"var":"x4_3"}]},{"type":"bool_or","literals":[{"var":"x3_2","eq":1},{"var":"x4_2","eq":1}]}],"objective":{"sense":"minimize","terms":[{"var":"x0_1","coeff":4},{"var":"x0_2","coeff":9},{"var":"x0_3","coeff":7},{"var":"x0_4","coeff":3},{"var":"x1_0","coeff":5},{"var":"x1_2","coeff":2},{"var":"x1_3","coeff":8},{"var":"x1_4","coeff":6},{"var":"x2_0","coeff":8},{"var":"x2_1","coeff":3},{"var":"x2_3","coeff":4},{"var":"x2_4","coeff":9},{"var":"x3_0","coeff":6},{"var":"x3_1","coeff":7},{"var":"x3_2","coeff":5},{"var":"x3_4","coeff":2},{"var":"x4_0","coeff":2},{"var":"x4_1","coeff":9},{"var":"x4_2","coeff":6},{"var":"x4_3","coeff":5}]},"timeout_ms":3000}'smt-optimization
curl --fail-with-body --silent --show-error https://oracles.burgeonads.com/v1/solve/smt -H 'Content-Type: application/json' --data-raw '{"smtlib2":"(set-info :source \"allocation\")(set-option :produce-models true)(declare-const x Int)(declare-const y Int)(assert (and (>= x 0) (<= x 10) (>= y 0) (<= y 10) (<= (+ x y) 12)))(maximize x)(minimize y)(check-sat)(get-objectives)"}'cpsat-min-max-abs
curl --fail-with-body --silent --show-error https://oracles.burgeonads.com/v1/solve/cpsat -H 'Content-Type: application/json' --data-raw '{"variables":[{"name":"x","min":-3,"max":-3},{"name":"y","min":2,"max":2},{"name":"a","min":0,"max":4},{"name":"lo","min":-4,"max":4},{"name":"hi","min":-4,"max":4}],"constraints":[{"type":"abs","var":"x","target_var":"a"},{"type":"min_max","op":"min","vars":["x","y"],"target_var":"lo"},{"type":"min_max","op":"max","vars":["x","y"],"target_var":"hi"},{"type":"implication","if_all":[{"type":"linear","terms":[{"var":"x","coeff":1}],"op":"<","rhs":0},{"type":"linear","terms":[{"var":"y","coeff":1}],"op":">","rhs":0}],"then":{"type":"linear","terms":[{"var":"a","coeff":1}],"op":">=","rhs":3}}],"objective":null,"timeout_ms":null}'cpsat-conflict-core
curl --fail-with-body --silent --show-error https://oracles.burgeonads.com/v1/solve/cpsat -H 'Content-Type: application/json' --data-raw '{"variables":[{"name":"x","min":-4,"max":4},{"name":"a","min":0,"max":4}],"constraints":[{"type":"abs","var":"x","target_var":"a"},{"type":"linear","terms":[{"var":"x","coeff":1}],"op":"==","rhs":-3},{"type":"linear","terms":[{"var":"a","coeff":1}],"op":"==","rhs":2},{"type":"linear","terms":[{"var":"x","coeff":1}],"op":"<=","rhs":4}],"produce_unsat_core":true}'lp-blend-optimal
curl --fail-with-body --silent --show-error https://oracles.burgeonads.com/v1/solve/lp-mip -H 'Content-Type: application/json' --data-raw '{"variables":[{"name":"corn_kg","type":"continuous","min":0,"max":1000},{"name":"soy_kg","type":"continuous","min":0,"max":1000}],"constraints":[{"terms":[{"var":"corn_kg","coeff":1},{"var":"soy_kg","coeff":1}],"op":">=","rhs":800},{"terms":[{"var":"corn_kg","coeff":0.21},{"var":"soy_kg","coeff":-0.3}],"op":"<=","rhs":0},{"terms":[{"var":"corn_kg","coeff":0.03},{"var":"soy_kg","coeff":-0.01}],"op":">=","rhs":0}],"objective":{"sense":"minimize","terms":[{"var":"corn_kg","coeff":0.3},{"var":"soy_kg","coeff":0.9}]}}'lp-budget-split-mip
curl --fail-with-body --silent --show-error https://oracles.burgeonads.com/v1/solve/lp-mip -H 'Content-Type: application/json' --data-raw '{"variables":[{"name":"spend_a","type":"continuous","min":0,"max":40000},{"name":"spend_b","type":"continuous","min":0,"max":30000},{"name":"spend_c","type":"continuous","min":0,"max":40000},{"name":"open_a","type":"integer","min":0,"max":1},{"name":"open_b","type":"integer","min":0,"max":1},{"name":"open_c","type":"integer","min":0,"max":1}],"constraints":[{"terms":[{"var":"spend_a","coeff":1},{"var":"spend_b","coeff":1},{"var":"spend_c","coeff":1},{"var":"open_a","coeff":5000},{"var":"open_b","coeff":20000},{"var":"open_c","coeff":2000}],"op":"<=","rhs":60000},{"terms":[{"var":"spend_a","coeff":1},{"var":"open_a","coeff":-40000}],"op":"<=","rhs":0},{"terms":[{"var":"spend_b","coeff":1},{"var":"open_b","coeff":-30000}],"op":"<=","rhs":0},{"terms":[{"var":"spend_c","coeff":1},{"var":"open_c","coeff":-40000}],"op":"<=","rhs":0}],"objective":{"sense":"maximize","terms":[{"var":"spend_a","coeff":1.2},{"var":"spend_b","coeff":1.5},{"var":"spend_c","coeff":1.1}]}}'lp-flow-infeasible
curl --fail-with-body --silent --show-error https://oracles.burgeonads.com/v1/solve/lp-mip -H 'Content-Type: application/json' --data-raw '{"variables":[{"name":"s_a","type":"continuous","min":0,"max":8},{"name":"s_b","type":"continuous","min":0,"max":4},{"name":"a_t","type":"continuous","min":0,"max":10},{"name":"b_t","type":"continuous","min":0,"max":10}],"constraints":[{"terms":[{"var":"s_a","coeff":1},{"var":"a_t","coeff":-1}],"op":"==","rhs":0},{"terms":[{"var":"s_b","coeff":1},{"var":"b_t","coeff":-1}],"op":"==","rhs":0},{"terms":[{"var":"a_t","coeff":1},{"var":"b_t","coeff":1}],"op":">=","rhs":15}]}'