{
  "agent": {
    "action": {},
    "assessment": {},
    "changes": {
      "agent_start_attempted": false,
      "agent_start_rc": null,
      "db_job_changed_by_agent": "UNKNOWN",
      "private_material_published": "NO",
      "selector_changed_by_this_script": "NO",
      "vm100_may_change_by_agent": "YES_EXPECTED_PEER_ONLY"
    },
    "errors": [
      "target job is not pending before agent run; refusing to start agent"
    ],
    "mode": "CONTROLLED_AGENT_ONESHOT_RUN",
    "observe": {},
    "precheck": {
      "jobs_before": {
        "job_table": "provisioning_jobs",
        "pending_global": 1,
        "rows": [],
        "status_counts": {
          "completed": 40,
          "pending": 1
        },
        "target_status": ""
      },
      "peer_rows_before": [
        {
          "created_at": "2026-07-04 13:28:02.964577+00",
          "disabled_at": "2026-07-04 15:13:41.913497+00",
          "enabled": "false",
          "id": "813515db-bf25-46c9-bc83-c9c45d51ba68",
          "node_id": "ddn-test",
          "public_key_md5": "6a14a78db834c09dd1bcb876ee832843",
          "tunnel_ip": "10.253.1.14"
        },
        {
          "created_at": "2026-07-09 08:12:15.183587+00",
          "disabled_at": "",
          "enabled": "true",
          "id": "d54cd6da-c416-4245-a0dc-22182495f798",
          "node_id": "ddn-test",
          "public_key_md5": "0db8e90b312a67c6dbaa4952e1b0ddea",
          "tunnel_ip": "10.253.1.14"
        }
      ],
      "pg_container_found": true,
      "pg_container_name": "wgaccess-postgres",
      "service_active_before": "inactive",
      "service_active_before_rc": 3,
      "systemctl_cat_excerpt": "# /etc/systemd/system/wg-access-agent.service\n[Unit]\nDescription=WG Access Agent real poller\nAfter=network-online.target docker.service\nWants=network-online.target\n\n[Service]\nType=oneshot\nUser=root\nWorkingDirectory=/opt/wg-access/agent\nEnvironment=WG_ACCESS_AGENT_ENV=/opt/wg-access/agent/agent.env\nExecStart=/opt/wg-access/agent/wg_access_agent.py",
      "systemctl_cat_rc": 0,
      "target_job_pending_before": false
    },
    "schema": "router-step-facts-v1",
    "step": "STEP_041C_CONTROLLED_AGENT_RUN_APPLY_PEER_ONLY",
    "target": {
      "job_id": "455dc5b2-d16f-4606-a088-99dc3fd0f15a",
      "peer_id": "d54cd6da-c416-4245-a0dc-22182495f798",
      "service": "wg-access-agent.service",
      "tunnel_ip": "10.253.1.14"
    }
  },
  "assessment": {
    "agent_job_completed": false,
    "ready_for_selector_apply_next": false,
    "selector_still_absent": true,
    "vm100_peer_count_incremented": false,
    "vm100_peer_now_visible": false
  },
  "changes": {
    "agent_start_attempted": false,
    "agent_start_rc": null,
    "private_material_published": "NO",
    "selector_changed": "NO_EXPECTED",
    "target_job_completed": null,
    "vm100_peer_added_by_agent": "NO"
  },
  "mode": "CONTROLLED_AGENT_RUN_APPLY_PEER_ONLY",
  "publish": {
    "local_report": "http://127.0.0.1:8099/r/e94a0859747d7b96f29c7fdafc2d0351ba603bb0a7e9e5a4/20260709-081743_step041c_controlled_agent_run_apply_peer_only/",
    "trycf_report": "https://helena-background-beam-harry.trycloudflare.com/r/e94a0859747d7b96f29c7fdafc2d0351ba603bb0a7e9e5a4/20260709-081743_step041c_controlled_agent_run_apply_peer_only/"
  },
  "schema": "router-step-facts-v1",
  "step": "STEP_041C_CONTROLLED_AGENT_RUN_APPLY_PEER_ONLY",
  "vm100_after": {
    "nft_ip14_cs5_visible_rc": 1,
    "selector_count": 4,
    "selector_ip14_cs5_present_rc": 1,
    "wg_paid_ip14_peer_visible_rc": 1,
    "wg_paid_peer_count": 4
  },
  "vm100_before": {
    "nft_ip14_cs5_visible_rc": 1,
    "selector_count": 4,
    "selector_ip14_cs5_present_rc": 1,
    "wg_paid_ip14_peer_visible_rc": 1,
    "wg_paid_peer_count": 4
  }
}\n