{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://agoragentic.com/schema/launch-to-liquidity-candidate.v1.json",
  "title": "Agoragentic Launch-to-Liquidity Candidate",
  "description": "Internal owner-review candidate for turning scorecard-backed capabilities into draft marketplace supply. This is advisory only: it does not publish listings, create x402 routes, spend, settle, mutate trust, mutate router ranking, mark x402 ready, or expose private ECF context.",
  "type": "object",
  "additionalProperties": true,
  "required": [
    "schema",
    "candidate_id",
    "source_type",
    "source_id",
    "candidate_name",
    "candidate_type",
    "proposed_listing_slug",
    "proposed_exposure_mode",
    "readiness_state",
    "blockers",
    "evidence_refs",
    "owner_review_required",
    "public_safe",
    "private_context_excluded",
    "status",
    "readiness",
    "listing_draft_metadata",
    "public_boundary",
    "created_at",
    "updated_at"
  ],
  "properties": {
    "schema": { "const": "agoragentic.launch-to-liquidity-candidate.v1" },
    "candidate_id": { "type": "string", "minLength": 1 },
    "source_type": {
      "type": "string",
      "enum": [
        "deployment",
        "template",
        "capability",
        "x402_service",
        "api_wrapper",
        "codebase_security_agent",
        "context_compiler",
        "listing_verifier",
        "mcp_safety_scanner",
        "receipt_reconciliation_agent",
        "agent_governance_diagnostic"
      ]
    },
    "source_id": { "type": "string", "minLength": 1 },
    "source_scorecard_id": { "type": ["string", "null"] },
    "candidate_name": { "type": "string", "minLength": 1 },
    "name": { "type": "string" },
    "candidate_type": { "type": "string", "minLength": 1 },
    "target_market": { "type": "string" },
    "buyer_segment": { "type": "string" },
    "proposed_listing_slug": { "type": "string", "minLength": 1 },
    "proposed_price_usdc": { "type": ["number", "null"], "minimum": 0 },
    "proposed_exposure_mode": {
      "type": "string",
      "enum": ["private_only", "public_api", "marketplace_seller", "x402_paid_edge"]
    },
    "readiness_state": {
      "type": "string",
      "enum": [
        "not_evaluated",
        "needs_scorecard",
        "needs_canary_plan",
        "needs_canary",
        "needs_paid_canary",
        "needs_receipt_policy",
        "needs_owner_review",
        "blocked",
        "draft_ready",
        "publish_ready"
      ]
    },
    "blockers": {
      "type": "array",
      "items": { "type": "string" }
    },
    "evidence_refs": {
      "type": "array",
      "items": { "type": "string" }
    },
    "scorecard_summary": {
      "type": ["object", "null"],
      "additionalProperties": true
    },
    "canary_plan_id": { "type": ["string", "null"] },
    "canary_plan": {
      "type": ["object", "null"],
      "additionalProperties": true
    },
    "owner_review_required": { "type": "boolean" },
    "public_safe": { "type": "boolean" },
    "private_context_excluded": { "type": "boolean" },
    "status": {
      "type": "string",
      "enum": [
        "identified",
        "scored",
        "canary_planned",
        "canary_pending",
        "canary_passed",
        "receipt_attached",
        "listing_draft",
        "owner_review",
        "approved",
        "publish_ready",
        "published_external_manual",
        "blocked",
        "rejected"
      ]
    },
    "created_at": { "type": "string", "format": "date-time" },
    "updated_at": { "type": "string", "format": "date-time" },
    "readiness": {
      "type": "object",
      "required": [
        "schema",
        "readiness_state",
        "blockers",
        "warnings",
        "publish_ready",
        "evaluated_at"
      ],
      "additionalProperties": true
    },
    "listing_draft_metadata": {
      "type": "object",
      "required": [
        "title",
        "short_description",
        "receipt_policy",
        "owner_review_checklist",
        "public_copy_safe",
        "private_context_excluded",
        "draft_only",
        "public_boundary"
      ],
      "additionalProperties": true
    },
    "public_boundary": {
      "type": "object",
      "required": [
        "advisory_only",
        "candidate_pipeline_only",
        "marketplace_publication_triggered",
        "x402_route_created",
        "x402_readiness_mutated",
        "wallet_spend_triggered",
        "settlement_triggered",
        "trust_mutated",
        "router_ranking_mutated",
        "seller_trust_mutated",
        "marketplace_verified_mutated",
        "private_ecf_context_exposed"
      ],
      "properties": {
        "advisory_only": { "const": true },
        "candidate_pipeline_only": { "const": true },
        "marketplace_publication_triggered": { "const": false },
        "x402_route_created": { "const": false },
        "x402_readiness_mutated": { "const": false },
        "wallet_spend_triggered": { "const": false },
        "settlement_triggered": { "const": false },
        "trust_mutated": { "const": false },
        "router_ranking_mutated": { "const": false },
        "seller_trust_mutated": { "const": false },
        "marketplace_verified_mutated": { "const": false },
        "private_ecf_context_exposed": { "const": false }
      },
      "additionalProperties": true
    }
  }
}
