{
  "architecture_plan": "https://helena-background-beam-harry.trycloudflare.com/r/e94a0859747d7b96f29c7fdafc2d0351ba603bb0a7e9e5a4/20260711-095354_step049i_architecture_lock_hmn_egress_recovery/",
  "assessment": {
    "all_ok": false,
    "decision": "STOP_STEP_050E_SIMULATE_REPAIR_RECORDS_QUARANTINE_AND_COUNTER",
    "success_checks": {
      "all_interfaces_exist": true,
      "all_tables_have_routes": true,
      "cron_fingerprint_unchanged": true,
      "daily_counter_incremented": true,
      "dispatcher_before_ready": true,
      "endpoint_changed": true,
      "intentional_ifdown_broke_vpn2": true,
      "no_auto_rollback": true,
      "old_endpoint_has_quarantine_ts": true,
      "planner_after_does_not_target_old_endpoint": true,
      "planner_after_plan_ok": true,
      "planner_after_quarantine_excluded": true,
      "pre_old_endpoint_present": true,
      "prod_strict_all_ok": true,
      "quarantine_lines_incremented": true,
      "real_repair_apply_performed": true,
      "state_last_egress_matches": true,
      "state_last_iface_matches": true,
      "state_last_new_matches": true,
      "state_last_old_matches": true,
      "vm100_controller_running": true,
      "vm100_peer_count_five": true,
      "vm101_rc_zero": true,
      "vm121_pending_zero": false,
      "watcher_all_healthy_after": true,
      "watcher_cycle_repaired": true,
      "watcher_restarted": true
    },
    "warnings": []
  },
  "dispatcher_before": {
    "adapter_dryrun_decision": "dry_run_ok",
    "apply_performed": false,
    "candidate_endpoint": "151.236.30.139:33998",
    "decision": "dry_run_ok",
    "iface": "vpn2",
    "mode": "--dry-run",
    "reason": "dispatcher_ready",
    "reason_input": "health_fail",
    "required_dispatch_confirm": "DISPATCH_egress2_151.236.30.139:33998",
    "safety": {
      "commit_requires_dispatch_confirm": true,
      "dry_run_no_ifup_ifdown": true,
      "dry_run_no_uci_set": true
    },
    "schema": "router-egress-recovery-dispatcher-v1",
    "slot": "egress2"
  },
  "mode": "CONTROLLED_VPN2_IFDOWN_REAL_WATCHER_REPAIR_PROVES_QUARANTINE_AND_COUNTER",
  "planner_after": {
    "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"
  },
  "planner_before": {
    "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": "109.248.198.4:37129",
        "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": 0,
    "schema": "router-egress-hmn-plan-top5-v2"
  },
  "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-104821_step050e_simulate_repair_records_quarantine_and_counter/facts.json",
    "report_txt": "https://helena-background-beam-harry.trycloudflare.com/r/e94a0859747d7b96f29c7fdafc2d0351ba603bb0a7e9e5a4/20260711-104821_step050e_simulate_repair_records_quarantine_and_counter/report.txt",
    "trycf_report": "https://helena-background-beam-harry.trycloudflare.com/r/e94a0859747d7b96f29c7fdafc2d0351ba603bb0a7e9e5a4/20260711-104821_step050e_simulate_repair_records_quarantine_and_counter/"
  },
  "schema": "router-step-facts-v1",
  "step": "STEP_050E_SIMULATE_REPAIR_RECORDS_QUARANTINE_AND_COUNTER",
  "summary": {
    "daily_counter_post": 1,
    "daily_counter_pre": 0,
    "dispatcher_before_candidate": "151.236.30.139:33998",
    "endpoint_fingerprint_post": "720e542d3d50d48894956385ba15d5e0573b4f45b7a00705b15c2ae7b9091a8a",
    "endpoint_fingerprint_pre": "7398c52bdd06da0d7e1a03769e49d0859fdf58b153278a5f8a63a4e9b50fa53b",
    "ifaces": {
      "vpn1": true,
      "vpn2": true,
      "vpn3": true,
      "vpn4": true,
      "vpn5": true
    },
    "latest_quarantine_ts_old": "1783766954",
    "new_endpoint_vpn2": "151.236.30.139:33998",
    "next_step": "STEP_050F_EMERGENCY_REFRESH_SKELETON_NO_AUTO_DIRECT",
    "old_endpoint_vpn2": "109.248.198.4:37129",
    "planner_after_egress2": {
      "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"
    },
    "planner_after_quarantine_excluded_count": 1,
    "planner_after_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"
    ],
    "quarantine_lines_post": 2,
    "quarantine_lines_pre": 1,
    "rollback": "/root/rollback-step050e-real-repair-proof-20260711-104821.sh",
    "routes": {
      "201": true,
      "202": true,
      "203": true,
      "204": true,
      "205": true
    },
    "state_last_repair_new_endpoint": "151.236.30.139:33998",
    "state_last_repair_old_endpoint": "109.248.198.4:37129",
    "strict": {
      "vpn1": true,
      "vpn2": true,
      "vpn3": true,
      "vpn4": true,
      "vpn5": true
    },
    "vm100_peer_count": "5",
    "vm121_db": {},
    "watcher_all_healthy_after": true,
    "watcher_enabled_post": "true",
    "watcher_running_post": "true"
  },
  "watcher_post": {
    "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
      }
    ]
  }
}
