{
  "assessment": {
    "all_ok": true,
    "blockers": [],
    "decision": "PASS_STEP_044P_ACTIVITY_SAMPLER_APPLY_AFTER_NEW_CONTROLLED_DELTA",
    "expected_absence": {
      "client_config_published": false,
      "force_mode_enabled": false,
      "manual_agent_service_start_used": false,
      "private_material_published": false,
      "rebalance_paused": false,
      "selector_left_changed": false,
      "systemd_timer_enabled": false,
      "vm100_runtime_left_changed": false,
      "vm101_changed": false
    },
    "success_checks": {
      "activity_service_final_ok": true,
      "dryrun_after_delta_active_by_new_delta_one": true,
      "dryrun_after_delta_rows_five": true,
      "final_target_hash_matches_original": true,
      "netns_cleanup_ok": true,
      "post_active_leases_one": true,
      "post_apply_dryrun_active_by_new_delta_zero": true,
      "post_apply_dryrun_ok": true,
      "post_apply_dryrun_zero_delta_rows_five": true,
      "post_db_collected": true,
      "post_enabled_peers_five": true,
      "post_idle_leases_four": true,
      "post_lease_rows_five": true,
      "post_pending_jobs_zero": true,
      "public_index_rebuilt": true,
      "public_report_created": true,
      "rollback_sql_saved": true,
      "sampler_apply_attempted": true,
      "sampler_apply_executed": true,
      "sampler_apply_ok": true,
      "sampler_apply_post_active_leases_one": true,
      "sampler_apply_post_idle_leases_four": true,
      "sampler_apply_rows_five": true,
      "sampler_dryrun_after_delta_ok": true,
      "selector_final_matches_before": true,
      "target10_baseline_increased": true,
      "target10_dryrun_active_now_true": true,
      "target10_dryrun_delta_positive": true,
      "target10_post_apply_delta_zero": true,
      "target10_post_reason_active": true,
      "target10_post_state_active": true,
      "temp_client_generated": true,
      "temp_peer_applied_to_target": true,
      "temp_private_key_available_but_not_published": true,
      "vm100_after_traffic_collected": true,
      "vm100_allowed_ip_count_final_five": true,
      "vm100_before_collected": true,
      "vm100_final_collected": true,
      "vm100_peer_count_final_five": true,
      "vm100_restore_ok": true,
      "vm100_substitution_ok": 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_traffic_ran_without_errors": true
    },
    "warnings": [
      "STEP_044P temporarily replaces VM100 target peer for controlled traffic, restores it, then runs installed sampler --apply.",
      "VM121 DB is intentionally changed by sampler baselines/state update only.",
      "Rollback SQL is saved on VM121 for sampler fields.",
      "No systemd timer is enabled."
    ]
  },
  "changes": {
    "client_config_published": "NO",
    "manual_agent_service_start_used": "NO",
    "private_material_published": "NO",
    "router_ops_changed": "NO",
    "selector_changed": "NO",
    "systemd_timer_enabled": "NO",
    "vm100_changed": "TEMPORARY_RUNTIME_PEER_SUBSTITUTION_RESTORED_PLUS_COUNTER_INCREMENTS",
    "vm101_changed": "NO",
    "vm121_db_changed": "YES_SAMPLER_BASELINES_STATE_ONLY",
    "wg_peer_runtime_left_changed": "NO"
  },
  "db_summary_post": {
    "active_leases": 1,
    "enabled_peers": 5,
    "forced_leases": 0,
    "idle_leases": 4,
    "lease_rows": 5,
    "pending_jobs": 0
  },
  "db_summary_pre": {
    "active_leases": 1,
    "enabled_peers": 5,
    "forced_leases": 0,
    "idle_leases": 4,
    "lease_rows": 5,
    "pending_jobs": 0
  },
  "mode": "CONTROLLED_DELTA_THEN_REUSABLE_SAMPLER_APPLY_AND_ZERO_DELTA_CONFIRM",
  "publish": {
    "local_report": "http://127.0.0.1:8099/r/e94a0859747d7b96f29c7fdafc2d0351ba603bb0a7e9e5a4/20260709-144640_step044p_activity_sampler_apply_after_new_controlled_delta/",
    "public_index_rebuilt": true,
    "trycf_report": "https://helena-background-beam-harry.trycloudflare.com/r/e94a0859747d7b96f29c7fdafc2d0351ba603bb0a7e9e5a4/20260709-144640_step044p_activity_sampler_apply_after_new_controlled_delta/"
  },
  "rollback": {
    "saved": true,
    "vm121_path": "/opt/wg-access/rollbacks/rollback-step044p-sampler-apply-20260709-144640.sql"
  },
  "runtime_peer_restore": {
    "final_matches_original": true,
    "final_pub_sha256": "e6746640fe8fd85c510e8b714e3d9c9c4c1a80f06f9792848c19023bb1663024",
    "old_pub_sha256": "e6746640fe8fd85c510e8b714e3d9c9c4c1a80f06f9792848c19023bb1663024",
    "temp_pub_sha256": "f559990034bd7fe2e34c96744f56bb5f90dd3e6609ef0d2b38852915a742cf8f"
  },
  "sampler_apply_summary_post": {
    "active_leases": 1,
    "enabled_peers": 5,
    "forced_leases": 0,
    "idle_leases": 4,
    "lease_rows": 5,
    "pending_jobs": 0
  },
  "sampler_apply_summary_pre": {
    "active_leases": 1,
    "enabled_peers": 5,
    "forced_leases": 0,
    "idle_leases": 4,
    "lease_rows": 5,
    "pending_jobs": 0
  },
  "sampler_dryrun_after_delta_summary": {
    "active_by_new_delta_count": 1,
    "rows": 5,
    "rows_with_selector_match": 5,
    "rows_with_zero_delta": 4
  },
  "sampler_dryrun_post_apply_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_044P_ACTIVITY_SAMPLER_APPLY_AFTER_NEW_CONTROLLED_DELTA",
  "target10": {
    "apply_delta": {
      "rx_bytes": 6840,
      "rx_packets": 30,
      "total_bytes": 13680,
      "total_packets": 60,
      "tx_bytes": 6840,
      "tx_packets": 30
    },
    "dryrun_delta": {
      "rx_bytes": 6840,
      "rx_packets": 30,
      "total_bytes": 13680,
      "total_packets": 60,
      "tx_bytes": 6840,
      "tx_packets": 30
    },
    "post_apply_dryrun_delta": {
      "rx_bytes": 0,
      "rx_packets": 0,
      "total_bytes": 0,
      "total_packets": 0,
      "tx_bytes": 0,
      "tx_packets": 0
    },
    "post_db": {
      "assignment_source": "bootstrap",
      "cooldown_until": "",
      "egress_class": "cs1",
      "forced": false,
      "last_activity_at": "2026-07-09 14:47:21.837692+00",
      "last_rx_bytes": 13680,
      "last_rx_packets": 60,
      "last_tx_bytes": 13680,
      "last_tx_packets": 60,
      "peer_id": "376dfa07-0ba4-4182-af39-389a2cb3badd",
      "reason": "activity_sampler_active",
      "state": "active",
      "target_id": "cs1_vpn3",
      "tunnel_cidr": "10.253.1.10/32",
      "tunnel_ip": "10.253.1.10",
      "updated_at": "2026-07-09 14:47:21.837692+00"
    }
  }
}
