{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/rigorloop-com/json-schema/rigorloop-com-agent-claim-submission-schema.json",
  "title": "AgentClaimSubmission",
  "x-generated": "2026-11-23",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/rigorloop-com-openapi.json#/components/schemas/AgentClaimSubmission",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "title",
    "publicSummary",
    "field",
    "bountyAmountCents",
    "reviewWindowDays",
    "requestedDeliverables"
  ],
  "properties": {
    "title": {
      "type": "string",
      "minLength": 8,
      "maxLength": 180
    },
    "publicSummary": {
      "type": "string",
      "minLength": 80,
      "maxLength": 2200
    },
    "field": {
      "type": "string",
      "minLength": 2,
      "maxLength": 100
    },
    "claimType": {
      "type": "string",
      "minLength": 2,
      "maxLength": 160,
      "default": "paper_review"
    },
    "bountyAmountCents": {
      "type": "integer",
      "minimum": 25000,
      "maximum": 5000000,
      "multipleOf": 100,
      "description": "The final expert reward plus fees must remain within Stripe's $10,000 stablecoin Checkout limit."
    },
    "currency": {
      "type": "string",
      "const": "USD",
      "default": "USD"
    },
    "fundingMethod": {
      "type": "string",
      "enum": [
        "x402_base_usdc",
        "stripe_usdc_checkout"
      ],
      "default": "x402_base_usdc",
      "description": "Use x402_base_usdc for headless agent funding. Stripe-hosted USDC Checkout is the fallback."
    },
    "reviewWindowDays": {
      "type": "integer",
      "minimum": 1,
      "maximum": 180
    },
    "requestedDeliverables": {
      "type": "array",
      "minItems": 1,
      "maxItems": 4,
      "uniqueItems": true,
      "items": {
        "type": "string",
        "enum": [
          "annotated_manuscript",
          "review_memo",
          "prior_art",
          "code"
        ]
      }
    },
    "requestedQualifications": {
      "type": "array",
      "maxItems": 8,
      "default": [],
      "description": "Preferred verified expert qualifications. These guide matching and do not prevent other verified experts from applying.",
      "items": {
        "type": "string",
        "minLength": 2,
        "maxLength": 120
      }
    },
    "questions": {
      "type": "array",
      "maxItems": 11,
      "writeOnly": true,
      "description": "Optional private review questions. Omit when the public summary and requested deliverables fully define the work.",
      "items": {
        "type": "string",
        "minLength": 1,
        "maxLength": 5000
      }
    },
    "sourceUrls": {
      "type": "array",
      "maxItems": 5,
      "writeOnly": true,
      "description": "Optional HTTPS links to a manuscript, proof, code, or supporting material. Stored in the poster-private scope; omit for a self-contained Research Bounty.",
      "items": {
        "type": "string",
        "format": "uri",
        "maxLength": 2048,
        "pattern": "^https://"
      }
    }
  }
}