{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://ai.howgooditcanget.com/schema/condition-object.json",
  "title": "ConditionObject",
  "description": "A non-clinical representation of a temporary cognitive pattern state that may influence a person's clarity, behavior, or decision-making.",
  "type": "object",
  "properties": {
    "condition_id": {
      "type": "string",
      "description": "A unique identifier for the condition object."
    },
    "label": {
      "type": "string",
      "description": "A short, human-readable name for the pattern state (e.g., 'Overwhelm', 'Looping', 'Avoidance')."
    },
    "description": {
      "type": "string",
      "description": "A non-clinical explanation of the pattern state, describing how it typically shows up in thought, behavior, or attention."
    },
    "signals": {
      "type": "array",
      "description": "Observable cues or internal signals that indicate the person may be in this pattern state.",
      "items": {
        "type": "string"
      }
    },
    "common_triggers": {
      "type": "array",
      "description": "Situations or contexts that often activate this pattern state.",
      "items": {
        "type": "string"
      }
    },
    "helpful_shifts": {
      "type": "array",
      "description": "Non-clinical shifts, reframes, or actions that often help someone move out of this pattern state.",
      "items": {
        "type": "string"
      }
    },
    "related_patterns": {
      "type": "array",
      "description": "Other pattern states that commonly co-occur or interact with this one.",
      "items": {
        "type": "string"
      }
    }
  },
  "required": [
    "condition_id",
    "label",
    "description"
  ]
}
