Server definition
- Hash
- sha256:949aec62533b16ad5bdf6ac8894bd87f50ad653bc974a7cc4b0b94b1fdc0f2cd
- What it is
- What a remote MCP server returned when asked what it offers: 5 tools
The blob, as servednamed by its sha256
{
"instructions": "Read-only deterministic solvers with independently verified results. Reference: oracle://docs/full. Verified examples: oracle://examples.",
"tools": [
{
"description": "Decide regular-language equivalence, generate shortest diff witnesses and samples, and prove static backtracking ambiguity. Reference: oracle://docs/verification-oracles.",
"inputSchema": {
"additionalProperties": false,
"properties": {
"check_ambiguity": {
"default": true,
"title": "Check Ambiguity",
"type": "boolean"
},
"compare_pattern": {
"maxLength": 1024,
"minLength": 1,
"title": "Compare Pattern",
"type": "string"
},
"max_samples": {
"default": 5,
"maximum": 20,
"minimum": 0,
"title": "Max Samples",
"type": "integer"
},
"pattern": {
"maxLength": 1024,
"minLength": 1,
"title": "Pattern",
"type": "string"
},
"timeout_ms": {
"default": 3000,
"maximum": 5000,
"minimum": 100,
"title": "Timeout Ms",
"type": "integer"
}
},
"required": [
"pattern"
],
"title": "RegexRequest",
"type": "object"
},
"name": "analyze_regex",
"outputSchema": {
"$defs": {
"ErrorEnvelope": {
"additionalProperties": false,
"properties": {
"error": {
"additionalProperties": false,
"properties": {
"code": {
"enum": [
"INVALID_INPUT",
"PAYLOAD_TOO_LARGE",
"UNSUPPORTED_FEATURE",
"TIMEOUT",
"RESOURCE_LIMIT_EXCEEDED",
"OVERLOADED",
"BANDWIDTH_CAP_REACHED",
"INTERNAL_ERROR"
],
"type": "string"
},
"details": {
"items": {
"additionalProperties": false,
"properties": {
"column": {
"type": "integer"
},
"command": {
"type": "string"
},
"line": {
"type": "integer"
},
"path": {
"type": "string"
},
"reason": {
"type": "string"
}
},
"required": [
"reason"
],
"type": "object"
},
"type": "array"
},
"docs_url": {
"format": "uri",
"type": "string"
},
"example_url": {
"format": "uri",
"type": "string"
},
"message": {
"type": "string"
}
},
"required": [
"code",
"message",
"docs_url",
"example_url"
],
"type": "object"
}
},
"required": [
"error"
],
"type": "object"
},
"RegexAmbiguity": {
"additionalProperties": false,
"properties": {
"ambiguous": {
"title": "Ambiguous",
"type": "boolean"
},
"risk_class": {
"enum": [
"none",
"finite",
"polynomial",
"exponential"
],
"title": "Risk Class",
"type": "string"
},
"witness": {
"anyOf": [
{
"$ref": "#/$defs/RegexWitness"
},
{
"type": "null"
}
],
"default": null
}
},
"required": [
"ambiguous",
"risk_class"
],
"title": "RegexAmbiguity",
"type": "object"
},
"RegexEquivalence": {
"additionalProperties": false,
"properties": {
"equivalent": {
"title": "Equivalent",
"type": "boolean"
},
"only_in_compare": {
"anyOf": [
{
"maxLength": 16384,
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Only In Compare"
},
"only_in_pattern": {
"anyOf": [
{
"maxLength": 16384,
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Only In Pattern"
}
},
"required": [
"equivalent"
],
"title": "RegexEquivalence",
"type": "object"
},
"RegexPath": {
"additionalProperties": false,
"properties": {
"choices": {
"items": {
"maximum": 1000000000000000,
"minimum": 0,
"type": "integer"
},
"maxItems": 16385,
"title": "Choices",
"type": "array"
},
"states": {
"items": {
"maximum": 2048,
"minimum": -1,
"type": "integer"
},
"maxItems": 16386,
"minItems": 1,
"title": "States",
"type": "array"
}
},
"required": [
"states",
"choices"
],
"title": "RegexPath",
"type": "object"
},
"RegexResponse": {
"additionalProperties": false,
"properties": {
"ambiguity": {
"anyOf": [
{
"$ref": "#/$defs/RegexAmbiguity"
},
{
"type": "null"
}
],
"default": null
},
"empty": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"default": null,
"title": "Empty"
},
"equivalence": {
"anyOf": [
{
"$ref": "#/$defs/RegexEquivalence"
},
{
"type": "null"
}
],
"default": null
},
"matching_samples": {
"items": {
"maxLength": 16384,
"type": "string"
},
"maxItems": 20,
"title": "Matching Samples",
"type": "array"
},
"non_matching_samples": {
"items": {
"maxLength": 16384,
"type": "string"
},
"maxItems": 20,
"title": "Non Matching Samples",
"type": "array"
},
"stats": {
"$ref": "#/$defs/Stats"
},
"universal": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"default": null,
"title": "Universal"
},
"verdict": {
"enum": [
"complete",
"timeout"
],
"title": "Verdict",
"type": "string"
},
"verified": {
"title": "Verified",
"type": "boolean"
}
},
"required": [
"verdict",
"verified",
"stats"
],
"title": "RegexResponse",
"type": "object"
},
"RegexWitness": {
"additionalProperties": false,
"properties": {
"accepting_paths": {
"items": {
"maximum": 1000000000000000,
"minimum": 1,
"type": "integer"
},
"maxItems": 4,
"minItems": 1,
"title": "Accepting Paths",
"type": "array"
},
"attack_suffix": {
"anyOf": [
{
"maxLength": 16384,
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Attack Suffix"
},
"example_string": {
"maxLength": 16384,
"title": "Example String",
"type": "string"
},
"paths": {
"items": {
"$ref": "#/$defs/RegexPath"
},
"maxItems": 2,
"minItems": 2,
"title": "Paths",
"type": "array"
},
"prefix": {
"anyOf": [
{
"maxLength": 16384,
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Prefix"
},
"pump": {
"anyOf": [
{
"maxLength": 16384,
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Pump"
},
"pump_paths": {
"items": {
"$ref": "#/$defs/RegexPath"
},
"maxItems": 3,
"title": "Pump Paths",
"type": "array"
},
"suffix": {
"anyOf": [
{
"maxLength": 16384,
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Suffix"
}
},
"required": [
"example_string",
"accepting_paths",
"paths"
],
"title": "RegexWitness",
"type": "object"
},
"Stats": {
"additionalProperties": false,
"properties": {
"elapsed_ms": {
"minimum": 0,
"title": "Elapsed Ms",
"type": "integer"
},
"timed_out": {
"title": "Timed Out",
"type": "boolean"
}
},
"required": [
"elapsed_ms",
"timed_out"
],
"title": "Stats",
"type": "object"
}
},
"anyOf": [
{
"$ref": "#/$defs/RegexResponse"
},
{
"$ref": "#/$defs/ErrorEnvelope"
}
],
"type": "object"
}
},
{
"description": "Analyze ordered JSON rules for unreachable rules, overlaps, gaps and action differences. Independently replays every witness. Reference: oracle://docs/verification-oracles.",
"inputSchema": {
"$defs": {
"Rule": {
"additionalProperties": false,
"properties": {
"action": {
"maxLength": 64,
"minLength": 1,
"title": "Action",
"type": "string"
},
"id": {
"maxLength": 64,
"minLength": 1,
"title": "Id",
"type": "string"
},
"when": {
"discriminator": {
"mapping": {
"and": "#/$defs/RuleBoolean",
"eq": "#/$defs/RuleComparison",
"false": "#/$defs/RuleConstant",
"ge": "#/$defs/RuleComparison",
"gt": "#/$defs/RuleComparison",
"in": "#/$defs/RuleMembership",
"le": "#/$defs/RuleComparison",
"lt": "#/$defs/RuleComparison",
"ne": "#/$defs/RuleComparison",
"not": "#/$defs/RuleNot",
"or": "#/$defs/RuleBoolean",
"true": "#/$defs/RuleConstant"
},
"propertyName": "op"
},
"oneOf": [
{
"$ref": "#/$defs/RuleConstant"
},
{
"$ref": "#/$defs/RuleBoolean"
},
{
"$ref": "#/$defs/RuleNot"
},
{
"$ref": "#/$defs/RuleComparison"
},
{
"$ref": "#/$defs/RuleMembership"
}
],
"title": "When"
}
},
"required": [
"id",
"when",
"action"
],
"title": "Rule",
"type": "object"
},
"RuleBoolVariable": {
"additionalProperties": false,
"properties": {
"name": {
"maxLength": 48,
"minLength": 1,
"pattern": "^[a-zA-Z_][a-zA-Z0-9_]{0,47}$",
"title": "Name",
"type": "string"
},
"type": {
"const": "bool",
"title": "Type",
"type": "string"
}
},
"required": [
"name",
"type"
],
"title": "RuleBoolVariable",
"type": "object"
},
"RuleBoolean": {
"additionalProperties": false,
"properties": {
"args": {
"items": {
"discriminator": {
"mapping": {
"and": "#/$defs/RuleBoolean",
"eq": "#/$defs/RuleComparison",
"false": "#/$defs/RuleConstant",
"ge": "#/$defs/RuleComparison",
"gt": "#/$defs/RuleComparison",
"in": "#/$defs/RuleMembership",
"le": "#/$defs/RuleComparison",
"lt": "#/$defs/RuleComparison",
"ne": "#/$defs/RuleComparison",
"not": "#/$defs/RuleNot",
"or": "#/$defs/RuleBoolean",
"true": "#/$defs/RuleConstant"
},
"propertyName": "op"
},
"oneOf": [
{
"$ref": "#/$defs/RuleConstant"
},
{
"$ref": "#/$defs/RuleBoolean"
},
{
"$ref": "#/$defs/RuleNot"
},
{
"$ref": "#/$defs/RuleComparison"
},
{
"$ref": "#/$defs/RuleMembership"
}
]
},
"maxItems": 255,
"minItems": 1,
"title": "Args",
"type": "array"
},
"op": {
"enum": [
"and",
"or"
],
"title": "Op",
"type": "string"
}
},
"required": [
"op",
"args"
],
"title": "RuleBoolean",
"type": "object"
},
"RuleComparison": {
"additionalProperties": false,
"properties": {
"op": {
"enum": [
"eq",
"ne",
"lt",
"le",
"gt",
"ge"
],
"title": "Op",
"type": "string"
},
"value": {
"anyOf": [
{
"type": "boolean"
},
{
"maximum": 1000000000,
"minimum": -1000000000,
"type": "integer"
},
{
"maxLength": 48,
"minLength": 1,
"pattern": "^[a-zA-Z_][a-zA-Z0-9_]{0,47}$",
"type": "string"
}
],
"title": "Value"
},
"var": {
"maxLength": 48,
"minLength": 1,
"pattern": "^[a-zA-Z_][a-zA-Z0-9_]{0,47}$",
"title": "Var",
"type": "string"
}
},
"required": [
"op",
"var",
"value"
],
"title": "RuleComparison",
"type": "object"
},
"RuleConstant": {
"additionalProperties": false,
"properties": {
"op": {
"enum": [
"true",
"false"
],
"title": "Op",
"type": "string"
}
},
"required": [
"op"
],
"title": "RuleConstant",
"type": "object"
},
"RuleEnumVariable": {
"additionalProperties": false,
"properties": {
"name": {
"maxLength": 48,
"minLength": 1,
"pattern": "^[a-zA-Z_][a-zA-Z0-9_]{0,47}$",
"title": "Name",
"type": "string"
},
"type": {
"const": "enum",
"title": "Type",
"type": "string"
},
"values": {
"items": {
"maxLength": 48,
"minLength": 1,
"pattern": "^[a-zA-Z_][a-zA-Z0-9_]{0,47}$",
"type": "string"
},
"maxItems": 64,
"minItems": 1,
"title": "Values",
"type": "array"
}
},
"required": [
"name",
"type",
"values"
],
"title": "RuleEnumVariable",
"type": "object"
},
"RuleIntVariable": {
"additionalProperties": false,
"properties": {
"max": {
"maximum": 1000000000,
"minimum": -1000000000,
"title": "Max",
"type": "integer"
},
"min": {
"maximum": 1000000000,
"minimum": -1000000000,
"title": "Min",
"type": "integer"
},
"name": {
"maxLength": 48,
"minLength": 1,
"pattern": "^[a-zA-Z_][a-zA-Z0-9_]{0,47}$",
"title": "Name",
"type": "string"
},
"type": {
"const": "int",
"title": "Type",
"type": "string"
}
},
"required": [
"name",
"type",
"min",
"max"
],
"title": "RuleIntVariable",
"type": "object"
},
"RuleMembership": {
"additionalProperties": false,
"properties": {
"op": {
"const": "in",
"title": "Op",
"type": "string"
},
"values": {
"items": {
"anyOf": [
{
"maximum": 1000000000,
"minimum": -1000000000,
"type": "integer"
},
{
"maxLength": 48,
"minLength": 1,
"pattern": "^[a-zA-Z_][a-zA-Z0-9_]{0,47}$",
"type": "string"
}
]
},
"maxItems": 256,
"minItems": 1,
"title": "Values",
"type": "array"
},
"var": {
"maxLength": 48,
"minLength": 1,
"pattern": "^[a-zA-Z_][a-zA-Z0-9_]{0,47}$",
"title": "Var",
"type": "string"
}
},
"required": [
"op",
"var",
"values"
],
"title": "RuleMembership",
"type": "object"
},
"RuleNot": {
"additionalProperties": false,
"properties": {
"arg": {
"discriminator": {
"mapping": {
"and": "#/$defs/RuleBoolean",
"eq": "#/$defs/RuleComparison",
"false": "#/$defs/RuleConstant",
"ge": "#/$defs/RuleComparison",
"gt": "#/$defs/RuleComparison",
"in": "#/$defs/RuleMembership",
"le": "#/$defs/RuleComparison",
"lt": "#/$defs/RuleComparison",
"ne": "#/$defs/RuleComparison",
"not": "#/$defs/RuleNot",
"or": "#/$defs/RuleBoolean",
"true": "#/$defs/RuleConstant"
},
"propertyName": "op"
},
"oneOf": [
{
"$ref": "#/$defs/RuleConstant"
},
{
"$ref": "#/$defs/RuleBoolean"
},
{
"$ref": "#/$defs/RuleNot"
},
{
"$ref": "#/$defs/RuleComparison"
},
{
"$ref": "#/$defs/RuleMembership"
}
],
"title": "Arg"
},
"op": {
"const": "not",
"title": "Op",
"type": "string"
}
},
"required": [
"op",
"arg"
],
"title": "RuleNot",
"type": "object"
}
},
"additionalProperties": false,
"properties": {
"compare_default_action": {
"maxLength": 64,
"minLength": 1,
"title": "Compare Default Action",
"type": "string"
},
"compare_rules": {
"items": {
"$ref": "#/$defs/Rule"
},
"maxItems": 128,
"minItems": 1,
"title": "Compare Rules",
"type": "array"
},
"default_action": {
"maxLength": 64,
"minLength": 1,
"title": "Default Action",
"type": "string"
},
"max_witnesses": {
"default": 10,
"maximum": 20,
"minimum": 1,
"title": "Max Witnesses",
"type": "integer"
},
"rules": {
"items": {
"$ref": "#/$defs/Rule"
},
"maxItems": 128,
"minItems": 1,
"title": "Rules",
"type": "array"
},
"timeout_ms": {
"default": 3000,
"maximum": 5000,
"minimum": 100,
"title": "Timeout Ms",
"type": "integer"
},
"variables": {
"items": {
"discriminator": {
"mapping": {
"bool": "#/$defs/RuleBoolVariable",
"enum": "#/$defs/RuleEnumVariable",
"int": "#/$defs/RuleIntVariable"
},
"propertyName": "type"
},
"oneOf": [
{
"$ref": "#/$defs/RuleBoolVariable"
},
{
"$ref": "#/$defs/RuleIntVariable"
},
{
"$ref": "#/$defs/RuleEnumVariable"
}
]
},
"maxItems": 64,
"minItems": 1,
"title": "Variables",
"type": "array"
}
},
"required": [
"variables",
"rules"
],
"title": "RulesRequest",
"type": "object"
},
"name": "analyze_rules",
"outputSchema": {
"$defs": {
"ErrorEnvelope": {
"additionalProperties": false,
"properties": {
"error": {
"additionalProperties": false,
"properties": {
"code": {
"enum": [
"INVALID_INPUT",
"PAYLOAD_TOO_LARGE",
"UNSUPPORTED_FEATURE",
"TIMEOUT",
"RESOURCE_LIMIT_EXCEEDED",
"OVERLOADED",
"BANDWIDTH_CAP_REACHED",
"INTERNAL_ERROR"
],
"type": "string"
},
"details": {
"items": {
"additionalProperties": false,
"properties": {
"column": {
"type": "integer"
},
"command": {
"type": "string"
},
"line": {
"type": "integer"
},
"path": {
"type": "string"
},
"reason": {
"type": "string"
}
},
"required": [
"reason"
],
"type": "object"
},
"type": "array"
},
"docs_url": {
"format": "uri",
"type": "string"
},
"example_url": {
"format": "uri",
"type": "string"
},
"message": {
"type": "string"
}
},
"required": [
"code",
"message",
"docs_url",
"example_url"
],
"type": "object"
}
},
"required": [
"error"
],
"type": "object"
},
"RuleDiff": {
"additionalProperties": false,
"properties": {
"equivalent": {
"title": "Equivalent",
"type": "boolean"
},
"witnesses": {
"items": {
"$ref": "#/$defs/RuleDiffWitness"
},
"maxItems": 20,
"title": "Witnesses",
"type": "array"
}
},
"required": [
"equivalent",
"witnesses"
],
"title": "RuleDiff",
"type": "object"
},
"RuleDiffWitness": {
"additionalProperties": false,
"properties": {
"input": {
"additionalProperties": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "integer"
},
{
"type": "string"
}
]
},
"title": "Input",
"type": "object"
},
"v1_action": {
"anyOf": [
{
"maxLength": 64,
"minLength": 1,
"type": "string"
},
{
"type": "null"
}
],
"title": "V1 Action"
},
"v1_rule": {
"anyOf": [
{
"maxLength": 64,
"minLength": 1,
"type": "string"
},
{
"type": "null"
}
],
"title": "V1 Rule"
},
"v2_action": {
"anyOf": [
{
"maxLength": 64,
"minLength": 1,
"type": "string"
},
{
"type": "null"
}
],
"title": "V2 Action"
},
"v2_rule": {
"anyOf": [
{
"maxLength": 64,
"minLength": 1,
"type": "string"
},
{
"type": "null"
}
],
"title": "V2 Rule"
}
},
"required": [
"input",
"v1_action",
"v2_action",
"v1_rule",
"v2_rule"
],
"title": "RuleDiffWitness",
"type": "object"
},
"RuleGap": {
"additionalProperties": false,
"properties": {
"has_gap": {
"title": "Has Gap",
"type": "boolean"
},
"witness": {
"anyOf": [
{
"additionalProperties": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "integer"
},
{
"type": "string"
}
]
},
"type": "object"
},
{
"type": "null"
}
],
"default": null,
"title": "Witness"
}
},
"required": [
"has_gap"
],
"title": "RuleGap",
"type": "object"
},
"RuleOverlap": {
"additionalProperties": false,
"properties": {
"conflict": {
"title": "Conflict",
"type": "boolean"
},
"rule_a": {
"maxLength": 64,
"minLength": 1,
"title": "Rule A",
"type": "string"
},
"rule_b": {
"maxLength": 64,
"minLength": 1,
"title": "Rule B",
"type": "string"
},
"witness": {
"additionalProperties": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "integer"
},
{
"type": "string"
}
]
},
"title": "Witness",
"type": "object"
}
},
"required": [
"rule_a",
"rule_b",
"conflict",
"witness"
],
"title": "RuleOverlap",
"type": "object"
},
"RulesResponse": {
"additionalProperties": false,
"properties": {
"diff": {
"anyOf": [
{
"$ref": "#/$defs/RuleDiff"
},
{
"type": "null"
}
],
"default": null
},
"overlaps": {
"items": {
"$ref": "#/$defs/RuleOverlap"
},
"maxItems": 20,
"title": "Overlaps",
"type": "array"
},
"stats": {
"$ref": "#/$defs/Stats"
},
"uncovered_gap": {
"anyOf": [
{
"$ref": "#/$defs/RuleGap"
},
{
"type": "null"
}
],
"default": null
},
"unreachable_rules": {
"items": {
"$ref": "#/$defs/UnreachableRule"
},
"maxItems": 128,
"title": "Unreachable Rules",
"type": "array"
},
"verdict": {
"enum": [
"complete",
"timeout",
"unknown"
],
"title": "Verdict",
"type": "string"
},
"verified": {
"title": "Verified",
"type": "boolean"
}
},
"required": [
"verdict",
"verified",
"stats"
],
"title": "RulesResponse",
"type": "object"
},
"Stats": {
"additionalProperties": false,
"properties": {
"elapsed_ms": {
"minimum": 0,
"title": "Elapsed Ms",
"type": "integer"
},
"timed_out": {
"title": "Timed Out",
"type": "boolean"
}
},
"required": [
"elapsed_ms",
"timed_out"
],
"title": "Stats",
"type": "object"
},
"UnreachableRule": {
"additionalProperties": false,
"properties": {
"id": {
"maxLength": 64,
"minLength": 1,
"title": "Id",
"type": "string"
},
"reason": {
"enum": [
"unsatisfiable",
"shadowed"
],
"title": "Reason",
"type": "string"
},
"shadowed_by": {
"items": {
"maxLength": 64,
"minLength": 1,
"type": "string"
},
"title": "Shadowed By",
"type": "array"
}
},
"required": [
"id",
"reason"
],
"title": "UnreachableRule",
"type": "object"
}
},
"anyOf": [
{
"$ref": "#/$defs/RulesResponse"
},
{
"$ref": "#/$defs/ErrorEnvelope"
}
],
"type": "object"
}
},
{
"description": "Solve CP-SAT integer constraints and optimization. Returns an independently verified solution. Reference: oracle://docs/constraint-oracle.",
"inputSchema": {
"$defs": {
"AllDifferent": {
"additionalProperties": false,
"properties": {
"type": {
"const": "all_different",
"title": "Type",
"type": "string"
},
"vars": {
"items": {
"maxLength": 64,
"minLength": 1,
"pattern": "^[A-Za-z_][A-Za-z0-9_.\\-\\[\\]]*$",
"type": "string"
},
"maxItems": 500,
"minItems": 1,
"title": "Vars",
"type": "array"
}
},
"required": [
"type",
"vars"
],
"title": "AllDifferent",
"type": "object"
},
"AllowedAssignments": {
"additionalProperties": false,
"properties": {
"tuples": {
"items": {
"items": {
"maximum": 1000000000,
"minimum": -1000000000,
"type": "integer"
},
"maxItems": 20,
"minItems": 1,
"type": "array"
},
"maxItems": 500,
"minItems": 1,
"title": "Tuples",
"type": "array"
},
"type": {
"const": "allowed_assignments",
"title": "Type",
"type": "string"
},
"vars": {
"items": {
"maxLength": 64,
"minLength": 1,
"pattern": "^[A-Za-z_][A-Za-z0-9_.\\-\\[\\]]*$",
"type": "string"
},
"maxItems": 20,
"minItems": 1,
"title": "Vars",
"type": "array"
}
},
"required": [
"type",
"vars",
"tuples"
],
"title": "AllowedAssignments",
"type": "object"
},
"Arc": {
"additionalProperties": false,
"properties": {
"head": {
"maximum": 999,
"minimum": 0,
"title": "Head",
"type": "integer"
},
"tail": {
"maximum": 999,
"minimum": 0,
"title": "Tail",
"type": "integer"
},
"var": {
"maxLength": 64,
"minLength": 1,
"pattern": "^[A-Za-z_][A-Za-z0-9_.\\-\\[\\]]*$",
"title": "Var",
"type": "string"
}
},
"required": [
"tail",
"head",
"var"
],
"title": "Arc",
"type": "object"
},
"BoolLiteral": {
"additionalProperties": false,
"properties": {
"eq": {
"maximum": 1000000000,
"minimum": -1000000000,
"title": "Eq",
"type": "integer"
},
"var": {
"maxLength": 64,
"minLength": 1,
"pattern": "^[A-Za-z_][A-Za-z0-9_.\\-\\[\\]]*$",
"title": "Var",
"type": "string"
}
},
"required": [
"var",
"eq"
],
"title": "BoolLiteral",
"type": "object"
},
"BoolOr": {
"additionalProperties": false,
"properties": {
"literals": {
"items": {
"$ref": "#/$defs/BoolLiteral"
},
"maxItems": 100,
"minItems": 1,
"title": "Literals",
"type": "array"
},
"type": {
"const": "bool_or",
"title": "Type",
"type": "string"
}
},
"required": [
"type",
"literals"
],
"title": "BoolOr",
"type": "object"
},
"Circuit": {
"additionalProperties": false,
"properties": {
"arcs": {
"items": {
"$ref": "#/$defs/Arc"
},
"maxItems": 500,
"minItems": 1,
"title": "Arcs",
"type": "array"
},
"type": {
"const": "circuit",
"title": "Type",
"type": "string"
}
},
"required": [
"type",
"arcs"
],
"title": "Circuit",
"type": "object"
},
"Cumulative": {
"additionalProperties": false,
"properties": {
"capacity": {
"maximum": 1000000000,
"minimum": 0,
"title": "Capacity",
"type": "integer"
},
"intervals": {
"items": {
"$ref": "#/$defs/CumulativeInterval"
},
"maxItems": 200,
"minItems": 1,
"title": "Intervals",
"type": "array"
},
"type": {
"const": "cumulative",
"title": "Type",
"type": "string"
}
},
"required": [
"type",
"intervals",
"capacity"
],
"title": "Cumulative",
"type": "object"
},
"CumulativeInterval": {
"additionalProperties": false,
"properties": {
"demand": {
"maximum": 1000000000,
"minimum": 0,
"title": "Demand",
"type": "integer"
},
"duration": {
"maximum": 1000000000,
"minimum": 0,
"title": "Duration",
"type": "integer"
},
"start_var": {
"maxLength": 64,
"minLength": 1,
"pattern": "^[A-Za-z_][A-Za-z0-9_.\\-\\[\\]]*$",
"title": "Start Var",
"type": "string"
}
},
"required": [
"start_var",
"duration",
"demand"
],
"title": "CumulativeInterval",
"type": "object"
},
"Element": {
"additionalProperties": false,
"properties": {
"index_var": {
"maxLength": 64,
"minLength": 1,
"pattern": "^[A-Za-z_][A-Za-z0-9_.\\-\\[\\]]*$",
"title": "Index Var",
"type": "string"
},
"target_var": {
"maxLength": 64,
"minLength": 1,
"pattern": "^[A-Za-z_][A-Za-z0-9_.\\-\\[\\]]*$",
"title": "Target Var",
"type": "string"
},
"type": {
"const": "element",
"title": "Type",
"type": "string"
},
"values": {
"items": {
"maximum": 1000000000,
"minimum": -1000000000,
"type": "integer"
},
"maxItems": 1000,
"minItems": 1,
"title": "Values",
"type": "array"
}
},
"required": [
"type",
"index_var",
"values",
"target_var"
],
"title": "Element",
"type": "object"
},
"ExactlyOne": {
"additionalProperties": false,
"properties": {
"literals": {
"items": {
"$ref": "#/$defs/BoolLiteral"
},
"maxItems": 100,
"minItems": 1,
"title": "Literals",
"type": "array"
},
"type": {
"const": "exactly_one",
"title": "Type",
"type": "string"
}
},
"required": [
"type",
"literals"
],
"title": "ExactlyOne",
"type": "object"
},
"Implication": {
"additionalProperties": false,
"properties": {
"if_eq": {
"maximum": 1000000000,
"minimum": -1000000000,
"title": "If Eq",
"type": "integer"
},
"if_var": {
"maxLength": 64,
"minLength": 1,
"pattern": "^[A-Za-z_][A-Za-z0-9_.\\-\\[\\]]*$",
"title": "If Var",
"type": "string"
},
"then": {
"$ref": "#/$defs/LinearConstraint"
},
"type": {
"const": "implication",
"title": "Type",
"type": "string"
}
},
"required": [
"type",
"if_var",
"if_eq",
"then"
],
"title": "Implication",
"type": "object"
},
"Interval": {
"additionalProperties": false,
"properties": {
"duration": {
"maximum": 1000000000,
"minimum": 0,
"title": "Duration",
"type": "integer"
},
"start_var": {
"maxLength": 64,
"minLength": 1,
"pattern": "^[A-Za-z_][A-Za-z0-9_.\\-\\[\\]]*$",
"title": "Start Var",
"type": "string"
}
},
"required": [
"start_var",
"duration"
],
"title": "Interval",
"type": "object"
},
"LinearConstraint": {
"additionalProperties": false,
"properties": {
"op": {
"enum": [
"<=",
"==",
">=",
"<",
">",
"!="
],
"title": "Op",
"type": "string"
},
"rhs": {
"maximum": 1000000000000000000,
"minimum": -1000000000000000000,
"title": "Rhs",
"type": "integer"
},
"terms": {
"items": {
"$ref": "#/$defs/Term"
},
"maxItems": 1000,
"minItems": 1,
"title": "Terms",
"type": "array"
},
"type": {
"const": "linear",
"default": "linear",
"title": "Type",
"type": "string"
}
},
"required": [
"terms",
"op",
"rhs"
],
"title": "LinearConstraint",
"type": "object"
},
"NoOverlap": {
"additionalProperties": false,
"properties": {
"intervals": {
"items": {
"$ref": "#/$defs/Interval"
},
"maxItems": 500,
"minItems": 1,
"title": "Intervals",
"type": "array"
},
"type": {
"const": "no_overlap",
"title": "Type",
"type": "string"
}
},
"required": [
"type",
"intervals"
],
"title": "NoOverlap",
"type": "object"
},
"Objective": {
"additionalProperties": false,
"properties": {
"sense": {
"enum": [
"minimize",
"maximize"
],
"title": "Sense",
"type": "string"
},
"terms": {
"items": {
"$ref": "#/$defs/Term"
},
"maxItems": 1000,
"minItems": 1,
"title": "Terms",
"type": "array"
}
},
"required": [
"sense",
"terms"
],
"title": "Objective",
"type": "object"
},
"Term": {
"additionalProperties": false,
"properties": {
"coeff": {
"maximum": 1000000000,
"minimum": -1000000000,
"title": "Coeff",
"type": "integer"
},
"var": {
"maxLength": 64,
"minLength": 1,
"pattern": "^[A-Za-z_][A-Za-z0-9_.\\-\\[\\]]*$",
"title": "Var",
"type": "string"
}
},
"required": [
"var",
"coeff"
],
"title": "Term",
"type": "object"
},
"Variable": {
"additionalProperties": false,
"properties": {
"max": {
"maximum": 1000000000,
"minimum": -1000000000,
"title": "Max",
"type": "integer"
},
"min": {
"maximum": 1000000000,
"minimum": -1000000000,
"title": "Min",
"type": "integer"
},
"name": {
"maxLength": 64,
"minLength": 1,
"pattern": "^[A-Za-z_][A-Za-z0-9_.\\-\\[\\]]*$",
"title": "Name",
"type": "string"
}
},
"required": [
"name",
"min",
"max"
],
"title": "Variable",
"type": "object"
}
},
"additionalProperties": false,
"properties": {
"constraints": {
"items": {
"discriminator": {
"mapping": {
"all_different": "#/$defs/AllDifferent",
"allowed_assignments": "#/$defs/AllowedAssignments",
"bool_or": "#/$defs/BoolOr",
"circuit": "#/$defs/Circuit",
"cumulative": "#/$defs/Cumulative",
"element": "#/$defs/Element",
"exactly_one": "#/$defs/ExactlyOne",
"implication": "#/$defs/Implication",
"linear": "#/$defs/LinearConstraint",
"no_overlap": "#/$defs/NoOverlap"
},
"propertyName": "type"
},
"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"
}
]
},
"maxItems": 2000,
"minItems": 1,
"title": "Constraints",
"type": "array"
},
"objective": {
"anyOf": [
{
"$ref": "#/$defs/Objective"
},
{
"type": "null"
}
],
"default": null
},
"timeout_ms": {
"default": 3000,
"maximum": 5000,
"minimum": 100,
"title": "Timeout Ms",
"type": "integer"
},
"variables": {
"items": {
"$ref": "#/$defs/Variable"
},
"maxItems": 500,
"minItems": 1,
"title": "Variables",
"type": "array"
}
},
"required": [
"variables",
"constraints"
],
"title": "CpsatRequest",
"type": "object"
},
"name": "solve_cpsat",
"outputSchema": {
"$defs": {
"CpsatResponse": {
"additionalProperties": false,
"properties": {
"best_bound": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"default": null,
"title": "Best Bound"
},
"objective_value": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"default": null,
"title": "Objective Value"
},
"solution": {
"anyOf": [
{
"additionalProperties": {
"type": "integer"
},
"type": "object"
},
{
"type": "null"
}
],
"default": null,
"title": "Solution"
},
"stats": {
"$ref": "#/$defs/Stats"
},
"verdict": {
"enum": [
"optimal",
"feasible",
"infeasible",
"unknown",
"timeout"
],
"title": "Verdict",
"type": "string"
},
"verified": {
"title": "Verified",
"type": "boolean"
}
},
"required": [
"verdict",
"verified",
"stats"
],
"title": "CpsatResponse",
"type": "object"
},
"ErrorEnvelope": {
"additionalProperties": false,
"properties": {
"error": {
"additionalProperties": false,
"properties": {
"code": {
"enum": [
"INVALID_INPUT",
"PAYLOAD_TOO_LARGE",
"UNSUPPORTED_FEATURE",
"TIMEOUT",
"RESOURCE_LIMIT_EXCEEDED",
"OVERLOADED",
"BANDWIDTH_CAP_REACHED",
"INTERNAL_ERROR"
],
"type": "string"
},
"details": {
"items": {
"additionalProperties": false,
"properties": {
"column": {
"type": "integer"
},
"command": {
"type": "string"
},
"line": {
"type": "integer"
},
"path": {
"type": "string"
},
"reason": {
"type": "string"
}
},
"required": [
"reason"
],
"type": "object"
},
"type": "array"
},
"docs_url": {
"format": "uri",
"type": "string"
},
"example_url": {
"format": "uri",
"type": "string"
},
"message": {
"type": "string"
}
},
"required": [
"code",
"message",
"docs_url",
"example_url"
],
"type": "object"
}
},
"required": [
"error"
],
"type": "object"
},
"Stats": {
"additionalProperties": false,
"properties": {
"elapsed_ms": {
"minimum": 0,
"title": "Elapsed Ms",
"type": "integer"
},
"timed_out": {
"title": "Timed Out",
"type": "boolean"
}
},
"required": [
"elapsed_ms",
"timed_out"
],
"title": "Stats",
"type": "object"
}
},
"anyOf": [
{
"$ref": "#/$defs/CpsatResponse"
},
{
"$ref": "#/$defs/ErrorEnvelope"
}
],
"type": "object"
}
},
{
"description": "Solve SMT-LIB2 constraints. Returns an independently verified model or minimal unsat core. Reference: oracle://docs/constraint-oracle.",
"inputSchema": {
"additionalProperties": false,
"properties": {
"produce_model": {
"default": true,
"title": "Produce Model",
"type": "boolean"
},
"produce_unsat_core": {
"default": false,
"title": "Produce Unsat Core",
"type": "boolean"
},
"smtlib2": {
"maxLength": 32768,
"minLength": 1,
"title": "Smtlib2",
"type": "string"
},
"timeout_ms": {
"default": 3000,
"maximum": 5000,
"minimum": 100,
"title": "Timeout Ms",
"type": "integer"
}
},
"required": [
"smtlib2"
],
"title": "SmtRequest",
"type": "object"
},
"name": "solve_smt",
"outputSchema": {
"$defs": {
"ErrorEnvelope": {
"additionalProperties": false,
"properties": {
"error": {
"additionalProperties": false,
"properties": {
"code": {
"enum": [
"INVALID_INPUT",
"PAYLOAD_TOO_LARGE",
"UNSUPPORTED_FEATURE",
"TIMEOUT",
"RESOURCE_LIMIT_EXCEEDED",
"OVERLOADED",
"BANDWIDTH_CAP_REACHED",
"INTERNAL_ERROR"
],
"type": "string"
},
"details": {
"items": {
"additionalProperties": false,
"properties": {
"column": {
"type": "integer"
},
"command": {
"type": "string"
},
"line": {
"type": "integer"
},
"path": {
"type": "string"
},
"reason": {
"type": "string"
}
},
"required": [
"reason"
],
"type": "object"
},
"type": "array"
},
"docs_url": {
"format": "uri",
"type": "string"
},
"example_url": {
"format": "uri",
"type": "string"
},
"message": {
"type": "string"
}
},
"required": [
"code",
"message",
"docs_url",
"example_url"
],
"type": "object"
}
},
"required": [
"error"
],
"type": "object"
},
"SmtResponse": {
"additionalProperties": false,
"properties": {
"model": {
"anyOf": [
{
"additionalProperties": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "integer"
},
{
"type": "string"
}
]
},
"type": "object"
},
{
"type": "null"
}
],
"default": null,
"title": "Model"
},
"stats": {
"$ref": "#/$defs/Stats"
},
"unsat_core": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"title": "Unsat Core"
},
"verdict": {
"enum": [
"sat",
"unsat",
"unknown",
"timeout"
],
"title": "Verdict",
"type": "string"
},
"verified": {
"title": "Verified",
"type": "boolean"
}
},
"required": [
"verdict",
"verified",
"stats"
],
"title": "SmtResponse",
"type": "object"
},
"Stats": {
"additionalProperties": false,
"properties": {
"elapsed_ms": {
"minimum": 0,
"title": "Elapsed Ms",
"type": "integer"
},
"timed_out": {
"title": "Timed Out",
"type": "boolean"
}
},
"required": [
"elapsed_ms",
"timed_out"
],
"title": "Stats",
"type": "object"
}
},
"anyOf": [
{
"$ref": "#/$defs/SmtResponse"
},
{
"$ref": "#/$defs/ErrorEnvelope"
}
],
"type": "object"
}
},
{
"description": "Check bounded state machines with deterministic BFS and independently replayed shortest counterexamples. Reference: oracle://docs/verification-oracles.",
"inputSchema": {
"$defs": {
"FsmEnumVariable": {
"additionalProperties": false,
"properties": {
"name": {
"maxLength": 48,
"minLength": 1,
"pattern": "^[a-zA-Z_][a-zA-Z0-9_]{0,47}$",
"title": "Name",
"type": "string"
},
"type": {
"const": "enum",
"title": "Type",
"type": "string"
},
"values": {
"items": {
"maxLength": 48,
"minLength": 1,
"pattern": "^[a-zA-Z_][a-zA-Z0-9_]{0,47}$",
"type": "string"
},
"maxItems": 32,
"minItems": 1,
"title": "Values",
"type": "array"
}
},
"required": [
"name",
"type",
"values"
],
"title": "FsmEnumVariable",
"type": "object"
},
"FsmIntVariable": {
"additionalProperties": false,
"properties": {
"max": {
"maximum": 1000000,
"minimum": -1000000,
"title": "Max",
"type": "integer"
},
"min": {
"maximum": 1000000,
"minimum": -1000000,
"title": "Min",
"type": "integer"
},
"name": {
"maxLength": 48,
"minLength": 1,
"pattern": "^[a-zA-Z_][a-zA-Z0-9_]{0,47}$",
"title": "Name",
"type": "string"
},
"type": {
"const": "int",
"title": "Type",
"type": "string"
}
},
"required": [
"name",
"type",
"min",
"max"
],
"title": "FsmIntVariable",
"type": "object"
},
"FsmPredicate": {
"additionalProperties": false,
"properties": {
"expr": {
"discriminator": {
"mapping": {
"and": "#/$defs/StateBoolean",
"eq": "#/$defs/StateComparison",
"false": "#/$defs/RuleConstant",
"ge": "#/$defs/StateComparison",
"gt": "#/$defs/StateComparison",
"in": "#/$defs/RuleMembership",
"le": "#/$defs/StateComparison",
"lt": "#/$defs/StateComparison",
"ne": "#/$defs/StateComparison",
"not": "#/$defs/StateNot",
"or": "#/$defs/StateBoolean",
"true": "#/$defs/RuleConstant"
},
"propertyName": "op"
},
"oneOf": [
{
"$ref": "#/$defs/RuleConstant"
},
{
"$ref": "#/$defs/StateBoolean"
},
{
"$ref": "#/$defs/StateNot"
},
{
"$ref": "#/$defs/StateComparison"
},
{
"$ref": "#/$defs/RuleMembership"
}
],
"title": "Expr"
},
"name": {
"maxLength": 48,
"minLength": 1,
"pattern": "^[a-zA-Z_][a-zA-Z0-9_]{0,47}$",
"title": "Name",
"type": "string"
}
},
"required": [
"name",
"expr"
],
"title": "FsmPredicate",
"type": "object"
},
"FsmTransition": {
"additionalProperties": false,
"properties": {
"guard": {
"discriminator": {
"mapping": {
"and": "#/$defs/StateBoolean",
"eq": "#/$defs/StateComparison",
"false": "#/$defs/RuleConstant",
"ge": "#/$defs/StateComparison",
"gt": "#/$defs/StateComparison",
"in": "#/$defs/RuleMembership",
"le": "#/$defs/StateComparison",
"lt": "#/$defs/StateComparison",
"ne": "#/$defs/StateComparison",
"not": "#/$defs/StateNot",
"or": "#/$defs/StateBoolean",
"true": "#/$defs/RuleConstant"
},
"propertyName": "op"
},
"oneOf": [
{
"$ref": "#/$defs/RuleConstant"
},
{
"$ref": "#/$defs/StateBoolean"
},
{
"$ref": "#/$defs/StateNot"
},
{
"$ref": "#/$defs/StateComparison"
},
{
"$ref": "#/$defs/RuleMembership"
}
],
"title": "Guard"
},
"name": {
"maxLength": 48,
"minLength": 1,
"pattern": "^[a-zA-Z_][a-zA-Z0-9_]{0,47}$",
"title": "Name",
"type": "string"
},
"updates": {
"maxProperties": 16,
"patternProperties": {
"^[a-zA-Z_][a-zA-Z0-9_]{0,47}$": {
"discriminator": {
"mapping": {
"add": "#/$defs/UpdateArithmetic",
"clamp": "#/$defs/UpdateClamp",
"const": "#/$defs/UpdateConstant",
"sub": "#/$defs/UpdateArithmetic",
"var": "#/$defs/UpdateReference"
},
"propertyName": "op"
},
"oneOf": [
{
"$ref": "#/$defs/UpdateConstant"
},
{
"$ref": "#/$defs/UpdateReference"
},
{
"$ref": "#/$defs/UpdateArithmetic"
},
{
"$ref": "#/$defs/UpdateClamp"
}
]
}
},
"propertyNames": {
"maxLength": 48,
"minLength": 1
},
"title": "Updates",
"type": "object"
}
},
"required": [
"name",
"guard",
"updates"
],
"title": "FsmTransition",
"type": "object"
},
"RuleBoolVariable": {
"additionalProperties": false,
"properties": {
"name": {
"maxLength": 48,
"minLength": 1,
"pattern": "^[a-zA-Z_][a-zA-Z0-9_]{0,47}$",
"title": "Name",
"type": "string"
},
"type": {
"const": "bool",
"title": "Type",
"type": "string"
}
},
"required": [
"name",
"type"
],
"title": "RuleBoolVariable",
"type": "object"
},
"RuleConstant": {
"additionalProperties": false,
"properties": {
"op": {
"enum": [
"true",
"false"
],
"title": "Op",
"type": "string"
}
},
"required": [
"op"
],
"title": "RuleConstant",
"type": "object"
},
"RuleMembership": {
"additionalProperties": false,
"properties": {
"op": {
"const": "in",
"title": "Op",
"type": "string"
},
"values": {
"items": {
"anyOf": [
{
"maximum": 1000000000,
"minimum": -1000000000,
"type": "integer"
},
{
"maxLength": 48,
"minLength": 1,
"pattern": "^[a-zA-Z_][a-zA-Z0-9_]{0,47}$",
"type": "string"
}
]
},
"maxItems": 256,
"minItems": 1,
"title": "Values",
"type": "array"
},
"var": {
"maxLength": 48,
"minLength": 1,
"pattern": "^[a-zA-Z_][a-zA-Z0-9_]{0,47}$",
"title": "Var",
"type": "string"
}
},
"required": [
"op",
"var",
"values"
],
"title": "RuleMembership",
"type": "object"
},
"StateBoolean": {
"additionalProperties": false,
"properties": {
"args": {
"items": {
"discriminator": {
"mapping": {
"and": "#/$defs/StateBoolean",
"eq": "#/$defs/StateComparison",
"false": "#/$defs/RuleConstant",
"ge": "#/$defs/StateComparison",
"gt": "#/$defs/StateComparison",
"in": "#/$defs/RuleMembership",
"le": "#/$defs/StateComparison",
"lt": "#/$defs/StateComparison",
"ne": "#/$defs/StateComparison",
"not": "#/$defs/StateNot",
"or": "#/$defs/StateBoolean",
"true": "#/$defs/RuleConstant"
},
"propertyName": "op"
},
"oneOf": [
{
"$ref": "#/$defs/RuleConstant"
},
{
"$ref": "#/$defs/StateBoolean"
},
{
"$ref": "#/$defs/StateNot"
},
{
"$ref": "#/$defs/StateComparison"
},
{
"$ref": "#/$defs/RuleMembership"
}
]
},
"maxItems": 255,
"minItems": 1,
"title": "Args",
"type": "array"
},
"op": {
"enum": [
"and",
"or"
],
"title": "Op",
"type": "string"
}
},
"required": [
"op",
"args"
],
"title": "StateBoolean",
"type": "object"
},
"StateComparison": {
"additionalProperties": false,
"properties": {
"op": {
"enum": [
"eq",
"ne",
"lt",
"le",
"gt",
"ge"
],
"title": "Op",
"type": "string"
},
"value": {
"anyOf": [
{
"type": "boolean"
},
{
"maximum": 1000000,
"minimum": -1000000,
"type": "integer"
},
{
"maxLength": 48,
"minLength": 1,
"pattern": "^[a-zA-Z_][a-zA-Z0-9_]{0,47}$",
"type": "string"
},
{
"$ref": "#/$defs/StateReference"
}
],
"title": "Value"
},
"var": {
"maxLength": 48,
"minLength": 1,
"pattern": "^[a-zA-Z_][a-zA-Z0-9_]{0,47}$",
"title": "Var",
"type": "string"
}
},
"required": [
"op",
"var",
"value"
],
"title": "StateComparison",
"type": "object"
},
"StateNot": {
"additionalProperties": false,
"properties": {
"arg": {
"discriminator": {
"mapping": {
"and": "#/$defs/StateBoolean",
"eq": "#/$defs/StateComparison",
"false": "#/$defs/RuleConstant",
"ge": "#/$defs/StateComparison",
"gt": "#/$defs/StateComparison",
"in": "#/$defs/RuleMembership",
"le": "#/$defs/StateComparison",
"lt": "#/$defs/StateComparison",
"ne": "#/$defs/StateComparison",
"not": "#/$defs/StateNot",
"or": "#/$defs/StateBoolean",
"true": "#/$defs/RuleConstant"
},
"propertyName": "op"
},
"oneOf": [
{
"$ref": "#/$defs/RuleConstant"
},
{
"$ref": "#/$defs/StateBoolean"
},
{
"$ref": "#/$defs/StateNot"
},
{
"$ref": "#/$defs/StateComparison"
},
{
"$ref": "#/$defs/RuleMembership"
}
],
"title": "Arg"
},
"op": {
"const": "not",
"title": "Op",
"type": "string"
}
},
"required": [
"op",
"arg"
],
"title": "StateNot",
"type": "object"
},
"StateReference": {
"additionalProperties": false,
"properties": {
"var": {
"maxLength": 48,
"minLength": 1,
"pattern": "^[a-zA-Z_][a-zA-Z0-9_]{0,47}$",
"title": "Var",
"type": "string"
}
},
"required": [
"var"
],
"title": "StateReference",
"type": "object"
},
"UpdateArithmetic": {
"additionalProperties": false,
"properties": {
"left": {
"discriminator": {
"mapping": {
"add": "#/$defs/UpdateArithmetic",
"clamp": "#/$defs/UpdateClamp",
"const": "#/$defs/UpdateConstant",
"sub": "#/$defs/UpdateArithmetic",
"var": "#/$defs/UpdateReference"
},
"propertyName": "op"
},
"oneOf": [
{
"$ref": "#/$defs/UpdateConstant"
},
{
"$ref": "#/$defs/UpdateReference"
},
{
"$ref": "#/$defs/UpdateArithmetic"
},
{
"$ref": "#/$defs/UpdateClamp"
}
],
"title": "Left"
},
"op": {
"enum": [
"add",
"sub"
],
"title": "Op",
"type": "string"
},
"right": {
"discriminator": {
"mapping": {
"add": "#/$defs/UpdateArithmetic",
"clamp": "#/$defs/UpdateClamp",
"const": "#/$defs/UpdateConstant",
"sub": "#/$defs/UpdateArithmetic",
"var": "#/$defs/UpdateReference"
},
"propertyName": "op"
},
"oneOf": [
{
"$ref": "#/$defs/UpdateConstant"
},
{
"$ref": "#/$defs/UpdateReference"
},
{
"$ref": "#/$defs/UpdateArithmetic"
},
{
"$ref": "#/$defs/UpdateClamp"
}
],
"title": "Right"
}
},
"required": [
"op",
"left",
"right"
],
"title": "UpdateArithmetic",
"type": "object"
},
"UpdateClamp": {
"additionalProperties": false,
"properties": {
"arg": {
"discriminator": {
"mapping": {
"add": "#/$defs/UpdateArithmetic",
"clamp": "#/$defs/UpdateClamp",
"const": "#/$defs/UpdateConstant",
"sub": "#/$defs/UpdateArithmetic",
"var": "#/$defs/UpdateReference"
},
"propertyName": "op"
},
"oneOf": [
{
"$ref": "#/$defs/UpdateConstant"
},
{
"$ref": "#/$defs/UpdateReference"
},
{
"$ref": "#/$defs/UpdateArithmetic"
},
{
"$ref": "#/$defs/UpdateClamp"
}
],
"title": "Arg"
},
"max": {
"maximum": 1000000,
"minimum": -1000000,
"title": "Max",
"type": "integer"
},
"min": {
"maximum": 1000000,
"minimum": -1000000,
"title": "Min",
"type": "integer"
},
"op": {
"const": "clamp",
"title": "Op",
"type": "string"
}
},
"required": [
"op",
"arg",
"min",
"max"
],
"title": "UpdateClamp",
"type": "object"
},
"UpdateConstant": {
"additionalProperties": false,
"properties": {
"op": {
"const": "const",
"title": "Op",
"type": "string"
},
"value": {
"anyOf": [
{
"type": "boolean"
},
{
"maximum": 1000000,
"minimum": -1000000,
"type": "integer"
},
{
"maxLength": 48,
"minLength": 1,
"pattern": "^[a-zA-Z_][a-zA-Z0-9_]{0,47}$",
"type": "string"
}
],
"title": "Value"
}
},
"required": [
"op",
"value"
],
"title": "UpdateConstant",
"type": "object"
},
"UpdateReference": {
"additionalProperties": false,
"properties": {
"op": {
"const": "var",
"title": "Op",
"type": "string"
},
"var": {
"maxLength": 48,
"minLength": 1,
"pattern": "^[a-zA-Z_][a-zA-Z0-9_]{0,47}$",
"title": "Var",
"type": "string"
}
},
"required": [
"op",
"var"
],
"title": "UpdateReference",
"type": "object"
}
},
"additionalProperties": false,
"oneOf": [
{
"not": {
"required": [
"initial_states"
]
},
"required": [
"initial"
]
},
{
"not": {
"required": [
"initial"
]
},
"required": [
"initial_states"
]
}
],
"properties": {
"check_deadlocks": {
"default": true,
"title": "Check Deadlocks",
"type": "boolean"
},
"initial": {
"maxProperties": 16,
"patternProperties": {
"^[a-zA-Z_][a-zA-Z0-9_]{0,47}$": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "integer"
},
{
"maxLength": 48,
"minLength": 1,
"pattern": "^[a-zA-Z_][a-zA-Z0-9_]{0,47}$",
"type": "string"
}
]
}
},
"propertyNames": {
"maxLength": 48,
"minLength": 1
},
"title": "Initial",
"type": "object"
},
"initial_states": {
"items": {
"maxProperties": 16,
"patternProperties": {
"^[a-zA-Z_][a-zA-Z0-9_]{0,47}$": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "integer"
},
{
"maxLength": 48,
"minLength": 1,
"pattern": "^[a-zA-Z_][a-zA-Z0-9_]{0,47}$",
"type": "string"
}
]
}
},
"propertyNames": {
"maxLength": 48,
"minLength": 1
},
"type": "object"
},
"maxItems": 16,
"minItems": 1,
"title": "Initial States",
"type": "array"
},
"invariants": {
"items": {
"$ref": "#/$defs/FsmPredicate"
},
"maxItems": 32,
"title": "Invariants",
"type": "array"
},
"max_depth": {
"default": 50,
"maximum": 200,
"minimum": 1,
"title": "Max Depth",
"type": "integer"
},
"max_states": {
"default": 5000,
"maximum": 20000,
"minimum": 1,
"title": "Max States",
"type": "integer"
},
"reachability": {
"items": {
"$ref": "#/$defs/FsmPredicate"
},
"maxItems": 16,
"title": "Reachability",
"type": "array"
},
"terminal_condition": {
"discriminator": {
"mapping": {
"and": "#/$defs/StateBoolean",
"eq": "#/$defs/StateComparison",
"false": "#/$defs/RuleConstant",
"ge": "#/$defs/StateComparison",
"gt": "#/$defs/StateComparison",
"in": "#/$defs/RuleMembership",
"le": "#/$defs/StateComparison",
"lt": "#/$defs/StateComparison",
"ne": "#/$defs/StateComparison",
"not": "#/$defs/StateNot",
"or": "#/$defs/StateBoolean",
"true": "#/$defs/RuleConstant"
},
"propertyName": "op"
},
"oneOf": [
{
"$ref": "#/$defs/RuleConstant"
},
{
"$ref": "#/$defs/StateBoolean"
},
{
"$ref": "#/$defs/StateNot"
},
{
"$ref": "#/$defs/StateComparison"
},
{
"$ref": "#/$defs/RuleMembership"
}
],
"title": "Terminal Condition"
},
"timeout_ms": {
"default": 3000,
"maximum": 5000,
"minimum": 100,
"title": "Timeout Ms",
"type": "integer"
},
"transitions": {
"items": {
"$ref": "#/$defs/FsmTransition"
},
"maxItems": 64,
"minItems": 1,
"title": "Transitions",
"type": "array"
},
"variables": {
"items": {
"discriminator": {
"mapping": {
"bool": "#/$defs/RuleBoolVariable",
"enum": "#/$defs/FsmEnumVariable",
"int": "#/$defs/FsmIntVariable"
},
"propertyName": "type"
},
"oneOf": [
{
"$ref": "#/$defs/RuleBoolVariable"
},
{
"$ref": "#/$defs/FsmIntVariable"
},
{
"$ref": "#/$defs/FsmEnumVariable"
}
]
},
"maxItems": 16,
"minItems": 1,
"title": "Variables",
"type": "array"
}
},
"required": [
"variables",
"transitions"
],
"title": "FsmRequest",
"type": "object"
},
"name": "verify_state_machine",
"outputSchema": {
"$defs": {
"ErrorEnvelope": {
"additionalProperties": false,
"properties": {
"error": {
"additionalProperties": false,
"properties": {
"code": {
"enum": [
"INVALID_INPUT",
"PAYLOAD_TOO_LARGE",
"UNSUPPORTED_FEATURE",
"TIMEOUT",
"RESOURCE_LIMIT_EXCEEDED",
"OVERLOADED",
"BANDWIDTH_CAP_REACHED",
"INTERNAL_ERROR"
],
"type": "string"
},
"details": {
"items": {
"additionalProperties": false,
"properties": {
"column": {
"type": "integer"
},
"command": {
"type": "string"
},
"line": {
"type": "integer"
},
"path": {
"type": "string"
},
"reason": {
"type": "string"
}
},
"required": [
"reason"
],
"type": "object"
},
"type": "array"
},
"docs_url": {
"format": "uri",
"type": "string"
},
"example_url": {
"format": "uri",
"type": "string"
},
"message": {
"type": "string"
}
},
"required": [
"code",
"message",
"docs_url",
"example_url"
],
"type": "object"
}
},
"required": [
"error"
],
"type": "object"
},
"FsmDeadlock": {
"additionalProperties": false,
"properties": {
"found": {
"default": false,
"title": "Found",
"type": "boolean"
},
"trace": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/FsmStep"
},
"maxItems": 201,
"minItems": 1,
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"title": "Trace"
}
},
"title": "FsmDeadlock",
"type": "object"
},
"FsmDomainViolation": {
"additionalProperties": false,
"properties": {
"trace": {
"items": {
"$ref": "#/$defs/FsmStep"
},
"maxItems": 201,
"minItems": 1,
"title": "Trace",
"type": "array"
},
"variable": {
"maxLength": 48,
"minLength": 1,
"pattern": "^[a-zA-Z_][a-zA-Z0-9_]{0,47}$",
"title": "Variable",
"type": "string"
}
},
"required": [
"variable",
"trace"
],
"title": "FsmDomainViolation",
"type": "object"
},
"FsmInvariantViolation": {
"additionalProperties": false,
"properties": {
"invariant": {
"maxLength": 48,
"minLength": 1,
"pattern": "^[a-zA-Z_][a-zA-Z0-9_]{0,47}$",
"title": "Invariant",
"type": "string"
},
"trace": {
"items": {
"$ref": "#/$defs/FsmStep"
},
"maxItems": 201,
"minItems": 1,
"title": "Trace",
"type": "array"
}
},
"required": [
"invariant",
"trace"
],
"title": "FsmInvariantViolation",
"type": "object"
},
"FsmReachability": {
"additionalProperties": false,
"properties": {
"goal": {
"maxLength": 48,
"minLength": 1,
"pattern": "^[a-zA-Z_][a-zA-Z0-9_]{0,47}$",
"title": "Goal",
"type": "string"
},
"reachable": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"title": "Reachable"
},
"trace": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/FsmStep"
},
"maxItems": 201,
"minItems": 1,
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"title": "Trace"
}
},
"required": [
"goal",
"reachable"
],
"title": "FsmReachability",
"type": "object"
},
"FsmResponse": {
"additionalProperties": false,
"properties": {
"deadlock": {
"$ref": "#/$defs/FsmDeadlock"
},
"domain_violations": {
"items": {
"$ref": "#/$defs/FsmDomainViolation"
},
"maxItems": 1,
"title": "Domain Violations",
"type": "array"
},
"exhaustive": {
"default": false,
"title": "Exhaustive",
"type": "boolean"
},
"invariant_violations": {
"items": {
"$ref": "#/$defs/FsmInvariantViolation"
},
"maxItems": 32,
"title": "Invariant Violations",
"type": "array"
},
"reachability": {
"items": {
"$ref": "#/$defs/FsmReachability"
},
"maxItems": 16,
"title": "Reachability",
"type": "array"
},
"states_explored": {
"default": 0,
"maximum": 20000,
"minimum": 0,
"title": "States Explored",
"type": "integer"
},
"stats": {
"$ref": "#/$defs/Stats"
},
"status": {
"enum": [
"verified_safe",
"counterexample_found",
"state_limit_reached",
"timeout"
],
"title": "Status",
"type": "string"
},
"transitions_fired": {
"default": 0,
"maximum": 1280000,
"minimum": 0,
"title": "Transitions Fired",
"type": "integer"
},
"unreachable_transitions": {
"items": {
"maxLength": 48,
"minLength": 1,
"pattern": "^[a-zA-Z_][a-zA-Z0-9_]{0,47}$",
"type": "string"
},
"maxItems": 64,
"title": "Unreachable Transitions",
"type": "array"
},
"verified": {
"title": "Verified",
"type": "boolean"
}
},
"required": [
"status",
"verified",
"stats"
],
"title": "FsmResponse",
"type": "object"
},
"FsmStep": {
"additionalProperties": false,
"properties": {
"state": {
"maxProperties": 16,
"patternProperties": {
"^[a-zA-Z_][a-zA-Z0-9_]{0,47}$": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "integer"
},
{
"maxLength": 48,
"minLength": 1,
"pattern": "^[a-zA-Z_][a-zA-Z0-9_]{0,47}$",
"type": "string"
}
]
}
},
"propertyNames": {
"maxLength": 48,
"minLength": 1
},
"title": "State",
"type": "object"
},
"step": {
"maximum": 200,
"minimum": 0,
"title": "Step",
"type": "integer"
},
"transition": {
"anyOf": [
{
"maxLength": 48,
"minLength": 1,
"pattern": "^[a-zA-Z_][a-zA-Z0-9_]{0,47}$",
"type": "string"
},
{
"type": "null"
}
],
"title": "Transition"
}
},
"required": [
"step",
"transition",
"state"
],
"title": "FsmStep",
"type": "object"
},
"Stats": {
"additionalProperties": false,
"properties": {
"elapsed_ms": {
"minimum": 0,
"title": "Elapsed Ms",
"type": "integer"
},
"timed_out": {
"title": "Timed Out",
"type": "boolean"
}
},
"required": [
"elapsed_ms",
"timed_out"
],
"title": "Stats",
"type": "object"
}
},
"anyOf": [
{
"$ref": "#/$defs/FsmResponse"
},
{
"$ref": "#/$defs/ErrorEnvelope"
}
],
"type": "object"
}
}
]
}Verify it yourself
curl -s https://api.teppi.xyz/v1/evidence/sha256:949aec62533b16ad5bdf6ac8894bd87f50ad653bc974a7cc4b0b94b1fdc0f2cd | sha256sum