Raw schema
{
"type": "object",
"properties": {
"task_description": {
"type": "string",
"description": "Natural language description of the task, at most 4,000 characters. Be specific — include what you want produced, constraints, and context. Example: 'Design a caching layer for our API gateway with Redis integration.'"
},
"task_type": {
"type": "string",
"description": "Optional hint to bypass automatic classification. Passing it also removes the slowest classification tiers from the critical path, so send it whenever you know the shape. Multi-step deliverable types: solution_design, requirements_analysis, code_implementation, code_review, bug_fix, root_cause_analysis, incident_response, deployment_execution, competitive_scan, financial_analysis, research_task, documentation, governance_change, compliance_audit, data_security_assessment, performance_optimization, user_story_definition, implementation_prompt_generation. Atomic single-call types, which auto-select direct execution: tag, score, rerank, compose, extract_entities, parse_query, quick_research, quick_classification, quick_extraction, quick_scoring. Call GET /api/rigor/task-types for the full vocabulary with each type's shape."
},
"preferences": {
"type": "object",
"description": "Optional workflow preferences.",
"properties": {
"rigor_level": {
"type": "string",
"enum": [
"quick",
"standard",
"thorough"
],
"description": "Review depth. Default auto-detected from task complexity."
},
"max_budget_usd": {
"type": "number",
"description": "Spending ceiling in USD. If the plan's quote is still above it after Rigor fits the plan (cheaper models, optional steps dropped), rigor_plan returns a max_budget_exceeded warning and rigor_execute refuses with 402 max_budget_exceeded before anything runs or is charged."
},
"require_approval": {
"type": "boolean",
"description": "Pause at pending_approval before the final step."
},
"approval_before_step": {
"type": "array",
"items": {
"type": "number"
},
"description": "Zero-based step indices where approval gates are inserted."
},
"skip_frameworks": {
"type": "array",
"items": {
"type": "string"
},
"description": "Frameworks to exclude, by the display name the plan shows or by ID, any case. Unknown names are reported in warnings."
},
"only_frameworks": {
"type": "array",
"items": {
"type": "string"
},
"description": "Restrict the plan to these frameworks (display name or ID). Applied before skip_frameworks; unknown names are reported in warnings."
},
"add_frameworks": {
"type": "array",
"items": {
"type": "string"
},
"description": "Inject additional frameworks into the plan."
},
"execution": {
"type": "string",
"enum": [
"direct"
],
"description": "Set to 'direct' to compose the plan's content frameworks into a single LLM call and route cost-first, using a per-task-type model floor that moves when a cheaper model earns the work. Research steps, process steps (classification-verify, review protocol, synthesis) and the quality review each remain separate calls, so this is not a one-call-per-workflow guarantee: for atomic task types, which have a single content framework, the call count matches standard execution and the saving is the model. Supplying output_contract replaces the quality-review call with deterministic validation, which is one fewer call. No intermediate outputs. Available at every tier. Auto-selected for atomic task types when no execution preference is given. Falls back to standard execution when combined with require_approval or interactive mode, or when the plan exceeds the composition size limit. With attachments or prior_workflow_id, the workflow runs as standard execution instead, so the attachments and the earlier results are applied."
},
"output_contract": {
"type": "object",
"description": "Only read when execution is \"direct\". Declares the JSON shape you want back, so the answer is generated against your schema and validated against it before return, instead of returned as prose you have to parse. A conforming run also skips the quality-review call, costing 1 LLM call rather than 2. The schema is closed: a record carrying an undeclared key is rejected exactly like one missing a required key.",
"properties": {
"task_type": {
"type": "string",
"description": "Your own label for the work. Echoed into telemetry. Not read as a framework name and does not change routing."
},
"shape": {
"type": "string",
"enum": [
"object",
"array"
],
"description": "\"object\" for 1 record, \"array\" for 1 entry per input item."
},
"fields": {
"type": "array",
"description": "The schema for 1 record.",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "The JSON key."
},
"type": {
"type": "string",
"enum": [
"string",
"number",
"integer",
"boolean",
"array",
"object"
],
"description": "The value's type."
},
"required": {
"type": "boolean",
"description": "Defaults to true. Set false for a field that may be absent."
},
"enum": {
"type": "array",
"items": {
"type": "string"
},
"description": "Restricts a string field to a fixed set of values."
},
"minimum": {
"type": "number",
"description": "Lower bound for a numeric field."
},
"maximum": {
"type": "number",
"description": "Upper bound for a numeric field."
},
"description": {
"type": "string",
"description": "Passed to the model as the field's description."
}
},
"required": [
"name",
"type"
]
}
},
"count": {
"type": "object",
"description": "Bounds on the number of entries. Only read when shape is \"array\".",
"properties": {
"min": {
"type": "number"
},
"max": {
"type": "number"
}
}
},
"selection": {
"type": "object",
"description": "Use when you want the model to over-generate candidates and Rigor to sort, threshold, and cap them before the count bounds are checked.",
"properties": {
"scoreField": {
"type": "string"
},
"minScore": {
"type": "number"
},
"minCount": {
"type": "number"
},
"maxCount": {
"type": "number"
}
}
}
},
"required": [
"task_type",
"shape",
"fields"
]
}
}
},
"prior_workflow_id": {
"type": "string",
"description": "Optional: the workflow_id (wr_…) of a finished workflow in your workspace to build on. Its results are passed to this run as context. It is charged as a new run at the normal quote."
},
"context_fields": {
"type": "array",
"items": {
"type": "string"
},
"description": "Optional, with prior_workflow_id: the fields to carry over. Pass [\"full_step_results\"] for every step output in full."
}
},
"required": [
"task_description"
],
"additionalProperties": false
}