{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "urn:scopeai:geo-agent-profile:0.1-draft:messages",
  "title": "GEO Agent Service Profile 0.1-draft messages",
  "description": "Draft domain contract. Structural validity is not proof of authorization, service availability or real evidence.",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/scopeai-cc-openapi.json#/components/schemas/AgentMessage",
  "oneOf": [
    {
      "type": "object",
      "properties": {
        "profile": {
          "const": "geo-agent-service"
        },
        "profile_version": {
          "const": "0.1-draft"
        },
        "message_type": {
          "const": "service_manifest"
        },
        "synthetic": {
          "type": "boolean"
        },
        "payload": {
          "$ref": "#/$defs/Manifest"
        }
      },
      "required": [
        "profile",
        "profile_version",
        "message_type",
        "payload"
      ],
      "additionalProperties": false
    },
    {
      "type": "object",
      "properties": {
        "profile": {
          "const": "geo-agent-service"
        },
        "profile_version": {
          "const": "0.1-draft"
        },
        "message_type": {
          "const": "match_request"
        },
        "synthetic": {
          "type": "boolean"
        },
        "payload": {
          "$ref": "#/$defs/MatchRequest"
        }
      },
      "required": [
        "profile",
        "profile_version",
        "message_type",
        "payload"
      ],
      "additionalProperties": false
    },
    {
      "type": "object",
      "properties": {
        "profile": {
          "const": "geo-agent-service"
        },
        "profile_version": {
          "const": "0.1-draft"
        },
        "message_type": {
          "const": "match_result"
        },
        "synthetic": {
          "type": "boolean"
        },
        "payload": {
          "$ref": "#/$defs/MatchResult"
        }
      },
      "required": [
        "profile",
        "profile_version",
        "message_type",
        "payload"
      ],
      "additionalProperties": false
    },
    {
      "type": "object",
      "properties": {
        "profile": {
          "const": "geo-agent-service"
        },
        "profile_version": {
          "const": "0.1-draft"
        },
        "message_type": {
          "const": "assessment_request"
        },
        "synthetic": {
          "type": "boolean"
        },
        "payload": {
          "$ref": "#/$defs/AssessmentRequest"
        }
      },
      "required": [
        "profile",
        "profile_version",
        "message_type",
        "payload"
      ],
      "additionalProperties": false
    },
    {
      "type": "object",
      "properties": {
        "profile": {
          "const": "geo-agent-service"
        },
        "profile_version": {
          "const": "0.1-draft"
        },
        "message_type": {
          "const": "quote"
        },
        "synthetic": {
          "type": "boolean"
        },
        "payload": {
          "$ref": "#/$defs/Quote"
        }
      },
      "required": [
        "profile",
        "profile_version",
        "message_type",
        "payload"
      ],
      "additionalProperties": false
    },
    {
      "type": "object",
      "properties": {
        "profile": {
          "const": "geo-agent-service"
        },
        "profile_version": {
          "const": "0.1-draft"
        },
        "message_type": {
          "const": "accept_quote"
        },
        "synthetic": {
          "type": "boolean"
        },
        "payload": {
          "$ref": "#/$defs/AcceptQuote"
        }
      },
      "required": [
        "profile",
        "profile_version",
        "message_type",
        "payload"
      ],
      "additionalProperties": false
    },
    {
      "type": "object",
      "properties": {
        "profile": {
          "const": "geo-agent-service"
        },
        "profile_version": {
          "const": "0.1-draft"
        },
        "message_type": {
          "const": "task"
        },
        "synthetic": {
          "type": "boolean"
        },
        "payload": {
          "$ref": "#/$defs/Task"
        }
      },
      "required": [
        "profile",
        "profile_version",
        "message_type",
        "payload"
      ],
      "additionalProperties": false
    },
    {
      "type": "object",
      "properties": {
        "profile": {
          "const": "geo-agent-service"
        },
        "profile_version": {
          "const": "0.1-draft"
        },
        "message_type": {
          "const": "assessment_result"
        },
        "synthetic": {
          "type": "boolean"
        },
        "payload": {
          "$ref": "#/$defs/AssessmentResult"
        }
      },
      "required": [
        "profile",
        "profile_version",
        "message_type",
        "payload"
      ],
      "additionalProperties": false
    },
    {
      "type": "object",
      "properties": {
        "profile": {
          "const": "geo-agent-service"
        },
        "profile_version": {
          "const": "0.1-draft"
        },
        "message_type": {
          "const": "change_package"
        },
        "synthetic": {
          "type": "boolean"
        },
        "payload": {
          "$ref": "#/$defs/ChangePackage"
        }
      },
      "required": [
        "profile",
        "profile_version",
        "message_type",
        "payload"
      ],
      "additionalProperties": false
    },
    {
      "type": "object",
      "properties": {
        "profile": {
          "const": "geo-agent-service"
        },
        "profile_version": {
          "const": "0.1-draft"
        },
        "message_type": {
          "const": "execution_receipt"
        },
        "synthetic": {
          "type": "boolean"
        },
        "payload": {
          "$ref": "#/$defs/ExecutionReceipt"
        }
      },
      "required": [
        "profile",
        "profile_version",
        "message_type",
        "payload"
      ],
      "additionalProperties": false
    },
    {
      "type": "object",
      "properties": {
        "profile": {
          "const": "geo-agent-service"
        },
        "profile_version": {
          "const": "0.1-draft"
        },
        "message_type": {
          "const": "comparison"
        },
        "synthetic": {
          "type": "boolean"
        },
        "payload": {
          "$ref": "#/$defs/Comparison"
        }
      },
      "required": [
        "profile",
        "profile_version",
        "message_type",
        "payload"
      ],
      "additionalProperties": false
    },
    {
      "type": "object",
      "properties": {
        "profile": {
          "const": "geo-agent-service"
        },
        "profile_version": {
          "const": "0.1-draft"
        },
        "message_type": {
          "const": "error"
        },
        "synthetic": {
          "type": "boolean"
        },
        "payload": {
          "$ref": "#/$defs/Error"
        }
      },
      "required": [
        "profile",
        "profile_version",
        "message_type",
        "payload"
      ],
      "additionalProperties": false
    }
  ],
  "$defs": {
    "AcceptQuote": {
      "type": "object",
      "description": "Referenced by this document but never defined in it. API Evangelist added this empty placeholder so the document resolves; the shape is unknown and is NOT a claim about the API.",
      "x-ae-placeholder": true
    },
    "AssessmentRequest": {
      "type": "object",
      "description": "Referenced by this document but never defined in it. API Evangelist added this empty placeholder so the document resolves; the shape is unknown and is NOT a claim about the API.",
      "x-ae-placeholder": true
    },
    "AssessmentResult": {
      "type": "object",
      "description": "Referenced by this document but never defined in it. API Evangelist added this empty placeholder so the document resolves; the shape is unknown and is NOT a claim about the API.",
      "x-ae-placeholder": true
    },
    "Auth": {
      "type": "object",
      "description": "Referenced by this document but never defined in it. API Evangelist added this empty placeholder so the document resolves; the shape is unknown and is NOT a claim about the API.",
      "x-ae-placeholder": true
    },
    "Billing": {
      "type": "object",
      "description": "Referenced by this document but never defined in it. API Evangelist added this empty placeholder so the document resolves; the shape is unknown and is NOT a claim about the API.",
      "x-ae-placeholder": true
    },
    "Budget": {
      "type": "object",
      "description": "Referenced by this document but never defined in it. API Evangelist added this empty placeholder so the document resolves; the shape is unknown and is NOT a claim about the API.",
      "x-ae-placeholder": true
    },
    "Capability": {
      "type": "object",
      "description": "Referenced by this document but never defined in it. API Evangelist added this empty placeholder so the document resolves; the shape is unknown and is NOT a claim about the API.",
      "x-ae-placeholder": true
    },
    "ChangePackage": {
      "type": "object",
      "description": "Referenced by this document but never defined in it. API Evangelist added this empty placeholder so the document resolves; the shape is unknown and is NOT a claim about the API.",
      "x-ae-placeholder": true
    },
    "Citation": {
      "type": "object",
      "description": "Referenced by this document but never defined in it. API Evangelist added this empty placeholder so the document resolves; the shape is unknown and is NOT a claim about the API.",
      "x-ae-placeholder": true
    },
    "Comparison": {
      "type": "object",
      "description": "Referenced by this document but never defined in it. API Evangelist added this empty placeholder so the document resolves; the shape is unknown and is NOT a claim about the API.",
      "x-ae-placeholder": true
    },
    "Diagnosis": {
      "type": "object",
      "description": "Referenced by this document but never defined in it. API Evangelist added this empty placeholder so the document resolves; the shape is unknown and is NOT a claim about the API.",
      "x-ae-placeholder": true
    },
    "Error": {
      "type": "object",
      "required": [
        "error"
      ],
      "properties": {
        "error": {
          "type": "object",
          "required": [
            "code",
            "message",
            "request_id"
          ],
          "properties": {
            "code": {
              "type": "string"
            },
            "message": {
              "type": "string"
            },
            "request_id": {
              "type": "string"
            },
            "details": {
              "type": "object",
              "additionalProperties": true
            }
          }
        }
      }
    },
    "ExecutionReceipt": {
      "type": "object",
      "description": "Referenced by this document but never defined in it. API Evangelist added this empty placeholder so the document resolves; the shape is unknown and is NOT a claim about the API.",
      "x-ae-placeholder": true
    },
    "Extensions": {
      "type": "object",
      "description": "Referenced by this document but never defined in it. API Evangelist added this empty placeholder so the document resolves; the shape is unknown and is NOT a claim about the API.",
      "x-ae-placeholder": true
    },
    "Interface": {
      "type": "object",
      "description": "Referenced by this document but never defined in it. API Evangelist added this empty placeholder so the document resolves; the shape is unknown and is NOT a claim about the API.",
      "x-ae-placeholder": true
    },
    "Manifest": {
      "type": "object",
      "description": "Referenced by this document but never defined in it. API Evangelist added this empty placeholder so the document resolves; the shape is unknown and is NOT a claim about the API.",
      "x-ae-placeholder": true
    },
    "MatchRequest": {
      "type": "object",
      "description": "Referenced by this document but never defined in it. API Evangelist added this empty placeholder so the document resolves; the shape is unknown and is NOT a claim about the API.",
      "x-ae-placeholder": true
    },
    "MatchResult": {
      "type": "object",
      "description": "Referenced by this document but never defined in it. API Evangelist added this empty placeholder so the document resolves; the shape is unknown and is NOT a claim about the API.",
      "x-ae-placeholder": true
    },
    "Money": {
      "type": "object",
      "description": "Referenced by this document but never defined in it. API Evangelist added this empty placeholder so the document resolves; the shape is unknown and is NOT a claim about the API.",
      "x-ae-placeholder": true
    },
    "Observation": {
      "type": "object",
      "description": "Referenced by this document but never defined in it. API Evangelist added this empty placeholder so the document resolves; the shape is unknown and is NOT a claim about the API.",
      "x-ae-placeholder": true
    },
    "PaidQuoteInput": {
      "type": "object",
      "properties": {
        "project_id": {
          "type": "string",
          "format": "uuid",
          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
        },
        "revision": {
          "type": "integer",
          "exclusiveMinimum": 0,
          "maximum": 9007199254740991
        },
        "product": {
          "type": "string",
          "enum": [
            "geo.research.standard",
            "geo.measurement.standard",
            "geo.article.standard"
          ]
        },
        "target_id": {
          "type": "string",
          "enum": [
            "public-source-research",
            "deepseek-model-api",
            "doubao-web-search-api",
            "scopeai-article-draft"
          ]
        },
        "source_check_id": {
          "type": "string",
          "format": "uuid",
          "description": "geo.article.standard 必填；本项目已完成且已结算的观察或模型回答采样 ID"
        },
        "questions": {
          "default": [],
          "maxItems": 20,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 4,
            "maxLength": 500
          }
        },
        "repeats": {
          "default": 1,
          "type": "integer",
          "minimum": 1,
          "maximum": 5
        },
        "max_unit_cents": {
          "type": "integer",
          "minimum": 0,
          "maximum": 10000
        }
      },
      "required": [
        "project_id",
        "revision",
        "product",
        "target_id",
        "questions",
        "repeats",
        "max_unit_cents"
      ],
      "additionalProperties": false
    },
    "Progress": {
      "type": "object",
      "description": "Referenced by this document but never defined in it. API Evangelist added this empty placeholder so the document resolves; the shape is unknown and is NOT a claim about the API.",
      "x-ae-placeholder": true
    },
    "Provider": {
      "type": "object",
      "description": "Referenced by this document but never defined in it. API Evangelist added this empty placeholder so the document resolves; the shape is unknown and is NOT a claim about the API.",
      "x-ae-placeholder": true
    },
    "Question": {
      "type": "object",
      "description": "Referenced by this document but never defined in it. API Evangelist added this empty placeholder so the document resolves; the shape is unknown and is NOT a claim about the API.",
      "x-ae-placeholder": true
    },
    "Quote": {
      "type": "object",
      "properties": {
        "data": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "format": "uuid"
            },
            "amount_cents": {
              "type": "integer"
            },
            "unit_price_cents": {
              "type": "integer"
            },
            "units": {
              "type": "integer"
            },
            "price_version": {
              "type": "string"
            },
            "expires_at": {
              "type": "string",
              "format": "date-time"
            },
            "target": {
              "$ref": "#/$defs/Target"
            },
            "input": {
              "$ref": "#/$defs/PaidQuoteInput"
            }
          },
          "required": [
            "id",
            "amount_cents",
            "unit_price_cents",
            "units",
            "price_version",
            "expires_at"
          ],
          "additionalProperties": true
        },
        "meta": {
          "type": "object",
          "properties": {
            "request_id": {
              "type": "string",
              "format": "uuid"
            },
            "next_cursor": {
              "type": [
                "string",
                "null"
              ]
            }
          },
          "required": [
            "request_id"
          ],
          "additionalProperties": true
        }
      },
      "required": [
        "data",
        "meta"
      ],
      "additionalProperties": false
    },
    "Target": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "product": {
          "enum": [
            "geo.research.standard",
            "geo.measurement.standard",
            "geo.article.standard"
          ]
        },
        "label": {
          "type": "string"
        },
        "channel": {
          "enum": [
            "public_sources",
            "model_api",
            "private_draft"
          ]
        },
        "model": {
          "type": "string"
        },
        "enabled": {
          "type": "boolean"
        },
        "price_version": {
          "type": "string"
        },
        "unit_price_cents": {
          "type": "integer",
          "minimum": 1
        },
        "measurement": {
          "type": "boolean"
        },
        "search_mode": {
          "type": "string"
        },
        "scope": {
          "type": "string"
        }
      },
      "required": [
        "id",
        "product",
        "label",
        "channel",
        "model",
        "enabled",
        "price_version",
        "unit_price_cents",
        "measurement",
        "search_mode",
        "scope"
      ],
      "additionalProperties": false
    },
    "Task": {
      "type": "object",
      "description": "Referenced by this document but never defined in it. API Evangelist added this empty placeholder so the document resolves; the shape is unknown and is NOT a claim about the API.",
      "x-ae-placeholder": true
    },
    "Verification": {
      "type": "object",
      "description": "Referenced by this document but never defined in it. API Evangelist added this empty placeholder so the document resolves; the shape is unknown and is NOT a claim about the API.",
      "x-ae-placeholder": true
    }
  }
}