{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "kind": {
      "type": "string",
      "enum": ["manual", "baseline", "increase", "hold", "add_reps", "decrease", "deload", "reset", "reentry"]
    },
    "reason": {
      "type": "string",
      "enum": [
        "mixed_contexts",
        "pending",
        "template",
        "anchor",
        "no_history",
        "conventions_changed",
        "all_targets_met",
        "targets_missed",
        "two_failures",
        "switch_to_double",
        "reps_remaining",
        "below_range",
        "effort_guard",
        "weekly_cadence",
        "gap_14_days",
        "gap_28_days",
        "jump_capped",
        "deload_week",
        "add_weight_requires_confirmation",
        "duration_step",
        "distance_cap"
      ]
    },
    "from_mass_kg": {
      "type": "string"
    },
    "to_mass_kg": {
      "type": "string"
    },
    "evidence_session_ids": {
      "maxItems": 100,
      "type": "array",
      "items": {
        "type": "string",
        "format": "uuid",
        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
      }
    },
    "suggested_model": {
      "type": "string",
      "const": "double"
    },
    "proposed_load_mode": {
      "type": "string",
      "const": "external"
    }
  },
  "required": ["kind", "reason", "evidence_session_ids"],
  "additionalProperties": false,
  "$id": "https://docs.sendtopigeon.com/schemas/wn-none-decision@1.schema.json",
  "title": "Pigeon Open Data: wn-none-decision@1",
  "$comment": "Apache-2.0. Structural schema; use Zod/parseRecord for semantic invariants. This published schema URL is immutable.",
  "examples": [
    {
      "kind": "manual",
      "reason": "template",
      "evidence_session_ids": []
    }
  ]
}
