{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://cognitum.one/schemas/cog-pose-estimation-config-v1.json",
  "title": "Pose Estimation Cog Runtime Config",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "sensing_url": {
      "type": "string",
      "format": "uri",
      "default": "http://127.0.0.1:3000/api/v1/sensing/latest",
      "description": "URL of the local sensing-server's latest-snapshot endpoint."
    },
    "model_path": {
      "type": "string",
      "description": "Filesystem path to the model weights (safetensors or Hailo HEF). Resolved relative to /var/lib/cognitum/apps/pose-estimation/ when not absolute."
    },
    "poll_ms": {
      "type": "integer",
      "minimum": 10,
      "maximum": 1000,
      "default": 40,
      "description": "How often to poll the sensing-server in milliseconds."
    },
    "min_confidence": {
      "type": "number",
      "minimum": 0,
      "maximum": 1,
      "default": 0.185,
      "description": "Drop frames where the inferred pose confidence is below this threshold. pose_v1 has no confidence head, so every frame carries the model's published per-frame confidence (0.185 = validation PCK@50); the default is pinned to that value so a default install actually emits frames. Raising it above 0.185 suppresses ALL pose.frame events (the runtime warns when this happens)."
    }
  },
  "required": ["model_path"]
}
