{
  "tool_id": "hrv_deload_trigger",
  "slug": "hrv-deload-trigger",
  "path": "/hrv-deload-trigger/",
  "mode": "engine_module",
  "usage": "Client-side calculator. Open https://aifithub.io/hrv-deload-trigger/ and fill in the inputs; results render in-browser. Also importable as ES module from https://aifithub.io/engines/hrv-deload-trigger.js — call compute(input) with the JSON shape below.",
  "methodology": "https://aifithub.io/methodology/hrv-deload-trigger/",
  "sample_input": {
    "tool": "hrv_deload_trigger",
    "daily": "55,57,52,48,46,47,45",
    "baseline_30_day": 56,
    "baseline_std_dev": 0
  },
  "input_schema": {
    "type": "object",
    "properties": {
      "tool": {
        "type": "string"
      },
      "daily": {
        "type": "string"
      },
      "baseline_30_day": {
        "type": "number"
      },
      "baseline_std_dev": {
        "type": "number"
      }
    },
    "required": [
      "tool",
      "daily",
      "baseline_30_day"
    ]
  },
  "output_schema": {
    "type": "object",
    "properties": {
      "recommendation": {
        "type": "string",
        "enum": [
          "yes",
          "maybe",
          "no"
        ]
      },
      "rollingMean7Day": {
        "type": "number"
      },
      "rollingDeviationPct": {
        "type": "number"
      },
      "smallestWorthwhileChange": {
        "type": "number"
      },
      "daysBelowSwcInLastWeek": {
        "type": "number"
      },
      "longestConsecutiveBelowSwc": {
        "type": "number"
      },
      "detail": {
        "type": "array"
      }
    }
  }
}
