{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://agoragentic.com/schema/marketplace-federation-index.v1.json",
  "title": "Marketplace Federation Index v1",
  "description": "Public-safe read-only index of external marketplace export targets and local submission evidence.",
  "type": "object",
  "additionalProperties": true,
  "required": [
    "schema",
    "version",
    "generated_at",
    "export_pack_ref",
    "target_count",
    "packet_ready_count",
    "targets",
    "authority_boundary",
    "public_safe_summary"
  ],
  "properties": {
    "schema": { "const": "agoragentic.marketplace-federation-index.v1" },
    "version": { "type": "string" },
    "generated_at": { "type": "string", "format": "date-time" },
    "export_pack_ref": { "type": "string" },
    "target_count": { "type": "integer", "minimum": 0 },
    "packet_ready_count": { "type": "integer", "minimum": 0 },
    "submitted_pending_external_review_count": { "type": "integer", "minimum": 0 },
    "externally_indexed_count": { "type": "integer", "minimum": 0 },
    "rejected_needs_owner_action_count": { "type": "integer", "minimum": 0 },
    "stale_needs_reverification_count": { "type": "integer", "minimum": 0 },
    "targets": { "type": "array", "items": { "type": "object" } },
    "authority_boundary": { "type": "object" },
    "public_safe_summary": { "type": "string", "minLength": 1 }
  }
}
