{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://clearoutcomes.org/schemas/clear-outcome-record-v0.1.json",
  "title": "CLEAR Outcome Record",
  "description": "Working schema for a reviewable CLEAR outcome record. Schema validity is structural, not substantive validation.",
  "type": "object",
  "required": ["outcomeStatement", "clearOutcomeRecord"],
  "properties": {
    "outcomeStatement": { "type": "string", "minLength": 1 },
    "status": {
      "type": "string",
      "enum": ["draft", "human-review", "active", "revised", "retired"]
    },
    "clearOutcomeRecord": {
      "type": "object",
      "required": [
        "clearAndConcise",
        "linkedToObjectives",
        "evaluativeAndMeasurable",
        "achievableAndRealistic",
        "revisitedAndReviewed"
      ],
      "properties": {
        "clearAndConcise": { "$ref": "#/$defs/recordSection" },
        "linkedToObjectives": { "$ref": "#/$defs/recordSection" },
        "evaluativeAndMeasurable": { "$ref": "#/$defs/recordSection" },
        "achievableAndRealistic": { "$ref": "#/$defs/recordSection" },
        "revisitedAndReviewed": { "$ref": "#/$defs/recordSection" }
      },
      "additionalProperties": false
    }
  },
  "$defs": {
    "recordSection": {
      "type": "object",
      "description": "Section fields follow the builder export. Local implementations may add governed metadata.",
      "additionalProperties": { "type": "string" }
    }
  },
  "additionalProperties": true
}
