{
  "schema": "hce.hsm.swim-certificate-policy",
  "version": "3.0",
  "status": "ENFORCED_FOR_SWIM_PKI",
  "public_documents": {
    "policy_url": "https://www.jai-ai.com/agreements/swim-certificate-policy.html",
    "profile_url": "https://www.jai-ai.com/agreements/swim-certificate-profile.html",
    "policy_json_url": "https://www.jai-ai.com/agreements/swim-certificate-policy.json",
    "profile_json_url": "https://www.jai-ai.com/agreements/swim-certificate-profile.json"
  },
  "scope": [
    "SWIM Security Domain and Registration Authority keys",
    "SWIM End Entity and EE Token keys",
    "SWIM-issued public certificates and desktop bootstrap certificates",
    "JACOB-JACOS-V10 to Delhi MEP TLS server trust"
  ],
  "canonical_architecture": {
    "registration_authority": "Delhi Command Centre is authoritative for initial EE and EE Token registration.",
    "key_custody": "Generate and use private key material only through the approved HCE-HSM whitebox and Oracle custody path.",
    "operational_records": "Use the existing canonical SWIM database key-manager and certificate tables and the canonical SWIM-CA tables. Do not create parallel key stores, shadow tables, or a generic pre-generation pool.",
    "desktop_offline_state": "After successful remote registration, synchronize the identity, public certificates, and protected key state to the local Mac only through an authenticated whitebox-to-whitebox operation. Never copy plaintext private keys or token secrets. This synchronization is not yet implemented; offline EE login remains unavailable until it is verified end to end."
  },
  "registration_key_profile": {
    "algorithm": "RSA",
    "modulus_bits": 4096,
    "key_usages": ["AUTHENTICATION", "CONFIDENTIALITY"],
    "entities": ["SD", "ROOT_CA", "USER_CA", "RA", "MA", "EE", "EE_TOKEN"],
    "private_key_generation": "HCE-HSM whitebox only",
    "private_key_export": "FORBIDDEN",
    "hsm_handle_storage": "opaque custody reference only"
  },
  "certificate_issuance": {
    "format": "X.509 v3 DER",
    "minimum_rsa_modulus_bits": 4096,
    "issuer_requirement": "A configured and verified external Certificate Authority. Validate the complete issuer chain, certificate dates, subject, serial, usage and RSA-4096 public key before activating a SWIM record.",
    "certificate_policy_cps_uri": "https://www.jai-ai.com/agreements/swim-certificate-policy.html",
    "profile_reference_uri": "https://www.jai-ai.com/agreements/swim-certificate-profile.html",
    "cps_uri_embedding": "RA certificate reconciliation reads the configured CA_CPS_POINTER and submits it through the native certificate-policy request; other CreateRA issuance requests do not expose a CPS URI field and require the external CA template to add it",
    "self_signed_ca": "FORBIDDEN",
    "openssl_as_ca_or_key_generator": "FORBIDDEN",
    "public_certificate_storage": "Canonical SWIM certificate rows only; key-manager rows reference those certificate IDs.",
    "desktop_bootstrap": "The current RSA-4096 Registration Authority confidentiality certificate must be a complete, currently valid X.509 certificate before any desktop projection is written or applied."
  },
  "transport_tls": {
    "endpoint": "Delhi SWIM MEP ingress on the configured RSA-4096 endpoint",
    "profile": "RSA-4096 only",
    "trust": "Pinned public certificate validated by the native MatrixSSL/SWIM transport",
    "rsa_2048_compatibility_endpoint": "RETIRED"
  },
  "retired_profiles": {
    "rsa_2048_swim_registration_keys": "RETIRED_AND_REMOVED_FROM_LOCAL_CANONICAL_RECORDS",
    "rsa_1024_swim_registration_keys": "DISABLED",
    "generic_shared_key_pool": "RETIRED; no shadow pool or PostgreSQL HCE-HSM key store is permitted",
    "historical_non_pki_crypto": "Legacy algorithms may remain in separately governed payment or non-certificate modules; they are not valid SWIM PKI profiles."
  },
  "rejection_rules": [
    "Reject RSA-2048 or smaller SWIM PKI keys and certificates.",
    "Reject malformed, truncated, expired, not-yet-valid, or non-RSA-4096 certificates before writing operational projections.",
    "Reject certificates without a verified external CA chain; never substitute a self-signed certificate.",
    "If Delhi cannot complete the authenticated registration and protected-state sync, fail with the remote command centre unavailable response and do not enable offline login."
  ]
}
