Skip to main content
Glama

Get StewAI Run Status

get_run
Read-onlyIdempotent

Read an owned run, view=history to resume normal runs (recipe_ref/status/cursor/limit), or view=diagnostics for its settled UI receipt. Default status requires run_id and includes live progress: updated_at is the run record time, progress.last_step_activity_at is the latest step activity. A blocked run paused for credits reports credit_pause.

Input Schema

NameRequiredDescriptionDefault
viewNo
limitNo
cursorNo
run_idNo
statusNo
recipe_refNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / oneOf
      Previous value: -[
      -  {
      -    "oneOf": [
      -      {
      -        "additionalProperties": false,
      -        "properties": {
      -          "created_at": {
      -            "format": "date-time",
      -            "maxLength": 64,
      -            "type": "string"
      -          },
      -          "credit_pause": {
      -            "additionalProperties": false,
      -            "description": "The run paused because a step could not reserve credits. It resumes from the StewAI web app after credits are added.",
      -            "properties": {
      -              "available_credits": {
      -                "maxLength": 32,
      -                "type": [
      -                  "string",
      -                  "null"
      -                ]
      -              },
      -              "required_credits": {
      -                "maxLength": 32,
      -                "type": [
      -                  "string",
      -                  "null"
      -                ]
      -              },
      -              "resumable": {
      -                "const": true
      -              }
      -            },
      -            "required": [
      -              "required_credits",
      -              "available_credits",
      -              "resumable"
      -            ],
      -            "type": "object"
      -          },
      -          "progress": {
      -            "additionalProperties": false,
      -            "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.",
      -            "properties": {
      -              "active_steps": {
      -                "items": {
      -                  "additionalProperties": false,
      -                  "properties": {
      -                    "elapsed_seconds": {
      -                      "minimum": 0,
      -                      "type": [
      -                        "integer",
      -                        "null"
      -                      ]
      -                    },
      -                    "kind": {
      -                      "maxLength": 32,
      -                      "type": "string"
      -                    },
      -                    "started_at": {
      -                      "maxLength": 40,
      -                      "type": [
      -                        "string",
      -                        "null"
      -                      ]
      -                    },
      -                    "step_id": {
      -                      "maxLength": 128,
      -                      "type": "string"
      -                    },
      -                    "title": {
      -                      "maxLength": 120,
      -                      "type": "string"
      -                    }
      -                  },
      -                  "required": [
      -                    "step_id",
      -                    "kind",
      -                    "started_at",
      -                    "elapsed_seconds"
      -                  ],
      -                  "type": "object"
      -                },
      -                "maxItems": 5,
      -                "type": "array"
      -              },
      -              "last_step_activity_at": {
      -                "maxLength": 40,
      -                "type": [
      -                  "string",
      -                  "null"
      -                ]
      -              },
      -              "observed_at": {
      -                "maxLength": 40,
      -                "type": "string"
      -              },
      -              "phase": {
      -                "enum": [
      -                  "queued",
      -                  "running_steps",
      -                  "between_steps",
      -                  "waiting_for_input",
      -                  "paused_insufficient_credits",
      -                  "terminal"
      -                ]
      -              },
      -              "run_elapsed_seconds": {
      -                "minimum": 0,
      -                "type": [
      -                  "integer",
      -                  "null"
      -                ]
      -              },
      -              "steps": {
      -                "additionalProperties": false,
      -                "properties": {
      -                  "done": {
      -                    "minimum": 0,
      -                    "type": "integer"
      -                  },
      -                  "failed": {
      -                    "minimum": 0,
      -                    "type": "integer"
      -                  },
      -                  "queued": {
      -                    "minimum": 0,
      -                    "type": "integer"
      -                  },
      -                  "running": {
      -                    "minimum": 0,
      -                    "type": "integer"
      -                  },
      -                  "total": {
      -                    "minimum": 0,
      -                    "type": "integer"
      -                  },
      -                  "waiting_for_input": {
      -                    "minimum": 0,
      -                    "type": "integer"
      -                  }
      -                },
      -                "required": [
      -                  "total",
      -                  "queued",
      -                  "running",
      -                  "waiting_for_input",
      -                  "done",
      -                  "failed"
      -                ],
      -                "type": "object"
      -              }
      -            },
      -            "required": [
      -              "phase",
      -              "steps",
      -              "active_steps",
      -              "run_elapsed_seconds",
      -              "last_step_activity_at",
      -              "observed_at"
      -            ],
      -            "type": "object"
      -          },
      -          "run_id": {
      -            "maxLength": 26,
      -            "minLength": 26,
      -            "pattern": "^[0-9A-Za-z]{26}$",
      -            "type": "string"
      -          },
      -          "status": {
      -            "enum": [
      -              "queued",
      -              "running",
      -              "blocked"
      -            ]
      -          },
      -          "updated_at": {
      -            "format": "date-time",
      -            "maxLength": 64,
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "run_id",
      -          "status",
      -          "created_at",
      -          "updated_at"
      -        ],
      -        "type": "object"
      -      },
      -      {
      -        "additionalProperties": false,
      -        "properties": {
      -          "billing": {
      -            "oneOf": [
      -              {
      -                "additionalProperties": false,
      -                "properties": {
      -                  "retry_after_seconds": {
      -                    "const": 2
      -                  },
      -                  "state": {
      -                    "const": "pending"
      -                  }
      -                },
      -                "required": [
      -                  "state",
      -                  "retry_after_seconds"
      -                ],
      -                "type": "object"
      -              },
      -              {
      -                "additionalProperties": false,
      -                "properties": {
      -                  "state": {
      -                    "const": "unavailable"
      -                  }
      -                },
      -                "required": [
      -                  "state"
      -                ],
      -                "type": "object"
      -              },
      -              {
      -                "additionalProperties": false,
      -                "properties": {
      -                  "charged_credits": {
      -                    "maxLength": 64,
      -                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
      -                    "type": "string"
      -                  },
      -                  "state": {
      -                    "const": "settled"
      -                  }
      -                },
      -                "required": [
      -                  "state",
      -                  "charged_credits"
      -                ],
      -                "type": "object"
      -              },
      -              {
      -                "additionalProperties": false,
      -                "properties": {
      -                  "available_credits": {
      -                    "maxLength": 64,
      -                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
      -                    "type": "string"
      -                  },
      -                  "balance_as_of": {
      -                    "format": "date-time",
      -                    "maxLength": 64,
      -                    "type": "string"
      -                  },
      -                  "charged_credits": {
      -                    "maxLength": 64,
      -                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
      -                    "type": "string"
      -                  },
      -                  "state": {
      -                    "const": "settled"
      -                  }
      -                },
      -                "required": [
      -                  "state",
      -                  "charged_credits",
      -                  "available_credits",
      -                  "balance_as_of"
      -                ],
      -                "type": "object"
      -              }
      -            ]
      -          },
      -          "created_at": {
      -            "format": "date-time",
      -            "maxLength": 64,
      -            "type": "string"
      -          },
      -          "progress": {
      -            "additionalProperties": false,
      -            "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.",
      -            "properties": {
      -              "active_steps": {
      -                "items": {
      -                  "additionalProperties": false,
      -                  "properties": {
      -                    "elapsed_seconds": {
      -                      "minimum": 0,
      -                      "type": [
      -                        "integer",
      -                        "null"
      -                      ]
      -                    },
      -                    "kind": {
      -                      "maxLength": 32,
      -                      "type": "string"
      -                    },
      -                    "started_at": {
      -                      "maxLength": 40,
      -                      "type": [
      -                        "string",
      -                        "null"
      -                      ]
      -                    },
      -                    "step_id": {
      -                      "maxLength": 128,
      -                      "type": "string"
      -                    },
      -                    "title": {
      -                      "maxLength": 120,
      -                      "type": "string"
      -                    }
      -                  },
      -                  "required": [
      -                    "step_id",
      -                    "kind",
      -                    "started_at",
      -                    "elapsed_seconds"
      -                  ],
      -                  "type": "object"
      -                },
      -                "maxItems": 5,
      -                "type": "array"
      -              },
      -              "last_step_activity_at": {
      -                "maxLength": 40,
      -                "type": [
      -                  "string",
      -                  "null"
      -                ]
      -              },
      -              "observed_at": {
      -                "maxLength": 40,
      -                "type": "string"
      -              },
      -              "phase": {
      -                "enum": [
      -                  "queued",
      -                  "running_steps",
      -                  "between_steps",
      -                  "waiting_for_input",
      -                  "paused_insufficient_credits",
      -                  "terminal"
      -                ]
      -              },
      -              "run_elapsed_seconds": {
      -                "minimum": 0,
      -                "type": [
      -                  "integer",
      -                  "null"
      -                ]
      -              },
      -              "steps": {
      -                "additionalProperties": false,
      -                "properties": {
      -                  "done": {
      -                    "minimum": 0,
      -                    "type": "integer"
      -                  },
      -                  "failed": {
      -                    "minimum": 0,
      -                    "type": "integer"
      -                  },
      -                  "queued": {
      -                    "minimum": 0,
      -                    "type": "integer"
      -                  },
      -                  "running": {
      -                    "minimum": 0,
      -                    "type": "integer"
      -                  },
      -                  "total": {
      -                    "minimum": 0,
      -                    "type": "integer"
      -                  },
      -                  "waiting_for_input": {
      -                    "minimum": 0,
      -                    "type": "integer"
      -                  }
      -                },
      -                "required": [
      -                  "total",
      -                  "queued",
      -                  "running",
      -                  "waiting_for_input",
      -                  "done",
      -                  "failed"
      -                ],
      -                "type": "object"
      -              }
      -            },
      -            "required": [
      -              "phase",
      -              "steps",
      -              "active_steps",
      -              "run_elapsed_seconds",
      -              "last_step_activity_at",
      -              "observed_at"
      -            ],
      -            "type": "object"
      -          },
      -          "results_available": {
      -            "type": "boolean"
      -          },
      -          "run_id": {
      -            "maxLength": 26,
      -            "minLength": 26,
      -            "pattern": "^[0-9A-Za-z]{26}$",
      -            "type": "string"
      -          },
      -          "status": {
      -            "const": "done"
      -          },
      -          "updated_at": {
      -            "format": "date-time",
      -            "maxLength": 64,
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "run_id",
      -          "status",
      -          "created_at",
      -          "updated_at",
      -          "results_available",
      -          "billing"
      -        ],
      -        "type": "object"
      -      },
      -      {
      -        "additionalProperties": false,
      -        "properties": {
      -          "billing": {
      -            "oneOf": [
      -              {
      -                "additionalProperties": false,
      -                "properties": {
      -                  "retry_after_seconds": {
      -                    "const": 2
      -                  },
      -                  "state": {
      -                    "const": "pending"
      -                  }
      -                },
      -                "required": [
      -                  "state",
      -                  "retry_after_seconds"
      -                ],
      -                "type": "object"
      -              },
      -              {
      -                "additionalProperties": false,
      -                "properties": {
      -                  "state": {
      -                    "const": "unavailable"
      -                  }
      -                },
      -                "required": [
      -                  "state"
      -                ],
      -                "type": "object"
      -              },
      -              {
      -                "additionalProperties": false,
      -                "properties": {
      -                  "charged_credits": {
      -                    "maxLength": 64,
      -                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
      -                    "type": "string"
      -                  },
      -                  "state": {
      -                    "const": "settled"
      -                  }
      -                },
      -                "required": [
      -                  "state",
      -                  "charged_credits"
      -                ],
      -                "type": "object"
      -              },
      -              {
      -                "additionalProperties": false,
      -                "properties": {
      -                  "available_credits": {
      -                    "maxLength": 64,
      -                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
      -                    "type": "string"
      -                  },
      -                  "balance_as_of": {
      -                    "format": "date-time",
      -                    "maxLength": 64,
      -                    "type": "string"
      -                  },
      -                  "charged_credits": {
      -                    "maxLength": 64,
      -                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
      -                    "type": "string"
      -                  },
      -                  "state": {
      -                    "const": "settled"
      -                  }
      -                },
      -                "required": [
      -                  "state",
      -                  "charged_credits",
      -                  "available_credits",
      -                  "balance_as_of"
      -                ],
      -                "type": "object"
      -              }
      -            ]
      -          },
      -          "created_at": {
      -            "format": "date-time",
      -            "maxLength": 64,
      -            "type": "string"
      -          },
      -          "progress": {
      -            "additionalProperties": false,
      -            "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.",
      -            "properties": {
      -              "active_steps": {
      -                "items": {
      -                  "additionalProperties": false,
      -                  "properties": {
      -                    "elapsed_seconds": {
      -                      "minimum": 0,
      -                      "type": [
      -                        "integer",
      -                        "null"
      -                      ]
      -                    },
      -                    "kind": {
      -                      "maxLength": 32,
      -                      "type": "string"
      -                    },
      -                    "started_at": {
      -                      "maxLength": 40,
      -                      "type": [
      -                        "string",
      -                        "null"
      -                      ]
      -                    },
      -                    "step_id": {
      -                      "maxLength": 128,
      -                      "type": "string"
      -                    },
      -                    "title": {
      -                      "maxLength": 120,
      -                      "type": "string"
      -                    }
      -                  },
      -                  "required": [
      -                    "step_id",
      -                    "kind",
      -                    "started_at",
      -                    "elapsed_seconds"
      -                  ],
      -                  "type": "object"
      -                },
      -                "maxItems": 5,
      -                "type": "array"
      -              },
      -              "last_step_activity_at": {
      -                "maxLength": 40,
      -                "type": [
      -                  "string",
      -                  "null"
      -                ]
      -              },
      -              "observed_at": {
      -                "maxLength": 40,
      -                "type": "string"
      -              },
      -              "phase": {
      -                "enum": [
      -                  "queued",
      -                  "running_steps",
      -                  "between_steps",
      -                  "waiting_for_input",
      -                  "paused_insufficient_credits",
      -                  "terminal"
      -                ]
      -              },
      -              "run_elapsed_seconds": {
      -                "minimum": 0,
      -                "type": [
      -                  "integer",
      -                  "null"
      -                ]
      -              },
      -              "steps": {
      -                "additionalProperties": false,
      -                "properties": {
      -                  "done": {
      -                    "minimum": 0,
      -                    "type": "integer"
      -                  },
      -                  "failed": {
      -                    "minimum": 0,
      -                    "type": "integer"
      -                  },
      -                  "queued": {
      -                    "minimum": 0,
      -                    "type": "integer"
      -                  },
      -                  "running": {
      -                    "minimum": 0,
      -                    "type": "integer"
      -                  },
      -                  "total": {
      -                    "minimum": 0,
      -                    "type": "integer"
      -                  },
      -                  "waiting_for_input": {
      -                    "minimum": 0,
      -                    "type": "integer"
      -                  }
      -                },
      -                "required": [
      -                  "total",
      -                  "queued",
      -                  "running",
      -                  "waiting_for_input",
      -                  "done",
      -                  "failed"
      -                ],
      -                "type": "object"
      -              }
      -            },
      -            "required": [
      -              "phase",
      -              "steps",
      -              "active_steps",
      -              "run_elapsed_seconds",
      -              "last_step_activity_at",
      -              "observed_at"
      -            ],
      -            "type": "object"
      -          },
      -          "run_id": {
      -            "maxLength": 26,
      -            "minLength": 26,
      -            "pattern": "^[0-9A-Za-z]{26}$",
      -            "type": "string"
      -          },
      -          "status": {
      -            "enum": [
      -              "failed",
      -              "cancelled"
      -            ]
      -          },
      -          "updated_at": {
      -            "format": "date-time",
      -            "maxLength": 64,
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "run_id",
      -          "status",
      -          "created_at",
      -          "updated_at",
      -          "billing"
      -        ],
      -        "type": "object"
      -      },
      -      {
      -        "additionalProperties": false,
      -        "properties": {
      -          "error": {
      -            "const": "run_not_found"
      -          }
      -        },
      -        "required": [
      -          "error"
      -        ],
      -        "type": "object"
      -      }
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "next_cursor": {
      -        "maxLength": 1024,
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "runs": {
      -        "items": {
      -          "additionalProperties": false,
      -          "properties": {
      -            "charged_credits": {
      -              "description": "Credits charged by a finished run; null while it is active.",
      -              "maxLength": 32,
      -              "type": [
      -                "string",
      -                "null"
      -              ]
      -            },
      -            "created_at": {
      -              "type": "string"
      -            },
      -            "recipe_id": {
      -              "type": "string"
      -            },
      -            "recipe_title": {
      -              "maxLength": 200,
      -              "type": "string"
      -            },
      -            "run_id": {
      -              "maxLength": 26,
      -              "minLength": 26,
      -              "pattern": "^[0-9A-Za-z]{26}$",
      -              "type": "string"
      -            },
      -            "status": {
      -              "enum": [
      -                "queued",
      -                "running",
      -                "done",
      -                "failed",
      -                "cancelled",
      -                "blocked"
      -              ]
      -            },
      -            "updated_at": {
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "run_id",
      -            "recipe_id",
      -            "recipe_title",
      -            "status",
      -            "created_at",
      -            "updated_at",
      -            "charged_credits"
      -          ],
      -          "type": "object"
      -        },
      -        "maxItems": 20,
      -        "type": "array"
      -      },
      -      "view": {
      -        "const": "history"
      -      }
      -    },
      -    "required": [
      -      "view",
      -      "runs",
      -      "next_cursor"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "basis": {
      -        "const": "UI receipt estimate versus settled charge; not an admission ceiling. Null means unavailable."
      -      },
      -      "billing": {
      -        "oneOf": [
      -          {
      -            "additionalProperties": false,
      -            "properties": {
      -              "retry_after_seconds": {
      -                "const": 2
      -              },
      -              "state": {
      -                "const": "pending"
      -              }
      -            },
      -            "required": [
      -              "state",
      -              "retry_after_seconds"
      -            ],
      -            "type": "object"
      -          },
      -          {
      -            "additionalProperties": false,
      -            "properties": {
      -              "state": {
      -                "const": "unavailable"
      -              }
      -            },
      -            "required": [
      -              "state"
      -            ],
      -            "type": "object"
      -          },
      -          {
      -            "additionalProperties": false,
      -            "properties": {
      -              "charged_credits": {
      -                "maxLength": 64,
      -                "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
      -                "type": "string"
      -              },
      -              "state": {
      -                "const": "settled"
      -              }
      -            },
      -            "required": [
      -              "state",
      -              "charged_credits"
      -            ],
      -            "type": "object"
      -          },
      -          {
      -            "additionalProperties": false,
      -            "properties": {
      -              "available_credits": {
      -                "maxLength": 64,
      -                "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
      -                "type": "string"
      -              },
      -              "balance_as_of": {
      -                "format": "date-time",
      -                "maxLength": 64,
      -                "type": "string"
      -              },
      -              "charged_credits": {
      -                "maxLength": 64,
      -                "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
      -                "type": "string"
      -              },
      -              "state": {
      -                "const": "settled"
      -              }
      -            },
      -            "required": [
      -              "state",
      -              "charged_credits",
      -              "available_credits",
      -              "balance_as_of"
      -            ],
      -            "type": "object"
      -          }
      -        ]
      -      },
      -      "receipt": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "charged_credits": {
      -            "type": [
      -              "number",
      -              "null"
      -            ]
      -          },
      -          "estimated_credits": {
      -            "type": [
      -              "number",
      -              "null"
      -            ]
      -          },
      -          "variance_pct": {
      -            "type": [
      -              "number",
      -              "null"
      -            ]
      -          }
      -        },
      -        "required": [
      -          "estimated_credits",
      -          "charged_credits",
      -          "variance_pct"
      -        ],
      -        "type": "object"
      -      },
      -      "run_id": {
      -        "maxLength": 26,
      -        "minLength": 26,
      -        "pattern": "^[0-9A-Za-z]{26}$",
      -        "type": "string"
      -      },
      -      "view": {
      -        "const": "diagnostics"
      -      }
      -    },
      -    "required": [
      -      "view",
      -      "run_id",
      -      "billing",
      -      "receipt",
      -      "basis"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "error": {
      -        "const": "invalid_history_query"
      -      }
      -    },
      -    "required": [
      -      "error"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "oneOf": [
      +      {
      +        "additionalProperties": false,
      +        "properties": {
      +          "created_at": {
      +            "format": "date-time",
      +            "maxLength": 64,
      +            "type": "string"
      +          },
      +          "credit_pause": {
      +            "additionalProperties": false,
      +            "description": "The run paused because a step could not reserve credits. It resumes from the StewAI web app after credits are added.",
      +            "properties": {
      +              "available_credits": {
      +                "maxLength": 32,
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              },
      +              "required_credits": {
      +                "maxLength": 32,
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              },
      +              "resumable": {
      +                "const": true
      +              }
      +            },
      +            "required": [
      +              "required_credits",
      +              "available_credits",
      +              "resumable"
      +            ],
      +            "type": "object"
      +          },
      +          "progress": {
      +            "additionalProperties": false,
      +            "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.",
      +            "properties": {
      +              "active_steps": {
      +                "items": {
      +                  "additionalProperties": false,
      +                  "properties": {
      +                    "elapsed_seconds": {
      +                      "minimum": 0,
      +                      "type": [
      +                        "integer",
      +                        "null"
      +                      ]
      +                    },
      +                    "kind": {
      +                      "maxLength": 32,
      +                      "type": "string"
      +                    },
      +                    "started_at": {
      +                      "maxLength": 40,
      +                      "type": [
      +                        "string",
      +                        "null"
      +                      ]
      +                    },
      +                    "step_id": {
      +                      "maxLength": 128,
      +                      "type": "string"
      +                    },
      +                    "title": {
      +                      "maxLength": 120,
      +                      "type": "string"
      +                    }
      +                  },
      +                  "required": [
      +                    "step_id",
      +                    "kind",
      +                    "started_at",
      +                    "elapsed_seconds"
      +                  ],
      +                  "type": "object"
      +                },
      +                "maxItems": 5,
      +                "type": "array"
      +              },
      +              "last_step_activity_at": {
      +                "maxLength": 40,
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              },
      +              "observed_at": {
      +                "maxLength": 40,
      +                "type": "string"
      +              },
      +              "phase": {
      +                "enum": [
      +                  "queued",
      +                  "running_steps",
      +                  "between_steps",
      +                  "waiting_for_input",
      +                  "paused_insufficient_credits",
      +                  "terminal"
      +                ]
      +              },
      +              "run_elapsed_seconds": {
      +                "minimum": 0,
      +                "type": [
      +                  "integer",
      +                  "null"
      +                ]
      +              },
      +              "steps": {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "done": {
      +                    "minimum": 0,
      +                    "type": "integer"
      +                  },
      +                  "failed": {
      +                    "minimum": 0,
      +                    "type": "integer"
      +                  },
      +                  "queued": {
      +                    "minimum": 0,
      +                    "type": "integer"
      +                  },
      +                  "running": {
      +                    "minimum": 0,
      +                    "type": "integer"
      +                  },
      +                  "total": {
      +                    "minimum": 0,
      +                    "type": "integer"
      +                  },
      +                  "waiting_for_input": {
      +                    "minimum": 0,
      +                    "type": "integer"
      +                  }
      +                },
      +                "required": [
      +                  "total",
      +                  "queued",
      +                  "running",
      +                  "waiting_for_input",
      +                  "done",
      +                  "failed"
      +                ],
      +                "type": "object"
      +              }
      +            },
      +            "required": [
      +              "phase",
      +              "steps",
      +              "active_steps",
      +              "run_elapsed_seconds",
      +              "last_step_activity_at",
      +              "observed_at"
      +            ],
      +            "type": "object"
      +          },
      +          "run_id": {
      +            "maxLength": 26,
      +            "minLength": 26,
      +            "pattern": "^[0-9A-Za-z]{26}$",
      +            "type": "string"
      +          },
      +          "run_url": {
      +            "description": "Clickable StewAI page for this run.",
      +            "format": "uri",
      +            "maxLength": 2048,
      +            "type": "string"
      +          },
      +          "status": {
      +            "enum": [
      +              "queued",
      +              "running",
      +              "blocked"
      +            ]
      +          },
      +          "updated_at": {
      +            "format": "date-time",
      +            "maxLength": 64,
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "run_id",
      +          "run_url",
      +          "status",
      +          "created_at",
      +          "updated_at"
      +        ],
      +        "type": "object"
      +      },
      +      {
      +        "additionalProperties": false,
      +        "properties": {
      +          "billing": {
      +            "oneOf": [
      +              {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "retry_after_seconds": {
      +                    "const": 2
      +                  },
      +                  "state": {
      +                    "const": "pending"
      +                  }
      +                },
      +                "required": [
      +                  "state",
      +                  "retry_after_seconds"
      +                ],
      +                "type": "object"
      +              },
      +              {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "state": {
      +                    "const": "unavailable"
      +                  }
      +                },
      +                "required": [
      +                  "state"
      +                ],
      +                "type": "object"
      +              },
      +              {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "charged_credits": {
      +                    "maxLength": 64,
      +                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
      +                    "type": "string"
      +                  },
      +                  "state": {
      +                    "const": "settled"
      +                  }
      +                },
      +                "required": [
      +                  "state",
      +                  "charged_credits"
      +                ],
      +                "type": "object"
      +              },
      +              {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "available_credits": {
      +                    "maxLength": 64,
      +                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
      +                    "type": "string"
      +                  },
      +                  "balance_as_of": {
      +                    "format": "date-time",
      +                    "maxLength": 64,
      +                    "type": "string"
      +                  },
      +                  "charged_credits": {
      +                    "maxLength": 64,
      +                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
      +                    "type": "string"
      +                  },
      +                  "state": {
      +                    "const": "settled"
      +                  }
      +                },
      +                "required": [
      +                  "state",
      +                  "charged_credits",
      +                  "available_credits",
      +                  "balance_as_of"
      +                ],
      +                "type": "object"
      +              }
      +            ]
      +          },
      +          "created_at": {
      +            "format": "date-time",
      +            "maxLength": 64,
      +            "type": "string"
      +          },
      +          "progress": {
      +            "additionalProperties": false,
      +            "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.",
      +            "properties": {
      +              "active_steps": {
      +                "items": {
      +                  "additionalProperties": false,
      +                  "properties": {
      +                    "elapsed_seconds": {
      +                      "minimum": 0,
      +                      "type": [
      +                        "integer",
      +                        "null"
      +                      ]
      +                    },
      +                    "kind": {
      +                      "maxLength": 32,
      +                      "type": "string"
      +                    },
      +                    "started_at": {
      +                      "maxLength": 40,
      +                      "type": [
      +                        "string",
      +                        "null"
      +                      ]
      +                    },
      +                    "step_id": {
      +                      "maxLength": 128,
      +                      "type": "string"
      +                    },
      +                    "title": {
      +                      "maxLength": 120,
      +                      "type": "string"
      +                    }
      +                  },
      +                  "required": [
      +                    "step_id",
      +                    "kind",
      +                    "started_at",
      +                    "elapsed_seconds"
      +                  ],
      +                  "type": "object"
      +                },
      +                "maxItems": 5,
      +                "type": "array"
      +              },
      +              "last_step_activity_at": {
      +                "maxLength": 40,
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              },
      +              "observed_at": {
      +                "maxLength": 40,
      +                "type": "string"
      +              },
      +              "phase": {
      +                "enum": [
      +                  "queued",
      +                  "running_steps",
      +                  "between_steps",
      +                  "waiting_for_input",
      +                  "paused_insufficient_credits",
      +                  "terminal"
      +                ]
      +              },
      +              "run_elapsed_seconds": {
      +                "minimum": 0,
      +                "type": [
      +                  "integer",
      +                  "null"
      +                ]
      +              },
      +              "steps": {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "done": {
      +                    "minimum": 0,
      +                    "type": "integer"
      +                  },
      +                  "failed": {
      +                    "minimum": 0,
      +                    "type": "integer"
      +                  },
      +                  "queued": {
      +                    "minimum": 0,
      +                    "type": "integer"
      +                  },
      +                  "running": {
      +                    "minimum": 0,
      +                    "type": "integer"
      +                  },
      +                  "total": {
      +                    "minimum": 0,
      +                    "type": "integer"
      +                  },
      +                  "waiting_for_input": {
      +                    "minimum": 0,
      +                    "type": "integer"
      +                  }
      +                },
      +                "required": [
      +                  "total",
      +                  "queued",
      +                  "running",
      +                  "waiting_for_input",
      +                  "done",
      +                  "failed"
      +                ],
      +                "type": "object"
      +              }
      +            },
      +            "required": [
      +              "phase",
      +              "steps",
      +              "active_steps",
      +              "run_elapsed_seconds",
      +              "last_step_activity_at",
      +              "observed_at"
      +            ],
      +            "type": "object"
      +          },
      +          "results_available": {
      +            "type": "boolean"
      +          },
      +          "run_id": {
      +            "maxLength": 26,
      +            "minLength": 26,
      +            "pattern": "^[0-9A-Za-z]{26}$",
      +            "type": "string"
      +          },
      +          "run_url": {
      +            "description": "Clickable StewAI page for this run.",
      +            "format": "uri",
      +            "maxLength": 2048,
      +            "type": "string"
      +          },
      +          "status": {
      +            "const": "done"
      +          },
      +          "updated_at": {
      +            "format": "date-time",
      +            "maxLength": 64,
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "run_id",
      +          "run_url",
      +          "status",
      +          "created_at",
      +          "updated_at",
      +          "results_available",
      +          "billing"
      +        ],
      +        "type": "object"
      +      },
      +      {
      +        "additionalProperties": false,
      +        "properties": {
      +          "billing": {
      +            "oneOf": [
      +              {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "retry_after_seconds": {
      +                    "const": 2
      +                  },
      +                  "state": {
      +                    "const": "pending"
      +                  }
      +                },
      +                "required": [
      +                  "state",
      +                  "retry_after_seconds"
      +                ],
      +                "type": "object"
      +              },
      +              {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "state": {
      +                    "const": "unavailable"
      +                  }
      +                },
      +                "required": [
      +                  "state"
      +                ],
      +                "type": "object"
      +              },
      +              {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "charged_credits": {
      +                    "maxLength": 64,
      +                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
      +                    "type": "string"
      +                  },
      +                  "state": {
      +                    "const": "settled"
      +                  }
      +                },
      +                "required": [
      +                  "state",
      +                  "charged_credits"
      +                ],
      +                "type": "object"
      +              },
      +              {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "available_credits": {
      +                    "maxLength": 64,
      +                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
      +                    "type": "string"
      +                  },
      +                  "balance_as_of": {
      +                    "format": "date-time",
      +                    "maxLength": 64,
      +                    "type": "string"
      +                  },
      +                  "charged_credits": {
      +                    "maxLength": 64,
      +                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
      +                    "type": "string"
      +                  },
      +                  "state": {
      +                    "const": "settled"
      +                  }
      +                },
      +                "required": [
      +                  "state",
      +                  "charged_credits",
      +                  "available_credits",
      +                  "balance_as_of"
      +                ],
      +                "type": "object"
      +              }
      +            ]
      +          },
      +          "created_at": {
      +            "format": "date-time",
      +            "maxLength": 64,
      +            "type": "string"
      +          },
      +          "progress": {
      +            "additionalProperties": false,
      +            "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.",
      +            "properties": {
      +              "active_steps": {
      +                "items": {
      +                  "additionalProperties": false,
      +                  "properties": {
      +                    "elapsed_seconds": {
      +                      "minimum": 0,
      +                      "type": [
      +                        "integer",
      +                        "null"
      +                      ]
      +                    },
      +                    "kind": {
      +                      "maxLength": 32,
      +                      "type": "string"
      +                    },
      +                    "started_at": {
      +                      "maxLength": 40,
      +                      "type": [
      +                        "string",
      +                        "null"
      +                      ]
      +                    },
      +                    "step_id": {
      +                      "maxLength": 128,
      +                      "type": "string"
      +                    },
      +                    "title": {
      +                      "maxLength": 120,
      +                      "type": "string"
      +                    }
      +                  },
      +                  "required": [
      +                    "step_id",
      +                    "kind",
      +                    "started_at",
      +                    "elapsed_seconds"
      +                  ],
      +                  "type": "object"
      +                },
      +                "maxItems": 5,
      +                "type": "array"
      +              },
      +              "last_step_activity_at": {
      +                "maxLength": 40,
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              },
      +              "observed_at": {
      +                "maxLength": 40,
      +                "type": "string"
      +              },
      +              "phase": {
      +                "enum": [
      +                  "queued",
      +                  "running_steps",
      +                  "between_steps",
      +                  "waiting_for_input",
      +                  "paused_insufficient_credits",
      +                  "terminal"
      +                ]
      +              },
      +              "run_elapsed_seconds": {
      +                "minimum": 0,
      +                "type": [
      +                  "integer",
      +                  "null"
      +                ]
      +              },
      +              "steps": {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "done": {
      +                    "minimum": 0,
      +                    "type": "integer"
      +                  },
      +                  "failed": {
      +                    "minimum": 0,
      +                    "type": "integer"
      +                  },
      +                  "queued": {
      +                    "minimum": 0,
      +                    "type": "integer"
      +                  },
      +                  "running": {
      +                    "minimum": 0,
      +                    "type": "integer"
      +                  },
      +                  "total": {
      +                    "minimum": 0,
      +                    "type": "integer"
      +                  },
      +                  "waiting_for_input": {
      +                    "minimum": 0,
      +                    "type": "integer"
      +                  }
      +                },
      +                "required": [
      +                  "total",
      +                  "queued",
      +                  "running",
      +                  "waiting_for_input",
      +                  "done",
      +                  "failed"
      +                ],
      +                "type": "object"
      +              }
      +            },
      +            "required": [
      +              "phase",
      +              "steps",
      +              "active_steps",
      +              "run_elapsed_seconds",
      +              "last_step_activity_at",
      +              "observed_at"
      +            ],
      +            "type": "object"
      +          },
      +          "run_id": {
      +            "maxLength": 26,
      +            "minLength": 26,
      +            "pattern": "^[0-9A-Za-z]{26}$",
      +            "type": "string"
      +          },
      +          "run_url": {
      +            "description": "Clickable StewAI page for this run.",
      +            "format": "uri",
      +            "maxLength": 2048,
      +            "type": "string"
      +          },
      +          "status": {
      +            "enum": [
      +              "failed",
      +              "cancelled"
      +            ]
      +          },
      +          "updated_at": {
      +            "format": "date-time",
      +            "maxLength": 64,
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "run_id",
      +          "run_url",
      +          "status",
      +          "created_at",
      +          "updated_at",
      +          "billing"
      +        ],
      +        "type": "object"
      +      },
      +      {
      +        "additionalProperties": false,
      +        "properties": {
      +          "error": {
      +            "const": "run_not_found"
      +          }
      +        },
      +        "required": [
      +          "error"
      +        ],
      +        "type": "object"
      +      }
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "next_cursor": {
      +        "maxLength": 1024,
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "runs": {
      +        "items": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "charged_credits": {
      +              "description": "Credits charged by a finished run; null while it is active.",
      +              "maxLength": 32,
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "created_at": {
      +              "type": "string"
      +            },
      +            "recipe_id": {
      +              "type": "string"
      +            },
      +            "recipe_title": {
      +              "maxLength": 200,
      +              "type": "string"
      +            },
      +            "run_id": {
      +              "maxLength": 26,
      +              "minLength": 26,
      +              "pattern": "^[0-9A-Za-z]{26}$",
      +              "type": "string"
      +            },
      +            "status": {
      +              "enum": [
      +                "queued",
      +                "running",
      +                "done",
      +                "failed",
      +                "cancelled",
      +                "blocked"
      +              ]
      +            },
      +            "updated_at": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "run_id",
      +            "recipe_id",
      +            "recipe_title",
      +            "status",
      +            "created_at",
      +            "updated_at",
      +            "charged_credits"
      +          ],
      +          "type": "object"
      +        },
      +        "maxItems": 20,
      +        "type": "array"
      +      },
      +      "view": {
      +        "const": "history"
      +      }
      +    },
      +    "required": [
      +      "view",
      +      "runs",
      +      "next_cursor"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "basis": {
      +        "const": "UI receipt estimate versus settled charge; not an admission ceiling. Null means unavailable."
      +      },
      +      "billing": {
      +        "oneOf": [
      +          {
      +            "additionalProperties": false,
      +            "properties": {
      +              "retry_after_seconds": {
      +                "const": 2
      +              },
      +              "state": {
      +                "const": "pending"
      +              }
      +            },
      +            "required": [
      +              "state",
      +              "retry_after_seconds"
      +            ],
      +            "type": "object"
      +          },
      +          {
      +            "additionalProperties": false,
      +            "properties": {
      +              "state": {
      +                "const": "unavailable"
      +              }
      +            },
      +            "required": [
      +              "state"
      +            ],
      +            "type": "object"
      +          },
      +          {
      +            "additionalProperties": false,
      +            "properties": {
      +              "charged_credits": {
      +                "maxLength": 64,
      +                "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
      +                "type": "string"
      +              },
      +              "state": {
      +                "const": "settled"
      +              }
      +            },
      +            "required": [
      +              "state",
      +              "charged_credits"
      +            ],
      +            "type": "object"
      +          },
      +          {
      +            "additionalProperties": false,
      +            "properties": {
      +              "available_credits": {
      +                "maxLength": 64,
      +                "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
      +                "type": "string"
      +              },
      +              "balance_as_of": {
      +                "format": "date-time",
      +                "maxLength": 64,
      +                "type": "string"
      +              },
      +              "charged_credits": {
      +                "maxLength": 64,
      +                "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
      +                "type": "string"
      +              },
      +              "state": {
      +                "const": "settled"
      +              }
      +            },
      +            "required": [
      +              "state",
      +              "charged_credits",
      +              "available_credits",
      +              "balance_as_of"
      +            ],
      +            "type": "object"
      +          }
      +        ]
      +      },
      +      "receipt": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "charged_credits": {
      +            "type": [
      +              "number",
      +              "null"
      +            ]
      +          },
      +          "estimated_credits": {
      +            "type": [
      +              "number",
      +              "null"
      +            ]
      +          },
      +          "variance_pct": {
      +            "type": [
      +              "number",
      +              "null"
      +            ]
      +          }
      +        },
      +        "required": [
      +          "estimated_credits",
      +          "charged_credits",
      +          "variance_pct"
      +        ],
      +        "type": "object"
      +      },
      +      "run_id": {
      +        "maxLength": 26,
      +        "minLength": 26,
      +        "pattern": "^[0-9A-Za-z]{26}$",
      +        "type": "string"
      +      },
      +      "view": {
      +        "const": "diagnostics"
      +      }
      +    },
      +    "required": [
      +      "view",
      +      "run_id",
      +      "billing",
      +      "receipt",
      +      "basis"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "error": {
      +        "const": "invalid_history_query"
      +      }
      +    },
      +    "required": [
      +      "error"
      +    ],
      +    "type": "object"
      +  }
      +]
  2. Changed1 schema field changed
    • changedOutput schema / oneOf
      Previous value: -[
      -  {
      -    "oneOf": [
      -      {
      -        "additionalProperties": false,
      -        "properties": {
      -          "created_at": {
      -            "format": "date-time",
      -            "maxLength": 64,
      -            "type": "string"
      -          },
      -          "credit_pause": {
      -            "additionalProperties": false,
      -            "description": "The run paused because a step could not reserve credits. It resumes from the StewAI web app after credits are added.",
      -            "properties": {
      -              "available_credits": {
      -                "maxLength": 32,
      -                "type": [
      -                  "string",
      -                  "null"
      -                ]
      -              },
      -              "required_credits": {
      -                "maxLength": 32,
      -                "type": [
      -                  "string",
      -                  "null"
      -                ]
      -              },
      -              "resumable": {
      -                "const": true
      -              }
      -            },
      -            "required": [
      -              "required_credits",
      -              "available_credits",
      -              "resumable"
      -            ],
      -            "type": "object"
      -          },
      -          "progress": {
      -            "additionalProperties": false,
      -            "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.",
      -            "properties": {
      -              "active_steps": {
      -                "items": {
      -                  "additionalProperties": false,
      -                  "properties": {
      -                    "elapsed_seconds": {
      -                      "minimum": 0,
      -                      "type": [
      -                        "integer",
      -                        "null"
      -                      ]
      -                    },
      -                    "kind": {
      -                      "maxLength": 32,
      -                      "type": "string"
      -                    },
      -                    "started_at": {
      -                      "maxLength": 40,
      -                      "type": [
      -                        "string",
      -                        "null"
      -                      ]
      -                    },
      -                    "step_id": {
      -                      "maxLength": 128,
      -                      "type": "string"
      -                    },
      -                    "title": {
      -                      "maxLength": 120,
      -                      "type": "string"
      -                    }
      -                  },
      -                  "required": [
      -                    "step_id",
      -                    "kind",
      -                    "started_at",
      -                    "elapsed_seconds"
      -                  ],
      -                  "type": "object"
      -                },
      -                "maxItems": 5,
      -                "type": "array"
      -              },
      -              "last_step_activity_at": {
      -                "maxLength": 40,
      -                "type": [
      -                  "string",
      -                  "null"
      -                ]
      -              },
      -              "observed_at": {
      -                "maxLength": 40,
      -                "type": "string"
      -              },
      -              "phase": {
      -                "enum": [
      -                  "queued",
      -                  "running_steps",
      -                  "between_steps",
      -                  "waiting_for_input",
      -                  "paused_insufficient_credits",
      -                  "terminal"
      -                ]
      -              },
      -              "run_elapsed_seconds": {
      -                "minimum": 0,
      -                "type": [
      -                  "integer",
      -                  "null"
      -                ]
      -              },
      -              "steps": {
      -                "additionalProperties": false,
      -                "properties": {
      -                  "done": {
      -                    "minimum": 0,
      -                    "type": "integer"
      -                  },
      -                  "failed": {
      -                    "minimum": 0,
      -                    "type": "integer"
      -                  },
      -                  "queued": {
      -                    "minimum": 0,
      -                    "type": "integer"
      -                  },
      -                  "running": {
      -                    "minimum": 0,
      -                    "type": "integer"
      -                  },
      -                  "total": {
      -                    "minimum": 0,
      -                    "type": "integer"
      -                  },
      -                  "waiting_for_input": {
      -                    "minimum": 0,
      -                    "type": "integer"
      -                  }
      -                },
      -                "required": [
      -                  "total",
      -                  "queued",
      -                  "running",
      -                  "waiting_for_input",
      -                  "done",
      -                  "failed"
      -                ],
      -                "type": "object"
      -              }
      -            },
      -            "required": [
      -              "phase",
      -              "steps",
      -              "active_steps",
      -              "run_elapsed_seconds",
      -              "last_step_activity_at",
      -              "observed_at"
      -            ],
      -            "type": "object"
      -          },
      -          "run_id": {
      -            "maxLength": 26,
      -            "minLength": 26,
      -            "pattern": "^[0-9A-Za-z]{26}$",
      -            "type": "string"
      -          },
      -          "status": {
      -            "enum": [
      -              "queued",
      -              "running",
      -              "blocked"
      -            ]
      -          },
      -          "updated_at": {
      -            "format": "date-time",
      -            "maxLength": 64,
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "run_id",
      -          "status",
      -          "created_at",
      -          "updated_at"
      -        ],
      -        "type": "object"
      -      },
      -      {
      -        "additionalProperties": false,
      -        "properties": {
      -          "billing": {
      -            "oneOf": [
      -              {
      -                "additionalProperties": false,
      -                "properties": {
      -                  "retry_after_seconds": {
      -                    "const": 2
      -                  },
      -                  "state": {
      -                    "const": "pending"
      -                  }
      -                },
      -                "required": [
      -                  "state",
      -                  "retry_after_seconds"
      -                ],
      -                "type": "object"
      -              },
      -              {
      -                "additionalProperties": false,
      -                "properties": {
      -                  "state": {
      -                    "const": "unavailable"
      -                  }
      -                },
      -                "required": [
      -                  "state"
      -                ],
      -                "type": "object"
      -              },
      -              {
      -                "additionalProperties": false,
      -                "properties": {
      -                  "charged_credits": {
      -                    "maxLength": 64,
      -                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
      -                    "type": "string"
      -                  },
      -                  "state": {
      -                    "const": "settled"
      -                  }
      -                },
      -                "required": [
      -                  "state",
      -                  "charged_credits"
      -                ],
      -                "type": "object"
      -              },
      -              {
      -                "additionalProperties": false,
      -                "properties": {
      -                  "available_credits": {
      -                    "maxLength": 64,
      -                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
      -                    "type": "string"
      -                  },
      -                  "balance_as_of": {
      -                    "format": "date-time",
      -                    "maxLength": 64,
      -                    "type": "string"
      -                  },
      -                  "charged_credits": {
      -                    "maxLength": 64,
      -                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
      -                    "type": "string"
      -                  },
      -                  "state": {
      -                    "const": "settled"
      -                  }
      -                },
      -                "required": [
      -                  "state",
      -                  "charged_credits",
      -                  "available_credits",
      -                  "balance_as_of"
      -                ],
      -                "type": "object"
      -              }
      -            ]
      -          },
      -          "created_at": {
      -            "format": "date-time",
      -            "maxLength": 64,
      -            "type": "string"
      -          },
      -          "progress": {
      -            "additionalProperties": false,
      -            "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.",
      -            "properties": {
      -              "active_steps": {
      -                "items": {
      -                  "additionalProperties": false,
      -                  "properties": {
      -                    "elapsed_seconds": {
      -                      "minimum": 0,
      -                      "type": [
      -                        "integer",
      -                        "null"
      -                      ]
      -                    },
      -                    "kind": {
      -                      "maxLength": 32,
      -                      "type": "string"
      -                    },
      -                    "started_at": {
      -                      "maxLength": 40,
      -                      "type": [
      -                        "string",
      -                        "null"
      -                      ]
      -                    },
      -                    "step_id": {
      -                      "maxLength": 128,
      -                      "type": "string"
      -                    },
      -                    "title": {
      -                      "maxLength": 120,
      -                      "type": "string"
      -                    }
      -                  },
      -                  "required": [
      -                    "step_id",
      -                    "kind",
      -                    "started_at",
      -                    "elapsed_seconds"
      -                  ],
      -                  "type": "object"
      -                },
      -                "maxItems": 5,
      -                "type": "array"
      -              },
      -              "last_step_activity_at": {
      -                "maxLength": 40,
      -                "type": [
      -                  "string",
      -                  "null"
      -                ]
      -              },
      -              "observed_at": {
      -                "maxLength": 40,
      -                "type": "string"
      -              },
      -              "phase": {
      -                "enum": [
      -                  "queued",
      -                  "running_steps",
      -                  "between_steps",
      -                  "waiting_for_input",
      -                  "paused_insufficient_credits",
      -                  "terminal"
      -                ]
      -              },
      -              "run_elapsed_seconds": {
      -                "minimum": 0,
      -                "type": [
      -                  "integer",
      -                  "null"
      -                ]
      -              },
      -              "steps": {
      -                "additionalProperties": false,
      -                "properties": {
      -                  "done": {
      -                    "minimum": 0,
      -                    "type": "integer"
      -                  },
      -                  "failed": {
      -                    "minimum": 0,
      -                    "type": "integer"
      -                  },
      -                  "queued": {
      -                    "minimum": 0,
      -                    "type": "integer"
      -                  },
      -                  "running": {
      -                    "minimum": 0,
      -                    "type": "integer"
      -                  },
      -                  "total": {
      -                    "minimum": 0,
      -                    "type": "integer"
      -                  },
      -                  "waiting_for_input": {
      -                    "minimum": 0,
      -                    "type": "integer"
      -                  }
      -                },
      -                "required": [
      -                  "total",
      -                  "queued",
      -                  "running",
      -                  "waiting_for_input",
      -                  "done",
      -                  "failed"
      -                ],
      -                "type": "object"
      -              }
      -            },
      -            "required": [
      -              "phase",
      -              "steps",
      -              "active_steps",
      -              "run_elapsed_seconds",
      -              "last_step_activity_at",
      -              "observed_at"
      -            ],
      -            "type": "object"
      -          },
      -          "results_available": {
      -            "type": "boolean"
      -          },
      -          "run_id": {
      -            "maxLength": 26,
      -            "minLength": 26,
      -            "pattern": "^[0-9A-Za-z]{26}$",
      -            "type": "string"
      -          },
      -          "status": {
      -            "const": "done"
      -          },
      -          "updated_at": {
      -            "format": "date-time",
      -            "maxLength": 64,
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "run_id",
      -          "status",
      -          "created_at",
      -          "updated_at",
      -          "results_available",
      -          "billing"
      -        ],
      -        "type": "object"
      -      },
      -      {
      -        "additionalProperties": false,
      -        "properties": {
      -          "billing": {
      -            "oneOf": [
      -              {
      -                "additionalProperties": false,
      -                "properties": {
      -                  "retry_after_seconds": {
      -                    "const": 2
      -                  },
      -                  "state": {
      -                    "const": "pending"
      -                  }
      -                },
      -                "required": [
      -                  "state",
      -                  "retry_after_seconds"
      -                ],
      -                "type": "object"
      -              },
      -              {
      -                "additionalProperties": false,
      -                "properties": {
      -                  "state": {
      -                    "const": "unavailable"
      -                  }
      -                },
      -                "required": [
      -                  "state"
      -                ],
      -                "type": "object"
      -              },
      -              {
      -                "additionalProperties": false,
      -                "properties": {
      -                  "charged_credits": {
      -                    "maxLength": 64,
      -                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
      -                    "type": "string"
      -                  },
      -                  "state": {
      -                    "const": "settled"
      -                  }
      -                },
      -                "required": [
      -                  "state",
      -                  "charged_credits"
      -                ],
      -                "type": "object"
      -              },
      -              {
      -                "additionalProperties": false,
      -                "properties": {
      -                  "available_credits": {
      -                    "maxLength": 64,
      -                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
      -                    "type": "string"
      -                  },
      -                  "balance_as_of": {
      -                    "format": "date-time",
      -                    "maxLength": 64,
      -                    "type": "string"
      -                  },
      -                  "charged_credits": {
      -                    "maxLength": 64,
      -                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
      -                    "type": "string"
      -                  },
      -                  "state": {
      -                    "const": "settled"
      -                  }
      -                },
      -                "required": [
      -                  "state",
      -                  "charged_credits",
      -                  "available_credits",
      -                  "balance_as_of"
      -                ],
      -                "type": "object"
      -              }
      -            ]
      -          },
      -          "created_at": {
      -            "format": "date-time",
      -            "maxLength": 64,
      -            "type": "string"
      -          },
      -          "progress": {
      -            "additionalProperties": false,
      -            "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.",
      -            "properties": {
      -              "active_steps": {
      -                "items": {
      -                  "additionalProperties": false,
      -                  "properties": {
      -                    "elapsed_seconds": {
      -                      "minimum": 0,
      -                      "type": [
      -                        "integer",
      -                        "null"
      -                      ]
      -                    },
      -                    "kind": {
      -                      "maxLength": 32,
      -                      "type": "string"
      -                    },
      -                    "started_at": {
      -                      "maxLength": 40,
      -                      "type": [
      -                        "string",
      -                        "null"
      -                      ]
      -                    },
      -                    "step_id": {
      -                      "maxLength": 128,
      -                      "type": "string"
      -                    },
      -                    "title": {
      -                      "maxLength": 120,
      -                      "type": "string"
      -                    }
      -                  },
      -                  "required": [
      -                    "step_id",
      -                    "kind",
      -                    "started_at",
      -                    "elapsed_seconds"
      -                  ],
      -                  "type": "object"
      -                },
      -                "maxItems": 5,
      -                "type": "array"
      -              },
      -              "last_step_activity_at": {
      -                "maxLength": 40,
      -                "type": [
      -                  "string",
      -                  "null"
      -                ]
      -              },
      -              "observed_at": {
      -                "maxLength": 40,
      -                "type": "string"
      -              },
      -              "phase": {
      -                "enum": [
      -                  "queued",
      -                  "running_steps",
      -                  "between_steps",
      -                  "waiting_for_input",
      -                  "paused_insufficient_credits",
      -                  "terminal"
      -                ]
      -              },
      -              "run_elapsed_seconds": {
      -                "minimum": 0,
      -                "type": [
      -                  "integer",
      -                  "null"
      -                ]
      -              },
      -              "steps": {
      -                "additionalProperties": false,
      -                "properties": {
      -                  "done": {
      -                    "minimum": 0,
      -                    "type": "integer"
      -                  },
      -                  "failed": {
      -                    "minimum": 0,
      -                    "type": "integer"
      -                  },
      -                  "queued": {
      -                    "minimum": 0,
      -                    "type": "integer"
      -                  },
      -                  "running": {
      -                    "minimum": 0,
      -                    "type": "integer"
      -                  },
      -                  "total": {
      -                    "minimum": 0,
      -                    "type": "integer"
      -                  },
      -                  "waiting_for_input": {
      -                    "minimum": 0,
      -                    "type": "integer"
      -                  }
      -                },
      -                "required": [
      -                  "total",
      -                  "queued",
      -                  "running",
      -                  "waiting_for_input",
      -                  "done",
      -                  "failed"
      -                ],
      -                "type": "object"
      -              }
      -            },
      -            "required": [
      -              "phase",
      -              "steps",
      -              "active_steps",
      -              "run_elapsed_seconds",
      -              "last_step_activity_at",
      -              "observed_at"
      -            ],
      -            "type": "object"
      -          },
      -          "run_id": {
      -            "maxLength": 26,
      -            "minLength": 26,
      -            "pattern": "^[0-9A-Za-z]{26}$",
      -            "type": "string"
      -          },
      -          "status": {
      -            "enum": [
      -              "failed",
      -              "cancelled"
      -            ]
      -          },
      -          "updated_at": {
      -            "format": "date-time",
      -            "maxLength": 64,
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "run_id",
      -          "status",
      -          "created_at",
      -          "updated_at",
      -          "billing"
      -        ],
      -        "type": "object"
      -      },
      -      {
      -        "additionalProperties": false,
      -        "properties": {
      -          "error": {
      -            "const": "run_not_found"
      -          }
      -        },
      -        "required": [
      -          "error"
      -        ],
      -        "type": "object"
      -      }
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "next_cursor": {
      -        "maxLength": 1024,
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "runs": {
      -        "items": {
      -          "additionalProperties": false,
      -          "properties": {
      -            "created_at": {
      -              "type": "string"
      -            },
      -            "recipe_id": {
      -              "type": "string"
      -            },
      -            "run_id": {
      -              "maxLength": 26,
      -              "minLength": 26,
      -              "pattern": "^[0-9A-Za-z]{26}$",
      -              "type": "string"
      -            },
      -            "status": {
      -              "enum": [
      -                "queued",
      -                "running",
      -                "done",
      -                "failed",
      -                "cancelled",
      -                "blocked"
      -              ]
      -            },
      -            "updated_at": {
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "run_id",
      -            "recipe_id",
      -            "status",
      -            "created_at",
      -            "updated_at"
      -          ],
      -          "type": "object"
      -        },
      -        "maxItems": 20,
      -        "type": "array"
      -      },
      -      "view": {
      -        "const": "history"
      -      }
      -    },
      -    "required": [
      -      "view",
      -      "runs",
      -      "next_cursor"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "basis": {
      -        "const": "UI receipt estimate versus settled charge; not an admission ceiling. Null means unavailable."
      -      },
      -      "billing": {
      -        "oneOf": [
      -          {
      -            "additionalProperties": false,
      -            "properties": {
      -              "retry_after_seconds": {
      -                "const": 2
      -              },
      -              "state": {
      -                "const": "pending"
      -              }
      -            },
      -            "required": [
      -              "state",
      -              "retry_after_seconds"
      -            ],
      -            "type": "object"
      -          },
      -          {
      -            "additionalProperties": false,
      -            "properties": {
      -              "state": {
      -                "const": "unavailable"
      -              }
      -            },
      -            "required": [
      -              "state"
      -            ],
      -            "type": "object"
      -          },
      -          {
      -            "additionalProperties": false,
      -            "properties": {
      -              "charged_credits": {
      -                "maxLength": 64,
      -                "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
      -                "type": "string"
      -              },
      -              "state": {
      -                "const": "settled"
      -              }
      -            },
      -            "required": [
      -              "state",
      -              "charged_credits"
      -            ],
      -            "type": "object"
      -          },
      -          {
      -            "additionalProperties": false,
      -            "properties": {
      -              "available_credits": {
      -                "maxLength": 64,
      -                "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
      -                "type": "string"
      -              },
      -              "balance_as_of": {
      -                "format": "date-time",
      -                "maxLength": 64,
      -                "type": "string"
      -              },
      -              "charged_credits": {
      -                "maxLength": 64,
      -                "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
      -                "type": "string"
      -              },
      -              "state": {
      -                "const": "settled"
      -              }
      -            },
      -            "required": [
      -              "state",
      -              "charged_credits",
      -              "available_credits",
      -              "balance_as_of"
      -            ],
      -            "type": "object"
      -          }
      -        ]
      -      },
      -      "receipt": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "charged_credits": {
      -            "type": [
      -              "number",
      -              "null"
      -            ]
      -          },
      -          "estimated_credits": {
      -            "type": [
      -              "number",
      -              "null"
      -            ]
      -          },
      -          "variance_pct": {
      -            "type": [
      -              "number",
      -              "null"
      -            ]
      -          }
      -        },
      -        "required": [
      -          "estimated_credits",
      -          "charged_credits",
      -          "variance_pct"
      -        ],
      -        "type": "object"
      -      },
      -      "run_id": {
      -        "maxLength": 26,
      -        "minLength": 26,
      -        "pattern": "^[0-9A-Za-z]{26}$",
      -        "type": "string"
      -      },
      -      "view": {
      -        "const": "diagnostics"
      -      }
      -    },
      -    "required": [
      -      "view",
      -      "run_id",
      -      "billing",
      -      "receipt",
      -      "basis"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "error": {
      -        "const": "invalid_history_query"
      -      }
      -    },
      -    "required": [
      -      "error"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "oneOf": [
      +      {
      +        "additionalProperties": false,
      +        "properties": {
      +          "created_at": {
      +            "format": "date-time",
      +            "maxLength": 64,
      +            "type": "string"
      +          },
      +          "credit_pause": {
      +            "additionalProperties": false,
      +            "description": "The run paused because a step could not reserve credits. It resumes from the StewAI web app after credits are added.",
      +            "properties": {
      +              "available_credits": {
      +                "maxLength": 32,
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              },
      +              "required_credits": {
      +                "maxLength": 32,
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              },
      +              "resumable": {
      +                "const": true
      +              }
      +            },
      +            "required": [
      +              "required_credits",
      +              "available_credits",
      +              "resumable"
      +            ],
      +            "type": "object"
      +          },
      +          "progress": {
      +            "additionalProperties": false,
      +            "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.",
      +            "properties": {
      +              "active_steps": {
      +                "items": {
      +                  "additionalProperties": false,
      +                  "properties": {
      +                    "elapsed_seconds": {
      +                      "minimum": 0,
      +                      "type": [
      +                        "integer",
      +                        "null"
      +                      ]
      +                    },
      +                    "kind": {
      +                      "maxLength": 32,
      +                      "type": "string"
      +                    },
      +                    "started_at": {
      +                      "maxLength": 40,
      +                      "type": [
      +                        "string",
      +                        "null"
      +                      ]
      +                    },
      +                    "step_id": {
      +                      "maxLength": 128,
      +                      "type": "string"
      +                    },
      +                    "title": {
      +                      "maxLength": 120,
      +                      "type": "string"
      +                    }
      +                  },
      +                  "required": [
      +                    "step_id",
      +                    "kind",
      +                    "started_at",
      +                    "elapsed_seconds"
      +                  ],
      +                  "type": "object"
      +                },
      +                "maxItems": 5,
      +                "type": "array"
      +              },
      +              "last_step_activity_at": {
      +                "maxLength": 40,
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              },
      +              "observed_at": {
      +                "maxLength": 40,
      +                "type": "string"
      +              },
      +              "phase": {
      +                "enum": [
      +                  "queued",
      +                  "running_steps",
      +                  "between_steps",
      +                  "waiting_for_input",
      +                  "paused_insufficient_credits",
      +                  "terminal"
      +                ]
      +              },
      +              "run_elapsed_seconds": {
      +                "minimum": 0,
      +                "type": [
      +                  "integer",
      +                  "null"
      +                ]
      +              },
      +              "steps": {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "done": {
      +                    "minimum": 0,
      +                    "type": "integer"
      +                  },
      +                  "failed": {
      +                    "minimum": 0,
      +                    "type": "integer"
      +                  },
      +                  "queued": {
      +                    "minimum": 0,
      +                    "type": "integer"
      +                  },
      +                  "running": {
      +                    "minimum": 0,
      +                    "type": "integer"
      +                  },
      +                  "total": {
      +                    "minimum": 0,
      +                    "type": "integer"
      +                  },
      +                  "waiting_for_input": {
      +                    "minimum": 0,
      +                    "type": "integer"
      +                  }
      +                },
      +                "required": [
      +                  "total",
      +                  "queued",
      +                  "running",
      +                  "waiting_for_input",
      +                  "done",
      +                  "failed"
      +                ],
      +                "type": "object"
      +              }
      +            },
      +            "required": [
      +              "phase",
      +              "steps",
      +              "active_steps",
      +              "run_elapsed_seconds",
      +              "last_step_activity_at",
      +              "observed_at"
      +            ],
      +            "type": "object"
      +          },
      +          "run_id": {
      +            "maxLength": 26,
      +            "minLength": 26,
      +            "pattern": "^[0-9A-Za-z]{26}$",
      +            "type": "string"
      +          },
      +          "status": {
      +            "enum": [
      +              "queued",
      +              "running",
      +              "blocked"
      +            ]
      +          },
      +          "updated_at": {
      +            "format": "date-time",
      +            "maxLength": 64,
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "run_id",
      +          "status",
      +          "created_at",
      +          "updated_at"
      +        ],
      +        "type": "object"
      +      },
      +      {
      +        "additionalProperties": false,
      +        "properties": {
      +          "billing": {
      +            "oneOf": [
      +              {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "retry_after_seconds": {
      +                    "const": 2
      +                  },
      +                  "state": {
      +                    "const": "pending"
      +                  }
      +                },
      +                "required": [
      +                  "state",
      +                  "retry_after_seconds"
      +                ],
      +                "type": "object"
      +              },
      +              {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "state": {
      +                    "const": "unavailable"
      +                  }
      +                },
      +                "required": [
      +                  "state"
      +                ],
      +                "type": "object"
      +              },
      +              {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "charged_credits": {
      +                    "maxLength": 64,
      +                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
      +                    "type": "string"
      +                  },
      +                  "state": {
      +                    "const": "settled"
      +                  }
      +                },
      +                "required": [
      +                  "state",
      +                  "charged_credits"
      +                ],
      +                "type": "object"
      +              },
      +              {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "available_credits": {
      +                    "maxLength": 64,
      +                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
      +                    "type": "string"
      +                  },
      +                  "balance_as_of": {
      +                    "format": "date-time",
      +                    "maxLength": 64,
      +                    "type": "string"
      +                  },
      +                  "charged_credits": {
      +                    "maxLength": 64,
      +                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
      +                    "type": "string"
      +                  },
      +                  "state": {
      +                    "const": "settled"
      +                  }
      +                },
      +                "required": [
      +                  "state",
      +                  "charged_credits",
      +                  "available_credits",
      +                  "balance_as_of"
      +                ],
      +                "type": "object"
      +              }
      +            ]
      +          },
      +          "created_at": {
      +            "format": "date-time",
      +            "maxLength": 64,
      +            "type": "string"
      +          },
      +          "progress": {
      +            "additionalProperties": false,
      +            "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.",
      +            "properties": {
      +              "active_steps": {
      +                "items": {
      +                  "additionalProperties": false,
      +                  "properties": {
      +                    "elapsed_seconds": {
      +                      "minimum": 0,
      +                      "type": [
      +                        "integer",
      +                        "null"
      +                      ]
      +                    },
      +                    "kind": {
      +                      "maxLength": 32,
      +                      "type": "string"
      +                    },
      +                    "started_at": {
      +                      "maxLength": 40,
      +                      "type": [
      +                        "string",
      +                        "null"
      +                      ]
      +                    },
      +                    "step_id": {
      +                      "maxLength": 128,
      +                      "type": "string"
      +                    },
      +                    "title": {
      +                      "maxLength": 120,
      +                      "type": "string"
      +                    }
      +                  },
      +                  "required": [
      +                    "step_id",
      +                    "kind",
      +                    "started_at",
      +                    "elapsed_seconds"
      +                  ],
      +                  "type": "object"
      +                },
      +                "maxItems": 5,
      +                "type": "array"
      +              },
      +              "last_step_activity_at": {
      +                "maxLength": 40,
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              },
      +              "observed_at": {
      +                "maxLength": 40,
      +                "type": "string"
      +              },
      +              "phase": {
      +                "enum": [
      +                  "queued",
      +                  "running_steps",
      +                  "between_steps",
      +                  "waiting_for_input",
      +                  "paused_insufficient_credits",
      +                  "terminal"
      +                ]
      +              },
      +              "run_elapsed_seconds": {
      +                "minimum": 0,
      +                "type": [
      +                  "integer",
      +                  "null"
      +                ]
      +              },
      +              "steps": {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "done": {
      +                    "minimum": 0,
      +                    "type": "integer"
      +                  },
      +                  "failed": {
      +                    "minimum": 0,
      +                    "type": "integer"
      +                  },
      +                  "queued": {
      +                    "minimum": 0,
      +                    "type": "integer"
      +                  },
      +                  "running": {
      +                    "minimum": 0,
      +                    "type": "integer"
      +                  },
      +                  "total": {
      +                    "minimum": 0,
      +                    "type": "integer"
      +                  },
      +                  "waiting_for_input": {
      +                    "minimum": 0,
      +                    "type": "integer"
      +                  }
      +                },
      +                "required": [
      +                  "total",
      +                  "queued",
      +                  "running",
      +                  "waiting_for_input",
      +                  "done",
      +                  "failed"
      +                ],
      +                "type": "object"
      +              }
      +            },
      +            "required": [
      +              "phase",
      +              "steps",
      +              "active_steps",
      +              "run_elapsed_seconds",
      +              "last_step_activity_at",
      +              "observed_at"
      +            ],
      +            "type": "object"
      +          },
      +          "results_available": {
      +            "type": "boolean"
      +          },
      +          "run_id": {
      +            "maxLength": 26,
      +            "minLength": 26,
      +            "pattern": "^[0-9A-Za-z]{26}$",
      +            "type": "string"
      +          },
      +          "status": {
      +            "const": "done"
      +          },
      +          "updated_at": {
      +            "format": "date-time",
      +            "maxLength": 64,
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "run_id",
      +          "status",
      +          "created_at",
      +          "updated_at",
      +          "results_available",
      +          "billing"
      +        ],
      +        "type": "object"
      +      },
      +      {
      +        "additionalProperties": false,
      +        "properties": {
      +          "billing": {
      +            "oneOf": [
      +              {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "retry_after_seconds": {
      +                    "const": 2
      +                  },
      +                  "state": {
      +                    "const": "pending"
      +                  }
      +                },
      +                "required": [
      +                  "state",
      +                  "retry_after_seconds"
      +                ],
      +                "type": "object"
      +              },
      +              {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "state": {
      +                    "const": "unavailable"
      +                  }
      +                },
      +                "required": [
      +                  "state"
      +                ],
      +                "type": "object"
      +              },
      +              {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "charged_credits": {
      +                    "maxLength": 64,
      +                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
      +                    "type": "string"
      +                  },
      +                  "state": {
      +                    "const": "settled"
      +                  }
      +                },
      +                "required": [
      +                  "state",
      +                  "charged_credits"
      +                ],
      +                "type": "object"
      +              },
      +              {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "available_credits": {
      +                    "maxLength": 64,
      +                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
      +                    "type": "string"
      +                  },
      +                  "balance_as_of": {
      +                    "format": "date-time",
      +                    "maxLength": 64,
      +                    "type": "string"
      +                  },
      +                  "charged_credits": {
      +                    "maxLength": 64,
      +                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
      +                    "type": "string"
      +                  },
      +                  "state": {
      +                    "const": "settled"
      +                  }
      +                },
      +                "required": [
      +                  "state",
      +                  "charged_credits",
      +                  "available_credits",
      +                  "balance_as_of"
      +                ],
      +                "type": "object"
      +              }
      +            ]
      +          },
      +          "created_at": {
      +            "format": "date-time",
      +            "maxLength": 64,
      +            "type": "string"
      +          },
      +          "progress": {
      +            "additionalProperties": false,
      +            "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.",
      +            "properties": {
      +              "active_steps": {
      +                "items": {
      +                  "additionalProperties": false,
      +                  "properties": {
      +                    "elapsed_seconds": {
      +                      "minimum": 0,
      +                      "type": [
      +                        "integer",
      +                        "null"
      +                      ]
      +                    },
      +                    "kind": {
      +                      "maxLength": 32,
      +                      "type": "string"
      +                    },
      +                    "started_at": {
      +                      "maxLength": 40,
      +                      "type": [
      +                        "string",
      +                        "null"
      +                      ]
      +                    },
      +                    "step_id": {
      +                      "maxLength": 128,
      +                      "type": "string"
      +                    },
      +                    "title": {
      +                      "maxLength": 120,
      +                      "type": "string"
      +                    }
      +                  },
      +                  "required": [
      +                    "step_id",
      +                    "kind",
      +                    "started_at",
      +                    "elapsed_seconds"
      +                  ],
      +                  "type": "object"
      +                },
      +                "maxItems": 5,
      +                "type": "array"
      +              },
      +              "last_step_activity_at": {
      +                "maxLength": 40,
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              },
      +              "observed_at": {
      +                "maxLength": 40,
      +                "type": "string"
      +              },
      +              "phase": {
      +                "enum": [
      +                  "queued",
      +                  "running_steps",
      +                  "between_steps",
      +                  "waiting_for_input",
      +                  "paused_insufficient_credits",
      +                  "terminal"
      +                ]
      +              },
      +              "run_elapsed_seconds": {
      +                "minimum": 0,
      +                "type": [
      +                  "integer",
      +                  "null"
      +                ]
      +              },
      +              "steps": {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "done": {
      +                    "minimum": 0,
      +                    "type": "integer"
      +                  },
      +                  "failed": {
      +                    "minimum": 0,
      +                    "type": "integer"
      +                  },
      +                  "queued": {
      +                    "minimum": 0,
      +                    "type": "integer"
      +                  },
      +                  "running": {
      +                    "minimum": 0,
      +                    "type": "integer"
      +                  },
      +                  "total": {
      +                    "minimum": 0,
      +                    "type": "integer"
      +                  },
      +                  "waiting_for_input": {
      +                    "minimum": 0,
      +                    "type": "integer"
      +                  }
      +                },
      +                "required": [
      +                  "total",
      +                  "queued",
      +                  "running",
      +                  "waiting_for_input",
      +                  "done",
      +                  "failed"
      +                ],
      +                "type": "object"
      +              }
      +            },
      +            "required": [
      +              "phase",
      +              "steps",
      +              "active_steps",
      +              "run_elapsed_seconds",
      +              "last_step_activity_at",
      +              "observed_at"
      +            ],
      +            "type": "object"
      +          },
      +          "run_id": {
      +            "maxLength": 26,
      +            "minLength": 26,
      +            "pattern": "^[0-9A-Za-z]{26}$",
      +            "type": "string"
      +          },
      +          "status": {
      +            "enum": [
      +              "failed",
      +              "cancelled"
      +            ]
      +          },
      +          "updated_at": {
      +            "format": "date-time",
      +            "maxLength": 64,
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "run_id",
      +          "status",
      +          "created_at",
      +          "updated_at",
      +          "billing"
      +        ],
      +        "type": "object"
      +      },
      +      {
      +        "additionalProperties": false,
      +        "properties": {
      +          "error": {
      +            "const": "run_not_found"
      +          }
      +        },
      +        "required": [
      +          "error"
      +        ],
      +        "type": "object"
      +      }
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "next_cursor": {
      +        "maxLength": 1024,
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "runs": {
      +        "items": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "charged_credits": {
      +              "description": "Credits charged by a finished run; null while it is active.",
      +              "maxLength": 32,
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "created_at": {
      +              "type": "string"
      +            },
      +            "recipe_id": {
      +              "type": "string"
      +            },
      +            "recipe_title": {
      +              "maxLength": 200,
      +              "type": "string"
      +            },
      +            "run_id": {
      +              "maxLength": 26,
      +              "minLength": 26,
      +              "pattern": "^[0-9A-Za-z]{26}$",
      +              "type": "string"
      +            },
      +            "status": {
      +              "enum": [
      +                "queued",
      +                "running",
      +                "done",
      +                "failed",
      +                "cancelled",
      +                "blocked"
      +              ]
      +            },
      +            "updated_at": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "run_id",
      +            "recipe_id",
      +            "recipe_title",
      +            "status",
      +            "created_at",
      +            "updated_at",
      +            "charged_credits"
      +          ],
      +          "type": "object"
      +        },
      +        "maxItems": 20,
      +        "type": "array"
      +      },
      +      "view": {
      +        "const": "history"
      +      }
      +    },
      +    "required": [
      +      "view",
      +      "runs",
      +      "next_cursor"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "basis": {
      +        "const": "UI receipt estimate versus settled charge; not an admission ceiling. Null means unavailable."
      +      },
      +      "billing": {
      +        "oneOf": [
      +          {
      +            "additionalProperties": false,
      +            "properties": {
      +              "retry_after_seconds": {
      +                "const": 2
      +              },
      +              "state": {
      +                "const": "pending"
      +              }
      +            },
      +            "required": [
      +              "state",
      +              "retry_after_seconds"
      +            ],
      +            "type": "object"
      +          },
      +          {
      +            "additionalProperties": false,
      +            "properties": {
      +              "state": {
      +                "const": "unavailable"
      +              }
      +            },
      +            "required": [
      +              "state"
      +            ],
      +            "type": "object"
      +          },
      +          {
      +            "additionalProperties": false,
      +            "properties": {
      +              "charged_credits": {
      +                "maxLength": 64,
      +                "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
      +                "type": "string"
      +              },
      +              "state": {
      +                "const": "settled"
      +              }
      +            },
      +            "required": [
      +              "state",
      +              "charged_credits"
      +            ],
      +            "type": "object"
      +          },
      +          {
      +            "additionalProperties": false,
      +            "properties": {
      +              "available_credits": {
      +                "maxLength": 64,
      +                "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
      +                "type": "string"
      +              },
      +              "balance_as_of": {
      +                "format": "date-time",
      +                "maxLength": 64,
      +                "type": "string"
      +              },
      +              "charged_credits": {
      +                "maxLength": 64,
      +                "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
      +                "type": "string"
      +              },
      +              "state": {
      +                "const": "settled"
      +              }
      +            },
      +            "required": [
      +              "state",
      +              "charged_credits",
      +              "available_credits",
      +              "balance_as_of"
      +            ],
      +            "type": "object"
      +          }
      +        ]
      +      },
      +      "receipt": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "charged_credits": {
      +            "type": [
      +              "number",
      +              "null"
      +            ]
      +          },
      +          "estimated_credits": {
      +            "type": [
      +              "number",
      +              "null"
      +            ]
      +          },
      +          "variance_pct": {
      +            "type": [
      +              "number",
      +              "null"
      +            ]
      +          }
      +        },
      +        "required": [
      +          "estimated_credits",
      +          "charged_credits",
      +          "variance_pct"
      +        ],
      +        "type": "object"
      +      },
      +      "run_id": {
      +        "maxLength": 26,
      +        "minLength": 26,
      +        "pattern": "^[0-9A-Za-z]{26}$",
      +        "type": "string"
      +      },
      +      "view": {
      +        "const": "diagnostics"
      +      }
      +    },
      +    "required": [
      +      "view",
      +      "run_id",
      +      "billing",
      +      "receipt",
      +      "basis"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "error": {
      +        "const": "invalid_history_query"
      +      }
      +    },
      +    "required": [
      +      "error"
      +    ],
      +    "type": "object"
      +  }
      +]
  3. Changed1 schema field changed
    • changedOutput schema / oneOf
      Previous value: -[
      -  {
      -    "oneOf": [
      -      {
      -        "additionalProperties": false,
      -        "properties": {
      -          "created_at": {
      -            "format": "date-time",
      -            "maxLength": 64,
      -            "type": "string"
      -          },
      -          "run_id": {
      -            "maxLength": 26,
      -            "minLength": 26,
      -            "pattern": "^[0-9A-Za-z]{26}$",
      -            "type": "string"
      -          },
      -          "status": {
      -            "enum": [
      -              "queued",
      -              "running",
      -              "blocked"
      -            ]
      -          },
      -          "updated_at": {
      -            "format": "date-time",
      -            "maxLength": 64,
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "run_id",
      -          "status",
      -          "created_at",
      -          "updated_at"
      -        ],
      -        "type": "object"
      -      },
      -      {
      -        "additionalProperties": false,
      -        "properties": {
      -          "billing": {
      -            "oneOf": [
      -              {
      -                "additionalProperties": false,
      -                "properties": {
      -                  "retry_after_seconds": {
      -                    "const": 2
      -                  },
      -                  "state": {
      -                    "const": "pending"
      -                  }
      -                },
      -                "required": [
      -                  "state",
      -                  "retry_after_seconds"
      -                ],
      -                "type": "object"
      -              },
      -              {
      -                "additionalProperties": false,
      -                "properties": {
      -                  "state": {
      -                    "const": "unavailable"
      -                  }
      -                },
      -                "required": [
      -                  "state"
      -                ],
      -                "type": "object"
      -              },
      -              {
      -                "additionalProperties": false,
      -                "properties": {
      -                  "charged_credits": {
      -                    "maxLength": 64,
      -                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
      -                    "type": "string"
      -                  },
      -                  "state": {
      -                    "const": "settled"
      -                  }
      -                },
      -                "required": [
      -                  "state",
      -                  "charged_credits"
      -                ],
      -                "type": "object"
      -              },
      -              {
      -                "additionalProperties": false,
      -                "properties": {
      -                  "available_credits": {
      -                    "maxLength": 64,
      -                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
      -                    "type": "string"
      -                  },
      -                  "balance_as_of": {
      -                    "format": "date-time",
      -                    "maxLength": 64,
      -                    "type": "string"
      -                  },
      -                  "charged_credits": {
      -                    "maxLength": 64,
      -                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
      -                    "type": "string"
      -                  },
      -                  "state": {
      -                    "const": "settled"
      -                  }
      -                },
      -                "required": [
      -                  "state",
      -                  "charged_credits",
      -                  "available_credits",
      -                  "balance_as_of"
      -                ],
      -                "type": "object"
      -              }
      -            ]
      -          },
      -          "created_at": {
      -            "format": "date-time",
      -            "maxLength": 64,
      -            "type": "string"
      -          },
      -          "results_available": {
      -            "type": "boolean"
      -          },
      -          "run_id": {
      -            "maxLength": 26,
      -            "minLength": 26,
      -            "pattern": "^[0-9A-Za-z]{26}$",
      -            "type": "string"
      -          },
      -          "status": {
      -            "const": "done"
      -          },
      -          "updated_at": {
      -            "format": "date-time",
      -            "maxLength": 64,
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "run_id",
      -          "status",
      -          "created_at",
      -          "updated_at",
      -          "results_available",
      -          "billing"
      -        ],
      -        "type": "object"
      -      },
      -      {
      -        "additionalProperties": false,
      -        "properties": {
      -          "billing": {
      -            "oneOf": [
      -              {
      -                "additionalProperties": false,
      -                "properties": {
      -                  "retry_after_seconds": {
      -                    "const": 2
      -                  },
      -                  "state": {
      -                    "const": "pending"
      -                  }
      -                },
      -                "required": [
      -                  "state",
      -                  "retry_after_seconds"
      -                ],
      -                "type": "object"
      -              },
      -              {
      -                "additionalProperties": false,
      -                "properties": {
      -                  "state": {
      -                    "const": "unavailable"
      -                  }
      -                },
      -                "required": [
      -                  "state"
      -                ],
      -                "type": "object"
      -              },
      -              {
      -                "additionalProperties": false,
      -                "properties": {
      -                  "charged_credits": {
      -                    "maxLength": 64,
      -                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
      -                    "type": "string"
      -                  },
      -                  "state": {
      -                    "const": "settled"
      -                  }
      -                },
      -                "required": [
      -                  "state",
      -                  "charged_credits"
      -                ],
      -                "type": "object"
      -              },
      -              {
      -                "additionalProperties": false,
      -                "properties": {
      -                  "available_credits": {
      -                    "maxLength": 64,
      -                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
      -                    "type": "string"
      -                  },
      -                  "balance_as_of": {
      -                    "format": "date-time",
      -                    "maxLength": 64,
      -                    "type": "string"
      -                  },
      -                  "charged_credits": {
      -                    "maxLength": 64,
      -                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
      -                    "type": "string"
      -                  },
      -                  "state": {
      -                    "const": "settled"
      -                  }
      -                },
      -                "required": [
      -                  "state",
      -                  "charged_credits",
      -                  "available_credits",
      -                  "balance_as_of"
      -                ],
      -                "type": "object"
      -              }
      -            ]
      -          },
      -          "created_at": {
      -            "format": "date-time",
      -            "maxLength": 64,
      -            "type": "string"
      -          },
      -          "run_id": {
      -            "maxLength": 26,
      -            "minLength": 26,
      -            "pattern": "^[0-9A-Za-z]{26}$",
      -            "type": "string"
      -          },
      -          "status": {
      -            "enum": [
      -              "failed",
      -              "cancelled"
      -            ]
      -          },
      -          "updated_at": {
      -            "format": "date-time",
      -            "maxLength": 64,
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "run_id",
      -          "status",
      -          "created_at",
      -          "updated_at",
      -          "billing"
      -        ],
      -        "type": "object"
      -      },
      -      {
      -        "additionalProperties": false,
      -        "properties": {
      -          "error": {
      -            "const": "run_not_found"
      -          }
      -        },
      -        "required": [
      -          "error"
      -        ],
      -        "type": "object"
      -      }
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "next_cursor": {
      -        "maxLength": 1024,
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "runs": {
      -        "items": {
      -          "additionalProperties": false,
      -          "properties": {
      -            "created_at": {
      -              "type": "string"
      -            },
      -            "recipe_id": {
      -              "type": "string"
      -            },
      -            "run_id": {
      -              "maxLength": 26,
      -              "minLength": 26,
      -              "pattern": "^[0-9A-Za-z]{26}$",
      -              "type": "string"
      -            },
      -            "status": {
      -              "enum": [
      -                "queued",
      -                "running",
      -                "done",
      -                "failed",
      -                "cancelled",
      -                "blocked"
      -              ]
      -            },
      -            "updated_at": {
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "run_id",
      -            "recipe_id",
      -            "status",
      -            "created_at",
      -            "updated_at"
      -          ],
      -          "type": "object"
      -        },
      -        "maxItems": 20,
      -        "type": "array"
      -      },
      -      "view": {
      -        "const": "history"
      -      }
      -    },
      -    "required": [
      -      "view",
      -      "runs",
      -      "next_cursor"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "basis": {
      -        "const": "UI receipt estimate versus settled charge; not an admission ceiling. Null means unavailable."
      -      },
      -      "billing": {
      -        "oneOf": [
      -          {
      -            "additionalProperties": false,
      -            "properties": {
      -              "retry_after_seconds": {
      -                "const": 2
      -              },
      -              "state": {
      -                "const": "pending"
      -              }
      -            },
      -            "required": [
      -              "state",
      -              "retry_after_seconds"
      -            ],
      -            "type": "object"
      -          },
      -          {
      -            "additionalProperties": false,
      -            "properties": {
      -              "state": {
      -                "const": "unavailable"
      -              }
      -            },
      -            "required": [
      -              "state"
      -            ],
      -            "type": "object"
      -          },
      -          {
      -            "additionalProperties": false,
      -            "properties": {
      -              "charged_credits": {
      -                "maxLength": 64,
      -                "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
      -                "type": "string"
      -              },
      -              "state": {
      -                "const": "settled"
      -              }
      -            },
      -            "required": [
      -              "state",
      -              "charged_credits"
      -            ],
      -            "type": "object"
      -          },
      -          {
      -            "additionalProperties": false,
      -            "properties": {
      -              "available_credits": {
      -                "maxLength": 64,
      -                "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
      -                "type": "string"
      -              },
      -              "balance_as_of": {
      -                "format": "date-time",
      -                "maxLength": 64,
      -                "type": "string"
      -              },
      -              "charged_credits": {
      -                "maxLength": 64,
      -                "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
      -                "type": "string"
      -              },
      -              "state": {
      -                "const": "settled"
      -              }
      -            },
      -            "required": [
      -              "state",
      -              "charged_credits",
      -              "available_credits",
      -              "balance_as_of"
      -            ],
      -            "type": "object"
      -          }
      -        ]
      -      },
      -      "receipt": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "charged_credits": {
      -            "type": [
      -              "number",
      -              "null"
      -            ]
      -          },
      -          "estimated_credits": {
      -            "type": [
      -              "number",
      -              "null"
      -            ]
      -          },
      -          "variance_pct": {
      -            "type": [
      -              "number",
      -              "null"
      -            ]
      -          }
      -        },
      -        "required": [
      -          "estimated_credits",
      -          "charged_credits",
      -          "variance_pct"
      -        ],
      -        "type": "object"
      -      },
      -      "run_id": {
      -        "maxLength": 26,
      -        "minLength": 26,
      -        "pattern": "^[0-9A-Za-z]{26}$",
      -        "type": "string"
      -      },
      -      "view": {
      -        "const": "diagnostics"
      -      }
      -    },
      -    "required": [
      -      "view",
      -      "run_id",
      -      "billing",
      -      "receipt",
      -      "basis"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "error": {
      -        "const": "invalid_history_query"
      -      }
      -    },
      -    "required": [
      -      "error"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "oneOf": [
      +      {
      +        "additionalProperties": false,
      +        "properties": {
      +          "created_at": {
      +            "format": "date-time",
      +            "maxLength": 64,
      +            "type": "string"
      +          },
      +          "credit_pause": {
      +            "additionalProperties": false,
      +            "description": "The run paused because a step could not reserve credits. It resumes from the StewAI web app after credits are added.",
      +            "properties": {
      +              "available_credits": {
      +                "maxLength": 32,
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              },
      +              "required_credits": {
      +                "maxLength": 32,
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              },
      +              "resumable": {
      +                "const": true
      +              }
      +            },
      +            "required": [
      +              "required_credits",
      +              "available_credits",
      +              "resumable"
      +            ],
      +            "type": "object"
      +          },
      +          "progress": {
      +            "additionalProperties": false,
      +            "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.",
      +            "properties": {
      +              "active_steps": {
      +                "items": {
      +                  "additionalProperties": false,
      +                  "properties": {
      +                    "elapsed_seconds": {
      +                      "minimum": 0,
      +                      "type": [
      +                        "integer",
      +                        "null"
      +                      ]
      +                    },
      +                    "kind": {
      +                      "maxLength": 32,
      +                      "type": "string"
      +                    },
      +                    "started_at": {
      +                      "maxLength": 40,
      +                      "type": [
      +                        "string",
      +                        "null"
      +                      ]
      +                    },
      +                    "step_id": {
      +                      "maxLength": 128,
      +                      "type": "string"
      +                    },
      +                    "title": {
      +                      "maxLength": 120,
      +                      "type": "string"
      +                    }
      +                  },
      +                  "required": [
      +                    "step_id",
      +                    "kind",
      +                    "started_at",
      +                    "elapsed_seconds"
      +                  ],
      +                  "type": "object"
      +                },
      +                "maxItems": 5,
      +                "type": "array"
      +              },
      +              "last_step_activity_at": {
      +                "maxLength": 40,
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              },
      +              "observed_at": {
      +                "maxLength": 40,
      +                "type": "string"
      +              },
      +              "phase": {
      +                "enum": [
      +                  "queued",
      +                  "running_steps",
      +                  "between_steps",
      +                  "waiting_for_input",
      +                  "paused_insufficient_credits",
      +                  "terminal"
      +                ]
      +              },
      +              "run_elapsed_seconds": {
      +                "minimum": 0,
      +                "type": [
      +                  "integer",
      +                  "null"
      +                ]
      +              },
      +              "steps": {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "done": {
      +                    "minimum": 0,
      +                    "type": "integer"
      +                  },
      +                  "failed": {
      +                    "minimum": 0,
      +                    "type": "integer"
      +                  },
      +                  "queued": {
      +                    "minimum": 0,
      +                    "type": "integer"
      +                  },
      +                  "running": {
      +                    "minimum": 0,
      +                    "type": "integer"
      +                  },
      +                  "total": {
      +                    "minimum": 0,
      +                    "type": "integer"
      +                  },
      +                  "waiting_for_input": {
      +                    "minimum": 0,
      +                    "type": "integer"
      +                  }
      +                },
      +                "required": [
      +                  "total",
      +                  "queued",
      +                  "running",
      +                  "waiting_for_input",
      +                  "done",
      +                  "failed"
      +                ],
      +                "type": "object"
      +              }
      +            },
      +            "required": [
      +              "phase",
      +              "steps",
      +              "active_steps",
      +              "run_elapsed_seconds",
      +              "last_step_activity_at",
      +              "observed_at"
      +            ],
      +            "type": "object"
      +          },
      +          "run_id": {
      +            "maxLength": 26,
      +            "minLength": 26,
      +            "pattern": "^[0-9A-Za-z]{26}$",
      +            "type": "string"
      +          },
      +          "status": {
      +            "enum": [
      +              "queued",
      +              "running",
      +              "blocked"
      +            ]
      +          },
      +          "updated_at": {
      +            "format": "date-time",
      +            "maxLength": 64,
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "run_id",
      +          "status",
      +          "created_at",
      +          "updated_at"
      +        ],
      +        "type": "object"
      +      },
      +      {
      +        "additionalProperties": false,
      +        "properties": {
      +          "billing": {
      +            "oneOf": [
      +              {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "retry_after_seconds": {
      +                    "const": 2
      +                  },
      +                  "state": {
      +                    "const": "pending"
      +                  }
      +                },
      +                "required": [
      +                  "state",
      +                  "retry_after_seconds"
      +                ],
      +                "type": "object"
      +              },
      +              {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "state": {
      +                    "const": "unavailable"
      +                  }
      +                },
      +                "required": [
      +                  "state"
      +                ],
      +                "type": "object"
      +              },
      +              {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "charged_credits": {
      +                    "maxLength": 64,
      +                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
      +                    "type": "string"
      +                  },
      +                  "state": {
      +                    "const": "settled"
      +                  }
      +                },
      +                "required": [
      +                  "state",
      +                  "charged_credits"
      +                ],
      +                "type": "object"
      +              },
      +              {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "available_credits": {
      +                    "maxLength": 64,
      +                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
      +                    "type": "string"
      +                  },
      +                  "balance_as_of": {
      +                    "format": "date-time",
      +                    "maxLength": 64,
      +                    "type": "string"
      +                  },
      +                  "charged_credits": {
      +                    "maxLength": 64,
      +                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
      +                    "type": "string"
      +                  },
      +                  "state": {
      +                    "const": "settled"
      +                  }
      +                },
      +                "required": [
      +                  "state",
      +                  "charged_credits",
      +                  "available_credits",
      +                  "balance_as_of"
      +                ],
      +                "type": "object"
      +              }
      +            ]
      +          },
      +          "created_at": {
      +            "format": "date-time",
      +            "maxLength": 64,
      +            "type": "string"
      +          },
      +          "progress": {
      +            "additionalProperties": false,
      +            "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.",
      +            "properties": {
      +              "active_steps": {
      +                "items": {
      +                  "additionalProperties": false,
      +                  "properties": {
      +                    "elapsed_seconds": {
      +                      "minimum": 0,
      +                      "type": [
      +                        "integer",
      +                        "null"
      +                      ]
      +                    },
      +                    "kind": {
      +                      "maxLength": 32,
      +                      "type": "string"
      +                    },
      +                    "started_at": {
      +                      "maxLength": 40,
      +                      "type": [
      +                        "string",
      +                        "null"
      +                      ]
      +                    },
      +                    "step_id": {
      +                      "maxLength": 128,
      +                      "type": "string"
      +                    },
      +                    "title": {
      +                      "maxLength": 120,
      +                      "type": "string"
      +                    }
      +                  },
      +                  "required": [
      +                    "step_id",
      +                    "kind",
      +                    "started_at",
      +                    "elapsed_seconds"
      +                  ],
      +                  "type": "object"
      +                },
      +                "maxItems": 5,
      +                "type": "array"
      +              },
      +              "last_step_activity_at": {
      +                "maxLength": 40,
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              },
      +              "observed_at": {
      +                "maxLength": 40,
      +                "type": "string"
      +              },
      +              "phase": {
      +                "enum": [
      +                  "queued",
      +                  "running_steps",
      +                  "between_steps",
      +                  "waiting_for_input",
      +                  "paused_insufficient_credits",
      +                  "terminal"
      +                ]
      +              },
      +              "run_elapsed_seconds": {
      +                "minimum": 0,
      +                "type": [
      +                  "integer",
      +                  "null"
      +                ]
      +              },
      +              "steps": {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "done": {
      +                    "minimum": 0,
      +                    "type": "integer"
      +                  },
      +                  "failed": {
      +                    "minimum": 0,
      +                    "type": "integer"
      +                  },
      +                  "queued": {
      +                    "minimum": 0,
      +                    "type": "integer"
      +                  },
      +                  "running": {
      +                    "minimum": 0,
      +                    "type": "integer"
      +                  },
      +                  "total": {
      +                    "minimum": 0,
      +                    "type": "integer"
      +                  },
      +                  "waiting_for_input": {
      +                    "minimum": 0,
      +                    "type": "integer"
      +                  }
      +                },
      +                "required": [
      +                  "total",
      +                  "queued",
      +                  "running",
      +                  "waiting_for_input",
      +                  "done",
      +                  "failed"
      +                ],
      +                "type": "object"
      +              }
      +            },
      +            "required": [
      +              "phase",
      +              "steps",
      +              "active_steps",
      +              "run_elapsed_seconds",
      +              "last_step_activity_at",
      +              "observed_at"
      +            ],
      +            "type": "object"
      +          },
      +          "results_available": {
      +            "type": "boolean"
      +          },
      +          "run_id": {
      +            "maxLength": 26,
      +            "minLength": 26,
      +            "pattern": "^[0-9A-Za-z]{26}$",
      +            "type": "string"
      +          },
      +          "status": {
      +            "const": "done"
      +          },
      +          "updated_at": {
      +            "format": "date-time",
      +            "maxLength": 64,
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "run_id",
      +          "status",
      +          "created_at",
      +          "updated_at",
      +          "results_available",
      +          "billing"
      +        ],
      +        "type": "object"
      +      },
      +      {
      +        "additionalProperties": false,
      +        "properties": {
      +          "billing": {
      +            "oneOf": [
      +              {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "retry_after_seconds": {
      +                    "const": 2
      +                  },
      +                  "state": {
      +                    "const": "pending"
      +                  }
      +                },
      +                "required": [
      +                  "state",
      +                  "retry_after_seconds"
      +                ],
      +                "type": "object"
      +              },
      +              {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "state": {
      +                    "const": "unavailable"
      +                  }
      +                },
      +                "required": [
      +                  "state"
      +                ],
      +                "type": "object"
      +              },
      +              {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "charged_credits": {
      +                    "maxLength": 64,
      +                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
      +                    "type": "string"
      +                  },
      +                  "state": {
      +                    "const": "settled"
      +                  }
      +                },
      +                "required": [
      +                  "state",
      +                  "charged_credits"
      +                ],
      +                "type": "object"
      +              },
      +              {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "available_credits": {
      +                    "maxLength": 64,
      +                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
      +                    "type": "string"
      +                  },
      +                  "balance_as_of": {
      +                    "format": "date-time",
      +                    "maxLength": 64,
      +                    "type": "string"
      +                  },
      +                  "charged_credits": {
      +                    "maxLength": 64,
      +                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
      +                    "type": "string"
      +                  },
      +                  "state": {
      +                    "const": "settled"
      +                  }
      +                },
      +                "required": [
      +                  "state",
      +                  "charged_credits",
      +                  "available_credits",
      +                  "balance_as_of"
      +                ],
      +                "type": "object"
      +              }
      +            ]
      +          },
      +          "created_at": {
      +            "format": "date-time",
      +            "maxLength": 64,
      +            "type": "string"
      +          },
      +          "progress": {
      +            "additionalProperties": false,
      +            "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.",
      +            "properties": {
      +              "active_steps": {
      +                "items": {
      +                  "additionalProperties": false,
      +                  "properties": {
      +                    "elapsed_seconds": {
      +                      "minimum": 0,
      +                      "type": [
      +                        "integer",
      +                        "null"
      +                      ]
      +                    },
      +                    "kind": {
      +                      "maxLength": 32,
      +                      "type": "string"
      +                    },
      +                    "started_at": {
      +                      "maxLength": 40,
      +                      "type": [
      +                        "string",
      +                        "null"
      +                      ]
      +                    },
      +                    "step_id": {
      +                      "maxLength": 128,
      +                      "type": "string"
      +                    },
      +                    "title": {
      +                      "maxLength": 120,
      +                      "type": "string"
      +                    }
      +                  },
      +                  "required": [
      +                    "step_id",
      +                    "kind",
      +                    "started_at",
      +                    "elapsed_seconds"
      +                  ],
      +                  "type": "object"
      +                },
      +                "maxItems": 5,
      +                "type": "array"
      +              },
      +              "last_step_activity_at": {
      +                "maxLength": 40,
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              },
      +              "observed_at": {
      +                "maxLength": 40,
      +                "type": "string"
      +              },
      +              "phase": {
      +                "enum": [
      +                  "queued",
      +                  "running_steps",
      +                  "between_steps",
      +                  "waiting_for_input",
      +                  "paused_insufficient_credits",
      +                  "terminal"
      +                ]
      +              },
      +              "run_elapsed_seconds": {
      +                "minimum": 0,
      +                "type": [
      +                  "integer",
      +                  "null"
      +                ]
      +              },
      +              "steps": {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "done": {
      +                    "minimum": 0,
      +                    "type": "integer"
      +                  },
      +                  "failed": {
      +                    "minimum": 0,
      +                    "type": "integer"
      +                  },
      +                  "queued": {
      +                    "minimum": 0,
      +                    "type": "integer"
      +                  },
      +                  "running": {
      +                    "minimum": 0,
      +                    "type": "integer"
      +                  },
      +                  "total": {
      +                    "minimum": 0,
      +                    "type": "integer"
      +                  },
      +                  "waiting_for_input": {
      +                    "minimum": 0,
      +                    "type": "integer"
      +                  }
      +                },
      +                "required": [
      +                  "total",
      +                  "queued",
      +                  "running",
      +                  "waiting_for_input",
      +                  "done",
      +                  "failed"
      +                ],
      +                "type": "object"
      +              }
      +            },
      +            "required": [
      +              "phase",
      +              "steps",
      +              "active_steps",
      +              "run_elapsed_seconds",
      +              "last_step_activity_at",
      +              "observed_at"
      +            ],
      +            "type": "object"
      +          },
      +          "run_id": {
      +            "maxLength": 26,
      +            "minLength": 26,
      +            "pattern": "^[0-9A-Za-z]{26}$",
      +            "type": "string"
      +          },
      +          "status": {
      +            "enum": [
      +              "failed",
      +              "cancelled"
      +            ]
      +          },
      +          "updated_at": {
      +            "format": "date-time",
      +            "maxLength": 64,
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "run_id",
      +          "status",
      +          "created_at",
      +          "updated_at",
      +          "billing"
      +        ],
      +        "type": "object"
      +      },
      +      {
      +        "additionalProperties": false,
      +        "properties": {
      +          "error": {
      +            "const": "run_not_found"
      +          }
      +        },
      +        "required": [
      +          "error"
      +        ],
      +        "type": "object"
      +      }
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "next_cursor": {
      +        "maxLength": 1024,
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "runs": {
      +        "items": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "created_at": {
      +              "type": "string"
      +            },
      +            "recipe_id": {
      +              "type": "string"
      +            },
      +            "run_id": {
      +              "maxLength": 26,
      +              "minLength": 26,
      +              "pattern": "^[0-9A-Za-z]{26}$",
      +              "type": "string"
      +            },
      +            "status": {
      +              "enum": [
      +                "queued",
      +                "running",
      +                "done",
      +                "failed",
      +                "cancelled",
      +                "blocked"
      +              ]
      +            },
      +            "updated_at": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "run_id",
      +            "recipe_id",
      +            "status",
      +            "created_at",
      +            "updated_at"
      +          ],
      +          "type": "object"
      +        },
      +        "maxItems": 20,
      +        "type": "array"
      +      },
      +      "view": {
      +        "const": "history"
      +      }
      +    },
      +    "required": [
      +      "view",
      +      "runs",
      +      "next_cursor"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "basis": {
      +        "const": "UI receipt estimate versus settled charge; not an admission ceiling. Null means unavailable."
      +      },
      +      "billing": {
      +        "oneOf": [
      +          {
      +            "additionalProperties": false,
      +            "properties": {
      +              "retry_after_seconds": {
      +                "const": 2
      +              },
      +              "state": {
      +                "const": "pending"
      +              }
      +            },
      +            "required": [
      +              "state",
      +              "retry_after_seconds"
      +            ],
      +            "type": "object"
      +          },
      +          {
      +            "additionalProperties": false,
      +            "properties": {
      +              "state": {
      +                "const": "unavailable"
      +              }
      +            },
      +            "required": [
      +              "state"
      +            ],
      +            "type": "object"
      +          },
      +          {
      +            "additionalProperties": false,
      +            "properties": {
      +              "charged_credits": {
      +                "maxLength": 64,
      +                "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
      +                "type": "string"
      +              },
      +              "state": {
      +                "const": "settled"
      +              }
      +            },
      +            "required": [
      +              "state",
      +              "charged_credits"
      +            ],
      +            "type": "object"
      +          },
      +          {
      +            "additionalProperties": false,
      +            "properties": {
      +              "available_credits": {
      +                "maxLength": 64,
      +                "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
      +                "type": "string"
      +              },
      +              "balance_as_of": {
      +                "format": "date-time",
      +                "maxLength": 64,
      +                "type": "string"
      +              },
      +              "charged_credits": {
      +                "maxLength": 64,
      +                "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
      +                "type": "string"
      +              },
      +              "state": {
      +                "const": "settled"
      +              }
      +            },
      +            "required": [
      +              "state",
      +              "charged_credits",
      +              "available_credits",
      +              "balance_as_of"
      +            ],
      +            "type": "object"
      +          }
      +        ]
      +      },
      +      "receipt": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "charged_credits": {
      +            "type": [
      +              "number",
      +              "null"
      +            ]
      +          },
      +          "estimated_credits": {
      +            "type": [
      +              "number",
      +              "null"
      +            ]
      +          },
      +          "variance_pct": {
      +            "type": [
      +              "number",
      +              "null"
      +            ]
      +          }
      +        },
      +        "required": [
      +          "estimated_credits",
      +          "charged_credits",
      +          "variance_pct"
      +        ],
      +        "type": "object"
      +      },
      +      "run_id": {
      +        "maxLength": 26,
      +        "minLength": 26,
      +        "pattern": "^[0-9A-Za-z]{26}$",
      +        "type": "string"
      +      },
      +      "view": {
      +        "const": "diagnostics"
      +      }
      +    },
      +    "required": [
      +      "view",
      +      "run_id",
      +      "billing",
      +      "receipt",
      +      "basis"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "error": {
      +        "const": "invalid_history_query"
      +      }
      +    },
      +    "required": [
      +      "error"
      +    ],
      +    "type": "object"
      +  }
      +]
  4. First observed

TDQS

A4.1/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already cover the read-only/idempotent/non-destructive profile, yet the description adds real behavioral context beyond them: the meaning of updated_at vs progress.last_step_activity_at, and that a blocked run paused for credits reports credit_pause. It still doesn't note pagination behavior or freshness/consistency guarantees.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loads the purpose ('Read an owned run') and then layers view routing followed by field semantics. Dense but each clause carries information; the parenthetical field list and the updated_at/last_step_activity_at glosses are all load-bearing rather than filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return shape needn't be spelled out, and the description still explains key fields. The notable gap is that it claims the default status view 'requires run_id' while the schema marks no parameters required, a mild spec/description mismatch the agent must reconcile.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% across 6 parameters, so the description must carry the load. It usefully maps recipe_ref/status/cursor/limit to the history view and run_id to the default status view, and explains the 'blocked' enum state via credit_pause, but leaves limit bounds (max 20), cursor format/lifetime, and the remaining enum semantics unexplained.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Read an owned run') and immediately differentiates the three operating modes (status/history/diagnostics) with what each returns. An agent can distinguish it from sibling recipe-build tools without opening the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives conditional routing for the views: view=history 'to resume normal runs', view=diagnostics for the 'settled UI receipt', and the default status path including live progress. It does not state when to prefer this tool over siblings like get_results or get_recipe_build_activity, so it stops short of explicit alternatives.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources