{
  "assessment": {
    "all_ok": false,
    "decision": "STOP_STEP_047C_V7_COOLDOWN_REBOOT_CHECKPOINT",
    "expected_absence": {
      "jobs_created": false,
      "vm121_db_written": false,
      "wg_runtime_changed": false
    },
    "success_checks": {
      "commit_action_zero": true,
      "commit_schema_v7": true,
      "controller_commit_rc_zero": true,
      "cooldown_reason": true,
      "cooldown_step_rc_zero": true,
      "db_enabled_peers_five": true,
      "db_lease_rows_five": true,
      "db_pending_zero": true,
      "final_selector_restored": true,
      "final_service_commit": true,
      "imbalance_cs1_two": true,
      "imbalance_ok": true,
      "peer10_active": true,
      "peer11_cooldown_false": true,
      "post_commit_runs": true,
      "post_conf_commit": true,
      "post_peer_count_five": false,
      "post_script_v7": true,
      "post_selector_ok": true,
      "post_service_running": true,
      "post_state_schema_v2": true,
      "post_state_write": true,
      "post_v7_runs": true,
      "precheck_ok": true,
      "selector_not_changed_during_commit": true,
      "selector_restore_ok": true,
      "service_restarted": true,
      "snapshot_name_len_ok": true,
      "snapshots_rc0_count_four": true,
      "state_action0_after_commit": true,
      "state_restore_ok": true,
      "vm100_post_rc_zero": true,
      "vm100_returned_after_reboot": true,
      "vm121_db_ok": true
    },
    "warnings": [
      "This step intentionally creates a temporary imbalance and injects cooldown for .11.",
      "Expected result: .10 active and .11 cooldown cause no rebalance action.",
      "Then VM100 is rebooted and snapshots are created."
    ]
  },
  "commit_json": {
    "actions": [],
    "commit": {
      "apply_log_sanitized": "",
      "commit_rc": "0",
      "selector_apply_performed": false,
      "selector_apply_rc": "noop",
      "selector_new_sha256": "",
      "selector_update_performed": false,
      "selector_update_rc": "noop",
      "state_file_write_performed": true,
      "state_file_write_rc": "0"
    },
    "idle_seconds": 900,
    "mode": "--commit",
    "now_epoch": 1783686658,
    "reassign_cooldown_seconds": 900,
    "rows": [
      {
        "active_now": true,
        "active_state": true,
        "cooldown_ok": true,
        "delta_bytes": 0,
        "delta_packets": 0,
        "egress_class": "cs1",
        "expected_target_id": "canary_vpn3",
        "in_packets": 0,
        "last_active_epoch": 1783686658,
        "last_reassign_epoch": 0,
        "out_packets": 0,
        "selector_target_match": true,
        "target_id": "canary_vpn3",
        "tunnel_ip": "10.253.1.10"
      },
      {
        "active_now": false,
        "active_state": false,
        "cooldown_ok": false,
        "delta_bytes": 0,
        "delta_packets": 0,
        "egress_class": "cs1",
        "expected_target_id": "canary_vpn3",
        "in_packets": 0,
        "last_active_epoch": 0,
        "last_reassign_epoch": 1783686656,
        "out_packets": 0,
        "selector_target_match": true,
        "target_id": "canary_vpn3",
        "tunnel_ip": "10.253.1.11"
      },
      {
        "active_now": false,
        "active_state": false,
        "cooldown_ok": true,
        "delta_bytes": 0,
        "delta_packets": 0,
        "egress_class": "cs3",
        "expected_target_id": "canary_vpn5",
        "in_packets": 0,
        "last_active_epoch": 0,
        "last_reassign_epoch": 0,
        "out_packets": 0,
        "selector_target_match": true,
        "target_id": "canary_vpn5",
        "tunnel_ip": "10.253.1.12"
      },
      {
        "active_now": false,
        "active_state": false,
        "cooldown_ok": true,
        "delta_bytes": 0,
        "delta_packets": 0,
        "egress_class": "cs4",
        "expected_target_id": "canary_vpn1",
        "in_packets": 0,
        "last_active_epoch": 0,
        "last_reassign_epoch": 0,
        "out_packets": 0,
        "selector_target_match": true,
        "target_id": "canary_vpn1",
        "tunnel_ip": "10.253.1.13"
      },
      {
        "active_now": false,
        "active_state": false,
        "cooldown_ok": true,
        "delta_bytes": 0,
        "delta_packets": 0,
        "egress_class": "cs5",
        "expected_target_id": "canary_vpn2",
        "in_packets": 0,
        "last_active_epoch": 0,
        "last_reassign_epoch": 0,
        "out_packets": 0,
        "selector_target_match": true,
        "target_id": "canary_vpn2",
        "tunnel_ip": "10.253.1.14"
      }
    ],
    "schema": "router-wgpay-egress-local-v7",
    "selector_apply": "/usr/local/sbin/router-wgpay-canary-apply.sh",
    "selector_file": "/etc/router-wgpay-selector.d/peers.conf",
    "state_file": "/var/lib/router-wgpay-egress/state.kv",
    "state_preview": {
      "format": "key_value_v2",
      "state_file": "/var/lib/router-wgpay-egress/state.kv",
      "state_file_write_performed": true,
      "state_file_write_rc": "0",
      "state_preview_sha256": "3648f5b2cff49361b2883487f3aaeee07b13973550239c98087344db9cfb0756",
      "would_write_state_file": true
    },
    "summary": {
      "action_count": 0,
      "action_reason": "no_idle_cooldown_ok_peer_on_most_loaded_class",
      "active_now_count": 1,
      "active_state_count": 1,
      "block_reason": "",
      "blocked": false,
      "idle_count": 4,
      "max_class": "cs1",
      "max_count": 2,
      "min_class": "cs2",
      "min_count": 0,
      "noop": true,
      "rows": 5,
      "selector_apply_would_run": false,
      "selector_file_would_change": false,
      "state_file_would_write": true
    }
  },
  "db_summary": {
    "enabled_peers": 5,
    "forced_leases": 0,
    "lease_rows": 5,
    "pending_jobs": 0
  },
  "mode": "V7_COOLDOWN_GUARD_REBOOT_CHECKPOINT",
  "publish": {
    "facts_json": "https://helena-background-beam-harry.trycloudflare.com/r/e94a0859747d7b96f29c7fdafc2d0351ba603bb0a7e9e5a4/20260710-123056_step047c_v7_cooldown_reboot_checkpoint/facts.json",
    "report_txt": "https://helena-background-beam-harry.trycloudflare.com/r/e94a0859747d7b96f29c7fdafc2d0351ba603bb0a7e9e5a4/20260710-123056_step047c_v7_cooldown_reboot_checkpoint/report.txt",
    "trycf_report": "https://helena-background-beam-harry.trycloudflare.com/r/e94a0859747d7b96f29c7fdafc2d0351ba603bb0a7e9e5a4/20260710-123056_step047c_v7_cooldown_reboot_checkpoint/"
  },
  "schema": "router-step-facts-v1",
  "step": "STEP_047C_V7_COOLDOWN_REBOOT_CHECKPOINT",
  "summary": {
    "commit_action_count": 0,
    "commit_action_reason": "no_idle_cooldown_ok_peer_on_most_loaded_class",
    "db_summary": {
      "enabled_peers": 5,
      "forced_leases": 0,
      "lease_rows": 5,
      "pending_jobs": 0
    },
    "line_10_after_commit": "10.253.1.10 cs1 canary_vpn3",
    "line_10_final": "10.253.1.10 cs1 canary_vpn3",
    "line_11_after_commit": "10.253.1.11 cs1 canary_vpn3",
    "line_11_final": "10.253.1.11 cs2 canary_vpn4",
    "post_conf_mode": "MODE=--commit",
    "post_script_is_v7": "true",
    "post_service_running": "true",
    "post_state_schema": "schema=router-wgpay-egress-local-state-v2",
    "rollback": "/root/rollback-step047c-cooldown-20260710-123056.sh",
    "row10_active_state": true,
    "row11_cooldown_ok": false,
    "snap": "S047C_OK_20260710_1230",
    "snap_rc0": 4,
    "vm100_returned_after_reboot": true
  }
}
