{
  "apply_preview_summary": {
    "action_count": 0,
    "mode": "apply-preview-no-write",
    "would_create_jobs": 0,
    "would_update_lease_rows": 0
  },
  "assessment": {
    "all_ok": true,
    "blockers": [],
    "decision": "PASS_STEP_046A2_REBALANCER_JOB_ACTION_ATTEMPTS_CONTRACT_READONLY",
    "expected_absence": {
      "activity_eval_written_to_db": false,
      "apply_preview_wrote_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,
      "peer_id_null_in_rows": false,
      "private_material_published": false,
      "real_apply_enabled": 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": {
      "action_value_present": true,
      "agent_action_not_assumed_ready": true,
      "agent_probe_has_job_refs": true,
      "apply_preview_no_write_mode": true,
      "apply_preview_ok": true,
      "apply_preview_zero_actions": true,
      "apply_preview_zero_jobs": true,
      "apply_preview_zero_updates": true,
      "attempts_value_zero": true,
      "contract_created": true,
      "contract_mode_readonly": true,
      "contract_not_ready_for_real_apply": true,
      "contract_ready_for_next_implementation_step": true,
      "core_executable": true,
      "db_active_one": true,
      "db_enabled_peers_five": true,
      "db_forced_zero": true,
      "db_idle_four": true,
      "db_insert_contract_ok": true,
      "db_lease_rows_five": true,
      "db_pending_zero": true,
      "dryrun_action_count_zero": true,
      "dryrun_mode": true,
      "dryrun_noop_expected": true,
      "dryrun_ok": true,
      "dryrun_rows_all_have_peer_id": true,
      "help_mentions_apply_preview": true,
      "insert_columns_include_action": true,
      "insert_columns_include_attempts": true,
      "post_timer_enabled_active": true,
      "pre_state_collected": true,
      "pre_timer_enabled_active": true,
      "public_index_rebuilt": true,
      "public_report_created": true,
      "real_apply_disabled_in_contract": true,
      "real_apply_refused": true,
      "sampler_executable": true,
      "sampler_post_active_by_new_delta_zero": true,
      "sampler_post_ok": true,
      "sampler_post_rows_five": true,
      "sampler_post_selector_match_five": true,
      "sampler_post_zero_delta_rows_five": true,
      "status_value_pending": true,
      "vm100_allowed_ip_count_five": true,
      "vm100_peer_count_five": true,
      "vm100_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,
      "vm121_probe_ok": true,
      "wrapper_executable": true
    },
    "warnings": [
      "STEP_046A2 is read-only: it corrects job insert contract to include action and attempts but performs no writes.",
      "DB insert contract is structurally ready for next implementation step, but real apply remains disabled until agent support for action='peer_egress_reassign' is implemented/confirmed.",
      "Existing jobs use action column as job type; existing payload_json has no type key."
    ]
  },
  "changes": {
    "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": {
    "action_value": "peer_egress_reassign",
    "agent_support_status": {
      "agent_trigger_refs_seen": true,
      "observed_existing_actions": [
        "disable_peer",
        "enable_peer"
      ],
      "provisioning_job_refs_seen": true,
      "rebalancer_action_seen_in_existing_system": false,
      "source_action_literals_seen": [
        "disable_peer",
        "enable_peer",
        "ix_provisioning_jobs_peer_id",
        "peer_id"
      ]
    },
    "attempts_value": 0,
    "contract_ready_for_next_implementation_step": true,
    "contract_ready_for_real_apply": false,
    "db_insert_contract_ok": true,
    "insert_columns": [
      "id",
      "node_id",
      "peer_id",
      "action",
      "payload_json",
      "status",
      "attempts",
      "created_at"
    ],
    "reason_not_ready": "DB insert columns are structurally satisfiable, but agent/backend support for action 'peer_egress_reassign' must be implemented/confirmed before enabling real apply.",
    "status_value": "pending"
  },
  "db_summary": {
    "active_leases": 1,
    "enabled_peers": 5,
    "forced_leases": 0,
    "idle_leases": 4,
    "lease_rows": 5,
    "pending_jobs": 0
  },
  "dryrun_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_CORRECT_JOB_INSERT_CONTRACT_ACTION_ATTEMPTS",
  "publish": {
    "local_report": "http://127.0.0.1:8099/r/e94a0859747d7b96f29c7fdafc2d0351ba603bb0a7e9e5a4/20260709-185743_step046a2_rebalancer_job_action_attempts_contract_readonly/",
    "public_index_rebuilt": true,
    "trycf_report": "https://helena-background-beam-harry.trycloudflare.com/r/e94a0859747d7b96f29c7fdafc2d0351ba603bb0a7e9e5a4/20260709-185743_step046a2_rebalancer_job_action_attempts_contract_readonly/"
  },
  "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_046A2_REBALANCER_JOB_ACTION_ATTEMPTS_CONTRACT_READONLY"
}
