{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "title": "do response",
  "type": "object",
  "properties": {
    "domlId": { "type": "string" },
    "title": { "type": "string" },
    "status": { "type": "string", "enum": ["ok", "error", "timed_out"] },
    "outputs": {
      "type": "array",
      "description": "Plain step outputs, in execution order.",
      "items": {}
    },
    "proposedActions": {
      "type": "array",
      "description": "Writes for the caller to perform — the DO never writes externally itself. Empty when the DO has no write steps.",
      "items": { "type": "object" }
    },
    "error": {
      "type": "string",
      "description": "Present only on failure (e.g. \"execution_failed\")."
    },
    "message": {
      "type": "string",
      "description": "Present only on failure — a sanitized run/validation error."
    }
  },
  "required": ["domlId", "title", "status"]
}
