{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://northstarintel.ai/schemas/ai-register-v1.json",
  "title": "North Star AI Register, format 1",
  "description": "A public register of the AI and automated systems an organization uses in its decisions. The fingerprint of a version is the SHA-256 of its canonical JSON (keys sorted, no whitespace). A later version records the fingerprint of the one before it in previous_sha256.",
  "$comment": "Copyright 2026 North Star Intelligence LLC. Anyone may use this schema to publish, read and check registers. North Star Intel and North Star AI Register are names of North Star Intelligence LLC.",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "standard",
    "format",
    "schema",
    "language",
    "organization",
    "revision",
    "previous_sha256",
    "published_on",
    "systems"
  ],
  "if": {
    "properties": {
      "revision": {
        "const": 1
      }
    }
  },
  "then": {
    "properties": {
      "previous_sha256": {
        "type": "null"
      }
    }
  },
  "else": {
    "properties": {
      "previous_sha256": {
        "type": "string"
      }
    }
  },
  "properties": {
    "standard": {
      "const": "North Star AI Register"
    },
    "format": {
      "const": 1
    },
    "schema": {
      "const": "https://northstarintel.ai/schemas/ai-register-v1.json"
    },
    "language": {
      "enum": [
        "en",
        "es",
        "pt"
      ],
      "description": "Language of the register's own words: en, es or pt."
    },
    "organization": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "name",
        "contact"
      ],
      "properties": {
        "name": {
          "type": "string",
          "minLength": 1,
          "maxLength": 200,
          "pattern": "^\\S(?:[\\s\\S]*\\S)?$",
          "description": "The organization the register belongs to."
        },
        "contact": {
          "type": "string",
          "minLength": 3,
          "maxLength": 300,
          "description": "An email address or an https address for questions."
        },
        "website": {
          "type": "string",
          "format": "uri",
          "pattern": "^https://",
          "maxLength": 300,
          "description": "The organization's website."
        },
        "area": {
          "type": "string",
          "minLength": 1,
          "maxLength": 300,
          "pattern": "^\\S(?:[\\s\\S]*\\S)?$",
          "description": "Where the organization operates."
        }
      }
    },
    "revision": {
      "type": "integer",
      "minimum": 1,
      "maximum": 1000000,
      "description": "1 for the first version, then one more for each new version."
    },
    "previous_sha256": {
      "type": [
        "string",
        "null"
      ],
      "pattern": "^[0-9a-f]{64}$",
      "description": "The fingerprint of the version before this one. Null on revision 1, required after it."
    },
    "published_on": {
      "type": "string",
      "format": "date",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
      "description": "The day this version was published."
    },
    "systems": {
      "type": "array",
      "minItems": 1,
      "maxItems": 200,
      "items": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "id",
          "name",
          "summary",
          "purpose",
          "decisions",
          "affected",
          "human_review",
          "data",
          "provider",
          "owner",
          "status",
          "role",
          "impact",
          "practices",
          "last_reviewed"
        ],
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[a-z0-9][a-z0-9-]{0,62}$",
            "description": "Stable from one version to the next, so tools can follow a system."
          },
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120,
            "pattern": "^\\S(?:[\\s\\S]*\\S)?$",
            "description": "System name"
          },
          "summary": {
            "type": "string",
            "minLength": 1,
            "maxLength": 1200,
            "pattern": "^\\S(?:[\\s\\S]*\\S)?$",
            "description": "What it does, in plain words"
          },
          "purpose": {
            "type": "string",
            "minLength": 1,
            "maxLength": 1200,
            "pattern": "^\\S(?:[\\s\\S]*\\S)?$",
            "description": "Why it is used"
          },
          "decisions": {
            "type": "string",
            "minLength": 1,
            "maxLength": 1200,
            "pattern": "^\\S(?:[\\s\\S]*\\S)?$",
            "description": "Decisions it takes part in"
          },
          "affected": {
            "type": "string",
            "minLength": 1,
            "maxLength": 1200,
            "pattern": "^\\S(?:[\\s\\S]*\\S)?$",
            "description": "Who the decisions affect"
          },
          "human_review": {
            "type": "string",
            "minLength": 1,
            "maxLength": 1200,
            "pattern": "^\\S(?:[\\s\\S]*\\S)?$",
            "description": "Who reviews its output, and whether they can overrule it"
          },
          "appeal": {
            "type": "string",
            "minLength": 1,
            "maxLength": 1200,
            "pattern": "^\\S(?:[\\s\\S]*\\S)?$",
            "description": "How a person can ask for a human review"
          },
          "data": {
            "type": "string",
            "minLength": 1,
            "maxLength": 1200,
            "pattern": "^\\S(?:[\\s\\S]*\\S)?$",
            "description": "Data it uses"
          },
          "provider": {
            "type": "string",
            "minLength": 1,
            "maxLength": 300,
            "pattern": "^\\S(?:[\\s\\S]*\\S)?$",
            "description": "Built by"
          },
          "owner": {
            "type": "string",
            "minLength": 1,
            "maxLength": 300,
            "pattern": "^\\S(?:[\\s\\S]*\\S)?$",
            "description": "Who answers for it"
          },
          "status": {
            "enum": [
              "planned",
              "pilot",
              "in_use",
              "retired"
            ]
          },
          "role": {
            "enum": [
              "informs",
              "recommends",
              "decides"
            ],
            "description": "informs: gives information a person uses. recommends: a person decides. decides: makes the decision on its own."
          },
          "impact": {
            "enum": [
              "significant",
              "limited"
            ],
            "description": "significant: a main basis for decisions about people's rights, safety, money, work, housing, health or access to services."
          },
          "practices": {
            "type": "array",
            "uniqueItems": true,
            "items": {
              "enum": [
                "tested",
                "impact_assessed",
                "monitored",
                "human_oversight",
                "operators_trained",
                "appeal",
                "public_feedback"
              ]
            },
            "description": "The safeguards the organization records for this system."
          },
          "last_reviewed": {
            "type": "string",
            "format": "date",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "description": "The day the organization last reviewed this entry."
          },
          "started": {
            "type": "string",
            "format": "date",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "description": "The day the system was first used."
          },
          "more_info": {
            "type": "string",
            "format": "uri",
            "pattern": "^https://",
            "maxLength": 300,
            "description": "Where to read more about the system."
          }
        }
      }
    }
  }
}
