{
  "architecture_plan": "https://helena-background-beam-harry.trycloudflare.com/r/e94a0859747d7b96f29c7fdafc2d0351ba603bb0a7e9e5a4/20260711-095354_step049i_architecture_lock_hmn_egress_recovery/",
  "assessment": {
    "all_ok": true,
    "decision": "PASS_STEP_050G2_SALVAGE_CLEAN_ENV_DAILY_COUNTER_AND_HOOK",
    "success_checks": {
      "all_interfaces_exist": true,
      "all_tables_have_routes": true,
      "cron_fingerprint_unchanged": true,
      "direct_failopen_disabled": true,
      "endpoint_fingerprint_unchanged": true,
      "hook_real_below_threshold": true,
      "hook_real_count_one": true,
      "hook_real_direct_disabled": true,
      "hook_running_enabled": true,
      "hook_temp_count_five": true,
      "hook_temp_direct_disabled": true,
      "hook_temp_would_run": true,
      "last_repair_state_matches": true,
      "network_config_not_changed": true,
      "old_endpoint_quarantined": true,
      "planner_excludes_old_endpoint": true,
      "planner_plan_ok": true,
      "planner_quarantine_enabled": true,
      "prev_050f_only_counter_failed": true,
      "prev_050g_only_counter_failed": true,
      "prod_strict_all_ok": true,
      "production_counter_clean_is_one": true,
      "production_counter_not_zero": true,
      "production_quarantine_lines_preserved": true,
      "rebalance_apply_not_run": true,
      "refresh_not_run": true,
      "runner_direct_disabled": true,
      "runner_real_below_threshold": true,
      "runner_real_count_one": true,
      "temp_state_removed": true,
      "vm100_controller_running": true,
      "vm100_peer_count_five": true,
      "vm100_rc_zero": true,
      "vm101_rc_zero": true,
      "vm121_enabled_peers_five": true,
      "vm121_lease_rows_five": true,
      "vm121_pending_zero": true,
      "vm121_rc_zero": true,
      "vpn2_is_repaired_endpoint": true,
      "watcher_all_healthy": true,
      "watcher_running_enabled": true
    },
    "warnings": [
      "050F and 050G STOP are classified as false counter post-check caused by temp REG_STATE_DIR environment contamination."
    ]
  },
  "hook_real": {
    "commit_enabled": false,
    "cooldown_remaining": 0,
    "cooldown_seconds": 600,
    "daily_fail_count": 1,
    "daily_fail_threshold": 5,
    "decision": "below_threshold_noop",
    "direct_failopen_action": "disabled_not_allowed_in_step050f",
    "direct_failopen_enabled": false,
    "force": false,
    "healthy_vpn_slots": 5,
    "helper_ok": true,
    "last_emergency_refresh_epoch": 0,
    "last_emergency_refresh_status": "NONE",
    "mode": "dry-run",
    "planner_cmd": "/usr/local/sbin/router-egress-hmn-plan-top5.sh",
    "planner_cmd_exists": true,
    "reason": "daily_fail_count_below_threshold",
    "rebalance_apply_cmd": "/usr/local/sbin/router-egress-hmn-rebalance-top5-apply.sh",
    "rebalance_apply_cmd_exists": true,
    "refresh_cmd": "/root/hmn/hmn-refresh-pool-safe.sh",
    "refresh_cmd_exists": true,
    "schema": "router-egress-emergency-refresh-v1",
    "threshold_reached": false,
    "watcher_cmd": "/usr/local/sbin/router-egress-health-repair-watch.sh",
    "watcher_cmd_exists": true
  },
  "hook_temp": {
    "commit_enabled": false,
    "cooldown_remaining": 0,
    "cooldown_seconds": 600,
    "daily_fail_count": 5,
    "daily_fail_threshold": 5,
    "decision": "would_run_emergency_refresh",
    "direct_failopen_action": "disabled_not_allowed_in_step050f",
    "direct_failopen_enabled": false,
    "force": false,
    "healthy_vpn_slots": 5,
    "helper_ok": true,
    "last_emergency_refresh_epoch": 0,
    "last_emergency_refresh_status": "NONE",
    "mode": "dry-run",
    "planner_cmd": "/usr/local/sbin/router-egress-hmn-plan-top5.sh",
    "planner_cmd_exists": true,
    "reason": "threshold_or_force_reached_no_commit_in_dry_run",
    "rebalance_apply_cmd": "/usr/local/sbin/router-egress-hmn-rebalance-top5-apply.sh",
    "rebalance_apply_cmd_exists": true,
    "refresh_cmd": "/root/hmn/hmn-refresh-pool-safe.sh",
    "refresh_cmd_exists": true,
    "schema": "router-egress-emergency-refresh-v1",
    "threshold_reached": true,
    "watcher_cmd": "/usr/local/sbin/router-egress-health-repair-watch.sh",
    "watcher_cmd_exists": true
  },
  "mode": "READ_ONLY_CLEAN_ENV_SALVAGE_CLASSIFY_050F_050G_COUNTER_STOP",
  "planner": {
    "changes_count": 1,
    "decision": "plan_ok",
    "desired_count": 5,
    "duplicate_excluded_count": 0,
    "plan": [
      {
        "change": false,
        "current": "178.215.227.13:44408",
        "iface": "vpn1",
        "slot": "egress1",
        "target": "178.215.227.13:44408",
        "target_avg_ms": "50.900",
        "target_rank": "4"
      },
      {
        "change": true,
        "current": "151.236.30.139:33998",
        "iface": "vpn2",
        "slot": "egress2",
        "target": "192.121.163.235:42530",
        "target_avg_ms": "39.008",
        "target_rank": "1"
      },
      {
        "change": false,
        "current": "95.211.68.119:45176",
        "iface": "vpn3",
        "slot": "egress3",
        "target": "95.211.68.119:45176",
        "target_avg_ms": "44.271",
        "target_rank": "2"
      },
      {
        "change": false,
        "current": "78.31.250.16:41729",
        "iface": "vpn4",
        "slot": "egress4",
        "target": "78.31.250.16:41729",
        "target_avg_ms": "50.697",
        "target_rank": "3"
      },
      {
        "change": false,
        "current": "157.173.27.69:41797",
        "iface": "vpn5",
        "slot": "egress5",
        "target": "157.173.27.69:41797",
        "target_avg_ms": "56.803",
        "target_rank": "5"
      }
    ],
    "pool": "/root/hmn/cache/ok-awg1-strict-foreign-latest.tsv",
    "pool_mtime_epoch": 1783702742,
    "quarantine_enabled": true,
    "quarantine_excluded_count": 1,
    "schema": "router-egress-hmn-plan-top5-v2"
  },
  "previous_050f_facts_url": "https://helena-background-beam-harry.trycloudflare.com/r/e94a0859747d7b96f29c7fdafc2d0351ba603bb0a7e9e5a4/20260711-105707_step050f_emergency_refresh_skeleton_no_auto_direct/facts.json",
  "previous_050g_facts_url": "https://helena-background-beam-harry.trycloudflare.com/r/e94a0859747d7b96f29c7fdafc2d0351ba603bb0a7e9e5a4/20260711-110520_step050g_hook_emergency_refresh_decision_dryrun_only/facts.json",
  "publish": {
    "architecture_plan": "https://helena-background-beam-harry.trycloudflare.com/r/e94a0859747d7b96f29c7fdafc2d0351ba603bb0a7e9e5a4/20260711-095354_step049i_architecture_lock_hmn_egress_recovery/",
    "facts_json": "https://helena-background-beam-harry.trycloudflare.com/r/e94a0859747d7b96f29c7fdafc2d0351ba603bb0a7e9e5a4/20260711-110937_step050g2_salvage_clean_env_daily_counter_and_hook/facts.json",
    "report_txt": "https://helena-background-beam-harry.trycloudflare.com/r/e94a0859747d7b96f29c7fdafc2d0351ba603bb0a7e9e5a4/20260711-110937_step050g2_salvage_clean_env_daily_counter_and_hook/report.txt",
    "trycf_report": "https://helena-background-beam-harry.trycloudflare.com/r/e94a0859747d7b96f29c7fdafc2d0351ba603bb0a7e9e5a4/20260711-110937_step050g2_salvage_clean_env_daily_counter_and_hook/"
  },
  "runner_real": {
    "commit_enabled": false,
    "cooldown_remaining": 0,
    "cooldown_seconds": 600,
    "daily_fail_count": 1,
    "daily_fail_threshold": 5,
    "decision": "below_threshold_noop",
    "direct_failopen_action": "disabled_not_allowed_in_step050f",
    "direct_failopen_enabled": false,
    "force": false,
    "healthy_vpn_slots": 5,
    "helper_ok": true,
    "last_emergency_refresh_epoch": 0,
    "last_emergency_refresh_status": "NONE",
    "mode": "dry-run",
    "planner_cmd": "/usr/local/sbin/router-egress-hmn-plan-top5.sh",
    "planner_cmd_exists": true,
    "reason": "daily_fail_count_below_threshold",
    "rebalance_apply_cmd": "/usr/local/sbin/router-egress-hmn-rebalance-top5-apply.sh",
    "rebalance_apply_cmd_exists": true,
    "refresh_cmd": "/root/hmn/hmn-refresh-pool-safe.sh",
    "refresh_cmd_exists": true,
    "schema": "router-egress-emergency-refresh-v1",
    "threshold_reached": false,
    "watcher_cmd": "/usr/local/sbin/router-egress-health-repair-watch.sh",
    "watcher_cmd_exists": true
  },
  "schema": "router-step-facts-v1",
  "step": "STEP_050G2_SALVAGE_CLEAN_ENV_DAILY_COUNTER_AND_HOOK",
  "summary": {
    "classification": "050F_050G_STOP_WAS_TEMP_REG_STATE_DIR_ENV_LEAK_FALSE_COUNTER_CHECK",
    "direct_failopen_enabled": false,
    "hook_enabled": "true",
    "hook_real_daily_fail_count": 1,
    "hook_real_decision": "below_threshold_noop",
    "hook_running": "true",
    "hook_temp_daily_fail_count": 5,
    "hook_temp_decision": "would_run_emergency_refresh",
    "ifaces": {
      "vpn1": true,
      "vpn2": true,
      "vpn3": true,
      "vpn4": true,
      "vpn5": true
    },
    "next_step": "STEP_050H_EMERGENCY_REFRESH_THRESHOLD_COMMIT_GUARD_NO_REFRESH",
    "old_endpoint": "109.248.198.4:37129",
    "old_endpoint_quarantine_ts": "1783766954",
    "planner_quarantine_excluded_count": 1,
    "planner_targets": [
      "178.215.227.13:44408",
      "192.121.163.235:42530",
      "95.211.68.119:45176",
      "78.31.250.16:41729",
      "157.173.27.69:41797"
    ],
    "prod_daily_counter_clean_post": "1",
    "prod_daily_counter_clean_pre": "1",
    "prod_quarantine_lines_post": "2",
    "prod_quarantine_lines_pre": "2",
    "repaired_endpoint": "151.236.30.139:33998",
    "routes": {
      "201": true,
      "202": true,
      "203": true,
      "204": true,
      "205": true
    },
    "runner_real_daily_fail_count": 1,
    "runner_real_decision": "below_threshold_noop",
    "strict": {
      "vpn1": true,
      "vpn2": true,
      "vpn3": true,
      "vpn4": true,
      "vpn5": true
    },
    "vm100_peer_count": "5",
    "vm121_db": {
      "enabled_peers": 5,
      "lease_rows": 5,
      "pending_jobs": 0,
      "postgres_container": "wgaccess-postgres"
    },
    "vpn2_endpoint": "151.236.30.139:33998",
    "watcher_all_healthy": true
  },
  "vm121_db": {
    "enabled_peers": 5,
    "lease_rows": 5,
    "pending_jobs": 0,
    "postgres_container": "wgaccess-postgres"
  },
  "watcher": {
    "any_action": false,
    "mode": "--dry-run",
    "run_mode": "once",
    "schema": "router-egress-health-repair-watch-v2",
    "slots": [
      {
        "action": "none",
        "decision": "healthy",
        "fail_count": 0,
        "iface": "vpn1",
        "required_confirm": "",
        "slot": "egress1",
        "status_ok": true
      },
      {
        "action": "none",
        "decision": "healthy",
        "fail_count": 0,
        "iface": "vpn2",
        "required_confirm": "",
        "slot": "egress2",
        "status_ok": true
      },
      {
        "action": "none",
        "decision": "healthy",
        "fail_count": 0,
        "iface": "vpn3",
        "required_confirm": "",
        "slot": "egress3",
        "status_ok": true
      },
      {
        "action": "none",
        "decision": "healthy",
        "fail_count": 0,
        "iface": "vpn4",
        "required_confirm": "",
        "slot": "egress4",
        "status_ok": true
      },
      {
        "action": "none",
        "decision": "healthy",
        "fail_count": 0,
        "iface": "vpn5",
        "required_confirm": "",
        "slot": "egress5",
        "status_ok": true
      }
    ]
  }
}
