{
  "assessment": {
    "all_ok": true,
    "decision": "PASS_STEP_046K_VM100_LOCAL_CONTROLLER_SYNTHETIC_IMBALANCE_DRYRUN",
    "expected_absence": {
      "jobs_created": false,
      "selector_changed": false,
      "service_enabled": false,
      "vm121_db_written": false,
      "wg_runtime_changed": false
    },
    "success_checks": {
      "allowed_ip_count_final_five": true,
      "apply_refused": true,
      "db_enabled_peers_five": true,
      "db_lease_rows_five": true,
      "db_pending_zero": true,
      "line_12_final_ok": true,
      "live_action_count_zero": true,
      "live_dry_run_rc_zero": true,
      "live_noop": true,
      "live_rows_five": true,
      "peer_count_final_five": true,
      "script_executable": true,
      "selector_rows_final_five": true,
      "service_disabled": true,
      "service_not_running": true,
      "synthetic_active_pin_action_count_one": true,
      "synthetic_active_pin_does_not_move_active_10": true,
      "synthetic_active_pin_moves_idle_11": true,
      "synthetic_active_pin_moves_to_cs2": true,
      "synthetic_active_pin_rc_zero": true,
      "synthetic_imbalance_action_count_one": true,
      "synthetic_imbalance_moves_to_cs2": true,
      "synthetic_imbalance_rc_zero": true,
      "synthetic_imbalance_to_target_vpn4": true,
      "uci_peer_sections_zero": true,
      "vm100_046k_rc_zero": true,
      "vm101_mapper_ok": true,
      "vm121_db_safety_ok": true
    },
    "warnings": [
      "Controller remains disabled and apply remains refused.",
      "Synthetic selectors are temporary /tmp files and do not alter live selector.",
      "This validates idle-only rebalance preview and active-peer pinning preview."
    ]
  },
  "changes": {
    "jobs_created": "NO",
    "selector_changed": "NO",
    "vm100_controller_script_patched": "YES",
    "vm100_service_enabled": "NO",
    "vm100_service_running": "NO",
    "vm121_db_changed": "NO",
    "wg_runtime_changed": "NO"
  },
  "db_summary": {
    "enabled_peers": 5,
    "forced_leases": 0,
    "lease_rows": 5,
    "pending_jobs": 0
  },
  "live_dry_run_json": {
    "actions": [],
    "mode": "dry-run",
    "rows": [
      {
        "active_now": false,
        "egress_class": "cs1",
        "expected_target_id": "canary_vpn3",
        "in_packets": 0,
        "out_packets": 0,
        "selector_target_match": true,
        "target_id": "canary_vpn3",
        "total_bytes": 0,
        "total_packets": 0,
        "tunnel_ip": "10.253.1.10"
      },
      {
        "active_now": false,
        "egress_class": "cs2",
        "expected_target_id": "canary_vpn4",
        "in_packets": 0,
        "out_packets": 0,
        "selector_target_match": true,
        "target_id": "canary_vpn4",
        "total_bytes": 0,
        "total_packets": 0,
        "tunnel_ip": "10.253.1.11"
      },
      {
        "active_now": false,
        "egress_class": "cs3",
        "expected_target_id": "canary_vpn5",
        "in_packets": 0,
        "out_packets": 0,
        "selector_target_match": true,
        "target_id": "canary_vpn5",
        "total_bytes": 0,
        "total_packets": 0,
        "tunnel_ip": "10.253.1.12"
      },
      {
        "active_now": false,
        "egress_class": "cs4",
        "expected_target_id": "canary_vpn1",
        "in_packets": 0,
        "out_packets": 0,
        "selector_target_match": true,
        "target_id": "canary_vpn1",
        "total_bytes": 0,
        "total_packets": 0,
        "tunnel_ip": "10.253.1.13"
      },
      {
        "active_now": false,
        "egress_class": "cs5",
        "expected_target_id": "canary_vpn2",
        "in_packets": 0,
        "out_packets": 0,
        "selector_target_match": true,
        "target_id": "canary_vpn2",
        "total_bytes": 0,
        "total_packets": 0,
        "tunnel_ip": "10.253.1.14"
      }
    ],
    "schema": "router-wgpay-egress-local-v2",
    "selector_file": "/etc/router-wgpay-selector.d/peers.conf",
    "summary": {
      "action_count": 0,
      "action_reason": "already_balanced",
      "active_count": 0,
      "block_reason": "",
      "blocked": false,
      "idle_count": 5,
      "max_class": "cs1",
      "max_count": 1,
      "min_class": "cs1",
      "min_count": 1,
      "noop": true,
      "rows": 5,
      "selector_apply_would_run": false,
      "selector_file_would_change": false,
      "state_file_would_write": false
    },
    "synthetic_active_ips": ""
  },
  "mode": "VM100_LOCAL_CONTROLLER_V2_DRYRUN_SYNTHETIC_IMBALANCE",
  "publish": {
    "latest_report": "https://helena-background-beam-harry.trycloudflare.com/r/e94a0859747d7b96f29c7fdafc2d0351ba603bb0a7e9e5a4/latest/report.txt",
    "trycf_report": "https://helena-background-beam-harry.trycloudflare.com/r/e94a0859747d7b96f29c7fdafc2d0351ba603bb0a7e9e5a4/20260710-101958_step046k_vm100_local_controller_synthetic_imbalance_dryrun/"
  },
  "schema": "router-step-facts-v1",
  "step": "STEP_046K_VM100_LOCAL_CONTROLLER_SYNTHETIC_IMBALANCE_DRYRUN",
  "summary": {
    "allowed_ip_count_final": "5",
    "apply_refusal_rc": "78",
    "init_enabled_final": "false",
    "line_12_final": "10.253.1.12 cs3 canary_vpn5",
    "live_summary": {
      "action_count": 0,
      "action_reason": "already_balanced",
      "active_count": 0,
      "block_reason": "",
      "blocked": false,
      "idle_count": 5,
      "max_class": "cs1",
      "max_count": 1,
      "min_class": "cs1",
      "min_count": 1,
      "noop": true,
      "rows": 5,
      "selector_apply_would_run": false,
      "selector_file_would_change": false,
      "state_file_would_write": false
    },
    "peer_count_final": "5",
    "rollback": "/root/rollback-step046k-vm100-controller-v2-20260710-101958.sh",
    "script": "/usr/local/sbin/router-wgpay-egress-local.sh",
    "script_sha256": "d7d18cf80ba4c9e73dd39e414fc5d9da1e45c378108c649533343387ca72157f",
    "service_running_final": "false",
    "synthetic_active_pin_action": {
      "from_class": "cs1",
      "from_target_id": "canary_vpn3",
      "reason": "idle_rebalance_most_loaded_to_least_loaded",
      "to_class": "cs2",
      "to_target_id": "canary_vpn4",
      "tunnel_ip": "10.253.1.11"
    },
    "synthetic_active_pin_summary": {
      "action_count": 1,
      "action_reason": "idle_rebalance_most_loaded_to_least_loaded",
      "active_count": 1,
      "block_reason": "",
      "blocked": false,
      "idle_count": 4,
      "max_class": "cs1",
      "max_count": 2,
      "min_class": "cs2",
      "min_count": 0,
      "noop": false,
      "rows": 5,
      "selector_apply_would_run": false,
      "selector_file_would_change": false,
      "state_file_would_write": false
    },
    "synthetic_imbalance_action": {
      "from_class": "cs1",
      "from_target_id": "canary_vpn3",
      "reason": "idle_rebalance_most_loaded_to_least_loaded",
      "to_class": "cs2",
      "to_target_id": "canary_vpn4",
      "tunnel_ip": "10.253.1.10"
    },
    "synthetic_imbalance_summary": {
      "action_count": 1,
      "action_reason": "idle_rebalance_most_loaded_to_least_loaded",
      "active_count": 0,
      "block_reason": "",
      "blocked": false,
      "idle_count": 5,
      "max_class": "cs1",
      "max_count": 2,
      "min_class": "cs2",
      "min_count": 0,
      "noop": false,
      "rows": 5,
      "selector_apply_would_run": false,
      "selector_file_would_change": false,
      "state_file_would_write": false
    },
    "uci_peer_sections_final": "0"
  },
  "synthetic_active_pin_json": {
    "actions": [
      {
        "from_class": "cs1",
        "from_target_id": "canary_vpn3",
        "reason": "idle_rebalance_most_loaded_to_least_loaded",
        "to_class": "cs2",
        "to_target_id": "canary_vpn4",
        "tunnel_ip": "10.253.1.11"
      }
    ],
    "mode": "dry-run",
    "rows": [
      {
        "active_now": true,
        "egress_class": "cs1",
        "expected_target_id": "canary_vpn3",
        "in_packets": 0,
        "out_packets": 0,
        "selector_target_match": true,
        "target_id": "canary_vpn3",
        "total_bytes": 0,
        "total_packets": 0,
        "tunnel_ip": "10.253.1.10"
      },
      {
        "active_now": false,
        "egress_class": "cs1",
        "expected_target_id": "canary_vpn3",
        "in_packets": 0,
        "out_packets": 0,
        "selector_target_match": true,
        "target_id": "canary_vpn3",
        "total_bytes": 0,
        "total_packets": 0,
        "tunnel_ip": "10.253.1.11"
      },
      {
        "active_now": false,
        "egress_class": "cs3",
        "expected_target_id": "canary_vpn5",
        "in_packets": 0,
        "out_packets": 0,
        "selector_target_match": true,
        "target_id": "canary_vpn5",
        "total_bytes": 0,
        "total_packets": 0,
        "tunnel_ip": "10.253.1.12"
      },
      {
        "active_now": false,
        "egress_class": "cs4",
        "expected_target_id": "canary_vpn1",
        "in_packets": 0,
        "out_packets": 0,
        "selector_target_match": true,
        "target_id": "canary_vpn1",
        "total_bytes": 0,
        "total_packets": 0,
        "tunnel_ip": "10.253.1.13"
      },
      {
        "active_now": false,
        "egress_class": "cs5",
        "expected_target_id": "canary_vpn2",
        "in_packets": 0,
        "out_packets": 0,
        "selector_target_match": true,
        "target_id": "canary_vpn2",
        "total_bytes": 0,
        "total_packets": 0,
        "tunnel_ip": "10.253.1.14"
      }
    ],
    "schema": "router-wgpay-egress-local-v2",
    "selector_file": "/tmp/step046k-synthetic-active-pin.26935",
    "summary": {
      "action_count": 1,
      "action_reason": "idle_rebalance_most_loaded_to_least_loaded",
      "active_count": 1,
      "block_reason": "",
      "blocked": false,
      "idle_count": 4,
      "max_class": "cs1",
      "max_count": 2,
      "min_class": "cs2",
      "min_count": 0,
      "noop": false,
      "rows": 5,
      "selector_apply_would_run": false,
      "selector_file_would_change": false,
      "state_file_would_write": false
    },
    "synthetic_active_ips": "10.253.1.10"
  },
  "synthetic_imbalance_json": {
    "actions": [
      {
        "from_class": "cs1",
        "from_target_id": "canary_vpn3",
        "reason": "idle_rebalance_most_loaded_to_least_loaded",
        "to_class": "cs2",
        "to_target_id": "canary_vpn4",
        "tunnel_ip": "10.253.1.10"
      }
    ],
    "mode": "dry-run",
    "rows": [
      {
        "active_now": false,
        "egress_class": "cs1",
        "expected_target_id": "canary_vpn3",
        "in_packets": 0,
        "out_packets": 0,
        "selector_target_match": true,
        "target_id": "canary_vpn3",
        "total_bytes": 0,
        "total_packets": 0,
        "tunnel_ip": "10.253.1.10"
      },
      {
        "active_now": false,
        "egress_class": "cs1",
        "expected_target_id": "canary_vpn3",
        "in_packets": 0,
        "out_packets": 0,
        "selector_target_match": true,
        "target_id": "canary_vpn3",
        "total_bytes": 0,
        "total_packets": 0,
        "tunnel_ip": "10.253.1.11"
      },
      {
        "active_now": false,
        "egress_class": "cs3",
        "expected_target_id": "canary_vpn5",
        "in_packets": 0,
        "out_packets": 0,
        "selector_target_match": true,
        "target_id": "canary_vpn5",
        "total_bytes": 0,
        "total_packets": 0,
        "tunnel_ip": "10.253.1.12"
      },
      {
        "active_now": false,
        "egress_class": "cs4",
        "expected_target_id": "canary_vpn1",
        "in_packets": 0,
        "out_packets": 0,
        "selector_target_match": true,
        "target_id": "canary_vpn1",
        "total_bytes": 0,
        "total_packets": 0,
        "tunnel_ip": "10.253.1.13"
      },
      {
        "active_now": false,
        "egress_class": "cs5",
        "expected_target_id": "canary_vpn2",
        "in_packets": 0,
        "out_packets": 0,
        "selector_target_match": true,
        "target_id": "canary_vpn2",
        "total_bytes": 0,
        "total_packets": 0,
        "tunnel_ip": "10.253.1.14"
      }
    ],
    "schema": "router-wgpay-egress-local-v2",
    "selector_file": "/tmp/step046k-synthetic-imbalance.26935",
    "summary": {
      "action_count": 1,
      "action_reason": "idle_rebalance_most_loaded_to_least_loaded",
      "active_count": 0,
      "block_reason": "",
      "blocked": false,
      "idle_count": 5,
      "max_class": "cs1",
      "max_count": 2,
      "min_class": "cs2",
      "min_count": 0,
      "noop": false,
      "rows": 5,
      "selector_apply_would_run": false,
      "selector_file_would_change": false,
      "state_file_would_write": false
    },
    "synthetic_active_ips": ""
  }
}
