{
  "schemaVersion": 1,
  "evidenceType": "synthetic deterministic example; not hardware measurements or a paper reproduction",
  "generatedAt": "2026-10-13T16:27:02.518Z",
  "runtime": "v24.21.0",
  "sourceUrl": "https://hesela.com/research/observer-gap-model.mjs",
  "sourceSha256": "7ddd68473cf748d3672aee2a1090e8d5504d091e37ff6f1bdd5639ea977b4b8b",
  "method": "Alarm when age strictly exceeds its limit; progress alarm also requires pending work.",
  "limits": "Invented millisecond values and thresholds; no root-cause attribution, partial completion, workload normalization or recovery.",
  "cases": [
    {
      "name": "Recent progress",
      "input": {
        "nowMs": 1000,
        "heartbeatLimitMs": 100,
        "progressLimitMs": 200,
        "name": "Recent progress",
        "heartbeatAtMs": 990,
        "progressAtMs": 980,
        "pending": 1
      },
      "output": {
        "heartbeatAgeMs": 10,
        "progressAgeMs": 20,
        "pending": 1,
        "heartbeatAlarm": false,
        "progressAlarm": false
      }
    },
    {
      "name": "Data work stalled; heartbeat alive",
      "input": {
        "nowMs": 1000,
        "heartbeatLimitMs": 100,
        "progressLimitMs": 200,
        "name": "Data work stalled; heartbeat alive",
        "heartbeatAtMs": 990,
        "progressAtMs": 100,
        "pending": 1
      },
      "output": {
        "heartbeatAgeMs": 10,
        "progressAgeMs": 900,
        "pending": 1,
        "heartbeatAlarm": false,
        "progressAlarm": true
      }
    },
    {
      "name": "Both observations stale",
      "input": {
        "nowMs": 1000,
        "heartbeatLimitMs": 100,
        "progressLimitMs": 200,
        "name": "Both observations stale",
        "heartbeatAtMs": 100,
        "progressAtMs": 100,
        "pending": 1
      },
      "output": {
        "heartbeatAgeMs": 900,
        "progressAgeMs": 900,
        "pending": 1,
        "heartbeatAlarm": true,
        "progressAlarm": true
      }
    },
    {
      "name": "Idle; no pending work",
      "input": {
        "nowMs": 1000,
        "heartbeatLimitMs": 100,
        "progressLimitMs": 200,
        "name": "Idle; no pending work",
        "heartbeatAtMs": 990,
        "progressAtMs": 100,
        "pending": 0
      },
      "output": {
        "heartbeatAgeMs": 10,
        "progressAgeMs": 900,
        "pending": 0,
        "heartbeatAlarm": false,
        "progressAlarm": false
      }
    }
  ]
}
