{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/domani-run/json-schema/domani-run-public-domain-profile-schema.json",
  "title": "PublicDomainProfile",
  "description": "Privacy-safe public domain dossier with one canonical URL and an explicit search-index quality decision.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/domani-run-discovery-api-openapi.yml#/components/schemas/PublicDomainProfile",
  "type": "object",
  "properties": {
    "domain": {
      "type": "string"
    },
    "canonicalPath": {
      "type": "string"
    },
    "brief": {
      "$ref": "#/$defs/DomainBrief"
    },
    "freshness": {
      "type": "string",
      "enum": [
        "fresh",
        "stale"
      ]
    },
    "qualityScore": {
      "type": "integer",
      "minimum": 0,
      "maximum": 100
    },
    "indexable": {
      "type": "boolean",
      "description": "True only for fresh, deep, substantive profiles with sufficient public evidence."
    },
    "indexabilityReasons": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "needs_deep_analysis",
          "analysis_not_ready",
          "stale_analysis",
          "insufficient_coverage",
          "insufficient_public_evidence",
          "thin_domain_identity"
        ]
      }
    }
  },
  "required": [
    "domain",
    "canonicalPath",
    "brief",
    "freshness",
    "qualityScore",
    "indexable",
    "indexabilityReasons"
  ],
  "$defs": {
    "DomainBrief": {
      "type": "object",
      "description": "Evidence-backed snapshot of a domain and its best current acquisition path.",
      "properties": {
        "id": {
          "type": "string"
        },
        "domain": {
          "type": "string"
        },
        "depth": {
          "type": "string",
          "enum": [
            "instant",
            "deep"
          ]
        },
        "status": {
          "type": "string",
          "enum": [
            "ready",
            "degraded",
            "failed"
          ]
        },
        "summary": {
          "type": "string"
        },
        "registration": {
          "type": "object",
          "properties": {
            "state": {
              "type": "string",
              "enum": [
                "available",
                "registered",
                "reserved",
                "unknown"
              ]
            },
            "registrar": {
              "type": [
                "string",
                "null"
              ]
            },
            "createdAt": {
              "type": [
                "string",
                "null"
              ],
              "format": "date-time"
            },
            "expiresAt": {
              "type": [
                "string",
                "null"
              ],
              "format": "date-time"
            },
            "daysUntilExpiry": {
              "type": [
                "integer",
                "null"
              ]
            }
          },
          "required": [
            "state",
            "registrar",
            "createdAt",
            "expiresAt",
            "daysUntilExpiry"
          ]
        },
        "website": {
          "type": "object",
          "properties": {
            "state": {
              "type": "string",
              "enum": [
                "active_business",
                "active_noncommercial",
                "parked_for_sale",
                "parked",
                "redirected",
                "dormant",
                "holding_page",
                "protected",
                "unreachable",
                "unknown"
              ]
            },
            "title": {
              "type": [
                "string",
                "null"
              ]
            },
            "description": {
              "type": [
                "string",
                "null"
              ]
            },
            "finalUrl": {
              "type": [
                "string",
                "null"
              ]
            },
            "favicon": {
              "type": [
                "string",
                "null"
              ]
            },
            "canonicalUrl": {
              "type": [
                "string",
                "null"
              ]
            }
          },
          "required": [
            "state",
            "title",
            "description",
            "finalUrl",
            "favicon",
            "canonicalUrl"
          ]
        },
        "identity": {
          "type": "object",
          "description": "Public identity inferred from the current site. Associated operators do not imply registration ownership.",
          "properties": {
            "name": {
              "type": [
                "string",
                "null"
              ]
            },
            "legalName": {
              "type": [
                "string",
                "null"
              ]
            },
            "pitch": {
              "type": [
                "string",
                "null"
              ]
            },
            "category": {
              "type": [
                "string",
                "null"
              ]
            },
            "audience": {
              "type": [
                "string",
                "null"
              ]
            },
            "language": {
              "type": [
                "string",
                "null"
              ]
            },
            "logo": {
              "type": [
                "string",
                "null"
              ]
            },
            "entities": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string"
                  },
                  "legalName": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "type": {
                    "type": "string",
                    "enum": [
                      "company",
                      "brand",
                      "organization",
                      "public_person",
                      "unknown"
                    ]
                  },
                  "relationship": {
                    "type": "string",
                    "enum": [
                      "presented_brand",
                      "current_operator",
                      "redirect_destination",
                      "historical_operator",
                      "registrant"
                    ]
                  },
                  "confidence": {
                    "type": "string",
                    "enum": [
                      "high",
                      "medium",
                      "low"
                    ]
                  },
                  "website": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "sameAs": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "evidenceIds": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                },
                "required": [
                  "name",
                  "legalName",
                  "type",
                  "relationship",
                  "confidence",
                  "website",
                  "sameAs",
                  "evidenceIds"
                ]
              }
            }
          },
          "required": [
            "name",
            "legalName",
            "pitch",
            "category",
            "audience",
            "language",
            "logo",
            "entities"
          ]
        },
        "activity": {
          "type": "object",
          "properties": {
            "state": {
              "type": "string",
              "enum": [
                "active",
                "operational",
                "dormant",
                "inactive",
                "unknown"
              ]
            },
            "rationale": {
              "type": "string"
            },
            "observedAt": {
              "type": "string",
              "format": "date-time"
            },
            "evidenceIds": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          "required": [
            "state",
            "rationale",
            "observedAt",
            "evidenceIds"
          ]
        },
        "history": {
          "type": "object",
          "properties": {
            "registeredAt": {
              "type": [
                "string",
                "null"
              ],
              "format": "date-time"
            },
            "registrationUpdatedAt": {
              "type": [
                "string",
                "null"
              ],
              "format": "date-time"
            },
            "firstArchiveAt": {
              "type": [
                "string",
                "null"
              ],
              "format": "date-time"
            },
            "latestArchiveAt": {
              "type": [
                "string",
                "null"
              ],
              "format": "date-time"
            },
            "currentIdentityFirstSeenAt": {
              "type": [
                "string",
                "null"
              ],
              "format": "date-time"
            },
            "snapshots": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "capturedAt": {
                    "type": "string",
                    "format": "date-time"
                  },
                  "url": {
                    "type": "string"
                  },
                  "title": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "description": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "evidenceIds": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                },
                "required": [
                  "capturedAt",
                  "url",
                  "title",
                  "description",
                  "evidenceIds"
                ]
              }
            },
            "changes": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "detectedAt": {
                    "type": "string",
                    "format": "date-time"
                  },
                  "type": {
                    "type": "string",
                    "enum": [
                      "identity",
                      "content",
                      "redirect",
                      "registration"
                    ]
                  },
                  "summary": {
                    "type": "string"
                  },
                  "data": {
                    "type": "object",
                    "additionalProperties": {
                      "nullable": true
                    }
                  },
                  "evidenceIds": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                },
                "required": [
                  "detectedAt",
                  "type",
                  "summary",
                  "evidenceIds"
                ]
              }
            }
          },
          "required": [
            "registeredAt",
            "registrationUpdatedAt",
            "firstArchiveAt",
            "latestArchiveAt",
            "currentIdentityFirstSeenAt",
            "snapshots",
            "changes"
          ]
        },
        "infrastructure": {
          "type": "object",
          "properties": {
            "nameservers": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "mailProviders": {
              "type": "array",
              "items": {
                "type": "string"
              },
              "deprecated": true
            },
            "dnssec": {
              "type": "boolean"
            },
            "mail": {
              "type": "object",
              "description": "Privacy-safe email activity, provider, transport-security, and business-criticality signals derived from public DNS. Raw reporting addresses are never returned.",
              "properties": {
                "status": {
                  "type": "string",
                  "enum": [
                    "active",
                    "inactive",
                    "unknown"
                  ]
                },
                "provider": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "providerKind": {
                  "type": "string",
                  "enum": [
                    "managed",
                    "self_hosted",
                    "gateway",
                    "custom",
                    "unknown"
                  ]
                },
                "security": {
                  "type": "string",
                  "enum": [
                    "hardened",
                    "established",
                    "basic",
                    "exposed",
                    "unknown"
                  ]
                },
                "businessCriticality": {
                  "type": "string",
                  "enum": [
                    "high",
                    "medium",
                    "low",
                    "unknown"
                  ]
                },
                "spf": {
                  "type": [
                    "boolean",
                    "null"
                  ]
                },
                "dmarc": {
                  "type": "string",
                  "enum": [
                    "reject",
                    "quarantine",
                    "monitor",
                    "none",
                    "unknown"
                  ]
                },
                "mtaSts": {
                  "type": [
                    "boolean",
                    "null"
                  ],
                  "description": "Whether an advertised HTTPS MTA-STS policy was retrieved, parsed, and found to use enforce mode."
                },
                "tlsReporting": {
                  "type": [
                    "boolean",
                    "null"
                  ]
                },
                "bimi": {
                  "type": [
                    "boolean",
                    "null"
                  ]
                }
              },
              "required": [
                "status",
                "provider",
                "providerKind",
                "security",
                "businessCriticality",
                "spf",
                "dmarc",
                "mtaSts",
                "tlsReporting",
                "bimi"
              ]
            }
          },
          "required": [
            "nameservers",
            "mail",
            "mailProviders",
            "dnssec"
          ]
        },
        "market": {
          "type": "object",
          "properties": {
            "listed": {
              "type": "boolean"
            },
            "marketplace": {
              "type": [
                "string",
                "null"
              ]
            },
            "listingUrl": {
              "type": [
                "string",
                "null"
              ]
            },
            "askingPriceUsd": {
              "type": [
                "number",
                "null"
              ]
            }
          },
          "required": [
            "listed",
            "marketplace",
            "listingUrl",
            "askingPriceUsd"
          ]
        },
        "contactability": {
          "type": "object",
          "description": "Redacted contact-channel metadata. Raw addresses are never returned.",
          "properties": {
            "state": {
              "type": "string",
              "enum": [
                "direct",
                "indirect",
                "none_found",
                "unknown"
              ]
            },
            "channelType": {
              "type": [
                "string",
                "null"
              ],
              "enum": [
                "registration_email"
              ]
            },
            "source": {
              "type": [
                "string",
                "null"
              ]
            },
            "confidence": {
              "type": [
                "string",
                "null"
              ],
              "enum": [
                "high",
                "medium",
                "low"
              ]
            }
          },
          "required": [
            "state",
            "channelType",
            "source",
            "confidence"
          ]
        },
        "acquisitionOutlook": {
          "type": "object",
          "properties": {
            "state": {
              "type": "string",
              "enum": [
                "promising",
                "possible",
                "difficult",
                "unknown"
              ]
            },
            "rationale": {
              "type": "string"
            }
          },
          "required": [
            "state",
            "rationale"
          ]
        },
        "recommendation": {
          "type": "object",
          "properties": {
            "action": {
              "type": "string",
              "enum": [
                "register",
                "buy_now",
                "negotiate_listing",
                "private_broker",
                "backorder",
                "watch",
                "choose_alternative"
              ]
            },
            "rationale": {
              "type": "string"
            }
          },
          "required": [
            "action",
            "rationale"
          ]
        },
        "completeness": {
          "type": "integer",
          "minimum": 0,
          "maximum": 100,
          "deprecated": true,
          "description": "Legacy aggregate. Use coverage instead."
        },
        "coverage": {
          "type": "object",
          "description": "Evidence coverage, separate from confidence and freshness.",
          "properties": {
            "score": {
              "type": "integer",
              "minimum": 0,
              "maximum": 100
            },
            "sections": {
              "type": "object",
              "properties": {
                "registration": {
                  "type": "string",
                  "enum": [
                    "complete",
                    "partial",
                    "missing"
                  ]
                },
                "currentUse": {
                  "type": "string",
                  "enum": [
                    "complete",
                    "partial",
                    "missing"
                  ]
                },
                "identity": {
                  "type": "string",
                  "enum": [
                    "complete",
                    "partial",
                    "missing"
                  ]
                },
                "infrastructure": {
                  "type": "string",
                  "enum": [
                    "complete",
                    "partial",
                    "missing"
                  ]
                },
                "history": {
                  "type": "string",
                  "enum": [
                    "complete",
                    "partial",
                    "missing"
                  ]
                },
                "market": {
                  "type": "string",
                  "enum": [
                    "complete",
                    "partial",
                    "missing"
                  ]
                }
              },
              "required": [
                "registration",
                "currentUse",
                "identity",
                "infrastructure",
                "history",
                "market"
              ]
            },
            "missing": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          "required": [
            "score",
            "sections",
            "missing"
          ]
        },
        "analyzedAt": {
          "type": "string",
          "format": "date-time"
        },
        "staleAt": {
          "type": "string",
          "format": "date-time"
        },
        "analysisVersion": {
          "type": "string"
        },
        "evidence": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "kind": {
                "type": "string",
                "enum": [
                  "registry",
                  "dns",
                  "website",
                  "content",
                  "archive",
                  "entity",
                  "market",
                  "contact"
                ]
              },
              "claimKey": {
                "type": "string"
              },
              "label": {
                "type": "string"
              },
              "value": {
                "type": "string"
              },
              "data": {
                "type": "object",
                "additionalProperties": true
              },
              "source": {
                "type": "string"
              },
              "sourceUrl": {
                "type": "string"
              },
              "confidence": {
                "type": "string",
                "enum": [
                  "high",
                  "medium",
                  "low"
                ]
              },
              "visibility": {
                "type": "string",
                "enum": [
                  "public",
                  "redacted"
                ]
              },
              "capturedAt": {
                "type": "string",
                "format": "date-time"
              }
            },
            "required": [
              "id",
              "kind",
              "claimKey",
              "label",
              "value",
              "source",
              "confidence",
              "visibility",
              "capturedAt"
            ]
          }
        },
        "warnings": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "createdAt": {
          "type": "string",
          "format": "date-time"
        },
        "updatedAt": {
          "type": "string",
          "format": "date-time"
        }
      },
      "required": [
        "id",
        "domain",
        "depth",
        "status",
        "summary",
        "registration",
        "website",
        "identity",
        "activity",
        "history",
        "infrastructure",
        "market",
        "contactability",
        "acquisitionOutlook",
        "recommendation",
        "completeness",
        "coverage",
        "analyzedAt",
        "staleAt",
        "analysisVersion",
        "evidence",
        "warnings",
        "createdAt",
        "updatedAt"
      ]
    }
  }
}