{
  "assessment": {
    "all_ok": true,
    "blockers": [],
    "decision": "PASS_STEP_045D_REBALANCER_APPLY_CONTRACT_DESIGN",
    "expected_absence": {
      "activity_eval_written_to_db": false,
      "client_config_published": false,
      "contract_created_jobs": false,
      "contract_wrote_db": false,
      "jobs_created": false,
      "manual_agent_service_start_used": false,
      "new_traffic_delta_seen": false,
      "private_material_published": false,
      "rebalancer_applied": false,
      "selector_changed": false,
      "timer_disabled": false,
      "vm100_changed": false,
      "vm101_changed": false,
      "vm121_db_changed": false,
      "wg_peer_runtime_changed": false
    },
    "success_checks": {
      "apply_refused": true,
      "contract_apply_disabled_now": true,
      "contract_created": true,
      "contract_example_action_idle": true,
      "contract_example_action_not_active_move": true,
      "contract_has_rollback_strategy": true,
      "contract_has_transaction_steps": true,
      "contract_job_payload_json_required": true,
      "contract_mode_design_readonly": true,
      "contract_preserve_baseline_invariants": true,
      "contract_required_schema_all_ok": true,
      "db_active_one": true,
      "db_enabled_peers_five": true,
      "db_forced_zero": true,
      "db_idle_four": true,
      "db_lease_rows_five": true,
      "db_pending_zero": true,
      "live_action_count_zero": true,
      "live_active_one": true,
      "live_idle_four": true,
      "live_lease_rows_five": true,
      "live_mode_dryrun": true,
      "live_noop_expected": true,
      "live_rebalancer_dryrun_ok": true,
      "live_target_count_five": true,
      "public_index_rebuilt": true,
      "public_report_created": true,
      "rebalancer_executable": true,
      "sampler_executable": true,
      "sampler_post_active_by_new_delta_zero": true,
      "sampler_post_dryrun_ok": true,
      "sampler_post_rows_five": true,
      "sampler_post_selector_match_five": true,
      "sampler_post_zero_delta_rows_five": true,
      "schema_collected": true,
      "state_collected": true,
      "timer_enabled_active": true,
      "vm100_allowed_ip_count_five": true,
      "vm100_peer_count_five": true,
      "vm100_selector_runtime_collected": true,
      "vm100_uci_peer_sections_zero": true,
      "vm101_cs1_to_vpn3_seen": true,
      "vm101_cs2_to_vpn4_seen": true,
      "vm101_cs3_to_vpn5_seen": true,
      "vm101_cs4_to_vpn1_seen": true,
      "vm101_cs5_to_vpn2_seen": true,
      "vm101_slot_map_collected": true
    },
    "warnings": [
      "STEP_045D is design-only: it defines future --apply invariants and transaction contract but does not apply them.",
      "Current rebalancer --apply remains intentionally refused.",
      "Job insert is specified as payload_json-based but the exact insert column contract is deferred to implementation after schema confirmation."
    ]
  },
  "changes": {
    "client_config_published": "NO",
    "jobs_created": "NO",
    "manual_agent_service_start_used": "NO",
    "private_material_published": "NO",
    "router_ops_changed": "NO_READONLY_CONTRACT_ARTIFACT_ONLY",
    "selector_changed": "NO",
    "vm100_changed": "NO",
    "vm101_changed": "NO",
    "vm121_db_changed": "NO",
    "wg_peer_runtime_changed": "NO"
  },
  "contract_summary": {
    "example_action": {
      "action": "reassign_idle_peer",
      "active_peer_move": false,
      "forced": false,
      "from_egress_class": "cs3",
      "from_target_id": "cs3_vpn5",
      "peer_id_source": "resolve_from_peer_egress_leases_by_tunnel_ip_for_update",
      "simulation_only": true,
      "state": "idle",
      "to_egress_class": "cs2",
      "to_target_id": "cs2_vpn4",
      "tunnel_ip": "10.253.1.12",
      "would_create_job": true,
      "would_write_db": true
    },
    "required_schema_all_ok": true,
    "rollback_required": true,
    "transaction_step_count": 9
  },
  "db_summary": {
    "active_leases": 1,
    "enabled_peers": 5,
    "forced_leases": 0,
    "idle_leases": 4,
    "lease_rows": 5,
    "pending_jobs": 0
  },
  "live_plan_summary": {
    "action_count": 0,
    "active_count": 1,
    "blocked": false,
    "forced_count": 0,
    "idle_count": 4,
    "lease_rows": 5,
    "noop": true,
    "selector_match_count": 5,
    "slot_seen_count": 5,
    "target_count": 5
  },
  "mode": "READONLY_REBALANCER_APPLY_CONTRACT_DESIGN_NO_DB_NO_JOBS",
  "publish": {
    "local_report": "http://127.0.0.1:8099/r/e94a0859747d7b96f29c7fdafc2d0351ba603bb0a7e9e5a4/20260709-164128_step045d_rebalancer_apply_contract_design/",
    "public_index_rebuilt": true,
    "trycf_report": "https://helena-background-beam-harry.trycloudflare.com/r/e94a0859747d7b96f29c7fdafc2d0351ba603bb0a7e9e5a4/20260709-164128_step045d_rebalancer_apply_contract_design/"
  },
  "rebalancer": {
    "apply_enabled": false,
    "path": "/opt/router-ops/bin/wgpaid-egress-rebalancer-once"
  },
  "sampler_post_summary": {
    "active_by_new_delta_count": 0,
    "rows": 5,
    "rows_with_selector_match": 5,
    "rows_with_zero_delta": 5
  },
  "schema": "router-step-facts-v1",
  "step": "STEP_045D_REBALANCER_APPLY_CONTRACT_DESIGN"
}
