{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "title": "Pisces Core Configuration",
  "description": "User configuration for Pisces Core",
  "type": "object",
  "properties": {
    "student": {
      "type": "object",
      "description": "Learner profile settings",
      "properties": {
        "name": {
          "type": "string",
          "description": "Your first name (used for personalised greetings)"
        },
        "year_of_study": {
          "type": "integer",
          "minimum": 1,
          "maximum": 8,
          "description": "Current year of study (1 = first year, etc.)"
        },
        "timezone": {
          "type": "string",
          "description": "Your timezone (e.g. America/New_York) for deadline awareness"
        }
      }
    },
    "explanations": {
      "type": "object",
      "description": "Settings for explanation depth and style",
      "properties": {
        "default_depth": {
          "type": "string",
          "enum": ["beginner", "intermediate", "advanced"],
          "default": "intermediate",
          "description": "Default explanation depth when not otherwise specified"
        },
        "prefer_visuals": {
          "type": "boolean",
          "default": true,
          "description": "Prefer diagrams when explaining structural concepts"
        },
        "use_analogies": {
          "type": "boolean",
          "default": true,
          "description": "Include real-world analogies in explanations"
        }
      }
    },
    "integrity": {
      "type": "object",
      "description": "Integrity guard settings",
      "properties": {
        "enabled": {
          "type": "boolean",
          "default": true,
          "description": "Enable the integrity guard (strongly recommended)"
        },
        "strictness": {
          "type": "string",
          "enum": ["strict", "balanced", "relaxed"],
          "default": "balanced",
          "description": "How aggressively to flag potential integrity issues"
        }
      }
    },
    "productivity": {
      "type": "object",
      "description": "Productivity and wellbeing settings",
      "properties": {
        "burnout_nudges": {
          "type": "boolean",
          "default": true,
          "description": "Enable rest/break reminders during long sessions"
        },
        "session_warning_minutes": {
          "type": "integer",
          "default": 180,
          "minimum": 30,
          "description": "Show a break reminder after this many minutes in a session"
        },
        "weekly_summary": {
          "type": "boolean",
          "default": true,
          "description": "Show a weekly activity summary at session end"
        }
      }
    },
    "model": {
      "type": "object",
      "description": "Model routing preferences",
      "properties": {
        "default": {
          "type": "string",
          "description": "Default model for general questions"
        },
        "quick": {
          "type": "string",
          "description": "Lightweight model for fast, simple queries"
        }
      }
    },
    "workspace": {
      "type": "object",
      "description": "Workspace discovery settings",
      "properties": {
        "customPaths": {
          "type": "array",
          "items": { "type": "string" },
          "description": "Additional directories to search for SEMESTER.md (absolute paths, or ~ for home)"
        }
      }
    }
  }
}
