{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "title": "Principles Disciple Workspace Profile Schema",
  "description": "Schema for the Principles Disciple workspace profile configuration",
  "type": "object",
  "properties": {
    "audit_level": {
      "type": "string",
      "enum": ["low", "medium", "high"],
      "default": "medium"
    },
    "risk_paths": {
      "type": "array",
      "items": {
        "type": "string",
        "description": "Project-relative paths treated as higher-risk context for evidence triage, risk classification, and related governance signals. Blocking behavior is determined by owner-approved RuleHost rules, not by listing a path here."
      },
      "default": []
    },
    "tests": {
      "type": "object",
      "properties": {
        "on_change": { "type": "string", "enum": ["smoke", "unit", "full"], "default": "smoke" },
        "on_risk_change": { "type": "string", "enum": ["smoke", "unit", "full"], "default": "unit" },
        "commands": {
          "type": "object",
          "additionalProperties": { "type": "string" },
          "description": "Key-value pairs mapping test levels to shell commands."
        }
      }
    },
    "custom_guards": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "pattern": { "type": "string" },
          "message": { "type": "string" },
          "severity": { "type": "string", "enum": ["info", "warning", "error", "fatal"], "default": "error" }
        },
        "required": ["pattern", "message"]
      },
      "default": []
    }
  },
  "required": ["risk_paths", "tests"]
}
