{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://hogarmas.net/mcp-activation-lab/schema.json",
  "title": "H/M MCP Activation Lint Report",
  "type": "object",
  "required": ["schema", "ruleset", "generatedAt", "summary", "stages", "tools", "paymentBoundary", "prioritizedFixes", "remediation", "privacy", "truthBoundary"],
  "properties": {
    "schema": { "const": "hm.mcp-activation-lint.v1" },
    "ruleset": { "const": "mcp-2025-11-25-static-activation-v1" },
    "generatedAt": { "type": "string", "format": "date-time" },
    "summary": {
      "type": "object",
      "required": ["staticFriction", "toolCount", "freeToolCount", "paymentLikeToolCount"],
      "properties": {
        "staticFriction": { "enum": ["high-static-friction", "review-static-friction", "low-observed-static-friction"] },
        "firstGap": { "type": ["string", "null"] },
        "firstValueTool": { "type": ["string", "null"] },
        "toolCount": { "type": "integer", "minimum": 0 },
        "freeToolCount": { "type": "integer", "minimum": 0 },
        "paymentLikeToolCount": { "type": "integer", "minimum": 0 }
      },
      "additionalProperties": true
    },
    "stages": { "type": "array", "items": { "$ref": "#/$defs/stage" } },
    "tools": { "type": "array", "items": { "type": "object" } },
    "paymentBoundary": { "type": "object" },
    "prioritizedFixes": { "type": "array", "items": { "type": "object" } },
    "remediation": { "type": "object" },
    "privacy": { "type": "object" },
    "truthBoundary": { "type": "object" }
  },
  "$defs": {
    "stage": {
      "type": "object",
      "required": ["id", "title", "state", "checks"],
      "properties": {
        "id": { "enum": ["orient", "choose", "authorize", "invoke", "verify"] },
        "title": { "type": "string" },
        "state": { "enum": ["gap", "attention", "observed"] },
        "checks": { "type": "array", "items": { "type": "object" } }
      }
    }
  },
  "additionalProperties": true
}
