{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/philidor-io/json-schema/philidor-io-vault-methodology-response-schema.json",
  "title": "VaultMethodologyResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/philidor-io-methodology-api-openapi.yml#/components/schemas/VaultMethodologyResponse",
  "type": "object",
  "properties": {
    "data": {
      "type": "object",
      "properties": {
        "version": {
          "type": "number"
        },
        "methodology_hash": {
          "type": "string",
          "description": "Hash written into every score run, tying a published score to this exact rubric."
        },
        "vectors": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "key": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "weight": {
                "type": "number"
              },
              "measures": {
                "type": "string"
              }
            },
            "required": [
              "key",
              "name",
              "weight",
              "measures"
            ]
          }
        },
        "history_penalty_overlay": {
          "type": "object",
          "properties": {
            "target_history_weight": {
              "type": "number"
            },
            "base_history_weight": {
              "type": "number"
            },
            "neutral_history_score": {
              "type": "number"
            },
            "formula": {
              "type": "string"
            },
            "applied_before": {
              "type": "string"
            }
          },
          "required": [
            "target_history_weight",
            "base_history_weight",
            "neutral_history_score",
            "formula",
            "applied_before"
          ]
        },
        "post_composite_caps": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "key": {
                "type": "string"
              },
              "cap": {
                "type": [
                  "number",
                  "null"
                ],
                "description": "Ceiling imposed on the composite. Null when the ceiling is carried on the triggering record rather than fixed."
              },
              "applies_when": {
                "type": "string"
              }
            },
            "required": [
              "key",
              "cap",
              "applies_when"
            ]
          }
        },
        "notes": {
          "type": "object",
          "properties": {
            "curator": {
              "type": "string"
            },
            "provenance": {
              "type": "string"
            }
          },
          "required": [
            "curator",
            "provenance"
          ]
        }
      },
      "required": [
        "version",
        "methodology_hash",
        "vectors",
        "history_penalty_overlay",
        "post_composite_caps",
        "notes"
      ]
    }
  },
  "required": [
    "data"
  ]
}