{
  "specversion": "1.0",
  "id": "00000010-0000-4000-8000-000000000000",
  "source": "/heart/com.example.aircon/unit-3",
  "type": "heart.rule",
  "time": "2026-11-12T14:30:00Z",
  "datacontenttype": "application/json",
  "dataschema": "https://heartcortex.ai/schemas/1.0/rule.schema.json",
  "heartversion": "1.0",
  "heartprivacy": "internal",
  "data": {
    "id": "learned-gentle-ramp",
    "enabled": false,
    "origin": "learned",
    "status": "proposed",
    "description": "Learned: on this model, a gentler ramp overshoots less when it is hot outside.",
    "when": {
      "signal": "room.temperature",
      "feature": "overshoot",
      "op": ">=",
      "value": 5
    },
    "then": {
      "capability": "set_ramp_rate",
      "arguments": {
        "ramp_rate": 1.6
      },
      "expect": [
        {
          "signal": "room.temperature",
          "feature": "overshoot",
          "op": "<",
          "value": 5,
          "withinSec": 5400
        }
      ],
      "undoIf": {
        "any": [
          {
            "signal": "room.temperature",
            "feature": "overshoot",
            "op": ">",
            "value": 15,
            "withinSec": 5400
          }
        ],
        "newAlert": "warning"
      }
    },
    "envelope": {
      "arguments": {
        "ramp_rate": {
          "min": 1.6,
          "max": 2.0,
          "maxStep": 0.2
        }
      },
      "maxPerDay": 4,
      "cooldownSec": 600
    },
    "evidence": {
      "trials": [
        "8b3c4d5e-6f7a-4b8c-9d0e-1f2a3b4c5d6e"
      ],
      "kept": 1,
      "undone": 0,
      "undoneInARow": 0
    }
  }
}
