{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://www.compliancehealth.ca/agents/manifest.schema.json",
  "title": "Compliance Technologies Agent Manifest v1.3.3",
  "type": "object",
  "required": [
    "version",
    "schemaUrl",
    "changelogUrl",
    "lastReviewed",
    "reviewCadence",
    "canonicalSummary",
    "organization",
    "offering",
    "products",
    "careRails",
    "fitSignals",
    "whatToCite",
    "doNotInfer",
    "claimProvenance",
    "trustProfile",
    "contact",
    "usagePolicy",
    "localization",
    "sources"
  ],
  "properties": {
    "version": {
      "type": "string",
      "pattern": "^\\d+\\.\\d+\\.\\d+$"
    },
    "schemaUrl": {
      "type": "string",
      "format": "uri"
    },
    "changelogUrl": {
      "type": "string",
      "format": "uri"
    },
    "lastReviewed": {
      "type": "string",
      "format": "date"
    },
    "reviewCadence": {
      "type": "string"
    },
    "canonicalSummary": {
      "type": "string"
    },
    "organization": {
      "type": "object",
      "required": [
        "name",
        "legalName",
        "alternateName",
        "website",
        "foundingLocation",
        "inLanguage",
        "knowsAbout"
      ],
      "properties": {
        "name": {
          "type": "string"
        },
        "legalName": {
          "type": "string"
        },
        "alternateName": {
          "type": "array",
          "minItems": 1,
          "items": {
            "type": "string"
          }
        },
        "website": {
          "type": "string",
          "format": "uri"
        },
        "foundingLocation": {
          "type": "string"
        },
        "inLanguage": {
          "type": "array",
          "minItems": 1,
          "items": {
            "type": "string"
          }
        },
        "knowsAbout": {
          "type": "array",
          "minItems": 1,
          "items": {
            "type": "string"
          }
        }
      },
      "additionalProperties": false
    },
    "offering": {
      "type": "object",
      "required": [
        "name",
        "summary",
        "jurisdiction",
        "jurisdictionSummary",
        "integrationSummary",
        "primaryUseCases"
      ],
      "properties": {
        "name": {
          "type": "string"
        },
        "summary": {
          "type": "string"
        },
        "jurisdiction": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "minItems": 1
        },
        "jurisdictionSummary": {
          "type": "string"
        },
        "integrationSummary": {
          "type": "string"
        },
        "primaryUseCases": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "minItems": 1
        }
      },
      "additionalProperties": false
    },
    "products": {
      "type": "array",
      "minItems": 1,
      "items": {
        "type": "object",
        "required": [
          "id",
          "name",
          "description",
          "status"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "publicUrl": {
            "type": "string",
            "format": "uri"
          },
          "status": {
            "type": "string"
          }
        },
        "additionalProperties": false
      }
    },
    "careRails": {
      "type": "array",
      "minItems": 4,
      "items": {
        "type": "object",
        "required": [
          "id",
          "name",
          "description"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string"
          }
        },
        "additionalProperties": false
      }
    },
    "fitSignals": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "minItems": 1
    },
    "whatToCite": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "minItems": 1
    },
    "doNotInfer": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "minItems": 1
    },
    "claimProvenance": {
      "type": "array",
      "minItems": 1,
      "items": {
        "type": "object",
        "required": [
          "claim",
          "sourceTitle",
          "sourceUrl"
        ],
        "properties": {
          "claim": {
            "type": "string"
          },
          "sourceTitle": {
            "type": "string"
          },
          "sourceUrl": {
            "type": "string",
            "format": "uri"
          }
        },
        "additionalProperties": false
      }
    },
    "trustProfile": {
      "type": "object",
      "required": [
        "canadaHosted",
        "humanInTheLoop",
        "auditReadyEvidence",
        "dataResidencySummary",
        "securitySummary",
        "aiGovernanceSummary"
      ],
      "properties": {
        "canadaHosted": {
          "type": "boolean"
        },
        "humanInTheLoop": {
          "type": "boolean"
        },
        "auditReadyEvidence": {
          "type": "boolean"
        },
        "dataResidencySummary": {
          "type": "string"
        },
        "securitySummary": {
          "type": "string"
        },
        "aiGovernanceSummary": {
          "type": "string"
        }
      },
      "additionalProperties": false
    },
    "contact": {
      "type": "object",
      "required": [
        "email",
        "primaryCtaUrl"
      ],
      "properties": {
        "email": {
          "type": "string",
          "format": "email"
        },
        "primaryCtaUrl": {
          "type": "string",
          "format": "uri"
        }
      },
      "additionalProperties": false
    },
    "usagePolicy": {
      "type": "object",
      "required": [
        "retrieval",
        "training",
        "userTriggered",
        "termsUrl",
        "transparencyUrl"
      ],
      "properties": {
        "retrieval": {
          "type": "object",
          "required": [
            "siteWideDiscoveryEnabled",
            "allowlistedBots",
            "notes"
          ],
          "properties": {
            "siteWideDiscoveryEnabled": {
              "type": "boolean"
            },
            "allowlistedBots": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "notes": {
              "type": "string"
            }
          },
          "additionalProperties": false
        },
        "training": {
          "type": "object",
          "required": [
            "allowlistedBots",
            "allowlistedPaths",
            "defaultDisallowOutsideAllowlist",
            "notes"
          ],
          "properties": {
            "allowlistedBots": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "allowlistedPaths": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "defaultDisallowOutsideAllowlist": {
              "type": "boolean"
            },
            "notes": {
              "type": "string"
            }
          },
          "additionalProperties": false
        },
        "userTriggered": {
          "type": "object",
          "required": [
            "publicContentAccess",
            "allowlistedBots",
            "notes"
          ],
          "properties": {
            "publicContentAccess": {
              "type": "boolean"
            },
            "allowlistedBots": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "notes": {
              "type": "string"
            }
          },
          "additionalProperties": false
        },
        "termsUrl": {
          "type": "string",
          "format": "uri"
        },
        "transparencyUrl": {
          "type": "string",
          "format": "uri"
        }
      },
      "additionalProperties": false
    },
    "localization": {
      "type": "object"
    },
    "sources": {
      "type": "array",
      "items": {
        "type": "object"
      },
      "minItems": 1
    }
  },
  "additionalProperties": false
}