{
  "notice": "bxzxxr MCP archive: a record of what public MCP servers declared when we listed them (we never call their tools). It is data, not a rating: nothing here says a server is safe, secure, verified or trustworthy, and a server can change after we looked. Secrets we detected are redacted; redacted tool lists are withheld and only their hash is shown.",
  "infrastructure": {
    "host": "api.stewai.com",
    "site": "stewai.com",
    "addresses": [
      {
        "address": "172.67.136.35",
        "endpoints": 2,
        "shared_infrastructure": false,
        "network": {
          "asn": 13335,
          "name": "CLOUDFLARENET - Cloudflare, Inc.",
          "prefix": "172.67.128.0/20",
          "country": "US"
        }
      },
      {
        "address": "104.21.78.175",
        "endpoints": 2,
        "shared_infrastructure": false,
        "network": null
      },
      {
        "address": "2606:4700:3031::ac43:8823",
        "endpoints": 2,
        "shared_infrastructure": false,
        "network": {
          "asn": 13335,
          "name": "CLOUDFLARENET - Cloudflare, Inc.",
          "prefix": "2606:4700:3031::/48",
          "country": "US"
        }
      },
      {
        "address": "2606:4700:3033::6815:4eaf",
        "endpoints": 2,
        "shared_infrastructure": false,
        "network": null
      }
    ],
    "addresses_recorded": true,
    "address_history": [
      {
        "addresses": [
          "172.67.136.35",
          "104.21.78.175",
          "2606:4700:3031::ac43:8823",
          "2606:4700:3033::6815:4eaf"
        ],
        "first_seen": "2026-11-23T16:35:02.188Z",
        "last_seen": "2026-11-23T16:35:02.188Z",
        "checks": 1
      },
      {
        "addresses": [
          "104.21.78.175",
          "172.67.136.35",
          "2606:4700:3031::ac43:8823",
          "2606:4700:3033::6815:4eaf"
        ],
        "first_seen": "2026-11-22T16:34:02.151Z",
        "last_seen": "2026-11-22T16:34:02.151Z",
        "checks": 1
      }
    ],
    "hosting": [
      {
        "value": "Cloudflare",
        "evidence": "Server header \"cloudflare\""
      }
    ],
    "software": [],
    "server_info": {
      "name": "stewai",
      "version": "0.3.187",
      "protocol_version": "2025-06-18"
    },
    "headers": {
      "server": "cloudflare",
      "strict-transport-security": "max-age=31536000; includeSubDomains"
    },
    "auth": null
  },
  "related": {
    "same_address": {
      "total": 1,
      "sample": [
        {
          "id": "61840",
          "url": "https://secretsanta.name/mcp",
          "server_name": "name.secretsanta/secret-santa",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T18:49:01.858Z"
        }
      ]
    },
    "same_site": {
      "total": 0,
      "sample": []
    },
    "same_tool_list": {
      "total": 0,
      "sample": []
    },
    "same_publisher": {
      "publisher": "com.stewai",
      "total": 0,
      "sample": []
    },
    "same_repository": null,
    "note": "Shared addresses on big platforms (Cloudflare, Vercel and the like) put unrelated servers together; those are marked shared_infrastructure. A match is a pivot, not a link between operators."
  },
  "endpoint": {
    "id": "16349",
    "server_name": "com.stewai/stewai",
    "url": "https://api.stewai.com/mcp",
    "host": "api.stewai.com",
    "transport": "streamable-http",
    "last_checked_at": "2026-11-23T16:35:02.188Z",
    "last_state": "listed",
    "last_detail": null,
    "consecutive_failures": 0,
    "current_sha": "e0e4534d716d4e3dfe37374ebf2e0f9d536d1bfd8464cc2586cf2316ed852708",
    "first_listed_at": "2026-11-21T11:11:02.366Z",
    "created_at": "2026-11-21T06:50:06.927Z",
    "resolved_addresses": [
      "172.67.136.35",
      "104.21.78.175",
      "2606:4700:3031::ac43:8823",
      "2606:4700:3033::6815:4eaf"
    ]
  },
  "server": {
    "name": "com.stewai/stewai",
    "title": "StewAI",
    "description": "Discover, run, inspect, build, test, and privately reuse AI workflows.",
    "version": "1.1.0",
    "registry_status": "active",
    "repository_url": null,
    "website_url": "https://stewai.com",
    "published_at": "2026-09-21T13:03:21.631Z",
    "updated_at": "2026-09-21T13:03:21.631Z",
    "first_seen": "2026-11-21T06:50:06.271Z"
  },
  "other_endpoints": [],
  "intel": {
    "capabilities": [],
    "evm_addresses": [],
    "chains": [],
    "tokens": [],
    "computed_at": "2026-11-22T15:22:06.692Z"
  },
  "operator": {
    "key": "stewai.com",
    "name": "stewai.com",
    "platform": false,
    "marketplace": false
  },
  "needs_sign_in": false,
  "reachability": {
    "window_days": 30,
    "checks": 3,
    "answered": 3,
    "answered_percent": 100,
    "avg_listing_latency_ms": 2040,
    "first_check_in_window": "2026-11-21T11:11:02.366Z",
    "consecutive_failures_now": 0,
    "days": [
      {
        "day": "2026-11-21",
        "checks": 1,
        "answered": 1,
        "last_state": "listed"
      },
      {
        "day": "2026-11-22",
        "checks": 1,
        "answered": 1,
        "last_state": "listed"
      },
      {
        "day": "2026-11-23",
        "checks": 1,
        "answered": 1,
        "last_state": "listed"
      }
    ]
  },
  "tool_list": {
    "sha256": "e0e4534d716d4e3dfe37374ebf2e0f9d536d1bfd8464cc2586cf2316ed852708",
    "tools": 59,
    "resources": 8,
    "prompts": 0,
    "first_seen": "2026-11-21T11:11:03.816Z",
    "tool_names": [
      "append_recipe_build_upload",
      "approve_recipe_budget",
      "begin_recipe_build_upload",
      "bind_recipe_resource",
      "cancel_recipe_activity",
      "check_recipe_build",
      "commit_recipe_acceptance_upload",
      "commit_recipe_build",
      "commit_recipe_research_upload",
      "commit_recipe_spec_upload",
      "discover_stewai",
      "estimate_recipe_run",
      "get_recipe_acceptance_plan",
      "get_recipe_activity_billing",
      "get_recipe_activity_coverage",
      "get_recipe_authoring_guidance",
      "get_recipe_build",
      "get_recipe_build_activity",
      "get_recipe_build_contracts",
      "get_recipe_build_node",
      "get_recipe_build_research",
      "get_recipe_build_schemas",
      "get_recipe_capability",
      "get_recipe_details",
      "get_recipe_model",
      "get_recipe_preview",
      "get_results",
      "get_run",
      "get_run_diagnostics",
      "get_run_step",
      "get_run_step_chunk",
      "list_recipe_activity_assertions",
      "list_recipe_activity_nodes",
      "list_recipe_build_activities",
      "list_recipe_build_capabilities",
      "list_recipe_build_handoffs",
      "list_recipe_build_nodes",
      "list_recipe_build_resources",
      "list_recipe_builds",
      "list_recipe_capability_types",
      "list_recipe_models",
      "list_run_steps",
      "list_runs",
      "preflight_recipe_build",
      "quote_recipe_acceptance",
      "quote_recipe_review",
      "record_recipe_research",
      "render_recipe_build",
      "restore_recipe_build",
      "resume_recipe_activity",
      "review_recipe_build",
      "run_recipe",
      "run_recipe_acceptance",
      "search_recipes",
      "set_recipe_acceptance_cases",
      "set_recipe_contracts",
      "set_recipe_metadata",
      "start_recipe_build",
      "update_recipe_build"
    ],
    "declared": {
      "tools": [
        {
          "name": "append_recipe_build_upload",
          "title": "Append a Recipe Build Upload",
          "description": "Append one ordered UTF-8 text chunk to an existing private build upload.",
          "inputSchema": {
            "type": "object",
            "required": [
              "build_ref",
              "revision",
              "idempotency_key",
              "chunk_id",
              "seq",
              "text"
            ],
            "properties": {
              "seq": {
                "type": "integer",
                "maximum": 32767,
                "minimum": 0
              },
              "text": {
                "type": "string",
                "maxLength": 49152,
                "minLength": 1
              },
              "chunk_id": {
                "type": "string",
                "maxLength": 64
              },
              "revision": {
                "type": "string",
                "pattern": "^[0-9a-f]{64}$",
                "maxLength": 64
              },
              "build_ref": {
                "type": "string",
                "maxLength": 4096,
                "minLength": 1
              },
              "idempotency_key": {
                "type": "string",
                "pattern": "^[\\x20-\\x7e]+$",
                "maxLength": 200,
                "minLength": 1
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "oneOf": [
              {
                "type": "object",
                "required": [
                  "revision",
                  "normalization_diff",
                  "findings",
                  "qualification_invalidated",
                  "budget_superseded"
                ],
                "properties": {
                  "handoff": {
                    "type": "object",
                    "required": [
                      "handoff_ref",
                      "activity_ref",
                      "revision",
                      "status",
                      "effect_digest",
                      "reason",
                      "required_decisions",
                      "effects",
                      "expires_at",
                      "action_url",
                      "resume"
                    ],
                    "properties": {
                      "reason": {
                        "type": "string",
                        "maxLength": 500
                      },
                      "resume": {
                        "type": "object",
                        "required": [
                          "tool",
                          "operation"
                        ],
                        "properties": {
                          "tool": {
                            "const": "update_recipe_build"
                          },
                          "operation": {
                            "const": "resume_activity"
                          }
                        },
                        "additionalProperties": false
                      },
                      "status": {
                        "enum": [
                          "pending",
                          "approved",
                          "cancelled",
                          "expired",
                          "consumed"
                        ]
                      },
                      "effects": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "required": [
                            "node_id",
                            "node_type",
                            "execution_count",
                            "details"
                          ],
                          "properties": {
                            "details": {
                              "type": "object",
                              "required": [],
                              "properties": {
                                "to": {},
                                "name": {},
                                "query": {},
                                "title": {},
                                "top_k": {},
                                "format": {},
                                "params": {},
                                "prompt": {},
                                "source": {},
                                "options": {},
                                "sources": {},
                                "subject": {},
                                "duration": {},
                                "filename": {},
                                "html_only": {},
                                "max_chunks": {},
                                "visibility": {},
                                "folder_name": {},
                                "folder_ulid": {},
                                "tool_groups": {},
                                "pin_revision": {},
                                "body_template": {},
                                "input_mapping": {},
                                "nested_effects": {},
                                "outcome_rubric": {},
                                "system_message": {},
                                "additional_text": {},
                                "score_threshold": {},
                                "destination_mode": {},
                                "preamble_enabled": {},
                                "child_recipe_ulid": {},
                                "child_revision_sha": {},
                                "local_conflict_mode": {},
                                "outcome_description": {},
                                "external_target_ulid": {},
                                "output_conflict_mode": {},
                                "external_conflict_mode": {},
                                "outcome_max_iterations": {}
                              },
                              "additionalProperties": false
                            },
                            "node_id": {
                              "type": "string",
                              "maxLength": 128
                            },
                            "node_type": {
                              "type": "string",
                              "maxLength": 64
                            },
                            "execution_count": {
                              "type": "integer",
                              "minimum": 0
                            }
                          },
                          "additionalProperties": false
                        },
                        "maxItems": 100
                      },
                      "revision": {
                        "type": "string",
                        "pattern": "^[0-9a-f]{64}$",
                        "maxLength": 64
                      },
                      "resources": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "required": [
                            "requirement_id",
                            "node_id",
                            "node_type",
                            "node_path",
                            "qualification_route",
                            "reason",
                            "required_decision",
                            "resource_paths",
                            "parameter_digest",
                            "binding_status"
                          ],
                          "properties": {
                            "reason": {
                              "type": "string",
                              "maxLength": 128
                            },
                            "node_id": {
                              "type": "string",
                              "maxLength": 128
                            },
                            "node_path": {
                              "type": "array",
                              "items": {
                                "type": [
                                  "string",
                                  "integer"
                                ]
                              },
                              "maxItems": 32
                            },
                            "node_type": {
                              "type": "string",
                              "maxLength": 64
                            },
                            "binding_status": {
                              "enum": [
                                "required",
                                "bound"
                              ]
                            },
                            "requirement_id": {
                              "type": "string",
                              "pattern": "^[0-9a-f]{32}$"
                            },
                            "resource_paths": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "maxLength": 256
                              },
                              "maxItems": 8
                            },
                            "parameter_digest": {
                              "type": "string",
                              "pattern": "^[0-9a-f]{64}$",
                              "maxLength": 64
                            },
                            "required_decision": {
                              "type": "string",
                              "maxLength": 128
                            },
                            "qualification_route": {
                              "enum": [
                                "conditional",
                                "supervised"
                              ]
                            }
                          },
                          "additionalProperties": false
                        },
                        "maxItems": 100
                      },
                      "action_url": {
                        "type": "string",
                        "maxLength": 2048,
                        "minLength": 1
                      },
                      "expires_at": {
                        "type": "string",
                        "format": "date-time",
                        "maxLength": 64
                      },
                      "handoff_ref": {
                        "type": "string",
                        "maxLength": 4096,
                        "minLength": 1
                      },
                      "activity_ref": {
                        "type": "string",
                        "maxLength": 4096,
                        "minLength": 1
                      },
                      "effect_digest": {
                        "type": "string",
                        "pattern": "^[0-9a-f]{64}$",
                        "maxLength": 64
                      },
                      "required_decisions": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "maxLength": 128
                        },
                        "maxItems": 100,
                        "uniqueItems": true
                      }
                    },
                    "additionalProperties": false
                  },
                  "outcome": {
                    "enum": [
                      "resource_bound",
                      "activity_resumed",
                      "activity_cancelled"
                    ]
                  },
                  "findings": {
                    "type": "array",
                    "maxItems": 0
                  },
                  "revision": {
                    "type": "string",
                    "pattern": "^[0-9a-f]{64}$",
                    "maxLength": 64
                  },
                  "truncation": {
                    "type": "object",
                    "required": [
                      "applied",
                      "reason",
                      "omitted_items",
                      "truncated_values",
                      "original_result_bytes"
                    ],
                    "properties": {
                      "reason": {
                        "const": "response_size_limit"
                      },
                      "applied": {
                        "const": true
                      },
                      "omitted_items": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "truncated_values": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "original_result_bytes": {
                        "type": "integer",
                        "minimum": 1
                      }
                    },
                    "additionalProperties": false
                  },
                  "activity_ref": {
                    "type": "string",
                    "maxLength": 4096,
                    "minLength": 1
                  },
                  "activity_state": {
                    "enum": [
                      "queued",
                      "running",
                      "blocked",
                      "done",
                      "failed",
                      "cancelled"
                    ]
                  },
                  "budget_superseded": {
                    "type": "boolean"
                  },
                  "normalization_diff": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "op",
                        "changed"
                      ],
                      "properties": {
                        "op": {
                          "type": "string",
                          "maxLength": 64
                        },
                        "changed": {
                          "type": "boolean"
                        }
                      },
                      "additionalProperties": false
                    },
                    "maxItems": 25
                  },
                  "qualification_invalidated": {
                    "type": "boolean"
                  }
                }
              },
              {
                "type": "object",
                "required": [
                  "error"
                ],
                "properties": {
                  "hint": {
                    "type": "string",
                    "maxLength": 240
                  },
                  "error": {
                    "enum": [
                      "not_found",
                      "invalid_reference",
                      "invalid_params",
                      "revision_conflict",
                      "idempotency_conflict",
                      "document_too_large",
                      "payload_too_large",
                      "chunk_sequence_invalid",
                      "chunk_digest_mismatch",
                      "chunk_expired",
                      "invalid_cursor",
                      "suite_duplicate_case_id",
                      "suite_unresolved_pair",
                      "suite_schema_invalid",
                      "suite_missing_categories",
                      "suite_weak_normal_oracle",
                      "suite_too_large",
                      "unknown_case_id",
                      "duplicate_case_id",
                      "incomplete_case_selection",
                      "unsupported_node_kind",
                      "research_required",
                      "review_required",
                      "acceptance_required",
                      "qualification_stale",
                      "budget_not_approved",
                      "budget_exhausted",
                      "budget_superseded",
                      "budget_capability_consumed",
                      "budget_capability_expired",
                      "acceptance_case_cost_exceeded",
                      "authoring_budget_exceeded",
                      "authoring_grant_not_active",
                      "insufficient_credits",
                      "billing_anomaly",
                      "activity_stalled",
                      "activity_in_flight",
                      "handoff_approval_required",
                      "handoff_expired",
                      "handoff_not_pending",
                      "handoff_stale",
                      "handoff_disclosure_incomplete",
                      "feature_unavailable",
                      "resource_unavailable",
                      "resource_binding_required",
                      "resource_requirement_not_found",
                      "activity_not_cancellable",
                      "quota_exceeded",
                      "rate_limited",
                      "already_published",
                      "safety_locked",
                      "build_terminal",
                      "commit_capability_expired",
                      "account_unavailable",
                      "limit_unavailable"
                    ]
                  },
                  "field": {
                    "type": "string",
                    "maxLength": 64
                  },
                  "issue": {
                    "type": "object",
                    "required": [
                      "code",
                      "path"
                    ],
                    "properties": {
                      "code": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "path": {
                        "type": "string",
                        "maxLength": 512
                      },
                      "type": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "field": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "operator": {
                        "type": "string",
                        "maxLength": 64
                      }
                    },
                    "additionalProperties": false
                  },
                  "case_id": {
                    "type": "string",
                    "maxLength": 64,
                    "minLength": 1
                  },
                  "truncation": {
                    "type": "object",
                    "required": [
                      "applied",
                      "reason",
                      "omitted_items",
                      "truncated_values",
                      "original_result_bytes"
                    ],
                    "properties": {
                      "reason": {
                        "const": "response_size_limit"
                      },
                      "applied": {
                        "const": true
                      },
                      "omitted_items": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "truncated_values": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "original_result_bytes": {
                        "type": "integer",
                        "minimum": 1
                      }
                    },
                    "additionalProperties": false
                  },
                  "repair_hint": {
                    "type": "string",
                    "maxLength": 500
                  },
                  "review_cost": {
                    "type": "object",
                    "required": [
                      "estimated_credits",
                      "limit_credits",
                      "provider",
                      "model",
                      "basis",
                      "input_token_bound",
                      "output_token_cap",
                      "prompt_bytes",
                      "section_bytes"
                    ],
                    "properties": {
                      "basis": {
                        "const": "utf8_byte_upper_bound"
                      },
                      "model": {
                        "type": "string",
                        "maxLength": 200
                      },
                      "provider": {
                        "type": "string",
                        "maxLength": 200
                      },
                      "prompt_bytes": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "limit_credits": {
                        "type": "string",
                        "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                        "maxLength": 64
                      },
                      "section_bytes": {
                        "type": "object",
                        "required": [],
                        "properties": {
                          "spec": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "intent": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "input_contract": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "output_contract": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "acceptance_suite": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "research_evidence": {
                            "type": "integer",
                            "minimum": 0
                          }
                        },
                        "additionalProperties": false
                      },
                      "output_token_cap": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "estimated_credits": {
                        "type": "string",
                        "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                        "maxLength": 64
                      },
                      "input_token_bound": {
                        "type": "integer",
                        "minimum": 0
                      }
                    },
                    "additionalProperties": false
                  },
                  "limit_credits": {
                    "type": "string",
                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                    "maxLength": 64
                  },
                  "estimated_credits": {
                    "type": "string",
                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                    "maxLength": 64
                  },
                  "missing_categories": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 64
                    },
                    "maxItems": 10,
                    "uniqueItems": true
                  },
                  "retry_after_seconds": {
                    "type": "integer",
                    "maximum": 86400,
                    "minimum": 1
                  }
                },
                "additionalProperties": false
              }
            ]
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "approve_recipe_budget",
          "title": "Approve a Recipe Build Budget",
          "description": "Redeem one exact budget capability for one private build revision.",
          "inputSchema": {
            "type": "object",
            "required": [
              "build_ref",
              "revision",
              "idempotency_key",
              "budget_capability"
            ],
            "properties": {
              "revision": {
                "type": "string",
                "pattern": "^[0-9a-f]{64}$",
                "maxLength": 64
              },
              "build_ref": {
                "type": "string",
                "maxLength": 4096,
                "minLength": 1
              },
              "idempotency_key": {
                "type": "string",
                "pattern": "^[\\x20-\\x7e]+$",
                "maxLength": 200,
                "minLength": 1
              },
              "budget_capability": {
                "type": "string",
                "maxLength": 4096,
                "minLength": 1
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "oneOf": [
              {
                "type": "object",
                "required": [
                  "revision",
                  "normalization_diff",
                  "findings",
                  "qualification_invalidated",
                  "budget_superseded"
                ],
                "properties": {
                  "handoff": {
                    "type": "object",
                    "required": [
                      "handoff_ref",
                      "activity_ref",
                      "revision",
                      "status",
                      "effect_digest",
                      "reason",
                      "required_decisions",
                      "effects",
                      "expires_at",
                      "action_url",
                      "resume"
                    ],
                    "properties": {
                      "reason": {
                        "type": "string",
                        "maxLength": 500
                      },
                      "resume": {
                        "type": "object",
                        "required": [
                          "tool",
                          "operation"
                        ],
                        "properties": {
                          "tool": {
                            "const": "update_recipe_build"
                          },
                          "operation": {
                            "const": "resume_activity"
                          }
                        },
                        "additionalProperties": false
                      },
                      "status": {
                        "enum": [
                          "pending",
                          "approved",
                          "cancelled",
                          "expired",
                          "consumed"
                        ]
                      },
                      "effects": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "required": [
                            "node_id",
                            "node_type",
                            "execution_count",
                            "details"
                          ],
                          "properties": {
                            "details": {
                              "type": "object",
                              "required": [],
                              "properties": {
                                "to": {},
                                "name": {},
                                "query": {},
                                "title": {},
                                "top_k": {},
                                "format": {},
                                "params": {},
                                "prompt": {},
                                "source": {},
                                "options": {},
                                "sources": {},
                                "subject": {},
                                "duration": {},
                                "filename": {},
                                "html_only": {},
                                "max_chunks": {},
                                "visibility": {},
                                "folder_name": {},
                                "folder_ulid": {},
                                "tool_groups": {},
                                "pin_revision": {},
                                "body_template": {},
                                "input_mapping": {},
                                "nested_effects": {},
                                "outcome_rubric": {},
                                "system_message": {},
                                "additional_text": {},
                                "score_threshold": {},
                                "destination_mode": {},
                                "preamble_enabled": {},
                                "child_recipe_ulid": {},
                                "child_revision_sha": {},
                                "local_conflict_mode": {},
                                "outcome_description": {},
                                "external_target_ulid": {},
                                "output_conflict_mode": {},
                                "external_conflict_mode": {},
                                "outcome_max_iterations": {}
                              },
                              "additionalProperties": false
                            },
                            "node_id": {
                              "type": "string",
                              "maxLength": 128
                            },
                            "node_type": {
                              "type": "string",
                              "maxLength": 64
                            },
                            "execution_count": {
                              "type": "integer",
                              "minimum": 0
                            }
                          },
                          "additionalProperties": false
                        },
                        "maxItems": 100
                      },
                      "revision": {
                        "type": "string",
                        "pattern": "^[0-9a-f]{64}$",
                        "maxLength": 64
                      },
                      "resources": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "required": [
                            "requirement_id",
                            "node_id",
                            "node_type",
                            "node_path",
                            "qualification_route",
                            "reason",
                            "required_decision",
                            "resource_paths",
                            "parameter_digest",
                            "binding_status"
                          ],
                          "properties": {
                            "reason": {
                              "type": "string",
                              "maxLength": 128
                            },
                            "node_id": {
                              "type": "string",
                              "maxLength": 128
                            },
                            "node_path": {
                              "type": "array",
                              "items": {
                                "type": [
                                  "string",
                                  "integer"
                                ]
                              },
                              "maxItems": 32
                            },
                            "node_type": {
                              "type": "string",
                              "maxLength": 64
                            },
                            "binding_status": {
                              "enum": [
                                "required",
                                "bound"
                              ]
                            },
                            "requirement_id": {
                              "type": "string",
                              "pattern": "^[0-9a-f]{32}$"
                            },
                            "resource_paths": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "maxLength": 256
                              },
                              "maxItems": 8
                            },
                            "parameter_digest": {
                              "type": "string",
                              "pattern": "^[0-9a-f]{64}$",
                              "maxLength": 64
                            },
                            "required_decision": {
                              "type": "string",
                              "maxLength": 128
                            },
                            "qualification_route": {
                              "enum": [
                                "conditional",
                                "supervised"
                              ]
                            }
                          },
                          "additionalProperties": false
                        },
                        "maxItems": 100
                      },
                      "action_url": {
                        "type": "string",
                        "maxLength": 2048,
                        "minLength": 1
                      },
                      "expires_at": {
                        "type": "string",
                        "format": "date-time",
                        "maxLength": 64
                      },
                      "handoff_ref": {
                        "type": "string",
                        "maxLength": 4096,
                        "minLength": 1
                      },
                      "activity_ref": {
                        "type": "string",
                        "maxLength": 4096,
                        "minLength": 1
                      },
                      "effect_digest": {
                        "type": "string",
                        "pattern": "^[0-9a-f]{64}$",
                        "maxLength": 64
                      },
                      "required_decisions": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "maxLength": 128
                        },
                        "maxItems": 100,
                        "uniqueItems": true
                      }
                    },
                    "additionalProperties": false
                  },
                  "outcome": {
                    "enum": [
                      "resource_bound",
                      "activity_resumed",
                      "activity_cancelled"
                    ]
                  },
                  "findings": {
                    "type": "array",
                    "maxItems": 0
                  },
                  "revision": {
                    "type": "string",
                    "pattern": "^[0-9a-f]{64}$",
                    "maxLength": 64
                  },
                  "truncation": {
                    "type": "object",
                    "required": [
                      "applied",
                      "reason",
                      "omitted_items",
                      "truncated_values",
                      "original_result_bytes"
                    ],
                    "properties": {
                      "reason": {
                        "const": "response_size_limit"
                      },
                      "applied": {
                        "const": true
                      },
                      "omitted_items": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "truncated_values": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "original_result_bytes": {
                        "type": "integer",
                        "minimum": 1
                      }
                    },
                    "additionalProperties": false
                  },
                  "activity_ref": {
                    "type": "string",
                    "maxLength": 4096,
                    "minLength": 1
                  },
                  "activity_state": {
                    "enum": [
                      "queued",
                      "running",
                      "blocked",
                      "done",
                      "failed",
                      "cancelled"
                    ]
                  },
                  "budget_superseded": {
                    "type": "boolean"
                  },
                  "normalization_diff": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "op",
                        "changed"
                      ],
                      "properties": {
                        "op": {
                          "type": "string",
                          "maxLength": 64
                        },
                        "changed": {
                          "type": "boolean"
                        }
                      },
                      "additionalProperties": false
                    },
                    "maxItems": 25
                  },
                  "qualification_invalidated": {
                    "type": "boolean"
                  }
                }
              },
              {
                "type": "object",
                "required": [
                  "error"
                ],
                "properties": {
                  "hint": {
                    "type": "string",
                    "maxLength": 240
                  },
                  "error": {
                    "enum": [
                      "not_found",
                      "invalid_reference",
                      "invalid_params",
                      "revision_conflict",
                      "idempotency_conflict",
                      "document_too_large",
                      "payload_too_large",
                      "chunk_sequence_invalid",
                      "chunk_digest_mismatch",
                      "chunk_expired",
                      "invalid_cursor",
                      "suite_duplicate_case_id",
                      "suite_unresolved_pair",
                      "suite_schema_invalid",
                      "suite_missing_categories",
                      "suite_weak_normal_oracle",
                      "suite_too_large",
                      "unknown_case_id",
                      "duplicate_case_id",
                      "incomplete_case_selection",
                      "unsupported_node_kind",
                      "research_required",
                      "review_required",
                      "acceptance_required",
                      "qualification_stale",
                      "budget_not_approved",
                      "budget_exhausted",
                      "budget_superseded",
                      "budget_capability_consumed",
                      "budget_capability_expired",
                      "acceptance_case_cost_exceeded",
                      "authoring_budget_exceeded",
                      "authoring_grant_not_active",
                      "insufficient_credits",
                      "billing_anomaly",
                      "activity_stalled",
                      "activity_in_flight",
                      "handoff_approval_required",
                      "handoff_expired",
                      "handoff_not_pending",
                      "handoff_stale",
                      "handoff_disclosure_incomplete",
                      "feature_unavailable",
                      "resource_unavailable",
                      "resource_binding_required",
                      "resource_requirement_not_found",
                      "activity_not_cancellable",
                      "quota_exceeded",
                      "rate_limited",
                      "already_published",
                      "safety_locked",
                      "build_terminal",
                      "commit_capability_expired",
                      "account_unavailable",
                      "limit_unavailable"
                    ]
                  },
                  "field": {
                    "type": "string",
                    "maxLength": 64
                  },
                  "issue": {
                    "type": "object",
                    "required": [
                      "code",
                      "path"
                    ],
                    "properties": {
                      "code": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "path": {
                        "type": "string",
                        "maxLength": 512
                      },
                      "type": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "field": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "operator": {
                        "type": "string",
                        "maxLength": 64
                      }
                    },
                    "additionalProperties": false
                  },
                  "case_id": {
                    "type": "string",
                    "maxLength": 64,
                    "minLength": 1
                  },
                  "truncation": {
                    "type": "object",
                    "required": [
                      "applied",
                      "reason",
                      "omitted_items",
                      "truncated_values",
                      "original_result_bytes"
                    ],
                    "properties": {
                      "reason": {
                        "const": "response_size_limit"
                      },
                      "applied": {
                        "const": true
                      },
                      "omitted_items": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "truncated_values": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "original_result_bytes": {
                        "type": "integer",
                        "minimum": 1
                      }
                    },
                    "additionalProperties": false
                  },
                  "repair_hint": {
                    "type": "string",
                    "maxLength": 500
                  },
                  "review_cost": {
                    "type": "object",
                    "required": [
                      "estimated_credits",
                      "limit_credits",
                      "provider",
                      "model",
                      "basis",
                      "input_token_bound",
                      "output_token_cap",
                      "prompt_bytes",
                      "section_bytes"
                    ],
                    "properties": {
                      "basis": {
                        "const": "utf8_byte_upper_bound"
                      },
                      "model": {
                        "type": "string",
                        "maxLength": 200
                      },
                      "provider": {
                        "type": "string",
                        "maxLength": 200
                      },
                      "prompt_bytes": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "limit_credits": {
                        "type": "string",
                        "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                        "maxLength": 64
                      },
                      "section_bytes": {
                        "type": "object",
                        "required": [],
                        "properties": {
                          "spec": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "intent": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "input_contract": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "output_contract": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "acceptance_suite": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "research_evidence": {
                            "type": "integer",
                            "minimum": 0
                          }
                        },
                        "additionalProperties": false
                      },
                      "output_token_cap": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "estimated_credits": {
                        "type": "string",
                        "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                        "maxLength": 64
                      },
                      "input_token_bound": {
                        "type": "integer",
                        "minimum": 0
                      }
                    },
                    "additionalProperties": false
                  },
                  "limit_credits": {
                    "type": "string",
                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                    "maxLength": 64
                  },
                  "estimated_credits": {
                    "type": "string",
                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                    "maxLength": 64
                  },
                  "missing_categories": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 64
                    },
                    "maxItems": 10,
                    "uniqueItems": true
                  },
                  "retry_after_seconds": {
                    "type": "integer",
                    "maximum": 86400,
                    "minimum": 1
                  }
                },
                "additionalProperties": false
              }
            ]
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "begin_recipe_build_upload",
          "title": "Begin a Recipe Build Upload",
          "description": "Begin one bounded chunked upload for a private recipe build.",
          "inputSchema": {
            "type": "object",
            "required": [
              "build_ref",
              "revision",
              "idempotency_key",
              "chunk_id"
            ],
            "properties": {
              "chunk_id": {
                "type": "string",
                "maxLength": 64
              },
              "revision": {
                "type": "string",
                "pattern": "^[0-9a-f]{64}$",
                "maxLength": 64
              },
              "build_ref": {
                "type": "string",
                "maxLength": 4096,
                "minLength": 1
              },
              "idempotency_key": {
                "type": "string",
                "pattern": "^[\\x20-\\x7e]+$",
                "maxLength": 200,
                "minLength": 1
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "oneOf": [
              {
                "type": "object",
                "required": [
                  "revision",
                  "normalization_diff",
                  "findings",
                  "qualification_invalidated",
                  "budget_superseded"
                ],
                "properties": {
                  "handoff": {
                    "type": "object",
                    "required": [
                      "handoff_ref",
                      "activity_ref",
                      "revision",
                      "status",
                      "effect_digest",
                      "reason",
                      "required_decisions",
                      "effects",
                      "expires_at",
                      "action_url",
                      "resume"
                    ],
                    "properties": {
                      "reason": {
                        "type": "string",
                        "maxLength": 500
                      },
                      "resume": {
                        "type": "object",
                        "required": [
                          "tool",
                          "operation"
                        ],
                        "properties": {
                          "tool": {
                            "const": "update_recipe_build"
                          },
                          "operation": {
                            "const": "resume_activity"
                          }
                        },
                        "additionalProperties": false
                      },
                      "status": {
                        "enum": [
                          "pending",
                          "approved",
                          "cancelled",
                          "expired",
                          "consumed"
                        ]
                      },
                      "effects": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "required": [
                            "node_id",
                            "node_type",
                            "execution_count",
                            "details"
                          ],
                          "properties": {
                            "details": {
                              "type": "object",
                              "required": [],
                              "properties": {
                                "to": {},
                                "name": {},
                                "query": {},
                                "title": {},
                                "top_k": {},
                                "format": {},
                                "params": {},
                                "prompt": {},
                                "source": {},
                                "options": {},
                                "sources": {},
                                "subject": {},
                                "duration": {},
                                "filename": {},
                                "html_only": {},
                                "max_chunks": {},
                                "visibility": {},
                                "folder_name": {},
                                "folder_ulid": {},
                                "tool_groups": {},
                                "pin_revision": {},
                                "body_template": {},
                                "input_mapping": {},
                                "nested_effects": {},
                                "outcome_rubric": {},
                                "system_message": {},
                                "additional_text": {},
                                "score_threshold": {},
                                "destination_mode": {},
                                "preamble_enabled": {},
                                "child_recipe_ulid": {},
                                "child_revision_sha": {},
                                "local_conflict_mode": {},
                                "outcome_description": {},
                                "external_target_ulid": {},
                                "output_conflict_mode": {},
                                "external_conflict_mode": {},
                                "outcome_max_iterations": {}
                              },
                              "additionalProperties": false
                            },
                            "node_id": {
                              "type": "string",
                              "maxLength": 128
                            },
                            "node_type": {
                              "type": "string",
                              "maxLength": 64
                            },
                            "execution_count": {
                              "type": "integer",
                              "minimum": 0
                            }
                          },
                          "additionalProperties": false
                        },
                        "maxItems": 100
                      },
                      "revision": {
                        "type": "string",
                        "pattern": "^[0-9a-f]{64}$",
                        "maxLength": 64
                      },
                      "resources": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "required": [
                            "requirement_id",
                            "node_id",
                            "node_type",
                            "node_path",
                            "qualification_route",
                            "reason",
                            "required_decision",
                            "resource_paths",
                            "parameter_digest",
                            "binding_status"
                          ],
                          "properties": {
                            "reason": {
                              "type": "string",
                              "maxLength": 128
                            },
                            "node_id": {
                              "type": "string",
                              "maxLength": 128
                            },
                            "node_path": {
                              "type": "array",
                              "items": {
                                "type": [
                                  "string",
                                  "integer"
                                ]
                              },
                              "maxItems": 32
                            },
                            "node_type": {
                              "type": "string",
                              "maxLength": 64
                            },
                            "binding_status": {
                              "enum": [
                                "required",
                                "bound"
                              ]
                            },
                            "requirement_id": {
                              "type": "string",
                              "pattern": "^[0-9a-f]{32}$"
                            },
                            "resource_paths": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "maxLength": 256
                              },
                              "maxItems": 8
                            },
                            "parameter_digest": {
                              "type": "string",
                              "pattern": "^[0-9a-f]{64}$",
                              "maxLength": 64
                            },
                            "required_decision": {
                              "type": "string",
                              "maxLength": 128
                            },
                            "qualification_route": {
                              "enum": [
                                "conditional",
                                "supervised"
                              ]
                            }
                          },
                          "additionalProperties": false
                        },
                        "maxItems": 100
                      },
                      "action_url": {
                        "type": "string",
                        "maxLength": 2048,
                        "minLength": 1
                      },
                      "expires_at": {
                        "type": "string",
                        "format": "date-time",
                        "maxLength": 64
                      },
                      "handoff_ref": {
                        "type": "string",
                        "maxLength": 4096,
                        "minLength": 1
                      },
                      "activity_ref": {
                        "type": "string",
                        "maxLength": 4096,
                        "minLength": 1
                      },
                      "effect_digest": {
                        "type": "string",
                        "pattern": "^[0-9a-f]{64}$",
                        "maxLength": 64
                      },
                      "required_decisions": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "maxLength": 128
                        },
                        "maxItems": 100,
                        "uniqueItems": true
                      }
                    },
                    "additionalProperties": false
                  },
                  "outcome": {
                    "enum": [
                      "resource_bound",
                      "activity_resumed",
                      "activity_cancelled"
                    ]
                  },
                  "findings": {
                    "type": "array",
                    "maxItems": 0
                  },
                  "revision": {
                    "type": "string",
                    "pattern": "^[0-9a-f]{64}$",
                    "maxLength": 64
                  },
                  "truncation": {
                    "type": "object",
                    "required": [
                      "applied",
                      "reason",
                      "omitted_items",
                      "truncated_values",
                      "original_result_bytes"
                    ],
                    "properties": {
                      "reason": {
                        "const": "response_size_limit"
                      },
                      "applied": {
                        "const": true
                      },
                      "omitted_items": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "truncated_values": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "original_result_bytes": {
                        "type": "integer",
                        "minimum": 1
                      }
                    },
                    "additionalProperties": false
                  },
                  "activity_ref": {
                    "type": "string",
                    "maxLength": 4096,
                    "minLength": 1
                  },
                  "activity_state": {
                    "enum": [
                      "queued",
                      "running",
                      "blocked",
                      "done",
                      "failed",
                      "cancelled"
                    ]
                  },
                  "budget_superseded": {
                    "type": "boolean"
                  },
                  "normalization_diff": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "op",
                        "changed"
                      ],
                      "properties": {
                        "op": {
                          "type": "string",
                          "maxLength": 64
                        },
                        "changed": {
                          "type": "boolean"
                        }
                      },
                      "additionalProperties": false
                    },
                    "maxItems": 25
                  },
                  "qualification_invalidated": {
                    "type": "boolean"
                  }
                }
              },
              {
                "type": "object",
                "required": [
                  "error"
                ],
                "properties": {
                  "hint": {
                    "type": "string",
                    "maxLength": 240
                  },
                  "error": {
                    "enum": [
                      "not_found",
                      "invalid_reference",
                      "invalid_params",
                      "revision_conflict",
                      "idempotency_conflict",
                      "document_too_large",
                      "payload_too_large",
                      "chunk_sequence_invalid",
                      "chunk_digest_mismatch",
                      "chunk_expired",
                      "invalid_cursor",
                      "suite_duplicate_case_id",
                      "suite_unresolved_pair",
                      "suite_schema_invalid",
                      "suite_missing_categories",
                      "suite_weak_normal_oracle",
                      "suite_too_large",
                      "unknown_case_id",
                      "duplicate_case_id",
                      "incomplete_case_selection",
                      "unsupported_node_kind",
                      "research_required",
                      "review_required",
                      "acceptance_required",
                      "qualification_stale",
                      "budget_not_approved",
                      "budget_exhausted",
                      "budget_superseded",
                      "budget_capability_consumed",
                      "budget_capability_expired",
                      "acceptance_case_cost_exceeded",
                      "authoring_budget_exceeded",
                      "authoring_grant_not_active",
                      "insufficient_credits",
                      "billing_anomaly",
                      "activity_stalled",
                      "activity_in_flight",
                      "handoff_approval_required",
                      "handoff_expired",
                      "handoff_not_pending",
                      "handoff_stale",
                      "handoff_disclosure_incomplete",
                      "feature_unavailable",
                      "resource_unavailable",
                      "resource_binding_required",
                      "resource_requirement_not_found",
                      "activity_not_cancellable",
                      "quota_exceeded",
                      "rate_limited",
                      "already_published",
                      "safety_locked",
                      "build_terminal",
                      "commit_capability_expired",
                      "account_unavailable",
                      "limit_unavailable"
                    ]
                  },
                  "field": {
                    "type": "string",
                    "maxLength": 64
                  },
                  "issue": {
                    "type": "object",
                    "required": [
                      "code",
                      "path"
                    ],
                    "properties": {
                      "code": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "path": {
                        "type": "string",
                        "maxLength": 512
                      },
                      "type": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "field": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "operator": {
                        "type": "string",
                        "maxLength": 64
                      }
                    },
                    "additionalProperties": false
                  },
                  "case_id": {
                    "type": "string",
                    "maxLength": 64,
                    "minLength": 1
                  },
                  "truncation": {
                    "type": "object",
                    "required": [
                      "applied",
                      "reason",
                      "omitted_items",
                      "truncated_values",
                      "original_result_bytes"
                    ],
                    "properties": {
                      "reason": {
                        "const": "response_size_limit"
                      },
                      "applied": {
                        "const": true
                      },
                      "omitted_items": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "truncated_values": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "original_result_bytes": {
                        "type": "integer",
                        "minimum": 1
                      }
                    },
                    "additionalProperties": false
                  },
                  "repair_hint": {
                    "type": "string",
                    "maxLength": 500
                  },
                  "review_cost": {
                    "type": "object",
                    "required": [
                      "estimated_credits",
                      "limit_credits",
                      "provider",
                      "model",
                      "basis",
                      "input_token_bound",
                      "output_token_cap",
                      "prompt_bytes",
                      "section_bytes"
                    ],
                    "properties": {
                      "basis": {
                        "const": "utf8_byte_upper_bound"
                      },
                      "model": {
                        "type": "string",
                        "maxLength": 200
                      },
                      "provider": {
                        "type": "string",
                        "maxLength": 200
                      },
                      "prompt_bytes": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "limit_credits": {
                        "type": "string",
                        "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                        "maxLength": 64
                      },
                      "section_bytes": {
                        "type": "object",
                        "required": [],
                        "properties": {
                          "spec": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "intent": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "input_contract": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "output_contract": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "acceptance_suite": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "research_evidence": {
                            "type": "integer",
                            "minimum": 0
                          }
                        },
                        "additionalProperties": false
                      },
                      "output_token_cap": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "estimated_credits": {
                        "type": "string",
                        "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                        "maxLength": 64
                      },
                      "input_token_bound": {
                        "type": "integer",
                        "minimum": 0
                      }
                    },
                    "additionalProperties": false
                  },
                  "limit_credits": {
                    "type": "string",
                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                    "maxLength": 64
                  },
                  "estimated_credits": {
                    "type": "string",
                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                    "maxLength": 64
                  },
                  "missing_categories": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 64
                    },
                    "maxItems": 10,
                    "uniqueItems": true
                  },
                  "retry_after_seconds": {
                    "type": "integer",
                    "maximum": 86400,
                    "minimum": 1
                  }
                },
                "additionalProperties": false
              }
            ]
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "bind_recipe_resource",
          "title": "Bind a Recipe Acceptance Resource",
          "description": "Approve one exact frozen resource selector for a supervised acceptance handoff.",
          "inputSchema": {
            "type": "object",
            "required": [
              "build_ref",
              "revision",
              "idempotency_key",
              "handoff_ref",
              "requirement_id"
            ],
            "properties": {
              "revision": {
                "type": "string",
                "pattern": "^[0-9a-f]{64}$",
                "maxLength": 64
              },
              "build_ref": {
                "type": "string",
                "maxLength": 4096,
                "minLength": 1
              },
              "handoff_ref": {
                "type": "string",
                "maxLength": 4096,
                "minLength": 1
              },
              "requirement_id": {
                "type": "string",
                "pattern": "^[0-9a-f]{32}$"
              },
              "idempotency_key": {
                "type": "string",
                "pattern": "^[\\x20-\\x7e]+$",
                "maxLength": 200,
                "minLength": 1
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "oneOf": [
              {
                "type": "object",
                "required": [
                  "revision",
                  "normalization_diff",
                  "findings",
                  "qualification_invalidated",
                  "budget_superseded"
                ],
                "properties": {
                  "handoff": {
                    "type": "object",
                    "required": [
                      "handoff_ref",
                      "activity_ref",
                      "revision",
                      "status",
                      "effect_digest",
                      "reason",
                      "required_decisions",
                      "effects",
                      "expires_at",
                      "action_url",
                      "resume"
                    ],
                    "properties": {
                      "reason": {
                        "type": "string",
                        "maxLength": 500
                      },
                      "resume": {
                        "type": "object",
                        "required": [
                          "tool",
                          "operation"
                        ],
                        "properties": {
                          "tool": {
                            "const": "update_recipe_build"
                          },
                          "operation": {
                            "const": "resume_activity"
                          }
                        },
                        "additionalProperties": false
                      },
                      "status": {
                        "enum": [
                          "pending",
                          "approved",
                          "cancelled",
                          "expired",
                          "consumed"
                        ]
                      },
                      "effects": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "required": [
                            "node_id",
                            "node_type",
                            "execution_count",
                            "details"
                          ],
                          "properties": {
                            "details": {
                              "type": "object",
                              "required": [],
                              "properties": {
                                "to": {},
                                "name": {},
                                "query": {},
                                "title": {},
                                "top_k": {},
                                "format": {},
                                "params": {},
                                "prompt": {},
                                "source": {},
                                "options": {},
                                "sources": {},
                                "subject": {},
                                "duration": {},
                                "filename": {},
                                "html_only": {},
                                "max_chunks": {},
                                "visibility": {},
                                "folder_name": {},
                                "folder_ulid": {},
                                "tool_groups": {},
                                "pin_revision": {},
                                "body_template": {},
                                "input_mapping": {},
                                "nested_effects": {},
                                "outcome_rubric": {},
                                "system_message": {},
                                "additional_text": {},
                                "score_threshold": {},
                                "destination_mode": {},
                                "preamble_enabled": {},
                                "child_recipe_ulid": {},
                                "child_revision_sha": {},
                                "local_conflict_mode": {},
                                "outcome_description": {},
                                "external_target_ulid": {},
                                "output_conflict_mode": {},
                                "external_conflict_mode": {},
                                "outcome_max_iterations": {}
                              },
                              "additionalProperties": false
                            },
                            "node_id": {
                              "type": "string",
                              "maxLength": 128
                            },
                            "node_type": {
                              "type": "string",
                              "maxLength": 64
                            },
                            "execution_count": {
                              "type": "integer",
                              "minimum": 0
                            }
                          },
                          "additionalProperties": false
                        },
                        "maxItems": 100
                      },
                      "revision": {
                        "type": "string",
                        "pattern": "^[0-9a-f]{64}$",
                        "maxLength": 64
                      },
                      "resources": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "required": [
                            "requirement_id",
                            "node_id",
                            "node_type",
                            "node_path",
                            "qualification_route",
                            "reason",
                            "required_decision",
                            "resource_paths",
                            "parameter_digest",
                            "binding_status"
                          ],
                          "properties": {
                            "reason": {
                              "type": "string",
                              "maxLength": 128
                            },
                            "node_id": {
                              "type": "string",
                              "maxLength": 128
                            },
                            "node_path": {
                              "type": "array",
                              "items": {
                                "type": [
                                  "string",
                                  "integer"
                                ]
                              },
                              "maxItems": 32
                            },
                            "node_type": {
                              "type": "string",
                              "maxLength": 64
                            },
                            "binding_status": {
                              "enum": [
                                "required",
                                "bound"
                              ]
                            },
                            "requirement_id": {
                              "type": "string",
                              "pattern": "^[0-9a-f]{32}$"
                            },
                            "resource_paths": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "maxLength": 256
                              },
                              "maxItems": 8
                            },
                            "parameter_digest": {
                              "type": "string",
                              "pattern": "^[0-9a-f]{64}$",
                              "maxLength": 64
                            },
                            "required_decision": {
                              "type": "string",
                              "maxLength": 128
                            },
                            "qualification_route": {
                              "enum": [
                                "conditional",
                                "supervised"
                              ]
                            }
                          },
                          "additionalProperties": false
                        },
                        "maxItems": 100
                      },
                      "action_url": {
                        "type": "string",
                        "maxLength": 2048,
                        "minLength": 1
                      },
                      "expires_at": {
                        "type": "string",
                        "format": "date-time",
                        "maxLength": 64
                      },
                      "handoff_ref": {
                        "type": "string",
                        "maxLength": 4096,
                        "minLength": 1
                      },
                      "activity_ref": {
                        "type": "string",
                        "maxLength": 4096,
                        "minLength": 1
                      },
                      "effect_digest": {
                        "type": "string",
                        "pattern": "^[0-9a-f]{64}$",
                        "maxLength": 64
                      },
                      "required_decisions": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "maxLength": 128
                        },
                        "maxItems": 100,
                        "uniqueItems": true
                      }
                    },
                    "additionalProperties": false
                  },
                  "outcome": {
                    "enum": [
                      "resource_bound",
                      "activity_resumed",
                      "activity_cancelled"
                    ]
                  },
                  "findings": {
                    "type": "array",
                    "maxItems": 0
                  },
                  "revision": {
                    "type": "string",
                    "pattern": "^[0-9a-f]{64}$",
                    "maxLength": 64
                  },
                  "truncation": {
                    "type": "object",
                    "required": [
                      "applied",
                      "reason",
                      "omitted_items",
                      "truncated_values",
                      "original_result_bytes"
                    ],
                    "properties": {
                      "reason": {
                        "const": "response_size_limit"
                      },
                      "applied": {
                        "const": true
                      },
                      "omitted_items": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "truncated_values": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "original_result_bytes": {
                        "type": "integer",
                        "minimum": 1
                      }
                    },
                    "additionalProperties": false
                  },
                  "activity_ref": {
                    "type": "string",
                    "maxLength": 4096,
                    "minLength": 1
                  },
                  "activity_state": {
                    "enum": [
                      "queued",
                      "running",
                      "blocked",
                      "done",
                      "failed",
                      "cancelled"
                    ]
                  },
                  "budget_superseded": {
                    "type": "boolean"
                  },
                  "normalization_diff": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "op",
                        "changed"
                      ],
                      "properties": {
                        "op": {
                          "type": "string",
                          "maxLength": 64
                        },
                        "changed": {
                          "type": "boolean"
                        }
                      },
                      "additionalProperties": false
                    },
                    "maxItems": 25
                  },
                  "qualification_invalidated": {
                    "type": "boolean"
                  }
                }
              },
              {
                "type": "object",
                "required": [
                  "error"
                ],
                "properties": {
                  "hint": {
                    "type": "string",
                    "maxLength": 240
                  },
                  "error": {
                    "enum": [
                      "not_found",
                      "invalid_reference",
                      "invalid_params",
                      "revision_conflict",
                      "idempotency_conflict",
                      "document_too_large",
                      "payload_too_large",
                      "chunk_sequence_invalid",
                      "chunk_digest_mismatch",
                      "chunk_expired",
                      "invalid_cursor",
                      "suite_duplicate_case_id",
                      "suite_unresolved_pair",
                      "suite_schema_invalid",
                      "suite_missing_categories",
                      "suite_weak_normal_oracle",
                      "suite_too_large",
                      "unknown_case_id",
                      "duplicate_case_id",
                      "incomplete_case_selection",
                      "unsupported_node_kind",
                      "research_required",
                      "review_required",
                      "acceptance_required",
                      "qualification_stale",
                      "budget_not_approved",
                      "budget_exhausted",
                      "budget_superseded",
                      "budget_capability_consumed",
                      "budget_capability_expired",
                      "acceptance_case_cost_exceeded",
                      "authoring_budget_exceeded",
                      "authoring_grant_not_active",
                      "insufficient_credits",
                      "billing_anomaly",
                      "activity_stalled",
                      "activity_in_flight",
                      "handoff_approval_required",
                      "handoff_expired",
                      "handoff_not_pending",
                      "handoff_stale",
                      "handoff_disclosure_incomplete",
                      "feature_unavailable",
                      "resource_unavailable",
                      "resource_binding_required",
                      "resource_requirement_not_found",
                      "activity_not_cancellable",
                      "quota_exceeded",
                      "rate_limited",
                      "already_published",
                      "safety_locked",
                      "build_terminal",
                      "commit_capability_expired",
                      "account_unavailable",
                      "limit_unavailable"
                    ]
                  },
                  "field": {
                    "type": "string",
                    "maxLength": 64
                  },
                  "issue": {
                    "type": "object",
                    "required": [
                      "code",
                      "path"
                    ],
                    "properties": {
                      "code": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "path": {
                        "type": "string",
                        "maxLength": 512
                      },
                      "type": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "field": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "operator": {
                        "type": "string",
                        "maxLength": 64
                      }
                    },
                    "additionalProperties": false
                  },
                  "case_id": {
                    "type": "string",
                    "maxLength": 64,
                    "minLength": 1
                  },
                  "truncation": {
                    "type": "object",
                    "required": [
                      "applied",
                      "reason",
                      "omitted_items",
                      "truncated_values",
                      "original_result_bytes"
                    ],
                    "properties": {
                      "reason": {
                        "const": "response_size_limit"
                      },
                      "applied": {
                        "const": true
                      },
                      "omitted_items": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "truncated_values": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "original_result_bytes": {
                        "type": "integer",
                        "minimum": 1
                      }
                    },
                    "additionalProperties": false
                  },
                  "repair_hint": {
                    "type": "string",
                    "maxLength": 500
                  },
                  "review_cost": {
                    "type": "object",
                    "required": [
                      "estimated_credits",
                      "limit_credits",
                      "provider",
                      "model",
                      "basis",
                      "input_token_bound",
                      "output_token_cap",
                      "prompt_bytes",
                      "section_bytes"
                    ],
                    "properties": {
                      "basis": {
                        "const": "utf8_byte_upper_bound"
                      },
                      "model": {
                        "type": "string",
                        "maxLength": 200
                      },
                      "provider": {
                        "type": "string",
                        "maxLength": 200
                      },
                      "prompt_bytes": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "limit_credits": {
                        "type": "string",
                        "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                        "maxLength": 64
                      },
                      "section_bytes": {
                        "type": "object",
                        "required": [],
                        "properties": {
                          "spec": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "intent": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "input_contract": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "output_contract": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "acceptance_suite": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "research_evidence": {
                            "type": "integer",
                            "minimum": 0
                          }
                        },
                        "additionalProperties": false
                      },
                      "output_token_cap": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "estimated_credits": {
                        "type": "string",
                        "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                        "maxLength": 64
                      },
                      "input_token_bound": {
                        "type": "integer",
                        "minimum": 0
                      }
                    },
                    "additionalProperties": false
                  },
                  "limit_credits": {
                    "type": "string",
                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                    "maxLength": 64
                  },
                  "estimated_credits": {
                    "type": "string",
                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                    "maxLength": 64
                  },
                  "missing_categories": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 64
                    },
                    "maxItems": 10,
                    "uniqueItems": true
                  },
                  "retry_after_seconds": {
                    "type": "integer",
                    "maximum": 86400,
                    "minimum": 1
                  }
                },
                "additionalProperties": false
              }
            ]
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "cancel_recipe_activity",
          "title": "Cancel a Recipe Acceptance Activity",
          "description": "Cancel one supervised acceptance activity. Cancellation is irreversible.",
          "inputSchema": {
            "type": "object",
            "required": [
              "build_ref",
              "revision",
              "idempotency_key",
              "handoff_ref",
              "activity_ref"
            ],
            "properties": {
              "revision": {
                "type": "string",
                "pattern": "^[0-9a-f]{64}$",
                "maxLength": 64
              },
              "build_ref": {
                "type": "string",
                "maxLength": 4096,
                "minLength": 1
              },
              "handoff_ref": {
                "type": "string",
                "maxLength": 4096,
                "minLength": 1
              },
              "activity_ref": {
                "type": "string",
                "maxLength": 4096,
                "minLength": 1
              },
              "idempotency_key": {
                "type": "string",
                "pattern": "^[\\x20-\\x7e]+$",
                "maxLength": 200,
                "minLength": 1
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "oneOf": [
              {
                "type": "object",
                "required": [
                  "revision",
                  "normalization_diff",
                  "findings",
                  "qualification_invalidated",
                  "budget_superseded"
                ],
                "properties": {
                  "handoff": {
                    "type": "object",
                    "required": [
                      "handoff_ref",
                      "activity_ref",
                      "revision",
                      "status",
                      "effect_digest",
                      "reason",
                      "required_decisions",
                      "effects",
                      "expires_at",
                      "action_url",
                      "resume"
                    ],
                    "properties": {
                      "reason": {
                        "type": "string",
                        "maxLength": 500
                      },
                      "resume": {
                        "type": "object",
                        "required": [
                          "tool",
                          "operation"
                        ],
                        "properties": {
                          "tool": {
                            "const": "update_recipe_build"
                          },
                          "operation": {
                            "const": "resume_activity"
                          }
                        },
                        "additionalProperties": false
                      },
                      "status": {
                        "enum": [
                          "pending",
                          "approved",
                          "cancelled",
                          "expired",
                          "consumed"
                        ]
                      },
                      "effects": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "required": [
                            "node_id",
                            "node_type",
                            "execution_count",
                            "details"
                          ],
                          "properties": {
                            "details": {
                              "type": "object",
                              "required": [],
                              "properties": {
                                "to": {},
                                "name": {},
                                "query": {},
                                "title": {},
                                "top_k": {},
                                "format": {},
                                "params": {},
                                "prompt": {},
                                "source": {},
                                "options": {},
                                "sources": {},
                                "subject": {},
                                "duration": {},
                                "filename": {},
                                "html_only": {},
                                "max_chunks": {},
                                "visibility": {},
                                "folder_name": {},
                                "folder_ulid": {},
                                "tool_groups": {},
                                "pin_revision": {},
                                "body_template": {},
                                "input_mapping": {},
                                "nested_effects": {},
                                "outcome_rubric": {},
                                "system_message": {},
                                "additional_text": {},
                                "score_threshold": {},
                                "destination_mode": {},
                                "preamble_enabled": {},
                                "child_recipe_ulid": {},
                                "child_revision_sha": {},
                                "local_conflict_mode": {},
                                "outcome_description": {},
                                "external_target_ulid": {},
                                "output_conflict_mode": {},
                                "external_conflict_mode": {},
                                "outcome_max_iterations": {}
                              },
                              "additionalProperties": false
                            },
                            "node_id": {
                              "type": "string",
                              "maxLength": 128
                            },
                            "node_type": {
                              "type": "string",
                              "maxLength": 64
                            },
                            "execution_count": {
                              "type": "integer",
                              "minimum": 0
                            }
                          },
                          "additionalProperties": false
                        },
                        "maxItems": 100
                      },
                      "revision": {
                        "type": "string",
                        "pattern": "^[0-9a-f]{64}$",
                        "maxLength": 64
                      },
                      "resources": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "required": [
                            "requirement_id",
                            "node_id",
                            "node_type",
                            "node_path",
                            "qualification_route",
                            "reason",
                            "required_decision",
                            "resource_paths",
                            "parameter_digest",
                            "binding_status"
                          ],
                          "properties": {
                            "reason": {
                              "type": "string",
                              "maxLength": 128
                            },
                            "node_id": {
                              "type": "string",
                              "maxLength": 128
                            },
                            "node_path": {
                              "type": "array",
                              "items": {
                                "type": [
                                  "string",
                                  "integer"
                                ]
                              },
                              "maxItems": 32
                            },
                            "node_type": {
                              "type": "string",
                              "maxLength": 64
                            },
                            "binding_status": {
                              "enum": [
                                "required",
                                "bound"
                              ]
                            },
                            "requirement_id": {
                              "type": "string",
                              "pattern": "^[0-9a-f]{32}$"
                            },
                            "resource_paths": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "maxLength": 256
                              },
                              "maxItems": 8
                            },
                            "parameter_digest": {
                              "type": "string",
                              "pattern": "^[0-9a-f]{64}$",
                              "maxLength": 64
                            },
                            "required_decision": {
                              "type": "string",
                              "maxLength": 128
                            },
                            "qualification_route": {
                              "enum": [
                                "conditional",
                                "supervised"
                              ]
                            }
                          },
                          "additionalProperties": false
                        },
                        "maxItems": 100
                      },
                      "action_url": {
                        "type": "string",
                        "maxLength": 2048,
                        "minLength": 1
                      },
                      "expires_at": {
                        "type": "string",
                        "format": "date-time",
                        "maxLength": 64
                      },
                      "handoff_ref": {
                        "type": "string",
                        "maxLength": 4096,
                        "minLength": 1
                      },
                      "activity_ref": {
                        "type": "string",
                        "maxLength": 4096,
                        "minLength": 1
                      },
                      "effect_digest": {
                        "type": "string",
                        "pattern": "^[0-9a-f]{64}$",
                        "maxLength": 64
                      },
                      "required_decisions": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "maxLength": 128
                        },
                        "maxItems": 100,
                        "uniqueItems": true
                      }
                    },
                    "additionalProperties": false
                  },
                  "outcome": {
                    "enum": [
                      "resource_bound",
                      "activity_resumed",
                      "activity_cancelled"
                    ]
                  },
                  "findings": {
                    "type": "array",
                    "maxItems": 0
                  },
                  "revision": {
                    "type": "string",
                    "pattern": "^[0-9a-f]{64}$",
                    "maxLength": 64
                  },
                  "truncation": {
                    "type": "object",
                    "required": [
                      "applied",
                      "reason",
                      "omitted_items",
                      "truncated_values",
                      "original_result_bytes"
                    ],
                    "properties": {
                      "reason": {
                        "const": "response_size_limit"
                      },
                      "applied": {
                        "const": true
                      },
                      "omitted_items": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "truncated_values": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "original_result_bytes": {
                        "type": "integer",
                        "minimum": 1
                      }
                    },
                    "additionalProperties": false
                  },
                  "activity_ref": {
                    "type": "string",
                    "maxLength": 4096,
                    "minLength": 1
                  },
                  "activity_state": {
                    "enum": [
                      "queued",
                      "running",
                      "blocked",
                      "done",
                      "failed",
                      "cancelled"
                    ]
                  },
                  "budget_superseded": {
                    "type": "boolean"
                  },
                  "normalization_diff": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "op",
                        "changed"
                      ],
                      "properties": {
                        "op": {
                          "type": "string",
                          "maxLength": 64
                        },
                        "changed": {
                          "type": "boolean"
                        }
                      },
                      "additionalProperties": false
                    },
                    "maxItems": 25
                  },
                  "qualification_invalidated": {
                    "type": "boolean"
                  }
                }
              },
              {
                "type": "object",
                "required": [
                  "error"
                ],
                "properties": {
                  "hint": {
                    "type": "string",
                    "maxLength": 240
                  },
                  "error": {
                    "enum": [
                      "not_found",
                      "invalid_reference",
                      "invalid_params",
                      "revision_conflict",
                      "idempotency_conflict",
                      "document_too_large",
                      "payload_too_large",
                      "chunk_sequence_invalid",
                      "chunk_digest_mismatch",
                      "chunk_expired",
                      "invalid_cursor",
                      "suite_duplicate_case_id",
                      "suite_unresolved_pair",
                      "suite_schema_invalid",
                      "suite_missing_categories",
                      "suite_weak_normal_oracle",
                      "suite_too_large",
                      "unknown_case_id",
                      "duplicate_case_id",
                      "incomplete_case_selection",
                      "unsupported_node_kind",
                      "research_required",
                      "review_required",
                      "acceptance_required",
                      "qualification_stale",
                      "budget_not_approved",
                      "budget_exhausted",
                      "budget_superseded",
                      "budget_capability_consumed",
                      "budget_capability_expired",
                      "acceptance_case_cost_exceeded",
                      "authoring_budget_exceeded",
                      "authoring_grant_not_active",
                      "insufficient_credits",
                      "billing_anomaly",
                      "activity_stalled",
                      "activity_in_flight",
                      "handoff_approval_required",
                      "handoff_expired",
                      "handoff_not_pending",
                      "handoff_stale",
                      "handoff_disclosure_incomplete",
                      "feature_unavailable",
                      "resource_unavailable",
                      "resource_binding_required",
                      "resource_requirement_not_found",
                      "activity_not_cancellable",
                      "quota_exceeded",
                      "rate_limited",
                      "already_published",
                      "safety_locked",
                      "build_terminal",
                      "commit_capability_expired",
                      "account_unavailable",
                      "limit_unavailable"
                    ]
                  },
                  "field": {
                    "type": "string",
                    "maxLength": 64
                  },
                  "issue": {
                    "type": "object",
                    "required": [
                      "code",
                      "path"
                    ],
                    "properties": {
                      "code": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "path": {
                        "type": "string",
                        "maxLength": 512
                      },
                      "type": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "field": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "operator": {
                        "type": "string",
                        "maxLength": 64
                      }
                    },
                    "additionalProperties": false
                  },
                  "case_id": {
                    "type": "string",
                    "maxLength": 64,
                    "minLength": 1
                  },
                  "truncation": {
                    "type": "object",
                    "required": [
                      "applied",
                      "reason",
                      "omitted_items",
                      "truncated_values",
                      "original_result_bytes"
                    ],
                    "properties": {
                      "reason": {
                        "const": "response_size_limit"
                      },
                      "applied": {
                        "const": true
                      },
                      "omitted_items": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "truncated_values": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "original_result_bytes": {
                        "type": "integer",
                        "minimum": 1
                      }
                    },
                    "additionalProperties": false
                  },
                  "repair_hint": {
                    "type": "string",
                    "maxLength": 500
                  },
                  "review_cost": {
                    "type": "object",
                    "required": [
                      "estimated_credits",
                      "limit_credits",
                      "provider",
                      "model",
                      "basis",
                      "input_token_bound",
                      "output_token_cap",
                      "prompt_bytes",
                      "section_bytes"
                    ],
                    "properties": {
                      "basis": {
                        "const": "utf8_byte_upper_bound"
                      },
                      "model": {
                        "type": "string",
                        "maxLength": 200
                      },
                      "provider": {
                        "type": "string",
                        "maxLength": 200
                      },
                      "prompt_bytes": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "limit_credits": {
                        "type": "string",
                        "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                        "maxLength": 64
                      },
                      "section_bytes": {
                        "type": "object",
                        "required": [],
                        "properties": {
                          "spec": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "intent": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "input_contract": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "output_contract": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "acceptance_suite": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "research_evidence": {
                            "type": "integer",
                            "minimum": 0
                          }
                        },
                        "additionalProperties": false
                      },
                      "output_token_cap": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "estimated_credits": {
                        "type": "string",
                        "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                        "maxLength": 64
                      },
                      "input_token_bound": {
                        "type": "integer",
                        "minimum": 0
                      }
                    },
                    "additionalProperties": false
                  },
                  "limit_credits": {
                    "type": "string",
                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                    "maxLength": 64
                  },
                  "estimated_credits": {
                    "type": "string",
                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                    "maxLength": 64
                  },
                  "missing_categories": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 64
                    },
                    "maxItems": 10,
                    "uniqueItems": true
                  },
                  "retry_after_seconds": {
                    "type": "integer",
                    "maximum": 86400,
                    "minimum": 1
                  }
                },
                "additionalProperties": false
              }
            ]
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": true
          }
        },
        {
          "name": "check_recipe_build",
          "title": "Check a StewAI Recipe Build",
          "description": "Run deterministic lint, policy, fixture, and compiler checks on one private build.",
          "inputSchema": {
            "type": "object",
            "required": [
              "build_ref"
            ],
            "properties": {
              "fixtures": {
                "type": "object",
                "maxProperties": 20,
                "additionalProperties": {
                  "oneOf": [
                    {
                      "type": "string",
                      "maxLength": 32768
                    },
                    {
                      "type": "object"
                    },
                    {
                      "type": "array"
                    },
                    {
                      "type": "number"
                    },
                    {
                      "type": "boolean"
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "build_ref": {
                "type": "string",
                "maxLength": 4096,
                "minLength": 1
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "oneOf": [
              {
                "type": "object",
                "required": [
                  "valid",
                  "draft_valid",
                  "automatic_acceptance_eligible",
                  "qualification_route",
                  "qualification_requirements",
                  "effect_digest",
                  "findings",
                  "rendered",
                  "gate_results",
                  "compute_results",
                  "fan_out",
                  "unsupported_nodes",
                  "dsl_version",
                  "catalog_version",
                  "guidance_version"
                ],
                "properties": {
                  "valid": {
                    "type": "boolean"
                  },
                  "fan_out": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "findings": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "code",
                        "severity",
                        "step_id",
                        "field_path",
                        "message",
                        "fix_hint"
                      ],
                      "properties": {
                        "code": {
                          "type": "string",
                          "maxLength": 64
                        },
                        "message": {
                          "type": "string",
                          "maxLength": 1000
                        },
                        "step_id": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "maxLength": 128
                        },
                        "fix_hint": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "maxLength": 1000
                        },
                        "severity": {
                          "enum": [
                            "info",
                            "warning",
                            "error"
                          ]
                        },
                        "field_path": {
                          "type": [
                            "array",
                            "null"
                          ],
                          "items": {
                            "type": [
                              "string",
                              "integer"
                            ]
                          },
                          "maxItems": 32
                        },
                        "declared_schema": {
                          "type": "object",
                          "maxProperties": 100
                        },
                        "inference_source": {
                          "type": "object",
                          "required": [
                            "kind",
                            "step_id",
                            "field_path"
                          ],
                          "properties": {
                            "kind": {
                              "enum": [
                                "recipe_input_max_length",
                                "recipe_input_default_text_contract",
                                "producer_response_schema",
                                "registered_schema",
                                "recipe_output_default_string"
                              ]
                            },
                            "step_id": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "maxLength": 128
                            },
                            "field_path": {
                              "type": "array",
                              "items": {
                                "type": [
                                  "string",
                                  "integer"
                                ]
                              },
                              "maxItems": 32
                            }
                          },
                          "additionalProperties": false
                        },
                        "missing_producer": {
                          "type": "string",
                          "maxLength": 128
                        },
                        "choices_truncated": {
                          "type": "boolean"
                        },
                        "executable_schema": {
                          "type": "object",
                          "maxProperties": 100
                        },
                        "difference_pointer": {
                          "type": "string",
                          "maxLength": 512
                        },
                        "suggested_mutation": {
                          "type": "object",
                          "required": [
                            "operation",
                            "target",
                            "step_id",
                            "field_path",
                            "replacement"
                          ],
                          "properties": {
                            "target": {
                              "enum": [
                                "executable_recipe",
                                "authoring_contract"
                              ]
                            },
                            "step_id": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "maxLength": 128
                            },
                            "operation": {
                              "enum": [
                                "upsert_node",
                                "set_contracts"
                              ]
                            },
                            "field_path": {
                              "type": "array",
                              "items": {
                                "type": [
                                  "string",
                                  "integer"
                                ]
                              },
                              "maxItems": 32
                            },
                            "replacement": {}
                          },
                          "additionalProperties": false
                        },
                        "valid_producer_choices": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "maxLength": 128
                          },
                          "maxItems": 50
                        }
                      },
                      "additionalProperties": false
                    },
                    "maxItems": 200
                  },
                  "rendered": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "path",
                        "text"
                      ],
                      "properties": {
                        "path": {
                          "type": "array",
                          "items": {
                            "type": [
                              "string",
                              "integer"
                            ]
                          },
                          "maxItems": 32
                        },
                        "text": {
                          "type": "string",
                          "maxLength": 4096
                        }
                      },
                      "additionalProperties": false
                    },
                    "maxItems": 100
                  },
                  "versions": {
                    "type": "object",
                    "required": [
                      "archetypes",
                      "capabilities",
                      "checks",
                      "guidance",
                      "models"
                    ],
                    "properties": {
                      "checks": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "models": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "guidance": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "archetypes": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "capabilities": {
                        "type": "string",
                        "maxLength": 64
                      }
                    },
                    "additionalProperties": false
                  },
                  "truncation": {
                    "type": "object",
                    "required": [
                      "applied",
                      "reason",
                      "omitted_items",
                      "truncated_values",
                      "original_result_bytes"
                    ],
                    "properties": {
                      "reason": {
                        "const": "response_size_limit"
                      },
                      "applied": {
                        "const": true
                      },
                      "omitted_items": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "truncated_values": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "original_result_bytes": {
                        "type": "integer",
                        "minimum": 1
                      }
                    },
                    "additionalProperties": false
                  },
                  "draft_valid": {
                    "type": "boolean"
                  },
                  "dsl_version": {
                    "type": "integer",
                    "minimum": 2
                  },
                  "gate_results": {
                    "type": "array",
                    "maxItems": 0
                  },
                  "effect_digest": {
                    "type": "string",
                    "pattern": "^[0-9a-f]{64}$",
                    "maxLength": 64
                  },
                  "catalog_version": {
                    "type": "string",
                    "maxLength": 64
                  },
                  "compute_results": {
                    "type": "array",
                    "maxItems": 0
                  },
                  "guidance_version": {
                    "type": "string",
                    "maxLength": 64
                  },
                  "unsupported_nodes": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 64
                    },
                    "maxItems": 24,
                    "uniqueItems": true
                  },
                  "qualification_route": {
                    "enum": [
                      "automatic",
                      "conditional",
                      "supervised"
                    ]
                  },
                  "qualification_requirements": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "node_id",
                        "node_type",
                        "node_path",
                        "qualification_route",
                        "reason",
                        "required_decision",
                        "resource_paths",
                        "parameter_digest"
                      ],
                      "properties": {
                        "reason": {
                          "type": "string",
                          "maxLength": 128
                        },
                        "node_id": {
                          "type": "string",
                          "maxLength": 128
                        },
                        "node_path": {
                          "type": "array",
                          "items": {
                            "type": [
                              "string",
                              "integer"
                            ]
                          },
                          "maxItems": 32
                        },
                        "node_type": {
                          "type": "string",
                          "maxLength": 64
                        },
                        "resource_paths": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "maxLength": 256
                          },
                          "maxItems": 8
                        },
                        "parameter_digest": {
                          "type": "string",
                          "pattern": "^[0-9a-f]{64}$",
                          "maxLength": 64
                        },
                        "required_decision": {
                          "type": "string",
                          "maxLength": 128
                        },
                        "qualification_route": {
                          "enum": [
                            "conditional",
                            "supervised"
                          ]
                        }
                      },
                      "additionalProperties": false
                    },
                    "maxItems": 100
                  },
                  "automatic_acceptance_eligible": {
                    "type": "boolean"
                  }
                }
              },
              {
                "type": "object",
                "required": [
                  "error"
                ],
                "properties": {
                  "hint": {
                    "type": "string",
                    "maxLength": 240
                  },
                  "error": {
                    "enum": [
                      "not_found",
                      "invalid_reference",
                      "invalid_params",
                      "revision_conflict",
                      "idempotency_conflict",
                      "document_too_large",
                      "payload_too_large",
                      "chunk_sequence_invalid",
                      "chunk_digest_mismatch",
                      "chunk_expired",
                      "invalid_cursor",
                      "suite_duplicate_case_id",
                      "suite_unresolved_pair",
                      "suite_schema_invalid",
                      "suite_missing_categories",
                      "suite_weak_normal_oracle",
                      "suite_too_large",
                      "unknown_case_id",
                      "duplicate_case_id",
                      "incomplete_case_selection",
                      "unsupported_node_kind",
                      "research_required",
                      "review_required",
                      "acceptance_required",
                      "qualification_stale",
                      "budget_not_approved",
                      "budget_exhausted",
                      "budget_superseded",
                      "budget_capability_consumed",
                      "budget_capability_expired",
                      "acceptance_case_cost_exceeded",
                      "authoring_budget_exceeded",
                      "authoring_grant_not_active",
                      "insufficient_credits",
                      "billing_anomaly",
                      "activity_stalled",
                      "activity_in_flight",
                      "handoff_approval_required",
                      "handoff_expired",
                      "handoff_not_pending",
                      "handoff_stale",
                      "handoff_disclosure_incomplete",
                      "feature_unavailable",
                      "resource_unavailable",
                      "resource_binding_required",
                      "resource_requirement_not_found",
                      "activity_not_cancellable",
                      "quota_exceeded",
                      "rate_limited",
                      "already_published",
                      "safety_locked",
                      "build_terminal",
                      "commit_capability_expired",
                      "account_unavailable",
                      "limit_unavailable"
                    ]
                  },
                  "field": {
                    "type": "string",
                    "maxLength": 64
                  },
                  "issue": {
                    "type": "object",
                    "required": [
                      "code",
                      "path"
                    ],
                    "properties": {
                      "code": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "path": {
                        "type": "string",
                        "maxLength": 512
                      },
                      "type": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "field": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "operator": {
                        "type": "string",
                        "maxLength": 64
                      }
                    },
                    "additionalProperties": false
                  },
                  "case_id": {
                    "type": "string",
                    "maxLength": 64,
                    "minLength": 1
                  },
                  "truncation": {
                    "type": "object",
                    "required": [
                      "applied",
                      "reason",
                      "omitted_items",
                      "truncated_values",
                      "original_result_bytes"
                    ],
                    "properties": {
                      "reason": {
                        "const": "response_size_limit"
                      },
                      "applied": {
                        "const": true
                      },
                      "omitted_items": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "truncated_values": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "original_result_bytes": {
                        "type": "integer",
                        "minimum": 1
                      }
                    },
                    "additionalProperties": false
                  },
                  "repair_hint": {
                    "type": "string",
                    "maxLength": 500
                  },
                  "review_cost": {
                    "type": "object",
                    "required": [
                      "estimated_credits",
                      "limit_credits",
                      "provider",
                      "model",
                      "basis",
                      "input_token_bound",
                      "output_token_cap",
                      "prompt_bytes",
                      "section_bytes"
                    ],
                    "properties": {
                      "basis": {
                        "const": "utf8_byte_upper_bound"
                      },
                      "model": {
                        "type": "string",
                        "maxLength": 200
                      },
                      "provider": {
                        "type": "string",
                        "maxLength": 200
                      },
                      "prompt_bytes": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "limit_credits": {
                        "type": "string",
                        "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                        "maxLength": 64
                      },
                      "section_bytes": {
                        "type": "object",
                        "required": [],
                        "properties": {
                          "spec": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "intent": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "input_contract": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "output_contract": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "acceptance_suite": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "research_evidence": {
                            "type": "integer",
                            "minimum": 0
                          }
                        },
                        "additionalProperties": false
                      },
                      "output_token_cap": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "estimated_credits": {
                        "type": "string",
                        "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                        "maxLength": 64
                      },
                      "input_token_bound": {
                        "type": "integer",
                        "minimum": 0
                      }
                    },
                    "additionalProperties": false
                  },
                  "limit_credits": {
                    "type": "string",
                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                    "maxLength": 64
                  },
                  "estimated_credits": {
                    "type": "string",
                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                    "maxLength": 64
                  },
                  "missing_categories": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 64
                    },
                    "maxItems": 10,
                    "uniqueItems": true
                  },
                  "retry_after_seconds": {
                    "type": "integer",
                    "maximum": 86400,
                    "minimum": 1
                  }
                },
                "additionalProperties": false
              }
            ]
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "commit_recipe_acceptance_upload",
          "title": "Commit a Recipe Acceptance Upload",
          "description": "Verify and commit one completed chunk upload as the full acceptance suite.",
          "inputSchema": {
            "type": "object",
            "required": [
              "build_ref",
              "revision",
              "idempotency_key",
              "chunk_id",
              "sha256"
            ],
            "properties": {
              "sha256": {
                "type": "string",
                "pattern": "^[0-9a-f]{64}$",
                "maxLength": 64
              },
              "chunk_id": {
                "type": "string",
                "maxLength": 64
              },
              "revision": {
                "type": "string",
                "pattern": "^[0-9a-f]{64}$",
                "maxLength": 64
              },
              "build_ref": {
                "type": "string",
                "maxLength": 4096,
                "minLength": 1
              },
              "idempotency_key": {
                "type": "string",
                "pattern": "^[\\x20-\\x7e]+$",
                "maxLength": 200,
                "minLength": 1
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "oneOf": [
              {
                "type": "object",
                "required": [
                  "revision",
                  "normalization_diff",
                  "findings",
                  "qualification_invalidated",
                  "budget_superseded"
                ],
                "properties": {
                  "handoff": {
                    "type": "object",
                    "required": [
                      "handoff_ref",
                      "activity_ref",
                      "revision",
                      "status",
                      "effect_digest",
                      "reason",
                      "required_decisions",
                      "effects",
                      "expires_at",
                      "action_url",
                      "resume"
                    ],
                    "properties": {
                      "reason": {
                        "type": "string",
                        "maxLength": 500
                      },
                      "resume": {
                        "type": "object",
                        "required": [
                          "tool",
                          "operation"
                        ],
                        "properties": {
                          "tool": {
                            "const": "update_recipe_build"
                          },
                          "operation": {
                            "const": "resume_activity"
                          }
                        },
                        "additionalProperties": false
                      },
                      "status": {
                        "enum": [
                          "pending",
                          "approved",
                          "cancelled",
                          "expired",
                          "consumed"
                        ]
                      },
                      "effects": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "required": [
                            "node_id",
                            "node_type",
                            "execution_count",
                            "details"
                          ],
                          "properties": {
                            "details": {
                              "type": "object",
                              "required": [],
                              "properties": {
                                "to": {},
                                "name": {},
                                "query": {},
                                "title": {},
                                "top_k": {},
                                "format": {},
                                "params": {},
                                "prompt": {},
                                "source": {},
                                "options": {},
                                "sources": {},
                                "subject": {},
                                "duration": {},
                                "filename": {},
                                "html_only": {},
                                "max_chunks": {},
                                "visibility": {},
                                "folder_name": {},
                                "folder_ulid": {},
                                "tool_groups": {},
                                "pin_revision": {},
                                "body_template": {},
                                "input_mapping": {},
                                "nested_effects": {},
                                "outcome_rubric": {},
                                "system_message": {},
                                "additional_text": {},
                                "score_threshold": {},
                                "destination_mode": {},
                                "preamble_enabled": {},
                                "child_recipe_ulid": {},
                                "child_revision_sha": {},
                                "local_conflict_mode": {},
                                "outcome_description": {},
                                "external_target_ulid": {},
                                "output_conflict_mode": {},
                                "external_conflict_mode": {},
                                "outcome_max_iterations": {}
                              },
                              "additionalProperties": false
                            },
                            "node_id": {
                              "type": "string",
                              "maxLength": 128
                            },
                            "node_type": {
                              "type": "string",
                              "maxLength": 64
                            },
                            "execution_count": {
                              "type": "integer",
                              "minimum": 0
                            }
                          },
                          "additionalProperties": false
                        },
                        "maxItems": 100
                      },
                      "revision": {
                        "type": "string",
                        "pattern": "^[0-9a-f]{64}$",
                        "maxLength": 64
                      },
                      "resources": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "required": [
                            "requirement_id",
                            "node_id",
                            "node_type",
                            "node_path",
                            "qualification_route",
                            "reason",
                            "required_decision",
                            "resource_paths",
                            "parameter_digest",
                            "binding_status"
                          ],
                          "properties": {
                            "reason": {
                              "type": "string",
                              "maxLength": 128
                            },
                            "node_id": {
                              "type": "string",
                              "maxLength": 128
                            },
                            "node_path": {
                              "type": "array",
                              "items": {
                                "type": [
                                  "string",
                                  "integer"
                                ]
                              },
                              "maxItems": 32
                            },
                            "node_type": {
                              "type": "string",
                              "maxLength": 64
                            },
                            "binding_status": {
                              "enum": [
                                "required",
                                "bound"
                              ]
                            },
                            "requirement_id": {
                              "type": "string",
                              "pattern": "^[0-9a-f]{32}$"
                            },
                            "resource_paths": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "maxLength": 256
                              },
                              "maxItems": 8
                            },
                            "parameter_digest": {
                              "type": "string",
                              "pattern": "^[0-9a-f]{64}$",
                              "maxLength": 64
                            },
                            "required_decision": {
                              "type": "string",
                              "maxLength": 128
                            },
                            "qualification_route": {
                              "enum": [
                                "conditional",
                                "supervised"
                              ]
                            }
                          },
                          "additionalProperties": false
                        },
                        "maxItems": 100
                      },
                      "action_url": {
                        "type": "string",
                        "maxLength": 2048,
                        "minLength": 1
                      },
                      "expires_at": {
                        "type": "string",
                        "format": "date-time",
                        "maxLength": 64
                      },
                      "handoff_ref": {
                        "type": "string",
                        "maxLength": 4096,
                        "minLength": 1
                      },
                      "activity_ref": {
                        "type": "string",
                        "maxLength": 4096,
                        "minLength": 1
                      },
                      "effect_digest": {
                        "type": "string",
                        "pattern": "^[0-9a-f]{64}$",
                        "maxLength": 64
                      },
                      "required_decisions": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "maxLength": 128
                        },
                        "maxItems": 100,
                        "uniqueItems": true
                      }
                    },
                    "additionalProperties": false
                  },
                  "outcome": {
                    "enum": [
                      "resource_bound",
                      "activity_resumed",
                      "activity_cancelled"
                    ]
                  },
                  "findings": {
                    "type": "array",
                    "maxItems": 0
                  },
                  "revision": {
                    "type": "string",
                    "pattern": "^[0-9a-f]{64}$",
                    "maxLength": 64
                  },
                  "truncation": {
                    "type": "object",
                    "required": [
                      "applied",
                      "reason",
                      "omitted_items",
                      "truncated_values",
                      "original_result_bytes"
                    ],
                    "properties": {
                      "reason": {
                        "const": "response_size_limit"
                      },
                      "applied": {
                        "const": true
                      },
                      "omitted_items": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "truncated_values": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "original_result_bytes": {
                        "type": "integer",
                        "minimum": 1
                      }
                    },
                    "additionalProperties": false
                  },
                  "activity_ref": {
                    "type": "string",
                    "maxLength": 4096,
                    "minLength": 1
                  },
                  "activity_state": {
                    "enum": [
                      "queued",
                      "running",
                      "blocked",
                      "done",
                      "failed",
                      "cancelled"
                    ]
                  },
                  "budget_superseded": {
                    "type": "boolean"
                  },
                  "normalization_diff": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "op",
                        "changed"
                      ],
                      "properties": {
                        "op": {
                          "type": "string",
                          "maxLength": 64
                        },
                        "changed": {
                          "type": "boolean"
                        }
                      },
                      "additionalProperties": false
                    },
                    "maxItems": 25
                  },
                  "qualification_invalidated": {
                    "type": "boolean"
                  }
                }
              },
              {
                "type": "object",
                "required": [
                  "error"
                ],
                "properties": {
                  "hint": {
                    "type": "string",
                    "maxLength": 240
                  },
                  "error": {
                    "enum": [
                      "not_found",
                      "invalid_reference",
                      "invalid_params",
                      "revision_conflict",
                      "idempotency_conflict",
                      "document_too_large",
                      "payload_too_large",
                      "chunk_sequence_invalid",
                      "chunk_digest_mismatch",
                      "chunk_expired",
                      "invalid_cursor",
                      "suite_duplicate_case_id",
                      "suite_unresolved_pair",
                      "suite_schema_invalid",
                      "suite_missing_categories",
                      "suite_weak_normal_oracle",
                      "suite_too_large",
                      "unknown_case_id",
                      "duplicate_case_id",
                      "incomplete_case_selection",
                      "unsupported_node_kind",
                      "research_required",
                      "review_required",
                      "acceptance_required",
                      "qualification_stale",
                      "budget_not_approved",
                      "budget_exhausted",
                      "budget_superseded",
                      "budget_capability_consumed",
                      "budget_capability_expired",
                      "acceptance_case_cost_exceeded",
                      "authoring_budget_exceeded",
                      "authoring_grant_not_active",
                      "insufficient_credits",
                      "billing_anomaly",
                      "activity_stalled",
                      "activity_in_flight",
                      "handoff_approval_required",
                      "handoff_expired",
                      "handoff_not_pending",
                      "handoff_stale",
                      "handoff_disclosure_incomplete",
                      "feature_unavailable",
                      "resource_unavailable",
                      "resource_binding_required",
                      "resource_requirement_not_found",
                      "activity_not_cancellable",
                      "quota_exceeded",
                      "rate_limited",
                      "already_published",
                      "safety_locked",
                      "build_terminal",
                      "commit_capability_expired",
                      "account_unavailable",
                      "limit_unavailable"
                    ]
                  },
                  "field": {
                    "type": "string",
                    "maxLength": 64
                  },
                  "issue": {
                    "type": "object",
                    "required": [
                      "code",
                      "path"
                    ],
                    "properties": {
                      "code": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "path": {
                        "type": "string",
                        "maxLength": 512
                      },
                      "type": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "field": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "operator": {
                        "type": "string",
                        "maxLength": 64
                      }
                    },
                    "additionalProperties": false
                  },
                  "case_id": {
                    "type": "string",
                    "maxLength": 64,
                    "minLength": 1
                  },
                  "truncation": {
                    "type": "object",
                    "required": [
                      "applied",
                      "reason",
                      "omitted_items",
                      "truncated_values",
                      "original_result_bytes"
                    ],
                    "properties": {
                      "reason": {
                        "const": "response_size_limit"
                      },
                      "applied": {
                        "const": true
                      },
                      "omitted_items": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "truncated_values": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "original_result_bytes": {
                        "type": "integer",
                        "minimum": 1
                      }
                    },
                    "additionalProperties": false
                  },
                  "repair_hint": {
                    "type": "string",
                    "maxLength": 500
                  },
                  "review_cost": {
                    "type": "object",
                    "required": [
                      "estimated_credits",
                      "limit_credits",
                      "provider",
                      "model",
                      "basis",
                      "input_token_bound",
                      "output_token_cap",
                      "prompt_bytes",
                      "section_bytes"
                    ],
                    "properties": {
                      "basis": {
                        "const": "utf8_byte_upper_bound"
                      },
                      "model": {
                        "type": "string",
                        "maxLength": 200
                      },
                      "provider": {
                        "type": "string",
                        "maxLength": 200
                      },
                      "prompt_bytes": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "limit_credits": {
                        "type": "string",
                        "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                        "maxLength": 64
                      },
                      "section_bytes": {
                        "type": "object",
                        "required": [],
                        "properties": {
                          "spec": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "intent": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "input_contract": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "output_contract": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "acceptance_suite": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "research_evidence": {
                            "type": "integer",
                            "minimum": 0
                          }
                        },
                        "additionalProperties": false
                      },
                      "output_token_cap": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "estimated_credits": {
                        "type": "string",
                        "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                        "maxLength": 64
                      },
                      "input_token_bound": {
                        "type": "integer",
                        "minimum": 0
                      }
                    },
                    "additionalProperties": false
                  },
                  "limit_credits": {
                    "type": "string",
                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                    "maxLength": 64
                  },
                  "estimated_credits": {
                    "type": "string",
                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                    "maxLength": 64
                  },
                  "missing_categories": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 64
                    },
                    "maxItems": 10,
                    "uniqueItems": true
                  },
                  "retry_after_seconds": {
                    "type": "integer",
                    "maximum": 86400,
                    "minimum": 1
                  }
                },
                "additionalProperties": false
              }
            ]
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": true
          }
        },
        {
          "name": "commit_recipe_build",
          "title": "Commit a Recipe Build",
          "description": "Privately publish one exact fully qualified recipe build revision using its commit capability.",
          "inputSchema": {
            "type": "object",
            "required": [
              "build_ref",
              "revision",
              "idempotency_key",
              "commit_capability"
            ],
            "properties": {
              "revision": {
                "type": "string",
                "pattern": "^[0-9a-f]{64}$",
                "maxLength": 64
              },
              "build_ref": {
                "type": "string",
                "maxLength": 4096,
                "minLength": 1
              },
              "idempotency_key": {
                "type": "string",
                "pattern": "^[\\x20-\\x7e]+$",
                "maxLength": 200,
                "minLength": 1
              },
              "commit_capability": {
                "type": "string",
                "maxLength": 4096,
                "minLength": 1,
                "description": "Required for commit; omit for preflight."
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "oneOf": [
              {
                "type": "object",
                "required": [
                  "commit_capability",
                  "expires_in_seconds",
                  "effects",
                  "evidence"
                ],
                "properties": {
                  "effects": {
                    "type": "array",
                    "items": {
                      "enum": [
                        "create_private_revision_1",
                        "keep_recipe_unlisted",
                        "keep_recipe_unreviewed"
                      ]
                    },
                    "maxItems": 3,
                    "minItems": 3
                  },
                  "evidence": {
                    "type": "object",
                    "required": [
                      "revision",
                      "review",
                      "research",
                      "acceptance",
                      "billing"
                    ],
                    "properties": {
                      "review": {
                        "const": "passed"
                      },
                      "billing": {
                        "const": "settled"
                      },
                      "research": {
                        "enum": [
                          "recorded",
                          "not_required"
                        ]
                      },
                      "revision": {
                        "type": "string",
                        "pattern": "^[0-9a-f]{64}$",
                        "maxLength": 64
                      },
                      "acceptance": {
                        "enum": [
                          "full_suite_passed",
                          "accepted_with_limitations"
                        ]
                      },
                      "accepted_limitations": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "required": [
                            "case_id",
                            "assertion_id",
                            "acknowledgement"
                          ],
                          "properties": {
                            "case_id": {
                              "type": "string",
                              "maxLength": 64
                            },
                            "assertion_id": {
                              "type": "string",
                              "maxLength": 64
                            },
                            "acknowledgement": {
                              "type": "string",
                              "maxLength": 500
                            }
                          },
                          "additionalProperties": false
                        },
                        "maxItems": 10
                      },
                      "human_review_required": {
                        "const": true
                      }
                    },
                    "additionalProperties": false
                  },
                  "truncation": {
                    "type": "object",
                    "required": [
                      "applied",
                      "reason",
                      "omitted_items",
                      "truncated_values",
                      "original_result_bytes"
                    ],
                    "properties": {
                      "reason": {
                        "const": "response_size_limit"
                      },
                      "applied": {
                        "const": true
                      },
                      "omitted_items": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "truncated_values": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "original_result_bytes": {
                        "type": "integer",
                        "minimum": 1
                      }
                    },
                    "additionalProperties": false
                  },
                  "commit_capability": {
                    "type": "string",
                    "maxLength": 4096,
                    "minLength": 1
                  },
                  "expires_in_seconds": {
                    "type": "integer",
                    "maximum": 86400,
                    "minimum": 1
                  }
                }
              },
              {
                "type": "object",
                "required": [
                  "recipe_ulid",
                  "rev",
                  "sha",
                  "visibility",
                  "listed",
                  "editor_url"
                ],
                "properties": {
                  "rev": {
                    "const": 1
                  },
                  "sha": {
                    "type": "string",
                    "pattern": "^[0-9a-f]{64}$",
                    "maxLength": 64
                  },
                  "listed": {
                    "const": false
                  },
                  "evidence": {
                    "type": "object",
                    "required": [
                      "revision",
                      "review",
                      "research",
                      "acceptance",
                      "billing"
                    ],
                    "properties": {
                      "review": {
                        "const": "passed"
                      },
                      "billing": {
                        "const": "settled"
                      },
                      "research": {
                        "enum": [
                          "recorded",
                          "not_required"
                        ]
                      },
                      "revision": {
                        "type": "string",
                        "pattern": "^[0-9a-f]{64}$",
                        "maxLength": 64
                      },
                      "acceptance": {
                        "enum": [
                          "full_suite_passed",
                          "accepted_with_limitations"
                        ]
                      },
                      "accepted_limitations": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "required": [
                            "case_id",
                            "assertion_id",
                            "acknowledgement"
                          ],
                          "properties": {
                            "case_id": {
                              "type": "string",
                              "maxLength": 64
                            },
                            "assertion_id": {
                              "type": "string",
                              "maxLength": 64
                            },
                            "acknowledgement": {
                              "type": "string",
                              "maxLength": 500
                            }
                          },
                          "additionalProperties": false
                        },
                        "maxItems": 10
                      },
                      "human_review_required": {
                        "const": true
                      }
                    },
                    "additionalProperties": false
                  },
                  "runnable": {
                    "not": {}
                  },
                  "editor_url": {
                    "type": "string",
                    "maxLength": 512
                  },
                  "recipe_ref": {
                    "not": {}
                  },
                  "truncation": {
                    "type": "object",
                    "required": [
                      "applied",
                      "reason",
                      "omitted_items",
                      "truncated_values",
                      "original_result_bytes"
                    ],
                    "properties": {
                      "reason": {
                        "const": "response_size_limit"
                      },
                      "applied": {
                        "const": true
                      },
                      "omitted_items": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "truncated_values": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "original_result_bytes": {
                        "type": "integer",
                        "minimum": 1
                      }
                    },
                    "additionalProperties": false
                  },
                  "visibility": {
                    "const": "private"
                  },
                  "next_action": {
                    "not": {}
                  },
                  "recipe_ulid": {
                    "type": "string",
                    "maxLength": 26,
                    "minLength": 1
                  }
                }
              },
              {
                "type": "object",
                "required": [
                  "recipe_ulid",
                  "rev",
                  "sha",
                  "visibility",
                  "listed",
                  "editor_url",
                  "recipe_ref",
                  "runnable",
                  "next_action"
                ],
                "properties": {
                  "rev": {
                    "const": 1
                  },
                  "sha": {
                    "type": "string",
                    "pattern": "^[0-9a-f]{64}$",
                    "maxLength": 64
                  },
                  "listed": {
                    "const": false
                  },
                  "evidence": {
                    "type": "object",
                    "required": [
                      "revision",
                      "review",
                      "research",
                      "acceptance",
                      "billing"
                    ],
                    "properties": {
                      "review": {
                        "const": "passed"
                      },
                      "billing": {
                        "const": "settled"
                      },
                      "research": {
                        "enum": [
                          "recorded",
                          "not_required"
                        ]
                      },
                      "revision": {
                        "type": "string",
                        "pattern": "^[0-9a-f]{64}$",
                        "maxLength": 64
                      },
                      "acceptance": {
                        "enum": [
                          "full_suite_passed",
                          "accepted_with_limitations"
                        ]
                      },
                      "accepted_limitations": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "required": [
                            "case_id",
                            "assertion_id",
                            "acknowledgement"
                          ],
                          "properties": {
                            "case_id": {
                              "type": "string",
                              "maxLength": 64
                            },
                            "assertion_id": {
                              "type": "string",
                              "maxLength": 64
                            },
                            "acknowledgement": {
                              "type": "string",
                              "maxLength": 500
                            }
                          },
                          "additionalProperties": false
                        },
                        "maxItems": 10
                      },
                      "human_review_required": {
                        "const": true
                      }
                    },
                    "additionalProperties": false
                  },
                  "runnable": {
                    "type": "boolean"
                  },
                  "editor_url": {
                    "type": "string",
                    "maxLength": 512
                  },
                  "recipe_ref": {
                    "type": "string",
                    "maxLength": 4096,
                    "minLength": 1
                  },
                  "truncation": {
                    "type": "object",
                    "required": [
                      "applied",
                      "reason",
                      "omitted_items",
                      "truncated_values",
                      "original_result_bytes"
                    ],
                    "properties": {
                      "reason": {
                        "const": "response_size_limit"
                      },
                      "applied": {
                        "const": true
                      },
                      "omitted_items": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "truncated_values": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "original_result_bytes": {
                        "type": "integer",
                        "minimum": 1
                      }
                    },
                    "additionalProperties": false
                  },
                  "visibility": {
                    "const": "private"
                  },
                  "next_action": {
                    "const": "dry_run_recipe"
                  },
                  "recipe_ulid": {
                    "type": "string",
                    "maxLength": 26,
                    "minLength": 1
                  }
                }
              },
              {
                "type": "object",
                "required": [
                  "error"
                ],
                "properties": {
                  "hint": {
                    "type": "string",
                    "maxLength": 240
                  },
                  "error": {
                    "enum": [
                      "not_found",
                      "invalid_reference",
                      "invalid_params",
                      "revision_conflict",
                      "idempotency_conflict",
                      "document_too_large",
                      "payload_too_large",
                      "chunk_sequence_invalid",
                      "chunk_digest_mismatch",
                      "chunk_expired",
                      "invalid_cursor",
                      "suite_duplicate_case_id",
                      "suite_unresolved_pair",
                      "suite_schema_invalid",
                      "suite_missing_categories",
                      "suite_weak_normal_oracle",
                      "suite_too_large",
                      "unknown_case_id",
                      "duplicate_case_id",
                      "incomplete_case_selection",
                      "unsupported_node_kind",
                      "research_required",
                      "review_required",
                      "acceptance_required",
                      "qualification_stale",
                      "budget_not_approved",
                      "budget_exhausted",
                      "budget_superseded",
                      "budget_capability_consumed",
                      "budget_capability_expired",
                      "acceptance_case_cost_exceeded",
                      "authoring_budget_exceeded",
                      "authoring_grant_not_active",
                      "insufficient_credits",
                      "billing_anomaly",
                      "activity_stalled",
                      "activity_in_flight",
                      "handoff_approval_required",
                      "handoff_expired",
                      "handoff_not_pending",
                      "handoff_stale",
                      "handoff_disclosure_incomplete",
                      "feature_unavailable",
                      "resource_unavailable",
                      "resource_binding_required",
                      "resource_requirement_not_found",
                      "activity_not_cancellable",
                      "quota_exceeded",
                      "rate_limited",
                      "already_published",
                      "safety_locked",
                      "build_terminal",
                      "commit_capability_expired",
                      "account_unavailable",
                      "limit_unavailable"
                    ]
                  },
                  "field": {
                    "type": "string",
                    "maxLength": 64
                  },
                  "issue": {
                    "type": "object",
                    "required": [
                      "code",
                      "path"
                    ],
                    "properties": {
                      "code": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "path": {
                        "type": "string",
                        "maxLength": 512
                      },
                      "type": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "field": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "operator": {
                        "type": "string",
                        "maxLength": 64
                      }
                    },
                    "additionalProperties": false
                  },
                  "case_id": {
                    "type": "string",
                    "maxLength": 64,
                    "minLength": 1
                  },
                  "truncation": {
                    "type": "object",
                    "required": [
                      "applied",
                      "reason",
                      "omitted_items",
                      "truncated_values",
                      "original_result_bytes"
                    ],
                    "properties": {
                      "reason": {
                        "const": "response_size_limit"
                      },
                      "applied": {
                        "const": true
                      },
                      "omitted_items": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "truncated_values": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "original_result_bytes": {
                        "type": "integer",
                        "minimum": 1
                      }
                    },
                    "additionalProperties": false
                  },
                  "repair_hint": {
                    "type": "string",
                    "maxLength": 500
                  },
                  "review_cost": {
                    "type": "object",
                    "required": [
                      "estimated_credits",
                      "limit_credits",
                      "provider",
                      "model",
                      "basis",
                      "input_token_bound",
                      "output_token_cap",
                      "prompt_bytes",
                      "section_bytes"
                    ],
                    "properties": {
                      "basis": {
                        "const": "utf8_byte_upper_bound"
                      },
                      "model": {
                        "type": "string",
                        "maxLength": 200
                      },
                      "provider": {
                        "type": "string",
                        "maxLength": 200
                      },
                      "prompt_bytes": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "limit_credits": {
                        "type": "string",
                        "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                        "maxLength": 64
                      },
                      "section_bytes": {
                        "type": "object",
                        "required": [],
                        "properties": {
                          "spec": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "intent": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "input_contract": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "output_contract": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "acceptance_suite": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "research_evidence": {
                            "type": "integer",
                            "minimum": 0
                          }
                        },
                        "additionalProperties": false
                      },
                      "output_token_cap": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "estimated_credits": {
                        "type": "string",
                        "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                        "maxLength": 64
                      },
                      "input_token_bound": {
                        "type": "integer",
                        "minimum": 0
                      }
                    },
                    "additionalProperties": false
                  },
                  "next_actions": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "gate",
                        "tool",
                        "instruction"
                      ],
                      "properties": {
                        "gate": {
                          "type": "string",
                          "maxLength": 64
                        },
                        "tool": {
                          "type": "string",
                          "maxLength": 64
                        },
                        "instruction": {
                          "type": "string",
                          "maxLength": 500
                        }
                      },
                      "additionalProperties": false
                    },
                    "maxItems": 10
                  },
                  "limit_credits": {
                    "type": "string",
                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                    "maxLength": 64
                  },
                  "remaining_gates": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 64
                    },
                    "maxItems": 10
                  },
                  "estimated_credits": {
                    "type": "string",
                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                    "maxLength": 64
                  },
                  "missing_categories": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 64
                    },
                    "maxItems": 10,
                    "uniqueItems": true
                  },
                  "retry_after_seconds": {
                    "type": "integer",
                    "maximum": 86400,
                    "minimum": 1
                  }
                },
                "additionalProperties": false
              }
            ]
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": true
          }
        },
        {
          "name": "commit_recipe_research_upload",
          "title": "Commit a Recipe Research Upload",
          "description": "Verify and commit one completed chunk upload as the build's research evidence.",
          "inputSchema": {
            "type": "object",
            "required": [
              "build_ref",
              "revision",
              "idempotency_key",
              "chunk_id",
              "sha256"
            ],
            "properties": {
              "sha256": {
                "type": "string",
                "pattern": "^[0-9a-f]{64}$",
                "maxLength": 64
              },
              "chunk_id": {
                "type": "string",
                "maxLength": 64
              },
              "revision": {
                "type": "string",
                "pattern": "^[0-9a-f]{64}$",
                "maxLength": 64
              },
              "build_ref": {
                "type": "string",
                "maxLength": 4096,
                "minLength": 1
              },
              "idempotency_key": {
                "type": "string",
                "pattern": "^[\\x20-\\x7e]+$",
                "maxLength": 200,
                "minLength": 1
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "oneOf": [
              {
                "type": "object",
                "required": [
                  "revision",
                  "normalization_diff",
                  "findings",
                  "qualification_invalidated",
                  "budget_superseded"
                ],
                "properties": {
                  "handoff": {
                    "type": "object",
                    "required": [
                      "handoff_ref",
                      "activity_ref",
                      "revision",
                      "status",
                      "effect_digest",
                      "reason",
                      "required_decisions",
                      "effects",
                      "expires_at",
                      "action_url",
                      "resume"
                    ],
                    "properties": {
                      "reason": {
                        "type": "string",
                        "maxLength": 500
                      },
                      "resume": {
                        "type": "object",
                        "required": [
                          "tool",
                          "operation"
                        ],
                        "properties": {
                          "tool": {
                            "const": "update_recipe_build"
                          },
                          "operation": {
                            "const": "resume_activity"
                          }
                        },
                        "additionalProperties": false
                      },
                      "status": {
                        "enum": [
                          "pending",
                          "approved",
                          "cancelled",
                          "expired",
                          "consumed"
                        ]
                      },
                      "effects": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "required": [
                            "node_id",
                            "node_type",
                            "execution_count",
                            "details"
                          ],
                          "properties": {
                            "details": {
                              "type": "object",
                              "required": [],
                              "properties": {
                                "to": {},
                                "name": {},
                                "query": {},
                                "title": {},
                                "top_k": {},
                                "format": {},
                                "params": {},
                                "prompt": {},
                                "source": {},
                                "options": {},
                                "sources": {},
                                "subject": {},
                                "duration": {},
                                "filename": {},
                                "html_only": {},
                                "max_chunks": {},
                                "visibility": {},
                                "folder_name": {},
                                "folder_ulid": {},
                                "tool_groups": {},
                                "pin_revision": {},
                                "body_template": {},
                                "input_mapping": {},
                                "nested_effects": {},
                                "outcome_rubric": {},
                                "system_message": {},
                                "additional_text": {},
                                "score_threshold": {},
                                "destination_mode": {},
                                "preamble_enabled": {},
                                "child_recipe_ulid": {},
                                "child_revision_sha": {},
                                "local_conflict_mode": {},
                                "outcome_description": {},
                                "external_target_ulid": {},
                                "output_conflict_mode": {},
                                "external_conflict_mode": {},
                                "outcome_max_iterations": {}
                              },
                              "additionalProperties": false
                            },
                            "node_id": {
                              "type": "string",
                              "maxLength": 128
                            },
                            "node_type": {
                              "type": "string",
                              "maxLength": 64
                            },
                            "execution_count": {
                              "type": "integer",
                              "minimum": 0
                            }
                          },
                          "additionalProperties": false
                        },
                        "maxItems": 100
                      },
                      "revision": {
                        "type": "string",
                        "pattern": "^[0-9a-f]{64}$",
                        "maxLength": 64
                      },
                      "resources": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "required": [
                            "requirement_id",
                            "node_id",
                            "node_type",
                            "node_path",
                            "qualification_route",
                            "reason",
                            "required_decision",
                            "resource_paths",
                            "parameter_digest",
                            "binding_status"
                          ],
                          "properties": {
                            "reason": {
                              "type": "string",
                              "maxLength": 128
                            },
                            "node_id": {
                              "type": "string",
                              "maxLength": 128
                            },
                            "node_path": {
                              "type": "array",
                              "items": {
                                "type": [
                                  "string",
                                  "integer"
                                ]
                              },
                              "maxItems": 32
                            },
                            "node_type": {
                              "type": "string",
                              "maxLength": 64
                            },
                            "binding_status": {
                              "enum": [
                                "required",
                                "bound"
                              ]
                            },
                            "requirement_id": {
                              "type": "string",
                              "pattern": "^[0-9a-f]{32}$"
                            },
                            "resource_paths": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "maxLength": 256
                              },
                              "maxItems": 8
                            },
                            "parameter_digest": {
                              "type": "string",
                              "pattern": "^[0-9a-f]{64}$",
                              "maxLength": 64
                            },
                            "required_decision": {
                              "type": "string",
                              "maxLength": 128
                            },
                            "qualification_route": {
                              "enum": [
                                "conditional",
                                "supervised"
                              ]
                            }
                          },
                          "additionalProperties": false
                        },
                        "maxItems": 100
                      },
                      "action_url": {
                        "type": "string",
                        "maxLength": 2048,
                        "minLength": 1
                      },
                      "expires_at": {
                        "type": "string",
                        "format": "date-time",
                        "maxLength": 64
                      },
                      "handoff_ref": {
                        "type": "string",
                        "maxLength": 4096,
                        "minLength": 1
                      },
                      "activity_ref": {
                        "type": "string",
                        "maxLength": 4096,
                        "minLength": 1
                      },
                      "effect_digest": {
                        "type": "string",
                        "pattern": "^[0-9a-f]{64}$",
                        "maxLength": 64
                      },
                      "required_decisions": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "maxLength": 128
                        },
                        "maxItems": 100,
                        "uniqueItems": true
                      }
                    },
                    "additionalProperties": false
                  },
                  "outcome": {
                    "enum": [
                      "resource_bound",
                      "activity_resumed",
                      "activity_cancelled"
                    ]
                  },
                  "findings": {
                    "type": "array",
                    "maxItems": 0
                  },
                  "revision": {
                    "type": "string",
                    "pattern": "^[0-9a-f]{64}$",
                    "maxLength": 64
                  },
                  "truncation": {
                    "type": "object",
                    "required": [
                      "applied",
                      "reason",
                      "omitted_items",
                      "truncated_values",
                      "original_result_bytes"
                    ],
                    "properties": {
                      "reason": {
                        "const": "response_size_limit"
                      },
                      "applied": {
                        "const": true
                      },
                      "omitted_items": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "truncated_values": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "original_result_bytes": {
                        "type": "integer",
                        "minimum": 1
                      }
                    },
                    "additionalProperties": false
                  },
                  "activity_ref": {
                    "type": "string",
                    "maxLength": 4096,
                    "minLength": 1
                  },
                  "activity_state": {
                    "enum": [
                      "queued",
                      "running",
                      "blocked",
                      "done",
                      "failed",
                      "cancelled"
                    ]
                  },
                  "budget_superseded": {
                    "type": "boolean"
                  },
                  "normalization_diff": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "op",
                        "changed"
                      ],
                      "properties": {
                        "op": {
                          "type": "string",
                          "maxLength": 64
                        },
                        "changed": {
                          "type": "boolean"
                        }
                      },
                      "additionalProperties": false
                    },
                    "maxItems": 25
                  },
                  "qualification_invalidated": {
                    "type": "boolean"
                  }
                }
              },
              {
                "type": "object",
                "required": [
                  "error"
                ],
                "properties": {
                  "hint": {
                    "type": "string",
                    "maxLength": 240
                  },
                  "error": {
                    "enum": [
                      "not_found",
                      "invalid_reference",
                      "invalid_params",
                      "revision_conflict",
                      "idempotency_conflict",
                      "document_too_large",
                      "payload_too_large",
                      "chunk_sequence_invalid",
                      "chunk_digest_mismatch",
                      "chunk_expired",
                      "invalid_cursor",
                      "suite_duplicate_case_id",
                      "suite_unresolved_pair",
                      "suite_schema_invalid",
                      "suite_missing_categories",
                      "suite_weak_normal_oracle",
                      "suite_too_large",
                      "unknown_case_id",
                      "duplicate_case_id",
                      "incomplete_case_selection",
                      "unsupported_node_kind",
                      "research_required",
                      "review_required",
                      "acceptance_required",
                      "qualification_stale",
                      "budget_not_approved",
                      "budget_exhausted",
                      "budget_superseded",
                      "budget_capability_consumed",
                      "budget_capability_expired",
                      "acceptance_case_cost_exceeded",
                      "authoring_budget_exceeded",
                      "authoring_grant_not_active",
                      "insufficient_credits",
                      "billing_anomaly",
                      "activity_stalled",
                      "activity_in_flight",
                      "handoff_approval_required",
                      "handoff_expired",
                      "handoff_not_pending",
                      "handoff_stale",
                      "handoff_disclosure_incomplete",
                      "feature_unavailable",
                      "resource_unavailable",
                      "resource_binding_required",
                      "resource_requirement_not_found",
                      "activity_not_cancellable",
                      "quota_exceeded",
                      "rate_limited",
                      "already_published",
                      "safety_locked",
                      "build_terminal",
                      "commit_capability_expired",
                      "account_unavailable",
                      "limit_unavailable"
                    ]
                  },
                  "field": {
                    "type": "string",
                    "maxLength": 64
                  },
                  "issue": {
                    "type": "object",
                    "required": [
                      "code",
                      "path"
                    ],
                    "properties": {
                      "code": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "path": {
                        "type": "string",
                        "maxLength": 512
                      },
                      "type": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "field": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "operator": {
                        "type": "string",
                        "maxLength": 64
                      }
                    },
                    "additionalProperties": false
                  },
                  "case_id": {
                    "type": "string",
                    "maxLength": 64,
                    "minLength": 1
                  },
                  "truncation": {
                    "type": "object",
                    "required": [
                      "applied",
                      "reason",
                      "omitted_items",
                      "truncated_values",
                      "original_result_bytes"
                    ],
                    "properties": {
                      "reason": {
                        "const": "response_size_limit"
                      },
                      "applied": {
                        "const": true
                      },
                      "omitted_items": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "truncated_values": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "original_result_bytes": {
                        "type": "integer",
                        "minimum": 1
                      }
                    },
                    "additionalProperties": false
                  },
                  "repair_hint": {
                    "type": "string",
                    "maxLength": 500
                  },
                  "review_cost": {
                    "type": "object",
                    "required": [
                      "estimated_credits",
                      "limit_credits",
                      "provider",
                      "model",
                      "basis",
                      "input_token_bound",
                      "output_token_cap",
                      "prompt_bytes",
                      "section_bytes"
                    ],
                    "properties": {
                      "basis": {
                        "const": "utf8_byte_upper_bound"
                      },
                      "model": {
                        "type": "string",
                        "maxLength": 200
                      },
                      "provider": {
                        "type": "string",
                        "maxLength": 200
                      },
                      "prompt_bytes": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "limit_credits": {
                        "type": "string",
                        "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                        "maxLength": 64
                      },
                      "section_bytes": {
                        "type": "object",
                        "required": [],
                        "properties": {
                          "spec": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "intent": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "input_contract": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "output_contract": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "acceptance_suite": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "research_evidence": {
                            "type": "integer",
                            "minimum": 0
                          }
                        },
                        "additionalProperties": false
                      },
                      "output_token_cap": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "estimated_credits": {
                        "type": "string",
                        "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                        "maxLength": 64
                      },
                      "input_token_bound": {
                        "type": "integer",
                        "minimum": 0
                      }
                    },
                    "additionalProperties": false
                  },
                  "limit_credits": {
                    "type": "string",
                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                    "maxLength": 64
                  },
                  "estimated_credits": {
                    "type": "string",
                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                    "maxLength": 64
                  },
                  "missing_categories": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 64
                    },
                    "maxItems": 10,
                    "uniqueItems": true
                  },
                  "retry_after_seconds": {
                    "type": "integer",
                    "maximum": 86400,
                    "minimum": 1
                  }
                },
                "additionalProperties": false
              }
            ]
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": true
          }
        },
        {
          "name": "commit_recipe_spec_upload",
          "title": "Commit a Recipe Specification Upload",
          "description": "Verify and commit one completed chunk upload as the full recipe specification.",
          "inputSchema": {
            "type": "object",
            "required": [
              "build_ref",
              "revision",
              "idempotency_key",
              "chunk_id",
              "sha256"
            ],
            "properties": {
              "sha256": {
                "type": "string",
                "pattern": "^[0-9a-f]{64}$",
                "maxLength": 64
              },
              "chunk_id": {
                "type": "string",
                "maxLength": 64
              },
              "revision": {
                "type": "string",
                "pattern": "^[0-9a-f]{64}$",
                "maxLength": 64
              },
              "build_ref": {
                "type": "string",
                "maxLength": 4096,
                "minLength": 1
              },
              "idempotency_key": {
                "type": "string",
                "pattern": "^[\\x20-\\x7e]+$",
                "maxLength": 200,
                "minLength": 1
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "oneOf": [
              {
                "type": "object",
                "required": [
                  "revision",
                  "normalization_diff",
                  "findings",
                  "qualification_invalidated",
                  "budget_superseded"
                ],
                "properties": {
                  "handoff": {
                    "type": "object",
                    "required": [
                      "handoff_ref",
                      "activity_ref",
                      "revision",
                      "status",
                      "effect_digest",
                      "reason",
                      "required_decisions",
                      "effects",
                      "expires_at",
                      "action_url",
                      "resume"
                    ],
                    "properties": {
                      "reason": {
                        "type": "string",
                        "maxLength": 500
                      },
                      "resume": {
                        "type": "object",
                        "required": [
                          "tool",
                          "operation"
                        ],
                        "properties": {
                          "tool": {
                            "const": "update_recipe_build"
                          },
                          "operation": {
                            "const": "resume_activity"
                          }
                        },
                        "additionalProperties": false
                      },
                      "status": {
                        "enum": [
                          "pending",
                          "approved",
                          "cancelled",
                          "expired",
                          "consumed"
                        ]
                      },
                      "effects": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "required": [
                            "node_id",
                            "node_type",
                            "execution_count",
                            "details"
                          ],
                          "properties": {
                            "details": {
                              "type": "object",
                              "required": [],
                              "properties": {
                                "to": {},
                                "name": {},
                                "query": {},
                                "title": {},
                                "top_k": {},
                                "format": {},
                                "params": {},
                                "prompt": {},
                                "source": {},
                                "options": {},
                                "sources": {},
                                "subject": {},
                                "duration": {},
                                "filename": {},
                                "html_only": {},
                                "max_chunks": {},
                                "visibility": {},
                                "folder_name": {},
                                "folder_ulid": {},
                                "tool_groups": {},
                                "pin_revision": {},
                                "body_template": {},
                                "input_mapping": {},
                                "nested_effects": {},
                                "outcome_rubric": {},
                                "system_message": {},
                                "additional_text": {},
                                "score_threshold": {},
                                "destination_mode": {},
                                "preamble_enabled": {},
                                "child_recipe_ulid": {},
                                "child_revision_sha": {},
                                "local_conflict_mode": {},
                                "outcome_description": {},
                                "external_target_ulid": {},
                                "output_conflict_mode": {},
                                "external_conflict_mode": {},
                                "outcome_max_iterations": {}
                              },
                              "additionalProperties": false
                            },
                            "node_id": {
                              "type": "string",
                              "maxLength": 128
                            },
                            "node_type": {
                              "type": "string",
                              "maxLength": 64
                            },
                            "execution_count": {
                              "type": "integer",
                              "minimum": 0
                            }
                          },
                          "additionalProperties": false
                        },
                        "maxItems": 100
                      },
                      "revision": {
                        "type": "string",
                        "pattern": "^[0-9a-f]{64}$",
                        "maxLength": 64
                      },
                      "resources": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "required": [
                            "requirement_id",
                            "node_id",
                            "node_type",
                            "node_path",
                            "qualification_route",
                            "reason",
                            "required_decision",
                            "resource_paths",
                            "parameter_digest",
                            "binding_status"
                          ],
                          "properties": {
                            "reason": {
                              "type": "string",
                              "maxLength": 128
                            },
                            "node_id": {
                              "type": "string",
                              "maxLength": 128
                            },
                            "node_path": {
                              "type": "array",
                              "items": {
                                "type": [
                                  "string",
                                  "integer"
                                ]
                              },
                              "maxItems": 32
                            },
                            "node_type": {
                              "type": "string",
                              "maxLength": 64
                            },
                            "binding_status": {
                              "enum": [
                                "required",
                                "bound"
                              ]
                            },
                            "requirement_id": {
                              "type": "string",
                              "pattern": "^[0-9a-f]{32}$"
                            },
                            "resource_paths": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "maxLength": 256
                              },
                              "maxItems": 8
                            },
                            "parameter_digest": {
                              "type": "string",
                              "pattern": "^[0-9a-f]{64}$",
                              "maxLength": 64
                            },
                            "required_decision": {
                              "type": "string",
                              "maxLength": 128
                            },
                            "qualification_route": {
                              "enum": [
                                "conditional",
                                "supervised"
                              ]
                            }
                          },
                          "additionalProperties": false
                        },
                        "maxItems": 100
                      },
                      "action_url": {
                        "type": "string",
                        "maxLength": 2048,
                        "minLength": 1
                      },
                      "expires_at": {
                        "type": "string",
                        "format": "date-time",
                        "maxLength": 64
                      },
                      "handoff_ref": {
                        "type": "string",
                        "maxLength": 4096,
                        "minLength": 1
                      },
                      "activity_ref": {
                        "type": "string",
                        "maxLength": 4096,
                        "minLength": 1
                      },
                      "effect_digest": {
                        "type": "string",
                        "pattern": "^[0-9a-f]{64}$",
                        "maxLength": 64
                      },
                      "required_decisions": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "maxLength": 128
                        },
                        "maxItems": 100,
                        "uniqueItems": true
                      }
                    },
                    "additionalProperties": false
                  },
                  "outcome": {
                    "enum": [
                      "resource_bound",
                      "activity_resumed",
                      "activity_cancelled"
                    ]
                  },
                  "findings": {
                    "type": "array",
                    "maxItems": 0
                  },
                  "revision": {
                    "type": "string",
                    "pattern": "^[0-9a-f]{64}$",
                    "maxLength": 64
                  },
                  "truncation": {
                    "type": "object",
                    "required": [
                      "applied",
                      "reason",
                      "omitted_items",
                      "truncated_values",
                      "original_result_bytes"
                    ],
                    "properties": {
                      "reason": {
                        "const": "response_size_limit"
                      },
                      "applied": {
                        "const": true
                      },
                      "omitted_items": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "truncated_values": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "original_result_bytes": {
                        "type": "integer",
                        "minimum": 1
                      }
                    },
                    "additionalProperties": false
                  },
                  "activity_ref": {
                    "type": "string",
                    "maxLength": 4096,
                    "minLength": 1
                  },
                  "activity_state": {
                    "enum": [
                      "queued",
                      "running",
                      "blocked",
                      "done",
                      "failed",
                      "cancelled"
                    ]
                  },
                  "budget_superseded": {
                    "type": "boolean"
                  },
                  "normalization_diff": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "op",
                        "changed"
                      ],
                      "properties": {
                        "op": {
                          "type": "string",
                          "maxLength": 64
                        },
                        "changed": {
                          "type": "boolean"
                        }
                      },
                      "additionalProperties": false
                    },
                    "maxItems": 25
                  },
                  "qualification_invalidated": {
                    "type": "boolean"
                  }
                }
              },
              {
                "type": "object",
                "required": [
                  "error"
                ],
                "properties": {
                  "hint": {
                    "type": "string",
                    "maxLength": 240
                  },
                  "error": {
                    "enum": [
                      "not_found",
                      "invalid_reference",
                      "invalid_params",
                      "revision_conflict",
                      "idempotency_conflict",
                      "document_too_large",
                      "payload_too_large",
                      "chunk_sequence_invalid",
                      "chunk_digest_mismatch",
                      "chunk_expired",
                      "invalid_cursor",
                      "suite_duplicate_case_id",
                      "suite_unresolved_pair",
                      "suite_schema_invalid",
                      "suite_missing_categories",
                      "suite_weak_normal_oracle",
                      "suite_too_large",
                      "unknown_case_id",
                      "duplicate_case_id",
                      "incomplete_case_selection",
                      "unsupported_node_kind",
                      "research_required",
                      "review_required",
                      "acceptance_required",
                      "qualification_stale",
                      "budget_not_approved",
                      "budget_exhausted",
                      "budget_superseded",
                      "budget_capability_consumed",
                      "budget_capability_expired",
                      "acceptance_case_cost_exceeded",
                      "authoring_budget_exceeded",
                      "authoring_grant_not_active",
                      "insufficient_credits",
                      "billing_anomaly",
                      "activity_stalled",
                      "activity_in_flight",
                      "handoff_approval_required",
                      "handoff_expired",
                      "handoff_not_pending",
                      "handoff_stale",
                      "handoff_disclosure_incomplete",
                      "feature_unavailable",
                      "resource_unavailable",
                      "resource_binding_required",
                      "resource_requirement_not_found",
                      "activity_not_cancellable",
                      "quota_exceeded",
                      "rate_limited",
                      "already_published",
                      "safety_locked",
                      "build_terminal",
                      "commit_capability_expired",
                      "account_unavailable",
                      "limit_unavailable"
                    ]
                  },
                  "field": {
                    "type": "string",
                    "maxLength": 64
                  },
                  "issue": {
                    "type": "object",
                    "required": [
                      "code",
                      "path"
                    ],
                    "properties": {
                      "code": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "path": {
                        "type": "string",
                        "maxLength": 512
                      },
                      "type": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "field": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "operator": {
                        "type": "string",
                        "maxLength": 64
                      }
                    },
                    "additionalProperties": false
                  },
                  "case_id": {
                    "type": "string",
                    "maxLength": 64,
                    "minLength": 1
                  },
                  "truncation": {
                    "type": "object",
                    "required": [
                      "applied",
                      "reason",
                      "omitted_items",
                      "truncated_values",
                      "original_result_bytes"
                    ],
                    "properties": {
                      "reason": {
                        "const": "response_size_limit"
                      },
                      "applied": {
                        "const": true
                      },
                      "omitted_items": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "truncated_values": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "original_result_bytes": {
                        "type": "integer",
                        "minimum": 1
                      }
                    },
                    "additionalProperties": false
                  },
                  "repair_hint": {
                    "type": "string",
                    "maxLength": 500
                  },
                  "review_cost": {
                    "type": "object",
                    "required": [
                      "estimated_credits",
                      "limit_credits",
                      "provider",
                      "model",
                      "basis",
                      "input_token_bound",
                      "output_token_cap",
                      "prompt_bytes",
                      "section_bytes"
                    ],
                    "properties": {
                      "basis": {
                        "const": "utf8_byte_upper_bound"
                      },
                      "model": {
                        "type": "string",
                        "maxLength": 200
                      },
                      "provider": {
                        "type": "string",
                        "maxLength": 200
                      },
                      "prompt_bytes": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "limit_credits": {
                        "type": "string",
                        "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                        "maxLength": 64
                      },
                      "section_bytes": {
                        "type": "object",
                        "required": [],
                        "properties": {
                          "spec": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "intent": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "input_contract": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "output_contract": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "acceptance_suite": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "research_evidence": {
                            "type": "integer",
                            "minimum": 0
                          }
                        },
                        "additionalProperties": false
                      },
                      "output_token_cap": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "estimated_credits": {
                        "type": "string",
                        "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                        "maxLength": 64
                      },
                      "input_token_bound": {
                        "type": "integer",
                        "minimum": 0
                      }
                    },
                    "additionalProperties": false
                  },
                  "limit_credits": {
                    "type": "string",
                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                    "maxLength": 64
                  },
                  "estimated_credits": {
                    "type": "string",
                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                    "maxLength": 64
                  },
                  "missing_categories": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 64
                    },
                    "maxItems": 10,
                    "uniqueItems": true
                  },
                  "retry_after_seconds": {
                    "type": "integer",
                    "maximum": 86400,
                    "minimum": 1
                  }
                },
                "additionalProperties": false
              }
            ]
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": true
          }
        },
        {
          "name": "discover_stewai",
          "title": "Discover and Connect to StewAI",
          "description": "Learn how any MCP agent can authenticate, discover, preview, run, author, qualify, commit, inspect, and recover StewAI recipes. Call this first.",
          "inputSchema": {
            "type": "object",
            "properties": {},
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "gateway_contract_version",
              "authenticated",
              "authoring_available",
              "granted_scopes",
              "connection",
              "scope_groups",
              "consumer_journey",
              "authoring_journey",
              "rules",
              "capabilities"
            ],
            "properties": {
              "rules": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 300
                },
                "maxItems": 18,
                "minItems": 4
              },
              "account": {
                "type": "object",
                "required": [
                  "email",
                  "organization_id"
                ],
                "properties": {
                  "email": {
                    "type": "string",
                    "maxLength": 254
                  },
                  "organization_id": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "additionalProperties": false
              },
              "connection": {
                "type": "object",
                "required": [
                  "authorization",
                  "api_key_required",
                  "instruction"
                ],
                "properties": {
                  "instruction": {
                    "type": "string",
                    "maxLength": 500
                  },
                  "authorization": {
                    "const": "oauth_2_1_browser"
                  },
                  "api_key_required": {
                    "const": false
                  }
                },
                "additionalProperties": false
              },
              "capabilities": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "capability",
                    "benefit",
                    "example_prompt",
                    "category"
                  ],
                  "properties": {
                    "benefit": {
                      "type": "string"
                    },
                    "category": {
                      "enum": [
                        "research",
                        "documents",
                        "communication",
                        "data",
                        "compliance",
                        "operations"
                      ],
                      "type": "string"
                    },
                    "capability": {
                      "type": "string"
                    },
                    "example_prompt": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": false
                },
                "maxItems": 10,
                "minItems": 6
              },
              "scope_groups": {
                "type": "object",
                "required": [
                  "discover_and_run_public",
                  "inspect_and_run_private",
                  "author_and_qualify"
                ],
                "properties": {
                  "author_and_qualify": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "discover_and_run_public": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "inspect_and_run_private": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                },
                "additionalProperties": false
              },
              "authenticated": {
                "type": "boolean"
              },
              "granted_scopes": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 64
                },
                "maxItems": 16
              },
              "consumer_journey": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "order",
                    "tool",
                    "action",
                    "next_on_success"
                  ],
                  "properties": {
                    "tool": {
                      "type": "string",
                      "maxLength": 64,
                      "minLength": 1
                    },
                    "order": {
                      "type": "integer",
                      "maximum": 12,
                      "minimum": 1
                    },
                    "action": {
                      "type": "string",
                      "maxLength": 160,
                      "minLength": 1
                    },
                    "next_on_success": {
                      "type": "string",
                      "maxLength": 160
                    }
                  },
                  "additionalProperties": false
                },
                "maxItems": 8,
                "minItems": 0
              },
              "authoring_journey": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "order",
                    "tool",
                    "action",
                    "next_on_success"
                  ],
                  "properties": {
                    "tool": {
                      "type": "string",
                      "maxLength": 64,
                      "minLength": 1
                    },
                    "order": {
                      "type": "integer",
                      "maximum": 12,
                      "minimum": 1
                    },
                    "action": {
                      "type": "string",
                      "maxLength": 160,
                      "minLength": 1
                    },
                    "next_on_success": {
                      "type": "string",
                      "maxLength": 160
                    }
                  },
                  "additionalProperties": false
                },
                "maxItems": 12,
                "minItems": 0
              },
              "authoring_available": {
                "type": "boolean"
              },
              "gateway_contract_version": {
                "type": "string"
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "estimate_recipe_run",
          "title": "Estimate a StewAI Recipe Run",
          "description": "Estimate one previewed recipe without starting it. Return historical charges, fees, wallet balance, admission status, and the safety ceiling when one can be calculated.",
          "inputSchema": {
            "type": "object",
            "required": [
              "recipe_ref",
              "inputs",
              "idempotency_key"
            ],
            "properties": {
              "inputs": {
                "type": "object",
                "maxProperties": 50,
                "propertyNames": {
                  "pattern": "^input_[1-9][0-9]*$"
                },
                "additionalProperties": {
                  "type": "string"
                }
              },
              "recipe_ref": {
                "type": "string",
                "maxLength": 32768
              },
              "idempotency_key": {
                "type": "string",
                "pattern": "^[\\x20-\\x7E]+$",
                "maxLength": 200,
                "minLength": 1
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "oneOf": [
              {
                "type": "object",
                "required": [
                  "outcome",
                  "execution_credits",
                  "marketplace_fee_credits",
                  "estimated_credits",
                  "safety_ceiling_credits",
                  "available_credits",
                  "can_start",
                  "start_blocker",
                  "sufficient",
                  "estimate_basis",
                  "input_token_floor",
                  "historical_credit_band",
                  "historical_comparison",
                  "pricing_warning"
                ],
                "properties": {
                  "history": {
                    "type": "object",
                    "required": [
                      "successful_runs",
                      "failed_runs",
                      "average_credits",
                      "median_credits",
                      "p90_credits",
                      "last_run_at",
                      "window_days",
                      "recent_charges"
                    ],
                    "properties": {
                      "failed_runs": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "last_run_at": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "maxLength": 40
                      },
                      "p90_credits": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "maxLength": 32
                      },
                      "window_days": {
                        "type": [
                          "integer",
                          "null"
                        ],
                        "minimum": 1
                      },
                      "median_credits": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "maxLength": 32
                      },
                      "recent_charges": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "maxLength": 32
                        },
                        "maxItems": 2,
                        "description": "Actual charges of the one or two runs when there are too few for statistics."
                      },
                      "average_credits": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "maxLength": 32
                      },
                      "successful_runs": {
                        "type": "integer",
                        "minimum": 0
                      }
                    },
                    "description": "Credits charged by past successful runs of this recipe's current version. With fewer than three runs, statistics are null and recent_charges lists the actual charges.",
                    "additionalProperties": false
                  },
                  "outcome": {
                    "const": "estimated"
                  },
                  "can_start": {
                    "const": true,
                    "description": "Whether this recipe may be started now."
                  },
                  "sufficient": {
                    "type": "boolean",
                    "deprecated": true,
                    "description": "Deprecated compatibility field: whether the safety ceiling fits the current balance. False does not block real execution."
                  },
                  "fee_credits": {
                    "type": "string",
                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                    "maxLength": 64
                  },
                  "balance_as_of": {
                    "type": "string",
                    "format": "date-time",
                    "maxLength": 64
                  },
                  "start_blocker": {
                    "type": "null",
                    "description": "Null because this estimate found no real admission blocker."
                  },
                  "estimate_basis": {
                    "enum": [
                      "conservative_input_aware",
                      "runtime_estimate_only"
                    ]
                  },
                  "pricing_warning": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 240
                  },
                  "available_credits": {
                    "type": "string",
                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                    "maxLength": 64
                  },
                  "estimated_credits": {
                    "type": "string",
                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                    "maxLength": 64,
                    "deprecated": true,
                    "description": "Deprecated compatibility estimate. It matches the safety ceiling when one is available; otherwise it is a non-blocking runtime estimate."
                  },
                  "execution_credits": {
                    "type": "string",
                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                    "maxLength": 64
                  },
                  "input_token_floor": {
                    "type": "integer",
                    "minimum": 1
                  },
                  "ceiling_explanation": {
                    "type": "object",
                    "required": [
                      "meaning",
                      "basis",
                      "provider_floors",
                      "details_limited"
                    ],
                    "properties": {
                      "basis": {
                        "enum": [
                          "current_effective_rates_and_runtime_bounds",
                          "runtime_metering_without_query_ceiling"
                        ]
                      },
                      "meaning": {
                        "type": "string",
                        "maxLength": 500
                      },
                      "details_limited": {
                        "type": "boolean"
                      },
                      "provider_floors": {
                        "type": "array",
                        "items": {
                          "type": "object"
                        },
                        "maxItems": 20
                      }
                    },
                    "additionalProperties": false
                  },
                  "historical_comparison": {
                    "enum": [
                      "lower",
                      "same",
                      "higher",
                      "unknown"
                    ]
                  },
                  "historical_credit_band": {
                    "enum": [
                      "unknown",
                      "free",
                      "0_to_10",
                      "10_to_100",
                      "over_100"
                    ]
                  },
                  "safety_ceiling_credits": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 32,
                    "description": "Pathological safety ceiling, not a quote or admission threshold. Null when the provider exposes no request-side query ceiling."
                  },
                  "marketplace_fee_credits": {
                    "type": "string",
                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                    "maxLength": 64
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "object",
                "required": [
                  "error"
                ],
                "properties": {
                  "error": {
                    "const": "recipe_unavailable"
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "object",
                "required": [
                  "error"
                ],
                "properties": {
                  "error": {
                    "const": "run_unavailable"
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "object",
                "required": [
                  "error"
                ],
                "properties": {
                  "error": {
                    "const": "account_unavailable"
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "object",
                "required": [
                  "error"
                ],
                "properties": {
                  "error": {
                    "const": "invalid_inputs"
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "object",
                "required": [
                  "error"
                ],
                "properties": {
                  "error": {
                    "const": "idempotency_conflict"
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "object",
                "required": [
                  "error"
                ],
                "properties": {
                  "error": {
                    "const": "idempotency_unavailable"
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "object",
                "required": [
                  "error"
                ],
                "properties": {
                  "error": {
                    "const": "run_limit"
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "object",
                "required": [
                  "error",
                  "retry_after_seconds"
                ],
                "properties": {
                  "error": {
                    "const": "rate_limited"
                  },
                  "retry_after_seconds": {
                    "type": "integer",
                    "maximum": 86400,
                    "minimum": 1
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "object",
                "required": [
                  "error",
                  "required_credits",
                  "available_credits",
                  "can_start",
                  "start_blocker"
                ],
                "properties": {
                  "error": {
                    "const": "insufficient_credits"
                  },
                  "can_start": {
                    "const": false
                  },
                  "start_blocker": {
                    "const": "marketplace_fee_unaffordable"
                  },
                  "required_credits": {
                    "type": "string",
                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                    "maxLength": 64
                  },
                  "available_credits": {
                    "type": "string",
                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                    "maxLength": 64
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "object",
                "required": [
                  "error",
                  "hint"
                ],
                "properties": {
                  "hint": {
                    "type": "string",
                    "maxLength": 240
                  },
                  "error": {
                    "const": "recipe_ref_expired"
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "object",
                "required": [
                  "error",
                  "issues"
                ],
                "properties": {
                  "error": {
                    "const": "invalid_inputs"
                  },
                  "issues": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "path",
                        "code",
                        "message",
                        "hint"
                      ],
                      "properties": {
                        "code": {
                          "enum": [
                            "required",
                            "blank",
                            "invalid_type",
                            "unknown_handle",
                            "too_many_inputs",
                            "max_characters",
                            "max_value_utf8_bytes",
                            "max_total_utf8_bytes"
                          ]
                        },
                        "hint": {
                          "type": "string",
                          "maxLength": 200,
                          "minLength": 1
                        },
                        "path": {
                          "type": "string",
                          "pattern": "^inputs(?:\\.input_[1-9][0-9]*)?$",
                          "maxLength": 32
                        },
                        "limit": {
                          "type": "integer",
                          "minimum": 1
                        },
                        "message": {
                          "type": "string",
                          "maxLength": 160,
                          "minLength": 1
                        },
                        "received": {
                          "type": "object",
                          "required": [
                            "type"
                          ],
                          "properties": {
                            "type": {
                              "enum": [
                                "missing",
                                "null",
                                "boolean",
                                "integer",
                                "number",
                                "string",
                                "array",
                                "object",
                                "other"
                              ]
                            },
                            "characters": {
                              "type": "integer",
                              "minimum": 0
                            },
                            "item_count": {
                              "type": "integer",
                              "minimum": 0
                            },
                            "utf8_bytes": {
                              "type": "integer",
                              "minimum": 0
                            }
                          },
                          "additionalProperties": false
                        }
                      },
                      "additionalProperties": false
                    },
                    "maxItems": 50,
                    "minItems": 1
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "object",
                "required": [
                  "error",
                  "reason",
                  "message",
                  "next_action"
                ],
                "properties": {
                  "error": {
                    "const": "run_unavailable"
                  },
                  "reason": {
                    "enum": [
                      "recipe_validation_failed",
                      "recipe_step_policy_restricted",
                      "recipe_fee_configuration_invalid",
                      "invalid_credit_evidence",
                      "admission_inconsistent",
                      "configuration_unavailable"
                    ]
                  },
                  "message": {
                    "type": "string",
                    "maxLength": 240
                  },
                  "next_action": {
                    "type": "string",
                    "maxLength": 240
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "object",
                "required": [
                  "error",
                  "message",
                  "next_action"
                ],
                "properties": {
                  "error": {
                    "const": "pricing_unavailable"
                  },
                  "message": {
                    "type": "string",
                    "maxLength": 240
                  },
                  "next_action": {
                    "type": "object",
                    "required": [
                      "tool",
                      "action",
                      "reason"
                    ],
                    "properties": {
                      "tool": {
                        "const": "search_recipes"
                      },
                      "action": {
                        "const": "choose_another_recipe"
                      },
                      "reason": {
                        "type": "string",
                        "maxLength": 240
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              }
            ]
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "get_recipe_acceptance_plan",
          "title": "Read a Recipe Acceptance Plan",
          "description": "Read or page through the behavioral acceptance plan for one private build.",
          "inputSchema": {
            "type": "object",
            "required": [
              "build_ref"
            ],
            "properties": {
              "cursor": {
                "type": "string",
                "maxLength": 512
              },
              "build_ref": {
                "type": "string",
                "maxLength": 4096,
                "minLength": 1
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "oneOf": [
              {
                "type": "object",
                "required": [
                  "view",
                  "data"
                ],
                "properties": {
                  "data": {
                    "type": "object",
                    "required": [
                      "build_ref",
                      "name",
                      "status",
                      "revision",
                      "qualification",
                      "archived_at",
                      "suite",
                      "minimum_acceptance_categories"
                    ],
                    "properties": {
                      "name": {
                        "type": "string",
                        "maxLength": 200,
                        "minLength": 1
                      },
                      "suite": {
                        "type": "object"
                      },
                      "status": {
                        "enum": [
                          "draft",
                          "qualified",
                          "committed",
                          "abandoned"
                        ]
                      },
                      "revision": {
                        "type": "string",
                        "pattern": "^[0-9a-f]{64}$",
                        "maxLength": 64
                      },
                      "build_ref": {
                        "type": "string",
                        "maxLength": 4096,
                        "minLength": 1
                      },
                      "archived_at": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "format": "date-time",
                        "maxLength": 64
                      },
                      "qualification": {
                        "enum": [
                          "none",
                          "pending",
                          "qualified",
                          "invalidated"
                        ]
                      },
                      "minimum_acceptance_categories": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "maxLength": 64
                        },
                        "maxItems": 20
                      }
                    },
                    "additionalProperties": false
                  },
                  "view": {
                    "const": "acceptance_plan"
                  },
                  "truncation": {
                    "type": "object",
                    "required": [
                      "applied",
                      "reason",
                      "omitted_items",
                      "truncated_values",
                      "original_result_bytes"
                    ],
                    "properties": {
                      "reason": {
                        "const": "response_size_limit"
                      },
                      "applied": {
                        "const": true
                      },
                      "omitted_items": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "truncated_values": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "original_result_bytes": {
                        "type": "integer",
                        "minimum": 1
                      }
                    },
                    "additionalProperties": false
                  }
                }
              },
              {
                "type": "object",
                "required": [
                  "view",
                  "data"
                ],
                "properties": {
                  "data": {
                    "type": "object",
                    "required": [
                      "build_ref",
                      "name",
                      "status",
                      "revision",
                      "qualification",
                      "archived_at",
                      "suite_page",
                      "next_cursor",
                      "minimum_acceptance_categories"
                    ],
                    "properties": {
                      "name": {
                        "type": "string",
                        "maxLength": 200,
                        "minLength": 1
                      },
                      "status": {
                        "enum": [
                          "draft",
                          "qualified",
                          "committed",
                          "abandoned"
                        ]
                      },
                      "revision": {
                        "type": "string",
                        "pattern": "^[0-9a-f]{64}$",
                        "maxLength": 64
                      },
                      "build_ref": {
                        "type": "string",
                        "maxLength": 4096,
                        "minLength": 1
                      },
                      "suite_page": {
                        "type": "object",
                        "required": [
                          "encoding",
                          "content",
                          "offset",
                          "total_characters",
                          "sha256"
                        ],
                        "properties": {
                          "offset": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "sha256": {
                            "type": "string",
                            "pattern": "^[0-9a-f]{64}$",
                            "maxLength": 64
                          },
                          "content": {
                            "type": "string",
                            "maxLength": 16384,
                            "minLength": 1
                          },
                          "encoding": {
                            "const": "json"
                          },
                          "total_characters": {
                            "type": "integer",
                            "minimum": 1
                          }
                        },
                        "additionalProperties": false
                      },
                      "archived_at": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "format": "date-time",
                        "maxLength": 64
                      },
                      "next_cursor": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "maxLength": 512
                      },
                      "qualification": {
                        "enum": [
                          "none",
                          "pending",
                          "qualified",
                          "invalidated"
                        ]
                      },
                      "minimum_acceptance_categories": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "maxLength": 64
                        },
                        "maxItems": 20
                      }
                    },
                    "additionalProperties": false
                  },
                  "view": {
                    "const": "acceptance_plan"
                  },
                  "truncation": {
                    "type": "object",
                    "required": [
                      "applied",
                      "reason",
                      "omitted_items",
                      "truncated_values",
                      "original_result_bytes"
                    ],
                    "properties": {
                      "reason": {
                        "const": "response_size_limit"
                      },
                      "applied": {
                        "const": true
                      },
                      "omitted_items": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "truncated_values": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "original_result_bytes": {
                        "type": "integer",
                        "minimum": 1
                      }
                    },
                    "additionalProperties": false
                  }
                }
              },
              {
                "type": "object",
                "required": [
                  "error"
                ],
                "properties": {
                  "hint": {
                    "type": "string",
                    "maxLength": 240
                  },
                  "error": {
                    "enum": [
                      "not_found",
                      "invalid_reference",
                      "invalid_params",
                      "revision_conflict",
                      "idempotency_conflict",
                      "document_too_large",
                      "payload_too_large",
                      "chunk_sequence_invalid",
                      "chunk_digest_mismatch",
                      "chunk_expired",
                      "invalid_cursor",
                      "suite_duplicate_case_id",
                      "suite_unresolved_pair",
                      "suite_schema_invalid",
                      "suite_missing_categories",
                      "suite_weak_normal_oracle",
                      "suite_too_large",
                      "unknown_case_id",
                      "duplicate_case_id",
                      "incomplete_case_selection",
                      "unsupported_node_kind",
                      "research_required",
                      "review_required",
                      "acceptance_required",
                      "qualification_stale",
                      "budget_not_approved",
                      "budget_exhausted",
                      "budget_superseded",
                      "budget_capability_consumed",
                      "budget_capability_expired",
                      "acceptance_case_cost_exceeded",
                      "authoring_budget_exceeded",
                      "authoring_grant_not_active",
                      "insufficient_credits",
                      "billing_anomaly",
                      "activity_stalled",
                      "activity_in_flight",
                      "handoff_approval_required",
                      "handoff_expired",
                      "handoff_not_pending",
                      "handoff_stale",
                      "handoff_disclosure_incomplete",
                      "feature_unavailable",
                      "resource_unavailable",
                      "resource_binding_required",
                      "resource_requirement_not_found",
                      "activity_not_cancellable",
                      "quota_exceeded",
                      "rate_limited",
                      "already_published",
                      "safety_locked",
                      "build_terminal",
                      "commit_capability_expired",
                      "account_unavailable",
                      "limit_unavailable"
                    ]
                  },
                  "field": {
                    "type": "string",
                    "maxLength": 64
                  },
                  "issue": {
                    "type": "object",
                    "required": [
                      "code",
                      "path"
                    ],
                    "properties": {
                      "code": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "path": {
                        "type": "string",
                        "maxLength": 512
                      },
                      "type": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "field": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "operator": {
                        "type": "string",
                        "maxLength": 64
                      }
                    },
                    "additionalProperties": false
                  },
                  "case_id": {
                    "type": "string",
                    "maxLength": 64,
                    "minLength": 1
                  },
                  "truncation": {
                    "type": "object",
                    "required": [
                      "applied",
                      "reason",
                      "omitted_items",
                      "truncated_values",
                      "original_result_bytes"
                    ],
                    "properties": {
                      "reason": {
                        "const": "response_size_limit"
                      },
                      "applied": {
                        "const": true
                      },
                      "omitted_items": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "truncated_values": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "original_result_bytes": {
                        "type": "integer",
                        "minimum": 1
                      }
                    },
                    "additionalProperties": false
                  },
                  "repair_hint": {
                    "type": "string",
                    "maxLength": 500
                  },
                  "review_cost": {
                    "type": "object",
                    "required": [
                      "estimated_credits",
                      "limit_credits",
                      "provider",
                      "model",
                      "basis",
                      "input_token_bound",
                      "output_token_cap",
                      "prompt_bytes",
                      "section_bytes"
                    ],
                    "properties": {
                      "basis": {
                        "const": "utf8_byte_upper_bound"
                      },
                      "model": {
                        "type": "string",
                        "maxLength": 200
                      },
                      "provider": {
                        "type": "string",
                        "maxLength": 200
                      },
                      "prompt_bytes": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "limit_credits": {
                        "type": "string",
                        "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                        "maxLength": 64
                      },
                      "section_bytes": {
                        "type": "object",
                        "required": [],
                        "properties": {
                          "spec": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "intent": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "input_contract": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "output_contract": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "acceptance_suite": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "research_evidence": {
                            "type": "integer",
                            "minimum": 0
                          }
                        },
                        "additionalProperties": false
                      },
                      "output_token_cap": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "estimated_credits": {
                        "type": "string",
                        "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                        "maxLength": 64
                      },
                      "input_token_bound": {
                        "type": "integer",
                        "minimum": 0
                      }
                    },
                    "additionalProperties": false
                  },
                  "limit_credits": {
                    "type": "string",
                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                    "maxLength": 64
                  },
                  "estimated_credits": {
                    "type": "string",
                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                    "maxLength": 64
                  },
                  "missing_categories": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 64
                    },
                    "maxItems": 10,
                    "uniqueItems": true
                  },
                  "retry_after_seconds": {
                    "type": "integer",
                    "maximum": 86400,
                    "minimum": 1
                  }
                },
                "additionalProperties": false
              }
            ]
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "get_recipe_activity_billing",
          "title": "Get Recipe Activity Billing",
          "description": "Read billing results for one recipe build activity.",
          "inputSchema": {
            "type": "object",
            "required": [
              "activity_ref"
            ],
            "properties": {
              "cursor": {
                "type": "string",
                "maxLength": 512
              },
              "activity_ref": {
                "type": "string",
                "maxLength": 4096,
                "minLength": 1
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "oneOf": [
              {
                "type": "object",
                "required": [
                  "activity_ref",
                  "kind",
                  "state",
                  "revision",
                  "terminal",
                  "section",
                  "billing"
                ],
                "properties": {
                  "kind": {
                    "enum": [
                      "review",
                      "acceptance_batch",
                      "acceptance_case"
                    ]
                  },
                  "retry": {
                    "type": "object",
                    "required": [
                      "state",
                      "attempt",
                      "maximum_attempts",
                      "retry_at",
                      "reason"
                    ],
                    "properties": {
                      "state": {
                        "enum": [
                          "scheduled",
                          "retrying"
                        ]
                      },
                      "reason": {
                        "enum": [
                          "review_processing_interrupted",
                          "provider_result_processing_retry",
                          "settlement_retry"
                        ]
                      },
                      "attempt": {
                        "type": "integer",
                        "maximum": 3,
                        "minimum": 1
                      },
                      "retry_at": {
                        "type": "string",
                        "format": "date-time",
                        "maxLength": 64
                      },
                      "maximum_attempts": {
                        "const": 3
                      }
                    },
                    "additionalProperties": false
                  },
                  "state": {
                    "enum": [
                      "queued",
                      "running",
                      "blocked",
                      "done",
                      "failed",
                      "cancelled"
                    ]
                  },
                  "billing": {
                    "oneOf": [
                      {
                        "type": "object",
                        "required": [
                          "state",
                          "retry_after_seconds"
                        ],
                        "properties": {
                          "state": {
                            "const": "pending"
                          },
                          "retry_after_seconds": {
                            "const": 2
                          }
                        },
                        "additionalProperties": false
                      },
                      {
                        "type": "object",
                        "required": [
                          "state"
                        ],
                        "properties": {
                          "state": {
                            "const": "unavailable"
                          }
                        },
                        "additionalProperties": false
                      },
                      {
                        "type": "object",
                        "required": [
                          "state",
                          "settled_credits",
                          "remaining_budget"
                        ],
                        "properties": {
                          "state": {
                            "const": "settled"
                          },
                          "settled_credits": {
                            "type": "string",
                            "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                            "maxLength": 64
                          },
                          "remaining_budget": {
                            "type": "string",
                            "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                            "maxLength": 64
                          },
                          "charge_disposition": {
                            "const": "platform_absorbed"
                          },
                          "provider_cost_status": {
                            "const": "unknown"
                          }
                        },
                        "additionalProperties": false
                      }
                    ]
                  },
                  "section": {
                    "const": "billing"
                  },
                  "revision": {
                    "type": "string",
                    "pattern": "^[0-9a-f]{64}$",
                    "maxLength": 64
                  },
                  "terminal": {
                    "type": "boolean"
                  },
                  "error_code": {
                    "type": "string",
                    "maxLength": 64
                  },
                  "truncation": {
                    "type": "object",
                    "required": [
                      "applied",
                      "reason",
                      "omitted_items",
                      "truncated_values",
                      "original_result_bytes"
                    ],
                    "properties": {
                      "reason": {
                        "const": "response_size_limit"
                      },
                      "applied": {
                        "const": true
                      },
                      "omitted_items": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "truncated_values": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "original_result_bytes": {
                        "type": "integer",
                        "minimum": 1
                      }
                    },
                    "additionalProperties": false
                  },
                  "activity_ref": {
                    "type": "string",
                    "maxLength": 4096,
                    "minLength": 1
                  },
                  "execution_diagnostic": {
                    "type": "object",
                    "required": [
                      "step_id",
                      "node_type",
                      "code",
                      "field_path",
                      "message",
                      "fix_hint"
                    ],
                    "properties": {
                      "code": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "message": {
                        "type": "string",
                        "maxLength": 200
                      },
                      "step_id": {
                        "type": "string",
                        "maxLength": 128
                      },
                      "evidence": {
                        "type": "object",
                        "required": [
                          "source"
                        ],
                        "properties": {
                          "source": {
                            "enum": [
                              "structured_executor",
                              "legacy_executor_message"
                            ]
                          },
                          "attempt_count": {
                            "type": "integer",
                            "maximum": 100,
                            "minimum": 1
                          },
                          "finish_reason": {
                            "enum": [
                              "max_output_tokens",
                              "max_tokens",
                              "length",
                              "content_filter",
                              "refusal",
                              "unknown"
                            ]
                          },
                          "reasoning_tokens": {
                            "type": "integer",
                            "maximum": 10000000,
                            "minimum": 0
                          },
                          "max_output_tokens": {
                            "type": "integer",
                            "maximum": 10000000,
                            "minimum": 0
                          },
                          "total_output_tokens": {
                            "type": "integer",
                            "maximum": 10000000,
                            "minimum": 0
                          },
                          "visible_output_tokens": {
                            "type": "integer",
                            "maximum": 10000000,
                            "minimum": 0
                          }
                        },
                        "additionalProperties": false
                      },
                      "fix_hint": {
                        "type": "string",
                        "maxLength": 300
                      },
                      "node_type": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "field_path": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "maxLength": 64
                        },
                        "maxItems": 4
                      }
                    },
                    "additionalProperties": false
                  }
                }
              },
              {
                "type": "object",
                "required": [
                  "error"
                ],
                "properties": {
                  "hint": {
                    "type": "string",
                    "maxLength": 240
                  },
                  "error": {
                    "enum": [
                      "not_found",
                      "invalid_reference",
                      "invalid_params",
                      "revision_conflict",
                      "idempotency_conflict",
                      "document_too_large",
                      "payload_too_large",
                      "chunk_sequence_invalid",
                      "chunk_digest_mismatch",
                      "chunk_expired",
                      "invalid_cursor",
                      "suite_duplicate_case_id",
                      "suite_unresolved_pair",
                      "suite_schema_invalid",
                      "suite_missing_categories",
                      "suite_weak_normal_oracle",
                      "suite_too_large",
                      "unknown_case_id",
                      "duplicate_case_id",
                      "incomplete_case_selection",
                      "unsupported_node_kind",
                      "research_required",
                      "review_required",
                      "acceptance_required",
                      "qualification_stale",
                      "budget_not_approved",
                      "budget_exhausted",
                      "budget_superseded",
                      "budget_capability_consumed",
                      "budget_capability_expired",
                      "acceptance_case_cost_exceeded",
                      "authoring_budget_exceeded",
                      "authoring_grant_not_active",
                      "insufficient_credits",
                      "billing_anomaly",
                      "activity_stalled",
                      "activity_in_flight",
                      "handoff_approval_required",
                      "handoff_expired",
                      "handoff_not_pending",
                      "handoff_stale",
                      "handoff_disclosure_incomplete",
                      "feature_unavailable",
                      "resource_unavailable",
                      "resource_binding_required",
                      "resource_requirement_not_found",
                      "activity_not_cancellable",
                      "quota_exceeded",
                      "rate_limited",
                      "already_published",
                      "safety_locked",
                      "build_terminal",
                      "commit_capability_expired",
                      "account_unavailable",
                      "limit_unavailable"
                    ]
                  },
                  "field": {
                    "type": "string",
                    "maxLength": 64
                  },
                  "issue": {
                    "type": "object",
                    "required": [
                      "code",
                      "path"
                    ],
                    "properties": {
                      "code": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "path": {
                        "type": "string",
                        "maxLength": 512
                      },
                      "type": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "field": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "operator": {
                        "type": "string",
                        "maxLength": 64
                      }
                    },
                    "additionalProperties": false
                  },
                  "case_id": {
                    "type": "string",
                    "maxLength": 64,
                    "minLength": 1
                  },
                  "truncation": {
                    "type": "object",
                    "required": [
                      "applied",
                      "reason",
                      "omitted_items",
                      "truncated_values",
                      "original_result_bytes"
                    ],
                    "properties": {
                      "reason": {
                        "const": "response_size_limit"
                      },
                      "applied": {
                        "const": true
                      },
                      "omitted_items": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "truncated_values": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "original_result_bytes": {
                        "type": "integer",
                        "minimum": 1
                      }
                    },
                    "additionalProperties": false
                  },
                  "repair_hint": {
                    "type": "string",
                    "maxLength": 500
                  },
                  "review_cost": {
                    "type": "object",
                    "required": [
                      "estimated_credits",
                      "limit_credits",
                      "provider",
                      "model",
                      "basis",
                      "input_token_bound",
                      "output_token_cap",
                      "prompt_bytes",
                      "section_bytes"
                    ],
                    "properties": {
                      "basis": {
                        "const": "utf8_byte_upper_bound"
                      },
                      "model": {
                        "type": "string",
                        "maxLength": 200
                      },
                      "provider": {
                        "type": "string",
                        "maxLength": 200
                      },
                      "prompt_bytes": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "limit_credits": {
                        "type": "string",
                        "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                        "maxLength": 64
                      },
                      "section_bytes": {
                        "type": "object",
                        "required": [],
                        "properties": {
                          "spec": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "intent": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "input_contract": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "output_contract": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "acceptance_suite": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "research_evidence": {
                            "type": "integer",
                            "minimum": 0
                          }
                        },
                        "additionalProperties": false
                      },
                      "output_token_cap": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "estimated_credits": {
                        "type": "string",
                        "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                        "maxLength": 64
                      },
                      "input_token_bound": {
                        "type": "integer",
                        "minimum": 0
                      }
                    },
                    "additionalProperties": false
                  },
                  "limit_credits": {
                    "type": "string",
                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                    "maxLength": 64
                  },
                  "estimated_credits": {
                    "type": "string",
                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                    "maxLength": 64
                  },
                  "missing_categories": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 64
                    },
                    "maxItems": 10,
                    "uniqueItems": true
                  },
                  "retry_after_seconds": {
                    "type": "integer",
                    "maximum": 86400,
                    "minimum": 1
                  }
                },
                "additionalProperties": false
              }
            ]
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "get_recipe_activity_coverage",
          "title": "Get Recipe Activity Coverage",
          "description": "Read coverage results for one recipe build activity.",
          "inputSchema": {
            "type": "object",
            "required": [
              "activity_ref"
            ],
            "properties": {
              "cursor": {
                "type": "string",
                "maxLength": 512
              },
              "activity_ref": {
                "type": "string",
                "maxLength": 4096,
                "minLength": 1
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "oneOf": [
              {
                "type": "object",
                "required": [
                  "activity_ref",
                  "kind",
                  "state",
                  "revision",
                  "terminal",
                  "section",
                  "coverage"
                ],
                "properties": {
                  "kind": {
                    "enum": [
                      "review",
                      "acceptance_batch",
                      "acceptance_case"
                    ]
                  },
                  "retry": {
                    "type": "object",
                    "required": [
                      "state",
                      "attempt",
                      "maximum_attempts",
                      "retry_at",
                      "reason"
                    ],
                    "properties": {
                      "state": {
                        "enum": [
                          "scheduled",
                          "retrying"
                        ]
                      },
                      "reason": {
                        "enum": [
                          "review_processing_interrupted",
                          "provider_result_processing_retry",
                          "settlement_retry"
                        ]
                      },
                      "attempt": {
                        "type": "integer",
                        "maximum": 3,
                        "minimum": 1
                      },
                      "retry_at": {
                        "type": "string",
                        "format": "date-time",
                        "maxLength": 64
                      },
                      "maximum_attempts": {
                        "const": 3
                      }
                    },
                    "additionalProperties": false
                  },
                  "state": {
                    "enum": [
                      "queued",
                      "running",
                      "blocked",
                      "done",
                      "failed",
                      "cancelled"
                    ]
                  },
                  "section": {
                    "const": "coverage"
                  },
                  "coverage": {
                    "type": "object",
                    "required": [
                      "selected_case_ids",
                      "required_case_ids",
                      "qualified"
                    ],
                    "properties": {
                      "qualified": {
                        "type": "boolean"
                      },
                      "required_case_ids": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "maxLength": 64
                        },
                        "maxItems": 50
                      },
                      "selected_case_ids": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "maxLength": 64
                        },
                        "maxItems": 50
                      }
                    },
                    "additionalProperties": false
                  },
                  "revision": {
                    "type": "string",
                    "pattern": "^[0-9a-f]{64}$",
                    "maxLength": 64
                  },
                  "terminal": {
                    "type": "boolean"
                  },
                  "error_code": {
                    "type": "string",
                    "maxLength": 64
                  },
                  "truncation": {
                    "type": "object",
                    "required": [
                      "applied",
                      "reason",
                      "omitted_items",
                      "truncated_values",
                      "original_result_bytes"
                    ],
                    "properties": {
                      "reason": {
                        "const": "response_size_limit"
                      },
                      "applied": {
                        "const": true
                      },
                      "omitted_items": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "truncated_values": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "original_result_bytes": {
                        "type": "integer",
                        "minimum": 1
                      }
                    },
                    "additionalProperties": false
                  },
                  "activity_ref": {
                    "type": "string",
                    "maxLength": 4096,
                    "minLength": 1
                  },
                  "execution_diagnostic": {
                    "type": "object",
                    "required": [
                      "step_id",
                      "node_type",
                      "code",
                      "field_path",
                      "message",
                      "fix_hint"
                    ],
                    "properties": {
                      "code": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "message": {
                        "type": "string",
                        "maxLength": 200
                      },
                      "step_id": {
                        "type": "string",
                        "maxLength": 128
                      },
                      "evidence": {
                        "type": "object",
                        "required": [
                          "source"
                        ],
                        "properties": {
                          "source": {
                            "enum": [
                              "structured_executor",
                              "legacy_executor_message"
                            ]
                          },
                          "attempt_count": {
                            "type": "integer",
                            "maximum": 100,
                            "minimum": 1
                          },
                          "finish_reason": {
                            "enum": [
                              "max_output_tokens",
                              "max_tokens",
                              "length",
                              "content_filter",
                              "refusal",
                              "unknown"
                            ]
                          },
                          "reasoning_tokens": {
                            "type": "integer",
                            "maximum": 10000000,
                            "minimum": 0
                          },
                          "max_output_tokens": {
                            "type": "integer",
                            "maximum": 10000000,
                            "minimum": 0
                          },
                          "total_output_tokens": {
                            "type": "integer",
                            "maximum": 10000000,
                            "minimum": 0
                          },
                          "visible_output_tokens": {
                            "type": "integer",
                            "maximum": 10000000,
                            "minimum": 0
                          }
                        },
                        "additionalProperties": false
                      },
                      "fix_hint": {
                        "type": "string",
                        "maxLength": 300
                      },
                      "node_type": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "field_path": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "maxLength": 64
                        },
                        "maxItems": 4
                      }
                    },
                    "additionalProperties": false
                  }
                }
              },
              {
                "type": "object",
                "required": [
                  "error"
                ],
                "properties": {
                  "hint": {
                    "type": "string",
                    "maxLength": 240
                  },
                  "error": {
                    "enum": [
                      "not_found",
                      "invalid_reference",
                      "invalid_params",
                      "revision_conflict",
                      "idempotency_conflict",
                      "document_too_large",
                      "payload_too_large",
                      "chunk_sequence_invalid",
                      "chunk_digest_mismatch",
                      "chunk_expired",
                      "invalid_cursor",
                      "suite_duplicate_case_id",
                      "suite_unresolved_pair",
                      "suite_schema_invalid",
                      "suite_missing_categories",
                      "suite_weak_normal_oracle",
                      "suite_too_large",
                      "unknown_case_id",
                      "duplicate_case_id",
                      "incomplete_case_selection",
                      "unsupported_node_kind",
                      "research_required",
                      "review_required",
                      "acceptance_required",
                      "qualification_stale",
                      "budget_not_approved",
                      "budget_exhausted",
                      "budget_superseded",
                      "budget_capability_consumed",
                      "budget_capability_expired",
                      "acceptance_case_cost_exceeded",
                      "authoring_budget_exceeded",
                      "authoring_grant_not_active",
                      "insufficient_credits",
                      "billing_anomaly",
                      "activity_stalled",
                      "activity_in_flight",
                      "handoff_approval_required",
                      "handoff_expired",
                      "handoff_not_pending",
                      "handoff_stale",
                      "handoff_disclosure_incomplete",
                      "feature_unavailable",
                      "resource_unavailable",
                      "resource_binding_required",
                      "resource_requirement_not_found",
                      "activity_not_cancellable",
                      "quota_exceeded",
                      "rate_limited",
                      "already_published",
                      "safety_locked",
                      "build_terminal",
                      "commit_capability_expired",
                      "account_unavailable",
                      "limit_unavailable"
                    ]
                  },
                  "field": {
                    "type": "string",
                    "maxLength": 64
                  },
                  "issue": {
                    "type": "object",
                    "required": [
                      "code",
                      "path"
                    ],
                    "properties": {
                      "code": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "path": {
                        "type": "string",
                        "maxLength": 512
                      },
                      "type": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "field": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "operator": {
                        "type": "string",
                        "maxLength": 64
                      }
                    },
                    "additionalProperties": false
                  },
                  "case_id": {
                    "type": "string",
                    "maxLength": 64,
                    "minLength": 1
                  },
                  "truncation": {
                    "type": "object",
                    "required": [
                      "applied",
                      "reason",
                      "omitted_items",
                      "truncated_values",
                      "original_result_bytes"
                    ],
                    "properties": {
                      "reason": {
                        "const": "response_size_limit"
                      },
                      "applied": {
                        "const": true
                      },
                      "omitted_items": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "truncated_values": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "original_result_bytes": {
                        "type": "integer",
                        "minimum": 1
                      }
                    },
                    "additionalProperties": false
                  },
                  "repair_hint": {
                    "type": "string",
                    "maxLength": 500
                  },
                  "review_cost": {
                    "type": "object",
                    "required": [
                      "estimated_credits",
                      "limit_credits",
                      "provider",
                      "model",
                      "basis",
                      "input_token_bound",
                      "output_token_cap",
                      "prompt_bytes",
                      "section_bytes"
                    ],
                    "properties": {
                      "basis": {
                        "const": "utf8_byte_upper_bound"
                      },
                      "model": {
                        "type": "string",
                        "maxLength": 200
                      },
                      "provider": {
                        "type": "string",
                        "maxLength": 200
                      },
                      "prompt_bytes": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "limit_credits": {
                        "type": "string",
                        "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                        "maxLength": 64
                      },
                      "section_bytes": {
                        "type": "object",
                        "required": [],
                        "properties": {
                          "spec": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "intent": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "input_contract": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "output_contract": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "acceptance_suite": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "research_evidence": {
                            "type": "integer",
                            "minimum": 0
                          }
                        },
                        "additionalProperties": false
                      },
                      "output_token_cap": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "estimated_credits": {
                        "type": "string",
                        "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                        "maxLength": 64
                      },
                      "input_token_bound": {
                        "type": "integer",
                        "minimum": 0
                      }
                    },
                    "additionalProperties": false
                  },
                  "limit_credits": {
                    "type": "string",
                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                    "maxLength": 64
                  },
                  "estimated_credits": {
                    "type": "string",
                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                    "maxLength": 64
                  },
                  "missing_categories": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 64
                    },
                    "maxItems": 10,
                    "uniqueItems": true
                  },
                  "retry_after_seconds": {
                    "type": "integer",
                    "maximum": 86400,
                    "minimum": 1
                  }
                },
                "additionalProperties": false
              }
            ]
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "get_recipe_authoring_guidance",
          "title": "Read Recipe Authoring Guidance",
          "description": "Read versioned authoring rules and matched archetype guidance for one private build.",
          "inputSchema": {
            "type": "object",
            "required": [
              "build_ref"
            ],
            "properties": {
              "build_ref": {
                "type": "string",
                "maxLength": 4096,
                "minLength": 1
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "oneOf": [
              {
                "type": "object",
                "required": [
                  "view",
                  "data"
                ],
                "properties": {
                  "data": {
                    "type": "object",
                    "required": [
                      "build_ref",
                      "name",
                      "status",
                      "revision",
                      "qualification",
                      "archived_at",
                      "dsl_version",
                      "catalog_version",
                      "guidance_version",
                      "matched_archetypes",
                      "contract_bundle",
                      "minimum_acceptance_categories",
                      "authoring_rules"
                    ],
                    "properties": {
                      "name": {
                        "type": "string",
                        "maxLength": 200,
                        "minLength": 1
                      },
                      "status": {
                        "enum": [
                          "draft",
                          "qualified",
                          "committed",
                          "abandoned"
                        ]
                      },
                      "revision": {
                        "type": "string",
                        "pattern": "^[0-9a-f]{64}$",
                        "maxLength": 64
                      },
                      "versions": {
                        "type": "object",
                        "required": [
                          "archetypes",
                          "capabilities",
                          "checks",
                          "guidance",
                          "models"
                        ],
                        "properties": {
                          "checks": {
                            "type": "string",
                            "maxLength": 64
                          },
                          "models": {
                            "type": "string",
                            "maxLength": 64
                          },
                          "guidance": {
                            "type": "string",
                            "maxLength": 64
                          },
                          "archetypes": {
                            "type": "string",
                            "maxLength": 64
                          },
                          "capabilities": {
                            "type": "string",
                            "maxLength": 64
                          }
                        },
                        "additionalProperties": false
                      },
                      "build_ref": {
                        "type": "string",
                        "maxLength": 4096,
                        "minLength": 1
                      },
                      "archived_at": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "format": "date-time",
                        "maxLength": 64
                      },
                      "dsl_version": {
                        "const": 2
                      },
                      "qualification": {
                        "enum": [
                          "none",
                          "pending",
                          "qualified",
                          "invalidated"
                        ]
                      },
                      "authoring_rules": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "maxLength": 500,
                          "minLength": 1
                        },
                        "maxItems": 20,
                        "minItems": 1,
                        "uniqueItems": true
                      },
                      "catalog_version": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "contract_bundle": {
                        "type": "object",
                        "required": [
                          "catalog_version",
                          "archetype",
                          "input_contract",
                          "output_contract",
                          "recipe_spec"
                        ],
                        "properties": {
                          "versions": {
                            "type": "object",
                            "required": [
                              "archetypes",
                              "capabilities",
                              "checks",
                              "guidance",
                              "models"
                            ],
                            "properties": {
                              "checks": {
                                "type": "string",
                                "maxLength": 64
                              },
                              "models": {
                                "type": "string",
                                "maxLength": 64
                              },
                              "guidance": {
                                "type": "string",
                                "maxLength": 64
                              },
                              "archetypes": {
                                "type": "string",
                                "maxLength": 64
                              },
                              "capabilities": {
                                "type": "string",
                                "maxLength": 64
                              }
                            },
                            "additionalProperties": false
                          },
                          "archetype": {
                            "oneOf": [
                              {
                                "type": "object",
                                "required": [
                                  "archetype_id",
                                  "title",
                                  "summary",
                                  "capabilities",
                                  "node_kinds"
                                ],
                                "properties": {
                                  "title": {
                                    "type": "string",
                                    "maxLength": 120,
                                    "minLength": 1
                                  },
                                  "summary": {
                                    "type": "string",
                                    "maxLength": 500,
                                    "minLength": 1
                                  },
                                  "node_kinds": {
                                    "type": "array",
                                    "items": {
                                      "type": "string",
                                      "maxLength": 64
                                    },
                                    "maxItems": 24
                                  },
                                  "archetype_id": {
                                    "type": "string",
                                    "maxLength": 64,
                                    "minLength": 1
                                  },
                                  "capabilities": {
                                    "type": "array",
                                    "items": {
                                      "type": "string",
                                      "maxLength": 64
                                    },
                                    "maxItems": 20
                                  }
                                },
                                "additionalProperties": false
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "recipe_spec": {
                            "type": "object"
                          },
                          "input_contract": {
                            "type": "object",
                            "required": [
                              "fields"
                            ],
                            "properties": {
                              "fields": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "required": [
                                    "handle",
                                    "label",
                                    "description",
                                    "required",
                                    "schema"
                                  ],
                                  "properties": {
                                    "label": {
                                      "type": "string",
                                      "maxLength": 120,
                                      "minLength": 1
                                    },
                                    "handle": {
                                      "type": "string",
                                      "pattern": "^[a-z][a-z0-9_]{0,63}$",
                                      "maxLength": 64
                                    },
                                    "schema": {
                                      "type": "object",
                                      "maxProperties": 100
                                    },
                                    "required": {
                                      "type": "boolean"
                                    },
                                    "description": {
                                      "type": "string",
                                      "maxLength": 500
                                    }
                                  },
                                  "additionalProperties": false
                                },
                                "maxItems": 20
                              }
                            },
                            "additionalProperties": false
                          },
                          "catalog_version": {
                            "type": "string",
                            "maxLength": 64
                          },
                          "output_contract": {
                            "type": "object",
                            "required": [
                              "fields"
                            ],
                            "properties": {
                              "fields": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "required": [
                                    "handle",
                                    "label",
                                    "description",
                                    "required",
                                    "schema"
                                  ],
                                  "properties": {
                                    "label": {
                                      "type": "string",
                                      "maxLength": 120,
                                      "minLength": 1
                                    },
                                    "handle": {
                                      "type": "string",
                                      "pattern": "^[a-z][a-z0-9_]{0,63}$",
                                      "maxLength": 64
                                    },
                                    "schema": {
                                      "type": "object",
                                      "maxProperties": 100
                                    },
                                    "required": {
                                      "const": true
                                    },
                                    "description": {
                                      "type": "string",
                                      "maxLength": 500
                                    }
                                  },
                                  "additionalProperties": false
                                },
                                "maxItems": 20
                              }
                            },
                            "additionalProperties": false
                          }
                        },
                        "additionalProperties": false
                      },
                      "guidance_version": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "matched_archetypes": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "required": [
                            "archetype_id",
                            "title",
                            "summary",
                            "capabilities",
                            "node_kinds"
                          ],
                          "properties": {
                            "title": {
                              "type": "string",
                              "maxLength": 120,
                              "minLength": 1
                            },
                            "summary": {
                              "type": "string",
                              "maxLength": 500,
                              "minLength": 1
                            },
                            "node_kinds": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "maxLength": 64
                              },
                              "maxItems": 24
                            },
                            "archetype_id": {
                              "type": "string",
                              "maxLength": 64,
                              "minLength": 1
                            },
                            "capabilities": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "maxLength": 64
                              },
                              "maxItems": 20
                            }
                          },
                          "additionalProperties": false
                        },
                        "maxItems": 3
                      },
                      "minimum_acceptance_categories": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "maxLength": 64
                        },
                        "maxItems": 20
                      }
                    },
                    "additionalProperties": false
                  },
                  "view": {
                    "const": "guidance"
                  },
                  "truncation": {
                    "type": "object",
                    "required": [
                      "applied",
                      "reason",
                      "omitted_items",
                      "truncated_values",
                      "original_result_bytes"
                    ],
                    "properties": {
                      "reason": {
                        "const": "response_size_limit"
                      },
                      "applied": {
                        "const": true
                      },
                      "omitted_items": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "truncated_values": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "original_result_bytes": {
                        "type": "integer",
                        "minimum": 1
                      }
                    },
                    "additionalProperties": false
                  }
                }
              },
              {
                "type": "object",
                "required": [
                  "error"
                ],
                "properties": {
                  "hint": {
                    "type": "string",
                    "maxLength": 240
                  },
                  "error": {
                    "enum": [
                      "not_found",
                      "invalid_reference",
                      "invalid_params",
                      "revision_conflict",
                      "idempotency_conflict",
                      "document_too_large",
                      "payload_too_large",
                      "chunk_sequence_invalid",
                      "chunk_digest_mismatch",
                      "chunk_expired",
                      "invalid_cursor",
                      "suite_duplicate_case_id",
                      "suite_unresolved_pair",
                      "suite_schema_invalid",
                      "suite_missing_categories",
                      "suite_weak_normal_oracle",
                      "suite_too_large",
                      "unknown_case_id",
                      "duplicate_case_id",
                      "incomplete_case_selection",
                      "unsupported_node_kind",
                      "research_required",
                      "review_required",
                      "acceptance_required",
                      "qualification_stale",
                      "budget_not_approved",
                      "budget_exhausted",
                      "budget_superseded",
                      "budget_capability_consumed",
                      "budget_capability_expired",
                      "acceptance_case_cost_exceeded",
                      "authoring_budget_exceeded",
                      "authoring_grant_not_active",
                      "insufficient_credits",
                      "billing_anomaly",
                      "activity_stalled",
                      "activity_in_flight",
                      "handoff_approval_required",
                      "handoff_expired",
                      "handoff_not_pending",
                      "handoff_stale",
                      "handoff_disclosure_incomplete",
                      "feature_unavailable",
                      "resource_unavailable",
                      "resource_binding_required",
                      "resource_requirement_not_found",
                      "activity_not_cancellable",
                      "quota_exceeded",
                      "rate_limited",
                      "already_published",
                      "safety_locked",
                      "build_terminal",
                      "commit_capability_expired",
                      "account_unavailable",
                      "limit_unavailable"
                    ]
                  },
                  "field": {
                    "type": "string",
                    "maxLength": 64
                  },
                  "issue": {
                    "type": "object",
                    "required": [
                      "code",
                      "path"
                    ],
                    "properties": {
                      "code": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "path": {
                        "type": "string",
                        "maxLength": 512
                      },
                      "type": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "field": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "operator": {
                        "type": "string",
                        "maxLength": 64
                      }
                    },
                    "additionalProperties": false
                  },
                  "case_id": {
                    "type": "string",
                    "maxLength": 64,
                    "minLength": 1
                  },
                  "truncation": {
                    "type": "object",
                    "required": [
                      "applied",
                      "reason",
                      "omitted_items",
                      "truncated_values",
                      "original_result_bytes"
                    ],
                    "properties": {
                      "reason": {
                        "const": "response_size_limit"
                      },
                      "applied": {
                        "const": true
                      },
                      "omitted_items": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "truncated_values": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "original_result_bytes": {
                        "type": "integer",
                        "minimum": 1
                      }
                    },
                    "additionalProperties": false
                  },
                  "repair_hint": {
                    "type": "string",
                    "maxLength": 500
                  },
                  "review_cost": {
                    "type": "object",
                    "required": [
                      "estimated_credits",
                      "limit_credits",
                      "provider",
                      "model",
                      "basis",
                      "input_token_bound",
                      "output_token_cap",
                      "prompt_bytes",
                      "section_bytes"
                    ],
                    "properties": {
                      "basis": {
                        "const": "utf8_byte_upper_bound"
                      },
                      "model": {
                        "type": "string",
                        "maxLength": 200
                      },
                      "provider": {
                        "type": "string",
                        "maxLength": 200
                      },
                      "prompt_bytes": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "limit_credits": {
                        "type": "string",
                        "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                        "maxLength": 64
                      },
                      "section_bytes": {
                        "type": "object",
                        "required": [],
                        "properties": {
                          "spec": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "intent": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "input_contract": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "output_contract": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "acceptance_suite": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "research_evidence": {
                            "type": "integer",
                            "minimum": 0
                          }
                        },
                        "additionalProperties": false
                      },
                      "output_token_cap": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "estimated_credits": {
                        "type": "string",
                        "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                        "maxLength": 64
                      },
                      "input_token_bound": {
                        "type": "integer",
                        "minimum": 0
                      }
                    },
                    "additionalProperties": false
                  },
                  "limit_credits": {
                    "type": "string",
                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                    "maxLength": 64
                  },
                  "estimated_credits": {
                    "type": "string",
                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                    "maxLength": 64
                  },
                  "missing_categories": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 64
                    },
                    "maxItems": 10,
                    "uniqueItems": true
                  },
                  "retry_after_seconds": {
                    "type": "integer",
                    "maximum": 86400,
                    "minimum": 1
                  }
                },
                "additionalProperties": false
              }
            ]
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "get_recipe_build",
          "title": "Read a StewAI Recipe Build Summary",
          "description": "Read the status, revision, qualification state, and commit readiness of one private recipe build owned by the authenticated creator.",
          "inputSchema": {
            "type": "object",
            "required": [
              "build_ref"
            ],
            "properties": {
              "build_ref": {
                "type": "string",
                "maxLength": 4096,
                "minLength": 1
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "oneOf": [
              {
                "type": "object",
                "required": [
                  "view",
                  "data"
                ],
                "properties": {
                  "data": {
                    "type": "object",
                    "required": [
                      "build_ref",
                      "name",
                      "status",
                      "revision",
                      "qualification",
                      "archived_at",
                      "readiness"
                    ],
                    "properties": {
                      "name": {
                        "type": "string",
                        "maxLength": 200,
                        "minLength": 1
                      },
                      "status": {
                        "enum": [
                          "draft",
                          "qualified",
                          "committed",
                          "abandoned"
                        ]
                      },
                      "revision": {
                        "type": "string",
                        "pattern": "^[0-9a-f]{64}$",
                        "maxLength": 64
                      },
                      "build_ref": {
                        "type": "string",
                        "maxLength": 4096,
                        "minLength": 1
                      },
                      "readiness": {
                        "type": "object",
                        "required": [
                          "acceptance_qualified",
                          "commit_ready",
                          "remaining_gates",
                          "next_actions"
                        ],
                        "properties": {
                          "commit_ready": {
                            "type": "boolean"
                          },
                          "next_actions": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "required": [
                                "gate",
                                "tool",
                                "instruction"
                              ],
                              "properties": {
                                "gate": {
                                  "type": "string",
                                  "maxLength": 64
                                },
                                "tool": {
                                  "type": "string",
                                  "maxLength": 64
                                },
                                "instruction": {
                                  "type": "string",
                                  "maxLength": 300
                                }
                              },
                              "additionalProperties": false
                            },
                            "maxItems": 10
                          },
                          "remaining_gates": {
                            "type": "array",
                            "items": {
                              "type": "string",
                              "maxLength": 64
                            },
                            "maxItems": 10
                          },
                          "acceptance_qualified": {
                            "type": "boolean"
                          }
                        },
                        "additionalProperties": false
                      },
                      "archived_at": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "format": "date-time",
                        "maxLength": 64
                      },
                      "qualification": {
                        "enum": [
                          "none",
                          "pending",
                          "qualified",
                          "invalidated"
                        ]
                      }
                    },
                    "additionalProperties": false
                  },
                  "view": {
                    "const": "summary"
                  },
                  "truncation": {
                    "type": "object",
                    "required": [
                      "applied",
                      "reason",
                      "omitted_items",
                      "truncated_values",
                      "original_result_bytes"
                    ],
                    "properties": {
                      "reason": {
                        "const": "response_size_limit"
                      },
                      "applied": {
                        "const": true
                      },
                      "omitted_items": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "truncated_values": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "original_result_bytes": {
                        "type": "integer",
                        "minimum": 1
                      }
                    },
                    "additionalProperties": false
                  }
                }
              },
              {
                "type": "object",
                "required": [
                  "error"
                ],
                "properties": {
                  "hint": {
                    "type": "string",
                    "maxLength": 240
                  },
                  "error": {
                    "enum": [
                      "not_found",
                      "invalid_reference",
                      "invalid_params",
                      "revision_conflict",
                      "idempotency_conflict",
                      "document_too_large",
                      "payload_too_large",
                      "chunk_sequence_invalid",
                      "chunk_digest_mismatch",
                      "chunk_expired",
                      "invalid_cursor",
                      "suite_duplicate_case_id",
                      "suite_unresolved_pair",
                      "suite_schema_invalid",
                      "suite_missing_categories",
                      "suite_weak_normal_oracle",
                      "suite_too_large",
                      "unknown_case_id",
                      "duplicate_case_id",
                      "incomplete_case_selection",
                      "unsupported_node_kind",
                      "research_required",
                      "review_required",
                      "acceptance_required",
                      "qualification_stale",
                      "budget_not_approved",
                      "budget_exhausted",
                      "budget_superseded",
                      "budget_capability_consumed",
                      "budget_capability_expired",
                      "acceptance_case_cost_exceeded",
                      "authoring_budget_exceeded",
                      "authoring_grant_not_active",
                      "insufficient_credits",
                      "billing_anomaly",
                      "activity_stalled",
                      "activity_in_flight",
                      "handoff_approval_required",
                      "handoff_expired",
                      "handoff_not_pending",
                      "handoff_stale",
                      "handoff_disclosure_incomplete",
                      "feature_unavailable",
                      "resource_unavailable",
                      "resource_binding_required",
                      "resource_requirement_not_found",
                      "activity_not_cancellable",
                      "quota_exceeded",
                      "rate_limited",
                      "already_published",
                      "safety_locked",
                      "build_terminal",
                      "commit_capability_expired",
                      "account_unavailable",
                      "limit_unavailable"
                    ]
                  },
                  "field": {
                    "type": "string",
                    "maxLength": 64
                  },
                  "issue": {
                    "type": "object",
                    "required": [
                      "code",
                      "path"
                    ],
                    "properties": {
                      "code": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "path": {
                        "type": "string",
                        "maxLength": 512
                      },
                      "type": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "field": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "operator": {
                        "type": "string",
                        "maxLength": 64
                      }
                    },
                    "additionalProperties": false
                  },
                  "case_id": {
                    "type": "string",
                    "maxLength": 64,
                    "minLength": 1
                  },
                  "truncation": {
                    "type": "object",
                    "required": [
                      "applied",
                      "reason",
                      "omitted_items",
                      "truncated_values",
                      "original_result_bytes"
                    ],
                    "properties": {
                      "reason": {
                        "const": "response_size_limit"
                      },
                      "applied": {
                        "const": true
                      },
                      "omitted_items": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "truncated_values": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "original_result_bytes": {
                        "type": "integer",
                        "minimum": 1
                      }
                    },
                    "additionalProperties": false
                  },
                  "repair_hint": {
                    "type": "string",
                    "maxLength": 500
                  },
                  "review_cost": {
                    "type": "object",
                    "required": [
                      "estimated_credits",
                      "limit_credits",
                      "provider",
                      "model",
                      "basis",
                      "input_token_bound",
                      "output_token_cap",
                      "prompt_bytes",
                      "section_bytes"
                    ],
                    "properties": {
                      "basis": {
                        "const": "utf8_byte_upper_bound"
                      },
                      "model": {
                        "type": "string",
                        "maxLength": 200
                      },
                      "provider": {
                        "type": "string",
                        "maxLength": 200
                      },
                      "prompt_bytes": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "limit_credits": {
                        "type": "string",
                        "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                        "maxLength": 64
                      },
                      "section_bytes": {
                        "type": "object",
                        "required": [],
                        "properties": {
                          "spec": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "intent": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "input_contract": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "output_contract": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "acceptance_suite": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "research_evidence": {
                            "type": "integer",
                            "minimum": 0
                          }
                        },
                        "additionalProperties": false
                      },
                      "output_token_cap": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "estimated_credits": {
                        "type": "string",
                        "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                        "maxLength": 64
                      },
                      "input_token_bound": {
                        "type": "integer",
                        "minimum": 0
                      }
                    },
                    "additionalProperties": false
                  },
                  "limit_credits": {
                    "type": "string",
                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                    "maxLength": 64
                  },
                  "estimated_credits": {
                    "type": "string",
                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                    "maxLength": 64
                  },
                  "missing_categories": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 64
                    },
                    "maxItems": 10,
                    "uniqueItems": true
                  },
                  "retry_after_seconds": {
                    "type": "integer",
                    "maximum": 86400,
                    "minimum": 1
                  }
                },
                "additionalProperties": false
              }
            ]
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "get_recipe_build_activity",
          "title": "Get Recipe Build Activity",
          "description": "Read the current summary of one recipe review or acceptance activity.",
          "inputSchema": {
            "type": "object",
            "required": [
              "activity_ref"
            ],
            "properties": {
              "cursor": {
                "type": "string",
                "maxLength": 512
              },
              "activity_ref": {
                "type": "string",
                "maxLength": 4096,
                "minLength": 1
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "oneOf": [
              {
                "type": "object",
                "required": [
                  "activity_ref",
                  "kind",
                  "state",
                  "revision",
                  "terminal",
                  "section",
                  "summary"
                ],
                "properties": {
                  "kind": {
                    "const": "review"
                  },
                  "retry": {
                    "type": "object",
                    "required": [
                      "state",
                      "attempt",
                      "maximum_attempts",
                      "retry_at",
                      "reason"
                    ],
                    "properties": {
                      "state": {
                        "enum": [
                          "scheduled",
                          "retrying"
                        ]
                      },
                      "reason": {
                        "enum": [
                          "review_processing_interrupted",
                          "provider_result_processing_retry",
                          "settlement_retry"
                        ]
                      },
                      "attempt": {
                        "type": "integer",
                        "maximum": 3,
                        "minimum": 1
                      },
                      "retry_at": {
                        "type": "string",
                        "format": "date-time",
                        "maxLength": 64
                      },
                      "maximum_attempts": {
                        "const": 3
                      }
                    },
                    "additionalProperties": false
                  },
                  "state": {
                    "enum": [
                      "queued",
                      "running",
                      "blocked",
                      "done",
                      "failed",
                      "cancelled"
                    ]
                  },
                  "section": {
                    "const": "summary"
                  },
                  "summary": {
                    "type": "object",
                    "required": [
                      "verdict",
                      "issues",
                      "strengths"
                    ],
                    "properties": {
                      "issues": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "required": [
                            "code",
                            "severity"
                          ],
                          "properties": {
                            "code": {
                              "type": "string",
                              "maxLength": 64
                            },
                            "category": {
                              "enum": [
                                "runtime_contract",
                                "semantic_contract",
                                "method",
                                "safety",
                                "research",
                                "advisory"
                              ]
                            },
                            "severity": {
                              "enum": [
                                "info",
                                "warning",
                                "error"
                              ]
                            },
                            "evidence_path": {
                              "type": "string",
                              "maxLength": 512
                            },
                            "counterexample": {
                              "type": "string",
                              "maxLength": 1000
                            },
                            "recommendation": {
                              "type": "string",
                              "maxLength": 4000
                            },
                            "evidence_status": {
                              "enum": [
                                "source_verified",
                                "unsupported"
                              ]
                            },
                            "runtime_binding_status": {
                              "const": "verified"
                            }
                          },
                          "additionalProperties": false
                        },
                        "maxItems": 50
                      },
                      "verdict": {
                        "enum": [
                          "pending",
                          "pass",
                          "revise"
                        ]
                      },
                      "strengths": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "maxLength": 300
                        },
                        "maxItems": 20
                      },
                      "review_cost": {
                        "type": "object",
                        "required": [
                          "estimated_credits",
                          "limit_credits",
                          "provider",
                          "model",
                          "basis",
                          "input_token_bound",
                          "output_token_cap",
                          "prompt_bytes",
                          "section_bytes"
                        ],
                        "properties": {
                          "basis": {
                            "const": "utf8_byte_upper_bound"
                          },
                          "model": {
                            "type": "string",
                            "maxLength": 200
                          },
                          "provider": {
                            "type": "string",
                            "maxLength": 200
                          },
                          "prompt_bytes": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "limit_credits": {
                            "type": "string",
                            "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                            "maxLength": 64
                          },
                          "section_bytes": {
                            "type": "object",
                            "required": [],
                            "properties": {
                              "spec": {
                                "type": "integer",
                                "minimum": 0
                              },
                              "intent": {
                                "type": "integer",
                                "minimum": 0
                              },
                              "input_contract": {
                                "type": "integer",
                                "minimum": 0
                              },
                              "output_contract": {
                                "type": "integer",
                                "minimum": 0
                              },
                              "acceptance_suite": {
                                "type": "integer",
                                "minimum": 0
                              },
                              "research_evidence": {
                                "type": "integer",
                                "minimum": 0
                              }
                            },
                            "additionalProperties": false
                          },
                          "output_token_cap": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "estimated_credits": {
                            "type": "string",
                            "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                            "maxLength": 64
                          },
                          "input_token_bound": {
                            "type": "integer",
                            "minimum": 0
                          }
                        },
                        "additionalProperties": false
                      }
                    },
                    "additionalProperties": false
                  },
                  "revision": {
                    "type": "string",
                    "pattern": "^[0-9a-f]{64}$",
                    "maxLength": 64
                  },
                  "terminal": {
                    "type": "boolean"
                  },
                  "error_code": {
                    "type": "string",
                    "maxLength": 64
                  },
                  "truncation": {
                    "type": "object",
                    "required": [
                      "applied",
                      "reason",
                      "omitted_items",
                      "truncated_values",
                      "original_result_bytes"
                    ],
                    "properties": {
                      "reason": {
                        "const": "response_size_limit"
                      },
                      "applied": {
                        "const": true
                      },
                      "omitted_items": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "truncated_values": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "original_result_bytes": {
                        "type": "integer",
                        "minimum": 1
                      }
                    },
                    "additionalProperties": false
                  },
                  "activity_ref": {
                    "type": "string",
                    "maxLength": 4096,
                    "minLength": 1
                  },
                  "execution_diagnostic": {
                    "type": "object",
                    "required": [
                      "step_id",
                      "node_type",
                      "code",
                      "field_path",
                      "message",
                      "fix_hint"
                    ],
                    "properties": {
                      "code": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "message": {
                        "type": "string",
                        "maxLength": 200
                      },
                      "step_id": {
                        "type": "string",
                        "maxLength": 128
                      },
                      "evidence": {
                        "type": "object",
                        "required": [
                          "source"
                        ],
                        "properties": {
                          "source": {
                            "enum": [
                              "structured_executor",
                              "legacy_executor_message"
                            ]
                          },
                          "attempt_count": {
                            "type": "integer",
                            "maximum": 100,
                            "minimum": 1
                          },
                          "finish_reason": {
                            "enum": [
                              "max_output_tokens",
                              "max_tokens",
                              "length",
                              "content_filter",
                              "refusal",
                              "unknown"
                            ]
                          },
                          "reasoning_tokens": {
                            "type": "integer",
                            "maximum": 10000000,
                            "minimum": 0
                          },
                          "max_output_tokens": {
                            "type": "integer",
                            "maximum": 10000000,
                            "minimum": 0
                          },
                          "total_output_tokens": {
                            "type": "integer",
                            "maximum": 10000000,
                            "minimum": 0
                          },
                          "visible_output_tokens": {
                            "type": "integer",
                            "maximum": 10000000,
                            "minimum": 0
                          }
                        },
                        "additionalProperties": false
                      },
                      "fix_hint": {
                        "type": "string",
                        "maxLength": 300
                      },
                      "node_type": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "field_path": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "maxLength": 64
                        },
                        "maxItems": 4
                      }
                    },
                    "additionalProperties": false
                  }
                }
              },
              {
                "type": "object",
                "required": [
                  "activity_ref",
                  "kind",
                  "state",
                  "revision",
                  "terminal",
                  "section",
                  "summary"
                ],
                "properties": {
                  "kind": {
                    "const": "acceptance_batch"
                  },
                  "retry": {
                    "type": "object",
                    "required": [
                      "state",
                      "attempt",
                      "maximum_attempts",
                      "retry_at",
                      "reason"
                    ],
                    "properties": {
                      "state": {
                        "enum": [
                          "scheduled",
                          "retrying"
                        ]
                      },
                      "reason": {
                        "enum": [
                          "review_processing_interrupted",
                          "provider_result_processing_retry",
                          "settlement_retry"
                        ]
                      },
                      "attempt": {
                        "type": "integer",
                        "maximum": 3,
                        "minimum": 1
                      },
                      "retry_at": {
                        "type": "string",
                        "format": "date-time",
                        "maxLength": 64
                      },
                      "maximum_attempts": {
                        "const": 3
                      }
                    },
                    "additionalProperties": false
                  },
                  "state": {
                    "enum": [
                      "queued",
                      "running",
                      "blocked",
                      "done",
                      "failed",
                      "cancelled"
                    ]
                  },
                  "section": {
                    "const": "summary"
                  },
                  "summary": {
                    "type": "object",
                    "required": [
                      "case_count"
                    ],
                    "properties": {
                      "failed": {
                        "type": "integer",
                        "maximum": 50,
                        "minimum": 0
                      },
                      "passed": {
                        "type": "integer",
                        "maximum": 50,
                        "minimum": 0
                      },
                      "cancelled": {
                        "type": "integer",
                        "maximum": 50,
                        "minimum": 0
                      },
                      "case_count": {
                        "type": "integer",
                        "maximum": 50,
                        "minimum": 0
                      },
                      "billing_anomalies": {
                        "type": "integer",
                        "maximum": 50,
                        "minimum": 0
                      }
                    },
                    "additionalProperties": false
                  },
                  "revision": {
                    "type": "string",
                    "pattern": "^[0-9a-f]{64}$",
                    "maxLength": 64
                  },
                  "terminal": {
                    "type": "boolean"
                  },
                  "error_code": {
                    "type": "string",
                    "maxLength": 64
                  },
                  "truncation": {
                    "type": "object",
                    "required": [
                      "applied",
                      "reason",
                      "omitted_items",
                      "truncated_values",
                      "original_result_bytes"
                    ],
                    "properties": {
                      "reason": {
                        "const": "response_size_limit"
                      },
                      "applied": {
                        "const": true
                      },
                      "omitted_items": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "truncated_values": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "original_result_bytes": {
                        "type": "integer",
                        "minimum": 1
                      }
                    },
                    "additionalProperties": false
                  },
                  "activity_ref": {
                    "type": "string",
                    "maxLength": 4096,
                    "minLength": 1
                  },
                  "execution_diagnostic": {
                    "type": "object",
                    "required": [
                      "step_id",
                      "node_type",
                      "code",
                      "field_path",
                      "message",
                      "fix_hint"
                    ],
                    "properties": {
                      "code": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "message": {
                        "type": "string",
                        "maxLength": 200
                      },
                      "step_id": {
                        "type": "string",
                        "maxLength": 128
                      },
                      "evidence": {
                        "type": "object",
                        "required": [
                          "source"
                        ],
                        "properties": {
                          "source": {
                            "enum": [
                              "structured_executor",
                              "legacy_executor_message"
                            ]
                          },
                          "attempt_count": {
                            "type": "integer",
                            "maximum": 100,
                            "minimum": 1
                          },
                          "finish_reason": {
                            "enum": [
                              "max_output_tokens",
                              "max_tokens",
                              "length",
                              "content_filter",
                              "refusal",
                              "unknown"
                            ]
                          },
                          "reasoning_tokens": {
                            "type": "integer",
                            "maximum": 10000000,
                            "minimum": 0
                          },
                          "max_output_tokens": {
                            "type": "integer",
                            "maximum": 10000000,
                            "minimum": 0
                          },
                          "total_output_tokens": {
                            "type": "integer",
                            "maximum": 10000000,
                            "minimum": 0
                          },
                          "visible_output_tokens": {
                            "type": "integer",
                            "maximum": 10000000,
                            "minimum": 0
                          }
                        },
                        "additionalProperties": false
                      },
                      "fix_hint": {
                        "type": "string",
                        "maxLength": 300
                      },
                      "node_type": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "field_path": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "maxLength": 64
                        },
                        "maxItems": 4
                      }
                    },
                    "additionalProperties": false
                  }
                }
              },
              {
                "type": "object",
                "required": [
                  "activity_ref",
                  "kind",
                  "state",
                  "revision",
                  "terminal",
                  "section",
                  "summary"
                ],
                "properties": {
                  "kind": {
                    "const": "acceptance_case"
                  },
                  "retry": {
                    "type": "object",
                    "required": [
                      "state",
                      "attempt",
                      "maximum_attempts",
                      "retry_at",
                      "reason"
                    ],
                    "properties": {
                      "state": {
                        "enum": [
                          "scheduled",
                          "retrying"
                        ]
                      },
                      "reason": {
                        "enum": [
                          "review_processing_interrupted",
                          "provider_result_processing_retry",
                          "settlement_retry"
                        ]
                      },
                      "attempt": {
                        "type": "integer",
                        "maximum": 3,
                        "minimum": 1
                      },
                      "retry_at": {
                        "type": "string",
                        "format": "date-time",
                        "maxLength": 64
                      },
                      "maximum_attempts": {
                        "const": 3
                      }
                    },
                    "additionalProperties": false
                  },
                  "state": {
                    "enum": [
                      "queued",
                      "running",
                      "blocked",
                      "done",
                      "failed",
                      "cancelled"
                    ]
                  },
                  "section": {
                    "const": "summary"
                  },
                  "summary": {
                    "type": "object",
                    "required": [],
                    "properties": {},
                    "additionalProperties": false
                  },
                  "revision": {
                    "type": "string",
                    "pattern": "^[0-9a-f]{64}$",
                    "maxLength": 64
                  },
                  "terminal": {
                    "type": "boolean"
                  },
                  "error_code": {
                    "type": "string",
                    "maxLength": 64
                  },
                  "truncation": {
                    "type": "object",
                    "required": [
                      "applied",
                      "reason",
                      "omitted_items",
                      "truncated_values",
                      "original_result_bytes"
                    ],
                    "properties": {
                      "reason": {
                        "const": "response_size_limit"
                      },
                      "applied": {
                        "const": true
                      },
                      "omitted_items": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "truncated_values": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "original_result_bytes": {
                        "type": "integer",
                        "minimum": 1
                      }
                    },
                    "additionalProperties": false
                  },
                  "activity_ref": {
                    "type": "string",
                    "maxLength": 4096,
                    "minLength": 1
                  },
                  "execution_diagnostic": {
                    "type": "object",
                    "required": [
                      "step_id",
                      "node_type",
                      "code",
                      "field_path",
                      "message",
                      "fix_hint"
                    ],
                    "properties": {
                      "code": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "message": {
                        "type": "string",
                        "maxLength": 200
                      },
                      "step_id": {
                        "type": "string",
                        "maxLength": 128
                      },
                      "evidence": {
                        "type": "object",
                        "required": [
                          "source"
                        ],
                        "properties": {
                          "source": {
                            "enum": [
                              "structured_executor",
                              "legacy_executor_message"
                            ]
                          },
                          "attempt_count": {
                            "type": "integer",
                            "maximum": 100,
                            "minimum": 1
                          },
                          "finish_reason": {
                            "enum": [
                              "max_output_tokens",
                              "max_tokens",
                              "length",
                              "content_filter",
                              "refusal",
                              "unknown"
                            ]
                          },
                          "reasoning_tokens": {
                            "type": "integer",
                            "maximum": 10000000,
                            "minimum": 0
                          },
                          "max_output_tokens": {
                            "type": "integer",
                            "maximum": 10000000,
                            "minimum": 0
                          },
                          "total_output_tokens": {
                            "type": "integer",
                            "maximum": 10000000,
                            "minimum": 0
                          },
                          "visible_output_tokens": {
                            "type": "integer",
                            "maximum": 10000000,
                            "minimum": 0
                          }
                        },
                        "additionalProperties": false
                      },
                      "fix_hint": {
                        "type": "string",
                        "maxLength": 300
                      },
                      "node_type": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "field_path": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "maxLength": 64
                        },
                        "maxItems": 4
                      }
                    },
                    "additionalProperties": false
                  }
                }
              },
              {
                "type": "object",
                "required": [
                  "error"
                ],
                "properties": {
                  "hint": {
                    "type": "string",
                    "maxLength": 240
                  },
                  "error": {
                    "enum": [
                      "not_found",
                      "invalid_reference",
                      "invalid_params",
                      "revision_conflict",
                      "idempotency_conflict",
                      "document_too_large",
                      "payload_too_large",
                      "chunk_sequence_invalid",
                      "chunk_digest_mismatch",
                      "chunk_expired",
                      "invalid_cursor",
                      "suite_duplicate_case_id",
                      "suite_unresolved_pair",
                      "suite_schema_invalid",
                      "suite_missing_categories",
                      "suite_weak_normal_oracle",
                      "suite_too_large",
                      "unknown_case_id",
                      "duplicate_case_id",
                      "incomplete_case_selection",
                      "unsupported_node_kind",
                      "research_required",
                      "review_required",
                      "acceptance_required",
                      "qualification_stale",
                      "budget_not_approved",
                      "budget_exhausted",
                      "budget_superseded",
                      "budget_capability_consumed",
                      "budget_capability_expired",
                      "acceptance_case_cost_exceeded",
                      "authoring_budget_exceeded",
                      "authoring_grant_not_active",
                      "insufficient_credits",
                      "billing_anomaly",
                      "activity_stalled",
                      "activity_in_flight",
                      "handoff_approval_required",
                      "handoff_expired",
                      "handoff_not_pending",
                      "handoff_stale",
                      "handoff_disclosure_incomplete",
                      "feature_unavailable",
                      "resource_unavailable",
                      "resource_binding_required",
                      "resource_requirement_not_found",
                      "activity_not_cancellable",
                      "quota_exceeded",
                      "rate_limited",
                      "already_published",
                      "safety_locked",
                      "build_terminal",
                      "commit_capability_expired",
                      "account_unavailable",
                      "limit_unavailable"
                    ]
                  },
                  "field": {
                    "type": "string",
                    "maxLength": 64
                  },
                  "issue": {
                    "type": "object",
                    "required": [
                      "code",
                      "path"
                    ],
                    "properties": {
                      "code": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "path": {
                        "type": "string",
                        "maxLength": 512
                      },
                      "type": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "field": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "operator": {
                        "type": "string",
                        "maxLength": 64
                      }
                    },
                    "additionalProperties": false
                  },
                  "case_id": {
                    "type": "string",
                    "maxLength": 64,
                    "minLength": 1
                  },
                  "truncation": {
                    "type": "object",
                    "required": [
                      "applied",
                      "reason",
                      "omitted_items",
                      "truncated_values",
                      "original_result_bytes"
                    ],
                    "properties": {
                      "reason": {
                        "const": "response_size_limit"
                      },
                      "applied": {
                        "const": true
                      },
                      "omitted_items": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "truncated_values": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "original_result_bytes": {
                        "type": "integer",
                        "minimum": 1
                      }
                    },
                    "additionalProperties": false
                  },
                  "repair_hint": {
                    "type": "string",
                    "maxLength": 500
                  },
                  "review_cost": {
                    "type": "object",
                    "required": [
                      "estimated_credits",
                      "limit_credits",
                      "provider",
                      "model",
                      "basis",
                      "input_token_bound",
                      "output_token_cap",
                      "prompt_bytes",
                      "section_bytes"
                    ],
                    "properties": {
                      "basis": {
                        "const": "utf8_byte_upper_bound"
                      },
                      "model": {
                        "type": "string",
                        "maxLength": 200
                      },
                      "provider": {
                        "type": "string",
                        "maxLength": 200
                      },
                      "prompt_bytes": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "limit_credits": {
                        "type": "string",
                        "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                        "maxLength": 64
                      },
                      "section_bytes": {
                        "type": "object",
                        "required": [],
                        "properties": {
                          "spec": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "intent": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "input_contract": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "output_contract": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "acceptance_suite": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "research_evidence": {
                            "type": "integer",
                            "minimum": 0
                          }
                        },
                        "additionalProperties": false
                      },
                      "output_token_cap": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "estimated_credits": {
                        "type": "string",
                        "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                        "maxLength": 64
                      },
                      "input_token_bound": {
                        "type": "integer",
                        "minimum": 0
                      }
                    },
                    "additionalProperties": false
                  },
                  "limit_credits": {
                    "type": "string",
                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                    "maxLength": 64
                  },
                  "estimated_credits": {
                    "type": "string",
                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                    "maxLength": 64
                  },
                  "missing_categories": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 64
                    },
                    "maxItems": 10,
                    "uniqueItems": true
                  },
                  "retry_after_seconds": {
                    "type": "integer",
                    "maximum": 86400,
                    "minimum": 1
                  }
                },
                "additionalProperties": false
              }
            ]
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "get_recipe_build_contracts",
          "title": "Read Recipe Build Contracts",
          "description": "Read the declared input and output contracts of one private build.",
          "inputSchema": {
            "type": "object",
            "required": [
              "build_ref"
            ],
            "properties": {
              "build_ref": {
                "type": "string",
                "maxLength": 4096,
                "minLength": 1
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "oneOf": [
              {
                "type": "object",
                "required": [
                  "view",
                  "data"
                ],
                "properties": {
                  "data": {
                    "type": "object",
                    "required": [
                      "build_ref",
                      "name",
                      "status",
                      "revision",
                      "qualification",
                      "archived_at",
                      "input_contract",
                      "output_contract"
                    ],
                    "properties": {
                      "name": {
                        "type": "string",
                        "maxLength": 200,
                        "minLength": 1
                      },
                      "status": {
                        "enum": [
                          "draft",
                          "qualified",
                          "committed",
                          "abandoned"
                        ]
                      },
                      "revision": {
                        "type": "string",
                        "pattern": "^[0-9a-f]{64}$",
                        "maxLength": 64
                      },
                      "build_ref": {
                        "type": "string",
                        "maxLength": 4096,
                        "minLength": 1
                      },
                      "archived_at": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "format": "date-time",
                        "maxLength": 64
                      },
                      "qualification": {
                        "enum": [
                          "none",
                          "pending",
                          "qualified",
                          "invalidated"
                        ]
                      },
                      "input_contract": {
                        "type": "object",
                        "required": [
                          "fields"
                        ],
                        "properties": {
                          "fields": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "required": [
                                "handle",
                                "label",
                                "description",
                                "required",
                                "schema"
                              ],
                              "properties": {
                                "label": {
                                  "type": "string",
                                  "maxLength": 120,
                                  "minLength": 1
                                },
                                "handle": {
                                  "type": "string",
                                  "pattern": "^[a-z][a-z0-9_]{0,63}$",
                                  "maxLength": 64
                                },
                                "schema": {
                                  "type": "object",
                                  "maxProperties": 100
                                },
                                "required": {
                                  "type": "boolean"
                                },
                                "description": {
                                  "type": "string",
                                  "maxLength": 500
                                }
                              },
                              "additionalProperties": false
                            },
                            "maxItems": 20
                          }
                        },
                        "additionalProperties": false
                      },
                      "output_contract": {
                        "type": "object",
                        "required": [
                          "fields"
                        ],
                        "properties": {
                          "fields": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "required": [
                                "handle",
                                "label",
                                "description",
                                "required",
                                "schema"
                              ],
                              "properties": {
                                "label": {
                                  "type": "string",
                                  "maxLength": 120,
                                  "minLength": 1
                                },
                                "handle": {
                                  "type": "string",
                                  "pattern": "^[a-z][a-z0-9_]{0,63}$",
                                  "maxLength": 64
                                },
                                "schema": {
                                  "type": "object",
                                  "maxProperties": 100
                                },
                                "required": {
                                  "const": true
                                },
                                "description": {
                                  "type": "string",
                                  "maxLength": 500
                                }
                              },
                              "additionalProperties": false
                            },
                            "maxItems": 20
                          }
                        },
                        "additionalProperties": false
                      }
                    },
                    "additionalProperties": false
                  },
                  "view": {
                    "const": "contracts"
                  },
                  "truncation": {
                    "type": "object",
                    "required": [
                      "applied",
                      "reason",
                      "omitted_items",
                      "truncated_values",
                      "original_result_bytes"
                    ],
                    "properties": {
                      "reason": {
                        "const": "response_size_limit"
                      },
                      "applied": {
                        "const": true
                      },
                      "omitted_items": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "truncated_values": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "original_result_bytes": {
                        "type": "integer",
                        "minimum": 1
                      }
                    },
                    "additionalProperties": false
                  }
                }
              },
              {
                "type": "object",
                "required": [
                  "error"
                ],
                "properties": {
                  "hint": {
                    "type": "string",
                    "maxLength": 240
                  },
                  "error": {
                    "enum": [
                      "not_found",
                      "invalid_reference",
                      "invalid_params",
                      "revision_conflict",
                      "idempotency_conflict",
                      "document_too_large",
                      "payload_too_large",
                      "chunk_sequence_invalid",
                      "chunk_digest_mismatch",
                      "chunk_expired",
                      "invalid_cursor",
                      "suite_duplicate_case_id",
                      "suite_unresolved_pair",
                      "suite_schema_invalid",
                      "suite_missing_categories",
                      "suite_weak_normal_oracle",
                      "suite_too_large",
                      "unknown_case_id",
                      "duplicate_case_id",
                      "incomplete_case_selection",
                      "unsupported_node_kind",
                      "research_required",
                      "review_required",
                      "acceptance_required",
                      "qualification_stale",
                      "budget_not_approved",
                      "budget_exhausted",
                      "budget_superseded",
                      "budget_capability_consumed",
                      "budget_capability_expired",
                      "acceptance_case_cost_exceeded",
                      "authoring_budget_exceeded",
                      "authoring_grant_not_active",
                      "insufficient_credits",
                      "billing_anomaly",
                      "activity_stalled",
                      "activity_in_flight",
                      "handoff_approval_required",
                      "handoff_expired",
                      "handoff_not_pending",
                      "handoff_stale",
                      "handoff_disclosure_incomplete",
                      "feature_unavailable",
                      "resource_unavailable",
                      "resource_binding_required",
                      "resource_requirement_not_found",
                      "activity_not_cancellable",
                      "quota_exceeded",
                      "rate_limited",
                      "already_published",
                      "safety_locked",
                      "build_terminal",
                      "commit_capability_expired",
                      "account_unavailable",
                      "limit_unavailable"
                    ]
                  },
                  "field": {
                    "type": "string",
                    "maxLength": 64
                  },
                  "issue": {
                    "type": "object",
                    "required": [
                      "code",
                      "path"
                    ],
                    "properties": {
                      "code": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "path": {
                        "type": "string",
                        "maxLength": 512
                      },
                      "type": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "field": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "operator": {
                        "type": "string",
                        "maxLength": 64
                      }
                    },
                    "additionalProperties": false
                  },
                  "case_id": {
                    "type": "string",
                    "maxLength": 64,
                    "minLength": 1
                  },
                  "truncation": {
                    "type": "object",
                    "required": [
                      "applied",
                      "reason",
                      "omitted_items",
                      "truncated_values",
                      "original_result_bytes"
                    ],
                    "properties": {
                      "reason": {
                        "const": "response_size_limit"
                      },
                      "applied": {
                        "const": true
                      },
                      "omitted_items": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "truncated_values": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "original_result_bytes": {
                        "type": "integer",
                        "minimum": 1
                      }
                    },
                    "additionalProperties": false
                  },
                  "repair_hint": {
                    "type": "string",
                    "maxLength": 500
                  },
                  "review_cost": {
                    "type": "object",
                    "required": [
                      "estimated_credits",
                      "limit_credits",
                      "provider",
                      "model",
                      "basis",
                      "input_token_bound",
                      "output_token_cap",
                      "prompt_bytes",
                      "section_bytes"
                    ],
                    "properties": {
                      "basis": {
                        "const": "utf8_byte_upper_bound"
                      },
                      "model": {
                        "type": "string",
                        "maxLength": 200
                      },
                      "provider": {
                        "type": "string",
                        "maxLength": 200
                      },
                      "prompt_bytes": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "limit_credits": {
                        "type": "string",
                        "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                        "maxLength": 64
                      },
                      "section_bytes": {
                        "type": "object",
                        "required": [],
                        "properties": {
                          "spec": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "intent": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "input_contract": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "output_contract": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "acceptance_suite": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "research_evidence": {
                            "type": "integer",
                            "minimum": 0
                          }
                        },
                        "additionalProperties": false
                      },
                      "output_token_cap": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "estimated_credits": {
                        "type": "string",
                        "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                        "maxLength": 64
                      },
                      "input_token_bound": {
                        "type": "integer",
                        "minimum": 0
                      }
                    },
                    "additionalProperties": false
                  },
                  "limit_credits": {
                    "type": "string",
                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                    "maxLength": 64
                  },
                  "estimated_credits": {
                    "type": "string",
                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                    "maxLength": 64
                  },
                  "missing_categories": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 64
                    },
                    "maxItems": 10,
                    "uniqueItems": true
                  },
                  "retry_after_seconds": {
                    "type": "integer",
                    "maximum": 86400,
                    "minimum": 1
                  }
                },
                "additionalProperties": false
              }
            ]
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "get_recipe_build_node",
          "title": "Read a Recipe Build Node",
          "description": "Read one node from a private build by its exact node identifier.",
          "inputSchema": {
            "type": "object",
            "required": [
              "build_ref",
              "node_id"
            ],
            "properties": {
              "node_id": {
                "type": "string",
                "maxLength": 64
              },
              "build_ref": {
                "type": "string",
                "maxLength": 4096,
                "minLength": 1
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "oneOf": [
              {
                "type": "object",
                "required": [
                  "view",
                  "data"
                ],
                "properties": {
                  "data": {
                    "type": "object",
                    "required": [
                      "build_ref",
                      "name",
                      "status",
                      "revision",
                      "qualification",
                      "archived_at",
                      "node"
                    ],
                    "properties": {
                      "name": {
                        "type": "string",
                        "maxLength": 200,
                        "minLength": 1
                      },
                      "node": {
                        "type": "object"
                      },
                      "status": {
                        "enum": [
                          "draft",
                          "qualified",
                          "committed",
                          "abandoned"
                        ]
                      },
                      "revision": {
                        "type": "string",
                        "pattern": "^[0-9a-f]{64}$",
                        "maxLength": 64
                      },
                      "build_ref": {
                        "type": "string",
                        "maxLength": 4096,
                        "minLength": 1
                      },
                      "archived_at": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "format": "date-time",
                        "maxLength": 64
                      },
                      "qualification": {
                        "enum": [
                          "none",
                          "pending",
                          "qualified",
                          "invalidated"
                        ]
                      }
                    },
                    "additionalProperties": false
                  },
                  "view": {
                    "const": "node"
                  },
                  "truncation": {
                    "type": "object",
                    "required": [
                      "applied",
                      "reason",
                      "omitted_items",
                      "truncated_values",
                      "original_result_bytes"
                    ],
                    "properties": {
                      "reason": {
                        "const": "response_size_limit"
                      },
                      "applied": {
                        "const": true
                      },
                      "omitted_items": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "truncated_values": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "original_result_bytes": {
                        "type": "integer",
                        "minimum": 1
                      }
                    },
                    "additionalProperties": false
                  }
                }
              },
              {
                "type": "object",
                "required": [
                  "error"
                ],
                "properties": {
                  "hint": {
                    "type": "string",
                    "maxLength": 240
                  },
                  "error": {
                    "enum": [
                      "not_found",
                      "invalid_reference",
                      "invalid_params",
                      "revision_conflict",
                      "idempotency_conflict",
                      "document_too_large",
                      "payload_too_large",
                      "chunk_sequence_invalid",
                      "chunk_digest_mismatch",
                      "chunk_expired",
                      "invalid_cursor",
                      "suite_duplicate_case_id",
                      "suite_unresolved_pair",
                      "suite_schema_invalid",
                      "suite_missing_categories",
                      "suite_weak_normal_oracle",
                      "suite_too_large",
                      "unknown_case_id",
                      "duplicate_case_id",
                      "incomplete_case_selection",
                      "unsupported_node_kind",
                      "research_required",
                      "review_required",
                      "acceptance_required",
                      "qualification_stale",
                      "budget_not_approved",
                      "budget_exhausted",
                      "budget_superseded",
                      "budget_capability_consumed",
                      "budget_capability_expired",
                      "acceptance_case_cost_exceeded",
                      "authoring_budget_exceeded",
                      "authoring_grant_not_active",
                      "insufficient_credits",
                      "billing_anomaly",
                      "activity_stalled",
                      "activity_in_flight",
                      "handoff_approval_required",
                      "handoff_expired",
                      "handoff_not_pending",
                      "handoff_stale",
                      "handoff_disclosure_incomplete",
                      "feature_unavailable",
                      "resource_unavailable",
                      "resource_binding_required",
                      "resource_requirement_not_found",
                      "activity_not_cancellable",
                      "quota_exceeded",
                      "rate_limited",
                      "already_published",
                      "safety_locked",
                      "build_terminal",
                      "commit_capability_expired",
                      "account_unavailable",
                      "limit_unavailable"
                    ]
                  },
                  "field": {
                    "type": "string",
                    "maxLength": 64
                  },
                  "issue": {
                    "type": "object",
                    "required": [
                      "code",
                      "path"
                    ],
                    "properties": {
                      "code": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "path": {
                        "type": "string",
                        "maxLength": 512
                      },
                      "type": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "field": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "operator": {
                        "type": "string",
                        "maxLength": 64
                      }
                    },
                    "additionalProperties": false
                  },
                  "case_id": {
                    "type": "string",
                    "maxLength": 64,
                    "minLength": 1
                  },
                  "truncation": {
                    "type": "object",
                    "required": [
                      "applied",
                      "reason",
                      "omitted_items",
                      "truncated_values",
                      "original_result_bytes"
                    ],
                    "properties": {
                      "reason": {
                        "const": "response_size_limit"
                      },
                      "applied": {
                        "const": true
                      },
                      "omitted_items": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "truncated_values": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "original_result_bytes": {
                        "type": "integer",
                        "minimum": 1
                      }
                    },
                    "additionalProperties": false
                  },
                  "repair_hint": {
                    "type": "string",
                    "maxLength": 500
                  },
                  "review_cost": {
                    "type": "object",
                    "required": [
                      "estimated_credits",
                      "limit_credits",
                      "provider",
                      "model",
                      "basis",
                      "input_token_bound",
                      "output_token_cap",
                      "prompt_bytes",
                      "section_bytes"
                    ],
                    "properties": {
                      "basis": {
                        "const": "utf8_byte_upper_bound"
                      },
                      "model": {
                        "type": "string",
                        "maxLength": 200
                      },
                      "provider": {
                        "type": "string",
                        "maxLength": 200
                      },
                      "prompt_bytes": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "limit_credits": {
                        "type": "string",
                        "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                        "maxLength": 64
                      },
                      "section_bytes": {
                        "type": "object",
                        "required": [],
                        "properties": {
                          "spec": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "intent": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "input_contract": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "output_contract": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "acceptance_suite": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "research_evidence": {
                            "type": "integer",
                            "minimum": 0
                          }
                        },
                        "additionalProperties": false
                      },
                      "output_token_cap": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "estimated_credits": {
                        "type": "string",
                        "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                        "maxLength": 64
                      },
                      "input_token_bound": {
                        "type": "integer",
                        "minimum": 0
                      }
                    },
                    "additionalProperties": false
                  },
                  "limit_credits": {
                    "type": "string",
                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                    "maxLength": 64
                  },
                  "estimated_credits": {
                    "type": "string",
                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                    "maxLength": 64
                  },
                  "missing_categories": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 64
                    },
                    "maxItems": 10,
                    "uniqueItems": true
                  },
                  "retry_after_seconds": {
                    "type": "integer",
                    "maximum": 86400,
                    "minimum": 1
                  }
                },
                "additionalProperties": false
              }
            ]
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "get_recipe_build_research",
          "title": "Read Recipe Build Research",
          "description": "Read the research policy, tier, and recorded evidence for one private build.",
          "inputSchema": {
            "type": "object",
            "required": [
              "build_ref"
            ],
            "properties": {
              "build_ref": {
                "type": "string",
                "maxLength": 4096,
                "minLength": 1
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "oneOf": [
              {
                "type": "object",
                "required": [
                  "view",
                  "data"
                ],
                "properties": {
                  "data": {
                    "type": "object",
                    "required": [
                      "build_ref",
                      "name",
                      "status",
                      "revision",
                      "qualification",
                      "archived_at",
                      "research_policy",
                      "research_tier",
                      "evidence"
                    ],
                    "properties": {
                      "name": {
                        "type": "string",
                        "maxLength": 200,
                        "minLength": 1
                      },
                      "status": {
                        "enum": [
                          "draft",
                          "qualified",
                          "committed",
                          "abandoned"
                        ]
                      },
                      "evidence": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "required": [
                            "url",
                            "title",
                            "retrieved_at",
                            "supported_claim",
                            "applicability"
                          ],
                          "properties": {
                            "url": {
                              "type": "string",
                              "maxLength": 512,
                              "minLength": 1
                            },
                            "title": {
                              "type": "string",
                              "maxLength": 200,
                              "minLength": 1
                            },
                            "retrieved_at": {
                              "type": "string",
                              "maxLength": 64,
                              "minLength": 1
                            },
                            "applicability": {
                              "type": "string",
                              "maxLength": 1000,
                              "minLength": 1
                            },
                            "supported_claim": {
                              "type": "string",
                              "maxLength": 1000,
                              "minLength": 1
                            }
                          },
                          "additionalProperties": false
                        },
                        "maxItems": 20
                      },
                      "revision": {
                        "type": "string",
                        "pattern": "^[0-9a-f]{64}$",
                        "maxLength": 64
                      },
                      "build_ref": {
                        "type": "string",
                        "maxLength": 4096,
                        "minLength": 1
                      },
                      "archived_at": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "format": "date-time",
                        "maxLength": 64
                      },
                      "qualification": {
                        "enum": [
                          "none",
                          "pending",
                          "qualified",
                          "invalidated"
                        ]
                      },
                      "research_tier": {
                        "enum": [
                          "skipped",
                          "recommended",
                          "required"
                        ]
                      },
                      "research_policy": {
                        "enum": [
                          "forbidden",
                          "allowed",
                          "required"
                        ]
                      }
                    },
                    "additionalProperties": false
                  },
                  "view": {
                    "const": "research"
                  },
                  "truncation": {
                    "type": "object",
                    "required": [
                      "applied",
                      "reason",
                      "omitted_items",
                      "truncated_values",
                      "original_result_bytes"
                    ],
                    "properties": {
                      "reason": {
                        "const": "response_size_limit"
                      },
                      "applied": {
                        "const": true
                      },
                      "omitted_items": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "truncated_values": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "original_result_bytes": {
                        "type": "integer",
                        "minimum": 1
                      }
                    },
                    "additionalProperties": false
                  }
                }
              },
              {
                "type": "object",
                "required": [
                  "error"
                ],
                "properties": {
                  "hint": {
                    "type": "string",
                    "maxLength": 240
                  },
                  "error": {
                    "enum": [
                      "not_found",
                      "invalid_reference",
                      "invalid_params",
                      "revision_conflict",
                      "idempotency_conflict",
                      "document_too_large",
                      "payload_too_large",
                      "chunk_sequence_invalid",
                      "chunk_digest_mismatch",
                      "chunk_expired",
                      "invalid_cursor",
                      "suite_duplicate_case_id",
                      "suite_unresolved_pair",
                      "suite_schema_invalid",
                      "suite_missing_categories",
                      "suite_weak_normal_oracle",
                      "suite_too_large",
                      "unknown_case_id",
                      "duplicate_case_id",
                      "incomplete_case_selection",
                      "unsupported_node_kind",
                      "research_required",
                      "review_required",
                      "acceptance_required",
                      "qualification_stale",
                      "budget_not_approved",
                      "budget_exhausted",
                      "budget_superseded",
                      "budget_capability_consumed",
                      "budget_capability_expired",
                      "acceptance_case_cost_exceeded",
                      "authoring_budget_exceeded",
                      "authoring_grant_not_active",
                      "insufficient_credits",
                      "billing_anomaly",
                      "activity_stalled",
                      "activity_in_flight",
                      "handoff_approval_required",
                      "handoff_expired",
                      "handoff_not_pending",
                      "handoff_stale",
                      "handoff_disclosure_incomplete",
                      "feature_unavailable",
                      "resource_unavailable",
                      "resource_binding_required",
                      "resource_requirement_not_found",
                      "activity_not_cancellable",
                      "quota_exceeded",
                      "rate_limited",
                      "already_published",
                      "safety_locked",
                      "build_terminal",
                      "commit_capability_expired",
                      "account_unavailable",
                      "limit_unavailable"
                    ]
                  },
                  "field": {
                    "type": "string",
                    "maxLength": 64
                  },
                  "issue": {
                    "type": "object",
                    "required": [
                      "code",
                      "path"
                    ],
                    "properties": {
                      "code": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "path": {
                        "type": "string",
                        "maxLength": 512
                      },
                      "type": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "field": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "operator": {
                        "type": "string",
                        "maxLength": 64
                      }
                    },
                    "additionalProperties": false
                  },
                  "case_id": {
                    "type": "string",
                    "maxLength": 64,
                    "minLength": 1
                  },
                  "truncation": {
                    "type": "object",
                    "required": [
                      "applied",
                      "reason",
                      "omitted_items",
                      "truncated_values",
                      "original_result_bytes"
                    ],
                    "properties": {
                      "reason": {
                        "const": "response_size_limit"
                      },
                      "applied": {
                        "const": true
                      },
                      "omitted_items": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "truncated_values": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "original_result_bytes": {
                        "type": "integer",
                        "minimum": 1
                      }
                    },
                    "additionalProperties": false
                  },
                  "repair_hint": {
                    "type": "string",
                    "maxLength": 500
                  },
                  "review_cost": {
                    "type": "object",
                    "required": [
                      "estimated_credits",
                      "limit_credits",
                      "provider",
                      "model",
                      "basis",
                      "input_token_bound",
                      "output_token_cap",
                      "prompt_bytes",
                      "section_bytes"
                    ],
                    "properties": {
                      "basis": {
                        "const": "utf8_byte_upper_bound"
                      },
                      "model": {
                        "type": "string",
                        "maxLength": 200
                      },
                      "provider": {
                        "type": "string",
                        "maxLength": 200
                      },
                      "prompt_bytes": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "limit_credits": {
                        "type": "string",
                        "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                        "maxLength": 64
                      },
                      "section_bytes": {
                        "type": "object",
                        "required": [],
                        "properties": {
                          "spec": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "intent": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "input_contract": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "output_contract": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "acceptance_suite": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "research_evidence": {
                            "type": "integer",
                            "minimum": 0
                          }
                        },
                        "additionalProperties": false
                      },
                      "output_token_cap": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "estimated_credits": {
                        "type": "string",
                        "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                        "maxLength": 64
                      },
                      "input_token_bound": {
                        "type": "integer",
                        "minimum": 0
                      }
                    },
                    "additionalProperties": false
                  },
                  "limit_credits": {
                    "type": "string",
                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                    "maxLength": 64
                  },
                  "estimated_credits": {
                    "type": "string",
                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                    "maxLength": 64
                  },
                  "missing_categories": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 64
                    },
                    "maxItems": 10,
                    "uniqueItems": true
                  },
                  "retry_after_seconds": {
                    "type": "integer",
                    "maximum": 86400,
                    "minimum": 1
                  }
                },
                "additionalProperties": false
              }
            ]
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "get_recipe_build_schemas",
          "title": "Read Recipe Build Schemas",
          "description": "Read the named JSON schemas stored in one private build.",
          "inputSchema": {
            "type": "object",
            "required": [
              "build_ref"
            ],
            "properties": {
              "build_ref": {
                "type": "string",
                "maxLength": 4096,
                "minLength": 1
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "oneOf": [
              {
                "type": "object",
                "required": [
                  "view",
                  "data"
                ],
                "properties": {
                  "data": {
                    "type": "object",
                    "required": [
                      "build_ref",
                      "name",
                      "status",
                      "revision",
                      "qualification",
                      "archived_at",
                      "schemas"
                    ],
                    "properties": {
                      "name": {
                        "type": "string",
                        "maxLength": 200,
                        "minLength": 1
                      },
                      "status": {
                        "enum": [
                          "draft",
                          "qualified",
                          "committed",
                          "abandoned"
                        ]
                      },
                      "schemas": {
                        "type": "object"
                      },
                      "revision": {
                        "type": "string",
                        "pattern": "^[0-9a-f]{64}$",
                        "maxLength": 64
                      },
                      "build_ref": {
                        "type": "string",
                        "maxLength": 4096,
                        "minLength": 1
                      },
                      "archived_at": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "format": "date-time",
                        "maxLength": 64
                      },
                      "qualification": {
                        "enum": [
                          "none",
                          "pending",
                          "qualified",
                          "invalidated"
                        ]
                      }
                    },
                    "additionalProperties": false
                  },
                  "view": {
                    "const": "schemas"
                  },
                  "truncation": {
                    "type": "object",
                    "required": [
                      "applied",
                      "reason",
                      "omitted_items",
                      "truncated_values",
                      "original_result_bytes"
                    ],
                    "properties": {
                      "reason": {
                        "const": "response_size_limit"
                      },
                      "applied": {
                        "const": true
                      },
                      "omitted_items": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "truncated_values": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "original_result_bytes": {
                        "type": "integer",
                        "minimum": 1
                      }
                    },
                    "additionalProperties": false
                  }
                }
              },
              {
                "type": "object",
                "required": [
                  "error"
                ],
                "properties": {
                  "hint": {
                    "type": "string",
                    "maxLength": 240
                  },
                  "error": {
                    "enum": [
                      "not_found",
                      "invalid_reference",
                      "invalid_params",
                      "revision_conflict",
                      "idempotency_conflict",
                      "document_too_large",
                      "payload_too_large",
                      "chunk_sequence_invalid",
                      "chunk_digest_mismatch",
                      "chunk_expired",
                      "invalid_cursor",
                      "suite_duplicate_case_id",
                      "suite_unresolved_pair",
                      "suite_schema_invalid",
                      "suite_missing_categories",
                      "suite_weak_normal_oracle",
                      "suite_too_large",
                      "unknown_case_id",
                      "duplicate_case_id",
                      "incomplete_case_selection",
                      "unsupported_node_kind",
                      "research_required",
                      "review_required",
                      "acceptance_required",
                      "qualification_stale",
                      "budget_not_approved",
                      "budget_exhausted",
                      "budget_superseded",
                      "budget_capability_consumed",
                      "budget_capability_expired",
                      "acceptance_case_cost_exceeded",
                      "authoring_budget_exceeded",
                      "authoring_grant_not_active",
                      "insufficient_credits",
                      "billing_anomaly",
                      "activity_stalled",
                      "activity_in_flight",
                      "handoff_approval_required",
                      "handoff_expired",
                      "handoff_not_pending",
                      "handoff_stale",
                      "handoff_disclosure_incomplete",
                      "feature_unavailable",
                      "resource_unavailable",
                      "resource_binding_required",
                      "resource_requirement_not_found",
                      "activity_not_cancellable",
                      "quota_exceeded",
                      "rate_limited",
                      "already_published",
                      "safety_locked",
                      "build_terminal",
                      "commit_capability_expired",
                      "account_unavailable",
                      "limit_unavailable"
                    ]
                  },
                  "field": {
                    "type": "string",
                    "maxLength": 64
                  },
                  "issue": {
                    "type": "object",
                    "required": [
                      "code",
                      "path"
                    ],
                    "properties": {
                      "code": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "path": {
                        "type": "string",
                        "maxLength": 512
                      },
                      "type": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "field": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "operator": {
                        "type": "string",
                        "maxLength": 64
                      }
                    },
                    "additionalProperties": false
                  },
                  "case_id": {
                    "type": "string",
                    "maxLength": 64,
                    "minLength": 1
                  },
                  "truncation": {
                    "type": "object",
                    "required": [
                      "applied",
                      "reason",
                      "omitted_items",
                      "truncated_values",
                      "original_result_bytes"
                    ],
                    "properties": {
                      "reason": {
                        "const": "response_size_limit"
                      },
                      "applied": {
                        "const": true
                      },
                      "omitted_items": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "truncated_values": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "original_result_bytes": {
                        "type": "integer",
                        "minimum": 1
                      }
                    },
                    "additionalProperties": false
                  },
                  "repair_hint": {
                    "type": "string",
                    "maxLength": 500
                  },
                  "review_cost": {
                    "type": "object",
                    "required": [
                      "estimated_credits",
                      "limit_credits",
                      "provider",
                      "model",
                      "basis",
                      "input_token_bound",
                      "output_token_cap",
                      "prompt_bytes",
                      "section_bytes"
                    ],
                    "properties": {
                      "basis": {
                        "const": "utf8_byte_upper_bound"
                      },
                      "model": {
                        "type": "string",
                        "maxLength": 200
                      },
                      "provider": {
                        "type": "string",
                        "maxLength": 200
                      },
                      "prompt_bytes": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "limit_credits": {
                        "type": "string",
                        "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                        "maxLength": 64
                      },
                      "section_bytes": {
                        "type": "object",
                        "required": [],
                        "properties": {
                          "spec": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "intent": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "input_contract": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "output_contract": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "acceptance_suite": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "research_evidence": {
                            "type": "integer",
                            "minimum": 0
                          }
                        },
                        "additionalProperties": false
                      },
                      "output_token_cap": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "estimated_credits": {
                        "type": "string",
                        "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                        "maxLength": 64
                      },
                      "input_token_bound": {
                        "type": "integer",
                        "minimum": 0
                      }
                    },
                    "additionalProperties": false
                  },
                  "limit_credits": {
                    "type": "string",
                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                    "maxLength": 64
                  },
                  "estimated_credits": {
                    "type": "string",
                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                    "maxLength": 64
                  },
                  "missing_categories": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 64
                    },
                    "maxItems": 10,
                    "uniqueItems": true
                  },
                  "retry_after_seconds": {
                    "type": "integer",
                    "maximum": 86400,
                    "minimum": 1
                  }
                },
                "additionalProperties": false
              }
            ]
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "get_recipe_capability",
          "title": "Read a Recipe Capability",
          "description": "Read the complete contract for one supported recipe node type.",
          "inputSchema": {
            "type": "object",
            "required": [
              "node_type"
            ],
            "properties": {
              "node_type": {
                "type": "string",
                "maxLength": 64
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "oneOf": [
              {
                "type": "object",
                "required": [
                  "view",
                  "data"
                ],
                "properties": {
                  "data": {
                    "type": "object",
                    "required": [
                      "catalog_version",
                      "capability"
                    ],
                    "properties": {
                      "versions": {
                        "type": "object",
                        "required": [
                          "archetypes",
                          "capabilities",
                          "checks",
                          "guidance",
                          "models"
                        ],
                        "properties": {
                          "checks": {
                            "type": "string",
                            "maxLength": 64
                          },
                          "models": {
                            "type": "string",
                            "maxLength": 64
                          },
                          "guidance": {
                            "type": "string",
                            "maxLength": 64
                          },
                          "archetypes": {
                            "type": "string",
                            "maxLength": 64
                          },
                          "capabilities": {
                            "type": "string",
                            "maxLength": 64
                          }
                        },
                        "additionalProperties": false
                      },
                      "capability": {
                        "type": "object",
                        "required": [
                          "node_type",
                          "draft_authoring_supported",
                          "automatic_acceptance_eligible",
                          "qualification_route",
                          "exposure",
                          "effect_class",
                          "user_handoff",
                          "acceptance_note",
                          "authoring_schema",
                          "required_fields",
                          "defaults",
                          "resource_selector_paths",
                          "minimal_example"
                        ],
                        "properties": {
                          "defaults": {
                            "type": "object",
                            "maxProperties": 32
                          },
                          "exposure": {
                            "enum": [
                              "primary",
                              "alias",
                              "backend_only"
                            ]
                          },
                          "node_type": {
                            "type": "string",
                            "maxLength": 64,
                            "minLength": 1
                          },
                          "effect_class": {
                            "enum": [
                              "none",
                              "provider_call",
                              "external_read",
                              "external_write",
                              "durable_write",
                              "wait",
                              "nested_recipe"
                            ]
                          },
                          "user_handoff": {
                            "enum": [
                              "none",
                              "budget_approval",
                              "side_effect_approval",
                              "resource_and_side_effect_approval",
                              "resource_or_oauth",
                              "oauth_or_platform_policy",
                              "runtime_wait",
                              "recipe_selection",
                              "resource_selection"
                            ]
                          },
                          "acceptance_note": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "maxLength": 240
                          },
                          "minimal_example": {
                            "type": "object",
                            "maxProperties": 100,
                            "minProperties": 2
                          },
                          "required_fields": {
                            "type": "array",
                            "items": {
                              "type": "string",
                              "maxLength": 128,
                              "minLength": 1
                            },
                            "maxItems": 32,
                            "minItems": 2,
                            "uniqueItems": true
                          },
                          "authoring_schema": {
                            "type": "object",
                            "maxProperties": 20,
                            "minProperties": 4
                          },
                          "qualification_route": {
                            "enum": [
                              "automatic",
                              "conditional",
                              "supervised"
                            ]
                          },
                          "resource_selector_paths": {
                            "type": "array",
                            "items": {
                              "type": "string",
                              "pattern": "^/[A-Za-z_][A-Za-z0-9_/]*$",
                              "maxLength": 256
                            },
                            "maxItems": 8,
                            "uniqueItems": true
                          },
                          "draft_authoring_supported": {
                            "type": "boolean"
                          },
                          "automatic_acceptance_eligible": {
                            "type": "boolean"
                          }
                        },
                        "additionalProperties": false
                      },
                      "catalog_version": {
                        "type": "string",
                        "maxLength": 64
                      }
                    },
                    "additionalProperties": false
                  },
                  "view": {
                    "const": "capability"
                  },
                  "truncation": {
                    "type": "object",
                    "required": [
                      "applied",
                      "reason",
                      "omitted_items",
                      "truncated_values",
                      "original_result_bytes"
                    ],
                    "properties": {
                      "reason": {
                        "const": "response_size_limit"
                      },
                      "applied": {
                        "const": true
                      },
                      "omitted_items": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "truncated_values": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "original_result_bytes": {
                        "type": "integer",
                        "minimum": 1
                      }
                    },
                    "additionalProperties": false
                  }
                }
              },
              {
                "type": "object",
                "required": [
                  "error"
                ],
                "properties": {
                  "hint": {
                    "type": "string",
                    "maxLength": 240
                  },
                  "error": {
                    "enum": [
                      "not_found",
                      "invalid_reference",
                      "invalid_params",
                      "revision_conflict",
                      "idempotency_conflict",
                      "document_too_large",
                      "payload_too_large",
                      "chunk_sequence_invalid",
                      "chunk_digest_mismatch",
                      "chunk_expired",
                      "invalid_cursor",
                      "suite_duplicate_case_id",
                      "suite_unresolved_pair",
                      "suite_schema_invalid",
                      "suite_missing_categories",
                      "suite_weak_normal_oracle",
                      "suite_too_large",
                      "unknown_case_id",
                      "duplicate_case_id",
                      "incomplete_case_selection",
                      "unsupported_node_kind",
                      "research_required",
                      "review_required",
                      "acceptance_required",
                      "qualification_stale",
                      "budget_not_approved",
                      "budget_exhausted",
                      "budget_superseded",
                      "budget_capability_consumed",
                      "budget_capability_expired",
                      "acceptance_case_cost_exceeded",
                      "authoring_budget_exceeded",
                      "authoring_grant_not_active",
                      "insufficient_credits",
                      "billing_anomaly",
                      "activity_stalled",
                      "activity_in_flight",
                      "handoff_approval_required",
                      "handoff_expired",
                      "handoff_not_pending",
                      "handoff_stale",
                      "handoff_disclosure_incomplete",
                      "feature_unavailable",
                      "resource_unavailable",
                      "resource_binding_required",
                      "resource_requirement_not_found",
                      "activity_not_cancellable",
                      "quota_exceeded",
                      "rate_limited",
                      "already_published",
                      "safety_locked",
                      "build_terminal",
                      "commit_capability_expired",
                      "account_unavailable",
                      "limit_unavailable"
                    ]
                  },
                  "field": {
                    "type": "string",
                    "maxLength": 64
                  },
                  "issue": {
                    "type": "object",
                    "required": [
                      "code",
                      "path"
                    ],
                    "properties": {
                      "code": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "path": {
                        "type": "string",
                        "maxLength": 512
                      },
                      "type": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "field": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "operator": {
                        "type": "string",
                        "maxLength": 64
                      }
                    },
                    "additionalProperties": false
                  },
                  "case_id": {
                    "type": "string",
                    "maxLength": 64,
                    "minLength": 1
                  },
                  "truncation": {
                    "type": "object",
                    "required": [
                      "applied",
                      "reason",
                      "omitted_items",
                      "truncated_values",
                      "original_result_bytes"
                    ],
                    "properties": {
                      "reason": {
                        "const": "response_size_limit"
                      },
                      "applied": {
                        "const": true
                      },
                      "omitted_items": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "truncated_values": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "original_result_bytes": {
                        "type": "integer",
                        "minimum": 1
                      }
                    },
                    "additionalProperties": false
                  },
                  "repair_hint": {
                    "type": "string",
                    "maxLength": 500
                  },
                  "review_cost": {
                    "type": "object",
                    "required": [
                      "estimated_credits",
                      "limit_credits",
                      "provider",
                      "model",
                      "basis",
                      "input_token_bound",
                      "output_token_cap",
                      "prompt_bytes",
                      "section_bytes"
                    ],
                    "properties": {
                      "basis": {
                        "const": "utf8_byte_upper_bound"
                      },
                      "model": {
                        "type": "string",
                        "maxLength": 200
                      },
                      "provider": {
                        "type": "string",
                        "maxLength": 200
                      },
                      "prompt_bytes": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "limit_credits": {
                        "type": "string",
                        "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                        "maxLength": 64
                      },
                      "section_bytes": {
                        "type": "object",
                        "required": [],
                        "properties": {
                          "spec": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "intent": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "input_contract": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "output_contract": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "acceptance_suite": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "research_evidence": {
                            "type": "integer",
                            "minimum": 0
                          }
                        },
                        "additionalProperties": false
                      },
                      "output_token_cap": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "estimated_credits": {
                        "type": "string",
                        "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                        "maxLength": 64
                      },
                      "input_token_bound": {
                        "type": "integer",
                        "minimum": 0
                      }
                    },
                    "additionalProperties": false
                  },
                  "limit_credits": {
                    "type": "string",
                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                    "maxLength": 64
                  },
                  "estimated_credits": {
                    "type": "string",
                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                    "maxLength": 64
                  },
                  "missing_categories": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 64
                    },
                    "maxItems": 10,
                    "uniqueItems": true
                  },
                  "retry_after_seconds": {
                    "type": "integer",
                    "maximum": 86400,
                    "minimum": 1
                  }
                },
                "additionalProperties": false
              }
            ]
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "get_recipe_details",
          "title": "Read StewAI Recipe Details",
          "description": "Read the authorized published details and executable contracts for one opaque recipe reference. Follow next_cursor until null. This tool never executes a recipe.",
          "inputSchema": {
            "type": "object",
            "required": [
              "recipe_ref"
            ],
            "properties": {
              "cursor": {
                "type": "string",
                "maxLength": 2000
              },
              "recipe_ref": {
                "type": "string",
                "maxLength": 32768
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "oneOf": [
              {
                "type": "object",
                "required": [
                  "view",
                  "revision_sha",
                  "disclosure",
                  "items",
                  "next_cursor",
                  "recipe_ref",
                  "metrics"
                ],
                "properties": {
                  "view": {
                    "const": "details"
                  },
                  "items": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "section",
                        "encoding",
                        "content",
                        "offset",
                        "total_characters",
                        "complete"
                      ],
                      "properties": {
                        "offset": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "content": {
                          "type": "string",
                          "maxLength": 6000
                        },
                        "section": {
                          "type": "string"
                        },
                        "complete": {
                          "type": "boolean"
                        },
                        "encoding": {
                          "enum": [
                            "text",
                            "json"
                          ]
                        },
                        "total_characters": {
                          "type": "integer",
                          "minimum": 0
                        }
                      },
                      "additionalProperties": false
                    },
                    "maxItems": 20
                  },
                  "metrics": {
                    "type": "object",
                    "required": [
                      "basis",
                      "sample_count",
                      "average_credits",
                      "average_duration_seconds"
                    ],
                    "properties": {
                      "basis": {
                        "const": "successful_runs"
                      },
                      "sample_count": {
                        "type": [
                          "integer",
                          "null"
                        ],
                        "minimum": 0
                      },
                      "average_credits": {
                        "type": [
                          "number",
                          "null"
                        ]
                      },
                      "average_duration_seconds": {
                        "type": [
                          "number",
                          "null"
                        ]
                      }
                    },
                    "additionalProperties": false
                  },
                  "disclosure": {
                    "enum": [
                      "view_authorized",
                      "public_summary_only"
                    ]
                  },
                  "recipe_ref": {
                    "type": "string",
                    "maxLength": 32768
                  },
                  "next_cursor": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 2000
                  },
                  "revision_sha": {
                    "type": "string"
                  }
                }
              },
              {
                "type": "object",
                "required": [
                  "error"
                ],
                "properties": {
                  "hint": {
                    "type": "string",
                    "maxLength": 240
                  },
                  "error": {
                    "enum": [
                      "recipe_unavailable",
                      "invalid_cursor",
                      "recipe_ref_expired"
                    ]
                  }
                },
                "additionalProperties": false
              }
            ]
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "get_recipe_model",
          "title": "Read a Recipe Model",
          "description": "Read the authoring contract for one exact model identifier.",
          "inputSchema": {
            "type": "object",
            "required": [
              "model_id"
            ],
            "properties": {
              "model_id": {
                "type": "string",
                "maxLength": 200
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "oneOf": [
              {
                "type": "object",
                "required": [
                  "view",
                  "data"
                ],
                "properties": {
                  "data": {
                    "type": "object",
                    "required": [
                      "contract_version"
                    ],
                    "properties": {
                      "count": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "model": {
                        "type": "object"
                      },
                      "models": {
                        "type": "array",
                        "items": {
                          "type": "object"
                        },
                        "maxItems": 10
                      },
                      "versions": {
                        "type": "object",
                        "required": [
                          "archetypes",
                          "capabilities",
                          "checks",
                          "guidance",
                          "models"
                        ],
                        "properties": {
                          "checks": {
                            "type": "string",
                            "maxLength": 64
                          },
                          "models": {
                            "type": "string",
                            "maxLength": 64
                          },
                          "guidance": {
                            "type": "string",
                            "maxLength": 64
                          },
                          "archetypes": {
                            "type": "string",
                            "maxLength": 64
                          },
                          "capabilities": {
                            "type": "string",
                            "maxLength": 64
                          }
                        },
                        "additionalProperties": false
                      },
                      "parameters": {
                        "type": "array",
                        "items": {
                          "type": "object"
                        },
                        "maxItems": 100
                      },
                      "next_cursor": {
                        "type": "string",
                        "maxLength": 512
                      },
                      "detail_lookup": {
                        "type": "string",
                        "maxLength": 500
                      },
                      "org_overrides": {
                        "type": "object"
                      },
                      "contract_version": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "has_org_restrictions": {
                        "type": "boolean"
                      }
                    },
                    "additionalProperties": false
                  },
                  "view": {
                    "const": "models"
                  },
                  "truncation": {
                    "type": "object",
                    "required": [
                      "applied",
                      "reason",
                      "omitted_items",
                      "truncated_values",
                      "original_result_bytes"
                    ],
                    "properties": {
                      "reason": {
                        "const": "response_size_limit"
                      },
                      "applied": {
                        "const": true
                      },
                      "omitted_items": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "truncated_values": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "original_result_bytes": {
                        "type": "integer",
                        "minimum": 1
                      }
                    },
                    "additionalProperties": false
                  }
                }
              },
              {
                "type": "object",
                "required": [
                  "error"
                ],
                "properties": {
                  "hint": {
                    "type": "string",
                    "maxLength": 240
                  },
                  "error": {
                    "enum": [
                      "not_found",
                      "invalid_reference",
                      "invalid_params",
                      "revision_conflict",
                      "idempotency_conflict",
                      "document_too_large",
                      "payload_too_large",
                      "chunk_sequence_invalid",
                      "chunk_digest_mismatch",
                      "chunk_expired",
                      "invalid_cursor",
                      "suite_duplicate_case_id",
                      "suite_unresolved_pair",
                      "suite_schema_invalid",
                      "suite_missing_categories",
                      "suite_weak_normal_oracle",
                      "suite_too_large",
                      "unknown_case_id",
                      "duplicate_case_id",
                      "incomplete_case_selection",
                      "unsupported_node_kind",
                      "research_required",
                      "review_required",
                      "acceptance_required",
                      "qualification_stale",
                      "budget_not_approved",
                      "budget_exhausted",
                      "budget_superseded",
                      "budget_capability_consumed",
                      "budget_capability_expired",
                      "acceptance_case_cost_exceeded",
                      "authoring_budget_exceeded",
                      "authoring_grant_not_active",
                      "insufficient_credits",
                      "billing_anomaly",
                      "activity_stalled",
                      "activity_in_flight",
                      "handoff_approval_required",
                      "handoff_expired",
                      "handoff_not_pending",
                      "handoff_stale",
                      "handoff_disclosure_incomplete",
                      "feature_unavailable",
                      "resource_unavailable",
                      "resource_binding_required",
                      "resource_requirement_not_found",
                      "activity_not_cancellable",
                      "quota_exceeded",
                      "rate_limited",
                      "already_published",
                      "safety_locked",
                      "build_terminal",
                      "commit_capability_expired",
                      "account_unavailable",
                      "limit_unavailable"
                    ]
                  },
                  "field": {
                    "type": "string",
                    "maxLength": 64
                  },
                  "issue": {
                    "type": "object",
                    "required": [
                      "code",
                      "path"
                    ],
                    "properties": {
                      "code": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "path": {
                        "type": "string",
                        "maxLength": 512
                      },
                      "type": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "field": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "operator": {
                        "type": "string",
                        "maxLength": 64
                      }
                    },
                    "additionalProperties": false
                  },
                  "case_id": {
                    "type": "string",
                    "maxLength": 64,
                    "minLength": 1
                  },
                  "truncation": {
                    "type": "object",
                    "required": [
                      "applied",
                      "reason",
                      "omitted_items",
                      "truncated_values",
                      "original_result_bytes"
                    ],
                    "properties": {
                      "reason": {
                        "const": "response_size_limit"
                      },
                      "applied": {
                        "const": true
                      },
                      "omitted_items": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "truncated_values": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "original_result_bytes": {
                        "type": "integer",
                        "minimum": 1
                      }
                    },
                    "additionalProperties": false
                  },
                  "repair_hint": {
                    "type": "string",
                    "maxLength": 500
                  },
                  "review_cost": {
                    "type": "object",
                    "required": [
                      "estimated_credits",
                      "limit_credits",
                      "provider",
                      "model",
                      "basis",
                      "input_token_bound",
                      "output_token_cap",
                      "prompt_bytes",
                      "section_bytes"
                    ],
                    "properties": {
                      "basis": {
                        "const": "utf8_byte_upper_bound"
                      },
                      "model": {
                        "type": "string",
                        "maxLength": 200
                      },
                      "provider": {
                        "type": "string",
                        "maxLength": 200
                      },
                      "prompt_bytes": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "limit_credits": {
                        "type": "string",
                        "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                        "maxLength": 64
                      },
                      "section_bytes": {
                        "type": "object",
                        "required": [],
                        "properties": {
                          "spec": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "intent": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "input_contract": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "output_contract": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "acceptance_suite": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "research_evidence": {
                            "type": "integer",
                            "minimum": 0
                          }
                        },
                        "additionalProperties": false
                      },
                      "output_token_cap": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "estimated_credits": {
                        "type": "string",
                        "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                        "maxLength": 64
                      },
                      "input_token_bound": {
                        "type": "integer",
                        "minimum": 0
                      }
                    },
                    "additionalProperties": false
                  },
                  "limit_credits": {
                    "type": "string",
                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                    "maxLength": 64
                  },
                  "estimated_credits": {
                    "type": "string",
                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                    "maxLength": 64
                  },
                  "missing_categories": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 64
                    },
                    "maxItems": 10,
                    "uniqueItems": true
                  },
                  "retry_after_seconds": {
                    "type": "integer",
                    "maximum": 86400,
                    "minimum": 1
                  }
                },
                "additionalProperties": false
              }
            ]
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "get_recipe_preview",
          "title": "Preview a StewAI Recipe",
          "description": "Read one safe summary for an opaque recipe reference, including its contracts, evidence, duration, historical pricing, and bounded method and limitations excerpts. This tool never executes a recipe.",
          "inputSchema": {
            "type": "object",
            "required": [
              "recipe_ref"
            ],
            "properties": {
              "recipe_ref": {
                "type": "string",
                "maxLength": 32768
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "oneOf": [
              {
                "type": "object",
                "required": [
                  "title",
                  "description",
                  "description_truncated",
                  "category",
                  "pricing",
                  "visibility",
                  "inputs",
                  "outputs",
                  "recipe_ref",
                  "input_limits",
                  "source",
                  "access",
                  "state",
                  "qualification",
                  "contracts",
                  "evidence",
                  "decision_context"
                ],
                "properties": {
                  "state": {
                    "const": "published"
                  },
                  "title": {
                    "type": "string",
                    "maxLength": 200
                  },
                  "access": {
                    "type": "object",
                    "required": [
                      "can_view",
                      "can_run",
                      "can_fork"
                    ],
                    "properties": {
                      "can_run": {
                        "type": "boolean"
                      },
                      "can_fork": {
                        "type": "boolean"
                      },
                      "can_view": {
                        "type": "boolean"
                      }
                    },
                    "additionalProperties": false
                  },
                  "inputs": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "handle",
                        "label",
                        "required",
                        "must_provide",
                        "default_available",
                        "max_characters",
                        "max_utf8_bytes"
                      ],
                      "properties": {
                        "label": {
                          "type": "string",
                          "maxLength": 100
                        },
                        "handle": {
                          "type": "string",
                          "pattern": "^input_[1-9][0-9]*$"
                        },
                        "required": {
                          "type": "boolean",
                          "description": "The recipe declares this input as required. With default_available true a default is applied when it is omitted, so must_provide is false."
                        },
                        "must_provide": {
                          "type": "boolean",
                          "description": "True only when the input is required and has no default; the caller has to supply it."
                        },
                        "max_characters": {
                          "type": "integer",
                          "minimum": 1
                        },
                        "max_utf8_bytes": {
                          "type": "integer",
                          "minimum": 1
                        },
                        "default_available": {
                          "type": "boolean",
                          "description": "The recipe applies a default when this input is omitted; the default itself is never disclosed."
                        }
                      },
                      "additionalProperties": false
                    },
                    "maxItems": 50
                  },
                  "source": {
                    "enum": [
                      "public",
                      "owned",
                      "organization",
                      "shared"
                    ]
                  },
                  "outputs": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 100
                    },
                    "maxItems": 50
                  },
                  "pricing": {
                    "type": "object",
                    "required": [
                      "basis",
                      "credit_band",
                      "estimate_requires_dry_run",
                      "creator_fee"
                    ],
                    "properties": {
                      "basis": {
                        "const": "historical_average_successful_runs"
                      },
                      "creator_fee": {
                        "enum": [
                          "marketplace_policy",
                          "none"
                        ]
                      },
                      "credit_band": {
                        "enum": [
                          "unknown",
                          "free",
                          "0_to_10",
                          "10_to_100",
                          "over_100"
                        ],
                        "description": "Band of the average credits per successful run; unknown means no successful runs yet."
                      },
                      "average_credits": {
                        "type": "string",
                        "pattern": "^\\d+(?:\\.\\d+)?$",
                        "maxLength": 128
                      },
                      "estimate_requires_dry_run": {
                        "const": true
                      }
                    },
                    "additionalProperties": false
                  },
                  "category": {
                    "type": "string",
                    "maxLength": 100
                  },
                  "evidence": {
                    "type": "object",
                    "required": [
                      "research_evidence_count",
                      "acceptance_case_count",
                      "last_qualified",
                      "safety_review_state"
                    ],
                    "properties": {
                      "last_qualified": {
                        "enum": [
                          "unknown",
                          "last_7_days",
                          "last_30_days",
                          "older"
                        ]
                      },
                      "safety_review_state": {
                        "enum": [
                          "unreviewed",
                          "pending_attestation",
                          "pending_review",
                          "approved",
                          "rejected",
                          "revision_requested",
                          "delisted",
                          "suspended"
                        ]
                      },
                      "acceptance_case_count": {
                        "type": "integer",
                        "maximum": 50,
                        "minimum": 0
                      },
                      "research_evidence_count": {
                        "type": "integer",
                        "maximum": 100,
                        "minimum": 0
                      }
                    },
                    "additionalProperties": false
                  },
                  "contracts": {
                    "type": "object",
                    "required": [
                      "inputs",
                      "outputs"
                    ],
                    "properties": {
                      "inputs": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "required": [
                            "handle",
                            "label",
                            "required",
                            "description"
                          ],
                          "properties": {
                            "label": {
                              "type": "string",
                              "maxLength": 100
                            },
                            "handle": {
                              "type": "string",
                              "pattern": "^[a-z][a-z0-9_]{0,63}$"
                            },
                            "required": {
                              "type": "boolean",
                              "description": "Declared required by the recipe; get_recipe_preview shows must_provide and default_available for the same handle."
                            },
                            "description": {
                              "type": "string",
                              "maxLength": 500
                            }
                          },
                          "additionalProperties": false
                        },
                        "maxItems": 50
                      },
                      "outputs": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "required": [
                            "handle",
                            "label",
                            "required",
                            "description"
                          ],
                          "properties": {
                            "label": {
                              "type": "string",
                              "maxLength": 100
                            },
                            "handle": {
                              "type": "string",
                              "pattern": "^[a-z][a-z0-9_]{0,63}$"
                            },
                            "required": {
                              "type": "boolean",
                              "description": "Declared required by the recipe; get_recipe_preview shows must_provide and default_available for the same handle."
                            },
                            "description": {
                              "type": "string",
                              "maxLength": 500
                            }
                          },
                          "additionalProperties": false
                        },
                        "maxItems": 50
                      },
                      "outputs_undeclared": {
                        "type": "boolean"
                      }
                    },
                    "additionalProperties": false
                  },
                  "recipe_ref": {
                    "type": "string",
                    "maxLength": 32768
                  },
                  "visibility": {
                    "enum": [
                      "private",
                      "shared",
                      "public_open",
                      "public_opaque"
                    ]
                  },
                  "description": {
                    "type": "string",
                    "maxLength": 4000
                  },
                  "input_limits": {
                    "type": "object",
                    "required": [
                      "max_total_utf8_bytes"
                    ],
                    "properties": {
                      "note": {
                        "type": "string",
                        "maxLength": 240
                      },
                      "max_total_utf8_bytes": {
                        "type": "integer",
                        "minimum": 1
                      }
                    },
                    "additionalProperties": false
                  },
                  "qualification": {
                    "enum": [
                      "public_reviewed",
                      "authoring_qualified",
                      "published_unqualified",
                      "unknown"
                    ]
                  },
                  "decision_context": {
                    "type": "object",
                    "required": [
                      "method_excerpt",
                      "limitations_excerpt",
                      "output_contract_state",
                      "evidence_note"
                    ],
                    "properties": {
                      "evidence_note": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "maxLength": 240
                      },
                      "method_excerpt": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "maxLength": 800
                      },
                      "limitations_excerpt": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "maxLength": 800
                      },
                      "output_contract_state": {
                        "enum": [
                          "declared",
                          "undeclared",
                          "unusable"
                        ],
                        "description": "Unusable means output nodes exist but no stable executable output binding is available."
                      }
                    },
                    "description": "Bounded selection hints from the pinned published revision, with explicitly labeled safety-reviewed public copy as a fallback; text is withheld without view permission.",
                    "additionalProperties": false
                  },
                  "description_truncated": {
                    "type": "boolean"
                  }
                }
              },
              {
                "type": "object",
                "required": [
                  "error"
                ],
                "properties": {
                  "hint": {
                    "type": "string",
                    "maxLength": 240
                  },
                  "error": {
                    "enum": [
                      "recipe_unavailable",
                      "invalid_cursor",
                      "recipe_ref_expired"
                    ]
                  }
                },
                "additionalProperties": false
              }
            ]
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "get_results",
          "title": "Get StewAI Run Outputs",
          "description": "Read the declared output values from one owned run.",
          "inputSchema": {
            "type": "object",
            "required": [
              "run_id"
            ],
            "properties": {
              "run_id": {
                "type": "string",
                "pattern": "^[0-9A-Za-z]{26}$",
                "maxLength": 26,
                "minLength": 26
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "oneOf": [
              {
                "type": "object",
                "required": [
                  "outcome",
                  "run_id",
                  "run_url",
                  "outputs"
                ],
                "properties": {
                  "run_id": {
                    "type": "string",
                    "pattern": "^[0-9A-Za-z]{26}$",
                    "maxLength": 26,
                    "minLength": 26
                  },
                  "outcome": {
                    "const": "results"
                  },
                  "outputs": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "label",
                        "value"
                      ],
                      "properties": {
                        "label": {
                          "type": "string",
                          "maxLength": 100
                        },
                        "value": {}
                      },
                      "additionalProperties": false
                    },
                    "maxItems": 50
                  },
                  "run_url": {
                    "type": "string",
                    "format": "uri",
                    "maxLength": 2048,
                    "description": "Clickable StewAI page for this run."
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "object",
                "required": [
                  "outcome",
                  "run_id",
                  "run_url",
                  "status"
                ],
                "properties": {
                  "run_id": {
                    "type": "string",
                    "pattern": "^[0-9A-Za-z]{26}$",
                    "maxLength": 26,
                    "minLength": 26
                  },
                  "status": {
                    "enum": [
                      "queued",
                      "running",
                      "blocked"
                    ]
                  },
                  "outcome": {
                    "const": "not_ready"
                  },
                  "run_url": {
                    "type": "string",
                    "format": "uri",
                    "maxLength": 2048,
                    "description": "Clickable StewAI page for this run."
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "object",
                "required": [
                  "outcome",
                  "run_id",
                  "run_url",
                  "status"
                ],
                "properties": {
                  "run_id": {
                    "type": "string",
                    "pattern": "^[0-9A-Za-z]{26}$",
                    "maxLength": 26,
                    "minLength": 26
                  },
                  "status": {
                    "enum": [
                      "failed",
                      "cancelled"
                    ]
                  },
                  "outcome": {
                    "const": "no_results"
                  },
                  "run_url": {
                    "type": "string",
                    "format": "uri",
                    "maxLength": 2048,
                    "description": "Clickable StewAI page for this run."
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "object",
                "required": [
                  "outcome",
                  "run_id",
                  "run_url"
                ],
                "properties": {
                  "run_id": {
                    "type": "string",
                    "pattern": "^[0-9A-Za-z]{26}$",
                    "maxLength": 26,
                    "minLength": 26
                  },
                  "outcome": {
                    "const": "result_too_large"
                  },
                  "run_url": {
                    "type": "string",
                    "format": "uri",
                    "maxLength": 2048,
                    "description": "Clickable StewAI page for this run."
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "object",
                "required": [
                  "error"
                ],
                "properties": {
                  "error": {
                    "const": "run_not_found"
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "object",
                "required": [
                  "error",
                  "field",
                  "hint"
                ],
                "properties": {
                  "hint": {
                    "type": "string",
                    "maxLength": 240
                  },
                  "error": {
                    "const": "invalid_params"
                  },
                  "field": {
                    "type": "string",
                    "maxLength": 64
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "object",
                "required": [
                  "error"
                ],
                "properties": {
                  "error": {
                    "const": "result_unavailable"
                  }
                },
                "additionalProperties": false
              }
            ]
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "get_run",
          "title": "Get StewAI Run Status",
          "description": "Read the current status and live progress of one owned run.",
          "inputSchema": {
            "type": "object",
            "required": [
              "run_id"
            ],
            "properties": {
              "run_id": {
                "type": "string",
                "pattern": "^[0-9A-Za-z]{26}$",
                "maxLength": 26,
                "minLength": 26
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "oneOf": [
              {
                "type": "object",
                "oneOf": [
                  {
                    "type": "object",
                    "required": [
                      "run_id",
                      "run_url",
                      "status",
                      "created_at",
                      "updated_at"
                    ],
                    "properties": {
                      "run_id": {
                        "type": "string",
                        "pattern": "^[0-9A-Za-z]{26}$",
                        "maxLength": 26,
                        "minLength": 26
                      },
                      "status": {
                        "enum": [
                          "queued",
                          "running",
                          "blocked"
                        ]
                      },
                      "run_url": {
                        "type": "string",
                        "format": "uri",
                        "maxLength": 2048,
                        "description": "Clickable StewAI page for this run."
                      },
                      "progress": {
                        "type": "object",
                        "required": [
                          "phase",
                          "steps",
                          "active_steps",
                          "run_elapsed_seconds",
                          "last_step_activity_at",
                          "observed_at"
                        ],
                        "properties": {
                          "phase": {
                            "enum": [
                              "queued",
                              "running_steps",
                              "between_steps",
                              "waiting_for_input",
                              "paused_insufficient_credits",
                              "terminal"
                            ]
                          },
                          "steps": {
                            "type": "object",
                            "required": [
                              "total",
                              "queued",
                              "running",
                              "waiting_for_input",
                              "done",
                              "failed"
                            ],
                            "properties": {
                              "done": {
                                "type": "integer",
                                "minimum": 0
                              },
                              "total": {
                                "type": "integer",
                                "minimum": 0
                              },
                              "failed": {
                                "type": "integer",
                                "minimum": 0
                              },
                              "queued": {
                                "type": "integer",
                                "minimum": 0
                              },
                              "running": {
                                "type": "integer",
                                "minimum": 0
                              },
                              "waiting_for_input": {
                                "type": "integer",
                                "minimum": 0
                              }
                            },
                            "additionalProperties": false
                          },
                          "observed_at": {
                            "type": "string",
                            "maxLength": 40
                          },
                          "active_steps": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "required": [
                                "step_id",
                                "kind",
                                "started_at",
                                "elapsed_seconds"
                              ],
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "maxLength": 32
                                },
                                "title": {
                                  "type": "string",
                                  "maxLength": 120
                                },
                                "step_id": {
                                  "type": "string",
                                  "maxLength": 128
                                },
                                "started_at": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "maxLength": 40
                                },
                                "elapsed_seconds": {
                                  "type": [
                                    "integer",
                                    "null"
                                  ],
                                  "minimum": 0
                                }
                              },
                              "additionalProperties": false
                            },
                            "maxItems": 5
                          },
                          "run_elapsed_seconds": {
                            "type": [
                              "integer",
                              "null"
                            ],
                            "minimum": 0
                          },
                          "last_step_activity_at": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "maxLength": 40
                          }
                        },
                        "description": "Live progress from committed step rows. updated_at is the run record's time; last_step_activity_at shows the latest step start or finish.",
                        "additionalProperties": false
                      },
                      "created_at": {
                        "type": "string",
                        "format": "date-time",
                        "maxLength": 64
                      },
                      "updated_at": {
                        "type": "string",
                        "format": "date-time",
                        "maxLength": 64
                      },
                      "credit_pause": {
                        "type": "object",
                        "required": [
                          "required_credits",
                          "available_credits",
                          "resumable"
                        ],
                        "properties": {
                          "resumable": {
                            "const": true
                          },
                          "required_credits": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "maxLength": 32
                          },
                          "available_credits": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "maxLength": 32
                          }
                        },
                        "description": "The run paused because a step could not reserve credits. It resumes from the StewAI web app after credits are added.",
                        "additionalProperties": false
                      }
                    },
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "required": [
                      "run_id",
                      "run_url",
                      "status",
                      "created_at",
                      "updated_at",
                      "results_available",
                      "billing"
                    ],
                    "properties": {
                      "run_id": {
                        "type": "string",
                        "pattern": "^[0-9A-Za-z]{26}$",
                        "maxLength": 26,
                        "minLength": 26
                      },
                      "status": {
                        "const": "done"
                      },
                      "billing": {
                        "oneOf": [
                          {
                            "type": "object",
                            "required": [
                              "state",
                              "retry_after_seconds"
                            ],
                            "properties": {
                              "state": {
                                "const": "pending"
                              },
                              "retry_after_seconds": {
                                "const": 2
                              }
                            },
                            "additionalProperties": false
                          },
                          {
                            "type": "object",
                            "required": [
                              "state"
                            ],
                            "properties": {
                              "state": {
                                "const": "unavailable"
                              }
                            },
                            "additionalProperties": false
                          },
                          {
                            "type": "object",
                            "required": [
                              "state",
                              "charged_credits"
                            ],
                            "properties": {
                              "state": {
                                "const": "settled"
                              },
                              "charged_credits": {
                                "type": "string",
                                "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                                "maxLength": 64
                              }
                            },
                            "additionalProperties": false
                          },
                          {
                            "type": "object",
                            "required": [
                              "state",
                              "charged_credits",
                              "available_credits",
                              "balance_as_of"
                            ],
                            "properties": {
                              "state": {
                                "const": "settled"
                              },
                              "balance_as_of": {
                                "type": "string",
                                "format": "date-time",
                                "maxLength": 64
                              },
                              "charged_credits": {
                                "type": "string",
                                "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                                "maxLength": 64
                              },
                              "available_credits": {
                                "type": "string",
                                "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                                "maxLength": 64
                              }
                            },
                            "additionalProperties": false
                          }
                        ]
                      },
                      "run_url": {
                        "type": "string",
                        "format": "uri",
                        "maxLength": 2048,
                        "description": "Clickable StewAI page for this run."
                      },
                      "progress": {
                        "type": "object",
                        "required": [
                          "phase",
                          "steps",
                          "active_steps",
                          "run_elapsed_seconds",
                          "last_step_activity_at",
                          "observed_at"
                        ],
                        "properties": {
                          "phase": {
                            "enum": [
                              "queued",
                              "running_steps",
                              "between_steps",
                              "waiting_for_input",
                              "paused_insufficient_credits",
                              "terminal"
                            ]
                          },
                          "steps": {
                            "type": "object",
                            "required": [
                              "total",
                              "queued",
                              "running",
                              "waiting_for_input",
                              "done",
                              "failed"
                            ],
                            "properties": {
                              "done": {
                                "type": "integer",
                                "minimum": 0
                              },
                              "total": {
                                "type": "integer",
                                "minimum": 0
                              },
                              "failed": {
                                "type": "integer",
                                "minimum": 0
                              },
                              "queued": {
                                "type": "integer",
                                "minimum": 0
                              },
                              "running": {
                                "type": "integer",
                                "minimum": 0
                              },
                              "waiting_for_input": {
                                "type": "integer",
                                "minimum": 0
                              }
                            },
                            "additionalProperties": false
                          },
                          "observed_at": {
                            "type": "string",
                            "maxLength": 40
                          },
                          "active_steps": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "required": [
                                "step_id",
                                "kind",
                                "started_at",
                                "elapsed_seconds"
                              ],
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "maxLength": 32
                                },
                                "title": {
                                  "type": "string",
                                  "maxLength": 120
                                },
                                "step_id": {
                                  "type": "string",
                                  "maxLength": 128
                                },
                                "started_at": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "maxLength": 40
                                },
                                "elapsed_seconds": {
                                  "type": [
                                    "integer",
                                    "null"
                                  ],
                                  "minimum": 0
                                }
                              },
                              "additionalProperties": false
                            },
                            "maxItems": 5
                          },
                          "run_elapsed_seconds": {
                            "type": [
                              "integer",
                              "null"
                            ],
                            "minimum": 0
                          },
                          "last_step_activity_at": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "maxLength": 40
                          }
                        },
                        "description": "Live progress from committed step rows. updated_at is the run record's time; last_step_activity_at shows the latest step start or finish.",
                        "additionalProperties": false
                      },
                      "created_at": {
                        "type": "string",
                        "format": "date-time",
                        "maxLength": 64
                      },
                      "updated_at": {
                        "type": "string",
                        "format": "date-time",
                        "maxLength": 64
                      },
                      "results_available": {
                        "type": "boolean"
                      }
                    },
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "required": [
                      "run_id",
                      "run_url",
                      "status",
                      "created_at",
                      "updated_at",
                      "billing"
                    ],
                    "properties": {
                      "run_id": {
                        "type": "string",
                        "pattern": "^[0-9A-Za-z]{26}$",
                        "maxLength": 26,
                        "minLength": 26
                      },
                      "status": {
                        "enum": [
                          "failed",
                          "cancelled"
                        ]
                      },
                      "billing": {
                        "oneOf": [
                          {
                            "type": "object",
                            "required": [
                              "state",
                              "retry_after_seconds"
                            ],
                            "properties": {
                              "state": {
                                "const": "pending"
                              },
                              "retry_after_seconds": {
                                "const": 2
                              }
                            },
                            "additionalProperties": false
                          },
                          {
                            "type": "object",
                            "required": [
                              "state"
                            ],
                            "properties": {
                              "state": {
                                "const": "unavailable"
                              }
                            },
                            "additionalProperties": false
                          },
                          {
                            "type": "object",
                            "required": [
                              "state",
                              "charged_credits"
                            ],
                            "properties": {
                              "state": {
                                "const": "settled"
                              },
                              "charged_credits": {
                                "type": "string",
                                "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                                "maxLength": 64
                              }
                            },
                            "additionalProperties": false
                          },
                          {
                            "type": "object",
                            "required": [
                              "state",
                              "charged_credits",
                              "available_credits",
                              "balance_as_of"
                            ],
                            "properties": {
                              "state": {
                                "const": "settled"
                              },
                              "balance_as_of": {
                                "type": "string",
                                "format": "date-time",
                                "maxLength": 64
                              },
                              "charged_credits": {
                                "type": "string",
                                "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                                "maxLength": 64
                              },
                              "available_credits": {
                                "type": "string",
                                "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                                "maxLength": 64
                              }
                            },
                            "additionalProperties": false
                          }
                        ]
                      },
                      "run_url": {
                        "type": "string",
                        "format": "uri",
                        "maxLength": 2048,
                        "description": "Clickable StewAI page for this run."
                      },
                      "progress": {
                        "type": "object",
                        "required": [
                          "phase",
                          "steps",
                          "active_steps",
                          "run_elapsed_seconds",
                          "last_step_activity_at",
                          "observed_at"
                        ],
                        "properties": {
                          "phase": {
                            "enum": [
                              "queued",
                              "running_steps",
                              "between_steps",
                              "waiting_for_input",
                              "paused_insufficient_credits",
                              "terminal"
                            ]
                          },
                          "steps": {
                            "type": "object",
                            "required": [
                              "total",
                              "queued",
                              "running",
                              "waiting_for_input",
                              "done",
                              "failed"
                            ],
                            "properties": {
                              "done": {
                                "type": "integer",
                                "minimum": 0
                              },
                              "total": {
                                "type": "integer",
                                "minimum": 0
                              },
                              "failed": {
                                "type": "integer",
                                "minimum": 0
                              },
                              "queued": {
                                "type": "integer",
                                "minimum": 0
                              },
                              "running": {
                                "type": "integer",
                                "minimum": 0
                              },
                              "waiting_for_input": {
                                "type": "integer",
                                "minimum": 0
                              }
                            },
                            "additionalProperties": false
                          },
                          "observed_at": {
                            "type": "string",
                            "maxLength": 40
                          },
                          "active_steps": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "required": [
                                "step_id",
                                "kind",
                                "started_at",
                                "elapsed_seconds"
                              ],
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "maxLength": 32
                                },
                                "title": {
                                  "type": "string",
                                  "maxLength": 120
                                },
                                "step_id": {
                                  "type": "string",
                                  "maxLength": 128
                                },
                                "started_at": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "maxLength": 40
                                },
                                "elapsed_seconds": {
                                  "type": [
                                    "integer",
                                    "null"
                                  ],
                                  "minimum": 0
                                }
                              },
                              "additionalProperties": false
                            },
                            "maxItems": 5
                          },
                          "run_elapsed_seconds": {
                            "type": [
                              "integer",
                              "null"
                            ],
                            "minimum": 0
                          },
                          "last_step_activity_at": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "maxLength": 40
                          }
                        },
                        "description": "Live progress from committed step rows. updated_at is the run record's time; last_step_activity_at shows the latest step start or finish.",
                        "additionalProperties": false
                      },
                      "created_at": {
                        "type": "string",
                        "format": "date-time",
                        "maxLength": 64
                      },
                      "updated_at": {
                        "type": "string",
                        "format": "date-time",
                        "maxLength": 64
                      }
                    },
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "required": [
                      "error"
                    ],
                    "properties": {
                      "error": {
                        "const": "run_not_found"
                      }
                    },
                    "additionalProperties": false
                  }
                ]
              },
              {
                "type": "object",
                "required": [
                  "error"
                ],
                "properties": {
                  "error": {
                    "const": "invalid_history_query"
                  }
                },
                "additionalProperties": false
              }
            ]
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "get_run_diagnostics",
          "title": "Get StewAI Run Diagnostics",
          "description": "Read settled billing diagnostics for one owned run.",
          "inputSchema": {
            "type": "object",
            "required": [
              "run_id"
            ],
            "properties": {
              "run_id": {
                "type": "string",
                "pattern": "^[0-9A-Za-z]{26}$",
                "maxLength": 26,
                "minLength": 26
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "oneOf": [
              {
                "type": "object",
                "required": [
                  "view",
                  "run_id",
                  "billing",
                  "receipt",
                  "basis"
                ],
                "properties": {
                  "view": {
                    "const": "diagnostics"
                  },
                  "basis": {
                    "const": "UI receipt estimate versus settled charge; not an admission ceiling. Null means unavailable."
                  },
                  "run_id": {
                    "type": "string",
                    "pattern": "^[0-9A-Za-z]{26}$",
                    "maxLength": 26,
                    "minLength": 26
                  },
                  "billing": {
                    "oneOf": [
                      {
                        "type": "object",
                        "required": [
                          "state",
                          "retry_after_seconds"
                        ],
                        "properties": {
                          "state": {
                            "const": "pending"
                          },
                          "retry_after_seconds": {
                            "const": 2
                          }
                        },
                        "additionalProperties": false
                      },
                      {
                        "type": "object",
                        "required": [
                          "state"
                        ],
                        "properties": {
                          "state": {
                            "const": "unavailable"
                          }
                        },
                        "additionalProperties": false
                      },
                      {
                        "type": "object",
                        "required": [
                          "state",
                          "charged_credits"
                        ],
                        "properties": {
                          "state": {
                            "const": "settled"
                          },
                          "charged_credits": {
                            "type": "string",
                            "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                            "maxLength": 64
                          }
                        },
                        "additionalProperties": false
                      },
                      {
                        "type": "object",
                        "required": [
                          "state",
                          "charged_credits",
                          "available_credits",
                          "balance_as_of"
                        ],
                        "properties": {
                          "state": {
                            "const": "settled"
                          },
                          "balance_as_of": {
                            "type": "string",
                            "format": "date-time",
                            "maxLength": 64
                          },
                          "charged_credits": {
                            "type": "string",
                            "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                            "maxLength": 64
                          },
                          "available_credits": {
                            "type": "string",
                            "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                            "maxLength": 64
                          }
                        },
                        "additionalProperties": false
                      }
                    ]
                  },
                  "receipt": {
                    "type": "object",
                    "required": [
                      "estimated_credits",
                      "charged_credits",
                      "variance_pct"
                    ],
                    "properties": {
                      "variance_pct": {
                        "type": [
                          "number",
                          "null"
                        ]
                      },
                      "charged_credits": {
                        "type": [
                          "number",
                          "null"
                        ]
                      },
                      "estimated_credits": {
                        "type": [
                          "number",
                          "null"
                        ]
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "object",
                "required": [
                  "error"
                ],
                "properties": {
                  "error": {
                    "const": "invalid_history_query"
                  }
                },
                "additionalProperties": false
              }
            ]
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "get_run_step",
          "title": "Get a StewAI Run Step",
          "description": "Read one sanitized full step result from an owned run by exact step identifier.",
          "inputSchema": {
            "type": "object",
            "required": [
              "run_id",
              "step_id"
            ],
            "properties": {
              "run_id": {
                "type": "string",
                "pattern": "^[0-9A-Za-z]{26}$",
                "maxLength": 26,
                "minLength": 26
              },
              "step_id": {
                "type": "string",
                "maxLength": 128,
                "minLength": 1
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "oneOf": [
              {
                "type": "object",
                "required": [
                  "outcome",
                  "run_id",
                  "run_url",
                  "status",
                  "trace_visibility",
                  "step"
                ],
                "properties": {
                  "step": {
                    "type": "object",
                    "required": [
                      "step_id",
                      "title",
                      "kind",
                      "status",
                      "depends_on",
                      "parameters",
                      "rendered_input",
                      "input_source",
                      "result",
                      "redaction_reasons"
                    ],
                    "properties": {
                      "kind": {
                        "type": "string",
                        "maxLength": 32
                      },
                      "title": {
                        "type": "string",
                        "maxLength": 500
                      },
                      "result": {
                        "type": "object"
                      },
                      "status": {
                        "type": "string",
                        "maxLength": 32
                      },
                      "step_id": {
                        "type": "string",
                        "maxLength": 128
                      },
                      "depends_on": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "maxLength": 128
                        },
                        "maxItems": 1000
                      },
                      "parameters": {
                        "type": "object"
                      },
                      "diagnostics": {
                        "type": "object",
                        "required": [
                          "duration_ms",
                          "input_tokens",
                          "output_tokens"
                        ],
                        "properties": {
                          "duration_ms": {
                            "type": [
                              "integer",
                              "null"
                            ],
                            "minimum": 0
                          },
                          "input_tokens": {
                            "type": [
                              "integer",
                              "null"
                            ],
                            "minimum": 0
                          },
                          "output_tokens": {
                            "type": [
                              "integer",
                              "null"
                            ],
                            "minimum": 0
                          }
                        },
                        "additionalProperties": false
                      },
                      "input_source": {
                        "enum": [
                          "rendered",
                          "configured",
                          "unavailable"
                        ]
                      },
                      "rendered_input": {
                        "oneOf": [
                          {
                            "type": "string",
                            "maxLength": 1048576
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "diagnostic_notes": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "required": [
                            "code",
                            "meaning"
                          ],
                          "properties": {
                            "code": {
                              "type": "string",
                              "maxLength": 64
                            },
                            "meaning": {
                              "type": "string",
                              "maxLength": 200
                            }
                          },
                          "additionalProperties": false
                        },
                        "maxItems": 5
                      },
                      "redaction_reasons": {
                        "type": "array",
                        "items": {
                          "enum": [
                            "sensitive_input",
                            "opaque_recipe"
                          ]
                        },
                        "maxItems": 2,
                        "uniqueItems": true
                      }
                    },
                    "additionalProperties": false
                  },
                  "run_id": {
                    "type": "string",
                    "pattern": "^[0-9A-Za-z]{26}$",
                    "maxLength": 26,
                    "minLength": 26
                  },
                  "status": {
                    "enum": [
                      "queued",
                      "running",
                      "done",
                      "failed",
                      "cancelled",
                      "blocked"
                    ]
                  },
                  "outcome": {
                    "const": "step"
                  },
                  "run_url": {
                    "type": "string",
                    "format": "uri",
                    "maxLength": 2048,
                    "description": "Clickable StewAI page for this run."
                  },
                  "observed_at": {
                    "type": "string",
                    "format": "date-time",
                    "maxLength": 64
                  },
                  "provisional": {
                    "type": "boolean",
                    "description": "True while the run is not finished: step statuses and results can still change. Unfinished steps show a pending result."
                  },
                  "trace_visibility": {
                    "enum": [
                      "full",
                      "opaque"
                    ]
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "object",
                "required": [
                  "outcome",
                  "run_id",
                  "run_url",
                  "step_id",
                  "next_cursor"
                ],
                "properties": {
                  "run_id": {
                    "type": "string",
                    "pattern": "^[0-9A-Za-z]{26}$",
                    "maxLength": 26,
                    "minLength": 26
                  },
                  "outcome": {
                    "const": "step_too_large"
                  },
                  "run_url": {
                    "type": "string",
                    "format": "uri",
                    "maxLength": 2048,
                    "description": "Clickable StewAI page for this run."
                  },
                  "step_id": {
                    "type": "string",
                    "maxLength": 128
                  },
                  "next_cursor": {
                    "oneOf": [
                      {
                        "type": "string",
                        "pattern": "^o:(?:0|[1-9][0-9]*)$",
                        "maxLength": 8
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "object",
                "required": [
                  "outcome",
                  "run_id",
                  "run_url",
                  "step_id",
                  "next_cursor",
                  "chunk_ref"
                ],
                "properties": {
                  "run_id": {
                    "type": "string",
                    "pattern": "^[0-9A-Za-z]{26}$",
                    "maxLength": 26,
                    "minLength": 26
                  },
                  "outcome": {
                    "const": "step_too_large"
                  },
                  "run_url": {
                    "type": "string",
                    "format": "uri",
                    "maxLength": 2048,
                    "description": "Clickable StewAI page for this run."
                  },
                  "step_id": {
                    "type": "string",
                    "maxLength": 128
                  },
                  "chunk_ref": {
                    "type": "string",
                    "maxLength": 2048,
                    "minLength": 1
                  },
                  "next_cursor": {
                    "oneOf": [
                      {
                        "type": "string",
                        "pattern": "^o:(?:0|[1-9][0-9]*)$",
                        "maxLength": 8
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "object",
                "required": [
                  "error"
                ],
                "properties": {
                  "error": {
                    "const": "run_not_found"
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "object",
                "required": [
                  "error",
                  "field",
                  "hint"
                ],
                "properties": {
                  "hint": {
                    "type": "string",
                    "maxLength": 240
                  },
                  "error": {
                    "const": "invalid_params"
                  },
                  "field": {
                    "type": "string",
                    "maxLength": 64
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "object",
                "required": [
                  "error"
                ],
                "properties": {
                  "error": {
                    "const": "step_not_found"
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "object",
                "required": [
                  "error"
                ],
                "properties": {
                  "error": {
                    "const": "result_unavailable"
                  }
                },
                "additionalProperties": false
              }
            ]
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "get_run_step_chunk",
          "title": "Get a StewAI Run Step Chunk",
          "description": "Read one signed continuation chunk for an oversized run step result.",
          "inputSchema": {
            "type": "object",
            "required": [
              "run_id",
              "chunk_ref"
            ],
            "properties": {
              "run_id": {
                "type": "string",
                "pattern": "^[0-9A-Za-z]{26}$",
                "maxLength": 26,
                "minLength": 26
              },
              "chunk_ref": {
                "type": "string",
                "maxLength": 2048,
                "minLength": 1
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "oneOf": [
              {
                "type": "object",
                "required": [
                  "outcome",
                  "run_id",
                  "run_url",
                  "step_id",
                  "encoding",
                  "offset",
                  "chunk",
                  "chunk_utf8_bytes",
                  "total_utf8_bytes",
                  "next_chunk_ref"
                ],
                "properties": {
                  "chunk": {
                    "type": "string",
                    "maxLength": 1048576
                  },
                  "offset": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "run_id": {
                    "type": "string",
                    "pattern": "^[0-9A-Za-z]{26}$",
                    "maxLength": 26,
                    "minLength": 26
                  },
                  "outcome": {
                    "const": "step_chunk"
                  },
                  "run_url": {
                    "type": "string",
                    "format": "uri",
                    "maxLength": 2048,
                    "description": "Clickable StewAI page for this run."
                  },
                  "step_id": {
                    "type": "string",
                    "maxLength": 128
                  },
                  "encoding": {
                    "const": "json"
                  },
                  "next_chunk_ref": {
                    "oneOf": [
                      {
                        "type": "string",
                        "maxLength": 2048,
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "chunk_utf8_bytes": {
                    "type": "integer",
                    "minimum": 1
                  },
                  "total_utf8_bytes": {
                    "type": "integer",
                    "minimum": 1
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "object",
                "required": [
                  "error"
                ],
                "properties": {
                  "error": {
                    "const": "run_not_found"
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "object",
                "required": [
                  "error",
                  "field",
                  "hint"
                ],
                "properties": {
                  "hint": {
                    "type": "string",
                    "maxLength": 240
                  },
                  "error": {
                    "const": "invalid_params"
                  },
                  "field": {
                    "type": "string",
                    "maxLength": 64
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "object",
                "required": [
                  "error"
                ],
                "properties": {
                  "error": {
                    "const": "step_not_found"
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "object",
                "required": [
                  "error"
                ],
                "properties": {
                  "error": {
                    "const": "result_unavailable"
                  }
                },
                "additionalProperties": false
              }
            ]
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "list_recipe_activity_assertions",
          "title": "List Recipe Activity Assertions",
          "description": "Page through assertion results for one recipe acceptance activity.",
          "inputSchema": {
            "type": "object",
            "required": [
              "activity_ref"
            ],
            "properties": {
              "cursor": {
                "type": "string",
                "maxLength": 512
              },
              "activity_ref": {
                "type": "string",
                "maxLength": 4096,
                "minLength": 1
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "oneOf": [
              {
                "type": "object",
                "required": [
                  "activity_ref",
                  "kind",
                  "state",
                  "revision",
                  "terminal",
                  "section",
                  "cases",
                  "next_cursor"
                ],
                "properties": {
                  "kind": {
                    "enum": [
                      "review",
                      "acceptance_batch",
                      "acceptance_case"
                    ]
                  },
                  "cases": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "case_id",
                        "state",
                        "assertions"
                      ],
                      "properties": {
                        "state": {
                          "enum": [
                            "queued",
                            "running",
                            "blocked",
                            "done",
                            "failed",
                            "cancelled"
                          ]
                        },
                        "case_id": {
                          "type": "string",
                          "maxLength": 64
                        },
                        "assertions": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "required": [
                              "assertion_id",
                              "passed",
                              "code"
                            ],
                            "properties": {
                              "code": {
                                "type": "string",
                                "maxLength": 64
                              },
                              "passed": {
                                "type": "boolean"
                              },
                              "diagnostic": {
                                "type": "object",
                                "required": [
                                  "availability"
                                ],
                                "properties": {
                                  "path": {
                                    "type": "string",
                                    "maxLength": 512
                                  },
                                  "type": {
                                    "type": "string",
                                    "maxLength": 64
                                  },
                                  "operator": {
                                    "type": "string",
                                    "maxLength": 64
                                  },
                                  "truncated": {
                                    "type": "boolean"
                                  },
                                  "availability": {
                                    "enum": [
                                      "available",
                                      "unavailable"
                                    ]
                                  },
                                  "actual_missing": {
                                    "type": "boolean"
                                  },
                                  "actual_preview": {
                                    "type": "string",
                                    "maxLength": 256
                                  },
                                  "expected_preview": {
                                    "type": "string",
                                    "maxLength": 256
                                  },
                                  "paired_actual_missing": {
                                    "type": "boolean"
                                  },
                                  "paired_actual_preview": {
                                    "type": "string",
                                    "maxLength": 256
                                  }
                                },
                                "additionalProperties": false
                              },
                              "assertion_id": {
                                "type": "string",
                                "maxLength": 64
                              }
                            },
                            "additionalProperties": false
                          },
                          "maxItems": 50
                        },
                        "error_code": {
                          "type": "string",
                          "maxLength": 64
                        },
                        "execution_diagnostic": {
                          "type": "object",
                          "required": [
                            "step_id",
                            "node_type",
                            "code",
                            "field_path",
                            "message",
                            "fix_hint"
                          ],
                          "properties": {
                            "code": {
                              "type": "string",
                              "maxLength": 64
                            },
                            "message": {
                              "type": "string",
                              "maxLength": 200
                            },
                            "step_id": {
                              "type": "string",
                              "maxLength": 128
                            },
                            "evidence": {
                              "type": "object",
                              "required": [
                                "source"
                              ],
                              "properties": {
                                "source": {
                                  "enum": [
                                    "structured_executor",
                                    "legacy_executor_message"
                                  ]
                                },
                                "attempt_count": {
                                  "type": "integer",
                                  "maximum": 100,
                                  "minimum": 1
                                },
                                "finish_reason": {
                                  "enum": [
                                    "max_output_tokens",
                                    "max_tokens",
                                    "length",
                                    "content_filter",
                                    "refusal",
                                    "unknown"
                                  ]
                                },
                                "reasoning_tokens": {
                                  "type": "integer",
                                  "maximum": 10000000,
                                  "minimum": 0
                                },
                                "max_output_tokens": {
                                  "type": "integer",
                                  "maximum": 10000000,
                                  "minimum": 0
                                },
                                "total_output_tokens": {
                                  "type": "integer",
                                  "maximum": 10000000,
                                  "minimum": 0
                                },
                                "visible_output_tokens": {
                                  "type": "integer",
                                  "maximum": 10000000,
                                  "minimum": 0
                                }
                              },
                              "additionalProperties": false
                            },
                            "fix_hint": {
                              "type": "string",
                              "maxLength": 300
                            },
                            "node_type": {
                              "type": "string",
                              "maxLength": 64
                            },
                            "field_path": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "maxLength": 64
                              },
                              "maxItems": 4
                            }
                          },
                          "additionalProperties": false
                        }
                      },
                      "additionalProperties": false
                    },
                    "maxItems": 20
                  },
                  "retry": {
                    "type": "object",
                    "required": [
                      "state",
                      "attempt",
                      "maximum_attempts",
                      "retry_at",
                      "reason"
                    ],
                    "properties": {
                      "state": {
                        "enum": [
                          "scheduled",
                          "retrying"
                        ]
                      },
                      "reason": {
                        "enum": [
                          "review_processing_interrupted",
                          "provider_result_processing_retry",
                          "settlement_retry"
                        ]
                      },
                      "attempt": {
                        "type": "integer",
                        "maximum": 3,
                        "minimum": 1
                      },
                      "retry_at": {
                        "type": "string",
                        "format": "date-time",
                        "maxLength": 64
                      },
                      "maximum_attempts": {
                        "const": 3
                      }
                    },
                    "additionalProperties": false
                  },
                  "state": {
                    "enum": [
                      "queued",
                      "running",
                      "blocked",
                      "done",
                      "failed",
                      "cancelled"
                    ]
                  },
                  "section": {
                    "const": "assertions"
                  },
                  "revision": {
                    "type": "string",
                    "pattern": "^[0-9a-f]{64}$",
                    "maxLength": 64
                  },
                  "terminal": {
                    "type": "boolean"
                  },
                  "error_code": {
                    "type": "string",
                    "maxLength": 64
                  },
                  "truncation": {
                    "type": "object",
                    "required": [
                      "applied",
                      "reason",
                      "omitted_items",
                      "truncated_values",
                      "original_result_bytes"
                    ],
                    "properties": {
                      "reason": {
                        "const": "response_size_limit"
                      },
                      "applied": {
                        "const": true
                      },
                      "omitted_items": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "truncated_values": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "original_result_bytes": {
                        "type": "integer",
                        "minimum": 1
                      }
                    },
                    "additionalProperties": false
                  },
                  "next_cursor": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 32
                  },
                  "activity_ref": {
                    "type": "string",
                    "maxLength": 4096,
                    "minLength": 1
                  },
                  "execution_diagnostic": {
                    "type": "object",
                    "required": [
                      "step_id",
                      "node_type",
                      "code",
                      "field_path",
                      "message",
                      "fix_hint"
                    ],
                    "properties": {
                      "code": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "message": {
                        "type": "string",
                        "maxLength": 200
                      },
                      "step_id": {
                        "type": "string",
                        "maxLength": 128
                      },
                      "evidence": {
                        "type": "object",
                        "required": [
                          "source"
                        ],
                        "properties": {
                          "source": {
                            "enum": [
                              "structured_executor",
                              "legacy_executor_message"
                            ]
                          },
                          "attempt_count": {
                            "type": "integer",
                            "maximum": 100,
                            "minimum": 1
                          },
                          "finish_reason": {
                            "enum": [
                              "max_output_tokens",
                              "max_tokens",
                              "length",
                              "content_filter",
                              "refusal",
                              "unknown"
                            ]
                          },
                          "reasoning_tokens": {
                            "type": "integer",
                            "maximum": 10000000,
                            "minimum": 0
                          },
                          "max_output_tokens": {
                            "type": "integer",
                            "maximum": 10000000,
                            "minimum": 0
                          },
                          "total_output_tokens": {
                            "type": "integer",
                            "maximum": 10000000,
                            "minimum": 0
                          },
                          "visible_output_tokens": {
                            "type": "integer",
                            "maximum": 10000000,
                            "minimum": 0
                          }
                        },
                        "additionalProperties": false
                      },
                      "fix_hint": {
                        "type": "string",
                        "maxLength": 300
                      },
                      "node_type": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "field_path": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "maxLength": 64
                        },
                        "maxItems": 4
                      }
                    },
                    "additionalProperties": false
                  }
                }
              },
              {
                "type": "object",
                "required": [
                  "error"
                ],
                "properties": {
                  "hint": {
                    "type": "string",
                    "maxLength": 240
                  },
                  "error": {
                    "enum": [
                      "not_found",
                      "invalid_reference",
                      "invalid_params",
                      "revision_conflict",
                      "idempotency_conflict",
                      "document_too_large",
                      "payload_too_large",
                      "chunk_sequence_invalid",
                      "chunk_digest_mismatch",
                      "chunk_expired",
                      "invalid_cursor",
                      "suite_duplicate_case_id",
                      "suite_unresolved_pair",
                      "suite_schema_invalid",
                      "suite_missing_categories",
                      "suite_weak_normal_oracle",
                      "suite_too_large",
                      "unknown_case_id",
                      "duplicate_case_id",
                      "incomplete_case_selection",
                      "unsupported_node_kind",
                      "research_required",
                      "review_required",
                      "acceptance_required",
                      "qualification_stale",
                      "budget_not_approved",
                      "budget_exhausted",
                      "budget_superseded",
                      "budget_capability_consumed",
                      "budget_capability_expired",
                      "acceptance_case_cost_exceeded",
                      "authoring_budget_exceeded",
                      "authoring_grant_not_active",
                      "insufficient_credits",
                      "billing_anomaly",
                      "activity_stalled",
                      "activity_in_flight",
                      "handoff_approval_required",
                      "handoff_expired",
                      "handoff_not_pending",
                      "handoff_stale",
                      "handoff_disclosure_incomplete",
                      "feature_unavailable",
                      "resource_unavailable",
                      "resource_binding_required",
                      "resource_requirement_not_found",
                      "activity_not_cancellable",
                      "quota_exceeded",
                      "rate_limited",
                      "already_published",
                      "safety_locked",
                      "build_terminal",
                      "commit_capability_expired",
                      "account_unavailable",
                      "limit_unavailable"
                    ]
                  },
                  "field": {
                    "type": "string",
                    "maxLength": 64
                  },
                  "issue": {
                    "type": "object",
                    "required": [
                      "code",
                      "path"
                    ],
                    "properties": {
                      "code": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "path": {
                        "type": "string",
                        "maxLength": 512
                      },
                      "type": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "field": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "operator": {
                        "type": "string",
                        "maxLength": 64
                      }
                    },
                    "additionalProperties": false
                  },
                  "case_id": {
                    "type": "string",
                    "maxLength": 64,
                    "minLength": 1
                  },
                  "truncation": {
                    "type": "object",
                    "required": [
                      "applied",
                      "reason",
                      "omitted_items",
                      "truncated_values",
                      "original_result_bytes"
                    ],
                    "properties": {
                      "reason": {
                        "const": "response_size_limit"
                      },
                      "applied": {
                        "const": true
                      },
                      "omitted_items": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "truncated_values": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "original_result_bytes": {
                        "type": "integer",
                        "minimum": 1
                      }
                    },
                    "additionalProperties": false
                  },
                  "repair_hint": {
                    "type": "string",
                    "maxLength": 500
                  },
                  "review_cost": {
                    "type": "object",
                    "required": [
                      "estimated_credits",
                      "limit_credits",
                      "provider",
                      "model",
                      "basis",
                      "input_token_bound",
                      "output_token_cap",
                      "prompt_bytes",
                      "section_bytes"
                    ],
                    "properties": {
                      "basis": {
                        "const": "utf8_byte_upper_bound"
                      },
                      "model": {
                        "type": "string",
                        "maxLength": 200
                      },
                      "provider": {
                        "type": "string",
                        "maxLength": 200
                      },
                      "prompt_bytes": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "limit_credits": {
                        "type": "string",
                        "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                        "maxLength": 64
                      },
                      "section_bytes": {
                        "type": "object",
                        "required": [],
                        "properties": {
                          "spec": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "intent": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "input_contract": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "output_contract": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "acceptance_suite": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "research_evidence": {
                            "type": "integer",
                            "minimum": 0
                          }
                        },
                        "additionalProperties": false
                      },
                      "output_token_cap": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "estimated_credits": {
                        "type": "string",
                        "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                        "maxLength": 64
                      },
                      "input_token_bound": {
                        "type": "integer",
                        "minimum": 0
                      }
                    },
                    "additionalProperties": false
                  },
                  "limit_credits": {
                    "type": "string",
                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                    "maxLength": 64
                  },
                  "estimated_credits": {
                    "type": "string",
                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                    "maxLength": 64
                  },
                  "missing_categories": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 64
                    },
                    "maxItems": 10,
                    "uniqueItems": true
                  },
                  "retry_after_seconds": {
                    "type": "integer",
                    "maximum": 86400,
                    "minimum": 1
                  }
                },
                "additionalProperties": false
              }
            ]
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "list_recipe_activity_nodes",
          "title": "List Recipe Activity Nodes",
          "description": "Page through node-level results for one recipe build activity.",
          "inputSchema": {
            "type": "object",
            "required": [
              "activity_ref"
            ],
            "properties": {
              "cursor": {
                "type": "string",
                "maxLength": 512
              },
              "activity_ref": {
                "type": "string",
                "maxLength": 4096,
                "minLength": 1
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "oneOf": [
              {
                "type": "object",
                "required": [
                  "activity_ref",
                  "kind",
                  "state",
                  "revision",
                  "terminal",
                  "section",
                  "nodes"
                ],
                "properties": {
                  "kind": {
                    "enum": [
                      "review",
                      "acceptance_batch",
                      "acceptance_case"
                    ]
                  },
                  "nodes": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "case_id",
                        "state",
                        "billing"
                      ],
                      "properties": {
                        "state": {
                          "enum": [
                            "queued",
                            "running",
                            "blocked",
                            "done",
                            "failed",
                            "cancelled"
                          ]
                        },
                        "billing": {
                          "oneOf": [
                            {
                              "type": "object",
                              "required": [
                                "state",
                                "retry_after_seconds"
                              ],
                              "properties": {
                                "state": {
                                  "const": "pending"
                                },
                                "retry_after_seconds": {
                                  "const": 2
                                }
                              },
                              "additionalProperties": false
                            },
                            {
                              "type": "object",
                              "required": [
                                "state"
                              ],
                              "properties": {
                                "state": {
                                  "const": "unavailable"
                                }
                              },
                              "additionalProperties": false
                            },
                            {
                              "type": "object",
                              "required": [
                                "state",
                                "settled_credits",
                                "remaining_budget"
                              ],
                              "properties": {
                                "state": {
                                  "const": "settled"
                                },
                                "settled_credits": {
                                  "type": "string",
                                  "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                                  "maxLength": 64
                                },
                                "remaining_budget": {
                                  "type": "string",
                                  "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                                  "maxLength": 64
                                },
                                "charge_disposition": {
                                  "const": "platform_absorbed"
                                },
                                "provider_cost_status": {
                                  "const": "unknown"
                                }
                              },
                              "additionalProperties": false
                            }
                          ]
                        },
                        "case_id": {
                          "type": "string",
                          "maxLength": 64
                        },
                        "error_code": {
                          "type": "string",
                          "maxLength": 64
                        },
                        "execution_diagnostic": {
                          "type": "object",
                          "required": [
                            "step_id",
                            "node_type",
                            "code",
                            "field_path",
                            "message",
                            "fix_hint"
                          ],
                          "properties": {
                            "code": {
                              "type": "string",
                              "maxLength": 64
                            },
                            "message": {
                              "type": "string",
                              "maxLength": 200
                            },
                            "step_id": {
                              "type": "string",
                              "maxLength": 128
                            },
                            "evidence": {
                              "type": "object",
                              "required": [
                                "source"
                              ],
                              "properties": {
                                "source": {
                                  "enum": [
                                    "structured_executor",
                                    "legacy_executor_message"
                                  ]
                                },
                                "attempt_count": {
                                  "type": "integer",
                                  "maximum": 100,
                                  "minimum": 1
                                },
                                "finish_reason": {
                                  "enum": [
                                    "max_output_tokens",
                                    "max_tokens",
                                    "length",
                                    "content_filter",
                                    "refusal",
                                    "unknown"
                                  ]
                                },
                                "reasoning_tokens": {
                                  "type": "integer",
                                  "maximum": 10000000,
                                  "minimum": 0
                                },
                                "max_output_tokens": {
                                  "type": "integer",
                                  "maximum": 10000000,
                                  "minimum": 0
                                },
                                "total_output_tokens": {
                                  "type": "integer",
                                  "maximum": 10000000,
                                  "minimum": 0
                                },
                                "visible_output_tokens": {
                                  "type": "integer",
                                  "maximum": 10000000,
                                  "minimum": 0
                                }
                              },
                              "additionalProperties": false
                            },
                            "fix_hint": {
                              "type": "string",
                              "maxLength": 300
                            },
                            "node_type": {
                              "type": "string",
                              "maxLength": 64
                            },
                            "field_path": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "maxLength": 64
                              },
                              "maxItems": 4
                            }
                          },
                          "additionalProperties": false
                        }
                      },
                      "additionalProperties": false
                    },
                    "maxItems": 50
                  },
                  "retry": {
                    "type": "object",
                    "required": [
                      "state",
                      "attempt",
                      "maximum_attempts",
                      "retry_at",
                      "reason"
                    ],
                    "properties": {
                      "state": {
                        "enum": [
                          "scheduled",
                          "retrying"
                        ]
                      },
                      "reason": {
                        "enum": [
                          "review_processing_interrupted",
                          "provider_result_processing_retry",
                          "settlement_retry"
                        ]
                      },
                      "attempt": {
                        "type": "integer",
                        "maximum": 3,
                        "minimum": 1
                      },
                      "retry_at": {
                        "type": "string",
                        "format": "date-time",
                        "maxLength": 64
                      },
                      "maximum_attempts": {
                        "const": 3
                      }
                    },
                    "additionalProperties": false
                  },
                  "state": {
                    "enum": [
                      "queued",
                      "running",
                      "blocked",
                      "done",
                      "failed",
                      "cancelled"
                    ]
                  },
                  "section": {
                    "const": "nodes"
                  },
                  "revision": {
                    "type": "string",
                    "pattern": "^[0-9a-f]{64}$",
                    "maxLength": 64
                  },
                  "terminal": {
                    "type": "boolean"
                  },
                  "error_code": {
                    "type": "string",
                    "maxLength": 64
                  },
                  "truncation": {
                    "type": "object",
                    "required": [
                      "applied",
                      "reason",
                      "omitted_items",
                      "truncated_values",
                      "original_result_bytes"
                    ],
                    "properties": {
                      "reason": {
                        "const": "response_size_limit"
                      },
                      "applied": {
                        "const": true
                      },
                      "omitted_items": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "truncated_values": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "original_result_bytes": {
                        "type": "integer",
                        "minimum": 1
                      }
                    },
                    "additionalProperties": false
                  },
                  "activity_ref": {
                    "type": "string",
                    "maxLength": 4096,
                    "minLength": 1
                  },
                  "execution_diagnostic": {
                    "type": "object",
                    "required": [
                      "step_id",
                      "node_type",
                      "code",
                      "field_path",
                      "message",
                      "fix_hint"
                    ],
                    "properties": {
                      "code": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "message": {
                        "type": "string",
                        "maxLength": 200
                      },
                      "step_id": {
                        "type": "string",
                        "maxLength": 128
                      },
                      "evidence": {
                        "type": "object",
                        "required": [
                          "source"
                        ],
                        "properties": {
                          "source": {
                            "enum": [
                              "structured_executor",
                              "legacy_executor_message"
                            ]
                          },
                          "attempt_count": {
                            "type": "integer",
                            "maximum": 100,
                            "minimum": 1
                          },
                          "finish_reason": {
                            "enum": [
                              "max_output_tokens",
                              "max_tokens",
                              "length",
                              "content_filter",
                              "refusal",
                              "unknown"
                            ]
                          },
                          "reasoning_tokens": {
                            "type": "integer",
                            "maximum": 10000000,
                            "minimum": 0
                          },
                          "max_output_tokens": {
                            "type": "integer",
                            "maximum": 10000000,
                            "minimum": 0
                          },
                          "total_output_tokens": {
                            "type": "integer",
                            "maximum": 10000000,
                            "minimum": 0
                          },
                          "visible_output_tokens": {
                            "type": "integer",
                            "maximum": 10000000,
                            "minimum": 0
                          }
                        },
                        "additionalProperties": false
                      },
                      "fix_hint": {
                        "type": "string",
                        "maxLength": 300
                      },
                      "node_type": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "field_path": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "maxLength": 64
                        },
                        "maxItems": 4
                      }
                    },
                    "additionalProperties": false
                  }
                }
              },
              {
                "type": "object",
                "required": [
                  "error"
                ],
                "properties": {
                  "hint": {
                    "type": "string",
                    "maxLength": 240
                  },
                  "error": {
                    "enum": [
                      "not_found",
                      "invalid_reference",
                      "invalid_params",
                      "revision_conflict",
                      "idempotency_conflict",
                      "document_too_large",
                      "payload_too_large",
                      "chunk_sequence_invalid",
                      "chunk_digest_mismatch",
                      "chunk_expired",
                      "invalid_cursor",
                      "suite_duplicate_case_id",
                      "suite_unresolved_pair",
                      "suite_schema_invalid",
                      "suite_missing_categories",
                      "suite_weak_normal_oracle",
                      "suite_too_large",
                      "unknown_case_id",
                      "duplicate_case_id",
                      "incomplete_case_selection",
                      "unsupported_node_kind",
                      "research_required",
                      "review_required",
                      "acceptance_required",
                      "qualification_stale",
                      "budget_not_approved",
                      "budget_exhausted",
                      "budget_superseded",
                      "budget_capability_consumed",
                      "budget_capability_expired",
                      "acceptance_case_cost_exceeded",
                      "authoring_budget_exceeded",
                      "authoring_grant_not_active",
                      "insufficient_credits",
                      "billing_anomaly",
                      "activity_stalled",
                      "activity_in_flight",
                      "handoff_approval_required",
                      "handoff_expired",
                      "handoff_not_pending",
                      "handoff_stale",
                      "handoff_disclosure_incomplete",
                      "feature_unavailable",
                      "resource_unavailable",
                      "resource_binding_required",
                      "resource_requirement_not_found",
                      "activity_not_cancellable",
                      "quota_exceeded",
                      "rate_limited",
                      "already_published",
                      "safety_locked",
                      "build_terminal",
                      "commit_capability_expired",
                      "account_unavailable",
                      "limit_unavailable"
                    ]
                  },
                  "field": {
                    "type": "string",
                    "maxLength": 64
                  },
                  "issue": {
                    "type": "object",
                    "required": [
                      "code",
                      "path"
                    ],
                    "properties": {
                      "code": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "path": {
                        "type": "string",
                        "maxLength": 512
                      },
                      "type": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "field": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "operator": {
                        "type": "string",
                        "maxLength": 64
                      }
                    },
                    "additionalProperties": false
                  },
                  "case_id": {
                    "type": "string",
                    "maxLength": 64,
                    "minLength": 1
                  },
                  "truncation": {
                    "type": "object",
                    "required": [
                      "applied",
                      "reason",
                      "omitted_items",
                      "truncated_values",
                      "original_result_bytes"
                    ],
                    "properties": {
                      "reason": {
                        "const": "response_size_limit"
                      },
                      "applied": {
                        "const": true
                      },
                      "omitted_items": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "truncated_values": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "original_result_bytes": {
                        "type": "integer",
                        "minimum": 1
                      }
                    },
                    "additionalProperties": false
                  },
                  "repair_hint": {
                    "type": "string",
                    "maxLength": 500
                  },
                  "review_cost": {
                    "type": "object",
                    "required": [
                      "estimated_credits",
                      "limit_credits",
                      "provider",
                      "model",
                      "basis",
                      "input_token_bound",
                      "output_token_cap",
                      "prompt_bytes",
                      "section_bytes"
                    ],
                    "properties": {
                      "basis": {
                        "const": "utf8_byte_upper_bound"
                      },
                      "model": {
                        "type": "string",
                        "maxLength": 200
                      },
                      "provider": {
                        "type": "string",
                        "maxLength": 200
                      },
                      "prompt_bytes": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "limit_credits": {
                        "type": "string",
                        "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                        "maxLength": 64
                      },
                      "section_bytes": {
                        "type": "object",
                        "required": [],
                        "properties": {
                          "spec": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "intent": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "input_contract": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "output_contract": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "acceptance_suite": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "research_evidence": {
                            "type": "integer",
                            "minimum": 0
                          }
                        },
                        "additionalProperties": false
                      },
                      "output_token_cap": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "estimated_credits": {
                        "type": "string",
                        "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                        "maxLength": 64
                      },
                      "input_token_bound": {
                        "type": "integer",
                        "minimum": 0
                      }
                    },
                    "additionalProperties": false
                  },
                  "limit_credits": {
                    "type": "string",
                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                    "maxLength": 64
                  },
                  "estimated_credits": {
                    "type": "string",
                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                    "maxLength": 64
                  },
                  "missing_categories": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 64
                    },
                    "maxItems": 10,
                    "uniqueItems": true
                  },
                  "retry_after_seconds": {
                    "type": "integer",
                    "maximum": 86400,
                    "minimum": 1
                  }
                },
                "additionalProperties": false
              }
            ]
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "list_recipe_build_activities",
          "title": "List Recipe Build Activities",
          "description": "List recent review and acceptance activities for one private build.",
          "inputSchema": {
            "type": "object",
            "required": [
              "build_ref"
            ],
            "properties": {
              "build_ref": {
                "type": "string",
                "maxLength": 4096,
                "minLength": 1
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "oneOf": [
              {
                "type": "object",
                "required": [
                  "view",
                  "data"
                ],
                "properties": {
                  "data": {
                    "type": "object",
                    "required": [
                      "build_ref",
                      "name",
                      "status",
                      "revision",
                      "qualification",
                      "archived_at",
                      "activities"
                    ],
                    "properties": {
                      "name": {
                        "type": "string",
                        "maxLength": 200,
                        "minLength": 1
                      },
                      "status": {
                        "enum": [
                          "draft",
                          "qualified",
                          "committed",
                          "abandoned"
                        ]
                      },
                      "revision": {
                        "type": "string",
                        "pattern": "^[0-9a-f]{64}$",
                        "maxLength": 64
                      },
                      "build_ref": {
                        "type": "string",
                        "maxLength": 4096,
                        "minLength": 1
                      },
                      "activities": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "required": [
                            "activity_ref",
                            "kind",
                            "state",
                            "revision",
                            "error_code",
                            "created_at"
                          ],
                          "properties": {
                            "kind": {
                              "enum": [
                                "review",
                                "acceptance_batch",
                                "acceptance_case"
                              ]
                            },
                            "state": {
                              "enum": [
                                "queued",
                                "running",
                                "blocked",
                                "done",
                                "failed",
                                "cancelled"
                              ]
                            },
                            "revision": {
                              "type": "string",
                              "pattern": "^[0-9a-f]{64}$",
                              "maxLength": 64
                            },
                            "created_at": {
                              "type": "string",
                              "format": "date-time",
                              "maxLength": 64
                            },
                            "error_code": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "maxLength": 64
                            },
                            "activity_ref": {
                              "type": "string",
                              "maxLength": 4096,
                              "minLength": 1
                            }
                          },
                          "additionalProperties": false
                        },
                        "maxItems": 25
                      },
                      "archived_at": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "format": "date-time",
                        "maxLength": 64
                      },
                      "qualification": {
                        "enum": [
                          "none",
                          "pending",
                          "qualified",
                          "invalidated"
                        ]
                      }
                    },
                    "additionalProperties": false
                  },
                  "view": {
                    "const": "activity"
                  },
                  "truncation": {
                    "type": "object",
                    "required": [
                      "applied",
                      "reason",
                      "omitted_items",
                      "truncated_values",
                      "original_result_bytes"
                    ],
                    "properties": {
                      "reason": {
                        "const": "response_size_limit"
                      },
                      "applied": {
                        "const": true
                      },
                      "omitted_items": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "truncated_values": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "original_result_bytes": {
                        "type": "integer",
                        "minimum": 1
                      }
                    },
                    "additionalProperties": false
                  }
                }
              },
              {
                "type": "object",
                "required": [
                  "error"
                ],
                "properties": {
                  "hint": {
                    "type": "string",
                    "maxLength": 240
                  },
                  "error": {
                    "enum": [
                      "not_found",
                      "invalid_reference",
                      "invalid_params",
                      "revision_conflict",
                      "idempotency_conflict",
                      "document_too_large",
                      "payload_too_large",
                      "chunk_sequence_invalid",
                      "chunk_digest_mismatch",
                      "chunk_expired",
                      "invalid_cursor",
                      "suite_duplicate_case_id",
                      "suite_unresolved_pair",
                      "suite_schema_invalid",
                      "suite_missing_categories",
                      "suite_weak_normal_oracle",
                      "suite_too_large",
                      "unknown_case_id",
                      "duplicate_case_id",
                      "incomplete_case_selection",
                      "unsupported_node_kind",
                      "research_required",
                      "review_required",
                      "acceptance_required",
                      "qualification_stale",
                      "budget_not_approved",
                      "budget_exhausted",
                      "budget_superseded",
                      "budget_capability_consumed",
                      "budget_capability_expired",
                      "acceptance_case_cost_exceeded",
                      "authoring_budget_exceeded",
                      "authoring_grant_not_active",
                      "insufficient_credits",
                      "billing_anomaly",
                      "activity_stalled",
                      "activity_in_flight",
                      "handoff_approval_required",
                      "handoff_expired",
                      "handoff_not_pending",
                      "handoff_stale",
                      "handoff_disclosure_incomplete",
                      "feature_unavailable",
                      "resource_unavailable",
                      "resource_binding_required",
                      "resource_requirement_not_found",
                      "activity_not_cancellable",
                      "quota_exceeded",
                      "rate_limited",
                      "already_published",
                      "safety_locked",
                      "build_terminal",
                      "commit_capability_expired",
                      "account_unavailable",
                      "limit_unavailable"
                    ]
                  },
                  "field": {
                    "type": "string",
                    "maxLength": 64
                  },
                  "issue": {
                    "type": "object",
                    "required": [
                      "code",
                      "path"
                    ],
                    "properties": {
                      "code": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "path": {
                        "type": "string",
                        "maxLength": 512
                      },
                      "type": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "field": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "operator": {
                        "type": "string",
                        "maxLength": 64
                      }
                    },
                    "additionalProperties": false
                  },
                  "case_id": {
                    "type": "string",
                    "maxLength": 64,
                    "minLength": 1
                  },
                  "truncation": {
                    "type": "object",
                    "required": [
                      "applied",
                      "reason",
                      "omitted_items",
                      "truncated_values",
                      "original_result_bytes"
                    ],
                    "properties": {
                      "reason": {
                        "const": "response_size_limit"
                      },
                      "applied": {
                        "const": true
                      },
                      "omitted_items": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "truncated_values": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "original_result_bytes": {
                        "type": "integer",
                        "minimum": 1
                      }
                    },
                    "additionalProperties": false
                  },
                  "repair_hint": {
                    "type": "string",
                    "maxLength": 500
                  },
                  "review_cost": {
                    "type": "object",
                    "required": [
                      "estimated_credits",
                      "limit_credits",
                      "provider",
                      "model",
                      "basis",
                      "input_token_bound",
                      "output_token_cap",
                      "prompt_bytes",
                      "section_bytes"
                    ],
                    "properties": {
                      "basis": {
                        "const": "utf8_byte_upper_bound"
                      },
                      "model": {
                        "type": "string",
                        "maxLength": 200
                      },
                      "provider": {
                        "type": "string",
                        "maxLength": 200
                      },
                      "prompt_bytes": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "limit_credits": {
                        "type": "string",
                        "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                        "maxLength": 64
                      },
                      "section_bytes": {
                        "type": "object",
                        "required": [],
                        "properties": {
                          "spec": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "intent": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "input_contract": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "output_contract": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "acceptance_suite": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "research_evidence": {
                            "type": "integer",
                            "minimum": 0
                          }
                        },
                        "additionalProperties": false
                      },
                      "output_token_cap": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "estimated_credits": {
                        "type": "string",
                        "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                        "maxLength": 64
                      },
                      "input_token_bound": {
                        "type": "integer",
                        "minimum": 0
                      }
                    },
                    "additionalProperties": false
                  },
                  "limit_credits": {
                    "type": "string",
                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                    "maxLength": 64
                  },
                  "estimated_credits": {
                    "type": "string",
                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                    "maxLength": 64
                  },
                  "missing_categories": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 64
                    },
                    "maxItems": 10,
                    "uniqueItems": true
                  },
                  "retry_after_seconds": {
                    "type": "integer",
                    "maximum": 86400,
                    "minimum": 1
                  }
                },
                "additionalProperties": false
              }
            ]
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "list_recipe_build_capabilities",
          "title": "List Recipe Build Capabilities",
          "description": "Page through the supported authoring capabilities for one private build.",
          "inputSchema": {
            "type": "object",
            "required": [
              "build_ref"
            ],
            "properties": {
              "limit": {
                "type": "integer",
                "maximum": 25,
                "minimum": 1
              },
              "cursor": {
                "type": "string",
                "maxLength": 512
              },
              "build_ref": {
                "type": "string",
                "maxLength": 4096,
                "minLength": 1
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "oneOf": [
              {
                "type": "object",
                "required": [
                  "view",
                  "data"
                ],
                "properties": {
                  "data": {
                    "type": "object",
                    "required": [
                      "build_ref",
                      "name",
                      "status",
                      "revision",
                      "qualification",
                      "archived_at",
                      "catalog_version",
                      "capabilities"
                    ],
                    "properties": {
                      "name": {
                        "type": "string",
                        "maxLength": 200,
                        "minLength": 1
                      },
                      "status": {
                        "enum": [
                          "draft",
                          "qualified",
                          "committed",
                          "abandoned"
                        ]
                      },
                      "revision": {
                        "type": "string",
                        "pattern": "^[0-9a-f]{64}$",
                        "maxLength": 64
                      },
                      "versions": {
                        "type": "object",
                        "required": [
                          "archetypes",
                          "capabilities",
                          "checks",
                          "guidance",
                          "models"
                        ],
                        "properties": {
                          "checks": {
                            "type": "string",
                            "maxLength": 64
                          },
                          "models": {
                            "type": "string",
                            "maxLength": 64
                          },
                          "guidance": {
                            "type": "string",
                            "maxLength": 64
                          },
                          "archetypes": {
                            "type": "string",
                            "maxLength": 64
                          },
                          "capabilities": {
                            "type": "string",
                            "maxLength": 64
                          }
                        },
                        "additionalProperties": false
                      },
                      "build_ref": {
                        "type": "string",
                        "maxLength": 4096,
                        "minLength": 1
                      },
                      "archived_at": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "format": "date-time",
                        "maxLength": 64
                      },
                      "next_cursor": {
                        "type": "string",
                        "maxLength": 512,
                        "minLength": 1
                      },
                      "capabilities": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "required": [
                            "node_type",
                            "draft_authoring_supported",
                            "automatic_acceptance_eligible",
                            "qualification_route",
                            "exposure",
                            "effect_class",
                            "user_handoff",
                            "acceptance_note",
                            "authoring_schema",
                            "required_fields",
                            "defaults",
                            "resource_selector_paths",
                            "minimal_example"
                          ],
                          "properties": {
                            "defaults": {
                              "type": "object",
                              "maxProperties": 32
                            },
                            "exposure": {
                              "enum": [
                                "primary",
                                "alias",
                                "backend_only"
                              ]
                            },
                            "node_type": {
                              "type": "string",
                              "maxLength": 64,
                              "minLength": 1
                            },
                            "effect_class": {
                              "enum": [
                                "none",
                                "provider_call",
                                "external_read",
                                "external_write",
                                "durable_write",
                                "wait",
                                "nested_recipe"
                              ]
                            },
                            "user_handoff": {
                              "enum": [
                                "none",
                                "budget_approval",
                                "side_effect_approval",
                                "resource_and_side_effect_approval",
                                "resource_or_oauth",
                                "oauth_or_platform_policy",
                                "runtime_wait",
                                "recipe_selection",
                                "resource_selection"
                              ]
                            },
                            "acceptance_note": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "maxLength": 240
                            },
                            "minimal_example": {
                              "type": "object",
                              "maxProperties": 100,
                              "minProperties": 2
                            },
                            "required_fields": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "maxLength": 128,
                                "minLength": 1
                              },
                              "maxItems": 32,
                              "minItems": 2,
                              "uniqueItems": true
                            },
                            "authoring_schema": {
                              "type": "object",
                              "maxProperties": 20,
                              "minProperties": 4
                            },
                            "qualification_route": {
                              "enum": [
                                "automatic",
                                "conditional",
                                "supervised"
                              ]
                            },
                            "resource_selector_paths": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "pattern": "^/[A-Za-z_][A-Za-z0-9_/]*$",
                                "maxLength": 256
                              },
                              "maxItems": 8,
                              "uniqueItems": true
                            },
                            "draft_authoring_supported": {
                              "type": "boolean"
                            },
                            "automatic_acceptance_eligible": {
                              "type": "boolean"
                            }
                          },
                          "additionalProperties": false
                        },
                        "maxItems": 8,
                        "minItems": 1
                      },
                      "qualification": {
                        "enum": [
                          "none",
                          "pending",
                          "qualified",
                          "invalidated"
                        ]
                      },
                      "catalog_version": {
                        "type": "string",
                        "maxLength": 64
                      }
                    },
                    "additionalProperties": false
                  },
                  "view": {
                    "const": "capabilities"
                  },
                  "truncation": {
                    "type": "object",
                    "required": [
                      "applied",
                      "reason",
                      "omitted_items",
                      "truncated_values",
                      "original_result_bytes"
                    ],
                    "properties": {
                      "reason": {
                        "const": "response_size_limit"
                      },
                      "applied": {
                        "const": true
                      },
                      "omitted_items": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "truncated_values": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "original_result_bytes": {
                        "type": "integer",
                        "minimum": 1
                      }
                    },
                    "additionalProperties": false
                  }
                }
              },
              {
                "type": "object",
                "required": [
                  "error"
                ],
                "properties": {
                  "hint": {
                    "type": "string",
                    "maxLength": 240
                  },
                  "error": {
                    "enum": [
                      "not_found",
                      "invalid_reference",
                      "invalid_params",
                      "revision_conflict",
                      "idempotency_conflict",
                      "document_too_large",
                      "payload_too_large",
                      "chunk_sequence_invalid",
                      "chunk_digest_mismatch",
                      "chunk_expired",
                      "invalid_cursor",
                      "suite_duplicate_case_id",
                      "suite_unresolved_pair",
                      "suite_schema_invalid",
                      "suite_missing_categories",
                      "suite_weak_normal_oracle",
                      "suite_too_large",
                      "unknown_case_id",
                      "duplicate_case_id",
                      "incomplete_case_selection",
                      "unsupported_node_kind",
                      "research_required",
                      "review_required",
                      "acceptance_required",
                      "qualification_stale",
                      "budget_not_approved",
                      "budget_exhausted",
                      "budget_superseded",
                      "budget_capability_consumed",
                      "budget_capability_expired",
                      "acceptance_case_cost_exceeded",
                      "authoring_budget_exceeded",
                      "authoring_grant_not_active",
                      "insufficient_credits",
                      "billing_anomaly",
                      "activity_stalled",
                      "activity_in_flight",
                      "handoff_approval_required",
                      "handoff_expired",
                      "handoff_not_pending",
                      "handoff_stale",
                      "handoff_disclosure_incomplete",
                      "feature_unavailable",
                      "resource_unavailable",
                      "resource_binding_required",
                      "resource_requirement_not_found",
                      "activity_not_cancellable",
                      "quota_exceeded",
                      "rate_limited",
                      "already_published",
                      "safety_locked",
                      "build_terminal",
                      "commit_capability_expired",
                      "account_unavailable",
                      "limit_unavailable"
                    ]
                  },
                  "field": {
                    "type": "string",
                    "maxLength": 64
                  },
                  "issue": {
                    "type": "object",
                    "required": [
                      "code",
                      "path"
                    ],
                    "properties": {
                      "code": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "path": {
                        "type": "string",
                        "maxLength": 512
                      },
                      "type": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "field": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "operator": {
                        "type": "string",
                        "maxLength": 64
                      }
                    },
                    "additionalProperties": false
                  },
                  "case_id": {
                    "type": "string",
                    "maxLength": 64,
                    "minLength": 1
                  },
                  "truncation": {
                    "type": "object",
                    "required": [
                      "applied",
                      "reason",
                      "omitted_items",
                      "truncated_values",
                      "original_result_bytes"
                    ],
                    "properties": {
                      "reason": {
                        "const": "response_size_limit"
                      },
                      "applied": {
                        "const": true
                      },
                      "omitted_items": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "truncated_values": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "original_result_bytes": {
                        "type": "integer",
                        "minimum": 1
                      }
                    },
                    "additionalProperties": false
                  },
                  "repair_hint": {
                    "type": "string",
                    "maxLength": 500
                  },
                  "review_cost": {
                    "type": "object",
                    "required": [
                      "estimated_credits",
                      "limit_credits",
                      "provider",
                      "model",
                      "basis",
                      "input_token_bound",
                      "output_token_cap",
                      "prompt_bytes",
                      "section_bytes"
                    ],
                    "properties": {
                      "basis": {
                        "const": "utf8_byte_upper_bound"
                      },
                      "model": {
                        "type": "string",
                        "maxLength": 200
                      },
                      "provider": {
                        "type": "string",
                        "maxLength": 200
                      },
                      "prompt_bytes": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "limit_credits": {
                        "type": "string",
                        "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                        "maxLength": 64
                      },
                      "section_bytes": {
                        "type": "object",
                        "required": [],
                        "properties": {
                          "spec": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "intent": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "input_contract": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "output_contract": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "acceptance_suite": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "research_evidence": {
                            "type": "integer",
                            "minimum": 0
                          }
                        },
                        "additionalProperties": false
                      },
                      "output_token_cap": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "estimated_credits": {
                        "type": "string",
                        "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                        "maxLength": 64
                      },
                      "input_token_bound": {
                        "type": "integer",
                        "minimum": 0
                      }
                    },
                    "additionalProperties": false
                  },
                  "limit_credits": {
                    "type": "string",
                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                    "maxLength": 64
                  },
                  "estimated_credits": {
                    "type": "string",
                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                    "maxLength": 64
                  },
                  "missing_categories": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 64
                    },
                    "maxItems": 10,
                    "uniqueItems": true
                  },
                  "retry_after_seconds": {
                    "type": "integer",
                    "maximum": 86400,
                    "minimum": 1
                  }
                },
                "additionalProperties": false
              }
            ]
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "list_recipe_build_handoffs",
          "title": "List Recipe Build Handoffs",
          "description": "List supervised acceptance handoffs for one private build.",
          "inputSchema": {
            "type": "object",
            "required": [
              "build_ref"
            ],
            "properties": {
              "build_ref": {
                "type": "string",
                "maxLength": 4096,
                "minLength": 1
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "oneOf": [
              {
                "type": "object",
                "required": [
                  "view",
                  "data"
                ],
                "properties": {
                  "data": {
                    "type": "object",
                    "required": [
                      "build_ref",
                      "name",
                      "status",
                      "revision",
                      "qualification",
                      "archived_at",
                      "handoffs"
                    ],
                    "properties": {
                      "name": {
                        "type": "string",
                        "maxLength": 200,
                        "minLength": 1
                      },
                      "status": {
                        "enum": [
                          "draft",
                          "qualified",
                          "committed",
                          "abandoned"
                        ]
                      },
                      "handoffs": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "required": [
                            "handoff_ref",
                            "activity_ref",
                            "revision",
                            "status",
                            "effect_digest",
                            "reason",
                            "required_decisions",
                            "effects",
                            "expires_at",
                            "action_url",
                            "resume"
                          ],
                          "properties": {
                            "reason": {
                              "type": "string",
                              "maxLength": 500
                            },
                            "resume": {
                              "type": "object",
                              "required": [
                                "tool",
                                "operation"
                              ],
                              "properties": {
                                "tool": {
                                  "const": "update_recipe_build"
                                },
                                "operation": {
                                  "const": "resume_activity"
                                }
                              },
                              "additionalProperties": false
                            },
                            "status": {
                              "enum": [
                                "pending",
                                "approved",
                                "cancelled",
                                "expired",
                                "consumed"
                              ]
                            },
                            "effects": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "required": [
                                  "node_id",
                                  "node_type",
                                  "execution_count",
                                  "details"
                                ],
                                "properties": {
                                  "details": {
                                    "type": "object",
                                    "required": [],
                                    "properties": {
                                      "to": {},
                                      "name": {},
                                      "query": {},
                                      "title": {},
                                      "top_k": {},
                                      "format": {},
                                      "params": {},
                                      "prompt": {},
                                      "source": {},
                                      "options": {},
                                      "sources": {},
                                      "subject": {},
                                      "duration": {},
                                      "filename": {},
                                      "html_only": {},
                                      "max_chunks": {},
                                      "visibility": {},
                                      "folder_name": {},
                                      "folder_ulid": {},
                                      "tool_groups": {},
                                      "pin_revision": {},
                                      "body_template": {},
                                      "input_mapping": {},
                                      "nested_effects": {},
                                      "outcome_rubric": {},
                                      "system_message": {},
                                      "additional_text": {},
                                      "score_threshold": {},
                                      "destination_mode": {},
                                      "preamble_enabled": {},
                                      "child_recipe_ulid": {},
                                      "child_revision_sha": {},
                                      "local_conflict_mode": {},
                                      "outcome_description": {},
                                      "external_target_ulid": {},
                                      "output_conflict_mode": {},
                                      "external_conflict_mode": {},
                                      "outcome_max_iterations": {}
                                    },
                                    "additionalProperties": false
                                  },
                                  "node_id": {
                                    "type": "string",
                                    "maxLength": 128
                                  },
                                  "node_type": {
                                    "type": "string",
                                    "maxLength": 64
                                  },
                                  "execution_count": {
                                    "type": "integer",
                                    "minimum": 0
                                  }
                                },
                                "additionalProperties": false
                              },
                              "maxItems": 100
                            },
                            "revision": {
                              "type": "string",
                              "pattern": "^[0-9a-f]{64}$",
                              "maxLength": 64
                            },
                            "resources": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "required": [
                                  "requirement_id",
                                  "node_id",
                                  "node_type",
                                  "node_path",
                                  "qualification_route",
                                  "reason",
                                  "required_decision",
                                  "resource_paths",
                                  "parameter_digest",
                                  "binding_status"
                                ],
                                "properties": {
                                  "reason": {
                                    "type": "string",
                                    "maxLength": 128
                                  },
                                  "node_id": {
                                    "type": "string",
                                    "maxLength": 128
                                  },
                                  "node_path": {
                                    "type": "array",
                                    "items": {
                                      "type": [
                                        "string",
                                        "integer"
                                      ]
                                    },
                                    "maxItems": 32
                                  },
                                  "node_type": {
                                    "type": "string",
                                    "maxLength": 64
                                  },
                                  "binding_status": {
                                    "enum": [
                                      "required",
                                      "bound"
                                    ]
                                  },
                                  "requirement_id": {
                                    "type": "string",
                                    "pattern": "^[0-9a-f]{32}$"
                                  },
                                  "resource_paths": {
                                    "type": "array",
                                    "items": {
                                      "type": "string",
                                      "maxLength": 256
                                    },
                                    "maxItems": 8
                                  },
                                  "parameter_digest": {
                                    "type": "string",
                                    "pattern": "^[0-9a-f]{64}$",
                                    "maxLength": 64
                                  },
                                  "required_decision": {
                                    "type": "string",
                                    "maxLength": 128
                                  },
                                  "qualification_route": {
                                    "enum": [
                                      "conditional",
                                      "supervised"
                                    ]
                                  }
                                },
                                "additionalProperties": false
                              },
                              "maxItems": 100
                            },
                            "action_url": {
                              "type": "string",
                              "maxLength": 2048,
                              "minLength": 1
                            },
                            "expires_at": {
                              "type": "string",
                              "format": "date-time",
                              "maxLength": 64
                            },
                            "handoff_ref": {
                              "type": "string",
                              "maxLength": 4096,
                              "minLength": 1
                            },
                            "activity_ref": {
                              "type": "string",
                              "maxLength": 4096,
                              "minLength": 1
                            },
                            "effect_digest": {
                              "type": "string",
                              "pattern": "^[0-9a-f]{64}$",
                              "maxLength": 64
                            },
                            "required_decisions": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "maxLength": 128
                              },
                              "maxItems": 100,
                              "uniqueItems": true
                            }
                          },
                          "additionalProperties": false
                        },
                        "maxItems": 25
                      },
                      "revision": {
                        "type": "string",
                        "pattern": "^[0-9a-f]{64}$",
                        "maxLength": 64
                      },
                      "build_ref": {
                        "type": "string",
                        "maxLength": 4096,
                        "minLength": 1
                      },
                      "archived_at": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "format": "date-time",
                        "maxLength": 64
                      },
                      "qualification": {
                        "enum": [
                          "none",
                          "pending",
                          "qualified",
                          "invalidated"
                        ]
                      }
                    },
                    "additionalProperties": false
                  },
                  "view": {
                    "const": "handoffs"
                  },
                  "truncation": {
                    "type": "object",
                    "required": [
                      "applied",
                      "reason",
                      "omitted_items",
                      "truncated_values",
                      "original_result_bytes"
                    ],
                    "properties": {
                      "reason": {
                        "const": "response_size_limit"
                      },
                      "applied": {
                        "const": true
                      },
                      "omitted_items": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "truncated_values": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "original_result_bytes": {
                        "type": "integer",
                        "minimum": 1
                      }
                    },
                    "additionalProperties": false
                  }
                }
              },
              {
                "type": "object",
                "required": [
                  "error"
                ],
                "properties": {
                  "hint": {
                    "type": "string",
                    "maxLength": 240
                  },
                  "error": {
                    "enum": [
                      "not_found",
                      "invalid_reference",
                      "invalid_params",
                      "revision_conflict",
                      "idempotency_conflict",
                      "document_too_large",
                      "payload_too_large",
                      "chunk_sequence_invalid",
                      "chunk_digest_mismatch",
                      "chunk_expired",
                      "invalid_cursor",
                      "suite_duplicate_case_id",
                      "suite_unresolved_pair",
                      "suite_schema_invalid",
                      "suite_missing_categories",
                      "suite_weak_normal_oracle",
                      "suite_too_large",
                      "unknown_case_id",
                      "duplicate_case_id",
                      "incomplete_case_selection",
                      "unsupported_node_kind",
                      "research_required",
                      "review_required",
                      "acceptance_required",
                      "qualification_stale",
                      "budget_not_approved",
                      "budget_exhausted",
                      "budget_superseded",
                      "budget_capability_consumed",
                      "budget_capability_expired",
                      "acceptance_case_cost_exceeded",
                      "authoring_budget_exceeded",
                      "authoring_grant_not_active",
                      "insufficient_credits",
                      "billing_anomaly",
                      "activity_stalled",
                      "activity_in_flight",
                      "handoff_approval_required",
                      "handoff_expired",
                      "handoff_not_pending",
                      "handoff_stale",
                      "handoff_disclosure_incomplete",
                      "feature_unavailable",
                      "resource_unavailable",
                      "resource_binding_required",
                      "resource_requirement_not_found",
                      "activity_not_cancellable",
                      "quota_exceeded",
                      "rate_limited",
                      "already_published",
                      "safety_locked",
                      "build_terminal",
                      "commit_capability_expired",
                      "account_unavailable",
                      "limit_unavailable"
                    ]
                  },
                  "field": {
                    "type": "string",
                    "maxLength": 64
                  },
                  "issue": {
                    "type": "object",
                    "required": [
                      "code",
                      "path"
                    ],
                    "properties": {
                      "code": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "path": {
                        "type": "string",
                        "maxLength": 512
                      },
                      "type": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "field": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "operator": {
                        "type": "string",
                        "maxLength": 64
                      }
                    },
                    "additionalProperties": false
                  },
                  "case_id": {
                    "type": "string",
                    "maxLength": 64,
                    "minLength": 1
                  },
                  "truncation": {
                    "type": "object",
                    "required": [
                      "applied",
                      "reason",
                      "omitted_items",
                      "truncated_values",
                      "original_result_bytes"
                    ],
                    "properties": {
                      "reason": {
                        "const": "response_size_limit"
                      },
                      "applied": {
                        "const": true
                      },
                      "omitted_items": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "truncated_values": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "original_result_bytes": {
                        "type": "integer",
                        "minimum": 1
                      }
                    },
                    "additionalProperties": false
                  },
                  "repair_hint": {
                    "type": "string",
                    "maxLength": 500
                  },
                  "review_cost": {
                    "type": "object",
                    "required": [
                      "estimated_credits",
                      "limit_credits",
                      "provider",
                      "model",
                      "basis",
                      "input_token_bound",
                      "output_token_cap",
                      "prompt_bytes",
                      "section_bytes"
                    ],
                    "properties": {
                      "basis": {
                        "const": "utf8_byte_upper_bound"
                      },
                      "model": {
                        "type": "string",
                        "maxLength": 200
                      },
                      "provider": {
                        "type": "string",
                        "maxLength": 200
                      },
                      "prompt_bytes": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "limit_credits": {
                        "type": "string",
                        "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                        "maxLength": 64
                      },
                      "section_bytes": {
                        "type": "object",
                        "required": [],
                        "properties": {
                          "spec": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "intent": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "input_contract": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "output_contract": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "acceptance_suite": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "research_evidence": {
                            "type": "integer",
                            "minimum": 0
                          }
                        },
                        "additionalProperties": false
                      },
                      "output_token_cap": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "estimated_credits": {
                        "type": "string",
                        "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                        "maxLength": 64
                      },
                      "input_token_bound": {
                        "type": "integer",
                        "minimum": 0
                      }
                    },
                    "additionalProperties": false
                  },
                  "limit_credits": {
                    "type": "string",
                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                    "maxLength": 64
                  },
                  "estimated_credits": {
                    "type": "string",
                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                    "maxLength": 64
                  },
                  "missing_categories": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 64
                    },
                    "maxItems": 10,
                    "uniqueItems": true
                  },
                  "retry_after_seconds": {
                    "type": "integer",
                    "maximum": 86400,
                    "minimum": 1
                  }
                },
                "additionalProperties": false
              }
            ]
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "list_recipe_build_nodes",
          "title": "List Recipe Build Nodes",
          "description": "List node identifiers and node types in one private build.",
          "inputSchema": {
            "type": "object",
            "required": [
              "build_ref"
            ],
            "properties": {
              "build_ref": {
                "type": "string",
                "maxLength": 4096,
                "minLength": 1
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "oneOf": [
              {
                "type": "object",
                "required": [
                  "view",
                  "data"
                ],
                "properties": {
                  "data": {
                    "type": "object",
                    "required": [
                      "build_ref",
                      "name",
                      "status",
                      "revision",
                      "qualification",
                      "archived_at",
                      "nodes"
                    ],
                    "properties": {
                      "name": {
                        "type": "string",
                        "maxLength": 200,
                        "minLength": 1
                      },
                      "nodes": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "required": [
                            "id",
                            "type"
                          ],
                          "properties": {
                            "id": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "maxLength": 128
                            },
                            "type": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "maxLength": 64
                            }
                          },
                          "additionalProperties": false
                        },
                        "maxItems": 500
                      },
                      "status": {
                        "enum": [
                          "draft",
                          "qualified",
                          "committed",
                          "abandoned"
                        ]
                      },
                      "revision": {
                        "type": "string",
                        "pattern": "^[0-9a-f]{64}$",
                        "maxLength": 64
                      },
                      "build_ref": {
                        "type": "string",
                        "maxLength": 4096,
                        "minLength": 1
                      },
                      "archived_at": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "format": "date-time",
                        "maxLength": 64
                      },
                      "qualification": {
                        "enum": [
                          "none",
                          "pending",
                          "qualified",
                          "invalidated"
                        ]
                      }
                    },
                    "additionalProperties": false
                  },
                  "view": {
                    "const": "node_inventory"
                  },
                  "truncation": {
                    "type": "object",
                    "required": [
                      "applied",
                      "reason",
                      "omitted_items",
                      "truncated_values",
                      "original_result_bytes"
                    ],
                    "properties": {
                      "reason": {
                        "const": "response_size_limit"
                      },
                      "applied": {
                        "const": true
                      },
                      "omitted_items": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "truncated_values": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "original_result_bytes": {
                        "type": "integer",
                        "minimum": 1
                      }
                    },
                    "additionalProperties": false
                  }
                }
              },
              {
                "type": "object",
                "required": [
                  "error"
                ],
                "properties": {
                  "hint": {
                    "type": "string",
                    "maxLength": 240
                  },
                  "error": {
                    "enum": [
                      "not_found",
                      "invalid_reference",
                      "invalid_params",
                      "revision_conflict",
                      "idempotency_conflict",
                      "document_too_large",
                      "payload_too_large",
                      "chunk_sequence_invalid",
                      "chunk_digest_mismatch",
                      "chunk_expired",
                      "invalid_cursor",
                      "suite_duplicate_case_id",
                      "suite_unresolved_pair",
                      "suite_schema_invalid",
                      "suite_missing_categories",
                      "suite_weak_normal_oracle",
                      "suite_too_large",
                      "unknown_case_id",
                      "duplicate_case_id",
                      "incomplete_case_selection",
                      "unsupported_node_kind",
                      "research_required",
                      "review_required",
                      "acceptance_required",
                      "qualification_stale",
                      "budget_not_approved",
                      "budget_exhausted",
                      "budget_superseded",
                      "budget_capability_consumed",
                      "budget_capability_expired",
                      "acceptance_case_cost_exceeded",
                      "authoring_budget_exceeded",
                      "authoring_grant_not_active",
                      "insufficient_credits",
                      "billing_anomaly",
                      "activity_stalled",
                      "activity_in_flight",
                      "handoff_approval_required",
                      "handoff_expired",
                      "handoff_not_pending",
                      "handoff_stale",
                      "handoff_disclosure_incomplete",
                      "feature_unavailable",
                      "resource_unavailable",
                      "resource_binding_required",
                      "resource_requirement_not_found",
                      "activity_not_cancellable",
                      "quota_exceeded",
                      "rate_limited",
                      "already_published",
                      "safety_locked",
                      "build_terminal",
                      "commit_capability_expired",
                      "account_unavailable",
                      "limit_unavailable"
                    ]
                  },
                  "field": {
                    "type": "string",
                    "maxLength": 64
                  },
                  "issue": {
                    "type": "object",
                    "required": [
                      "code",
                      "path"
                    ],
                    "properties": {
                      "code": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "path": {
                        "type": "string",
                        "maxLength": 512
                      },
                      "type": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "field": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "operator": {
                        "type": "string",
                        "maxLength": 64
                      }
                    },
                    "additionalProperties": false
                  },
                  "case_id": {
                    "type": "string",
                    "maxLength": 64,
                    "minLength": 1
                  },
                  "truncation": {
                    "type": "object",
                    "required": [
                      "applied",
                      "reason",
                      "omitted_items",
                      "truncated_values",
                      "original_result_bytes"
                    ],
                    "properties": {
                      "reason": {
                        "const": "response_size_limit"
                      },
                      "applied": {
                        "const": true
                      },
                      "omitted_items": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "truncated_values": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "original_result_bytes": {
                        "type": "integer",
                        "minimum": 1
                      }
                    },
                    "additionalProperties": false
                  },
                  "repair_hint": {
                    "type": "string",
                    "maxLength": 500
                  },
                  "review_cost": {
                    "type": "object",
                    "required": [
                      "estimated_credits",
                      "limit_credits",
                      "provider",
                      "model",
                      "basis",
                      "input_token_bound",
                      "output_token_cap",
                      "prompt_bytes",
                      "section_bytes"
                    ],
                    "properties": {
                      "basis": {
                        "const": "utf8_byte_upper_bound"
                      },
                      "model": {
                        "type": "string",
                        "maxLength": 200
                      },
                      "provider": {
                        "type": "string",
                        "maxLength": 200
                      },
                      "prompt_bytes": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "limit_credits": {
                        "type": "string",
                        "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                        "maxLength": 64
                      },
                      "section_bytes": {
                        "type": "object",
                        "required": [],
                        "properties": {
                          "spec": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "intent": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "input_contract": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "output_contract": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "acceptance_suite": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "research_evidence": {
                            "type": "integer",
                            "minimum": 0
                          }
                        },
                        "additionalProperties": false
                      },
                      "output_token_cap": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "estimated_credits": {
                        "type": "string",
                        "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                        "maxLength": 64
                      },
                      "input_token_bound": {
                        "type": "integer",
                        "minimum": 0
                      }
                    },
                    "additionalProperties": false
                  },
                  "limit_credits": {
                    "type": "string",
                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                    "maxLength": 64
                  },
                  "estimated_credits": {
                    "type": "string",
                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                    "maxLength": 64
                  },
                  "missing_categories": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 64
                    },
                    "maxItems": 10,
                    "uniqueItems": true
                  },
                  "retry_after_seconds": {
                    "type": "integer",
                    "maximum": 86400,
                    "minimum": 1
                  }
                },
                "additionalProperties": false
              }
            ]
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "list_recipe_build_resources",
          "title": "List Recipe Build Resources",
          "description": "List resource requirements from the newest handoff for one private build.",
          "inputSchema": {
            "type": "object",
            "required": [
              "build_ref"
            ],
            "properties": {
              "build_ref": {
                "type": "string",
                "maxLength": 4096,
                "minLength": 1
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "oneOf": [
              {
                "type": "object",
                "required": [
                  "view",
                  "data"
                ],
                "properties": {
                  "data": {
                    "type": "object",
                    "required": [
                      "build_ref",
                      "name",
                      "status",
                      "revision",
                      "qualification",
                      "archived_at",
                      "resources"
                    ],
                    "properties": {
                      "name": {
                        "type": "string",
                        "maxLength": 200,
                        "minLength": 1
                      },
                      "status": {
                        "enum": [
                          "draft",
                          "qualified",
                          "committed",
                          "abandoned"
                        ]
                      },
                      "revision": {
                        "type": "string",
                        "pattern": "^[0-9a-f]{64}$",
                        "maxLength": 64
                      },
                      "build_ref": {
                        "type": "string",
                        "maxLength": 4096,
                        "minLength": 1
                      },
                      "resources": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "required": [
                            "requirement_id",
                            "node_id",
                            "node_type",
                            "node_path",
                            "qualification_route",
                            "reason",
                            "required_decision",
                            "resource_paths",
                            "parameter_digest",
                            "binding_status"
                          ],
                          "properties": {
                            "reason": {
                              "type": "string",
                              "maxLength": 128
                            },
                            "node_id": {
                              "type": "string",
                              "maxLength": 128
                            },
                            "node_path": {
                              "type": "array",
                              "items": {
                                "type": [
                                  "string",
                                  "integer"
                                ]
                              },
                              "maxItems": 32
                            },
                            "node_type": {
                              "type": "string",
                              "maxLength": 64
                            },
                            "binding_status": {
                              "enum": [
                                "required",
                                "bound"
                              ]
                            },
                            "requirement_id": {
                              "type": "string",
                              "pattern": "^[0-9a-f]{32}$"
                            },
                            "resource_paths": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "maxLength": 256
                              },
                              "maxItems": 8
                            },
                            "parameter_digest": {
                              "type": "string",
                              "pattern": "^[0-9a-f]{64}$",
                              "maxLength": 64
                            },
                            "required_decision": {
                              "type": "string",
                              "maxLength": 128
                            },
                            "qualification_route": {
                              "enum": [
                                "conditional",
                                "supervised"
                              ]
                            }
                          },
                          "additionalProperties": false
                        },
                        "maxItems": 100
                      },
                      "archived_at": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "format": "date-time",
                        "maxLength": 64
                      },
                      "qualification": {
                        "enum": [
                          "none",
                          "pending",
                          "qualified",
                          "invalidated"
                        ]
                      }
                    },
                    "additionalProperties": false
                  },
                  "view": {
                    "const": "resources"
                  },
                  "truncation": {
                    "type": "object",
                    "required": [
                      "applied",
                      "reason",
                      "omitted_items",
                      "truncated_values",
                      "original_result_bytes"
                    ],
                    "properties": {
                      "reason": {
                        "const": "response_size_limit"
                      },
                      "applied": {
                        "const": true
                      },
                      "omitted_items": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "truncated_values": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "original_result_bytes": {
                        "type": "integer",
                        "minimum": 1
                      }
                    },
                    "additionalProperties": false
                  }
                }
              },
              {
                "type": "object",
                "required": [
                  "error"
                ],
                "properties": {
                  "hint": {
                    "type": "string",
                    "maxLength": 240
                  },
                  "error": {
                    "enum": [
                      "not_found",
                      "invalid_reference",
                      "invalid_params",
                      "revision_conflict",
                      "idempotency_conflict",
                      "document_too_large",
                      "payload_too_large",
                      "chunk_sequence_invalid",
                      "chunk_digest_mismatch",
                      "chunk_expired",
                      "invalid_cursor",
                      "suite_duplicate_case_id",
                      "suite_unresolved_pair",
                      "suite_schema_invalid",
                      "suite_missing_categories",
                      "suite_weak_normal_oracle",
                      "suite_too_large",
                      "unknown_case_id",
                      "duplicate_case_id",
                      "incomplete_case_selection",
                      "unsupported_node_kind",
                      "research_required",
                      "review_required",
                      "acceptance_required",
                      "qualification_stale",
                      "budget_not_approved",
                      "budget_exhausted",
                      "budget_superseded",
                      "budget_capability_consumed",
                      "budget_capability_expired",
                      "acceptance_case_cost_exceeded",
                      "authoring_budget_exceeded",
                      "authoring_grant_not_active",
                      "insufficient_credits",
                      "billing_anomaly",
                      "activity_stalled",
                      "activity_in_flight",
                      "handoff_approval_required",
                      "handoff_expired",
                      "handoff_not_pending",
                      "handoff_stale",
                      "handoff_disclosure_incomplete",
                      "feature_unavailable",
                      "resource_unavailable",
                      "resource_binding_required",
                      "resource_requirement_not_found",
                      "activity_not_cancellable",
                      "quota_exceeded",
                      "rate_limited",
                      "already_published",
                      "safety_locked",
                      "build_terminal",
                      "commit_capability_expired",
                      "account_unavailable",
                      "limit_unavailable"
                    ]
                  },
                  "field": {
                    "type": "string",
                    "maxLength": 64
                  },
                  "issue": {
                    "type": "object",
                    "required": [
                      "code",
                      "path"
                    ],
                    "properties": {
                      "code": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "path": {
                        "type": "string",
                        "maxLength": 512
                      },
                      "type": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "field": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "operator": {
                        "type": "string",
                        "maxLength": 64
                      }
                    },
                    "additionalProperties": false
                  },
                  "case_id": {
                    "type": "string",
                    "maxLength": 64,
                    "minLength": 1
                  },
                  "truncation": {
                    "type": "object",
                    "required": [
                      "applied",
                      "reason",
                      "omitted_items",
                      "truncated_values",
                      "original_result_bytes"
                    ],
                    "properties": {
                      "reason": {
                        "const": "response_size_limit"
                      },
                      "applied": {
                        "const": true
                      },
                      "omitted_items": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "truncated_values": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "original_result_bytes": {
                        "type": "integer",
                        "minimum": 1
                      }
                    },
                    "additionalProperties": false
                  },
                  "repair_hint": {
                    "type": "string",
                    "maxLength": 500
                  },
                  "review_cost": {
                    "type": "object",
                    "required": [
                      "estimated_credits",
                      "limit_credits",
                      "provider",
                      "model",
                      "basis",
                      "input_token_bound",
                      "output_token_cap",
                      "prompt_bytes",
                      "section_bytes"
                    ],
                    "properties": {
                      "basis": {
                        "const": "utf8_byte_upper_bound"
                      },
                      "model": {
                        "type": "string",
                        "maxLength": 200
                      },
                      "provider": {
                        "type": "string",
                        "maxLength": 200
                      },
                      "prompt_bytes": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "limit_credits": {
                        "type": "string",
                        "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                        "maxLength": 64
                      },
                      "section_bytes": {
                        "type": "object",
                        "required": [],
                        "properties": {
                          "spec": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "intent": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "input_contract": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "output_contract": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "acceptance_suite": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "research_evidence": {
                            "type": "integer",
                            "minimum": 0
                          }
                        },
                        "additionalProperties": false
                      },
                      "output_token_cap": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "estimated_credits": {
                        "type": "string",
                        "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                        "maxLength": 64
                      },
                      "input_token_bound": {
                        "type": "integer",
                        "minimum": 0
                      }
                    },
                    "additionalProperties": false
                  },
                  "limit_credits": {
                    "type": "string",
                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                    "maxLength": 64
                  },
                  "estimated_credits": {
                    "type": "string",
                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                    "maxLength": 64
                  },
                  "missing_categories": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 64
                    },
                    "maxItems": 10,
                    "uniqueItems": true
                  },
                  "retry_after_seconds": {
                    "type": "integer",
                    "maximum": 86400,
                    "minimum": 1
                  }
                },
                "additionalProperties": false
              }
            ]
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "list_recipe_builds",
          "title": "List StewAI Recipe Builds",
          "description": "List recent private recipe builds owned by the authenticated creator.",
          "inputSchema": {
            "type": "object",
            "required": [],
            "properties": {
              "limit": {
                "type": "integer",
                "maximum": 25,
                "minimum": 1
              },
              "cursor": {
                "type": "string",
                "maxLength": 4096,
                "minLength": 1
              },
              "include_archived": {
                "type": "boolean"
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "oneOf": [
              {
                "type": "object",
                "required": [
                  "view",
                  "data"
                ],
                "properties": {
                  "data": {
                    "type": "object",
                    "required": [
                      "builds"
                    ],
                    "properties": {
                      "builds": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "required": [
                            "build_ref",
                            "name",
                            "status",
                            "qualification",
                            "last_activity_at",
                            "archived_at"
                          ],
                          "properties": {
                            "name": {
                              "type": "string",
                              "maxLength": 200,
                              "minLength": 1
                            },
                            "status": {
                              "enum": [
                                "draft",
                                "qualified",
                                "committed",
                                "abandoned"
                              ]
                            },
                            "build_ref": {
                              "type": "string",
                              "maxLength": 4096,
                              "minLength": 1
                            },
                            "archived_at": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "format": "date-time",
                              "maxLength": 64
                            },
                            "qualification": {
                              "enum": [
                                "none",
                                "pending",
                                "qualified",
                                "invalidated"
                              ]
                            },
                            "last_activity_at": {
                              "type": "string",
                              "format": "date-time",
                              "maxLength": 64
                            }
                          },
                          "additionalProperties": false
                        },
                        "maxItems": 25
                      }
                    },
                    "additionalProperties": false
                  },
                  "view": {
                    "const": "listing"
                  },
                  "truncation": {
                    "type": "object",
                    "required": [
                      "applied",
                      "reason",
                      "omitted_items",
                      "truncated_values",
                      "original_result_bytes"
                    ],
                    "properties": {
                      "reason": {
                        "const": "response_size_limit"
                      },
                      "applied": {
                        "const": true
                      },
                      "omitted_items": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "truncated_values": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "original_result_bytes": {
                        "type": "integer",
                        "minimum": 1
                      }
                    },
                    "additionalProperties": false
                  },
                  "next_cursor": {
                    "type": "string",
                    "maxLength": 4096,
                    "minLength": 1
                  }
                }
              },
              {
                "type": "object",
                "required": [
                  "error"
                ],
                "properties": {
                  "hint": {
                    "type": "string",
                    "maxLength": 240
                  },
                  "error": {
                    "enum": [
                      "not_found",
                      "invalid_reference",
                      "invalid_params",
                      "revision_conflict",
                      "idempotency_conflict",
                      "document_too_large",
                      "payload_too_large",
                      "chunk_sequence_invalid",
                      "chunk_digest_mismatch",
                      "chunk_expired",
                      "invalid_cursor",
                      "suite_duplicate_case_id",
                      "suite_unresolved_pair",
                      "suite_schema_invalid",
                      "suite_missing_categories",
                      "suite_weak_normal_oracle",
                      "suite_too_large",
                      "unknown_case_id",
                      "duplicate_case_id",
                      "incomplete_case_selection",
                      "unsupported_node_kind",
                      "research_required",
                      "review_required",
                      "acceptance_required",
                      "qualification_stale",
                      "budget_not_approved",
                      "budget_exhausted",
                      "budget_superseded",
                      "budget_capability_consumed",
                      "budget_capability_expired",
                      "acceptance_case_cost_exceeded",
                      "authoring_budget_exceeded",
                      "authoring_grant_not_active",
                      "insufficient_credits",
                      "billing_anomaly",
                      "activity_stalled",
                      "activity_in_flight",
                      "handoff_approval_required",
                      "handoff_expired",
                      "handoff_not_pending",
                      "handoff_stale",
                      "handoff_disclosure_incomplete",
                      "feature_unavailable",
                      "resource_unavailable",
                      "resource_binding_required",
                      "resource_requirement_not_found",
                      "activity_not_cancellable",
                      "quota_exceeded",
                      "rate_limited",
                      "already_published",
                      "safety_locked",
                      "build_terminal",
                      "commit_capability_expired",
                      "account_unavailable",
                      "limit_unavailable"
                    ]
                  },
                  "field": {
                    "type": "string",
                    "maxLength": 64
                  },
                  "issue": {
                    "type": "object",
                    "required": [
                      "code",
                      "path"
                    ],
                    "properties": {
                      "code": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "path": {
                        "type": "string",
                        "maxLength": 512
                      },
                      "type": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "field": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "operator": {
                        "type": "string",
                        "maxLength": 64
                      }
                    },
                    "additionalProperties": false
                  },
                  "case_id": {
                    "type": "string",
                    "maxLength": 64,
                    "minLength": 1
                  },
                  "truncation": {
                    "type": "object",
                    "required": [
                      "applied",
                      "reason",
                      "omitted_items",
                      "truncated_values",
                      "original_result_bytes"
                    ],
                    "properties": {
                      "reason": {
                        "const": "response_size_limit"
                      },
                      "applied": {
                        "const": true
                      },
                      "omitted_items": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "truncated_values": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "original_result_bytes": {
                        "type": "integer",
                        "minimum": 1
                      }
                    },
                    "additionalProperties": false
                  },
                  "repair_hint": {
                    "type": "string",
                    "maxLength": 500
                  },
                  "review_cost": {
                    "type": "object",
                    "required": [
                      "estimated_credits",
                      "limit_credits",
                      "provider",
                      "model",
                      "basis",
                      "input_token_bound",
                      "output_token_cap",
                      "prompt_bytes",
                      "section_bytes"
                    ],
                    "properties": {
                      "basis": {
                        "const": "utf8_byte_upper_bound"
                      },
                      "model": {
                        "type": "string",
                        "maxLength": 200
                      },
                      "provider": {
                        "type": "string",
                        "maxLength": 200
                      },
                      "prompt_bytes": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "limit_credits": {
                        "type": "string",
                        "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                        "maxLength": 64
                      },
                      "section_bytes": {
                        "type": "object",
                        "required": [],
                        "properties": {
                          "spec": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "intent": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "input_contract": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "output_contract": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "acceptance_suite": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "research_evidence": {
                            "type": "integer",
                            "minimum": 0
                          }
                        },
                        "additionalProperties": false
                      },
                      "output_token_cap": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "estimated_credits": {
                        "type": "string",
                        "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                        "maxLength": 64
                      },
                      "input_token_bound": {
                        "type": "integer",
                        "minimum": 0
                      }
                    },
                    "additionalProperties": false
                  },
                  "limit_credits": {
                    "type": "string",
                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                    "maxLength": 64
                  },
                  "estimated_credits": {
                    "type": "string",
                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                    "maxLength": 64
                  },
                  "missing_categories": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 64
                    },
                    "maxItems": 10,
                    "uniqueItems": true
                  },
                  "retry_after_seconds": {
                    "type": "integer",
                    "maximum": 86400,
                    "minimum": 1
                  }
                },
                "additionalProperties": false
              }
            ]
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "list_recipe_capability_types",
          "title": "List Recipe Capability Types",
          "description": "List the supported recipe node capability types.",
          "inputSchema": {
            "type": "object",
            "required": [],
            "properties": {
              "limit": {
                "type": "integer",
                "maximum": 25,
                "minimum": 1
              },
              "cursor": {
                "type": "string",
                "maxLength": 512
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "oneOf": [
              {
                "type": "object",
                "required": [
                  "view",
                  "data"
                ],
                "properties": {
                  "data": {
                    "type": "object",
                    "required": [
                      "catalog_version",
                      "usage",
                      "capabilities"
                    ],
                    "properties": {
                      "usage": {
                        "type": "string",
                        "maxLength": 500
                      },
                      "versions": {
                        "type": "object",
                        "required": [
                          "archetypes",
                          "capabilities",
                          "checks",
                          "guidance",
                          "models"
                        ],
                        "properties": {
                          "checks": {
                            "type": "string",
                            "maxLength": 64
                          },
                          "models": {
                            "type": "string",
                            "maxLength": 64
                          },
                          "guidance": {
                            "type": "string",
                            "maxLength": 64
                          },
                          "archetypes": {
                            "type": "string",
                            "maxLength": 64
                          },
                          "capabilities": {
                            "type": "string",
                            "maxLength": 64
                          }
                        },
                        "additionalProperties": false
                      },
                      "capabilities": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "required": [
                            "node_type",
                            "purpose",
                            "qualification_route",
                            "detail_lookup_key"
                          ],
                          "properties": {
                            "purpose": {
                              "type": "string",
                              "maxLength": 240
                            },
                            "node_type": {
                              "type": "string",
                              "maxLength": 64
                            },
                            "detail_lookup_key": {
                              "type": "string",
                              "maxLength": 64
                            },
                            "qualification_route": {
                              "type": "string",
                              "maxLength": 64
                            }
                          },
                          "additionalProperties": false
                        },
                        "maxItems": 24
                      },
                      "catalog_version": {
                        "type": "string",
                        "maxLength": 64
                      }
                    },
                    "additionalProperties": false
                  },
                  "view": {
                    "const": "capabilities_index"
                  },
                  "truncation": {
                    "type": "object",
                    "required": [
                      "applied",
                      "reason",
                      "omitted_items",
                      "truncated_values",
                      "original_result_bytes"
                    ],
                    "properties": {
                      "reason": {
                        "const": "response_size_limit"
                      },
                      "applied": {
                        "const": true
                      },
                      "omitted_items": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "truncated_values": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "original_result_bytes": {
                        "type": "integer",
                        "minimum": 1
                      }
                    },
                    "additionalProperties": false
                  }
                }
              },
              {
                "type": "object",
                "required": [
                  "error"
                ],
                "properties": {
                  "hint": {
                    "type": "string",
                    "maxLength": 240
                  },
                  "error": {
                    "enum": [
                      "not_found",
                      "invalid_reference",
                      "invalid_params",
                      "revision_conflict",
                      "idempotency_conflict",
                      "document_too_large",
                      "payload_too_large",
                      "chunk_sequence_invalid",
                      "chunk_digest_mismatch",
                      "chunk_expired",
                      "invalid_cursor",
                      "suite_duplicate_case_id",
                      "suite_unresolved_pair",
                      "suite_schema_invalid",
                      "suite_missing_categories",
                      "suite_weak_normal_oracle",
                      "suite_too_large",
                      "unknown_case_id",
                      "duplicate_case_id",
                      "incomplete_case_selection",
                      "unsupported_node_kind",
                      "research_required",
                      "review_required",
                      "acceptance_required",
                      "qualification_stale",
                      "budget_not_approved",
                      "budget_exhausted",
                      "budget_superseded",
                      "budget_capability_consumed",
                      "budget_capability_expired",
                      "acceptance_case_cost_exceeded",
                      "authoring_budget_exceeded",
                      "authoring_grant_not_active",
                      "insufficient_credits",
                      "billing_anomaly",
                      "activity_stalled",
                      "activity_in_flight",
                      "handoff_approval_required",
                      "handoff_expired",
                      "handoff_not_pending",
                      "handoff_stale",
                      "handoff_disclosure_incomplete",
                      "feature_unavailable",
                      "resource_unavailable",
                      "resource_binding_required",
                      "resource_requirement_not_found",
                      "activity_not_cancellable",
                      "quota_exceeded",
                      "rate_limited",
                      "already_published",
                      "safety_locked",
                      "build_terminal",
                      "commit_capability_expired",
                      "account_unavailable",
                      "limit_unavailable"
                    ]
                  },
                  "field": {
                    "type": "string",
                    "maxLength": 64
                  },
                  "issue": {
                    "type": "object",
                    "required": [
                      "code",
                      "path"
                    ],
                    "properties": {
                      "code": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "path": {
                        "type": "string",
                        "maxLength": 512
                      },
                      "type": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "field": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "operator": {
                        "type": "string",
                        "maxLength": 64
                      }
                    },
                    "additionalProperties": false
                  },
                  "case_id": {
                    "type": "string",
                    "maxLength": 64,
                    "minLength": 1
                  },
                  "truncation": {
                    "type": "object",
                    "required": [
                      "applied",
                      "reason",
                      "omitted_items",
                      "truncated_values",
                      "original_result_bytes"
                    ],
                    "properties": {
                      "reason": {
                        "const": "response_size_limit"
                      },
                      "applied": {
                        "const": true
                      },
                      "omitted_items": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "truncated_values": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "original_result_bytes": {
                        "type": "integer",
                        "minimum": 1
                      }
                    },
                    "additionalProperties": false
                  },
                  "repair_hint": {
                    "type": "string",
                    "maxLength": 500
                  },
                  "review_cost": {
                    "type": "object",
                    "required": [
                      "estimated_credits",
                      "limit_credits",
                      "provider",
                      "model",
                      "basis",
                      "input_token_bound",
                      "output_token_cap",
                      "prompt_bytes",
                      "section_bytes"
                    ],
                    "properties": {
                      "basis": {
                        "const": "utf8_byte_upper_bound"
                      },
                      "model": {
                        "type": "string",
                        "maxLength": 200
                      },
                      "provider": {
                        "type": "string",
                        "maxLength": 200
                      },
                      "prompt_bytes": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "limit_credits": {
                        "type": "string",
                        "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                        "maxLength": 64
                      },
                      "section_bytes": {
                        "type": "object",
                        "required": [],
                        "properties": {
                          "spec": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "intent": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "input_contract": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "output_contract": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "acceptance_suite": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "research_evidence": {
                            "type": "integer",
                            "minimum": 0
                          }
                        },
                        "additionalProperties": false
                      },
                      "output_token_cap": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "estimated_credits": {
                        "type": "string",
                        "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                        "maxLength": 64
                      },
                      "input_token_bound": {
                        "type": "integer",
                        "minimum": 0
                      }
                    },
                    "additionalProperties": false
                  },
                  "limit_credits": {
                    "type": "string",
                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                    "maxLength": 64
                  },
                  "estimated_credits": {
                    "type": "string",
                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                    "maxLength": 64
                  },
                  "missing_categories": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 64
                    },
                    "maxItems": 10,
                    "uniqueItems": true
                  },
                  "retry_after_seconds": {
                    "type": "integer",
                    "maximum": 86400,
                    "minimum": 1
                  }
                },
                "additionalProperties": false
              }
            ]
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "list_recipe_models",
          "title": "List Recipe Models",
          "description": "List models available to recipe authoring.",
          "inputSchema": {
            "type": "object",
            "required": [],
            "properties": {
              "limit": {
                "type": "integer",
                "maximum": 25,
                "minimum": 1
              },
              "cursor": {
                "type": "string",
                "maxLength": 512
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "oneOf": [
              {
                "type": "object",
                "required": [
                  "view",
                  "data"
                ],
                "properties": {
                  "data": {
                    "type": "object",
                    "required": [
                      "contract_version"
                    ],
                    "properties": {
                      "count": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "model": {
                        "type": "object"
                      },
                      "models": {
                        "type": "array",
                        "items": {
                          "type": "object"
                        },
                        "maxItems": 10
                      },
                      "versions": {
                        "type": "object",
                        "required": [
                          "archetypes",
                          "capabilities",
                          "checks",
                          "guidance",
                          "models"
                        ],
                        "properties": {
                          "checks": {
                            "type": "string",
                            "maxLength": 64
                          },
                          "models": {
                            "type": "string",
                            "maxLength": 64
                          },
                          "guidance": {
                            "type": "string",
                            "maxLength": 64
                          },
                          "archetypes": {
                            "type": "string",
                            "maxLength": 64
                          },
                          "capabilities": {
                            "type": "string",
                            "maxLength": 64
                          }
                        },
                        "additionalProperties": false
                      },
                      "parameters": {
                        "type": "array",
                        "items": {
                          "type": "object"
                        },
                        "maxItems": 100
                      },
                      "next_cursor": {
                        "type": "string",
                        "maxLength": 512
                      },
                      "detail_lookup": {
                        "type": "string",
                        "maxLength": 500
                      },
                      "org_overrides": {
                        "type": "object"
                      },
                      "contract_version": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "has_org_restrictions": {
                        "type": "boolean"
                      }
                    },
                    "additionalProperties": false
                  },
                  "view": {
                    "const": "models"
                  },
                  "truncation": {
                    "type": "object",
                    "required": [
                      "applied",
                      "reason",
                      "omitted_items",
                      "truncated_values",
                      "original_result_bytes"
                    ],
                    "properties": {
                      "reason": {
                        "const": "response_size_limit"
                      },
                      "applied": {
                        "const": true
                      },
                      "omitted_items": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "truncated_values": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "original_result_bytes": {
                        "type": "integer",
                        "minimum": 1
                      }
                    },
                    "additionalProperties": false
                  }
                }
              },
              {
                "type": "object",
                "required": [
                  "error"
                ],
                "properties": {
                  "hint": {
                    "type": "string",
                    "maxLength": 240
                  },
                  "error": {
                    "enum": [
                      "not_found",
                      "invalid_reference",
                      "invalid_params",
                      "revision_conflict",
                      "idempotency_conflict",
                      "document_too_large",
                      "payload_too_large",
                      "chunk_sequence_invalid",
                      "chunk_digest_mismatch",
                      "chunk_expired",
                      "invalid_cursor",
                      "suite_duplicate_case_id",
                      "suite_unresolved_pair",
                      "suite_schema_invalid",
                      "suite_missing_categories",
                      "suite_weak_normal_oracle",
                      "suite_too_large",
                      "unknown_case_id",
                      "duplicate_case_id",
                      "incomplete_case_selection",
                      "unsupported_node_kind",
                      "research_required",
                      "review_required",
                      "acceptance_required",
                      "qualification_stale",
                      "budget_not_approved",
                      "budget_exhausted",
                      "budget_superseded",
                      "budget_capability_consumed",
                      "budget_capability_expired",
                      "acceptance_case_cost_exceeded",
                      "authoring_budget_exceeded",
                      "authoring_grant_not_active",
                      "insufficient_credits",
                      "billing_anomaly",
                      "activity_stalled",
                      "activity_in_flight",
                      "handoff_approval_required",
                      "handoff_expired",
                      "handoff_not_pending",
                      "handoff_stale",
                      "handoff_disclosure_incomplete",
                      "feature_unavailable",
                      "resource_unavailable",
                      "resource_binding_required",
                      "resource_requirement_not_found",
                      "activity_not_cancellable",
                      "quota_exceeded",
                      "rate_limited",
                      "already_published",
                      "safety_locked",
                      "build_terminal",
                      "commit_capability_expired",
                      "account_unavailable",
                      "limit_unavailable"
                    ]
                  },
                  "field": {
                    "type": "string",
                    "maxLength": 64
                  },
                  "issue": {
                    "type": "object",
                    "required": [
                      "code",
                      "path"
                    ],
                    "properties": {
                      "code": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "path": {
                        "type": "string",
                        "maxLength": 512
                      },
                      "type": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "field": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "operator": {
                        "type": "string",
                        "maxLength": 64
                      }
                    },
                    "additionalProperties": false
                  },
                  "case_id": {
                    "type": "string",
                    "maxLength": 64,
                    "minLength": 1
                  },
                  "truncation": {
                    "type": "object",
                    "required": [
                      "applied",
                      "reason",
                      "omitted_items",
                      "truncated_values",
                      "original_result_bytes"
                    ],
                    "properties": {
                      "reason": {
                        "const": "response_size_limit"
                      },
                      "applied": {
                        "const": true
                      },
                      "omitted_items": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "truncated_values": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "original_result_bytes": {
                        "type": "integer",
                        "minimum": 1
                      }
                    },
                    "additionalProperties": false
                  },
                  "repair_hint": {
                    "type": "string",
                    "maxLength": 500
                  },
                  "review_cost": {
                    "type": "object",
                    "required": [
                      "estimated_credits",
                      "limit_credits",
                      "provider",
                      "model",
                      "basis",
                      "input_token_bound",
                      "output_token_cap",
                      "prompt_bytes",
                      "section_bytes"
                    ],
                    "properties": {
                      "basis": {
                        "const": "utf8_byte_upper_bound"
                      },
                      "model": {
                        "type": "string",
                        "maxLength": 200
                      },
                      "provider": {
                        "type": "string",
                        "maxLength": 200
                      },
                      "prompt_bytes": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "limit_credits": {
                        "type": "string",
                        "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                        "maxLength": 64
                      },
                      "section_bytes": {
                        "type": "object",
                        "required": [],
                        "properties": {
                          "spec": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "intent": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "input_contract": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "output_contract": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "acceptance_suite": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "research_evidence": {
                            "type": "integer",
                            "minimum": 0
                          }
                        },
                        "additionalProperties": false
                      },
                      "output_token_cap": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "estimated_credits": {
                        "type": "string",
                        "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                        "maxLength": 64
                      },
                      "input_token_bound": {
                        "type": "integer",
                        "minimum": 0
                      }
                    },
                    "additionalProperties": false
                  },
                  "limit_credits": {
                    "type": "string",
                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                    "maxLength": 64
                  },
                  "estimated_credits": {
                    "type": "string",
                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                    "maxLength": 64
                  },
                  "missing_categories": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 64
                    },
                    "maxItems": 10,
                    "uniqueItems": true
                  },
                  "retry_after_seconds": {
                    "type": "integer",
                    "maximum": 86400,
                    "minimum": 1
                  }
                },
                "additionalProperties": false
              }
            ]
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "list_run_steps",
          "title": "List StewAI Run Steps",
          "description": "Page through sanitized step summaries or full step results from one owned run.",
          "inputSchema": {
            "type": "object",
            "required": [
              "run_id"
            ],
            "properties": {
              "limit": {
                "type": "integer",
                "maximum": 20,
                "minimum": 1,
                "description": "Steps per page for view=steps: default 10, at most 20."
              },
              "cursor": {
                "type": "string",
                "pattern": "^o:(?:0|[1-9][0-9]*)$",
                "maxLength": 8
              },
              "detail": {
                "enum": [
                  "summary",
                  "full"
                ],
                "description": "For view=steps: summary (default) lists each step's id, title, kind, status, timing and result type; full returns parameters, rendered input and result. view=step always returns the full step."
              },
              "run_id": {
                "type": "string",
                "pattern": "^[0-9A-Za-z]{26}$",
                "maxLength": 26,
                "minLength": 26
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "oneOf": [
              {
                "type": "object",
                "required": [
                  "outcome",
                  "run_id",
                  "run_url",
                  "status",
                  "trace_visibility",
                  "steps",
                  "next_cursor"
                ],
                "properties": {
                  "steps": {
                    "type": "array",
                    "items": {
                      "oneOf": [
                        {
                          "type": "object",
                          "required": [
                            "step_id",
                            "title",
                            "kind",
                            "status",
                            "started_at",
                            "finished_at",
                            "result_type",
                            "redaction_reasons"
                          ],
                          "properties": {
                            "kind": {
                              "type": "string",
                              "maxLength": 32
                            },
                            "title": {
                              "type": "string",
                              "maxLength": 500
                            },
                            "status": {
                              "type": "string",
                              "maxLength": 32
                            },
                            "step_id": {
                              "type": "string",
                              "maxLength": 128
                            },
                            "started_at": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "maxLength": 40
                            },
                            "finished_at": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "maxLength": 40
                            },
                            "result_type": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "maxLength": 32
                            },
                            "diagnostic_notes": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "required": [
                                  "code",
                                  "meaning"
                                ],
                                "properties": {
                                  "code": {
                                    "type": "string",
                                    "maxLength": 64
                                  },
                                  "meaning": {
                                    "type": "string",
                                    "maxLength": 200
                                  }
                                },
                                "additionalProperties": false
                              },
                              "maxItems": 5
                            },
                            "redaction_reasons": {
                              "type": "array",
                              "items": {
                                "enum": [
                                  "sensitive_input",
                                  "opaque_recipe"
                                ]
                              },
                              "maxItems": 2,
                              "uniqueItems": true
                            }
                          },
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "required": [
                            "step_id",
                            "title",
                            "kind",
                            "status",
                            "depends_on",
                            "parameters",
                            "rendered_input",
                            "input_source",
                            "result",
                            "redaction_reasons"
                          ],
                          "properties": {
                            "kind": {
                              "type": "string",
                              "maxLength": 32
                            },
                            "title": {
                              "type": "string",
                              "maxLength": 500
                            },
                            "result": {
                              "type": "object"
                            },
                            "status": {
                              "type": "string",
                              "maxLength": 32
                            },
                            "step_id": {
                              "type": "string",
                              "maxLength": 128
                            },
                            "depends_on": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "maxLength": 128
                              },
                              "maxItems": 1000
                            },
                            "parameters": {
                              "type": "object"
                            },
                            "diagnostics": {
                              "type": "object",
                              "required": [
                                "duration_ms",
                                "input_tokens",
                                "output_tokens"
                              ],
                              "properties": {
                                "duration_ms": {
                                  "type": [
                                    "integer",
                                    "null"
                                  ],
                                  "minimum": 0
                                },
                                "input_tokens": {
                                  "type": [
                                    "integer",
                                    "null"
                                  ],
                                  "minimum": 0
                                },
                                "output_tokens": {
                                  "type": [
                                    "integer",
                                    "null"
                                  ],
                                  "minimum": 0
                                }
                              },
                              "additionalProperties": false
                            },
                            "input_source": {
                              "enum": [
                                "rendered",
                                "configured",
                                "unavailable"
                              ]
                            },
                            "rendered_input": {
                              "oneOf": [
                                {
                                  "type": "string",
                                  "maxLength": 1048576
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "diagnostic_notes": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "required": [
                                  "code",
                                  "meaning"
                                ],
                                "properties": {
                                  "code": {
                                    "type": "string",
                                    "maxLength": 64
                                  },
                                  "meaning": {
                                    "type": "string",
                                    "maxLength": 200
                                  }
                                },
                                "additionalProperties": false
                              },
                              "maxItems": 5
                            },
                            "redaction_reasons": {
                              "type": "array",
                              "items": {
                                "enum": [
                                  "sensitive_input",
                                  "opaque_recipe"
                                ]
                              },
                              "maxItems": 2,
                              "uniqueItems": true
                            }
                          },
                          "additionalProperties": false
                        }
                      ]
                    },
                    "maxItems": 20
                  },
                  "run_id": {
                    "type": "string",
                    "pattern": "^[0-9A-Za-z]{26}$",
                    "maxLength": 26,
                    "minLength": 26
                  },
                  "status": {
                    "enum": [
                      "queued",
                      "running",
                      "done",
                      "failed",
                      "cancelled",
                      "blocked"
                    ]
                  },
                  "outcome": {
                    "const": "steps"
                  },
                  "run_url": {
                    "type": "string",
                    "format": "uri",
                    "maxLength": 2048,
                    "description": "Clickable StewAI page for this run."
                  },
                  "next_cursor": {
                    "oneOf": [
                      {
                        "type": "string",
                        "pattern": "^o:(?:0|[1-9][0-9]*)$",
                        "maxLength": 8
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "observed_at": {
                    "type": "string",
                    "format": "date-time",
                    "maxLength": 64
                  },
                  "provisional": {
                    "type": "boolean",
                    "description": "True while the run is not finished: step statuses and results can still change. Unfinished steps show a pending result."
                  },
                  "trace_visibility": {
                    "enum": [
                      "full",
                      "opaque"
                    ]
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "object",
                "required": [
                  "error"
                ],
                "properties": {
                  "error": {
                    "const": "run_not_found"
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "object",
                "required": [
                  "error",
                  "field",
                  "hint"
                ],
                "properties": {
                  "hint": {
                    "type": "string",
                    "maxLength": 240
                  },
                  "error": {
                    "const": "invalid_params"
                  },
                  "field": {
                    "type": "string",
                    "maxLength": 64
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "object",
                "required": [
                  "error"
                ],
                "properties": {
                  "error": {
                    "const": "result_unavailable"
                  }
                },
                "additionalProperties": false
              }
            ]
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "list_runs",
          "title": "List StewAI Runs",
          "description": "List recent runs owned by the authenticated account, with optional recipe and status filters.",
          "inputSchema": {
            "type": "object",
            "required": [],
            "properties": {
              "limit": {
                "type": "integer",
                "maximum": 20,
                "minimum": 1
              },
              "cursor": {
                "type": "string",
                "maxLength": 1024
              },
              "status": {
                "enum": [
                  "queued",
                  "running",
                  "done",
                  "failed",
                  "cancelled",
                  "blocked"
                ]
              },
              "recipe_ref": {
                "type": "string",
                "maxLength": 4096
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "oneOf": [
              {
                "type": "object",
                "required": [
                  "view",
                  "runs",
                  "next_cursor"
                ],
                "properties": {
                  "runs": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "run_id",
                        "recipe_id",
                        "recipe_title",
                        "status",
                        "created_at",
                        "updated_at",
                        "charged_credits"
                      ],
                      "properties": {
                        "run_id": {
                          "type": "string",
                          "pattern": "^[0-9A-Za-z]{26}$",
                          "maxLength": 26,
                          "minLength": 26
                        },
                        "status": {
                          "enum": [
                            "queued",
                            "running",
                            "done",
                            "failed",
                            "cancelled",
                            "blocked"
                          ]
                        },
                        "recipe_id": {
                          "type": "string"
                        },
                        "created_at": {
                          "type": "string"
                        },
                        "updated_at": {
                          "type": "string"
                        },
                        "recipe_title": {
                          "type": "string",
                          "maxLength": 200
                        },
                        "charged_credits": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "maxLength": 32,
                          "description": "Credits charged by a finished run; null while it is active."
                        }
                      },
                      "additionalProperties": false
                    },
                    "maxItems": 20
                  },
                  "view": {
                    "const": "history"
                  },
                  "next_cursor": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 1024
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "object",
                "required": [
                  "error"
                ],
                "properties": {
                  "error": {
                    "const": "invalid_history_query"
                  }
                },
                "additionalProperties": false
              }
            ]
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "preflight_recipe_build",
          "title": "Preflight a Recipe Build",
          "description": "Verify commit readiness and issue a short-lived commit capability for one exact qualified build revision.",
          "inputSchema": {
            "type": "object",
            "required": [
              "build_ref",
              "revision",
              "idempotency_key"
            ],
            "properties": {
              "revision": {
                "type": "string",
                "pattern": "^[0-9a-f]{64}$",
                "maxLength": 64
              },
              "build_ref": {
                "type": "string",
                "maxLength": 4096,
                "minLength": 1
              },
              "idempotency_key": {
                "type": "string",
                "pattern": "^[\\x20-\\x7e]+$",
                "maxLength": 200,
                "minLength": 1
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "oneOf": [
              {
                "type": "object",
                "required": [
                  "commit_capability",
                  "expires_in_seconds",
                  "effects",
                  "evidence"
                ],
                "properties": {
                  "effects": {
                    "type": "array",
                    "items": {
                      "enum": [
                        "create_private_revision_1",
                        "keep_recipe_unlisted",
                        "keep_recipe_unreviewed"
                      ]
                    },
                    "maxItems": 3,
                    "minItems": 3
                  },
                  "evidence": {
                    "type": "object",
                    "required": [
                      "revision",
                      "review",
                      "research",
                      "acceptance",
                      "billing"
                    ],
                    "properties": {
                      "review": {
                        "const": "passed"
                      },
                      "billing": {
                        "const": "settled"
                      },
                      "research": {
                        "enum": [
                          "recorded",
                          "not_required"
                        ]
                      },
                      "revision": {
                        "type": "string",
                        "pattern": "^[0-9a-f]{64}$",
                        "maxLength": 64
                      },
                      "acceptance": {
                        "enum": [
                          "full_suite_passed",
                          "accepted_with_limitations"
                        ]
                      },
                      "accepted_limitations": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "required": [
                            "case_id",
                            "assertion_id",
                            "acknowledgement"
                          ],
                          "properties": {
                            "case_id": {
                              "type": "string",
                              "maxLength": 64
                            },
                            "assertion_id": {
                              "type": "string",
                              "maxLength": 64
                            },
                            "acknowledgement": {
                              "type": "string",
                              "maxLength": 500
                            }
                          },
                          "additionalProperties": false
                        },
                        "maxItems": 10
                      },
                      "human_review_required": {
                        "const": true
                      }
                    },
                    "additionalProperties": false
                  },
                  "truncation": {
                    "type": "object",
                    "required": [
                      "applied",
                      "reason",
                      "omitted_items",
                      "truncated_values",
                      "original_result_bytes"
                    ],
                    "properties": {
                      "reason": {
                        "const": "response_size_limit"
                      },
                      "applied": {
                        "const": true
                      },
                      "omitted_items": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "truncated_values": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "original_result_bytes": {
                        "type": "integer",
                        "minimum": 1
                      }
                    },
                    "additionalProperties": false
                  },
                  "commit_capability": {
                    "type": "string",
                    "maxLength": 4096,
                    "minLength": 1
                  },
                  "expires_in_seconds": {
                    "type": "integer",
                    "maximum": 86400,
                    "minimum": 1
                  }
                }
              },
              {
                "type": "object",
                "required": [
                  "recipe_ulid",
                  "rev",
                  "sha",
                  "visibility",
                  "listed",
                  "editor_url"
                ],
                "properties": {
                  "rev": {
                    "const": 1
                  },
                  "sha": {
                    "type": "string",
                    "pattern": "^[0-9a-f]{64}$",
                    "maxLength": 64
                  },
                  "listed": {
                    "const": false
                  },
                  "evidence": {
                    "type": "object",
                    "required": [
                      "revision",
                      "review",
                      "research",
                      "acceptance",
                      "billing"
                    ],
                    "properties": {
                      "review": {
                        "const": "passed"
                      },
                      "billing": {
                        "const": "settled"
                      },
                      "research": {
                        "enum": [
                          "recorded",
                          "not_required"
                        ]
                      },
                      "revision": {
                        "type": "string",
                        "pattern": "^[0-9a-f]{64}$",
                        "maxLength": 64
                      },
                      "acceptance": {
                        "enum": [
                          "full_suite_passed",
                          "accepted_with_limitations"
                        ]
                      },
                      "accepted_limitations": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "required": [
                            "case_id",
                            "assertion_id",
                            "acknowledgement"
                          ],
                          "properties": {
                            "case_id": {
                              "type": "string",
                              "maxLength": 64
                            },
                            "assertion_id": {
                              "type": "string",
                              "maxLength": 64
                            },
                            "acknowledgement": {
                              "type": "string",
                              "maxLength": 500
                            }
                          },
                          "additionalProperties": false
                        },
                        "maxItems": 10
                      },
                      "human_review_required": {
                        "const": true
                      }
                    },
                    "additionalProperties": false
                  },
                  "runnable": {
                    "not": {}
                  },
                  "editor_url": {
                    "type": "string",
                    "maxLength": 512
                  },
                  "recipe_ref": {
                    "not": {}
                  },
                  "truncation": {
                    "type": "object",
                    "required": [
                      "applied",
                      "reason",
                      "omitted_items",
                      "truncated_values",
                      "original_result_bytes"
                    ],
                    "properties": {
                      "reason": {
                        "const": "response_size_limit"
                      },
                      "applied": {
                        "const": true
                      },
                      "omitted_items": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "truncated_values": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "original_result_bytes": {
                        "type": "integer",
                        "minimum": 1
                      }
                    },
                    "additionalProperties": false
                  },
                  "visibility": {
                    "const": "private"
                  },
                  "next_action": {
                    "not": {}
                  },
                  "recipe_ulid": {
                    "type": "string",
                    "maxLength": 26,
                    "minLength": 1
                  }
                }
              },
              {
                "type": "object",
                "required": [
                  "recipe_ulid",
                  "rev",
                  "sha",
                  "visibility",
                  "listed",
                  "editor_url",
                  "recipe_ref",
                  "runnable",
                  "next_action"
                ],
                "properties": {
                  "rev": {
                    "const": 1
                  },
                  "sha": {
                    "type": "string",
                    "pattern": "^[0-9a-f]{64}$",
                    "maxLength": 64
                  },
                  "listed": {
                    "const": false
                  },
                  "evidence": {
                    "type": "object",
                    "required": [
                      "revision",
                      "review",
                      "research",
                      "acceptance",
                      "billing"
                    ],
                    "properties": {
                      "review": {
                        "const": "passed"
                      },
                      "billing": {
                        "const": "settled"
                      },
                      "research": {
                        "enum": [
                          "recorded",
                          "not_required"
                        ]
                      },
                      "revision": {
                        "type": "string",
                        "pattern": "^[0-9a-f]{64}$",
                        "maxLength": 64
                      },
                      "acceptance": {
                        "enum": [
                          "full_suite_passed",
                          "accepted_with_limitations"
                        ]
                      },
                      "accepted_limitations": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "required": [
                            "case_id",
                            "assertion_id",
                            "acknowledgement"
                          ],
                          "properties": {
                            "case_id": {
                              "type": "string",
                              "maxLength": 64
                            },
                            "assertion_id": {
                              "type": "string",
                              "maxLength": 64
                            },
                            "acknowledgement": {
                              "type": "string",
                              "maxLength": 500
                            }
                          },
                          "additionalProperties": false
                        },
                        "maxItems": 10
                      },
                      "human_review_required": {
                        "const": true
                      }
                    },
                    "additionalProperties": false
                  },
                  "runnable": {
                    "type": "boolean"
                  },
                  "editor_url": {
                    "type": "string",
                    "maxLength": 512
                  },
                  "recipe_ref": {
                    "type": "string",
                    "maxLength": 4096,
                    "minLength": 1
                  },
                  "truncation": {
                    "type": "object",
                    "required": [
                      "applied",
                      "reason",
                      "omitted_items",
                      "truncated_values",
                      "original_result_bytes"
                    ],
                    "properties": {
                      "reason": {
                        "const": "response_size_limit"
                      },
                      "applied": {
                        "const": true
                      },
                      "omitted_items": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "truncated_values": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "original_result_bytes": {
                        "type": "integer",
                        "minimum": 1
                      }
                    },
                    "additionalProperties": false
                  },
                  "visibility": {
                    "const": "private"
                  },
                  "next_action": {
                    "const": "dry_run_recipe"
                  },
                  "recipe_ulid": {
                    "type": "string",
                    "maxLength": 26,
                    "minLength": 1
                  }
                }
              },
              {
                "type": "object",
                "required": [
                  "error"
                ],
                "properties": {
                  "hint": {
                    "type": "string",
                    "maxLength": 240
                  },
                  "error": {
                    "enum": [
                      "not_found",
                      "invalid_reference",
                      "invalid_params",
                      "revision_conflict",
                      "idempotency_conflict",
                      "document_too_large",
                      "payload_too_large",
                      "chunk_sequence_invalid",
                      "chunk_digest_mismatch",
                      "chunk_expired",
                      "invalid_cursor",
                      "suite_duplicate_case_id",
                      "suite_unresolved_pair",
                      "suite_schema_invalid",
                      "suite_missing_categories",
                      "suite_weak_normal_oracle",
                      "suite_too_large",
                      "unknown_case_id",
                      "duplicate_case_id",
                      "incomplete_case_selection",
                      "unsupported_node_kind",
                      "research_required",
                      "review_required",
                      "acceptance_required",
                      "qualification_stale",
                      "budget_not_approved",
                      "budget_exhausted",
                      "budget_superseded",
                      "budget_capability_consumed",
                      "budget_capability_expired",
                      "acceptance_case_cost_exceeded",
                      "authoring_budget_exceeded",
                      "authoring_grant_not_active",
                      "insufficient_credits",
                      "billing_anomaly",
                      "activity_stalled",
                      "activity_in_flight",
                      "handoff_approval_required",
                      "handoff_expired",
                      "handoff_not_pending",
                      "handoff_stale",
                      "handoff_disclosure_incomplete",
                      "feature_unavailable",
                      "resource_unavailable",
                      "resource_binding_required",
                      "resource_requirement_not_found",
                      "activity_not_cancellable",
                      "quota_exceeded",
                      "rate_limited",
                      "already_published",
                      "safety_locked",
                      "build_terminal",
                      "commit_capability_expired",
                      "account_unavailable",
                      "limit_unavailable"
                    ]
                  },
                  "field": {
                    "type": "string",
                    "maxLength": 64
                  },
                  "issue": {
                    "type": "object",
                    "required": [
                      "code",
                      "path"
                    ],
                    "properties": {
                      "code": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "path": {
                        "type": "string",
                        "maxLength": 512
                      },
                      "type": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "field": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "operator": {
                        "type": "string",
                        "maxLength": 64
                      }
                    },
                    "additionalProperties": false
                  },
                  "case_id": {
                    "type": "string",
                    "maxLength": 64,
                    "minLength": 1
                  },
                  "truncation": {
                    "type": "object",
                    "required": [
                      "applied",
                      "reason",
                      "omitted_items",
                      "truncated_values",
                      "original_result_bytes"
                    ],
                    "properties": {
                      "reason": {
                        "const": "response_size_limit"
                      },
                      "applied": {
                        "const": true
                      },
                      "omitted_items": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "truncated_values": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "original_result_bytes": {
                        "type": "integer",
                        "minimum": 1
                      }
                    },
                    "additionalProperties": false
                  },
                  "repair_hint": {
                    "type": "string",
                    "maxLength": 500
                  },
                  "review_cost": {
                    "type": "object",
                    "required": [
                      "estimated_credits",
                      "limit_credits",
                      "provider",
                      "model",
                      "basis",
                      "input_token_bound",
                      "output_token_cap",
                      "prompt_bytes",
                      "section_bytes"
                    ],
                    "properties": {
                      "basis": {
                        "const": "utf8_byte_upper_bound"
                      },
                      "model": {
                        "type": "string",
                        "maxLength": 200
                      },
                      "provider": {
                        "type": "string",
                        "maxLength": 200
                      },
                      "prompt_bytes": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "limit_credits": {
                        "type": "string",
                        "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                        "maxLength": 64
                      },
                      "section_bytes": {
                        "type": "object",
                        "required": [],
                        "properties": {
                          "spec": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "intent": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "input_contract": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "output_contract": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "acceptance_suite": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "research_evidence": {
                            "type": "integer",
                            "minimum": 0
                          }
                        },
                        "additionalProperties": false
                      },
                      "output_token_cap": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "estimated_credits": {
                        "type": "string",
                        "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                        "maxLength": 64
                      },
                      "input_token_bound": {
                        "type": "integer",
                        "minimum": 0
                      }
                    },
                    "additionalProperties": false
                  },
                  "next_actions": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "gate",
                        "tool",
                        "instruction"
                      ],
                      "properties": {
                        "gate": {
                          "type": "string",
                          "maxLength": 64
                        },
                        "tool": {
                          "type": "string",
                          "maxLength": 64
                        },
                        "instruction": {
                          "type": "string",
                          "maxLength": 500
                        }
                      },
                      "additionalProperties": false
                    },
                    "maxItems": 10
                  },
                  "limit_credits": {
                    "type": "string",
                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                    "maxLength": 64
                  },
                  "remaining_gates": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 64
                    },
                    "maxItems": 10
                  },
                  "estimated_credits": {
                    "type": "string",
                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                    "maxLength": 64
                  },
                  "missing_categories": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 64
                    },
                    "maxItems": 10,
                    "uniqueItems": true
                  },
                  "retry_after_seconds": {
                    "type": "integer",
                    "maximum": 86400,
                    "minimum": 1
                  }
                },
                "additionalProperties": false
              }
            ]
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "quote_recipe_acceptance",
          "title": "Quote Recipe Acceptance",
          "description": "Quote selected or complete behavioral acceptance cases without starting them.",
          "inputSchema": {
            "type": "object",
            "required": [
              "build_ref",
              "revision",
              "idempotency_key"
            ],
            "properties": {
              "case_ids": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 64
                },
                "maxItems": 50,
                "minItems": 1,
                "uniqueItems": true
              },
              "revision": {
                "type": "string",
                "pattern": "^[0-9a-f]{64}$",
                "maxLength": 64
              },
              "build_ref": {
                "type": "string",
                "maxLength": 4096,
                "minLength": 1
              },
              "idempotency_key": {
                "type": "string",
                "pattern": "^[\\x20-\\x7e]+$",
                "maxLength": 200,
                "minLength": 1
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "oneOf": [
              {
                "type": "object",
                "required": [
                  "outcome",
                  "kind",
                  "max_credits",
                  "available_credits",
                  "remaining_build_budget",
                  "budget_capability",
                  "expires_at",
                  "budget_state",
                  "next_action"
                ],
                "properties": {
                  "kind": {
                    "enum": [
                      "review",
                      "acceptance"
                    ]
                  },
                  "outcome": {
                    "const": "quoted"
                  },
                  "expires_at": {
                    "type": "string",
                    "format": "date-time",
                    "maxLength": 64
                  },
                  "truncation": {
                    "type": "object",
                    "required": [
                      "applied",
                      "reason",
                      "omitted_items",
                      "truncated_values",
                      "original_result_bytes"
                    ],
                    "properties": {
                      "reason": {
                        "const": "response_size_limit"
                      },
                      "applied": {
                        "const": true
                      },
                      "omitted_items": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "truncated_values": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "original_result_bytes": {
                        "type": "integer",
                        "minimum": 1
                      }
                    },
                    "additionalProperties": false
                  },
                  "max_credits": {
                    "type": "string",
                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                    "maxLength": 64
                  },
                  "next_action": {
                    "type": "object",
                    "required": [
                      "tool",
                      "operation",
                      "instruction"
                    ],
                    "properties": {
                      "tool": {
                        "const": "update_recipe_build"
                      },
                      "operation": {
                        "const": "set_budget"
                      },
                      "instruction": {
                        "type": "string",
                        "maxLength": 300
                      }
                    },
                    "additionalProperties": false
                  },
                  "review_cost": {
                    "type": "object",
                    "required": [
                      "estimated_credits",
                      "limit_credits",
                      "provider",
                      "model",
                      "basis",
                      "input_token_bound",
                      "output_token_cap",
                      "prompt_bytes",
                      "section_bytes"
                    ],
                    "properties": {
                      "basis": {
                        "const": "utf8_byte_upper_bound"
                      },
                      "model": {
                        "type": "string",
                        "maxLength": 200
                      },
                      "provider": {
                        "type": "string",
                        "maxLength": 200
                      },
                      "prompt_bytes": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "limit_credits": {
                        "type": "string",
                        "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                        "maxLength": 64
                      },
                      "section_bytes": {
                        "type": "object",
                        "required": [],
                        "properties": {
                          "spec": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "intent": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "input_contract": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "output_contract": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "acceptance_suite": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "research_evidence": {
                            "type": "integer",
                            "minimum": 0
                          }
                        },
                        "additionalProperties": false
                      },
                      "output_token_cap": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "estimated_credits": {
                        "type": "string",
                        "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                        "maxLength": 64
                      },
                      "input_token_bound": {
                        "type": "integer",
                        "minimum": 0
                      }
                    },
                    "additionalProperties": false
                  },
                  "budget_state": {
                    "enum": [
                      "not_redeemed",
                      "active"
                    ]
                  },
                  "acceptance_cost": {
                    "type": "object",
                    "required": [
                      "basis",
                      "case_count",
                      "cases",
                      "note"
                    ],
                    "properties": {
                      "note": {
                        "type": "string",
                        "maxLength": 400
                      },
                      "basis": {
                        "const": "enforced_input_bytes_and_output_caps"
                      },
                      "cases": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "required": [
                            "case_id",
                            "max_credits",
                            "steps"
                          ],
                          "properties": {
                            "steps": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "required": [
                                  "step_id",
                                  "model",
                                  "input_basis",
                                  "input_token_bound",
                                  "output_token_cap",
                                  "attempt_allowance",
                                  "provider_floor_credits"
                                ],
                                "properties": {
                                  "model": {
                                    "type": "string",
                                    "maxLength": 200
                                  },
                                  "step_id": {
                                    "type": "string",
                                    "maxLength": 128
                                  },
                                  "input_basis": {
                                    "enum": [
                                      "acceptance_message_fence",
                                      "acceptance_schema_context_fallback"
                                    ]
                                  },
                                  "output_token_cap": {
                                    "type": "integer",
                                    "minimum": 0
                                  },
                                  "attempt_allowance": {
                                    "type": "integer",
                                    "minimum": 1
                                  },
                                  "input_token_bound": {
                                    "type": "integer",
                                    "minimum": 0
                                  },
                                  "provider_floor_credits": {
                                    "type": "string",
                                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                                    "maxLength": 64
                                  }
                                },
                                "additionalProperties": false
                              },
                              "maxItems": 2
                            },
                            "case_id": {
                              "type": "string",
                              "maxLength": 64
                            },
                            "max_credits": {
                              "type": "string",
                              "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                              "maxLength": 64
                            }
                          },
                          "additionalProperties": false
                        },
                        "maxItems": 3
                      },
                      "forecast": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "required": [
                            "case_id",
                            "expected_credits",
                            "high_credits",
                            "hard_credits",
                            "basis",
                            "sample_count"
                          ],
                          "properties": {
                            "basis": {
                              "enum": [
                                "settled_same_revision_case",
                                "settled_same_revision",
                                "provider_usage_same_recipe_step",
                                "platform_model_usage",
                                "static_fraction",
                                "hard_bound"
                              ]
                            },
                            "case_id": {
                              "type": "string",
                              "maxLength": 64
                            },
                            "hard_credits": {
                              "type": "string",
                              "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                              "maxLength": 64
                            },
                            "high_credits": {
                              "type": "string",
                              "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                              "maxLength": 64
                            },
                            "sample_count": {
                              "type": "integer",
                              "minimum": 0
                            },
                            "expected_credits": {
                              "type": "string",
                              "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                              "maxLength": 64
                            }
                          },
                          "additionalProperties": false
                        },
                        "maxItems": 3
                      },
                      "cap_policy": {
                        "type": "string",
                        "maxLength": 120
                      },
                      "case_count": {
                        "type": "integer",
                        "maximum": 50,
                        "minimum": 1
                      },
                      "forecast_basis": {
                        "type": "object",
                        "maxProperties": 8,
                        "additionalProperties": {
                          "type": "integer",
                          "minimum": 0
                        }
                      },
                      "expected_credits": {
                        "type": "string",
                        "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                        "maxLength": 64
                      },
                      "hard_bound_credits": {
                        "type": "string",
                        "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                        "maxLength": 64
                      },
                      "observed_case_costs": {
                        "anyOf": [
                          {
                            "type": "null"
                          },
                          {
                            "type": "object",
                            "required": [
                              "sample_count",
                              "minimum_credits",
                              "maximum_credits",
                              "basis"
                            ],
                            "properties": {
                              "basis": {
                                "const": "recent_settled_cases_same_revision_not_a_forecast"
                              },
                              "sample_count": {
                                "type": "integer",
                                "maximum": 20,
                                "minimum": 1
                              },
                              "maximum_credits": {
                                "type": "string",
                                "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                                "maxLength": 64
                              },
                              "minimum_credits": {
                                "type": "string",
                                "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                                "maxLength": 64
                              }
                            },
                            "additionalProperties": false
                          }
                        ]
                      },
                      "approval_cap_credits": {
                        "type": "string",
                        "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                        "maxLength": 64
                      },
                      "expected_high_credits": {
                        "type": "string",
                        "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                        "maxLength": 64
                      }
                    },
                    "additionalProperties": false
                  },
                  "planned_fan_out": {
                    "type": "integer",
                    "maximum": 50,
                    "minimum": 1
                  },
                  "available_credits": {
                    "type": "string",
                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                    "maxLength": 64,
                    "description": "Wallet funds currently available, independent of this build approval."
                  },
                  "budget_capability": {
                    "type": "string",
                    "maxLength": 4096,
                    "minLength": 1
                  },
                  "unsupported_nodes": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 64
                    },
                    "maxItems": 24
                  },
                  "qualification_route": {
                    "enum": [
                      "automatic",
                      "conditional",
                      "supervised"
                    ]
                  },
                  "handoff_requirements": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "requirement_id",
                        "node_id",
                        "node_type",
                        "node_path",
                        "qualification_route",
                        "reason",
                        "required_decision",
                        "resource_paths",
                        "parameter_digest"
                      ],
                      "properties": {
                        "reason": {
                          "type": "string",
                          "maxLength": 128
                        },
                        "node_id": {
                          "type": "string",
                          "maxLength": 128
                        },
                        "node_path": {
                          "type": "array",
                          "items": {
                            "type": [
                              "string",
                              "integer"
                            ]
                          },
                          "maxItems": 32
                        },
                        "node_type": {
                          "type": "string",
                          "maxLength": 64
                        },
                        "requirement_id": {
                          "type": "string",
                          "pattern": "^[0-9a-f]{32}$"
                        },
                        "resource_paths": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "maxLength": 256
                          },
                          "maxItems": 8
                        },
                        "parameter_digest": {
                          "type": "string",
                          "pattern": "^[0-9a-f]{64}$",
                          "maxLength": 64
                        },
                        "required_decision": {
                          "type": "string",
                          "maxLength": 128
                        },
                        "qualification_route": {
                          "enum": [
                            "conditional",
                            "supervised"
                          ]
                        }
                      },
                      "additionalProperties": false
                    },
                    "maxItems": 100,
                    "description": "Bounded quote preview. When incomplete, full acceptance creates the handoff with complete effects and resource requirements for approval."
                  },
                  "remaining_build_budget": {
                    "type": "string",
                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                    "maxLength": 64,
                    "description": "Unspent and unreserved cumulative authority in the active grant for this build revision; zero before redemption."
                  },
                  "handoff_requirement_count": {
                    "type": "integer",
                    "maximum": 100,
                    "minimum": 0
                  },
                  "handoff_requirements_complete": {
                    "type": "boolean"
                  }
                }
              },
              {
                "type": "object",
                "required": [
                  "outcome",
                  "kind",
                  "max_credits",
                  "available_credits",
                  "remaining_build_budget",
                  "budget_state",
                  "next_action"
                ],
                "properties": {
                  "kind": {
                    "enum": [
                      "review",
                      "acceptance"
                    ]
                  },
                  "outcome": {
                    "const": "quoted"
                  },
                  "expires_at": {
                    "not": {}
                  },
                  "truncation": {
                    "type": "object",
                    "required": [
                      "applied",
                      "reason",
                      "omitted_items",
                      "truncated_values",
                      "original_result_bytes"
                    ],
                    "properties": {
                      "reason": {
                        "const": "response_size_limit"
                      },
                      "applied": {
                        "const": true
                      },
                      "omitted_items": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "truncated_values": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "original_result_bytes": {
                        "type": "integer",
                        "minimum": 1
                      }
                    },
                    "additionalProperties": false
                  },
                  "max_credits": {
                    "type": "string",
                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                    "maxLength": 64
                  },
                  "next_action": {
                    "oneOf": [
                      {
                        "type": "object",
                        "required": [
                          "tool",
                          "mode",
                          "instruction"
                        ],
                        "properties": {
                          "mode": {
                            "const": "execute"
                          },
                          "tool": {
                            "const": "review_recipe_build"
                          },
                          "instruction": {
                            "type": "string",
                            "maxLength": 300
                          }
                        },
                        "additionalProperties": false
                      },
                      {
                        "type": "object",
                        "required": [
                          "tool",
                          "mode",
                          "instruction"
                        ],
                        "properties": {
                          "mode": {
                            "const": "full"
                          },
                          "tool": {
                            "const": "run_recipe_acceptance"
                          },
                          "instruction": {
                            "type": "string",
                            "maxLength": 300
                          }
                        },
                        "additionalProperties": false
                      },
                      {
                        "type": "object",
                        "required": [
                          "tool",
                          "mode",
                          "case_ids",
                          "instruction"
                        ],
                        "properties": {
                          "mode": {
                            "const": "selected_cases"
                          },
                          "tool": {
                            "const": "run_recipe_acceptance"
                          },
                          "case_ids": {
                            "type": "array",
                            "items": {
                              "type": "string",
                              "maxLength": 64
                            },
                            "maxItems": 50,
                            "minItems": 1,
                            "uniqueItems": true
                          },
                          "instruction": {
                            "type": "string",
                            "maxLength": 300
                          }
                        },
                        "additionalProperties": false
                      },
                      {
                        "type": "object",
                        "required": [
                          "tool",
                          "activity_ref",
                          "instruction"
                        ],
                        "properties": {
                          "tool": {
                            "const": "get_recipe_build_activity"
                          },
                          "instruction": {
                            "type": "string",
                            "maxLength": 300
                          },
                          "activity_ref": {
                            "type": "string",
                            "maxLength": 4096,
                            "minLength": 1
                          }
                        },
                        "additionalProperties": false
                      }
                    ]
                  },
                  "review_cost": {
                    "type": "object",
                    "required": [
                      "estimated_credits",
                      "limit_credits",
                      "provider",
                      "model",
                      "basis",
                      "input_token_bound",
                      "output_token_cap",
                      "prompt_bytes",
                      "section_bytes"
                    ],
                    "properties": {
                      "basis": {
                        "const": "utf8_byte_upper_bound"
                      },
                      "model": {
                        "type": "string",
                        "maxLength": 200
                      },
                      "provider": {
                        "type": "string",
                        "maxLength": 200
                      },
                      "prompt_bytes": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "limit_credits": {
                        "type": "string",
                        "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                        "maxLength": 64
                      },
                      "section_bytes": {
                        "type": "object",
                        "required": [],
                        "properties": {
                          "spec": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "intent": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "input_contract": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "output_contract": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "acceptance_suite": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "research_evidence": {
                            "type": "integer",
                            "minimum": 0
                          }
                        },
                        "additionalProperties": false
                      },
                      "output_token_cap": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "estimated_credits": {
                        "type": "string",
                        "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                        "maxLength": 64
                      },
                      "input_token_bound": {
                        "type": "integer",
                        "minimum": 0
                      }
                    },
                    "additionalProperties": false
                  },
                  "budget_state": {
                    "enum": [
                      "not_redeemed",
                      "active"
                    ]
                  },
                  "acceptance_cost": {
                    "type": "object",
                    "required": [
                      "basis",
                      "case_count",
                      "cases",
                      "note"
                    ],
                    "properties": {
                      "note": {
                        "type": "string",
                        "maxLength": 400
                      },
                      "basis": {
                        "const": "enforced_input_bytes_and_output_caps"
                      },
                      "cases": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "required": [
                            "case_id",
                            "max_credits",
                            "steps"
                          ],
                          "properties": {
                            "steps": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "required": [
                                  "step_id",
                                  "model",
                                  "input_basis",
                                  "input_token_bound",
                                  "output_token_cap",
                                  "attempt_allowance",
                                  "provider_floor_credits"
                                ],
                                "properties": {
                                  "model": {
                                    "type": "string",
                                    "maxLength": 200
                                  },
                                  "step_id": {
                                    "type": "string",
                                    "maxLength": 128
                                  },
                                  "input_basis": {
                                    "enum": [
                                      "acceptance_message_fence",
                                      "acceptance_schema_context_fallback"
                                    ]
                                  },
                                  "output_token_cap": {
                                    "type": "integer",
                                    "minimum": 0
                                  },
                                  "attempt_allowance": {
                                    "type": "integer",
                                    "minimum": 1
                                  },
                                  "input_token_bound": {
                                    "type": "integer",
                                    "minimum": 0
                                  },
                                  "provider_floor_credits": {
                                    "type": "string",
                                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                                    "maxLength": 64
                                  }
                                },
                                "additionalProperties": false
                              },
                              "maxItems": 2
                            },
                            "case_id": {
                              "type": "string",
                              "maxLength": 64
                            },
                            "max_credits": {
                              "type": "string",
                              "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                              "maxLength": 64
                            }
                          },
                          "additionalProperties": false
                        },
                        "maxItems": 3
                      },
                      "forecast": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "required": [
                            "case_id",
                            "expected_credits",
                            "high_credits",
                            "hard_credits",
                            "basis",
                            "sample_count"
                          ],
                          "properties": {
                            "basis": {
                              "enum": [
                                "settled_same_revision_case",
                                "settled_same_revision",
                                "provider_usage_same_recipe_step",
                                "platform_model_usage",
                                "static_fraction",
                                "hard_bound"
                              ]
                            },
                            "case_id": {
                              "type": "string",
                              "maxLength": 64
                            },
                            "hard_credits": {
                              "type": "string",
                              "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                              "maxLength": 64
                            },
                            "high_credits": {
                              "type": "string",
                              "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                              "maxLength": 64
                            },
                            "sample_count": {
                              "type": "integer",
                              "minimum": 0
                            },
                            "expected_credits": {
                              "type": "string",
                              "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                              "maxLength": 64
                            }
                          },
                          "additionalProperties": false
                        },
                        "maxItems": 3
                      },
                      "cap_policy": {
                        "type": "string",
                        "maxLength": 120
                      },
                      "case_count": {
                        "type": "integer",
                        "maximum": 50,
                        "minimum": 1
                      },
                      "forecast_basis": {
                        "type": "object",
                        "maxProperties": 8,
                        "additionalProperties": {
                          "type": "integer",
                          "minimum": 0
                        }
                      },
                      "expected_credits": {
                        "type": "string",
                        "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                        "maxLength": 64
                      },
                      "hard_bound_credits": {
                        "type": "string",
                        "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                        "maxLength": 64
                      },
                      "observed_case_costs": {
                        "anyOf": [
                          {
                            "type": "null"
                          },
                          {
                            "type": "object",
                            "required": [
                              "sample_count",
                              "minimum_credits",
                              "maximum_credits",
                              "basis"
                            ],
                            "properties": {
                              "basis": {
                                "const": "recent_settled_cases_same_revision_not_a_forecast"
                              },
                              "sample_count": {
                                "type": "integer",
                                "maximum": 20,
                                "minimum": 1
                              },
                              "maximum_credits": {
                                "type": "string",
                                "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                                "maxLength": 64
                              },
                              "minimum_credits": {
                                "type": "string",
                                "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                                "maxLength": 64
                              }
                            },
                            "additionalProperties": false
                          }
                        ]
                      },
                      "approval_cap_credits": {
                        "type": "string",
                        "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                        "maxLength": 64
                      },
                      "expected_high_credits": {
                        "type": "string",
                        "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                        "maxLength": 64
                      }
                    },
                    "additionalProperties": false
                  },
                  "planned_fan_out": {
                    "type": "integer",
                    "maximum": 50,
                    "minimum": 1
                  },
                  "available_credits": {
                    "type": "string",
                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                    "maxLength": 64,
                    "description": "Wallet funds currently available, independent of this build approval."
                  },
                  "budget_capability": {
                    "not": {}
                  },
                  "unsupported_nodes": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 64
                    },
                    "maxItems": 24
                  },
                  "qualification_route": {
                    "enum": [
                      "automatic",
                      "conditional",
                      "supervised"
                    ]
                  },
                  "handoff_requirements": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "requirement_id",
                        "node_id",
                        "node_type",
                        "node_path",
                        "qualification_route",
                        "reason",
                        "required_decision",
                        "resource_paths",
                        "parameter_digest"
                      ],
                      "properties": {
                        "reason": {
                          "type": "string",
                          "maxLength": 128
                        },
                        "node_id": {
                          "type": "string",
                          "maxLength": 128
                        },
                        "node_path": {
                          "type": "array",
                          "items": {
                            "type": [
                              "string",
                              "integer"
                            ]
                          },
                          "maxItems": 32
                        },
                        "node_type": {
                          "type": "string",
                          "maxLength": 64
                        },
                        "requirement_id": {
                          "type": "string",
                          "pattern": "^[0-9a-f]{32}$"
                        },
                        "resource_paths": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "maxLength": 256
                          },
                          "maxItems": 8
                        },
                        "parameter_digest": {
                          "type": "string",
                          "pattern": "^[0-9a-f]{64}$",
                          "maxLength": 64
                        },
                        "required_decision": {
                          "type": "string",
                          "maxLength": 128
                        },
                        "qualification_route": {
                          "enum": [
                            "conditional",
                            "supervised"
                          ]
                        }
                      },
                      "additionalProperties": false
                    },
                    "maxItems": 100,
                    "description": "Bounded quote preview. When incomplete, full acceptance creates the handoff with complete effects and resource requirements for approval."
                  },
                  "remaining_build_budget": {
                    "type": "string",
                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                    "maxLength": 64,
                    "description": "Unspent and unreserved cumulative authority in the active grant for this build revision; zero before redemption."
                  },
                  "handoff_requirement_count": {
                    "type": "integer",
                    "maximum": 100,
                    "minimum": 0
                  },
                  "handoff_requirements_complete": {
                    "type": "boolean"
                  }
                }
              },
              {
                "type": "object",
                "required": [
                  "error"
                ],
                "properties": {
                  "hint": {
                    "type": "string",
                    "maxLength": 240
                  },
                  "error": {
                    "enum": [
                      "not_found",
                      "invalid_reference",
                      "invalid_params",
                      "revision_conflict",
                      "idempotency_conflict",
                      "document_too_large",
                      "payload_too_large",
                      "chunk_sequence_invalid",
                      "chunk_digest_mismatch",
                      "chunk_expired",
                      "invalid_cursor",
                      "suite_duplicate_case_id",
                      "suite_unresolved_pair",
                      "suite_schema_invalid",
                      "suite_missing_categories",
                      "suite_weak_normal_oracle",
                      "suite_too_large",
                      "unknown_case_id",
                      "duplicate_case_id",
                      "incomplete_case_selection",
                      "unsupported_node_kind",
                      "research_required",
                      "review_required",
                      "acceptance_required",
                      "qualification_stale",
                      "budget_not_approved",
                      "budget_exhausted",
                      "budget_superseded",
                      "budget_capability_consumed",
                      "budget_capability_expired",
                      "acceptance_case_cost_exceeded",
                      "authoring_budget_exceeded",
                      "authoring_grant_not_active",
                      "insufficient_credits",
                      "billing_anomaly",
                      "activity_stalled",
                      "activity_in_flight",
                      "handoff_approval_required",
                      "handoff_expired",
                      "handoff_not_pending",
                      "handoff_stale",
                      "handoff_disclosure_incomplete",
                      "feature_unavailable",
                      "resource_unavailable",
                      "resource_binding_required",
                      "resource_requirement_not_found",
                      "activity_not_cancellable",
                      "quota_exceeded",
                      "rate_limited",
                      "already_published",
                      "safety_locked",
                      "build_terminal",
                      "commit_capability_expired",
                      "account_unavailable",
                      "limit_unavailable"
                    ]
                  },
                  "field": {
                    "type": "string",
                    "maxLength": 64
                  },
                  "issue": {
                    "type": "object",
                    "required": [
                      "code",
                      "path"
                    ],
                    "properties": {
                      "code": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "path": {
                        "type": "string",
                        "maxLength": 512
                      },
                      "type": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "field": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "operator": {
                        "type": "string",
                        "maxLength": 64
                      }
                    },
                    "additionalProperties": false
                  },
                  "case_id": {
                    "type": "string",
                    "maxLength": 64,
                    "minLength": 1
                  },
                  "truncation": {
                    "type": "object",
                    "required": [
                      "applied",
                      "reason",
                      "omitted_items",
                      "truncated_values",
                      "original_result_bytes"
                    ],
                    "properties": {
                      "reason": {
                        "const": "response_size_limit"
                      },
                      "applied": {
                        "const": true
                      },
                      "omitted_items": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "truncated_values": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "original_result_bytes": {
                        "type": "integer",
                        "minimum": 1
                      }
                    },
                    "additionalProperties": false
                  },
                  "repair_hint": {
                    "type": "string",
                    "maxLength": 500
                  },
                  "review_cost": {
                    "type": "object",
                    "required": [
                      "estimated_credits",
                      "limit_credits",
                      "provider",
                      "model",
                      "basis",
                      "input_token_bound",
                      "output_token_cap",
                      "prompt_bytes",
                      "section_bytes"
                    ],
                    "properties": {
                      "basis": {
                        "const": "utf8_byte_upper_bound"
                      },
                      "model": {
                        "type": "string",
                        "maxLength": 200
                      },
                      "provider": {
                        "type": "string",
                        "maxLength": 200
                      },
                      "prompt_bytes": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "limit_credits": {
                        "type": "string",
                        "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                        "maxLength": 64
                      },
                      "section_bytes": {
                        "type": "object",
                        "required": [],
                        "properties": {
                          "spec": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "intent": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "input_contract": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "output_contract": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "acceptance_suite": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "research_evidence": {
                            "type": "integer",
                            "minimum": 0
                          }
                        },
                        "additionalProperties": false
                      },
                      "output_token_cap": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "estimated_credits": {
                        "type": "string",
                        "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                        "maxLength": 64
                      },
                      "input_token_bound": {
                        "type": "integer",
                        "minimum": 0
                      }
                    },
                    "additionalProperties": false
                  },
                  "limit_credits": {
                    "type": "string",
                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                    "maxLength": 64
                  },
                  "estimated_credits": {
                    "type": "string",
                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                    "maxLength": 64
                  },
                  "missing_categories": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 64
                    },
                    "maxItems": 10,
                    "uniqueItems": true
                  },
                  "retry_after_seconds": {
                    "type": "integer",
                    "maximum": 86400,
                    "minimum": 1
                  }
                },
                "additionalProperties": false
              }
            ]
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "quote_recipe_review",
          "title": "Quote a Recipe Build Review",
          "description": "Quote the bounded semantic review of one exact private build revision without starting it.",
          "inputSchema": {
            "type": "object",
            "required": [
              "build_ref",
              "revision",
              "idempotency_key"
            ],
            "properties": {
              "revision": {
                "type": "string",
                "pattern": "^[0-9a-f]{64}$",
                "maxLength": 64
              },
              "build_ref": {
                "type": "string",
                "maxLength": 4096,
                "minLength": 1
              },
              "idempotency_key": {
                "type": "string",
                "pattern": "^[\\x20-\\x7e]+$",
                "maxLength": 200,
                "minLength": 1
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "oneOf": [
              {
                "type": "object",
                "required": [
                  "outcome",
                  "kind",
                  "max_credits",
                  "available_credits",
                  "remaining_build_budget",
                  "budget_capability",
                  "expires_at",
                  "budget_state",
                  "next_action"
                ],
                "properties": {
                  "kind": {
                    "enum": [
                      "review",
                      "acceptance"
                    ]
                  },
                  "outcome": {
                    "const": "quoted"
                  },
                  "expires_at": {
                    "type": "string",
                    "format": "date-time",
                    "maxLength": 64
                  },
                  "truncation": {
                    "type": "object",
                    "required": [
                      "applied",
                      "reason",
                      "omitted_items",
                      "truncated_values",
                      "original_result_bytes"
                    ],
                    "properties": {
                      "reason": {
                        "const": "response_size_limit"
                      },
                      "applied": {
                        "const": true
                      },
                      "omitted_items": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "truncated_values": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "original_result_bytes": {
                        "type": "integer",
                        "minimum": 1
                      }
                    },
                    "additionalProperties": false
                  },
                  "max_credits": {
                    "type": "string",
                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                    "maxLength": 64
                  },
                  "next_action": {
                    "type": "object",
                    "required": [
                      "tool",
                      "operation",
                      "instruction"
                    ],
                    "properties": {
                      "tool": {
                        "const": "update_recipe_build"
                      },
                      "operation": {
                        "const": "set_budget"
                      },
                      "instruction": {
                        "type": "string",
                        "maxLength": 300
                      }
                    },
                    "additionalProperties": false
                  },
                  "review_cost": {
                    "type": "object",
                    "required": [
                      "estimated_credits",
                      "limit_credits",
                      "provider",
                      "model",
                      "basis",
                      "input_token_bound",
                      "output_token_cap",
                      "prompt_bytes",
                      "section_bytes"
                    ],
                    "properties": {
                      "basis": {
                        "const": "utf8_byte_upper_bound"
                      },
                      "model": {
                        "type": "string",
                        "maxLength": 200
                      },
                      "provider": {
                        "type": "string",
                        "maxLength": 200
                      },
                      "prompt_bytes": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "limit_credits": {
                        "type": "string",
                        "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                        "maxLength": 64
                      },
                      "section_bytes": {
                        "type": "object",
                        "required": [],
                        "properties": {
                          "spec": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "intent": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "input_contract": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "output_contract": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "acceptance_suite": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "research_evidence": {
                            "type": "integer",
                            "minimum": 0
                          }
                        },
                        "additionalProperties": false
                      },
                      "output_token_cap": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "estimated_credits": {
                        "type": "string",
                        "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                        "maxLength": 64
                      },
                      "input_token_bound": {
                        "type": "integer",
                        "minimum": 0
                      }
                    },
                    "additionalProperties": false
                  },
                  "budget_state": {
                    "enum": [
                      "not_redeemed",
                      "active"
                    ]
                  },
                  "acceptance_cost": {
                    "type": "object",
                    "required": [
                      "basis",
                      "case_count",
                      "cases",
                      "note"
                    ],
                    "properties": {
                      "note": {
                        "type": "string",
                        "maxLength": 400
                      },
                      "basis": {
                        "const": "enforced_input_bytes_and_output_caps"
                      },
                      "cases": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "required": [
                            "case_id",
                            "max_credits",
                            "steps"
                          ],
                          "properties": {
                            "steps": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "required": [
                                  "step_id",
                                  "model",
                                  "input_basis",
                                  "input_token_bound",
                                  "output_token_cap",
                                  "attempt_allowance",
                                  "provider_floor_credits"
                                ],
                                "properties": {
                                  "model": {
                                    "type": "string",
                                    "maxLength": 200
                                  },
                                  "step_id": {
                                    "type": "string",
                                    "maxLength": 128
                                  },
                                  "input_basis": {
                                    "enum": [
                                      "acceptance_message_fence",
                                      "acceptance_schema_context_fallback"
                                    ]
                                  },
                                  "output_token_cap": {
                                    "type": "integer",
                                    "minimum": 0
                                  },
                                  "attempt_allowance": {
                                    "type": "integer",
                                    "minimum": 1
                                  },
                                  "input_token_bound": {
                                    "type": "integer",
                                    "minimum": 0
                                  },
                                  "provider_floor_credits": {
                                    "type": "string",
                                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                                    "maxLength": 64
                                  }
                                },
                                "additionalProperties": false
                              },
                              "maxItems": 2
                            },
                            "case_id": {
                              "type": "string",
                              "maxLength": 64
                            },
                            "max_credits": {
                              "type": "string",
                              "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                              "maxLength": 64
                            }
                          },
                          "additionalProperties": false
                        },
                        "maxItems": 3
                      },
                      "forecast": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "required": [
                            "case_id",
                            "expected_credits",
                            "high_credits",
                            "hard_credits",
                            "basis",
                            "sample_count"
                          ],
                          "properties": {
                            "basis": {
                              "enum": [
                                "settled_same_revision_case",
                                "settled_same_revision",
                                "provider_usage_same_recipe_step",
                                "platform_model_usage",
                                "static_fraction",
                                "hard_bound"
                              ]
                            },
                            "case_id": {
                              "type": "string",
                              "maxLength": 64
                            },
                            "hard_credits": {
                              "type": "string",
                              "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                              "maxLength": 64
                            },
                            "high_credits": {
                              "type": "string",
                              "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                              "maxLength": 64
                            },
                            "sample_count": {
                              "type": "integer",
                              "minimum": 0
                            },
                            "expected_credits": {
                              "type": "string",
                              "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                              "maxLength": 64
                            }
                          },
                          "additionalProperties": false
                        },
                        "maxItems": 3
                      },
                      "cap_policy": {
                        "type": "string",
                        "maxLength": 120
                      },
                      "case_count": {
                        "type": "integer",
                        "maximum": 50,
                        "minimum": 1
                      },
                      "forecast_basis": {
                        "type": "object",
                        "maxProperties": 8,
                        "additionalProperties": {
                          "type": "integer",
                          "minimum": 0
                        }
                      },
                      "expected_credits": {
                        "type": "string",
                        "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                        "maxLength": 64
                      },
                      "hard_bound_credits": {
                        "type": "string",
                        "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                        "maxLength": 64
                      },
                      "observed_case_costs": {
                        "anyOf": [
                          {
                            "type": "null"
                          },
                          {
                            "type": "object",
                            "required": [
                              "sample_count",
                              "minimum_credits",
                              "maximum_credits",
                              "basis"
                            ],
                            "properties": {
                              "basis": {
                                "const": "recent_settled_cases_same_revision_not_a_forecast"
                              },
                              "sample_count": {
                                "type": "integer",
                                "maximum": 20,
                                "minimum": 1
                              },
                              "maximum_credits": {
                                "type": "string",
                                "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                                "maxLength": 64
                              },
                              "minimum_credits": {
                                "type": "string",
                                "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                                "maxLength": 64
                              }
                            },
                            "additionalProperties": false
                          }
                        ]
                      },
                      "approval_cap_credits": {
                        "type": "string",
                        "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                        "maxLength": 64
                      },
                      "expected_high_credits": {
                        "type": "string",
                        "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                        "maxLength": 64
                      }
                    },
                    "additionalProperties": false
                  },
                  "planned_fan_out": {
                    "type": "integer",
                    "maximum": 50,
                    "minimum": 1
                  },
                  "available_credits": {
                    "type": "string",
                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                    "maxLength": 64,
                    "description": "Wallet funds currently available, independent of this build approval."
                  },
                  "budget_capability": {
                    "type": "string",
                    "maxLength": 4096,
                    "minLength": 1
                  },
                  "unsupported_nodes": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 64
                    },
                    "maxItems": 24
                  },
                  "qualification_route": {
                    "enum": [
                      "automatic",
                      "conditional",
                      "supervised"
                    ]
                  },
                  "handoff_requirements": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "requirement_id",
                        "node_id",
                        "node_type",
                        "node_path",
                        "qualification_route",
                        "reason",
                        "required_decision",
                        "resource_paths",
                        "parameter_digest"
                      ],
                      "properties": {
                        "reason": {
                          "type": "string",
                          "maxLength": 128
                        },
                        "node_id": {
                          "type": "string",
                          "maxLength": 128
                        },
                        "node_path": {
                          "type": "array",
                          "items": {
                            "type": [
                              "string",
                              "integer"
                            ]
                          },
                          "maxItems": 32
                        },
                        "node_type": {
                          "type": "string",
                          "maxLength": 64
                        },
                        "requirement_id": {
                          "type": "string",
                          "pattern": "^[0-9a-f]{32}$"
                        },
                        "resource_paths": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "maxLength": 256
                          },
                          "maxItems": 8
                        },
                        "parameter_digest": {
                          "type": "string",
                          "pattern": "^[0-9a-f]{64}$",
                          "maxLength": 64
                        },
                        "required_decision": {
                          "type": "string",
                          "maxLength": 128
                        },
                        "qualification_route": {
                          "enum": [
                            "conditional",
                            "supervised"
                          ]
                        }
                      },
                      "additionalProperties": false
                    },
                    "maxItems": 100,
                    "description": "Bounded quote preview. When incomplete, full acceptance creates the handoff with complete effects and resource requirements for approval."
                  },
                  "remaining_build_budget": {
                    "type": "string",
                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                    "maxLength": 64,
                    "description": "Unspent and unreserved cumulative authority in the active grant for this build revision; zero before redemption."
                  },
                  "handoff_requirement_count": {
                    "type": "integer",
                    "maximum": 100,
                    "minimum": 0
                  },
                  "handoff_requirements_complete": {
                    "type": "boolean"
                  }
                }
              },
              {
                "type": "object",
                "required": [
                  "outcome",
                  "kind",
                  "max_credits",
                  "available_credits",
                  "remaining_build_budget",
                  "budget_state",
                  "next_action"
                ],
                "properties": {
                  "kind": {
                    "enum": [
                      "review",
                      "acceptance"
                    ]
                  },
                  "outcome": {
                    "const": "quoted"
                  },
                  "expires_at": {
                    "not": {}
                  },
                  "truncation": {
                    "type": "object",
                    "required": [
                      "applied",
                      "reason",
                      "omitted_items",
                      "truncated_values",
                      "original_result_bytes"
                    ],
                    "properties": {
                      "reason": {
                        "const": "response_size_limit"
                      },
                      "applied": {
                        "const": true
                      },
                      "omitted_items": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "truncated_values": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "original_result_bytes": {
                        "type": "integer",
                        "minimum": 1
                      }
                    },
                    "additionalProperties": false
                  },
                  "max_credits": {
                    "type": "string",
                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                    "maxLength": 64
                  },
                  "next_action": {
                    "oneOf": [
                      {
                        "type": "object",
                        "required": [
                          "tool",
                          "mode",
                          "instruction"
                        ],
                        "properties": {
                          "mode": {
                            "const": "execute"
                          },
                          "tool": {
                            "const": "review_recipe_build"
                          },
                          "instruction": {
                            "type": "string",
                            "maxLength": 300
                          }
                        },
                        "additionalProperties": false
                      },
                      {
                        "type": "object",
                        "required": [
                          "tool",
                          "mode",
                          "instruction"
                        ],
                        "properties": {
                          "mode": {
                            "const": "full"
                          },
                          "tool": {
                            "const": "run_recipe_acceptance"
                          },
                          "instruction": {
                            "type": "string",
                            "maxLength": 300
                          }
                        },
                        "additionalProperties": false
                      },
                      {
                        "type": "object",
                        "required": [
                          "tool",
                          "mode",
                          "case_ids",
                          "instruction"
                        ],
                        "properties": {
                          "mode": {
                            "const": "selected_cases"
                          },
                          "tool": {
                            "const": "run_recipe_acceptance"
                          },
                          "case_ids": {
                            "type": "array",
                            "items": {
                              "type": "string",
                              "maxLength": 64
                            },
                            "maxItems": 50,
                            "minItems": 1,
                            "uniqueItems": true
                          },
                          "instruction": {
                            "type": "string",
                            "maxLength": 300
                          }
                        },
                        "additionalProperties": false
                      },
                      {
                        "type": "object",
                        "required": [
                          "tool",
                          "activity_ref",
                          "instruction"
                        ],
                        "properties": {
                          "tool": {
                            "const": "get_recipe_build_activity"
                          },
                          "instruction": {
                            "type": "string",
                            "maxLength": 300
                          },
                          "activity_ref": {
                            "type": "string",
                            "maxLength": 4096,
                            "minLength": 1
                          }
                        },
                        "additionalProperties": false
                      }
                    ]
                  },
                  "review_cost": {
                    "type": "object",
                    "required": [
                      "estimated_credits",
                      "limit_credits",
                      "provider",
                      "model",
                      "basis",
                      "input_token_bound",
                      "output_token_cap",
                      "prompt_bytes",
                      "section_bytes"
                    ],
                    "properties": {
                      "basis": {
                        "const": "utf8_byte_upper_bound"
                      },
                      "model": {
                        "type": "string",
                        "maxLength": 200
                      },
                      "provider": {
                        "type": "string",
                        "maxLength": 200
                      },
                      "prompt_bytes": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "limit_credits": {
                        "type": "string",
                        "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                        "maxLength": 64
                      },
                      "section_bytes": {
                        "type": "object",
                        "required": [],
                        "properties": {
                          "spec": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "intent": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "input_contract": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "output_contract": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "acceptance_suite": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "research_evidence": {
                            "type": "integer",
                            "minimum": 0
                          }
                        },
                        "additionalProperties": false
                      },
                      "output_token_cap": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "estimated_credits": {
                        "type": "string",
                        "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                        "maxLength": 64
                      },
                      "input_token_bound": {
                        "type": "integer",
                        "minimum": 0
                      }
                    },
                    "additionalProperties": false
                  },
                  "budget_state": {
                    "enum": [
                      "not_redeemed",
                      "active"
                    ]
                  },
                  "acceptance_cost": {
                    "type": "object",
                    "required": [
                      "basis",
                      "case_count",
                      "cases",
                      "note"
                    ],
                    "properties": {
                      "note": {
                        "type": "string",
                        "maxLength": 400
                      },
                      "basis": {
                        "const": "enforced_input_bytes_and_output_caps"
                      },
                      "cases": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "required": [
                            "case_id",
                            "max_credits",
                            "steps"
                          ],
                          "properties": {
                            "steps": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "required": [
                                  "step_id",
                                  "model",
                                  "input_basis",
                                  "input_token_bound",
                                  "output_token_cap",
                                  "attempt_allowance",
                                  "provider_floor_credits"
                                ],
                                "properties": {
                                  "model": {
                                    "type": "string",
                                    "maxLength": 200
                                  },
                                  "step_id": {
                                    "type": "string",
                                    "maxLength": 128
                                  },
                                  "input_basis": {
                                    "enum": [
                                      "acceptance_message_fence",
                                      "acceptance_schema_context_fallback"
                                    ]
                                  },
                                  "output_token_cap": {
                                    "type": "integer",
                                    "minimum": 0
                                  },
                                  "attempt_allowance": {
                                    "type": "integer",
                                    "minimum": 1
                                  },
                                  "input_token_bound": {
                                    "type": "integer",
                                    "minimum": 0
                                  },
                                  "provider_floor_credits": {
                                    "type": "string",
                                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                                    "maxLength": 64
                                  }
                                },
                                "additionalProperties": false
                              },
                              "maxItems": 2
                            },
                            "case_id": {
                              "type": "string",
                              "maxLength": 64
                            },
                            "max_credits": {
                              "type": "string",
                              "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                              "maxLength": 64
                            }
                          },
                          "additionalProperties": false
                        },
                        "maxItems": 3
                      },
                      "forecast": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "required": [
                            "case_id",
                            "expected_credits",
                            "high_credits",
                            "hard_credits",
                            "basis",
                            "sample_count"
                          ],
                          "properties": {
                            "basis": {
                              "enum": [
                                "settled_same_revision_case",
                                "settled_same_revision",
                                "provider_usage_same_recipe_step",
                                "platform_model_usage",
                                "static_fraction",
                                "hard_bound"
                              ]
                            },
                            "case_id": {
                              "type": "string",
                              "maxLength": 64
                            },
                            "hard_credits": {
                              "type": "string",
                              "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                              "maxLength": 64
                            },
                            "high_credits": {
                              "type": "string",
                              "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                              "maxLength": 64
                            },
                            "sample_count": {
                              "type": "integer",
                              "minimum": 0
                            },
                            "expected_credits": {
                              "type": "string",
                              "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                              "maxLength": 64
                            }
                          },
                          "additionalProperties": false
                        },
                        "maxItems": 3
                      },
                      "cap_policy": {
                        "type": "string",
                        "maxLength": 120
                      },
                      "case_count": {
                        "type": "integer",
                        "maximum": 50,
                        "minimum": 1
                      },
                      "forecast_basis": {
                        "type": "object",
                        "maxProperties": 8,
                        "additionalProperties": {
                          "type": "integer",
                          "minimum": 0
                        }
                      },
                      "expected_credits": {
                        "type": "string",
                        "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                        "maxLength": 64
                      },
                      "hard_bound_credits": {
                        "type": "string",
                        "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                        "maxLength": 64
                      },
                      "observed_case_costs": {
                        "anyOf": [
                          {
                            "type": "null"
                          },
                          {
                            "type": "object",
                            "required": [
                              "sample_count",
                              "minimum_credits",
                              "maximum_credits",
                              "basis"
                            ],
                            "properties": {
                              "basis": {
                                "const": "recent_settled_cases_same_revision_not_a_forecast"
                              },
                              "sample_count": {
                                "type": "integer",
                                "maximum": 20,
                                "minimum": 1
                              },
                              "maximum_credits": {
                                "type": "string",
                                "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                                "maxLength": 64
                              },
                              "minimum_credits": {
                                "type": "string",
                                "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                                "maxLength": 64
                              }
                            },
                            "additionalProperties": false
                          }
                        ]
                      },
                      "approval_cap_credits": {
                        "type": "string",
                        "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                        "maxLength": 64
                      },
                      "expected_high_credits": {
                        "type": "string",
                        "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                        "maxLength": 64
                      }
                    },
                    "additionalProperties": false
                  },
                  "planned_fan_out": {
                    "type": "integer",
                    "maximum": 50,
                    "minimum": 1
                  },
                  "available_credits": {
                    "type": "string",
                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                    "maxLength": 64,
                    "description": "Wallet funds currently available, independent of this build approval."
                  },
                  "budget_capability": {
                    "not": {}
                  },
                  "unsupported_nodes": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 64
                    },
                    "maxItems": 24
                  },
                  "qualification_route": {
                    "enum": [
                      "automatic",
                      "conditional",
                      "supervised"
                    ]
                  },
                  "handoff_requirements": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "requirement_id",
                        "node_id",
                        "node_type",
                        "node_path",
                        "qualification_route",
                        "reason",
                        "required_decision",
                        "resource_paths",
                        "parameter_digest"
                      ],
                      "properties": {
                        "reason": {
                          "type": "string",
                          "maxLength": 128
                        },
                        "node_id": {
                          "type": "string",
                          "maxLength": 128
                        },
                        "node_path": {
                          "type": "array",
                          "items": {
                            "type": [
                              "string",
                              "integer"
                            ]
                          },
                          "maxItems": 32
                        },
                        "node_type": {
                          "type": "string",
                          "maxLength": 64
                        },
                        "requirement_id": {
                          "type": "string",
                          "pattern": "^[0-9a-f]{32}$"
                        },
                        "resource_paths": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "maxLength": 256
                          },
                          "maxItems": 8
                        },
                        "parameter_digest": {
                          "type": "string",
                          "pattern": "^[0-9a-f]{64}$",
                          "maxLength": 64
                        },
                        "required_decision": {
                          "type": "string",
                          "maxLength": 128
                        },
                        "qualification_route": {
                          "enum": [
                            "conditional",
                            "supervised"
                          ]
                        }
                      },
                      "additionalProperties": false
                    },
                    "maxItems": 100,
                    "description": "Bounded quote preview. When incomplete, full acceptance creates the handoff with complete effects and resource requirements for approval."
                  },
                  "remaining_build_budget": {
                    "type": "string",
                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                    "maxLength": 64,
                    "description": "Unspent and unreserved cumulative authority in the active grant for this build revision; zero before redemption."
                  },
                  "handoff_requirement_count": {
                    "type": "integer",
                    "maximum": 100,
                    "minimum": 0
                  },
                  "handoff_requirements_complete": {
                    "type": "boolean"
                  }
                }
              },
              {
                "type": "object",
                "required": [
                  "error"
                ],
                "properties": {
                  "hint": {
                    "type": "string",
                    "maxLength": 240
                  },
                  "error": {
                    "enum": [
                      "not_found",
                      "invalid_reference",
                      "invalid_params",
                      "revision_conflict",
                      "idempotency_conflict",
                      "document_too_large",
                      "payload_too_large",
                      "chunk_sequence_invalid",
                      "chunk_digest_mismatch",
                      "chunk_expired",
                      "invalid_cursor",
                      "suite_duplicate_case_id",
                      "suite_unresolved_pair",
                      "suite_schema_invalid",
                      "suite_missing_categories",
                      "suite_weak_normal_oracle",
                      "suite_too_large",
                      "unknown_case_id",
                      "duplicate_case_id",
                      "incomplete_case_selection",
                      "unsupported_node_kind",
                      "research_required",
                      "review_required",
                      "acceptance_required",
                      "qualification_stale",
                      "budget_not_approved",
                      "budget_exhausted",
                      "budget_superseded",
                      "budget_capability_consumed",
                      "budget_capability_expired",
                      "acceptance_case_cost_exceeded",
                      "authoring_budget_exceeded",
                      "authoring_grant_not_active",
                      "insufficient_credits",
                      "billing_anomaly",
                      "activity_stalled",
                      "activity_in_flight",
                      "handoff_approval_required",
                      "handoff_expired",
                      "handoff_not_pending",
                      "handoff_stale",
                      "handoff_disclosure_incomplete",
                      "feature_unavailable",
                      "resource_unavailable",
                      "resource_binding_required",
                      "resource_requirement_not_found",
                      "activity_not_cancellable",
                      "quota_exceeded",
                      "rate_limited",
                      "already_published",
                      "safety_locked",
                      "build_terminal",
                      "commit_capability_expired",
                      "account_unavailable",
                      "limit_unavailable"
                    ]
                  },
                  "field": {
                    "type": "string",
                    "maxLength": 64
                  },
                  "issue": {
                    "type": "object",
                    "required": [
                      "code",
                      "path"
                    ],
                    "properties": {
                      "code": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "path": {
                        "type": "string",
                        "maxLength": 512
                      },
                      "type": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "field": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "operator": {
                        "type": "string",
                        "maxLength": 64
                      }
                    },
                    "additionalProperties": false
                  },
                  "case_id": {
                    "type": "string",
                    "maxLength": 64,
                    "minLength": 1
                  },
                  "truncation": {
                    "type": "object",
                    "required": [
                      "applied",
                      "reason",
                      "omitted_items",
                      "truncated_values",
                      "original_result_bytes"
                    ],
                    "properties": {
                      "reason": {
                        "const": "response_size_limit"
                      },
                      "applied": {
                        "const": true
                      },
                      "omitted_items": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "truncated_values": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "original_result_bytes": {
                        "type": "integer",
                        "minimum": 1
                      }
                    },
                    "additionalProperties": false
                  },
                  "repair_hint": {
                    "type": "string",
                    "maxLength": 500
                  },
                  "review_cost": {
                    "type": "object",
                    "required": [
                      "estimated_credits",
                      "limit_credits",
                      "provider",
                      "model",
                      "basis",
                      "input_token_bound",
                      "output_token_cap",
                      "prompt_bytes",
                      "section_bytes"
                    ],
                    "properties": {
                      "basis": {
                        "const": "utf8_byte_upper_bound"
                      },
                      "model": {
                        "type": "string",
                        "maxLength": 200
                      },
                      "provider": {
                        "type": "string",
                        "maxLength": 200
                      },
                      "prompt_bytes": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "limit_credits": {
                        "type": "string",
                        "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                        "maxLength": 64
                      },
                      "section_bytes": {
                        "type": "object",
                        "required": [],
                        "properties": {
                          "spec": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "intent": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "input_contract": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "output_contract": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "acceptance_suite": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "research_evidence": {
                            "type": "integer",
                            "minimum": 0
                          }
                        },
                        "additionalProperties": false
                      },
                      "output_token_cap": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "estimated_credits": {
                        "type": "string",
                        "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                        "maxLength": 64
                      },
                      "input_token_bound": {
                        "type": "integer",
                        "minimum": 0
                      }
                    },
                    "additionalProperties": false
                  },
                  "limit_credits": {
                    "type": "string",
                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                    "maxLength": 64
                  },
                  "estimated_credits": {
                    "type": "string",
                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                    "maxLength": 64
                  },
                  "missing_categories": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 64
                    },
                    "maxItems": 10,
                    "uniqueItems": true
                  },
                  "retry_after_seconds": {
                    "type": "integer",
                    "maximum": 86400,
                    "minimum": 1
                  }
                },
                "additionalProperties": false
              }
            ]
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "record_recipe_research",
          "title": "Record Recipe Research",
          "description": "Replace the bounded research evidence recorded for one private build.",
          "inputSchema": {
            "type": "object",
            "required": [
              "build_ref",
              "revision",
              "idempotency_key",
              "evidence"
            ],
            "properties": {
              "evidence": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "url",
                    "title",
                    "retrieved_at",
                    "supported_claim",
                    "applicability"
                  ],
                  "properties": {
                    "url": {
                      "type": "string",
                      "maxLength": 512,
                      "minLength": 1
                    },
                    "title": {
                      "type": "string",
                      "maxLength": 200,
                      "minLength": 1
                    },
                    "retrieved_at": {
                      "type": "string",
                      "maxLength": 64,
                      "minLength": 1
                    },
                    "applicability": {
                      "type": "string",
                      "maxLength": 1000,
                      "minLength": 1
                    },
                    "supported_claim": {
                      "type": "string",
                      "maxLength": 1000,
                      "minLength": 1
                    }
                  },
                  "additionalProperties": false
                },
                "maxItems": 20
              },
              "revision": {
                "type": "string",
                "pattern": "^[0-9a-f]{64}$",
                "maxLength": 64
              },
              "build_ref": {
                "type": "string",
                "maxLength": 4096,
                "minLength": 1
              },
              "idempotency_key": {
                "type": "string",
                "pattern": "^[\\x20-\\x7e]+$",
                "maxLength": 200,
                "minLength": 1
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "oneOf": [
              {
                "type": "object",
                "required": [
                  "revision",
                  "normalization_diff",
                  "findings",
                  "qualification_invalidated",
                  "budget_superseded"
                ],
                "properties": {
                  "handoff": {
                    "type": "object",
                    "required": [
                      "handoff_ref",
                      "activity_ref",
                      "revision",
                      "status",
                      "effect_digest",
                      "reason",
                      "required_decisions",
                      "effects",
                      "expires_at",
                      "action_url",
                      "resume"
                    ],
                    "properties": {
                      "reason": {
                        "type": "string",
                        "maxLength": 500
                      },
                      "resume": {
                        "type": "object",
                        "required": [
                          "tool",
                          "operation"
                        ],
                        "properties": {
                          "tool": {
                            "const": "update_recipe_build"
                          },
                          "operation": {
                            "const": "resume_activity"
                          }
                        },
                        "additionalProperties": false
                      },
                      "status": {
                        "enum": [
                          "pending",
                          "approved",
                          "cancelled",
                          "expired",
                          "consumed"
                        ]
                      },
                      "effects": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "required": [
                            "node_id",
                            "node_type",
                            "execution_count",
                            "details"
                          ],
                          "properties": {
                            "details": {
                              "type": "object",
                              "required": [],
                              "properties": {
                                "to": {},
                                "name": {},
                                "query": {},
                                "title": {},
                                "top_k": {},
                                "format": {},
                                "params": {},
                                "prompt": {},
                                "source": {},
                                "options": {},
                                "sources": {},
                                "subject": {},
                                "duration": {},
                                "filename": {},
                                "html_only": {},
                                "max_chunks": {},
                                "visibility": {},
                                "folder_name": {},
                                "folder_ulid": {},
                                "tool_groups": {},
                                "pin_revision": {},
                                "body_template": {},
                                "input_mapping": {},
                                "nested_effects": {},
                                "outcome_rubric": {},
                                "system_message": {},
                                "additional_text": {},
                                "score_threshold": {},
                                "destination_mode": {},
                                "preamble_enabled": {},
                                "child_recipe_ulid": {},
                                "child_revision_sha": {},
                                "local_conflict_mode": {},
                                "outcome_description": {},
                                "external_target_ulid": {},
                                "output_conflict_mode": {},
                                "external_conflict_mode": {},
                                "outcome_max_iterations": {}
                              },
                              "additionalProperties": false
                            },
                            "node_id": {
                              "type": "string",
                              "maxLength": 128
                            },
                            "node_type": {
                              "type": "string",
                              "maxLength": 64
                            },
                            "execution_count": {
                              "type": "integer",
                              "minimum": 0
                            }
                          },
                          "additionalProperties": false
                        },
                        "maxItems": 100
                      },
                      "revision": {
                        "type": "string",
                        "pattern": "^[0-9a-f]{64}$",
                        "maxLength": 64
                      },
                      "resources": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "required": [
                            "requirement_id",
                            "node_id",
                            "node_type",
                            "node_path",
                            "qualification_route",
                            "reason",
                            "required_decision",
                            "resource_paths",
                            "parameter_digest",
                            "binding_status"
                          ],
                          "properties": {
                            "reason": {
                              "type": "string",
                              "maxLength": 128
                            },
                            "node_id": {
                              "type": "string",
                              "maxLength": 128
                            },
                            "node_path": {
                              "type": "array",
                              "items": {
                                "type": [
                                  "string",
                                  "integer"
                                ]
                              },
                              "maxItems": 32
                            },
                            "node_type": {
                              "type": "string",
                              "maxLength": 64
                            },
                            "binding_status": {
                              "enum": [
                                "required",
                                "bound"
                              ]
                            },
                            "requirement_id": {
                              "type": "string",
                              "pattern": "^[0-9a-f]{32}$"
                            },
                            "resource_paths": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "maxLength": 256
                              },
                              "maxItems": 8
                            },
                            "parameter_digest": {
                              "type": "string",
                              "pattern": "^[0-9a-f]{64}$",
                              "maxLength": 64
                            },
                            "required_decision": {
                              "type": "string",
                              "maxLength": 128
                            },
                            "qualification_route": {
                              "enum": [
                                "conditional",
                                "supervised"
                              ]
                            }
                          },
                          "additionalProperties": false
                        },
                        "maxItems": 100
                      },
                      "action_url": {
                        "type": "string",
                        "maxLength": 2048,
                        "minLength": 1
                      },
                      "expires_at": {
                        "type": "string",
                        "format": "date-time",
                        "maxLength": 64
                      },
                      "handoff_ref": {
                        "type": "string",
                        "maxLength": 4096,
                        "minLength": 1
                      },
                      "activity_ref": {
                        "type": "string",
                        "maxLength": 4096,
                        "minLength": 1
                      },
                      "effect_digest": {
                        "type": "string",
                        "pattern": "^[0-9a-f]{64}$",
                        "maxLength": 64
                      },
                      "required_decisions": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "maxLength": 128
                        },
                        "maxItems": 100,
                        "uniqueItems": true
                      }
                    },
                    "additionalProperties": false
                  },
                  "outcome": {
                    "enum": [
                      "resource_bound",
                      "activity_resumed",
                      "activity_cancelled"
                    ]
                  },
                  "findings": {
                    "type": "array",
                    "maxItems": 0
                  },
                  "revision": {
                    "type": "string",
                    "pattern": "^[0-9a-f]{64}$",
                    "maxLength": 64
                  },
                  "truncation": {
                    "type": "object",
                    "required": [
                      "applied",
                      "reason",
                      "omitted_items",
                      "truncated_values",
                      "original_result_bytes"
                    ],
                    "properties": {
                      "reason": {
                        "const": "response_size_limit"
                      },
                      "applied": {
                        "const": true
                      },
                      "omitted_items": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "truncated_values": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "original_result_bytes": {
                        "type": "integer",
                        "minimum": 1
                      }
                    },
                    "additionalProperties": false
                  },
                  "activity_ref": {
                    "type": "string",
                    "maxLength": 4096,
                    "minLength": 1
                  },
                  "activity_state": {
                    "enum": [
                      "queued",
                      "running",
                      "blocked",
                      "done",
                      "failed",
                      "cancelled"
                    ]
                  },
                  "budget_superseded": {
                    "type": "boolean"
                  },
                  "normalization_diff": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "op",
                        "changed"
                      ],
                      "properties": {
                        "op": {
                          "type": "string",
                          "maxLength": 64
                        },
                        "changed": {
                          "type": "boolean"
                        }
                      },
                      "additionalProperties": false
                    },
                    "maxItems": 25
                  },
                  "qualification_invalidated": {
                    "type": "boolean"
                  }
                }
              },
              {
                "type": "object",
                "required": [
                  "error"
                ],
                "properties": {
                  "hint": {
                    "type": "string",
                    "maxLength": 240
                  },
                  "error": {
                    "enum": [
                      "not_found",
                      "invalid_reference",
                      "invalid_params",
                      "revision_conflict",
                      "idempotency_conflict",
                      "document_too_large",
                      "payload_too_large",
                      "chunk_sequence_invalid",
                      "chunk_digest_mismatch",
                      "chunk_expired",
                      "invalid_cursor",
                      "suite_duplicate_case_id",
                      "suite_unresolved_pair",
                      "suite_schema_invalid",
                      "suite_missing_categories",
                      "suite_weak_normal_oracle",
                      "suite_too_large",
                      "unknown_case_id",
                      "duplicate_case_id",
                      "incomplete_case_selection",
                      "unsupported_node_kind",
                      "research_required",
                      "review_required",
                      "acceptance_required",
                      "qualification_stale",
                      "budget_not_approved",
                      "budget_exhausted",
                      "budget_superseded",
                      "budget_capability_consumed",
                      "budget_capability_expired",
                      "acceptance_case_cost_exceeded",
                      "authoring_budget_exceeded",
                      "authoring_grant_not_active",
                      "insufficient_credits",
                      "billing_anomaly",
                      "activity_stalled",
                      "activity_in_flight",
                      "handoff_approval_required",
                      "handoff_expired",
                      "handoff_not_pending",
                      "handoff_stale",
                      "handoff_disclosure_incomplete",
                      "feature_unavailable",
                      "resource_unavailable",
                      "resource_binding_required",
                      "resource_requirement_not_found",
                      "activity_not_cancellable",
                      "quota_exceeded",
                      "rate_limited",
                      "already_published",
                      "safety_locked",
                      "build_terminal",
                      "commit_capability_expired",
                      "account_unavailable",
                      "limit_unavailable"
                    ]
                  },
                  "field": {
                    "type": "string",
                    "maxLength": 64
                  },
                  "issue": {
                    "type": "object",
                    "required": [
                      "code",
                      "path"
                    ],
                    "properties": {
                      "code": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "path": {
                        "type": "string",
                        "maxLength": 512
                      },
                      "type": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "field": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "operator": {
                        "type": "string",
                        "maxLength": 64
                      }
                    },
                    "additionalProperties": false
                  },
                  "case_id": {
                    "type": "string",
                    "maxLength": 64,
                    "minLength": 1
                  },
                  "truncation": {
                    "type": "object",
                    "required": [
                      "applied",
                      "reason",
                      "omitted_items",
                      "truncated_values",
                      "original_result_bytes"
                    ],
                    "properties": {
                      "reason": {
                        "const": "response_size_limit"
                      },
                      "applied": {
                        "const": true
                      },
                      "omitted_items": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "truncated_values": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "original_result_bytes": {
                        "type": "integer",
                        "minimum": 1
                      }
                    },
                    "additionalProperties": false
                  },
                  "repair_hint": {
                    "type": "string",
                    "maxLength": 500
                  },
                  "review_cost": {
                    "type": "object",
                    "required": [
                      "estimated_credits",
                      "limit_credits",
                      "provider",
                      "model",
                      "basis",
                      "input_token_bound",
                      "output_token_cap",
                      "prompt_bytes",
                      "section_bytes"
                    ],
                    "properties": {
                      "basis": {
                        "const": "utf8_byte_upper_bound"
                      },
                      "model": {
                        "type": "string",
                        "maxLength": 200
                      },
                      "provider": {
                        "type": "string",
                        "maxLength": 200
                      },
                      "prompt_bytes": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "limit_credits": {
                        "type": "string",
                        "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                        "maxLength": 64
                      },
                      "section_bytes": {
                        "type": "object",
                        "required": [],
                        "properties": {
                          "spec": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "intent": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "input_contract": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "output_contract": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "acceptance_suite": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "research_evidence": {
                            "type": "integer",
                            "minimum": 0
                          }
                        },
                        "additionalProperties": false
                      },
                      "output_token_cap": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "estimated_credits": {
                        "type": "string",
                        "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                        "maxLength": 64
                      },
                      "input_token_bound": {
                        "type": "integer",
                        "minimum": 0
                      }
                    },
                    "additionalProperties": false
                  },
                  "limit_credits": {
                    "type": "string",
                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                    "maxLength": 64
                  },
                  "estimated_credits": {
                    "type": "string",
                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                    "maxLength": 64
                  },
                  "missing_categories": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 64
                    },
                    "maxItems": 10,
                    "uniqueItems": true
                  },
                  "retry_after_seconds": {
                    "type": "integer",
                    "maximum": 86400,
                    "minimum": 1
                  }
                },
                "additionalProperties": false
              }
            ]
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": true
          }
        },
        {
          "name": "render_recipe_build",
          "title": "Render a StewAI Recipe Build",
          "description": "Render one private recipe build with optional fixture values without executing it.",
          "inputSchema": {
            "type": "object",
            "required": [
              "build_ref"
            ],
            "properties": {
              "fixtures": {
                "type": "object",
                "maxProperties": 20,
                "additionalProperties": {
                  "oneOf": [
                    {
                      "type": "string",
                      "maxLength": 32768
                    },
                    {
                      "type": "object"
                    },
                    {
                      "type": "array"
                    },
                    {
                      "type": "number"
                    },
                    {
                      "type": "boolean"
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "build_ref": {
                "type": "string",
                "maxLength": 4096,
                "minLength": 1
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "oneOf": [
              {
                "type": "object",
                "required": [
                  "valid",
                  "draft_valid",
                  "automatic_acceptance_eligible",
                  "qualification_route",
                  "qualification_requirements",
                  "effect_digest",
                  "findings",
                  "rendered",
                  "gate_results",
                  "compute_results",
                  "fan_out",
                  "unsupported_nodes",
                  "dsl_version",
                  "catalog_version",
                  "guidance_version"
                ],
                "properties": {
                  "valid": {
                    "type": "boolean"
                  },
                  "fan_out": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "findings": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "code",
                        "severity",
                        "step_id",
                        "field_path",
                        "message",
                        "fix_hint"
                      ],
                      "properties": {
                        "code": {
                          "type": "string",
                          "maxLength": 64
                        },
                        "message": {
                          "type": "string",
                          "maxLength": 1000
                        },
                        "step_id": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "maxLength": 128
                        },
                        "fix_hint": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "maxLength": 1000
                        },
                        "severity": {
                          "enum": [
                            "info",
                            "warning",
                            "error"
                          ]
                        },
                        "field_path": {
                          "type": [
                            "array",
                            "null"
                          ],
                          "items": {
                            "type": [
                              "string",
                              "integer"
                            ]
                          },
                          "maxItems": 32
                        },
                        "declared_schema": {
                          "type": "object",
                          "maxProperties": 100
                        },
                        "inference_source": {
                          "type": "object",
                          "required": [
                            "kind",
                            "step_id",
                            "field_path"
                          ],
                          "properties": {
                            "kind": {
                              "enum": [
                                "recipe_input_max_length",
                                "recipe_input_default_text_contract",
                                "producer_response_schema",
                                "registered_schema",
                                "recipe_output_default_string"
                              ]
                            },
                            "step_id": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "maxLength": 128
                            },
                            "field_path": {
                              "type": "array",
                              "items": {
                                "type": [
                                  "string",
                                  "integer"
                                ]
                              },
                              "maxItems": 32
                            }
                          },
                          "additionalProperties": false
                        },
                        "missing_producer": {
                          "type": "string",
                          "maxLength": 128
                        },
                        "choices_truncated": {
                          "type": "boolean"
                        },
                        "executable_schema": {
                          "type": "object",
                          "maxProperties": 100
                        },
                        "difference_pointer": {
                          "type": "string",
                          "maxLength": 512
                        },
                        "suggested_mutation": {
                          "type": "object",
                          "required": [
                            "operation",
                            "target",
                            "step_id",
                            "field_path",
                            "replacement"
                          ],
                          "properties": {
                            "target": {
                              "enum": [
                                "executable_recipe",
                                "authoring_contract"
                              ]
                            },
                            "step_id": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "maxLength": 128
                            },
                            "operation": {
                              "enum": [
                                "upsert_node",
                                "set_contracts"
                              ]
                            },
                            "field_path": {
                              "type": "array",
                              "items": {
                                "type": [
                                  "string",
                                  "integer"
                                ]
                              },
                              "maxItems": 32
                            },
                            "replacement": {}
                          },
                          "additionalProperties": false
                        },
                        "valid_producer_choices": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "maxLength": 128
                          },
                          "maxItems": 50
                        }
                      },
                      "additionalProperties": false
                    },
                    "maxItems": 200
                  },
                  "rendered": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "path",
                        "text"
                      ],
                      "properties": {
                        "path": {
                          "type": "array",
                          "items": {
                            "type": [
                              "string",
                              "integer"
                            ]
                          },
                          "maxItems": 32
                        },
                        "text": {
                          "type": "string",
                          "maxLength": 4096
                        }
                      },
                      "additionalProperties": false
                    },
                    "maxItems": 100
                  },
                  "versions": {
                    "type": "object",
                    "required": [
                      "archetypes",
                      "capabilities",
                      "checks",
                      "guidance",
                      "models"
                    ],
                    "properties": {
                      "checks": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "models": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "guidance": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "archetypes": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "capabilities": {
                        "type": "string",
                        "maxLength": 64
                      }
                    },
                    "additionalProperties": false
                  },
                  "truncation": {
                    "type": "object",
                    "required": [
                      "applied",
                      "reason",
                      "omitted_items",
                      "truncated_values",
                      "original_result_bytes"
                    ],
                    "properties": {
                      "reason": {
                        "const": "response_size_limit"
                      },
                      "applied": {
                        "const": true
                      },
                      "omitted_items": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "truncated_values": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "original_result_bytes": {
                        "type": "integer",
                        "minimum": 1
                      }
                    },
                    "additionalProperties": false
                  },
                  "draft_valid": {
                    "type": "boolean"
                  },
                  "dsl_version": {
                    "type": "integer",
                    "minimum": 2
                  },
                  "gate_results": {
                    "type": "array",
                    "maxItems": 0
                  },
                  "effect_digest": {
                    "type": "string",
                    "pattern": "^[0-9a-f]{64}$",
                    "maxLength": 64
                  },
                  "catalog_version": {
                    "type": "string",
                    "maxLength": 64
                  },
                  "compute_results": {
                    "type": "array",
                    "maxItems": 0
                  },
                  "guidance_version": {
                    "type": "string",
                    "maxLength": 64
                  },
                  "unsupported_nodes": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 64
                    },
                    "maxItems": 24,
                    "uniqueItems": true
                  },
                  "qualification_route": {
                    "enum": [
                      "automatic",
                      "conditional",
                      "supervised"
                    ]
                  },
                  "qualification_requirements": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "node_id",
                        "node_type",
                        "node_path",
                        "qualification_route",
                        "reason",
                        "required_decision",
                        "resource_paths",
                        "parameter_digest"
                      ],
                      "properties": {
                        "reason": {
                          "type": "string",
                          "maxLength": 128
                        },
                        "node_id": {
                          "type": "string",
                          "maxLength": 128
                        },
                        "node_path": {
                          "type": "array",
                          "items": {
                            "type": [
                              "string",
                              "integer"
                            ]
                          },
                          "maxItems": 32
                        },
                        "node_type": {
                          "type": "string",
                          "maxLength": 64
                        },
                        "resource_paths": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "maxLength": 256
                          },
                          "maxItems": 8
                        },
                        "parameter_digest": {
                          "type": "string",
                          "pattern": "^[0-9a-f]{64}$",
                          "maxLength": 64
                        },
                        "required_decision": {
                          "type": "string",
                          "maxLength": 128
                        },
                        "qualification_route": {
                          "enum": [
                            "conditional",
                            "supervised"
                          ]
                        }
                      },
                      "additionalProperties": false
                    },
                    "maxItems": 100
                  },
                  "automatic_acceptance_eligible": {
                    "type": "boolean"
                  }
                }
              },
              {
                "type": "object",
                "required": [
                  "error"
                ],
                "properties": {
                  "hint": {
                    "type": "string",
                    "maxLength": 240
                  },
                  "error": {
                    "enum": [
                      "not_found",
                      "invalid_reference",
                      "invalid_params",
                      "revision_conflict",
                      "idempotency_conflict",
                      "document_too_large",
                      "payload_too_large",
                      "chunk_sequence_invalid",
                      "chunk_digest_mismatch",
                      "chunk_expired",
                      "invalid_cursor",
                      "suite_duplicate_case_id",
                      "suite_unresolved_pair",
                      "suite_schema_invalid",
                      "suite_missing_categories",
                      "suite_weak_normal_oracle",
                      "suite_too_large",
                      "unknown_case_id",
                      "duplicate_case_id",
                      "incomplete_case_selection",
                      "unsupported_node_kind",
                      "research_required",
                      "review_required",
                      "acceptance_required",
                      "qualification_stale",
                      "budget_not_approved",
                      "budget_exhausted",
                      "budget_superseded",
                      "budget_capability_consumed",
                      "budget_capability_expired",
                      "acceptance_case_cost_exceeded",
                      "authoring_budget_exceeded",
                      "authoring_grant_not_active",
                      "insufficient_credits",
                      "billing_anomaly",
                      "activity_stalled",
                      "activity_in_flight",
                      "handoff_approval_required",
                      "handoff_expired",
                      "handoff_not_pending",
                      "handoff_stale",
                      "handoff_disclosure_incomplete",
                      "feature_unavailable",
                      "resource_unavailable",
                      "resource_binding_required",
                      "resource_requirement_not_found",
                      "activity_not_cancellable",
                      "quota_exceeded",
                      "rate_limited",
                      "already_published",
                      "safety_locked",
                      "build_terminal",
                      "commit_capability_expired",
                      "account_unavailable",
                      "limit_unavailable"
                    ]
                  },
                  "field": {
                    "type": "string",
                    "maxLength": 64
                  },
                  "issue": {
                    "type": "object",
                    "required": [
                      "code",
                      "path"
                    ],
                    "properties": {
                      "code": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "path": {
                        "type": "string",
                        "maxLength": 512
                      },
                      "type": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "field": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "operator": {
                        "type": "string",
                        "maxLength": 64
                      }
                    },
                    "additionalProperties": false
                  },
                  "case_id": {
                    "type": "string",
                    "maxLength": 64,
                    "minLength": 1
                  },
                  "truncation": {
                    "type": "object",
                    "required": [
                      "applied",
                      "reason",
                      "omitted_items",
                      "truncated_values",
                      "original_result_bytes"
                    ],
                    "properties": {
                      "reason": {
                        "const": "response_size_limit"
                      },
                      "applied": {
                        "const": true
                      },
                      "omitted_items": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "truncated_values": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "original_result_bytes": {
                        "type": "integer",
                        "minimum": 1
                      }
                    },
                    "additionalProperties": false
                  },
                  "repair_hint": {
                    "type": "string",
                    "maxLength": 500
                  },
                  "review_cost": {
                    "type": "object",
                    "required": [
                      "estimated_credits",
                      "limit_credits",
                      "provider",
                      "model",
                      "basis",
                      "input_token_bound",
                      "output_token_cap",
                      "prompt_bytes",
                      "section_bytes"
                    ],
                    "properties": {
                      "basis": {
                        "const": "utf8_byte_upper_bound"
                      },
                      "model": {
                        "type": "string",
                        "maxLength": 200
                      },
                      "provider": {
                        "type": "string",
                        "maxLength": 200
                      },
                      "prompt_bytes": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "limit_credits": {
                        "type": "string",
                        "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                        "maxLength": 64
                      },
                      "section_bytes": {
                        "type": "object",
                        "required": [],
                        "properties": {
                          "spec": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "intent": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "input_contract": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "output_contract": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "acceptance_suite": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "research_evidence": {
                            "type": "integer",
                            "minimum": 0
                          }
                        },
                        "additionalProperties": false
                      },
                      "output_token_cap": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "estimated_credits": {
                        "type": "string",
                        "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                        "maxLength": 64
                      },
                      "input_token_bound": {
                        "type": "integer",
                        "minimum": 0
                      }
                    },
                    "additionalProperties": false
                  },
                  "limit_credits": {
                    "type": "string",
                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                    "maxLength": 64
                  },
                  "estimated_credits": {
                    "type": "string",
                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                    "maxLength": 64
                  },
                  "missing_categories": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 64
                    },
                    "maxItems": 10,
                    "uniqueItems": true
                  },
                  "retry_after_seconds": {
                    "type": "integer",
                    "maximum": 86400,
                    "minimum": 1
                  }
                },
                "additionalProperties": false
              }
            ]
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "restore_recipe_build",
          "title": "Restore a Recipe Build",
          "description": "Restore one archived private recipe build at an exact revision.",
          "inputSchema": {
            "type": "object",
            "required": [
              "build_ref",
              "revision",
              "idempotency_key"
            ],
            "properties": {
              "revision": {
                "type": "string",
                "pattern": "^[0-9a-f]{64}$",
                "maxLength": 64
              },
              "build_ref": {
                "type": "string",
                "maxLength": 4096,
                "minLength": 1
              },
              "idempotency_key": {
                "type": "string",
                "pattern": "^[\\x20-\\x7e]+$",
                "maxLength": 200,
                "minLength": 1
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "oneOf": [
              {
                "type": "object",
                "required": [
                  "revision",
                  "normalization_diff",
                  "findings",
                  "qualification_invalidated",
                  "budget_superseded"
                ],
                "properties": {
                  "handoff": {
                    "type": "object",
                    "required": [
                      "handoff_ref",
                      "activity_ref",
                      "revision",
                      "status",
                      "effect_digest",
                      "reason",
                      "required_decisions",
                      "effects",
                      "expires_at",
                      "action_url",
                      "resume"
                    ],
                    "properties": {
                      "reason": {
                        "type": "string",
                        "maxLength": 500
                      },
                      "resume": {
                        "type": "object",
                        "required": [
                          "tool",
                          "operation"
                        ],
                        "properties": {
                          "tool": {
                            "const": "update_recipe_build"
                          },
                          "operation": {
                            "const": "resume_activity"
                          }
                        },
                        "additionalProperties": false
                      },
                      "status": {
                        "enum": [
                          "pending",
                          "approved",
                          "cancelled",
                          "expired",
                          "consumed"
                        ]
                      },
                      "effects": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "required": [
                            "node_id",
                            "node_type",
                            "execution_count",
                            "details"
                          ],
                          "properties": {
                            "details": {
                              "type": "object",
                              "required": [],
                              "properties": {
                                "to": {},
                                "name": {},
                                "query": {},
                                "title": {},
                                "top_k": {},
                                "format": {},
                                "params": {},
                                "prompt": {},
                                "source": {},
                                "options": {},
                                "sources": {},
                                "subject": {},
                                "duration": {},
                                "filename": {},
                                "html_only": {},
                                "max_chunks": {},
                                "visibility": {},
                                "folder_name": {},
                                "folder_ulid": {},
                                "tool_groups": {},
                                "pin_revision": {},
                                "body_template": {},
                                "input_mapping": {},
                                "nested_effects": {},
                                "outcome_rubric": {},
                                "system_message": {},
                                "additional_text": {},
                                "score_threshold": {},
                                "destination_mode": {},
                                "preamble_enabled": {},
                                "child_recipe_ulid": {},
                                "child_revision_sha": {},
                                "local_conflict_mode": {},
                                "outcome_description": {},
                                "external_target_ulid": {},
                                "output_conflict_mode": {},
                                "external_conflict_mode": {},
                                "outcome_max_iterations": {}
                              },
                              "additionalProperties": false
                            },
                            "node_id": {
                              "type": "string",
                              "maxLength": 128
                            },
                            "node_type": {
                              "type": "string",
                              "maxLength": 64
                            },
                            "execution_count": {
                              "type": "integer",
                              "minimum": 0
                            }
                          },
                          "additionalProperties": false
                        },
                        "maxItems": 100
                      },
                      "revision": {
                        "type": "string",
                        "pattern": "^[0-9a-f]{64}$",
                        "maxLength": 64
                      },
                      "resources": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "required": [
                            "requirement_id",
                            "node_id",
                            "node_type",
                            "node_path",
                            "qualification_route",
                            "reason",
                            "required_decision",
                            "resource_paths",
                            "parameter_digest",
                            "binding_status"
                          ],
                          "properties": {
                            "reason": {
                              "type": "string",
                              "maxLength": 128
                            },
                            "node_id": {
                              "type": "string",
                              "maxLength": 128
                            },
                            "node_path": {
                              "type": "array",
                              "items": {
                                "type": [
                                  "string",
                                  "integer"
                                ]
                              },
                              "maxItems": 32
                            },
                            "node_type": {
                              "type": "string",
                              "maxLength": 64
                            },
                            "binding_status": {
                              "enum": [
                                "required",
                                "bound"
                              ]
                            },
                            "requirement_id": {
                              "type": "string",
                              "pattern": "^[0-9a-f]{32}$"
                            },
                            "resource_paths": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "maxLength": 256
                              },
                              "maxItems": 8
                            },
                            "parameter_digest": {
                              "type": "string",
                              "pattern": "^[0-9a-f]{64}$",
                              "maxLength": 64
                            },
                            "required_decision": {
                              "type": "string",
                              "maxLength": 128
                            },
                            "qualification_route": {
                              "enum": [
                                "conditional",
                                "supervised"
                              ]
                            }
                          },
                          "additionalProperties": false
                        },
                        "maxItems": 100
                      },
                      "action_url": {
                        "type": "string",
                        "maxLength": 2048,
                        "minLength": 1
                      },
                      "expires_at": {
                        "type": "string",
                        "format": "date-time",
                        "maxLength": 64
                      },
                      "handoff_ref": {
                        "type": "string",
                        "maxLength": 4096,
                        "minLength": 1
                      },
                      "activity_ref": {
                        "type": "string",
                        "maxLength": 4096,
                        "minLength": 1
                      },
                      "effect_digest": {
                        "type": "string",
                        "pattern": "^[0-9a-f]{64}$",
                        "maxLength": 64
                      },
                      "required_decisions": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "maxLength": 128
                        },
                        "maxItems": 100,
                        "uniqueItems": true
                      }
                    },
                    "additionalProperties": false
                  },
                  "outcome": {
                    "enum": [
                      "resource_bound",
                      "activity_resumed",
                      "activity_cancelled"
                    ]
                  },
                  "findings": {
                    "type": "array",
                    "maxItems": 0
                  },
                  "revision": {
                    "type": "string",
                    "pattern": "^[0-9a-f]{64}$",
                    "maxLength": 64
                  },
                  "truncation": {
                    "type": "object",
                    "required": [
                      "applied",
                      "reason",
                      "omitted_items",
                      "truncated_values",
                      "original_result_bytes"
                    ],
                    "properties": {
                      "reason": {
                        "const": "response_size_limit"
                      },
                      "applied": {
                        "const": true
                      },
                      "omitted_items": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "truncated_values": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "original_result_bytes": {
                        "type": "integer",
                        "minimum": 1
                      }
                    },
                    "additionalProperties": false
                  },
                  "activity_ref": {
                    "type": "string",
                    "maxLength": 4096,
                    "minLength": 1
                  },
                  "activity_state": {
                    "enum": [
                      "queued",
                      "running",
                      "blocked",
                      "done",
                      "failed",
                      "cancelled"
                    ]
                  },
                  "budget_superseded": {
                    "type": "boolean"
                  },
                  "normalization_diff": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "op",
                        "changed"
                      ],
                      "properties": {
                        "op": {
                          "type": "string",
                          "maxLength": 64
                        },
                        "changed": {
                          "type": "boolean"
                        }
                      },
                      "additionalProperties": false
                    },
                    "maxItems": 25
                  },
                  "qualification_invalidated": {
                    "type": "boolean"
                  }
                }
              },
              {
                "type": "object",
                "required": [
                  "error"
                ],
                "properties": {
                  "hint": {
                    "type": "string",
                    "maxLength": 240
                  },
                  "error": {
                    "enum": [
                      "not_found",
                      "invalid_reference",
                      "invalid_params",
                      "revision_conflict",
                      "idempotency_conflict",
                      "document_too_large",
                      "payload_too_large",
                      "chunk_sequence_invalid",
                      "chunk_digest_mismatch",
                      "chunk_expired",
                      "invalid_cursor",
                      "suite_duplicate_case_id",
                      "suite_unresolved_pair",
                      "suite_schema_invalid",
                      "suite_missing_categories",
                      "suite_weak_normal_oracle",
                      "suite_too_large",
                      "unknown_case_id",
                      "duplicate_case_id",
                      "incomplete_case_selection",
                      "unsupported_node_kind",
                      "research_required",
                      "review_required",
                      "acceptance_required",
                      "qualification_stale",
                      "budget_not_approved",
                      "budget_exhausted",
                      "budget_superseded",
                      "budget_capability_consumed",
                      "budget_capability_expired",
                      "acceptance_case_cost_exceeded",
                      "authoring_budget_exceeded",
                      "authoring_grant_not_active",
                      "insufficient_credits",
                      "billing_anomaly",
                      "activity_stalled",
                      "activity_in_flight",
                      "handoff_approval_required",
                      "handoff_expired",
                      "handoff_not_pending",
                      "handoff_stale",
                      "handoff_disclosure_incomplete",
                      "feature_unavailable",
                      "resource_unavailable",
                      "resource_binding_required",
                      "resource_requirement_not_found",
                      "activity_not_cancellable",
                      "quota_exceeded",
                      "rate_limited",
                      "already_published",
                      "safety_locked",
                      "build_terminal",
                      "commit_capability_expired",
                      "account_unavailable",
                      "limit_unavailable"
                    ]
                  },
                  "field": {
                    "type": "string",
                    "maxLength": 64
                  },
                  "issue": {
                    "type": "object",
                    "required": [
                      "code",
                      "path"
                    ],
                    "properties": {
                      "code": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "path": {
                        "type": "string",
                        "maxLength": 512
                      },
                      "type": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "field": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "operator": {
                        "type": "string",
                        "maxLength": 64
                      }
                    },
                    "additionalProperties": false
                  },
                  "case_id": {
                    "type": "string",
                    "maxLength": 64,
                    "minLength": 1
                  },
                  "truncation": {
                    "type": "object",
                    "required": [
                      "applied",
                      "reason",
                      "omitted_items",
                      "truncated_values",
                      "original_result_bytes"
                    ],
                    "properties": {
                      "reason": {
                        "const": "response_size_limit"
                      },
                      "applied": {
                        "const": true
                      },
                      "omitted_items": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "truncated_values": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "original_result_bytes": {
                        "type": "integer",
                        "minimum": 1
                      }
                    },
                    "additionalProperties": false
                  },
                  "repair_hint": {
                    "type": "string",
                    "maxLength": 500
                  },
                  "review_cost": {
                    "type": "object",
                    "required": [
                      "estimated_credits",
                      "limit_credits",
                      "provider",
                      "model",
                      "basis",
                      "input_token_bound",
                      "output_token_cap",
                      "prompt_bytes",
                      "section_bytes"
                    ],
                    "properties": {
                      "basis": {
                        "const": "utf8_byte_upper_bound"
                      },
                      "model": {
                        "type": "string",
                        "maxLength": 200
                      },
                      "provider": {
                        "type": "string",
                        "maxLength": 200
                      },
                      "prompt_bytes": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "limit_credits": {
                        "type": "string",
                        "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                        "maxLength": 64
                      },
                      "section_bytes": {
                        "type": "object",
                        "required": [],
                        "properties": {
                          "spec": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "intent": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "input_contract": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "output_contract": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "acceptance_suite": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "research_evidence": {
                            "type": "integer",
                            "minimum": 0
                          }
                        },
                        "additionalProperties": false
                      },
                      "output_token_cap": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "estimated_credits": {
                        "type": "string",
                        "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                        "maxLength": 64
                      },
                      "input_token_bound": {
                        "type": "integer",
                        "minimum": 0
                      }
                    },
                    "additionalProperties": false
                  },
                  "limit_credits": {
                    "type": "string",
                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                    "maxLength": 64
                  },
                  "estimated_credits": {
                    "type": "string",
                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                    "maxLength": 64
                  },
                  "missing_categories": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 64
                    },
                    "maxItems": 10,
                    "uniqueItems": true
                  },
                  "retry_after_seconds": {
                    "type": "integer",
                    "maximum": 86400,
                    "minimum": 1
                  }
                },
                "additionalProperties": false
              }
            ]
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": true
          }
        },
        {
          "name": "resume_recipe_activity",
          "title": "Resume a Recipe Acceptance Activity",
          "description": "Resume one approved supervised acceptance activity; this may spend credits and call external providers.",
          "inputSchema": {
            "type": "object",
            "required": [
              "build_ref",
              "revision",
              "idempotency_key",
              "handoff_ref",
              "activity_ref"
            ],
            "properties": {
              "revision": {
                "type": "string",
                "pattern": "^[0-9a-f]{64}$",
                "maxLength": 64
              },
              "build_ref": {
                "type": "string",
                "maxLength": 4096,
                "minLength": 1
              },
              "handoff_ref": {
                "type": "string",
                "maxLength": 4096,
                "minLength": 1
              },
              "activity_ref": {
                "type": "string",
                "maxLength": 4096,
                "minLength": 1
              },
              "idempotency_key": {
                "type": "string",
                "pattern": "^[\\x20-\\x7e]+$",
                "maxLength": 200,
                "minLength": 1
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "oneOf": [
              {
                "type": "object",
                "required": [
                  "revision",
                  "normalization_diff",
                  "findings",
                  "qualification_invalidated",
                  "budget_superseded"
                ],
                "properties": {
                  "handoff": {
                    "type": "object",
                    "required": [
                      "handoff_ref",
                      "activity_ref",
                      "revision",
                      "status",
                      "effect_digest",
                      "reason",
                      "required_decisions",
                      "effects",
                      "expires_at",
                      "action_url",
                      "resume"
                    ],
                    "properties": {
                      "reason": {
                        "type": "string",
                        "maxLength": 500
                      },
                      "resume": {
                        "type": "object",
                        "required": [
                          "tool",
                          "operation"
                        ],
                        "properties": {
                          "tool": {
                            "const": "update_recipe_build"
                          },
                          "operation": {
                            "const": "resume_activity"
                          }
                        },
                        "additionalProperties": false
                      },
                      "status": {
                        "enum": [
                          "pending",
                          "approved",
                          "cancelled",
                          "expired",
                          "consumed"
                        ]
                      },
                      "effects": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "required": [
                            "node_id",
                            "node_type",
                            "execution_count",
                            "details"
                          ],
                          "properties": {
                            "details": {
                              "type": "object",
                              "required": [],
                              "properties": {
                                "to": {},
                                "name": {},
                                "query": {},
                                "title": {},
                                "top_k": {},
                                "format": {},
                                "params": {},
                                "prompt": {},
                                "source": {},
                                "options": {},
                                "sources": {},
                                "subject": {},
                                "duration": {},
                                "filename": {},
                                "html_only": {},
                                "max_chunks": {},
                                "visibility": {},
                                "folder_name": {},
                                "folder_ulid": {},
                                "tool_groups": {},
                                "pin_revision": {},
                                "body_template": {},
                                "input_mapping": {},
                                "nested_effects": {},
                                "outcome_rubric": {},
                                "system_message": {},
                                "additional_text": {},
                                "score_threshold": {},
                                "destination_mode": {},
                                "preamble_enabled": {},
                                "child_recipe_ulid": {},
                                "child_revision_sha": {},
                                "local_conflict_mode": {},
                                "outcome_description": {},
                                "external_target_ulid": {},
                                "output_conflict_mode": {},
                                "external_conflict_mode": {},
                                "outcome_max_iterations": {}
                              },
                              "additionalProperties": false
                            },
                            "node_id": {
                              "type": "string",
                              "maxLength": 128
                            },
                            "node_type": {
                              "type": "string",
                              "maxLength": 64
                            },
                            "execution_count": {
                              "type": "integer",
                              "minimum": 0
                            }
                          },
                          "additionalProperties": false
                        },
                        "maxItems": 100
                      },
                      "revision": {
                        "type": "string",
                        "pattern": "^[0-9a-f]{64}$",
                        "maxLength": 64
                      },
                      "resources": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "required": [
                            "requirement_id",
                            "node_id",
                            "node_type",
                            "node_path",
                            "qualification_route",
                            "reason",
                            "required_decision",
                            "resource_paths",
                            "parameter_digest",
                            "binding_status"
                          ],
                          "properties": {
                            "reason": {
                              "type": "string",
                              "maxLength": 128
                            },
                            "node_id": {
                              "type": "string",
                              "maxLength": 128
                            },
                            "node_path": {
                              "type": "array",
                              "items": {
                                "type": [
                                  "string",
                                  "integer"
                                ]
                              },
                              "maxItems": 32
                            },
                            "node_type": {
                              "type": "string",
                              "maxLength": 64
                            },
                            "binding_status": {
                              "enum": [
                                "required",
                                "bound"
                              ]
                            },
                            "requirement_id": {
                              "type": "string",
                              "pattern": "^[0-9a-f]{32}$"
                            },
                            "resource_paths": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "maxLength": 256
                              },
                              "maxItems": 8
                            },
                            "parameter_digest": {
                              "type": "string",
                              "pattern": "^[0-9a-f]{64}$",
                              "maxLength": 64
                            },
                            "required_decision": {
                              "type": "string",
                              "maxLength": 128
                            },
                            "qualification_route": {
                              "enum": [
                                "conditional",
                                "supervised"
                              ]
                            }
                          },
                          "additionalProperties": false
                        },
                        "maxItems": 100
                      },
                      "action_url": {
                        "type": "string",
                        "maxLength": 2048,
                        "minLength": 1
                      },
                      "expires_at": {
                        "type": "string",
                        "format": "date-time",
                        "maxLength": 64
                      },
                      "handoff_ref": {
                        "type": "string",
                        "maxLength": 4096,
                        "minLength": 1
                      },
                      "activity_ref": {
                        "type": "string",
                        "maxLength": 4096,
                        "minLength": 1
                      },
                      "effect_digest": {
                        "type": "string",
                        "pattern": "^[0-9a-f]{64}$",
                        "maxLength": 64
                      },
                      "required_decisions": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "maxLength": 128
                        },
                        "maxItems": 100,
                        "uniqueItems": true
                      }
                    },
                    "additionalProperties": false
                  },
                  "outcome": {
                    "enum": [
                      "resource_bound",
                      "activity_resumed",
                      "activity_cancelled"
                    ]
                  },
                  "findings": {
                    "type": "array",
                    "maxItems": 0
                  },
                  "revision": {
                    "type": "string",
                    "pattern": "^[0-9a-f]{64}$",
                    "maxLength": 64
                  },
                  "truncation": {
                    "type": "object",
                    "required": [
                      "applied",
                      "reason",
                      "omitted_items",
                      "truncated_values",
                      "original_result_bytes"
                    ],
                    "properties": {
                      "reason": {
                        "const": "response_size_limit"
                      },
                      "applied": {
                        "const": true
                      },
                      "omitted_items": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "truncated_values": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "original_result_bytes": {
                        "type": "integer",
                        "minimum": 1
                      }
                    },
                    "additionalProperties": false
                  },
                  "activity_ref": {
                    "type": "string",
                    "maxLength": 4096,
                    "minLength": 1
                  },
                  "activity_state": {
                    "enum": [
                      "queued",
                      "running",
                      "blocked",
                      "done",
                      "failed",
                      "cancelled"
                    ]
                  },
                  "budget_superseded": {
                    "type": "boolean"
                  },
                  "normalization_diff": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "op",
                        "changed"
                      ],
                      "properties": {
                        "op": {
                          "type": "string",
                          "maxLength": 64
                        },
                        "changed": {
                          "type": "boolean"
                        }
                      },
                      "additionalProperties": false
                    },
                    "maxItems": 25
                  },
                  "qualification_invalidated": {
                    "type": "boolean"
                  }
                }
              },
              {
                "type": "object",
                "required": [
                  "error"
                ],
                "properties": {
                  "hint": {
                    "type": "string",
                    "maxLength": 240
                  },
                  "error": {
                    "enum": [
                      "not_found",
                      "invalid_reference",
                      "invalid_params",
                      "revision_conflict",
                      "idempotency_conflict",
                      "document_too_large",
                      "payload_too_large",
                      "chunk_sequence_invalid",
                      "chunk_digest_mismatch",
                      "chunk_expired",
                      "invalid_cursor",
                      "suite_duplicate_case_id",
                      "suite_unresolved_pair",
                      "suite_schema_invalid",
                      "suite_missing_categories",
                      "suite_weak_normal_oracle",
                      "suite_too_large",
                      "unknown_case_id",
                      "duplicate_case_id",
                      "incomplete_case_selection",
                      "unsupported_node_kind",
                      "research_required",
                      "review_required",
                      "acceptance_required",
                      "qualification_stale",
                      "budget_not_approved",
                      "budget_exhausted",
                      "budget_superseded",
                      "budget_capability_consumed",
                      "budget_capability_expired",
                      "acceptance_case_cost_exceeded",
                      "authoring_budget_exceeded",
                      "authoring_grant_not_active",
                      "insufficient_credits",
                      "billing_anomaly",
                      "activity_stalled",
                      "activity_in_flight",
                      "handoff_approval_required",
                      "handoff_expired",
                      "handoff_not_pending",
                      "handoff_stale",
                      "handoff_disclosure_incomplete",
                      "feature_unavailable",
                      "resource_unavailable",
                      "resource_binding_required",
                      "resource_requirement_not_found",
                      "activity_not_cancellable",
                      "quota_exceeded",
                      "rate_limited",
                      "already_published",
                      "safety_locked",
                      "build_terminal",
                      "commit_capability_expired",
                      "account_unavailable",
                      "limit_unavailable"
                    ]
                  },
                  "field": {
                    "type": "string",
                    "maxLength": 64
                  },
                  "issue": {
                    "type": "object",
                    "required": [
                      "code",
                      "path"
                    ],
                    "properties": {
                      "code": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "path": {
                        "type": "string",
                        "maxLength": 512
                      },
                      "type": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "field": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "operator": {
                        "type": "string",
                        "maxLength": 64
                      }
                    },
                    "additionalProperties": false
                  },
                  "case_id": {
                    "type": "string",
                    "maxLength": 64,
                    "minLength": 1
                  },
                  "truncation": {
                    "type": "object",
                    "required": [
                      "applied",
                      "reason",
                      "omitted_items",
                      "truncated_values",
                      "original_result_bytes"
                    ],
                    "properties": {
                      "reason": {
                        "const": "response_size_limit"
                      },
                      "applied": {
                        "const": true
                      },
                      "omitted_items": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "truncated_values": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "original_result_bytes": {
                        "type": "integer",
                        "minimum": 1
                      }
                    },
                    "additionalProperties": false
                  },
                  "repair_hint": {
                    "type": "string",
                    "maxLength": 500
                  },
                  "review_cost": {
                    "type": "object",
                    "required": [
                      "estimated_credits",
                      "limit_credits",
                      "provider",
                      "model",
                      "basis",
                      "input_token_bound",
                      "output_token_cap",
                      "prompt_bytes",
                      "section_bytes"
                    ],
                    "properties": {
                      "basis": {
                        "const": "utf8_byte_upper_bound"
                      },
                      "model": {
                        "type": "string",
                        "maxLength": 200
                      },
                      "provider": {
                        "type": "string",
                        "maxLength": 200
                      },
                      "prompt_bytes": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "limit_credits": {
                        "type": "string",
                        "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                        "maxLength": 64
                      },
                      "section_bytes": {
                        "type": "object",
                        "required": [],
                        "properties": {
                          "spec": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "intent": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "input_contract": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "output_contract": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "acceptance_suite": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "research_evidence": {
                            "type": "integer",
                            "minimum": 0
                          }
                        },
                        "additionalProperties": false
                      },
                      "output_token_cap": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "estimated_credits": {
                        "type": "string",
                        "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                        "maxLength": 64
                      },
                      "input_token_bound": {
                        "type": "integer",
                        "minimum": 0
                      }
                    },
                    "additionalProperties": false
                  },
                  "limit_credits": {
                    "type": "string",
                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                    "maxLength": 64
                  },
                  "estimated_credits": {
                    "type": "string",
                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                    "maxLength": 64
                  },
                  "missing_categories": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 64
                    },
                    "maxItems": 10,
                    "uniqueItems": true
                  },
                  "retry_after_seconds": {
                    "type": "integer",
                    "maximum": 86400,
                    "minimum": 1
                  }
                },
                "additionalProperties": false
              }
            ]
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": true
          }
        },
        {
          "name": "review_recipe_build",
          "title": "Review a Recipe Build",
          "description": "Start one bounded semantic quality review of an exact private build revision.",
          "inputSchema": {
            "type": "object",
            "required": [
              "build_ref",
              "revision",
              "idempotency_key"
            ],
            "properties": {
              "revision": {
                "type": "string",
                "pattern": "^[0-9a-f]{64}$",
                "maxLength": 64
              },
              "build_ref": {
                "type": "string",
                "maxLength": 4096,
                "minLength": 1
              },
              "idempotency_key": {
                "type": "string",
                "pattern": "^[\\x20-\\x7e]+$",
                "maxLength": 200,
                "minLength": 1
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "oneOf": [
              {
                "type": "object",
                "required": [
                  "outcome",
                  "activity_ref",
                  "state",
                  "revision",
                  "poll_after_seconds"
                ],
                "properties": {
                  "state": {
                    "const": "queued"
                  },
                  "fan_out": {
                    "type": "integer",
                    "maximum": 50,
                    "minimum": 1
                  },
                  "outcome": {
                    "const": "queued"
                  },
                  "revision": {
                    "type": "string",
                    "pattern": "^[0-9a-f]{64}$",
                    "maxLength": 64
                  },
                  "truncation": {
                    "type": "object",
                    "required": [
                      "applied",
                      "reason",
                      "omitted_items",
                      "truncated_values",
                      "original_result_bytes"
                    ],
                    "properties": {
                      "reason": {
                        "const": "response_size_limit"
                      },
                      "applied": {
                        "const": true
                      },
                      "omitted_items": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "truncated_values": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "original_result_bytes": {
                        "type": "integer",
                        "minimum": 1
                      }
                    },
                    "additionalProperties": false
                  },
                  "activity_ref": {
                    "type": "string",
                    "maxLength": 4096,
                    "minLength": 1
                  },
                  "poll_after_seconds": {
                    "type": "integer",
                    "maximum": 86400,
                    "minimum": 1
                  }
                }
              },
              {
                "type": "object",
                "required": [
                  "outcome",
                  "activity_ref",
                  "state",
                  "revision",
                  "qualification_route",
                  "handoff"
                ],
                "properties": {
                  "state": {
                    "const": "blocked"
                  },
                  "handoff": {
                    "type": "object",
                    "required": [
                      "handoff_ref",
                      "activity_ref",
                      "revision",
                      "status",
                      "effect_digest",
                      "reason",
                      "required_decisions",
                      "effects",
                      "expires_at",
                      "action_url",
                      "resume"
                    ],
                    "properties": {
                      "reason": {
                        "type": "string",
                        "maxLength": 500
                      },
                      "resume": {
                        "type": "object",
                        "required": [
                          "tool",
                          "operation"
                        ],
                        "properties": {
                          "tool": {
                            "const": "update_recipe_build"
                          },
                          "operation": {
                            "const": "resume_activity"
                          }
                        },
                        "additionalProperties": false
                      },
                      "status": {
                        "enum": [
                          "pending",
                          "approved",
                          "cancelled",
                          "expired",
                          "consumed"
                        ]
                      },
                      "effects": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "required": [
                            "node_id",
                            "node_type",
                            "execution_count",
                            "details"
                          ],
                          "properties": {
                            "details": {
                              "type": "object",
                              "required": [],
                              "properties": {
                                "to": {},
                                "name": {},
                                "query": {},
                                "title": {},
                                "top_k": {},
                                "format": {},
                                "params": {},
                                "prompt": {},
                                "source": {},
                                "options": {},
                                "sources": {},
                                "subject": {},
                                "duration": {},
                                "filename": {},
                                "html_only": {},
                                "max_chunks": {},
                                "visibility": {},
                                "folder_name": {},
                                "folder_ulid": {},
                                "tool_groups": {},
                                "pin_revision": {},
                                "body_template": {},
                                "input_mapping": {},
                                "nested_effects": {},
                                "outcome_rubric": {},
                                "system_message": {},
                                "additional_text": {},
                                "score_threshold": {},
                                "destination_mode": {},
                                "preamble_enabled": {},
                                "child_recipe_ulid": {},
                                "child_revision_sha": {},
                                "local_conflict_mode": {},
                                "outcome_description": {},
                                "external_target_ulid": {},
                                "output_conflict_mode": {},
                                "external_conflict_mode": {},
                                "outcome_max_iterations": {}
                              },
                              "additionalProperties": false
                            },
                            "node_id": {
                              "type": "string",
                              "maxLength": 128
                            },
                            "node_type": {
                              "type": "string",
                              "maxLength": 64
                            },
                            "execution_count": {
                              "type": "integer",
                              "minimum": 0
                            }
                          },
                          "additionalProperties": false
                        },
                        "maxItems": 100
                      },
                      "revision": {
                        "type": "string",
                        "pattern": "^[0-9a-f]{64}$",
                        "maxLength": 64
                      },
                      "resources": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "required": [
                            "requirement_id",
                            "node_id",
                            "node_type",
                            "node_path",
                            "qualification_route",
                            "reason",
                            "required_decision",
                            "resource_paths",
                            "parameter_digest",
                            "binding_status"
                          ],
                          "properties": {
                            "reason": {
                              "type": "string",
                              "maxLength": 128
                            },
                            "node_id": {
                              "type": "string",
                              "maxLength": 128
                            },
                            "node_path": {
                              "type": "array",
                              "items": {
                                "type": [
                                  "string",
                                  "integer"
                                ]
                              },
                              "maxItems": 32
                            },
                            "node_type": {
                              "type": "string",
                              "maxLength": 64
                            },
                            "binding_status": {
                              "enum": [
                                "required",
                                "bound"
                              ]
                            },
                            "requirement_id": {
                              "type": "string",
                              "pattern": "^[0-9a-f]{32}$"
                            },
                            "resource_paths": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "maxLength": 256
                              },
                              "maxItems": 8
                            },
                            "parameter_digest": {
                              "type": "string",
                              "pattern": "^[0-9a-f]{64}$",
                              "maxLength": 64
                            },
                            "required_decision": {
                              "type": "string",
                              "maxLength": 128
                            },
                            "qualification_route": {
                              "enum": [
                                "conditional",
                                "supervised"
                              ]
                            }
                          },
                          "additionalProperties": false
                        },
                        "maxItems": 100
                      },
                      "action_url": {
                        "type": "string",
                        "maxLength": 2048,
                        "minLength": 1
                      },
                      "expires_at": {
                        "type": "string",
                        "format": "date-time",
                        "maxLength": 64
                      },
                      "handoff_ref": {
                        "type": "string",
                        "maxLength": 4096,
                        "minLength": 1
                      },
                      "activity_ref": {
                        "type": "string",
                        "maxLength": 4096,
                        "minLength": 1
                      },
                      "effect_digest": {
                        "type": "string",
                        "pattern": "^[0-9a-f]{64}$",
                        "maxLength": 64
                      },
                      "required_decisions": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "maxLength": 128
                        },
                        "maxItems": 100,
                        "uniqueItems": true
                      }
                    },
                    "additionalProperties": false
                  },
                  "outcome": {
                    "const": "supervised_required"
                  },
                  "revision": {
                    "type": "string",
                    "pattern": "^[0-9a-f]{64}$",
                    "maxLength": 64
                  },
                  "truncation": {
                    "type": "object",
                    "required": [
                      "applied",
                      "reason",
                      "omitted_items",
                      "truncated_values",
                      "original_result_bytes"
                    ],
                    "properties": {
                      "reason": {
                        "const": "response_size_limit"
                      },
                      "applied": {
                        "const": true
                      },
                      "omitted_items": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "truncated_values": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "original_result_bytes": {
                        "type": "integer",
                        "minimum": 1
                      }
                    },
                    "additionalProperties": false
                  },
                  "activity_ref": {
                    "type": "string",
                    "maxLength": 4096,
                    "minLength": 1
                  },
                  "qualification_route": {
                    "const": "supervised"
                  }
                }
              },
              {
                "type": "object",
                "required": [
                  "error"
                ],
                "properties": {
                  "hint": {
                    "type": "string",
                    "maxLength": 240
                  },
                  "error": {
                    "enum": [
                      "not_found",
                      "invalid_reference",
                      "invalid_params",
                      "revision_conflict",
                      "idempotency_conflict",
                      "document_too_large",
                      "payload_too_large",
                      "chunk_sequence_invalid",
                      "chunk_digest_mismatch",
                      "chunk_expired",
                      "invalid_cursor",
                      "suite_duplicate_case_id",
                      "suite_unresolved_pair",
                      "suite_schema_invalid",
                      "suite_missing_categories",
                      "suite_weak_normal_oracle",
                      "suite_too_large",
                      "unknown_case_id",
                      "duplicate_case_id",
                      "incomplete_case_selection",
                      "unsupported_node_kind",
                      "research_required",
                      "review_required",
                      "acceptance_required",
                      "qualification_stale",
                      "budget_not_approved",
                      "budget_exhausted",
                      "budget_superseded",
                      "budget_capability_consumed",
                      "budget_capability_expired",
                      "acceptance_case_cost_exceeded",
                      "authoring_budget_exceeded",
                      "authoring_grant_not_active",
                      "insufficient_credits",
                      "billing_anomaly",
                      "activity_stalled",
                      "activity_in_flight",
                      "handoff_approval_required",
                      "handoff_expired",
                      "handoff_not_pending",
                      "handoff_stale",
                      "handoff_disclosure_incomplete",
                      "feature_unavailable",
                      "resource_unavailable",
                      "resource_binding_required",
                      "resource_requirement_not_found",
                      "activity_not_cancellable",
                      "quota_exceeded",
                      "rate_limited",
                      "already_published",
                      "safety_locked",
                      "build_terminal",
                      "commit_capability_expired",
                      "account_unavailable",
                      "limit_unavailable"
                    ]
                  },
                  "field": {
                    "type": "string",
                    "maxLength": 64
                  },
                  "issue": {
                    "type": "object",
                    "required": [
                      "code",
                      "path"
                    ],
                    "properties": {
                      "code": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "path": {
                        "type": "string",
                        "maxLength": 512
                      },
                      "type": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "field": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "operator": {
                        "type": "string",
                        "maxLength": 64
                      }
                    },
                    "additionalProperties": false
                  },
                  "case_id": {
                    "type": "string",
                    "maxLength": 64,
                    "minLength": 1
                  },
                  "truncation": {
                    "type": "object",
                    "required": [
                      "applied",
                      "reason",
                      "omitted_items",
                      "truncated_values",
                      "original_result_bytes"
                    ],
                    "properties": {
                      "reason": {
                        "const": "response_size_limit"
                      },
                      "applied": {
                        "const": true
                      },
                      "omitted_items": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "truncated_values": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "original_result_bytes": {
                        "type": "integer",
                        "minimum": 1
                      }
                    },
                    "additionalProperties": false
                  },
                  "repair_hint": {
                    "type": "string",
                    "maxLength": 500
                  },
                  "review_cost": {
                    "type": "object",
                    "required": [
                      "estimated_credits",
                      "limit_credits",
                      "provider",
                      "model",
                      "basis",
                      "input_token_bound",
                      "output_token_cap",
                      "prompt_bytes",
                      "section_bytes"
                    ],
                    "properties": {
                      "basis": {
                        "const": "utf8_byte_upper_bound"
                      },
                      "model": {
                        "type": "string",
                        "maxLength": 200
                      },
                      "provider": {
                        "type": "string",
                        "maxLength": 200
                      },
                      "prompt_bytes": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "limit_credits": {
                        "type": "string",
                        "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                        "maxLength": 64
                      },
                      "section_bytes": {
                        "type": "object",
                        "required": [],
                        "properties": {
                          "spec": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "intent": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "input_contract": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "output_contract": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "acceptance_suite": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "research_evidence": {
                            "type": "integer",
                            "minimum": 0
                          }
                        },
                        "additionalProperties": false
                      },
                      "output_token_cap": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "estimated_credits": {
                        "type": "string",
                        "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                        "maxLength": 64
                      },
                      "input_token_bound": {
                        "type": "integer",
                        "minimum": 0
                      }
                    },
                    "additionalProperties": false
                  },
                  "limit_credits": {
                    "type": "string",
                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                    "maxLength": 64
                  },
                  "estimated_credits": {
                    "type": "string",
                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                    "maxLength": 64
                  },
                  "missing_categories": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 64
                    },
                    "maxItems": 10,
                    "uniqueItems": true
                  },
                  "retry_after_seconds": {
                    "type": "integer",
                    "maximum": 86400,
                    "minimum": 1
                  }
                },
                "additionalProperties": false
              }
            ]
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": true
          }
        },
        {
          "name": "run_recipe",
          "title": "Run a StewAI Recipe",
          "description": "Start one previewed public or account-authorized recipe exactly once. This spends credits and may call external providers. Use a fresh idempotency key for a new run; replay the same key after uncertainty.",
          "inputSchema": {
            "type": "object",
            "required": [
              "recipe_ref",
              "inputs",
              "idempotency_key"
            ],
            "properties": {
              "inputs": {
                "type": "object",
                "maxProperties": 50,
                "propertyNames": {
                  "pattern": "^input_[1-9][0-9]*$"
                },
                "additionalProperties": {
                  "type": "string"
                }
              },
              "recipe_ref": {
                "type": "string",
                "maxLength": 32768
              },
              "idempotency_key": {
                "type": "string",
                "pattern": "^[\\x20-\\x7E]+$",
                "maxLength": 200,
                "minLength": 1
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "oneOf": [
              {
                "type": "object",
                "required": [
                  "outcome",
                  "run_id",
                  "status",
                  "estimated_credits"
                ],
                "properties": {
                  "run_id": {
                    "type": "string",
                    "pattern": "^[0-9A-Za-z]{26}$",
                    "maxLength": 26,
                    "minLength": 26
                  },
                  "status": {
                    "const": "queued"
                  },
                  "history": {
                    "type": "object",
                    "required": [
                      "successful_runs",
                      "failed_runs",
                      "average_credits",
                      "median_credits",
                      "p90_credits",
                      "last_run_at",
                      "window_days",
                      "recent_charges"
                    ],
                    "properties": {
                      "failed_runs": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "last_run_at": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "maxLength": 40
                      },
                      "p90_credits": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "maxLength": 32
                      },
                      "window_days": {
                        "type": [
                          "integer",
                          "null"
                        ],
                        "minimum": 1
                      },
                      "median_credits": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "maxLength": 32
                      },
                      "recent_charges": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "maxLength": 32
                        },
                        "maxItems": 2,
                        "description": "Actual charges of the one or two runs when there are too few for statistics."
                      },
                      "average_credits": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "maxLength": 32
                      },
                      "successful_runs": {
                        "type": "integer",
                        "minimum": 0
                      }
                    },
                    "description": "Credits charged by past successful runs of this recipe's current version. With fewer than three runs, statistics are null and recent_charges lists the actual charges.",
                    "additionalProperties": false
                  },
                  "outcome": {
                    "const": "started"
                  },
                  "estimated_credits": {
                    "type": "string",
                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                    "maxLength": 64
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "object",
                "required": [
                  "outcome",
                  "run_id",
                  "status"
                ],
                "properties": {
                  "run_id": {
                    "type": "string",
                    "pattern": "^[0-9A-Za-z]{26}$",
                    "maxLength": 26,
                    "minLength": 26
                  },
                  "status": {
                    "enum": [
                      "queued",
                      "running",
                      "done",
                      "failed",
                      "cancelled",
                      "blocked"
                    ]
                  },
                  "outcome": {
                    "const": "replayed"
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "object",
                "required": [
                  "error"
                ],
                "properties": {
                  "error": {
                    "const": "recipe_unavailable"
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "object",
                "required": [
                  "error"
                ],
                "properties": {
                  "error": {
                    "const": "run_unavailable"
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "object",
                "required": [
                  "error"
                ],
                "properties": {
                  "error": {
                    "const": "account_unavailable"
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "object",
                "required": [
                  "error"
                ],
                "properties": {
                  "error": {
                    "const": "invalid_inputs"
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "object",
                "required": [
                  "error"
                ],
                "properties": {
                  "error": {
                    "const": "idempotency_conflict"
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "object",
                "required": [
                  "error"
                ],
                "properties": {
                  "error": {
                    "const": "idempotency_unavailable"
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "object",
                "required": [
                  "error"
                ],
                "properties": {
                  "error": {
                    "const": "run_limit"
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "object",
                "required": [
                  "error",
                  "retry_after_seconds"
                ],
                "properties": {
                  "error": {
                    "const": "rate_limited"
                  },
                  "retry_after_seconds": {
                    "type": "integer",
                    "maximum": 86400,
                    "minimum": 1
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "object",
                "required": [
                  "error",
                  "required_credits",
                  "available_credits",
                  "can_start",
                  "start_blocker"
                ],
                "properties": {
                  "error": {
                    "const": "insufficient_credits"
                  },
                  "can_start": {
                    "const": false
                  },
                  "start_blocker": {
                    "const": "marketplace_fee_unaffordable"
                  },
                  "required_credits": {
                    "type": "string",
                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                    "maxLength": 64
                  },
                  "available_credits": {
                    "type": "string",
                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                    "maxLength": 64
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "object",
                "required": [
                  "error",
                  "hint"
                ],
                "properties": {
                  "hint": {
                    "type": "string",
                    "maxLength": 240
                  },
                  "error": {
                    "const": "recipe_ref_expired"
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "object",
                "required": [
                  "error",
                  "issues"
                ],
                "properties": {
                  "error": {
                    "const": "invalid_inputs"
                  },
                  "issues": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "path",
                        "code",
                        "message",
                        "hint"
                      ],
                      "properties": {
                        "code": {
                          "enum": [
                            "required",
                            "blank",
                            "invalid_type",
                            "unknown_handle",
                            "too_many_inputs",
                            "max_characters",
                            "max_value_utf8_bytes",
                            "max_total_utf8_bytes"
                          ]
                        },
                        "hint": {
                          "type": "string",
                          "maxLength": 200,
                          "minLength": 1
                        },
                        "path": {
                          "type": "string",
                          "pattern": "^inputs(?:\\.input_[1-9][0-9]*)?$",
                          "maxLength": 32
                        },
                        "limit": {
                          "type": "integer",
                          "minimum": 1
                        },
                        "message": {
                          "type": "string",
                          "maxLength": 160,
                          "minLength": 1
                        },
                        "received": {
                          "type": "object",
                          "required": [
                            "type"
                          ],
                          "properties": {
                            "type": {
                              "enum": [
                                "missing",
                                "null",
                                "boolean",
                                "integer",
                                "number",
                                "string",
                                "array",
                                "object",
                                "other"
                              ]
                            },
                            "characters": {
                              "type": "integer",
                              "minimum": 0
                            },
                            "item_count": {
                              "type": "integer",
                              "minimum": 0
                            },
                            "utf8_bytes": {
                              "type": "integer",
                              "minimum": 0
                            }
                          },
                          "additionalProperties": false
                        }
                      },
                      "additionalProperties": false
                    },
                    "maxItems": 50,
                    "minItems": 1
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "object",
                "required": [
                  "error",
                  "reason",
                  "message",
                  "next_action"
                ],
                "properties": {
                  "error": {
                    "const": "run_unavailable"
                  },
                  "reason": {
                    "enum": [
                      "recipe_validation_failed",
                      "recipe_step_policy_restricted",
                      "recipe_fee_configuration_invalid",
                      "invalid_credit_evidence",
                      "admission_inconsistent",
                      "configuration_unavailable"
                    ]
                  },
                  "message": {
                    "type": "string",
                    "maxLength": 240
                  },
                  "next_action": {
                    "type": "string",
                    "maxLength": 240
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "object",
                "required": [
                  "error",
                  "message",
                  "next_action"
                ],
                "properties": {
                  "error": {
                    "const": "pricing_unavailable"
                  },
                  "message": {
                    "type": "string",
                    "maxLength": 240
                  },
                  "next_action": {
                    "type": "object",
                    "required": [
                      "tool",
                      "action",
                      "reason"
                    ],
                    "properties": {
                      "tool": {
                        "const": "search_recipes"
                      },
                      "action": {
                        "const": "choose_another_recipe"
                      },
                      "reason": {
                        "type": "string",
                        "maxLength": 240
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              }
            ]
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": true
          }
        },
        {
          "name": "run_recipe_acceptance",
          "title": "Run Recipe Acceptance",
          "description": "Run selected behavioral acceptance cases, or the complete suite when case_ids is omitted, for one exact private build revision. This may spend credits and call external providers.",
          "inputSchema": {
            "type": "object",
            "required": [
              "build_ref",
              "revision",
              "idempotency_key"
            ],
            "properties": {
              "case_ids": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 64
                },
                "maxItems": 50,
                "minItems": 1,
                "uniqueItems": true
              },
              "revision": {
                "type": "string",
                "pattern": "^[0-9a-f]{64}$",
                "maxLength": 64
              },
              "build_ref": {
                "type": "string",
                "maxLength": 4096,
                "minLength": 1
              },
              "idempotency_key": {
                "type": "string",
                "pattern": "^[\\x20-\\x7e]+$",
                "maxLength": 200,
                "minLength": 1
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "oneOf": [
              {
                "type": "object",
                "required": [
                  "outcome",
                  "activity_ref",
                  "state",
                  "revision",
                  "poll_after_seconds"
                ],
                "properties": {
                  "state": {
                    "const": "queued"
                  },
                  "fan_out": {
                    "type": "integer",
                    "maximum": 50,
                    "minimum": 1
                  },
                  "outcome": {
                    "const": "queued"
                  },
                  "revision": {
                    "type": "string",
                    "pattern": "^[0-9a-f]{64}$",
                    "maxLength": 64
                  },
                  "truncation": {
                    "type": "object",
                    "required": [
                      "applied",
                      "reason",
                      "omitted_items",
                      "truncated_values",
                      "original_result_bytes"
                    ],
                    "properties": {
                      "reason": {
                        "const": "response_size_limit"
                      },
                      "applied": {
                        "const": true
                      },
                      "omitted_items": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "truncated_values": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "original_result_bytes": {
                        "type": "integer",
                        "minimum": 1
                      }
                    },
                    "additionalProperties": false
                  },
                  "activity_ref": {
                    "type": "string",
                    "maxLength": 4096,
                    "minLength": 1
                  },
                  "poll_after_seconds": {
                    "type": "integer",
                    "maximum": 86400,
                    "minimum": 1
                  }
                }
              },
              {
                "type": "object",
                "required": [
                  "outcome",
                  "activity_ref",
                  "state",
                  "revision",
                  "qualification_route",
                  "handoff"
                ],
                "properties": {
                  "state": {
                    "const": "blocked"
                  },
                  "handoff": {
                    "type": "object",
                    "required": [
                      "handoff_ref",
                      "activity_ref",
                      "revision",
                      "status",
                      "effect_digest",
                      "reason",
                      "required_decisions",
                      "effects",
                      "expires_at",
                      "action_url",
                      "resume"
                    ],
                    "properties": {
                      "reason": {
                        "type": "string",
                        "maxLength": 500
                      },
                      "resume": {
                        "type": "object",
                        "required": [
                          "tool",
                          "operation"
                        ],
                        "properties": {
                          "tool": {
                            "const": "update_recipe_build"
                          },
                          "operation": {
                            "const": "resume_activity"
                          }
                        },
                        "additionalProperties": false
                      },
                      "status": {
                        "enum": [
                          "pending",
                          "approved",
                          "cancelled",
                          "expired",
                          "consumed"
                        ]
                      },
                      "effects": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "required": [
                            "node_id",
                            "node_type",
                            "execution_count",
                            "details"
                          ],
                          "properties": {
                            "details": {
                              "type": "object",
                              "required": [],
                              "properties": {
                                "to": {},
                                "name": {},
                                "query": {},
                                "title": {},
                                "top_k": {},
                                "format": {},
                                "params": {},
                                "prompt": {},
                                "source": {},
                                "options": {},
                                "sources": {},
                                "subject": {},
                                "duration": {},
                                "filename": {},
                                "html_only": {},
                                "max_chunks": {},
                                "visibility": {},
                                "folder_name": {},
                                "folder_ulid": {},
                                "tool_groups": {},
                                "pin_revision": {},
                                "body_template": {},
                                "input_mapping": {},
                                "nested_effects": {},
                                "outcome_rubric": {},
                                "system_message": {},
                                "additional_text": {},
                                "score_threshold": {},
                                "destination_mode": {},
                                "preamble_enabled": {},
                                "child_recipe_ulid": {},
                                "child_revision_sha": {},
                                "local_conflict_mode": {},
                                "outcome_description": {},
                                "external_target_ulid": {},
                                "output_conflict_mode": {},
                                "external_conflict_mode": {},
                                "outcome_max_iterations": {}
                              },
                              "additionalProperties": false
                            },
                            "node_id": {
                              "type": "string",
                              "maxLength": 128
                            },
                            "node_type": {
                              "type": "string",
                              "maxLength": 64
                            },
                            "execution_count": {
                              "type": "integer",
                              "minimum": 0
                            }
                          },
                          "additionalProperties": false
                        },
                        "maxItems": 100
                      },
                      "revision": {
                        "type": "string",
                        "pattern": "^[0-9a-f]{64}$",
                        "maxLength": 64
                      },
                      "resources": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "required": [
                            "requirement_id",
                            "node_id",
                            "node_type",
                            "node_path",
                            "qualification_route",
                            "reason",
                            "required_decision",
                            "resource_paths",
                            "parameter_digest",
                            "binding_status"
                          ],
                          "properties": {
                            "reason": {
                              "type": "string",
                              "maxLength": 128
                            },
                            "node_id": {
                              "type": "string",
                              "maxLength": 128
                            },
                            "node_path": {
                              "type": "array",
                              "items": {
                                "type": [
                                  "string",
                                  "integer"
                                ]
                              },
                              "maxItems": 32
                            },
                            "node_type": {
                              "type": "string",
                              "maxLength": 64
                            },
                            "binding_status": {
                              "enum": [
                                "required",
                                "bound"
                              ]
                            },
                            "requirement_id": {
                              "type": "string",
                              "pattern": "^[0-9a-f]{32}$"
                            },
                            "resource_paths": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "maxLength": 256
                              },
                              "maxItems": 8
                            },
                            "parameter_digest": {
                              "type": "string",
                              "pattern": "^[0-9a-f]{64}$",
                              "maxLength": 64
                            },
                            "required_decision": {
                              "type": "string",
                              "maxLength": 128
                            },
                            "qualification_route": {
                              "enum": [
                                "conditional",
                                "supervised"
                              ]
                            }
                          },
                          "additionalProperties": false
                        },
                        "maxItems": 100
                      },
                      "action_url": {
                        "type": "string",
                        "maxLength": 2048,
                        "minLength": 1
                      },
                      "expires_at": {
                        "type": "string",
                        "format": "date-time",
                        "maxLength": 64
                      },
                      "handoff_ref": {
                        "type": "string",
                        "maxLength": 4096,
                        "minLength": 1
                      },
                      "activity_ref": {
                        "type": "string",
                        "maxLength": 4096,
                        "minLength": 1
                      },
                      "effect_digest": {
                        "type": "string",
                        "pattern": "^[0-9a-f]{64}$",
                        "maxLength": 64
                      },
                      "required_decisions": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "maxLength": 128
                        },
                        "maxItems": 100,
                        "uniqueItems": true
                      }
                    },
                    "additionalProperties": false
                  },
                  "outcome": {
                    "const": "supervised_required"
                  },
                  "revision": {
                    "type": "string",
                    "pattern": "^[0-9a-f]{64}$",
                    "maxLength": 64
                  },
                  "truncation": {
                    "type": "object",
                    "required": [
                      "applied",
                      "reason",
                      "omitted_items",
                      "truncated_values",
                      "original_result_bytes"
                    ],
                    "properties": {
                      "reason": {
                        "const": "response_size_limit"
                      },
                      "applied": {
                        "const": true
                      },
                      "omitted_items": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "truncated_values": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "original_result_bytes": {
                        "type": "integer",
                        "minimum": 1
                      }
                    },
                    "additionalProperties": false
                  },
                  "activity_ref": {
                    "type": "string",
                    "maxLength": 4096,
                    "minLength": 1
                  },
                  "qualification_route": {
                    "const": "supervised"
                  }
                }
              },
              {
                "type": "object",
                "required": [
                  "error"
                ],
                "properties": {
                  "hint": {
                    "type": "string",
                    "maxLength": 240
                  },
                  "error": {
                    "enum": [
                      "not_found",
                      "invalid_reference",
                      "invalid_params",
                      "revision_conflict",
                      "idempotency_conflict",
                      "document_too_large",
                      "payload_too_large",
                      "chunk_sequence_invalid",
                      "chunk_digest_mismatch",
                      "chunk_expired",
                      "invalid_cursor",
                      "suite_duplicate_case_id",
                      "suite_unresolved_pair",
                      "suite_schema_invalid",
                      "suite_missing_categories",
                      "suite_weak_normal_oracle",
                      "suite_too_large",
                      "unknown_case_id",
                      "duplicate_case_id",
                      "incomplete_case_selection",
                      "unsupported_node_kind",
                      "research_required",
                      "review_required",
                      "acceptance_required",
                      "qualification_stale",
                      "budget_not_approved",
                      "budget_exhausted",
                      "budget_superseded",
                      "budget_capability_consumed",
                      "budget_capability_expired",
                      "acceptance_case_cost_exceeded",
                      "authoring_budget_exceeded",
                      "authoring_grant_not_active",
                      "insufficient_credits",
                      "billing_anomaly",
                      "activity_stalled",
                      "activity_in_flight",
                      "handoff_approval_required",
                      "handoff_expired",
                      "handoff_not_pending",
                      "handoff_stale",
                      "handoff_disclosure_incomplete",
                      "feature_unavailable",
                      "resource_unavailable",
                      "resource_binding_required",
                      "resource_requirement_not_found",
                      "activity_not_cancellable",
                      "quota_exceeded",
                      "rate_limited",
                      "already_published",
                      "safety_locked",
                      "build_terminal",
                      "commit_capability_expired",
                      "account_unavailable",
                      "limit_unavailable"
                    ]
                  },
                  "field": {
                    "type": "string",
                    "maxLength": 64
                  },
                  "issue": {
                    "type": "object",
                    "required": [
                      "code",
                      "path"
                    ],
                    "properties": {
                      "code": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "path": {
                        "type": "string",
                        "maxLength": 512
                      },
                      "type": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "field": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "operator": {
                        "type": "string",
                        "maxLength": 64
                      }
                    },
                    "additionalProperties": false
                  },
                  "case_id": {
                    "type": "string",
                    "maxLength": 64,
                    "minLength": 1
                  },
                  "truncation": {
                    "type": "object",
                    "required": [
                      "applied",
                      "reason",
                      "omitted_items",
                      "truncated_values",
                      "original_result_bytes"
                    ],
                    "properties": {
                      "reason": {
                        "const": "response_size_limit"
                      },
                      "applied": {
                        "const": true
                      },
                      "omitted_items": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "truncated_values": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "original_result_bytes": {
                        "type": "integer",
                        "minimum": 1
                      }
                    },
                    "additionalProperties": false
                  },
                  "repair_hint": {
                    "type": "string",
                    "maxLength": 500
                  },
                  "review_cost": {
                    "type": "object",
                    "required": [
                      "estimated_credits",
                      "limit_credits",
                      "provider",
                      "model",
                      "basis",
                      "input_token_bound",
                      "output_token_cap",
                      "prompt_bytes",
                      "section_bytes"
                    ],
                    "properties": {
                      "basis": {
                        "const": "utf8_byte_upper_bound"
                      },
                      "model": {
                        "type": "string",
                        "maxLength": 200
                      },
                      "provider": {
                        "type": "string",
                        "maxLength": 200
                      },
                      "prompt_bytes": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "limit_credits": {
                        "type": "string",
                        "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                        "maxLength": 64
                      },
                      "section_bytes": {
                        "type": "object",
                        "required": [],
                        "properties": {
                          "spec": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "intent": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "input_contract": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "output_contract": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "acceptance_suite": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "research_evidence": {
                            "type": "integer",
                            "minimum": 0
                          }
                        },
                        "additionalProperties": false
                      },
                      "output_token_cap": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "estimated_credits": {
                        "type": "string",
                        "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                        "maxLength": 64
                      },
                      "input_token_bound": {
                        "type": "integer",
                        "minimum": 0
                      }
                    },
                    "additionalProperties": false
                  },
                  "limit_credits": {
                    "type": "string",
                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                    "maxLength": 64
                  },
                  "estimated_credits": {
                    "type": "string",
                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                    "maxLength": 64
                  },
                  "missing_categories": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 64
                    },
                    "maxItems": 10,
                    "uniqueItems": true
                  },
                  "retry_after_seconds": {
                    "type": "integer",
                    "maximum": 86400,
                    "minimum": 1
                  }
                },
                "additionalProperties": false
              }
            ]
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": true
          }
        },
        {
          "name": "search_recipes",
          "title": "Search StewAI Recipes",
          "description": "Find safe public recipes and published recipes available to the current account. results are direct fits (exact or strong); related_results are adjacent recipes, not direct fits. Each row states its output contract, past-run cost history and, for reviewed public recipes, that safety review is not output-quality validation. required_inputs and required_outputs match exact handles or normalized labels, never meanings. When paging.has_more is true, repeat the identical call with cursor=next_cursor.",
          "inputSchema": {
            "type": "object",
            "required": [
              "query"
            ],
            "properties": {
              "query": {
                "type": "string",
                "maxLength": 2000,
                "minLength": 3,
                "description": "At least 3 non-padding characters, up to 2000. Name the task in a few words; add constraints as required_inputs or required_outputs; follow next_cursor when results are cut."
              },
              "cursor": {
                "type": "string",
                "pattern": "^[0-9]{1,2}$",
                "description": "next_cursor from the previous page of the identical query and filters. Omit for the first page."
              },
              "sources": {
                "type": "array",
                "items": {
                  "enum": [
                    "public",
                    "owned",
                    "organization",
                    "shared"
                  ]
                },
                "maxItems": 4,
                "minItems": 1,
                "description": "When omitted, search public recipes and any library lanes authorized by this connection. Explicit private lanes require recipes:read permission.",
                "uniqueItems": true
              },
              "runnable_only": {
                "type": "boolean"
              },
              "required_inputs": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 100,
                  "minLength": 1
                },
                "maxItems": 20,
                "description": "Exact normalized handle/label matching, not semantic meaning; inspect filter_diagnostics for available labels.",
                "uniqueItems": true
              },
              "required_outputs": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 100,
                  "minLength": 1
                },
                "maxItems": 20,
                "description": "Exact normalized handle/label matching, not semantic meaning; filters are never weakened automatically.",
                "uniqueItems": true
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "oneOf": [
              {
                "type": "object",
                "required": [
                  "results",
                  "match_status"
                ],
                "properties": {
                  "paging": {
                    "type": "object",
                    "required": [
                      "has_more",
                      "how"
                    ],
                    "properties": {
                      "how": {
                        "type": "string",
                        "maxLength": 160
                      },
                      "has_more": {
                        "type": "boolean"
                      }
                    },
                    "additionalProperties": false
                  },
                  "results": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "title",
                        "description",
                        "description_truncated",
                        "category",
                        "visibility",
                        "pricing",
                        "duration_band",
                        "rating",
                        "recipe_ref",
                        "source",
                        "access",
                        "state",
                        "qualification",
                        "contracts",
                        "evidence"
                      ],
                      "properties": {
                        "state": {
                          "const": "published"
                        },
                        "title": {
                          "type": "string",
                          "maxLength": 200
                        },
                        "access": {
                          "type": "object",
                          "required": [
                            "can_view",
                            "can_run",
                            "can_fork"
                          ],
                          "properties": {
                            "can_run": {
                              "type": "boolean"
                            },
                            "can_fork": {
                              "type": "boolean"
                            },
                            "can_view": {
                              "type": "boolean"
                            }
                          },
                          "additionalProperties": false
                        },
                        "rating": {
                          "type": "object",
                          "required": [
                            "average",
                            "count"
                          ],
                          "properties": {
                            "count": {
                              "type": "integer",
                              "minimum": 0
                            },
                            "average": {
                              "type": [
                                "number",
                                "null"
                              ]
                            }
                          },
                          "additionalProperties": false
                        },
                        "source": {
                          "enum": [
                            "public",
                            "owned",
                            "organization",
                            "shared"
                          ]
                        },
                        "history": {
                          "type": "object",
                          "required": [
                            "successful_runs",
                            "failed_runs",
                            "average_credits",
                            "median_credits",
                            "p90_credits",
                            "last_run_at",
                            "window_days",
                            "recent_charges"
                          ],
                          "properties": {
                            "failed_runs": {
                              "type": "integer",
                              "minimum": 0
                            },
                            "last_run_at": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "maxLength": 40
                            },
                            "p90_credits": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "maxLength": 32
                            },
                            "window_days": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "minimum": 1
                            },
                            "median_credits": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "maxLength": 32
                            },
                            "recent_charges": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "maxLength": 32
                              },
                              "maxItems": 2,
                              "description": "Actual charges of the one or two runs when there are too few for statistics."
                            },
                            "average_credits": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "maxLength": 32
                            },
                            "successful_runs": {
                              "type": "integer",
                              "minimum": 0
                            }
                          },
                          "description": "Credits charged by past successful runs of this recipe's current version. With fewer than three runs, statistics are null and recent_charges lists the actual charges.",
                          "additionalProperties": false
                        },
                        "pricing": {
                          "type": "object",
                          "required": [
                            "basis",
                            "credit_band",
                            "estimate_requires_dry_run",
                            "creator_fee"
                          ],
                          "properties": {
                            "basis": {
                              "const": "historical_average_successful_runs"
                            },
                            "creator_fee": {
                              "enum": [
                                "marketplace_policy",
                                "none"
                              ]
                            },
                            "credit_band": {
                              "enum": [
                                "unknown",
                                "free",
                                "0_to_10",
                                "10_to_100",
                                "over_100"
                              ],
                              "description": "Band of the average credits per successful run; unknown means no successful runs yet."
                            },
                            "average_credits": {
                              "type": "string",
                              "pattern": "^\\d+(?:\\.\\d+)?$",
                              "maxLength": 128
                            },
                            "estimate_requires_dry_run": {
                              "const": true
                            }
                          },
                          "additionalProperties": false
                        },
                        "category": {
                          "type": "string",
                          "maxLength": 100
                        },
                        "evidence": {
                          "type": "object",
                          "required": [
                            "research_evidence_count",
                            "acceptance_case_count",
                            "last_qualified",
                            "safety_review_state"
                          ],
                          "properties": {
                            "last_qualified": {
                              "enum": [
                                "unknown",
                                "last_7_days",
                                "last_30_days",
                                "older"
                              ]
                            },
                            "safety_review_state": {
                              "enum": [
                                "unreviewed",
                                "pending_attestation",
                                "pending_review",
                                "approved",
                                "rejected",
                                "revision_requested",
                                "delisted",
                                "suspended"
                              ]
                            },
                            "acceptance_case_count": {
                              "type": "integer",
                              "maximum": 50,
                              "minimum": 0
                            },
                            "research_evidence_count": {
                              "type": "integer",
                              "maximum": 100,
                              "minimum": 0
                            }
                          },
                          "additionalProperties": false
                        },
                        "contracts": {
                          "type": "object",
                          "required": [
                            "inputs",
                            "outputs"
                          ],
                          "properties": {
                            "inputs": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "required": [
                                  "handle",
                                  "label",
                                  "required",
                                  "description"
                                ],
                                "properties": {
                                  "label": {
                                    "type": "string",
                                    "maxLength": 100
                                  },
                                  "handle": {
                                    "type": "string",
                                    "pattern": "^[a-z][a-z0-9_]{0,63}$"
                                  },
                                  "required": {
                                    "type": "boolean",
                                    "description": "Declared required by the recipe; get_recipe_preview shows must_provide and default_available for the same handle."
                                  },
                                  "description": {
                                    "type": "string",
                                    "maxLength": 500
                                  }
                                },
                                "additionalProperties": false
                              },
                              "maxItems": 50
                            },
                            "outputs": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "required": [
                                  "handle",
                                  "label",
                                  "required",
                                  "description"
                                ],
                                "properties": {
                                  "label": {
                                    "type": "string",
                                    "maxLength": 100
                                  },
                                  "handle": {
                                    "type": "string",
                                    "pattern": "^[a-z][a-z0-9_]{0,63}$"
                                  },
                                  "required": {
                                    "type": "boolean",
                                    "description": "Declared required by the recipe; get_recipe_preview shows must_provide and default_available for the same handle."
                                  },
                                  "description": {
                                    "type": "string",
                                    "maxLength": 500
                                  }
                                },
                                "additionalProperties": false
                              },
                              "maxItems": 50
                            },
                            "outputs_undeclared": {
                              "type": "boolean"
                            }
                          },
                          "additionalProperties": false
                        },
                        "recipe_ref": {
                          "type": "string",
                          "maxLength": 32768
                        },
                        "visibility": {
                          "enum": [
                            "private",
                            "shared",
                            "public_open",
                            "public_opaque"
                          ]
                        },
                        "description": {
                          "type": "string",
                          "maxLength": 500
                        },
                        "duration_band": {
                          "enum": [
                            "unknown",
                            "seconds",
                            "minutes",
                            "long"
                          ]
                        },
                        "evidence_note": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "maxLength": 240
                        },
                        "match_quality": {
                          "enum": [
                            "exact",
                            "strong",
                            "related",
                            "unknown"
                          ],
                          "description": "strong: the recipe's own title, description, tags or category contain at least two informative query words, or half of them, or the whole query verbatim; related: one word. Suitable rows are ordered exact, strong, then reviewed before unqualified."
                        },
                        "qualification": {
                          "enum": [
                            "public_reviewed",
                            "authoring_qualified",
                            "published_unqualified",
                            "unknown"
                          ]
                        },
                        "matched_fields": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "maxLength": 100
                          },
                          "maxItems": 10
                        },
                        "description_truncated": {
                          "type": "boolean"
                        },
                        "output_contract_state": {
                          "enum": [
                            "declared",
                            "undeclared",
                            "unusable"
                          ],
                          "description": "declared: stable output bindings; undeclared: the recipe declares no outputs even if its description promises some; unusable: outputs exist without a stable binding."
                        }
                      },
                      "additionalProperties": false
                    },
                    "maxItems": 5
                  },
                  "next_action": {
                    "type": "object",
                    "required": [
                      "tool",
                      "action",
                      "reason"
                    ],
                    "properties": {
                      "tool": {
                        "enum": [
                          "get_recipe_build",
                          "discover_stewai"
                        ]
                      },
                      "action": {
                        "enum": [
                          "list_recent_builds",
                          "review_requirements"
                        ]
                      },
                      "reason": {
                        "type": "string",
                        "maxLength": 240
                      }
                    },
                    "additionalProperties": false
                  },
                  "next_cursor": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 2,
                    "description": "Pass back as cursor with the identical query and filters to fetch the next page of suitable results; null on the last page."
                  },
                  "match_status": {
                    "enum": [
                      "matches",
                      "no_suitable_match"
                    ]
                  },
                  "related_results": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "title",
                        "description",
                        "description_truncated",
                        "category",
                        "visibility",
                        "pricing",
                        "duration_band",
                        "rating",
                        "recipe_ref",
                        "source",
                        "access",
                        "state",
                        "qualification",
                        "contracts",
                        "evidence"
                      ],
                      "properties": {
                        "state": {
                          "const": "published"
                        },
                        "title": {
                          "type": "string",
                          "maxLength": 200
                        },
                        "access": {
                          "type": "object",
                          "required": [
                            "can_view",
                            "can_run",
                            "can_fork"
                          ],
                          "properties": {
                            "can_run": {
                              "type": "boolean"
                            },
                            "can_fork": {
                              "type": "boolean"
                            },
                            "can_view": {
                              "type": "boolean"
                            }
                          },
                          "additionalProperties": false
                        },
                        "rating": {
                          "type": "object",
                          "required": [
                            "average",
                            "count"
                          ],
                          "properties": {
                            "count": {
                              "type": "integer",
                              "minimum": 0
                            },
                            "average": {
                              "type": [
                                "number",
                                "null"
                              ]
                            }
                          },
                          "additionalProperties": false
                        },
                        "source": {
                          "enum": [
                            "public",
                            "owned",
                            "organization",
                            "shared"
                          ]
                        },
                        "history": {
                          "type": "object",
                          "required": [
                            "successful_runs",
                            "failed_runs",
                            "average_credits",
                            "median_credits",
                            "p90_credits",
                            "last_run_at",
                            "window_days",
                            "recent_charges"
                          ],
                          "properties": {
                            "failed_runs": {
                              "type": "integer",
                              "minimum": 0
                            },
                            "last_run_at": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "maxLength": 40
                            },
                            "p90_credits": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "maxLength": 32
                            },
                            "window_days": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "minimum": 1
                            },
                            "median_credits": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "maxLength": 32
                            },
                            "recent_charges": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "maxLength": 32
                              },
                              "maxItems": 2,
                              "description": "Actual charges of the one or two runs when there are too few for statistics."
                            },
                            "average_credits": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "maxLength": 32
                            },
                            "successful_runs": {
                              "type": "integer",
                              "minimum": 0
                            }
                          },
                          "description": "Credits charged by past successful runs of this recipe's current version. With fewer than three runs, statistics are null and recent_charges lists the actual charges.",
                          "additionalProperties": false
                        },
                        "pricing": {
                          "type": "object",
                          "required": [
                            "basis",
                            "credit_band",
                            "estimate_requires_dry_run",
                            "creator_fee"
                          ],
                          "properties": {
                            "basis": {
                              "const": "historical_average_successful_runs"
                            },
                            "creator_fee": {
                              "enum": [
                                "marketplace_policy",
                                "none"
                              ]
                            },
                            "credit_band": {
                              "enum": [
                                "unknown",
                                "free",
                                "0_to_10",
                                "10_to_100",
                                "over_100"
                              ],
                              "description": "Band of the average credits per successful run; unknown means no successful runs yet."
                            },
                            "average_credits": {
                              "type": "string",
                              "pattern": "^\\d+(?:\\.\\d+)?$",
                              "maxLength": 128
                            },
                            "estimate_requires_dry_run": {
                              "const": true
                            }
                          },
                          "additionalProperties": false
                        },
                        "category": {
                          "type": "string",
                          "maxLength": 100
                        },
                        "evidence": {
                          "type": "object",
                          "required": [
                            "research_evidence_count",
                            "acceptance_case_count",
                            "last_qualified",
                            "safety_review_state"
                          ],
                          "properties": {
                            "last_qualified": {
                              "enum": [
                                "unknown",
                                "last_7_days",
                                "last_30_days",
                                "older"
                              ]
                            },
                            "safety_review_state": {
                              "enum": [
                                "unreviewed",
                                "pending_attestation",
                                "pending_review",
                                "approved",
                                "rejected",
                                "revision_requested",
                                "delisted",
                                "suspended"
                              ]
                            },
                            "acceptance_case_count": {
                              "type": "integer",
                              "maximum": 50,
                              "minimum": 0
                            },
                            "research_evidence_count": {
                              "type": "integer",
                              "maximum": 100,
                              "minimum": 0
                            }
                          },
                          "additionalProperties": false
                        },
                        "contracts": {
                          "type": "object",
                          "required": [
                            "inputs",
                            "outputs"
                          ],
                          "properties": {
                            "inputs": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "required": [
                                  "handle",
                                  "label",
                                  "required",
                                  "description"
                                ],
                                "properties": {
                                  "label": {
                                    "type": "string",
                                    "maxLength": 100
                                  },
                                  "handle": {
                                    "type": "string",
                                    "pattern": "^[a-z][a-z0-9_]{0,63}$"
                                  },
                                  "required": {
                                    "type": "boolean",
                                    "description": "Declared required by the recipe; get_recipe_preview shows must_provide and default_available for the same handle."
                                  },
                                  "description": {
                                    "type": "string",
                                    "maxLength": 500
                                  }
                                },
                                "additionalProperties": false
                              },
                              "maxItems": 50
                            },
                            "outputs": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "required": [
                                  "handle",
                                  "label",
                                  "required",
                                  "description"
                                ],
                                "properties": {
                                  "label": {
                                    "type": "string",
                                    "maxLength": 100
                                  },
                                  "handle": {
                                    "type": "string",
                                    "pattern": "^[a-z][a-z0-9_]{0,63}$"
                                  },
                                  "required": {
                                    "type": "boolean",
                                    "description": "Declared required by the recipe; get_recipe_preview shows must_provide and default_available for the same handle."
                                  },
                                  "description": {
                                    "type": "string",
                                    "maxLength": 500
                                  }
                                },
                                "additionalProperties": false
                              },
                              "maxItems": 50
                            },
                            "outputs_undeclared": {
                              "type": "boolean"
                            }
                          },
                          "additionalProperties": false
                        },
                        "recipe_ref": {
                          "type": "string",
                          "maxLength": 32768
                        },
                        "visibility": {
                          "enum": [
                            "private",
                            "shared",
                            "public_open",
                            "public_opaque"
                          ]
                        },
                        "description": {
                          "type": "string",
                          "maxLength": 500
                        },
                        "duration_band": {
                          "enum": [
                            "unknown",
                            "seconds",
                            "minutes",
                            "long"
                          ]
                        },
                        "evidence_note": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "maxLength": 240
                        },
                        "match_quality": {
                          "enum": [
                            "exact",
                            "strong",
                            "related",
                            "unknown"
                          ],
                          "description": "strong: the recipe's own title, description, tags or category contain at least two informative query words, or half of them, or the whole query verbatim; related: one word. Suitable rows are ordered exact, strong, then reviewed before unqualified."
                        },
                        "qualification": {
                          "enum": [
                            "public_reviewed",
                            "authoring_qualified",
                            "published_unqualified",
                            "unknown"
                          ]
                        },
                        "matched_fields": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "maxLength": 100
                          },
                          "maxItems": 10
                        },
                        "description_truncated": {
                          "type": "boolean"
                        },
                        "output_contract_state": {
                          "enum": [
                            "declared",
                            "undeclared",
                            "unusable"
                          ],
                          "description": "declared: stable output bindings; undeclared: the recipe declares no outputs even if its description promises some; unusable: outputs exist without a stable binding."
                        }
                      },
                      "additionalProperties": false
                    },
                    "maxItems": 5
                  },
                  "candidate_counts": {
                    "type": "object",
                    "required": [
                      "suitable",
                      "related",
                      "returned"
                    ],
                    "properties": {
                      "related": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "returned": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "suitable": {
                        "type": "integer",
                        "minimum": 0,
                        "description": "Suitable candidates within the ranked pool of at most 25; a value near 25 means more may exist."
                      }
                    },
                    "description": "Counts over the bounded ranked pool, not the whole catalogue.",
                    "additionalProperties": false
                  },
                  "filter_diagnostics": {
                    "type": "object",
                    "required": [
                      "matching",
                      "required_inputs",
                      "required_outputs",
                      "rejected_candidate_count",
                      "available_inputs",
                      "available_outputs",
                      "labels_truncated"
                    ],
                    "properties": {
                      "matching": {
                        "const": "normalized_handles_or_labels_not_meanings"
                      },
                      "labels_note": {
                        "type": "string",
                        "maxLength": 240
                      },
                      "required_inputs": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        },
                        "maxItems": 20
                      },
                      "available_inputs": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "maxLength": 100
                        },
                        "maxItems": 50
                      },
                      "labels_truncated": {
                        "type": "boolean"
                      },
                      "required_outputs": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        },
                        "maxItems": 20
                      },
                      "available_outputs": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "maxLength": 100
                        },
                        "maxItems": 50
                      },
                      "rejected_candidate_count": {
                        "type": "integer",
                        "minimum": 0
                      }
                    },
                    "additionalProperties": false
                  },
                  "excluded_candidates": {
                    "type": "object",
                    "required": [
                      "awaiting_review_binding",
                      "guidance"
                    ],
                    "properties": {
                      "guidance": {
                        "type": "string",
                        "maxLength": 240
                      },
                      "awaiting_review_binding": {
                        "type": "integer",
                        "minimum": 1
                      }
                    },
                    "additionalProperties": false
                  },
                  "related_results_guidance": {
                    "type": "string",
                    "maxLength": 240
                  }
                }
              },
              {
                "type": "object",
                "required": [
                  "error"
                ],
                "properties": {
                  "hint": {
                    "type": "string",
                    "maxLength": 240
                  },
                  "error": {
                    "enum": [
                      "invalid_query",
                      "rate_limited",
                      "search_unavailable"
                    ],
                    "type": "string"
                  },
                  "field": {
                    "type": "string",
                    "maxLength": 32
                  },
                  "retry_after_seconds": {
                    "type": "integer",
                    "minimum": 1
                  }
                },
                "additionalProperties": false
              }
            ]
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "set_recipe_acceptance_cases",
          "title": "Set Recipe Acceptance Cases",
          "description": "Replace the complete behavioral acceptance suite of one private build.",
          "inputSchema": {
            "type": "object",
            "required": [
              "build_ref",
              "revision",
              "idempotency_key",
              "suite"
            ],
            "properties": {
              "suite": {
                "type": "object",
                "required": [
                  "version",
                  "cases"
                ],
                "properties": {
                  "cases": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "case_id",
                        "label",
                        "kind",
                        "fixtures",
                        "assertions"
                      ],
                      "properties": {
                        "kind": {
                          "enum": [
                            "adversarial",
                            "empty",
                            "injection",
                            "malformed",
                            "metamorphic",
                            "normal"
                          ]
                        },
                        "label": {
                          "type": "string",
                          "maxLength": 120,
                          "minLength": 1
                        },
                        "case_id": {
                          "type": "string",
                          "pattern": "^[a-z0-9][a-z0-9_-]{0,63}$"
                        },
                        "fixtures": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "required": [
                              "target",
                              "content_type",
                              "value"
                            ],
                            "properties": {
                              "value": {
                                "type": "string",
                                "maxLength": 32768
                              },
                              "target": {
                                "type": "string",
                                "pattern": "^[a-z0-9][a-z0-9_-]{0,63}$"
                              },
                              "content_type": {
                                "enum": [
                                  "application/json",
                                  "text/plain"
                                ]
                              }
                            },
                            "additionalProperties": false
                          },
                          "maxItems": 20
                        },
                        "pair_with": {
                          "type": "string",
                          "pattern": "^[a-z0-9][a-z0-9_-]{0,63}$"
                        },
                        "assertions": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "allOf": [
                              {
                                "if": {
                                  "required": [
                                    "type"
                                  ],
                                  "properties": {
                                    "type": {
                                      "const": "classification"
                                    }
                                  }
                                },
                                "then": {
                                  "properties": {
                                    "operator": {
                                      "enum": [
                                        "coverage_at_least",
                                        "join_by_id",
                                        "metric_at_least",
                                        "no_critical_false_negative"
                                      ]
                                    }
                                  }
                                }
                              },
                              {
                                "if": {
                                  "required": [
                                    "type"
                                  ],
                                  "properties": {
                                    "type": {
                                      "const": "collection"
                                    }
                                  }
                                },
                                "then": {
                                  "properties": {
                                    "operator": {
                                      "enum": [
                                        "any",
                                        "count_equals",
                                        "covers_records",
                                        "every",
                                        "unique_by"
                                      ]
                                    }
                                  }
                                }
                              },
                              {
                                "if": {
                                  "required": [
                                    "type"
                                  ],
                                  "properties": {
                                    "type": {
                                      "const": "coverage"
                                    }
                                  }
                                },
                                "then": {
                                  "properties": {
                                    "operator": {
                                      "enum": [
                                        "branch_covered",
                                        "enum_covered"
                                      ]
                                    }
                                  }
                                }
                              },
                              {
                                "if": {
                                  "required": [
                                    "type"
                                  ],
                                  "properties": {
                                    "type": {
                                      "const": "html"
                                    }
                                  }
                                },
                                "then": {
                                  "properties": {
                                    "operator": {
                                      "enum": [
                                        "escaped",
                                        "well_formed"
                                      ]
                                    }
                                  }
                                }
                              },
                              {
                                "if": {
                                  "required": [
                                    "type"
                                  ],
                                  "properties": {
                                    "type": {
                                      "const": "paired"
                                    }
                                  }
                                },
                                "then": {
                                  "properties": {
                                    "operator": {
                                      "enum": [
                                        "fields_unchanged",
                                        "mirror_changes",
                                        "permutation_invariant",
                                        "sensitivity_stable"
                                      ]
                                    }
                                  }
                                }
                              },
                              {
                                "if": {
                                  "required": [
                                    "type"
                                  ],
                                  "properties": {
                                    "type": {
                                      "const": "quote_present"
                                    }
                                  }
                                },
                                "then": {
                                  "properties": {
                                    "operator": {
                                      "enum": [
                                        "quote_present_in"
                                      ]
                                    }
                                  }
                                }
                              },
                              {
                                "if": {
                                  "required": [
                                    "type"
                                  ],
                                  "properties": {
                                    "type": {
                                      "const": "reconcile"
                                    }
                                  }
                                },
                                "then": {
                                  "properties": {
                                    "operator": {
                                      "enum": [
                                        "equals_computed",
                                        "within_tolerance"
                                      ]
                                    }
                                  }
                                }
                              },
                              {
                                "if": {
                                  "required": [
                                    "type"
                                  ],
                                  "properties": {
                                    "type": {
                                      "const": "scalar"
                                    }
                                  }
                                },
                                "then": {
                                  "properties": {
                                    "operator": {
                                      "enum": [
                                        "between",
                                        "contains",
                                        "equals",
                                        "exists",
                                        "glob",
                                        "in_set",
                                        "not_in_set",
                                        "type_is"
                                      ]
                                    }
                                  }
                                }
                              },
                              {
                                "if": {
                                  "required": [
                                    "type"
                                  ],
                                  "properties": {
                                    "type": {
                                      "const": "security"
                                    }
                                  }
                                },
                                "then": {
                                  "properties": {
                                    "operator": {
                                      "enum": [
                                        "answer_not_leaked",
                                        "injection_resisted"
                                      ]
                                    }
                                  }
                                }
                              }
                            ],
                            "required": [
                              "assertion_id",
                              "type",
                              "operator"
                            ],
                            "properties": {
                              "left": {
                                "$ref": "#/definitions/expression"
                              },
                              "path": {
                                "type": "string",
                                "maxLength": 256
                              },
                              "type": {
                                "enum": [
                                  "classification",
                                  "collection",
                                  "coverage",
                                  "html",
                                  "paired",
                                  "quote_present",
                                  "reconcile",
                                  "scalar",
                                  "security"
                                ]
                              },
                              "right": {
                                "$ref": "#/definitions/expression"
                              },
                              "fields": {
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "maxLength": 256
                                },
                                "maxItems": 50
                              },
                              "metric": {
                                "enum": [
                                  "accuracy",
                                  "macro_precision",
                                  "macro_recall",
                                  "macro_f1"
                                ]
                              },
                              "values": {
                                "type": "array",
                                "maxItems": 200
                              },
                              "maximum": {
                                "type": "number"
                              },
                              "message": {
                                "type": "string",
                                "maxLength": 200,
                                "minLength": 1
                              },
                              "minimum": {
                                "type": "number"
                              },
                              "pattern": {
                                "type": "string",
                                "maxLength": 256,
                                "minLength": 1
                              },
                              "expected": {},
                              "key_path": {
                                "type": "string",
                                "maxLength": 256
                              },
                              "mappings": {
                                "type": "array",
                                "items": {
                                  "$ref": "#/definitions/field_mapping"
                                },
                                "maxItems": 50
                              },
                              "operator": {
                                "enum": [
                                  "answer_not_leaked",
                                  "any",
                                  "between",
                                  "branch_covered",
                                  "contains",
                                  "count_equals",
                                  "coverage_at_least",
                                  "covers_records",
                                  "enum_covered",
                                  "equals",
                                  "equals_computed",
                                  "escaped",
                                  "every",
                                  "exists",
                                  "fields_unchanged",
                                  "glob",
                                  "in_set",
                                  "injection_resisted",
                                  "join_by_id",
                                  "metric_at_least",
                                  "mirror_changes",
                                  "no_critical_false_negative",
                                  "not_in_set",
                                  "permutation_invariant",
                                  "quote_present_in",
                                  "sensitivity_stable",
                                  "type_is",
                                  "unique_by",
                                  "well_formed",
                                  "within_tolerance"
                                ]
                              },
                              "pair_path": {
                                "type": "string",
                                "maxLength": 256
                              },
                              "predicate": {
                                "$ref": "#/definitions/scalar_predicate"
                              },
                              "threshold": {
                                "type": "number",
                                "maximum": 1,
                                "minimum": 0
                              },
                              "tolerance": {
                                "type": "number",
                                "minimum": 0
                              },
                              "assertion_id": {
                                "type": "string",
                                "pattern": "^[a-z0-9][a-z0-9_-]{0,63}$"
                              },
                              "pair_case_id": {
                                "type": "string",
                                "pattern": "^[a-z0-9][a-z0-9_-]{0,63}$"
                              },
                              "actual_id_path": {
                                "type": "string",
                                "maxLength": 256
                              },
                              "fixture_target": {
                                "type": "string",
                                "pattern": "^[a-z0-9][a-z0-9_-]{0,63}$"
                              },
                              "critical_labels": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                },
                                "maxItems": 50
                              },
                              "fixture_targets": {
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "pattern": "^[a-z0-9][a-z0-9_-]{0,63}$"
                                },
                                "maxItems": 20
                              },
                              "required_values": {
                                "type": "array",
                                "maxItems": 200
                              },
                              "expected_id_path": {
                                "type": "string",
                                "maxLength": 256
                              },
                              "expected_records": {
                                "type": "array",
                                "maxItems": 200
                              },
                              "actual_label_path": {
                                "type": "string",
                                "maxLength": 256
                              },
                              "forbidden_literals": {
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "maxLength": 500
                                },
                                "maxItems": 50
                              },
                              "accepted_limitation": {
                                "type": "string",
                                "maxLength": 500,
                                "minLength": 20,
                                "description": "User-approved semantic limitation and reason for accepting it for supervised private use. Never invent approval. Failure remains visible but does not block this case."
                              },
                              "expected_label_path": {
                                "type": "string",
                                "maxLength": 256
                              }
                            },
                            "additionalProperties": false
                          },
                          "maxItems": 50,
                          "minItems": 1
                        },
                        "expect_branch": {
                          "type": "object",
                          "required": [
                            "path",
                            "value"
                          ],
                          "properties": {
                            "path": {
                              "type": "string",
                              "maxLength": 256
                            },
                            "value": {
                              "type": "string",
                              "maxLength": 64,
                              "minLength": 1
                            }
                          },
                          "additionalProperties": false
                        }
                      },
                      "additionalProperties": false
                    },
                    "maxItems": 50,
                    "minItems": 1
                  },
                  "version": {
                    "const": 1
                  }
                },
                "additionalProperties": false
              },
              "revision": {
                "type": "string",
                "pattern": "^[0-9a-f]{64}$",
                "maxLength": 64
              },
              "build_ref": {
                "type": "string",
                "maxLength": 4096,
                "minLength": 1
              },
              "idempotency_key": {
                "type": "string",
                "pattern": "^[\\x20-\\x7e]+$",
                "maxLength": 200,
                "minLength": 1
              }
            },
            "definitions": {
              "expression": {
                "oneOf": [
                  {
                    "type": "object",
                    "required": [
                      "kind",
                      "value"
                    ],
                    "properties": {
                      "kind": {
                        "const": "literal"
                      },
                      "value": {
                        "type": "number"
                      }
                    },
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "required": [
                      "kind",
                      "path"
                    ],
                    "properties": {
                      "kind": {
                        "const": "path"
                      },
                      "path": {
                        "type": "string",
                        "maxLength": 256
                      }
                    },
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "required": [
                      "kind",
                      "case_id",
                      "path"
                    ],
                    "properties": {
                      "kind": {
                        "const": "case_path"
                      },
                      "path": {
                        "type": "string",
                        "maxLength": 256
                      },
                      "case_id": {
                        "type": "string",
                        "pattern": "^[a-z0-9][a-z0-9_-]{0,63}$"
                      }
                    },
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "required": [
                      "kind",
                      "expression"
                    ],
                    "properties": {
                      "kind": {
                        "enum": [
                          "count",
                          "sum"
                        ]
                      },
                      "expression": {
                        "$ref": "#/definitions/expression"
                      }
                    },
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "required": [
                      "kind",
                      "left",
                      "right"
                    ],
                    "properties": {
                      "kind": {
                        "enum": [
                          "add",
                          "subtract",
                          "multiply",
                          "divide"
                        ]
                      },
                      "left": {
                        "$ref": "#/definitions/expression"
                      },
                      "right": {
                        "$ref": "#/definitions/expression"
                      }
                    },
                    "additionalProperties": false
                  }
                ]
              },
              "field_mapping": {
                "type": "object",
                "required": [
                  "path",
                  "pair_path"
                ],
                "properties": {
                  "path": {
                    "type": "string",
                    "maxLength": 256
                  },
                  "pair_path": {
                    "type": "string",
                    "maxLength": 256
                  }
                },
                "additionalProperties": false
              },
              "scalar_predicate": {
                "type": "object",
                "required": [
                  "operator"
                ],
                "properties": {
                  "path": {
                    "type": "string",
                    "maxLength": 256
                  },
                  "values": {
                    "type": "array",
                    "maxItems": 200
                  },
                  "maximum": {
                    "type": "number"
                  },
                  "minimum": {
                    "type": "number"
                  },
                  "pattern": {
                    "type": "string",
                    "maxLength": 256,
                    "minLength": 1
                  },
                  "expected": {},
                  "operator": {
                    "enum": [
                      "between",
                      "contains",
                      "equals",
                      "exists",
                      "glob",
                      "in_set",
                      "not_in_set",
                      "type_is"
                    ]
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "oneOf": [
              {
                "type": "object",
                "required": [
                  "revision",
                  "normalization_diff",
                  "findings",
                  "qualification_invalidated",
                  "budget_superseded"
                ],
                "properties": {
                  "handoff": {
                    "type": "object",
                    "required": [
                      "handoff_ref",
                      "activity_ref",
                      "revision",
                      "status",
                      "effect_digest",
                      "reason",
                      "required_decisions",
                      "effects",
                      "expires_at",
                      "action_url",
                      "resume"
                    ],
                    "properties": {
                      "reason": {
                        "type": "string",
                        "maxLength": 500
                      },
                      "resume": {
                        "type": "object",
                        "required": [
                          "tool",
                          "operation"
                        ],
                        "properties": {
                          "tool": {
                            "const": "update_recipe_build"
                          },
                          "operation": {
                            "const": "resume_activity"
                          }
                        },
                        "additionalProperties": false
                      },
                      "status": {
                        "enum": [
                          "pending",
                          "approved",
                          "cancelled",
                          "expired",
                          "consumed"
                        ]
                      },
                      "effects": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "required": [
                            "node_id",
                            "node_type",
                            "execution_count",
                            "details"
                          ],
                          "properties": {
                            "details": {
                              "type": "object",
                              "required": [],
                              "properties": {
                                "to": {},
                                "name": {},
                                "query": {},
                                "title": {},
                                "top_k": {},
                                "format": {},
                                "params": {},
                                "prompt": {},
                                "source": {},
                                "options": {},
                                "sources": {},
                                "subject": {},
                                "duration": {},
                                "filename": {},
                                "html_only": {},
                                "max_chunks": {},
                                "visibility": {},
                                "folder_name": {},
                                "folder_ulid": {},
                                "tool_groups": {},
                                "pin_revision": {},
                                "body_template": {},
                                "input_mapping": {},
                                "nested_effects": {},
                                "outcome_rubric": {},
                                "system_message": {},
                                "additional_text": {},
                                "score_threshold": {},
                                "destination_mode": {},
                                "preamble_enabled": {},
                                "child_recipe_ulid": {},
                                "child_revision_sha": {},
                                "local_conflict_mode": {},
                                "outcome_description": {},
                                "external_target_ulid": {},
                                "output_conflict_mode": {},
                                "external_conflict_mode": {},
                                "outcome_max_iterations": {}
                              },
                              "additionalProperties": false
                            },
                            "node_id": {
                              "type": "string",
                              "maxLength": 128
                            },
                            "node_type": {
                              "type": "string",
                              "maxLength": 64
                            },
                            "execution_count": {
                              "type": "integer",
                              "minimum": 0
                            }
                          },
                          "additionalProperties": false
                        },
                        "maxItems": 100
                      },
                      "revision": {
                        "type": "string",
                        "pattern": "^[0-9a-f]{64}$",
                        "maxLength": 64
                      },
                      "resources": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "required": [
                            "requirement_id",
                            "node_id",
                            "node_type",
                            "node_path",
                            "qualification_route",
                            "reason",
                            "required_decision",
                            "resource_paths",
                            "parameter_digest",
                            "binding_status"
                          ],
                          "properties": {
                            "reason": {
                              "type": "string",
                              "maxLength": 128
                            },
                            "node_id": {
                              "type": "string",
                              "maxLength": 128
                            },
                            "node_path": {
                              "type": "array",
                              "items": {
                                "type": [
                                  "string",
                                  "integer"
                                ]
                              },
                              "maxItems": 32
                            },
                            "node_type": {
                              "type": "string",
                              "maxLength": 64
                            },
                            "binding_status": {
                              "enum": [
                                "required",
                                "bound"
                              ]
                            },
                            "requirement_id": {
                              "type": "string",
                              "pattern": "^[0-9a-f]{32}$"
                            },
                            "resource_paths": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "maxLength": 256
                              },
                              "maxItems": 8
                            },
                            "parameter_digest": {
                              "type": "string",
                              "pattern": "^[0-9a-f]{64}$",
                              "maxLength": 64
                            },
                            "required_decision": {
                              "type": "string",
                              "maxLength": 128
                            },
                            "qualification_route": {
                              "enum": [
                                "conditional",
                                "supervised"
                              ]
                            }
                          },
                          "additionalProperties": false
                        },
                        "maxItems": 100
                      },
                      "action_url": {
                        "type": "string",
                        "maxLength": 2048,
                        "minLength": 1
                      },
                      "expires_at": {
                        "type": "string",
                        "format": "date-time",
                        "maxLength": 64
                      },
                      "handoff_ref": {
                        "type": "string",
                        "maxLength": 4096,
                        "minLength": 1
                      },
                      "activity_ref": {
                        "type": "string",
                        "maxLength": 4096,
                        "minLength": 1
                      },
                      "effect_digest": {
                        "type": "string",
                        "pattern": "^[0-9a-f]{64}$",
                        "maxLength": 64
                      },
                      "required_decisions": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "maxLength": 128
                        },
                        "maxItems": 100,
                        "uniqueItems": true
                      }
                    },
                    "additionalProperties": false
                  },
                  "outcome": {
                    "enum": [
                      "resource_bound",
                      "activity_resumed",
                      "activity_cancelled"
                    ]
                  },
                  "findings": {
                    "type": "array",
                    "maxItems": 0
                  },
                  "revision": {
                    "type": "string",
                    "pattern": "^[0-9a-f]{64}$",
                    "maxLength": 64
                  },
                  "truncation": {
                    "type": "object",
                    "required": [
                      "applied",
                      "reason",
                      "omitted_items",
                      "truncated_values",
                      "original_result_bytes"
                    ],
                    "properties": {
                      "reason": {
                        "const": "response_size_limit"
                      },
                      "applied": {
                        "const": true
                      },
                      "omitted_items": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "truncated_values": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "original_result_bytes": {
                        "type": "integer",
                        "minimum": 1
                      }
                    },
                    "additionalProperties": false
                  },
                  "activity_ref": {
                    "type": "string",
                    "maxLength": 4096,
                    "minLength": 1
                  },
                  "activity_state": {
                    "enum": [
                      "queued",
                      "running",
                      "blocked",
                      "done",
                      "failed",
                      "cancelled"
                    ]
                  },
                  "budget_superseded": {
                    "type": "boolean"
                  },
                  "normalization_diff": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "op",
                        "changed"
                      ],
                      "properties": {
                        "op": {
                          "type": "string",
                          "maxLength": 64
                        },
                        "changed": {
                          "type": "boolean"
                        }
                      },
                      "additionalProperties": false
                    },
                    "maxItems": 25
                  },
                  "qualification_invalidated": {
                    "type": "boolean"
                  }
                }
              },
              {
                "type": "object",
                "required": [
                  "error"
                ],
                "properties": {
                  "hint": {
                    "type": "string",
                    "maxLength": 240
                  },
                  "error": {
                    "enum": [
                      "not_found",
                      "invalid_reference",
                      "invalid_params",
                      "revision_conflict",
                      "idempotency_conflict",
                      "document_too_large",
                      "payload_too_large",
                      "chunk_sequence_invalid",
                      "chunk_digest_mismatch",
                      "chunk_expired",
                      "invalid_cursor",
                      "suite_duplicate_case_id",
                      "suite_unresolved_pair",
                      "suite_schema_invalid",
                      "suite_missing_categories",
                      "suite_weak_normal_oracle",
                      "suite_too_large",
                      "unknown_case_id",
                      "duplicate_case_id",
                      "incomplete_case_selection",
                      "unsupported_node_kind",
                      "research_required",
                      "review_required",
                      "acceptance_required",
                      "qualification_stale",
                      "budget_not_approved",
                      "budget_exhausted",
                      "budget_superseded",
                      "budget_capability_consumed",
                      "budget_capability_expired",
                      "acceptance_case_cost_exceeded",
                      "authoring_budget_exceeded",
                      "authoring_grant_not_active",
                      "insufficient_credits",
                      "billing_anomaly",
                      "activity_stalled",
                      "activity_in_flight",
                      "handoff_approval_required",
                      "handoff_expired",
                      "handoff_not_pending",
                      "handoff_stale",
                      "handoff_disclosure_incomplete",
                      "feature_unavailable",
                      "resource_unavailable",
                      "resource_binding_required",
                      "resource_requirement_not_found",
                      "activity_not_cancellable",
                      "quota_exceeded",
                      "rate_limited",
                      "already_published",
                      "safety_locked",
                      "build_terminal",
                      "commit_capability_expired",
                      "account_unavailable",
                      "limit_unavailable"
                    ]
                  },
                  "field": {
                    "type": "string",
                    "maxLength": 64
                  },
                  "issue": {
                    "type": "object",
                    "required": [
                      "code",
                      "path"
                    ],
                    "properties": {
                      "code": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "path": {
                        "type": "string",
                        "maxLength": 512
                      },
                      "type": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "field": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "operator": {
                        "type": "string",
                        "maxLength": 64
                      }
                    },
                    "additionalProperties": false
                  },
                  "case_id": {
                    "type": "string",
                    "maxLength": 64,
                    "minLength": 1
                  },
                  "truncation": {
                    "type": "object",
                    "required": [
                      "applied",
                      "reason",
                      "omitted_items",
                      "truncated_values",
                      "original_result_bytes"
                    ],
                    "properties": {
                      "reason": {
                        "const": "response_size_limit"
                      },
                      "applied": {
                        "const": true
                      },
                      "omitted_items": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "truncated_values": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "original_result_bytes": {
                        "type": "integer",
                        "minimum": 1
                      }
                    },
                    "additionalProperties": false
                  },
                  "repair_hint": {
                    "type": "string",
                    "maxLength": 500
                  },
                  "review_cost": {
                    "type": "object",
                    "required": [
                      "estimated_credits",
                      "limit_credits",
                      "provider",
                      "model",
                      "basis",
                      "input_token_bound",
                      "output_token_cap",
                      "prompt_bytes",
                      "section_bytes"
                    ],
                    "properties": {
                      "basis": {
                        "const": "utf8_byte_upper_bound"
                      },
                      "model": {
                        "type": "string",
                        "maxLength": 200
                      },
                      "provider": {
                        "type": "string",
                        "maxLength": 200
                      },
                      "prompt_bytes": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "limit_credits": {
                        "type": "string",
                        "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                        "maxLength": 64
                      },
                      "section_bytes": {
                        "type": "object",
                        "required": [],
                        "properties": {
                          "spec": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "intent": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "input_contract": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "output_contract": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "acceptance_suite": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "research_evidence": {
                            "type": "integer",
                            "minimum": 0
                          }
                        },
                        "additionalProperties": false
                      },
                      "output_token_cap": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "estimated_credits": {
                        "type": "string",
                        "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                        "maxLength": 64
                      },
                      "input_token_bound": {
                        "type": "integer",
                        "minimum": 0
                      }
                    },
                    "additionalProperties": false
                  },
                  "limit_credits": {
                    "type": "string",
                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                    "maxLength": 64
                  },
                  "estimated_credits": {
                    "type": "string",
                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                    "maxLength": 64
                  },
                  "missing_categories": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 64
                    },
                    "maxItems": 10,
                    "uniqueItems": true
                  },
                  "retry_after_seconds": {
                    "type": "integer",
                    "maximum": 86400,
                    "minimum": 1
                  }
                },
                "additionalProperties": false
              }
            ]
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": true
          }
        },
        {
          "name": "set_recipe_contracts",
          "title": "Set Recipe Build Contracts",
          "description": "Replace the declared input and output contracts of one private build.",
          "inputSchema": {
            "type": "object",
            "required": [
              "build_ref",
              "revision",
              "idempotency_key",
              "input_contract",
              "output_contract"
            ],
            "properties": {
              "revision": {
                "type": "string",
                "pattern": "^[0-9a-f]{64}$",
                "maxLength": 64
              },
              "build_ref": {
                "type": "string",
                "maxLength": 4096,
                "minLength": 1
              },
              "input_contract": {
                "type": "object",
                "required": [
                  "fields"
                ],
                "properties": {
                  "fields": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "handle",
                        "label",
                        "description",
                        "required",
                        "schema"
                      ],
                      "properties": {
                        "label": {
                          "type": "string",
                          "maxLength": 120,
                          "minLength": 1
                        },
                        "handle": {
                          "type": "string",
                          "pattern": "^[a-z][a-z0-9_]{0,63}$",
                          "maxLength": 64
                        },
                        "schema": {
                          "type": "object",
                          "maxProperties": 100
                        },
                        "required": {
                          "type": "boolean"
                        },
                        "description": {
                          "type": "string",
                          "maxLength": 500
                        }
                      },
                      "additionalProperties": false
                    },
                    "maxItems": 20
                  }
                },
                "additionalProperties": false
              },
              "idempotency_key": {
                "type": "string",
                "pattern": "^[\\x20-\\x7e]+$",
                "maxLength": 200,
                "minLength": 1
              },
              "output_contract": {
                "type": "object",
                "required": [
                  "fields"
                ],
                "properties": {
                  "fields": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "handle",
                        "label",
                        "description",
                        "required",
                        "schema"
                      ],
                      "properties": {
                        "label": {
                          "type": "string",
                          "maxLength": 120,
                          "minLength": 1
                        },
                        "handle": {
                          "type": "string",
                          "pattern": "^[a-z][a-z0-9_]{0,63}$",
                          "maxLength": 64
                        },
                        "schema": {
                          "type": "object",
                          "maxProperties": 100
                        },
                        "required": {
                          "const": true
                        },
                        "description": {
                          "type": "string",
                          "maxLength": 500
                        }
                      },
                      "additionalProperties": false
                    },
                    "maxItems": 20
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "oneOf": [
              {
                "type": "object",
                "required": [
                  "revision",
                  "normalization_diff",
                  "findings",
                  "qualification_invalidated",
                  "budget_superseded"
                ],
                "properties": {
                  "handoff": {
                    "type": "object",
                    "required": [
                      "handoff_ref",
                      "activity_ref",
                      "revision",
                      "status",
                      "effect_digest",
                      "reason",
                      "required_decisions",
                      "effects",
                      "expires_at",
                      "action_url",
                      "resume"
                    ],
                    "properties": {
                      "reason": {
                        "type": "string",
                        "maxLength": 500
                      },
                      "resume": {
                        "type": "object",
                        "required": [
                          "tool",
                          "operation"
                        ],
                        "properties": {
                          "tool": {
                            "const": "update_recipe_build"
                          },
                          "operation": {
                            "const": "resume_activity"
                          }
                        },
                        "additionalProperties": false
                      },
                      "status": {
                        "enum": [
                          "pending",
                          "approved",
                          "cancelled",
                          "expired",
                          "consumed"
                        ]
                      },
                      "effects": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "required": [
                            "node_id",
                            "node_type",
                            "execution_count",
                            "details"
                          ],
                          "properties": {
                            "details": {
                              "type": "object",
                              "required": [],
                              "properties": {
                                "to": {},
                                "name": {},
                                "query": {},
                                "title": {},
                                "top_k": {},
                                "format": {},
                                "params": {},
                                "prompt": {},
                                "source": {},
                                "options": {},
                                "sources": {},
                                "subject": {},
                                "duration": {},
                                "filename": {},
                                "html_only": {},
                                "max_chunks": {},
                                "visibility": {},
                                "folder_name": {},
                                "folder_ulid": {},
                                "tool_groups": {},
                                "pin_revision": {},
                                "body_template": {},
                                "input_mapping": {},
                                "nested_effects": {},
                                "outcome_rubric": {},
                                "system_message": {},
                                "additional_text": {},
                                "score_threshold": {},
                                "destination_mode": {},
                                "preamble_enabled": {},
                                "child_recipe_ulid": {},
                                "child_revision_sha": {},
                                "local_conflict_mode": {},
                                "outcome_description": {},
                                "external_target_ulid": {},
                                "output_conflict_mode": {},
                                "external_conflict_mode": {},
                                "outcome_max_iterations": {}
                              },
                              "additionalProperties": false
                            },
                            "node_id": {
                              "type": "string",
                              "maxLength": 128
                            },
                            "node_type": {
                              "type": "string",
                              "maxLength": 64
                            },
                            "execution_count": {
                              "type": "integer",
                              "minimum": 0
                            }
                          },
                          "additionalProperties": false
                        },
                        "maxItems": 100
                      },
                      "revision": {
                        "type": "string",
                        "pattern": "^[0-9a-f]{64}$",
                        "maxLength": 64
                      },
                      "resources": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "required": [
                            "requirement_id",
                            "node_id",
                            "node_type",
                            "node_path",
                            "qualification_route",
                            "reason",
                            "required_decision",
                            "resource_paths",
                            "parameter_digest",
                            "binding_status"
                          ],
                          "properties": {
                            "reason": {
                              "type": "string",
                              "maxLength": 128
                            },
                            "node_id": {
                              "type": "string",
                              "maxLength": 128
                            },
                            "node_path": {
                              "type": "array",
                              "items": {
                                "type": [
                                  "string",
                                  "integer"
                                ]
                              },
                              "maxItems": 32
                            },
                            "node_type": {
                              "type": "string",
                              "maxLength": 64
                            },
                            "binding_status": {
                              "enum": [
                                "required",
                                "bound"
                              ]
                            },
                            "requirement_id": {
                              "type": "string",
                              "pattern": "^[0-9a-f]{32}$"
                            },
                            "resource_paths": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "maxLength": 256
                              },
                              "maxItems": 8
                            },
                            "parameter_digest": {
                              "type": "string",
                              "pattern": "^[0-9a-f]{64}$",
                              "maxLength": 64
                            },
                            "required_decision": {
                              "type": "string",
                              "maxLength": 128
                            },
                            "qualification_route": {
                              "enum": [
                                "conditional",
                                "supervised"
                              ]
                            }
                          },
                          "additionalProperties": false
                        },
                        "maxItems": 100
                      },
                      "action_url": {
                        "type": "string",
                        "maxLength": 2048,
                        "minLength": 1
                      },
                      "expires_at": {
                        "type": "string",
                        "format": "date-time",
                        "maxLength": 64
                      },
                      "handoff_ref": {
                        "type": "string",
                        "maxLength": 4096,
                        "minLength": 1
                      },
                      "activity_ref": {
                        "type": "string",
                        "maxLength": 4096,
                        "minLength": 1
                      },
                      "effect_digest": {
                        "type": "string",
                        "pattern": "^[0-9a-f]{64}$",
                        "maxLength": 64
                      },
                      "required_decisions": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "maxLength": 128
                        },
                        "maxItems": 100,
                        "uniqueItems": true
                      }
                    },
                    "additionalProperties": false
                  },
                  "outcome": {
                    "enum": [
                      "resource_bound",
                      "activity_resumed",
                      "activity_cancelled"
                    ]
                  },
                  "findings": {
                    "type": "array",
                    "maxItems": 0
                  },
                  "revision": {
                    "type": "string",
                    "pattern": "^[0-9a-f]{64}$",
                    "maxLength": 64
                  },
                  "truncation": {
                    "type": "object",
                    "required": [
                      "applied",
                      "reason",
                      "omitted_items",
                      "truncated_values",
                      "original_result_bytes"
                    ],
                    "properties": {
                      "reason": {
                        "const": "response_size_limit"
                      },
                      "applied": {
                        "const": true
                      },
                      "omitted_items": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "truncated_values": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "original_result_bytes": {
                        "type": "integer",
                        "minimum": 1
                      }
                    },
                    "additionalProperties": false
                  },
                  "activity_ref": {
                    "type": "string",
                    "maxLength": 4096,
                    "minLength": 1
                  },
                  "activity_state": {
                    "enum": [
                      "queued",
                      "running",
                      "blocked",
                      "done",
                      "failed",
                      "cancelled"
                    ]
                  },
                  "budget_superseded": {
                    "type": "boolean"
                  },
                  "normalization_diff": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "op",
                        "changed"
                      ],
                      "properties": {
                        "op": {
                          "type": "string",
                          "maxLength": 64
                        },
                        "changed": {
                          "type": "boolean"
                        }
                      },
                      "additionalProperties": false
                    },
                    "maxItems": 25
                  },
                  "qualification_invalidated": {
                    "type": "boolean"
                  }
                }
              },
              {
                "type": "object",
                "required": [
                  "error"
                ],
                "properties": {
                  "hint": {
                    "type": "string",
                    "maxLength": 240
                  },
                  "error": {
                    "enum": [
                      "not_found",
                      "invalid_reference",
                      "invalid_params",
                      "revision_conflict",
                      "idempotency_conflict",
                      "document_too_large",
                      "payload_too_large",
                      "chunk_sequence_invalid",
                      "chunk_digest_mismatch",
                      "chunk_expired",
                      "invalid_cursor",
                      "suite_duplicate_case_id",
                      "suite_unresolved_pair",
                      "suite_schema_invalid",
                      "suite_missing_categories",
                      "suite_weak_normal_oracle",
                      "suite_too_large",
                      "unknown_case_id",
                      "duplicate_case_id",
                      "incomplete_case_selection",
                      "unsupported_node_kind",
                      "research_required",
                      "review_required",
                      "acceptance_required",
                      "qualification_stale",
                      "budget_not_approved",
                      "budget_exhausted",
                      "budget_superseded",
                      "budget_capability_consumed",
                      "budget_capability_expired",
                      "acceptance_case_cost_exceeded",
                      "authoring_budget_exceeded",
                      "authoring_grant_not_active",
                      "insufficient_credits",
                      "billing_anomaly",
                      "activity_stalled",
                      "activity_in_flight",
                      "handoff_approval_required",
                      "handoff_expired",
                      "handoff_not_pending",
                      "handoff_stale",
                      "handoff_disclosure_incomplete",
                      "feature_unavailable",
                      "resource_unavailable",
                      "resource_binding_required",
                      "resource_requirement_not_found",
                      "activity_not_cancellable",
                      "quota_exceeded",
                      "rate_limited",
                      "already_published",
                      "safety_locked",
                      "build_terminal",
                      "commit_capability_expired",
                      "account_unavailable",
                      "limit_unavailable"
                    ]
                  },
                  "field": {
                    "type": "string",
                    "maxLength": 64
                  },
                  "issue": {
                    "type": "object",
                    "required": [
                      "code",
                      "path"
                    ],
                    "properties": {
                      "code": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "path": {
                        "type": "string",
                        "maxLength": 512
                      },
                      "type": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "field": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "operator": {
                        "type": "string",
                        "maxLength": 64
                      }
                    },
                    "additionalProperties": false
                  },
                  "case_id": {
                    "type": "string",
                    "maxLength": 64,
                    "minLength": 1
                  },
                  "truncation": {
                    "type": "object",
                    "required": [
                      "applied",
                      "reason",
                      "omitted_items",
                      "truncated_values",
                      "original_result_bytes"
                    ],
                    "properties": {
                      "reason": {
                        "const": "response_size_limit"
                      },
                      "applied": {
                        "const": true
                      },
                      "omitted_items": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "truncated_values": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "original_result_bytes": {
                        "type": "integer",
                        "minimum": 1
                      }
                    },
                    "additionalProperties": false
                  },
                  "repair_hint": {
                    "type": "string",
                    "maxLength": 500
                  },
                  "review_cost": {
                    "type": "object",
                    "required": [
                      "estimated_credits",
                      "limit_credits",
                      "provider",
                      "model",
                      "basis",
                      "input_token_bound",
                      "output_token_cap",
                      "prompt_bytes",
                      "section_bytes"
                    ],
                    "properties": {
                      "basis": {
                        "const": "utf8_byte_upper_bound"
                      },
                      "model": {
                        "type": "string",
                        "maxLength": 200
                      },
                      "provider": {
                        "type": "string",
                        "maxLength": 200
                      },
                      "prompt_bytes": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "limit_credits": {
                        "type": "string",
                        "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                        "maxLength": 64
                      },
                      "section_bytes": {
                        "type": "object",
                        "required": [],
                        "properties": {
                          "spec": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "intent": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "input_contract": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "output_contract": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "acceptance_suite": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "research_evidence": {
                            "type": "integer",
                            "minimum": 0
                          }
                        },
                        "additionalProperties": false
                      },
                      "output_token_cap": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "estimated_credits": {
                        "type": "string",
                        "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                        "maxLength": 64
                      },
                      "input_token_bound": {
                        "type": "integer",
                        "minimum": 0
                      }
                    },
                    "additionalProperties": false
                  },
                  "limit_credits": {
                    "type": "string",
                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                    "maxLength": 64
                  },
                  "estimated_credits": {
                    "type": "string",
                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                    "maxLength": 64
                  },
                  "missing_categories": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 64
                    },
                    "maxItems": 10,
                    "uniqueItems": true
                  },
                  "retry_after_seconds": {
                    "type": "integer",
                    "maximum": 86400,
                    "minimum": 1
                  }
                },
                "additionalProperties": false
              }
            ]
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": true
          }
        },
        {
          "name": "set_recipe_metadata",
          "title": "Set Recipe Build Metadata",
          "description": "Replace selected name, description, UI, or comment metadata on one private build.",
          "inputSchema": {
            "type": "object",
            "required": [
              "build_ref",
              "revision",
              "idempotency_key",
              "metadata"
            ],
            "properties": {
              "metadata": {
                "type": "object",
                "required": [],
                "properties": {
                  "$ui": {
                    "type": "object"
                  },
                  "name": {
                    "type": "string",
                    "maxLength": 200,
                    "minLength": 1
                  },
                  "$comment": {
                    "oneOf": [
                      {
                        "type": "string",
                        "maxLength": 4096
                      },
                      {
                        "type": "object"
                      }
                    ]
                  },
                  "description": {
                    "type": "string",
                    "maxLength": 4096
                  }
                },
                "additionalProperties": false
              },
              "revision": {
                "type": "string",
                "pattern": "^[0-9a-f]{64}$",
                "maxLength": 64
              },
              "build_ref": {
                "type": "string",
                "maxLength": 4096,
                "minLength": 1
              },
              "idempotency_key": {
                "type": "string",
                "pattern": "^[\\x20-\\x7e]+$",
                "maxLength": 200,
                "minLength": 1
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "oneOf": [
              {
                "type": "object",
                "required": [
                  "revision",
                  "normalization_diff",
                  "findings",
                  "qualification_invalidated",
                  "budget_superseded"
                ],
                "properties": {
                  "handoff": {
                    "type": "object",
                    "required": [
                      "handoff_ref",
                      "activity_ref",
                      "revision",
                      "status",
                      "effect_digest",
                      "reason",
                      "required_decisions",
                      "effects",
                      "expires_at",
                      "action_url",
                      "resume"
                    ],
                    "properties": {
                      "reason": {
                        "type": "string",
                        "maxLength": 500
                      },
                      "resume": {
                        "type": "object",
                        "required": [
                          "tool",
                          "operation"
                        ],
                        "properties": {
                          "tool": {
                            "const": "update_recipe_build"
                          },
                          "operation": {
                            "const": "resume_activity"
                          }
                        },
                        "additionalProperties": false
                      },
                      "status": {
                        "enum": [
                          "pending",
                          "approved",
                          "cancelled",
                          "expired",
                          "consumed"
                        ]
                      },
                      "effects": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "required": [
                            "node_id",
                            "node_type",
                            "execution_count",
                            "details"
                          ],
                          "properties": {
                            "details": {
                              "type": "object",
                              "required": [],
                              "properties": {
                                "to": {},
                                "name": {},
                                "query": {},
                                "title": {},
                                "top_k": {},
                                "format": {},
                                "params": {},
                                "prompt": {},
                                "source": {},
                                "options": {},
                                "sources": {},
                                "subject": {},
                                "duration": {},
                                "filename": {},
                                "html_only": {},
                                "max_chunks": {},
                                "visibility": {},
                                "folder_name": {},
                                "folder_ulid": {},
                                "tool_groups": {},
                                "pin_revision": {},
                                "body_template": {},
                                "input_mapping": {},
                                "nested_effects": {},
                                "outcome_rubric": {},
                                "system_message": {},
                                "additional_text": {},
                                "score_threshold": {},
                                "destination_mode": {},
                                "preamble_enabled": {},
                                "child_recipe_ulid": {},
                                "child_revision_sha": {},
                                "local_conflict_mode": {},
                                "outcome_description": {},
                                "external_target_ulid": {},
                                "output_conflict_mode": {},
                                "external_conflict_mode": {},
                                "outcome_max_iterations": {}
                              },
                              "additionalProperties": false
                            },
                            "node_id": {
                              "type": "string",
                              "maxLength": 128
                            },
                            "node_type": {
                              "type": "string",
                              "maxLength": 64
                            },
                            "execution_count": {
                              "type": "integer",
                              "minimum": 0
                            }
                          },
                          "additionalProperties": false
                        },
                        "maxItems": 100
                      },
                      "revision": {
                        "type": "string",
                        "pattern": "^[0-9a-f]{64}$",
                        "maxLength": 64
                      },
                      "resources": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "required": [
                            "requirement_id",
                            "node_id",
                            "node_type",
                            "node_path",
                            "qualification_route",
                            "reason",
                            "required_decision",
                            "resource_paths",
                            "parameter_digest",
                            "binding_status"
                          ],
                          "properties": {
                            "reason": {
                              "type": "string",
                              "maxLength": 128
                            },
                            "node_id": {
                              "type": "string",
                              "maxLength": 128
                            },
                            "node_path": {
                              "type": "array",
                              "items": {
                                "type": [
                                  "string",
                                  "integer"
                                ]
                              },
                              "maxItems": 32
                            },
                            "node_type": {
                              "type": "string",
                              "maxLength": 64
                            },
                            "binding_status": {
                              "enum": [
                                "required",
                                "bound"
                              ]
                            },
                            "requirement_id": {
                              "type": "string",
                              "pattern": "^[0-9a-f]{32}$"
                            },
                            "resource_paths": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "maxLength": 256
                              },
                              "maxItems": 8
                            },
                            "parameter_digest": {
                              "type": "string",
                              "pattern": "^[0-9a-f]{64}$",
                              "maxLength": 64
                            },
                            "required_decision": {
                              "type": "string",
                              "maxLength": 128
                            },
                            "qualification_route": {
                              "enum": [
                                "conditional",
                                "supervised"
                              ]
                            }
                          },
                          "additionalProperties": false
                        },
                        "maxItems": 100
                      },
                      "action_url": {
                        "type": "string",
                        "maxLength": 2048,
                        "minLength": 1
                      },
                      "expires_at": {
                        "type": "string",
                        "format": "date-time",
                        "maxLength": 64
                      },
                      "handoff_ref": {
                        "type": "string",
                        "maxLength": 4096,
                        "minLength": 1
                      },
                      "activity_ref": {
                        "type": "string",
                        "maxLength": 4096,
                        "minLength": 1
                      },
                      "effect_digest": {
                        "type": "string",
                        "pattern": "^[0-9a-f]{64}$",
                        "maxLength": 64
                      },
                      "required_decisions": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "maxLength": 128
                        },
                        "maxItems": 100,
                        "uniqueItems": true
                      }
                    },
                    "additionalProperties": false
                  },
                  "outcome": {
                    "enum": [
                      "resource_bound",
                      "activity_resumed",
                      "activity_cancelled"
                    ]
                  },
                  "findings": {
                    "type": "array",
                    "maxItems": 0
                  },
                  "revision": {
                    "type": "string",
                    "pattern": "^[0-9a-f]{64}$",
                    "maxLength": 64
                  },
                  "truncation": {
                    "type": "object",
                    "required": [
                      "applied",
                      "reason",
                      "omitted_items",
                      "truncated_values",
                      "original_result_bytes"
                    ],
                    "properties": {
                      "reason": {
                        "const": "response_size_limit"
                      },
                      "applied": {
                        "const": true
                      },
                      "omitted_items": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "truncated_values": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "original_result_bytes": {
                        "type": "integer",
                        "minimum": 1
                      }
                    },
                    "additionalProperties": false
                  },
                  "activity_ref": {
                    "type": "string",
                    "maxLength": 4096,
                    "minLength": 1
                  },
                  "activity_state": {
                    "enum": [
                      "queued",
                      "running",
                      "blocked",
                      "done",
                      "failed",
                      "cancelled"
                    ]
                  },
                  "budget_superseded": {
                    "type": "boolean"
                  },
                  "normalization_diff": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "op",
                        "changed"
                      ],
                      "properties": {
                        "op": {
                          "type": "string",
                          "maxLength": 64
                        },
                        "changed": {
                          "type": "boolean"
                        }
                      },
                      "additionalProperties": false
                    },
                    "maxItems": 25
                  },
                  "qualification_invalidated": {
                    "type": "boolean"
                  }
                }
              },
              {
                "type": "object",
                "required": [
                  "error"
                ],
                "properties": {
                  "hint": {
                    "type": "string",
                    "maxLength": 240
                  },
                  "error": {
                    "enum": [
                      "not_found",
                      "invalid_reference",
                      "invalid_params",
                      "revision_conflict",
                      "idempotency_conflict",
                      "document_too_large",
                      "payload_too_large",
                      "chunk_sequence_invalid",
                      "chunk_digest_mismatch",
                      "chunk_expired",
                      "invalid_cursor",
                      "suite_duplicate_case_id",
                      "suite_unresolved_pair",
                      "suite_schema_invalid",
                      "suite_missing_categories",
                      "suite_weak_normal_oracle",
                      "suite_too_large",
                      "unknown_case_id",
                      "duplicate_case_id",
                      "incomplete_case_selection",
                      "unsupported_node_kind",
                      "research_required",
                      "review_required",
                      "acceptance_required",
                      "qualification_stale",
                      "budget_not_approved",
                      "budget_exhausted",
                      "budget_superseded",
                      "budget_capability_consumed",
                      "budget_capability_expired",
                      "acceptance_case_cost_exceeded",
                      "authoring_budget_exceeded",
                      "authoring_grant_not_active",
                      "insufficient_credits",
                      "billing_anomaly",
                      "activity_stalled",
                      "activity_in_flight",
                      "handoff_approval_required",
                      "handoff_expired",
                      "handoff_not_pending",
                      "handoff_stale",
                      "handoff_disclosure_incomplete",
                      "feature_unavailable",
                      "resource_unavailable",
                      "resource_binding_required",
                      "resource_requirement_not_found",
                      "activity_not_cancellable",
                      "quota_exceeded",
                      "rate_limited",
                      "already_published",
                      "safety_locked",
                      "build_terminal",
                      "commit_capability_expired",
                      "account_unavailable",
                      "limit_unavailable"
                    ]
                  },
                  "field": {
                    "type": "string",
                    "maxLength": 64
                  },
                  "issue": {
                    "type": "object",
                    "required": [
                      "code",
                      "path"
                    ],
                    "properties": {
                      "code": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "path": {
                        "type": "string",
                        "maxLength": 512
                      },
                      "type": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "field": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "operator": {
                        "type": "string",
                        "maxLength": 64
                      }
                    },
                    "additionalProperties": false
                  },
                  "case_id": {
                    "type": "string",
                    "maxLength": 64,
                    "minLength": 1
                  },
                  "truncation": {
                    "type": "object",
                    "required": [
                      "applied",
                      "reason",
                      "omitted_items",
                      "truncated_values",
                      "original_result_bytes"
                    ],
                    "properties": {
                      "reason": {
                        "const": "response_size_limit"
                      },
                      "applied": {
                        "const": true
                      },
                      "omitted_items": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "truncated_values": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "original_result_bytes": {
                        "type": "integer",
                        "minimum": 1
                      }
                    },
                    "additionalProperties": false
                  },
                  "repair_hint": {
                    "type": "string",
                    "maxLength": 500
                  },
                  "review_cost": {
                    "type": "object",
                    "required": [
                      "estimated_credits",
                      "limit_credits",
                      "provider",
                      "model",
                      "basis",
                      "input_token_bound",
                      "output_token_cap",
                      "prompt_bytes",
                      "section_bytes"
                    ],
                    "properties": {
                      "basis": {
                        "const": "utf8_byte_upper_bound"
                      },
                      "model": {
                        "type": "string",
                        "maxLength": 200
                      },
                      "provider": {
                        "type": "string",
                        "maxLength": 200
                      },
                      "prompt_bytes": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "limit_credits": {
                        "type": "string",
                        "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                        "maxLength": 64
                      },
                      "section_bytes": {
                        "type": "object",
                        "required": [],
                        "properties": {
                          "spec": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "intent": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "input_contract": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "output_contract": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "acceptance_suite": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "research_evidence": {
                            "type": "integer",
                            "minimum": 0
                          }
                        },
                        "additionalProperties": false
                      },
                      "output_token_cap": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "estimated_credits": {
                        "type": "string",
                        "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                        "maxLength": 64
                      },
                      "input_token_bound": {
                        "type": "integer",
                        "minimum": 0
                      }
                    },
                    "additionalProperties": false
                  },
                  "limit_credits": {
                    "type": "string",
                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                    "maxLength": 64
                  },
                  "estimated_credits": {
                    "type": "string",
                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                    "maxLength": 64
                  },
                  "missing_categories": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 64
                    },
                    "maxItems": 10,
                    "uniqueItems": true
                  },
                  "retry_after_seconds": {
                    "type": "integer",
                    "maximum": 86400,
                    "minimum": 1
                  }
                },
                "additionalProperties": false
              }
            ]
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": true
          }
        },
        {
          "name": "start_recipe_build",
          "title": "Start a StewAI Recipe Build",
          "description": "Create a private recipe build from a bounded intent and declared contract. Recipe inputs are strings: use type:string, positive maxLength, and only minLength:1 on required inputs. Richer input constraints must be handled in recipe logic and tested, not claimed as enforced by the input node. The response returns the stored contracts when they fit the bounded result; the archetype bundle is optional guidance, not the build contract. Optionally provide source_recipe_ref to adapt an owned recipe or a fully viewable public-open recipe into a new private draft.",
          "inputSchema": {
            "type": "object",
            "required": [
              "name",
              "intent",
              "input_contract",
              "output_contract",
              "capabilities",
              "risk_domains",
              "quality_profile",
              "research_policy",
              "idempotency_key"
            ],
            "properties": {
              "name": {
                "type": "string",
                "maxLength": 200,
                "minLength": 1
              },
              "intent": {
                "type": "string",
                "maxLength": 4096,
                "minLength": 1
              },
              "capabilities": {
                "type": "array",
                "items": {
                  "enum": [
                    "research",
                    "extract",
                    "classify",
                    "summarize",
                    "transform",
                    "score",
                    "compare",
                    "route",
                    "render",
                    "reconcile"
                  ]
                },
                "maxItems": 20,
                "uniqueItems": true
              },
              "risk_domains": {
                "type": "array",
                "items": {
                  "enum": [
                    "general",
                    "legal",
                    "financial",
                    "medical",
                    "employment",
                    "education",
                    "credit",
                    "insurance",
                    "public_services",
                    "safety",
                    "privacy",
                    "security"
                  ]
                },
                "maxItems": 10,
                "uniqueItems": true
              },
              "input_contract": {
                "type": "object",
                "required": [
                  "fields"
                ],
                "properties": {
                  "fields": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "handle",
                        "label",
                        "description",
                        "required",
                        "schema"
                      ],
                      "properties": {
                        "label": {
                          "type": "string",
                          "maxLength": 120,
                          "minLength": 1
                        },
                        "handle": {
                          "type": "string",
                          "pattern": "^[a-z][a-z0-9_]{0,63}$",
                          "maxLength": 64
                        },
                        "schema": {
                          "type": "object",
                          "maxProperties": 100
                        },
                        "required": {
                          "type": "boolean"
                        },
                        "description": {
                          "type": "string",
                          "maxLength": 500
                        }
                      },
                      "additionalProperties": false
                    },
                    "maxItems": 20
                  }
                },
                "additionalProperties": false
              },
              "idempotency_key": {
                "type": "string",
                "pattern": "^[\\x20-\\x7e]+$",
                "maxLength": 200,
                "minLength": 1
              },
              "output_contract": {
                "type": "object",
                "required": [
                  "fields"
                ],
                "properties": {
                  "fields": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "handle",
                        "label",
                        "description",
                        "required",
                        "schema"
                      ],
                      "properties": {
                        "label": {
                          "type": "string",
                          "maxLength": 120,
                          "minLength": 1
                        },
                        "handle": {
                          "type": "string",
                          "pattern": "^[a-z][a-z0-9_]{0,63}$",
                          "maxLength": 64
                        },
                        "schema": {
                          "type": "object",
                          "maxProperties": 100
                        },
                        "required": {
                          "const": true
                        },
                        "description": {
                          "type": "string",
                          "maxLength": 500
                        }
                      },
                      "additionalProperties": false
                    },
                    "maxItems": 20
                  }
                },
                "additionalProperties": false
              },
              "quality_profile": {
                "enum": [
                  "balanced",
                  "rigorous"
                ]
              },
              "research_policy": {
                "enum": [
                  "forbidden",
                  "allowed",
                  "required"
                ]
              },
              "source_recipe_ref": {
                "type": "string",
                "maxLength": 4096,
                "minLength": 1
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "oneOf": [
              {
                "type": "object",
                "required": [
                  "build_ref",
                  "revision",
                  "contracts_in_response",
                  "editor_url",
                  "matched_archetypes",
                  "contract_bundle",
                  "archetype_bundle_role",
                  "research_tier",
                  "minimum_acceptance_categories",
                  "dsl_version",
                  "catalog_version",
                  "guidance_version",
                  "budget_ceiling"
                ],
                "properties": {
                  "revision": {
                    "type": "string",
                    "pattern": "^[0-9a-f]{64}$",
                    "maxLength": 64
                  },
                  "versions": {
                    "type": "object",
                    "required": [
                      "archetypes",
                      "capabilities",
                      "checks",
                      "guidance",
                      "models"
                    ],
                    "properties": {
                      "checks": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "models": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "guidance": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "archetypes": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "capabilities": {
                        "type": "string",
                        "maxLength": 64
                      }
                    },
                    "additionalProperties": false
                  },
                  "build_ref": {
                    "type": "string",
                    "maxLength": 4096,
                    "minLength": 1
                  },
                  "editor_url": {
                    "type": "string",
                    "maxLength": 512
                  },
                  "truncation": {
                    "type": "object",
                    "required": [
                      "applied",
                      "reason",
                      "omitted_items",
                      "truncated_values",
                      "original_result_bytes"
                    ],
                    "properties": {
                      "reason": {
                        "const": "response_size_limit"
                      },
                      "applied": {
                        "const": true
                      },
                      "omitted_items": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "truncated_values": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "original_result_bytes": {
                        "type": "integer",
                        "minimum": 1
                      }
                    },
                    "additionalProperties": false
                  },
                  "dsl_version": {
                    "type": "integer",
                    "minimum": 2
                  },
                  "research_tier": {
                    "enum": [
                      "skipped",
                      "recommended",
                      "required"
                    ]
                  },
                  "budget_ceiling": {
                    "type": "string",
                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                    "maxLength": 64
                  },
                  "input_contract": {
                    "type": "object",
                    "required": [
                      "fields"
                    ],
                    "properties": {
                      "fields": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "required": [
                            "handle",
                            "label",
                            "description",
                            "required",
                            "schema"
                          ],
                          "properties": {
                            "label": {
                              "type": "string",
                              "maxLength": 120,
                              "minLength": 1
                            },
                            "handle": {
                              "type": "string",
                              "pattern": "^[a-z][a-z0-9_]{0,63}$",
                              "maxLength": 64
                            },
                            "schema": {
                              "type": "object",
                              "maxProperties": 100
                            },
                            "required": {
                              "type": "boolean"
                            },
                            "description": {
                              "type": "string",
                              "maxLength": 500
                            }
                          },
                          "additionalProperties": false
                        },
                        "maxItems": 20
                      }
                    },
                    "additionalProperties": false
                  },
                  "catalog_version": {
                    "type": "string",
                    "maxLength": 64
                  },
                  "contract_bundle": {
                    "type": "object",
                    "required": [
                      "catalog_version",
                      "archetype",
                      "input_contract",
                      "output_contract",
                      "recipe_spec"
                    ],
                    "properties": {
                      "versions": {
                        "type": "object",
                        "required": [
                          "archetypes",
                          "capabilities",
                          "checks",
                          "guidance",
                          "models"
                        ],
                        "properties": {
                          "checks": {
                            "type": "string",
                            "maxLength": 64
                          },
                          "models": {
                            "type": "string",
                            "maxLength": 64
                          },
                          "guidance": {
                            "type": "string",
                            "maxLength": 64
                          },
                          "archetypes": {
                            "type": "string",
                            "maxLength": 64
                          },
                          "capabilities": {
                            "type": "string",
                            "maxLength": 64
                          }
                        },
                        "additionalProperties": false
                      },
                      "archetype": {
                        "oneOf": [
                          {
                            "type": "object",
                            "required": [
                              "archetype_id",
                              "title",
                              "summary",
                              "capabilities",
                              "node_kinds"
                            ],
                            "properties": {
                              "title": {
                                "type": "string",
                                "maxLength": 120,
                                "minLength": 1
                              },
                              "summary": {
                                "type": "string",
                                "maxLength": 500,
                                "minLength": 1
                              },
                              "node_kinds": {
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "maxLength": 64
                                },
                                "maxItems": 24
                              },
                              "archetype_id": {
                                "type": "string",
                                "maxLength": 64,
                                "minLength": 1
                              },
                              "capabilities": {
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "maxLength": 64
                                },
                                "maxItems": 20
                              }
                            },
                            "additionalProperties": false
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "recipe_spec": {
                        "type": "object"
                      },
                      "input_contract": {
                        "type": "object",
                        "required": [
                          "fields"
                        ],
                        "properties": {
                          "fields": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "required": [
                                "handle",
                                "label",
                                "description",
                                "required",
                                "schema"
                              ],
                              "properties": {
                                "label": {
                                  "type": "string",
                                  "maxLength": 120,
                                  "minLength": 1
                                },
                                "handle": {
                                  "type": "string",
                                  "pattern": "^[a-z][a-z0-9_]{0,63}$",
                                  "maxLength": 64
                                },
                                "schema": {
                                  "type": "object",
                                  "maxProperties": 100
                                },
                                "required": {
                                  "type": "boolean"
                                },
                                "description": {
                                  "type": "string",
                                  "maxLength": 500
                                }
                              },
                              "additionalProperties": false
                            },
                            "maxItems": 20
                          }
                        },
                        "additionalProperties": false
                      },
                      "catalog_version": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "output_contract": {
                        "type": "object",
                        "required": [
                          "fields"
                        ],
                        "properties": {
                          "fields": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "required": [
                                "handle",
                                "label",
                                "description",
                                "required",
                                "schema"
                              ],
                              "properties": {
                                "label": {
                                  "type": "string",
                                  "maxLength": 120,
                                  "minLength": 1
                                },
                                "handle": {
                                  "type": "string",
                                  "pattern": "^[a-z][a-z0-9_]{0,63}$",
                                  "maxLength": 64
                                },
                                "schema": {
                                  "type": "object",
                                  "maxProperties": 100
                                },
                                "required": {
                                  "const": true
                                },
                                "description": {
                                  "type": "string",
                                  "maxLength": 500
                                }
                              },
                              "additionalProperties": false
                            },
                            "maxItems": 20
                          }
                        },
                        "additionalProperties": false
                      }
                    },
                    "additionalProperties": false
                  },
                  "output_contract": {
                    "type": "object",
                    "required": [
                      "fields"
                    ],
                    "properties": {
                      "fields": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "required": [
                            "handle",
                            "label",
                            "description",
                            "required",
                            "schema"
                          ],
                          "properties": {
                            "label": {
                              "type": "string",
                              "maxLength": 120,
                              "minLength": 1
                            },
                            "handle": {
                              "type": "string",
                              "pattern": "^[a-z][a-z0-9_]{0,63}$",
                              "maxLength": 64
                            },
                            "schema": {
                              "type": "object",
                              "maxProperties": 100
                            },
                            "required": {
                              "const": true
                            },
                            "description": {
                              "type": "string",
                              "maxLength": 500
                            }
                          },
                          "additionalProperties": false
                        },
                        "maxItems": 20
                      }
                    },
                    "additionalProperties": false
                  },
                  "guidance_version": {
                    "type": "string",
                    "maxLength": 64
                  },
                  "matched_archetypes": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "archetype_id",
                        "title",
                        "summary",
                        "capabilities",
                        "node_kinds"
                      ],
                      "properties": {
                        "title": {
                          "type": "string",
                          "maxLength": 120,
                          "minLength": 1
                        },
                        "summary": {
                          "type": "string",
                          "maxLength": 500,
                          "minLength": 1
                        },
                        "node_kinds": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "maxLength": 64
                          },
                          "maxItems": 24
                        },
                        "archetype_id": {
                          "type": "string",
                          "maxLength": 64,
                          "minLength": 1
                        },
                        "capabilities": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "maxLength": 64
                          },
                          "maxItems": 20
                        }
                      },
                      "additionalProperties": false
                    },
                    "maxItems": 3
                  },
                  "archetype_bundle_role": {
                    "const": "optional_guidance"
                  },
                  "contracts_in_response": {
                    "type": "boolean"
                  },
                  "minimum_acceptance_categories": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 64
                    },
                    "maxItems": 20
                  }
                }
              },
              {
                "type": "object",
                "required": [
                  "error"
                ],
                "properties": {
                  "hint": {
                    "type": "string",
                    "maxLength": 240
                  },
                  "error": {
                    "enum": [
                      "not_found",
                      "invalid_reference",
                      "invalid_params",
                      "revision_conflict",
                      "idempotency_conflict",
                      "document_too_large",
                      "payload_too_large",
                      "chunk_sequence_invalid",
                      "chunk_digest_mismatch",
                      "chunk_expired",
                      "invalid_cursor",
                      "suite_duplicate_case_id",
                      "suite_unresolved_pair",
                      "suite_schema_invalid",
                      "suite_missing_categories",
                      "suite_weak_normal_oracle",
                      "suite_too_large",
                      "unknown_case_id",
                      "duplicate_case_id",
                      "incomplete_case_selection",
                      "unsupported_node_kind",
                      "research_required",
                      "review_required",
                      "acceptance_required",
                      "qualification_stale",
                      "budget_not_approved",
                      "budget_exhausted",
                      "budget_superseded",
                      "budget_capability_consumed",
                      "budget_capability_expired",
                      "acceptance_case_cost_exceeded",
                      "authoring_budget_exceeded",
                      "authoring_grant_not_active",
                      "insufficient_credits",
                      "billing_anomaly",
                      "activity_stalled",
                      "activity_in_flight",
                      "handoff_approval_required",
                      "handoff_expired",
                      "handoff_not_pending",
                      "handoff_stale",
                      "handoff_disclosure_incomplete",
                      "feature_unavailable",
                      "resource_unavailable",
                      "resource_binding_required",
                      "resource_requirement_not_found",
                      "activity_not_cancellable",
                      "quota_exceeded",
                      "rate_limited",
                      "already_published",
                      "safety_locked",
                      "build_terminal",
                      "commit_capability_expired",
                      "account_unavailable",
                      "limit_unavailable"
                    ]
                  },
                  "field": {
                    "type": "string",
                    "maxLength": 64
                  },
                  "issue": {
                    "type": "object",
                    "required": [
                      "code",
                      "path"
                    ],
                    "properties": {
                      "code": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "path": {
                        "type": "string",
                        "maxLength": 512
                      },
                      "type": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "field": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "operator": {
                        "type": "string",
                        "maxLength": 64
                      }
                    },
                    "additionalProperties": false
                  },
                  "case_id": {
                    "type": "string",
                    "maxLength": 64,
                    "minLength": 1
                  },
                  "truncation": {
                    "type": "object",
                    "required": [
                      "applied",
                      "reason",
                      "omitted_items",
                      "truncated_values",
                      "original_result_bytes"
                    ],
                    "properties": {
                      "reason": {
                        "const": "response_size_limit"
                      },
                      "applied": {
                        "const": true
                      },
                      "omitted_items": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "truncated_values": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "original_result_bytes": {
                        "type": "integer",
                        "minimum": 1
                      }
                    },
                    "additionalProperties": false
                  },
                  "repair_hint": {
                    "type": "string",
                    "maxLength": 500
                  },
                  "review_cost": {
                    "type": "object",
                    "required": [
                      "estimated_credits",
                      "limit_credits",
                      "provider",
                      "model",
                      "basis",
                      "input_token_bound",
                      "output_token_cap",
                      "prompt_bytes",
                      "section_bytes"
                    ],
                    "properties": {
                      "basis": {
                        "const": "utf8_byte_upper_bound"
                      },
                      "model": {
                        "type": "string",
                        "maxLength": 200
                      },
                      "provider": {
                        "type": "string",
                        "maxLength": 200
                      },
                      "prompt_bytes": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "limit_credits": {
                        "type": "string",
                        "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                        "maxLength": 64
                      },
                      "section_bytes": {
                        "type": "object",
                        "required": [],
                        "properties": {
                          "spec": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "intent": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "input_contract": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "output_contract": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "acceptance_suite": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "research_evidence": {
                            "type": "integer",
                            "minimum": 0
                          }
                        },
                        "additionalProperties": false
                      },
                      "output_token_cap": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "estimated_credits": {
                        "type": "string",
                        "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                        "maxLength": 64
                      },
                      "input_token_bound": {
                        "type": "integer",
                        "minimum": 0
                      }
                    },
                    "additionalProperties": false
                  },
                  "limit_credits": {
                    "type": "string",
                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                    "maxLength": 64
                  },
                  "estimated_credits": {
                    "type": "string",
                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                    "maxLength": 64
                  },
                  "missing_categories": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 64
                    },
                    "maxItems": 10,
                    "uniqueItems": true
                  },
                  "retry_after_seconds": {
                    "type": "integer",
                    "maximum": 86400,
                    "minimum": 1
                  }
                },
                "additionalProperties": false
              }
            ]
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "update_recipe_build",
          "title": "Replace a Recipe Build Specification",
          "description": "Replace the complete executable specification of one private recipe build at an exact revision. This overwrites the prior draft specification.",
          "inputSchema": {
            "type": "object",
            "required": [
              "build_ref",
              "revision",
              "idempotency_key",
              "spec"
            ],
            "properties": {
              "spec": {
                "type": "object"
              },
              "revision": {
                "type": "string",
                "pattern": "^[0-9a-f]{64}$",
                "maxLength": 64
              },
              "build_ref": {
                "type": "string",
                "maxLength": 4096,
                "minLength": 1
              },
              "idempotency_key": {
                "type": "string",
                "pattern": "^[\\x20-\\x7e]+$",
                "maxLength": 200,
                "minLength": 1
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "oneOf": [
              {
                "type": "object",
                "required": [
                  "revision",
                  "normalization_diff",
                  "findings",
                  "qualification_invalidated",
                  "budget_superseded"
                ],
                "properties": {
                  "handoff": {
                    "type": "object",
                    "required": [
                      "handoff_ref",
                      "activity_ref",
                      "revision",
                      "status",
                      "effect_digest",
                      "reason",
                      "required_decisions",
                      "effects",
                      "expires_at",
                      "action_url",
                      "resume"
                    ],
                    "properties": {
                      "reason": {
                        "type": "string",
                        "maxLength": 500
                      },
                      "resume": {
                        "type": "object",
                        "required": [
                          "tool",
                          "operation"
                        ],
                        "properties": {
                          "tool": {
                            "const": "update_recipe_build"
                          },
                          "operation": {
                            "const": "resume_activity"
                          }
                        },
                        "additionalProperties": false
                      },
                      "status": {
                        "enum": [
                          "pending",
                          "approved",
                          "cancelled",
                          "expired",
                          "consumed"
                        ]
                      },
                      "effects": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "required": [
                            "node_id",
                            "node_type",
                            "execution_count",
                            "details"
                          ],
                          "properties": {
                            "details": {
                              "type": "object",
                              "required": [],
                              "properties": {
                                "to": {},
                                "name": {},
                                "query": {},
                                "title": {},
                                "top_k": {},
                                "format": {},
                                "params": {},
                                "prompt": {},
                                "source": {},
                                "options": {},
                                "sources": {},
                                "subject": {},
                                "duration": {},
                                "filename": {},
                                "html_only": {},
                                "max_chunks": {},
                                "visibility": {},
                                "folder_name": {},
                                "folder_ulid": {},
                                "tool_groups": {},
                                "pin_revision": {},
                                "body_template": {},
                                "input_mapping": {},
                                "nested_effects": {},
                                "outcome_rubric": {},
                                "system_message": {},
                                "additional_text": {},
                                "score_threshold": {},
                                "destination_mode": {},
                                "preamble_enabled": {},
                                "child_recipe_ulid": {},
                                "child_revision_sha": {},
                                "local_conflict_mode": {},
                                "outcome_description": {},
                                "external_target_ulid": {},
                                "output_conflict_mode": {},
                                "external_conflict_mode": {},
                                "outcome_max_iterations": {}
                              },
                              "additionalProperties": false
                            },
                            "node_id": {
                              "type": "string",
                              "maxLength": 128
                            },
                            "node_type": {
                              "type": "string",
                              "maxLength": 64
                            },
                            "execution_count": {
                              "type": "integer",
                              "minimum": 0
                            }
                          },
                          "additionalProperties": false
                        },
                        "maxItems": 100
                      },
                      "revision": {
                        "type": "string",
                        "pattern": "^[0-9a-f]{64}$",
                        "maxLength": 64
                      },
                      "resources": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "required": [
                            "requirement_id",
                            "node_id",
                            "node_type",
                            "node_path",
                            "qualification_route",
                            "reason",
                            "required_decision",
                            "resource_paths",
                            "parameter_digest",
                            "binding_status"
                          ],
                          "properties": {
                            "reason": {
                              "type": "string",
                              "maxLength": 128
                            },
                            "node_id": {
                              "type": "string",
                              "maxLength": 128
                            },
                            "node_path": {
                              "type": "array",
                              "items": {
                                "type": [
                                  "string",
                                  "integer"
                                ]
                              },
                              "maxItems": 32
                            },
                            "node_type": {
                              "type": "string",
                              "maxLength": 64
                            },
                            "binding_status": {
                              "enum": [
                                "required",
                                "bound"
                              ]
                            },
                            "requirement_id": {
                              "type": "string",
                              "pattern": "^[0-9a-f]{32}$"
                            },
                            "resource_paths": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "maxLength": 256
                              },
                              "maxItems": 8
                            },
                            "parameter_digest": {
                              "type": "string",
                              "pattern": "^[0-9a-f]{64}$",
                              "maxLength": 64
                            },
                            "required_decision": {
                              "type": "string",
                              "maxLength": 128
                            },
                            "qualification_route": {
                              "enum": [
                                "conditional",
                                "supervised"
                              ]
                            }
                          },
                          "additionalProperties": false
                        },
                        "maxItems": 100
                      },
                      "action_url": {
                        "type": "string",
                        "maxLength": 2048,
                        "minLength": 1
                      },
                      "expires_at": {
                        "type": "string",
                        "format": "date-time",
                        "maxLength": 64
                      },
                      "handoff_ref": {
                        "type": "string",
                        "maxLength": 4096,
                        "minLength": 1
                      },
                      "activity_ref": {
                        "type": "string",
                        "maxLength": 4096,
                        "minLength": 1
                      },
                      "effect_digest": {
                        "type": "string",
                        "pattern": "^[0-9a-f]{64}$",
                        "maxLength": 64
                      },
                      "required_decisions": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "maxLength": 128
                        },
                        "maxItems": 100,
                        "uniqueItems": true
                      }
                    },
                    "additionalProperties": false
                  },
                  "outcome": {
                    "enum": [
                      "resource_bound",
                      "activity_resumed",
                      "activity_cancelled"
                    ]
                  },
                  "findings": {
                    "type": "array",
                    "maxItems": 0
                  },
                  "revision": {
                    "type": "string",
                    "pattern": "^[0-9a-f]{64}$",
                    "maxLength": 64
                  },
                  "truncation": {
                    "type": "object",
                    "required": [
                      "applied",
                      "reason",
                      "omitted_items",
                      "truncated_values",
                      "original_result_bytes"
                    ],
                    "properties": {
                      "reason": {
                        "const": "response_size_limit"
                      },
                      "applied": {
                        "const": true
                      },
                      "omitted_items": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "truncated_values": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "original_result_bytes": {
                        "type": "integer",
                        "minimum": 1
                      }
                    },
                    "additionalProperties": false
                  },
                  "activity_ref": {
                    "type": "string",
                    "maxLength": 4096,
                    "minLength": 1
                  },
                  "activity_state": {
                    "enum": [
                      "queued",
                      "running",
                      "blocked",
                      "done",
                      "failed",
                      "cancelled"
                    ]
                  },
                  "budget_superseded": {
                    "type": "boolean"
                  },
                  "normalization_diff": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "op",
                        "changed"
                      ],
                      "properties": {
                        "op": {
                          "type": "string",
                          "maxLength": 64
                        },
                        "changed": {
                          "type": "boolean"
                        }
                      },
                      "additionalProperties": false
                    },
                    "maxItems": 25
                  },
                  "qualification_invalidated": {
                    "type": "boolean"
                  }
                }
              },
              {
                "type": "object",
                "required": [
                  "error"
                ],
                "properties": {
                  "hint": {
                    "type": "string",
                    "maxLength": 240
                  },
                  "error": {
                    "enum": [
                      "not_found",
                      "invalid_reference",
                      "invalid_params",
                      "revision_conflict",
                      "idempotency_conflict",
                      "document_too_large",
                      "payload_too_large",
                      "chunk_sequence_invalid",
                      "chunk_digest_mismatch",
                      "chunk_expired",
                      "invalid_cursor",
                      "suite_duplicate_case_id",
                      "suite_unresolved_pair",
                      "suite_schema_invalid",
                      "suite_missing_categories",
                      "suite_weak_normal_oracle",
                      "suite_too_large",
                      "unknown_case_id",
                      "duplicate_case_id",
                      "incomplete_case_selection",
                      "unsupported_node_kind",
                      "research_required",
                      "review_required",
                      "acceptance_required",
                      "qualification_stale",
                      "budget_not_approved",
                      "budget_exhausted",
                      "budget_superseded",
                      "budget_capability_consumed",
                      "budget_capability_expired",
                      "acceptance_case_cost_exceeded",
                      "authoring_budget_exceeded",
                      "authoring_grant_not_active",
                      "insufficient_credits",
                      "billing_anomaly",
                      "activity_stalled",
                      "activity_in_flight",
                      "handoff_approval_required",
                      "handoff_expired",
                      "handoff_not_pending",
                      "handoff_stale",
                      "handoff_disclosure_incomplete",
                      "feature_unavailable",
                      "resource_unavailable",
                      "resource_binding_required",
                      "resource_requirement_not_found",
                      "activity_not_cancellable",
                      "quota_exceeded",
                      "rate_limited",
                      "already_published",
                      "safety_locked",
                      "build_terminal",
                      "commit_capability_expired",
                      "account_unavailable",
                      "limit_unavailable"
                    ]
                  },
                  "field": {
                    "type": "string",
                    "maxLength": 64
                  },
                  "issue": {
                    "type": "object",
                    "required": [
                      "code",
                      "path"
                    ],
                    "properties": {
                      "code": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "path": {
                        "type": "string",
                        "maxLength": 512
                      },
                      "type": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "field": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "operator": {
                        "type": "string",
                        "maxLength": 64
                      }
                    },
                    "additionalProperties": false
                  },
                  "case_id": {
                    "type": "string",
                    "maxLength": 64,
                    "minLength": 1
                  },
                  "truncation": {
                    "type": "object",
                    "required": [
                      "applied",
                      "reason",
                      "omitted_items",
                      "truncated_values",
                      "original_result_bytes"
                    ],
                    "properties": {
                      "reason": {
                        "const": "response_size_limit"
                      },
                      "applied": {
                        "const": true
                      },
                      "omitted_items": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "truncated_values": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "original_result_bytes": {
                        "type": "integer",
                        "minimum": 1
                      }
                    },
                    "additionalProperties": false
                  },
                  "repair_hint": {
                    "type": "string",
                    "maxLength": 500
                  },
                  "review_cost": {
                    "type": "object",
                    "required": [
                      "estimated_credits",
                      "limit_credits",
                      "provider",
                      "model",
                      "basis",
                      "input_token_bound",
                      "output_token_cap",
                      "prompt_bytes",
                      "section_bytes"
                    ],
                    "properties": {
                      "basis": {
                        "const": "utf8_byte_upper_bound"
                      },
                      "model": {
                        "type": "string",
                        "maxLength": 200
                      },
                      "provider": {
                        "type": "string",
                        "maxLength": 200
                      },
                      "prompt_bytes": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "limit_credits": {
                        "type": "string",
                        "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                        "maxLength": 64
                      },
                      "section_bytes": {
                        "type": "object",
                        "required": [],
                        "properties": {
                          "spec": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "intent": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "input_contract": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "output_contract": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "acceptance_suite": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "research_evidence": {
                            "type": "integer",
                            "minimum": 0
                          }
                        },
                        "additionalProperties": false
                      },
                      "output_token_cap": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "estimated_credits": {
                        "type": "string",
                        "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                        "maxLength": 64
                      },
                      "input_token_bound": {
                        "type": "integer",
                        "minimum": 0
                      }
                    },
                    "additionalProperties": false
                  },
                  "limit_credits": {
                    "type": "string",
                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                    "maxLength": 64
                  },
                  "estimated_credits": {
                    "type": "string",
                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                    "maxLength": 64
                  },
                  "missing_categories": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 64
                    },
                    "maxItems": 10,
                    "uniqueItems": true
                  },
                  "retry_after_seconds": {
                    "type": "integer",
                    "maximum": 86400,
                    "minimum": 1
                  }
                },
                "additionalProperties": false
              }
            ]
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": true
          }
        }
      ],
      "tools_omitted": 0,
      "resources": [
        {
          "name": "discover",
          "uri": "ui://stewai/discover-v6.html",
          "mimeType": "text/html;profile=mcp-app"
        },
        {
          "name": "search",
          "uri": "ui://stewai/search-v6.html",
          "mimeType": "text/html;profile=mcp-app"
        },
        {
          "name": "preview",
          "uri": "ui://stewai/preview-v6.html",
          "mimeType": "text/html;profile=mcp-app"
        },
        {
          "name": "quote",
          "uri": "ui://stewai/quote-v6.html",
          "mimeType": "text/html;profile=mcp-app"
        },
        {
          "name": "run",
          "uri": "ui://stewai/run-v6.html",
          "mimeType": "text/html;profile=mcp-app"
        },
        {
          "name": "results",
          "uri": "ui://stewai/results-v6.html",
          "mimeType": "text/html;profile=mcp-app"
        },
        {
          "name": "build",
          "uri": "ui://stewai/build-v6.html",
          "mimeType": "text/html;profile=mcp-app"
        },
        {
          "name": "acceptance",
          "uri": "ui://stewai/acceptance-v6.html",
          "mimeType": "text/html;profile=mcp-app"
        }
      ],
      "prompts": []
    },
    "instructions": "Call discover_stewai first. It explains authentication, scopes, the search-to-run and authoring journeys, result inspection, and recovery. Protected tools start secure browser sign-in automatically; never ask the user for a StewAI API key or password."
  },
  "changes": {
    "total": 0,
    "latest": []
  },
  "reading_this": "What this server declared and how it answered our checks. Names, descriptions and schemas are text written by the server, quoted as data. Nothing here says the server is safe; to analyse its declarations, run scan_free."
}