{
  "schema": "router-step-facts-v1",
  "step": "STEP_050M07A2_EXACT_REFRESH_CONTRACT_AND_RUNTIME_READINESS",
  "generated_at_utc": "20260711-182203",
  "assessment": {
    "audit_completed": true,
    "all_ok": true,
    "decision": "PASS_STEP_050M07A2_EXACT_REFRESH_CONTRACT_AND_RUNTIME_READINESS_AUDIT_COMPLETED",
    "execution_ready": false,
    "source_contract_ready": true,
    "runtime_ready": false,
    "blocking_gaps": [
      "runtime:five_endpoints"
    ],
    "source_contract": {
      "runner_commit_gate": true,
      "runner_real_refresh_call": true,
      "runner_real_apply_call_with_confirmation": true,
      "runner_concurrency_lock": true,
      "refresh_backup_and_rollback": true,
      "refresh_validates_new_or_old_pool": true,
      "apply_requires_confirmation": true,
      "apply_has_per_slot_rollback": true,
      "apply_has_route_and_strict_validation": true,
      "planner_enforces_quarantine": true,
      "automatic_hook_calls_runner_dry_run": true,
      "automatic_hook_has_no_commit_path": true,
      "direct_failopen_disabled_in_runner": true,
      "post_success_suppression_proven": true
    },
    "post_success_suppression": {
      "counter_reset_proven": false,
      "cooldown_state_proven": true,
      "mode": "COOLDOWN_STATE"
    },
    "runtime_checks": {
      "remote_complete": true,
      "stderr_benign": true,
      "m06_complete": true,
      "commit_enabled": true,
      "direct_failopen_disabled": true,
      "threshold_reached": true,
      "runner_ready": true,
      "automatic_hook_safe": true,
      "services_running_enabled": true,
      "planner_five_slots": true,
      "planner_quarantine": true,
      "pool_capacity": true,
      "five_endpoints": false,
      "five_strict_slots": true,
      "routes_201_205": true,
      "no_refresh_or_apply_process": true,
      "no_emergency_lock": true,
      "no_hmn_refresh_lock": true,
      "read_only_audit": true
    },
    "failed_runtime_checks": [
      "five_endpoints"
    ],
    "runtime": {
      "repair_counter": 7,
      "daily_fail_threshold": 5,
      "commit_enabled": true,
      "direct_failopen_enabled": false,
      "cooldown_seconds": "600",
      "pool_rows": 16,
      "pool_sha256": "b9fd15bfe7aa2337048cbf7198c798e74e67e9b2f6e6040fb3c2138084378599",
      "pool_mtime_epoch": "1783702742",
      "endpoints": {
        "vpn1": "UNRESOLVED",
        "vpn2": "UNRESOLVED",
        "vpn3": "UNRESOLVED",
        "vpn4": "UNRESOLVED",
        "vpn5": "UNRESOLVED"
      },
      "strict": {
        "vpn1": true,
        "vpn2": true,
        "vpn3": true,
        "vpn4": true,
        "vpn5": true
      },
      "routes": {
        "201": true,
        "202": true,
        "203": true,
        "204": true,
        "205": true
      },
      "runner": {
        "schema": "router-egress-emergency-refresh-v1",
        "mode": "dry-run",
        "decision": "would_run_emergency_refresh",
        "reason": "threshold_or_force_reached_no_commit_in_dry_run",
        "daily_fail_count": 7,
        "daily_fail_threshold": 5,
        "threshold_reached": true,
        "force": false,
        "cooldown_seconds": 600,
        "cooldown_remaining": 0,
        "healthy_vpn_slots": 5,
        "commit_enabled": true,
        "direct_failopen_enabled": false,
        "direct_failopen_action": "disabled_not_allowed_in_step050f",
        "helper_ok": true,
        "refresh_cmd": "/root/hmn/hmn-refresh-pool-safe.sh",
        "refresh_cmd_exists": true,
        "planner_cmd": "/usr/local/sbin/router-egress-hmn-plan-top5.sh",
        "planner_cmd_exists": true,
        "rebalance_apply_cmd": "/usr/local/sbin/router-egress-hmn-rebalance-top5-apply.sh",
        "rebalance_apply_cmd_exists": true,
        "watcher_cmd": "/usr/local/sbin/router-egress-health-repair-watch.sh",
        "watcher_cmd_exists": true,
        "last_emergency_refresh_status": "NONE",
        "last_emergency_refresh_epoch": 0
      },
      "hook": {
        "schema": "router-egress-emergency-refresh-v1",
        "mode": "dry-run",
        "decision": "would_run_emergency_refresh",
        "reason": "threshold_or_force_reached_no_commit_in_dry_run",
        "daily_fail_count": 7,
        "daily_fail_threshold": 5,
        "threshold_reached": true,
        "force": false,
        "cooldown_seconds": 600,
        "cooldown_remaining": 0,
        "healthy_vpn_slots": 5,
        "commit_enabled": true,
        "direct_failopen_enabled": false,
        "direct_failopen_action": "disabled_not_allowed_in_step050f",
        "helper_ok": true,
        "refresh_cmd": "/root/hmn/hmn-refresh-pool-safe.sh",
        "refresh_cmd_exists": true,
        "planner_cmd": "/usr/local/sbin/router-egress-hmn-plan-top5.sh",
        "planner_cmd_exists": true,
        "rebalance_apply_cmd": "/usr/local/sbin/router-egress-hmn-rebalance-top5-apply.sh",
        "rebalance_apply_cmd_exists": true,
        "watcher_cmd": "/usr/local/sbin/router-egress-health-repair-watch.sh",
        "watcher_cmd_exists": true,
        "last_emergency_refresh_status": "NONE",
        "last_emergency_refresh_epoch": 0
      },
      "planner": {
        "schema": "router-egress-hmn-plan-top5-v2",
        "decision": "plan_ok",
        "pool": "/root/hmn/cache/ok-awg1-strict-foreign-latest.tsv",
        "pool_mtime_epoch": 1783702742,
        "quarantine_enabled": true,
        "quarantine_excluded_count": 4,
        "duplicate_excluded_count": 0,
        "desired_count": 5,
        "changes_count": 3,
        "plan": [
          {
            "slot": "egress1",
            "iface": "vpn1",
            "current": "109.248.198.4:37129",
            "target": "192.121.163.235:42530",
            "change": true,
            "target_rank": "1",
            "target_avg_ms": "39.008"
          },
          {
            "slot": "egress2",
            "iface": "vpn2",
            "current": "151.236.30.139:33998",
            "target": "37.235.54.96:38971",
            "change": true,
            "target_rank": "7",
            "target_avg_ms": "62.926"
          },
          {
            "slot": "egress3",
            "iface": "vpn3",
            "current": "95.211.68.119:45176",
            "target": "95.211.68.119:45176",
            "change": false,
            "target_rank": "2",
            "target_avg_ms": "44.271"
          },
          {
            "slot": "egress4",
            "iface": "vpn4",
            "current": "157.173.25.198:34340",
            "target": "192.71.244.202:45735",
            "change": true,
            "target_rank": "8",
            "target_avg_ms": "66.349"
          },
          {
            "slot": "egress5",
            "iface": "vpn5",
            "current": "157.173.27.69:41797",
            "target": "157.173.27.69:41797",
            "change": false,
            "target_rank": "5",
            "target_avg_ms": "56.803"
          }
        ]
      },
      "state_files": "/var/lib/router-egress-recovery/backup-egress1-20260711-162636/network.uci.before\n/var/lib/router-egress-recovery/backup-egress1-20260711-162636/rollback-egress1.sh\n/var/lib/router-egress-recovery/backup-egress1-20260711-162636/table.before\n/var/lib/router-egress-recovery/backup-egress2-20260711-091232/network.uci.before\n/var/lib/router-egress-recovery/backup-egress2-20260711-091232/rollback-egress2.sh\n/var/lib/router-egress-recovery/backup-egress2-20260711-091232/table.before\n/var/lib/router-egress-recovery/backup-egress2-20260711-104857/network.uci.before\n/var/lib/router-egress-recovery/backup-egress2-20260711-104857/rollback-egress2.sh\n/var/lib/router-egress-recovery/backup-egress2-20260711-104857/table.before\n/var/lib/router-egress-recovery/backup-egress4-20260711-171001/network.uci.before\n/var/lib/router-egress-recovery/backup-egress4-20260711-171001/rollback-egress4.sh\n/var/lib/router-egress-recovery/backup-egress4-20260711-171001/table.before\n/var/lib/router-egress-recovery/backup-egress4-20260711-172616/network.uci.before\n/var/lib/router-egress-recovery/backup-egress4-20260711-172616/rollback-egress4.sh\n/var/lib/router-egress-recovery/backup-egress4-20260711-172616/table.before\n/var/lib/router-egress-recovery/backup-egress4-20260711-174234/network.uci.before\n/var/lib/router-egress-recovery/backup-egress4-20260711-174234/rollback-egress4.sh\n/var/lib/router-egress-recovery/backup-egress4-20260711-174234/table.before\n/var/lib/router-egress-recovery/backup-egress4-20260711-175738/network.uci.before\n/var/lib/router-egress-recovery/backup-egress4-20260711-175738/rollback-egress4.sh\n/var/lib/router-egress-recovery/backup-egress4-20260711-175738/table.before\n/var/lib/router-egress-recovery/backup-egress4-20260711-181356/network.uci.before\n/var/lib/router-egress-recovery/backup-egress4-20260711-181356/rollback-egress4.sh\n/var/lib/router-egress-recovery/backup-egress4-20260711-181356/table.before\n/var/lib/router-egress-recovery/emergency-decision-last.json\n/var/lib/router-egress-recovery/fail-counter/repairs_20260711.count\n/var/lib/router-egress-recovery/health-watch/cooldown-egress1\n/var/lib/router-egress-recovery/health-watch/cooldown-egress2\n/var/lib/router-egress-recovery/health-watch/cooldown-egress4\n/var/lib/router-egress-recovery/health-watch/fail-egress1\n/var/lib/router-egress-recovery/health-watch/fail-egress2\n/var/lib/router-egress-recovery/health-watch/fail-egress3\n/var/lib/router-egress-recovery/health-watch/fail-egress4\n/var/lib/router-egress-recovery/health-watch/fail-egress5\n/var/lib/router-egress-recovery/health-watch/last.err\n/var/lib/router-egress-recovery/health-watch/last.err.tmp\n/var/lib/router-egress-recovery/health-watch/last.json\n/var/lib/router-egress-recovery/health-watch/last.json.tmp\n/var/lib/router-egress-recovery/hmn-pool-replace-last.json\n/var/lib/router-egress-recovery/quarantine.tsv\n/var/lib/router-egress-recovery/state.kv"
    },
    "stderr": {
      "lines": [
        "Warning: Permanently added '10.71.100.2' (ED25519) to the list of known hosts."
      ],
      "unexpected_lines": []
    },
    "safety": {
      "production_modified": false,
      "vm101_modified": false,
      "refresh_ran": false,
      "rebalance_apply_ran": false,
      "counter_changed": false,
      "watcher_invoked": false,
      "direct_failopen_changed": false
    },
    "plan": {
      "current_milestone": "M07",
      "milestone_changed": false
    },
    "next_step": "REPAIR_M07_BLOCKING_GAPS_FROM_THIS_REPORT"
  },
  "mode": "READ_ONLY_M07_EXACT_CONTRACT_AUDIT",
  "scope": {
    "blocking_hosts": [
      "VM101"
    ],
    "vm100_checked": false,
    "vm121_checked": false
  },
  "previous_stop": {
    "classified": true,
    "cause": "BUSYBOX_AWK_SYNTAX_INCOMPATIBILITY",
    "production_modified": false,
    "separate_diagnostic_step_used": false
  },
  "inline_diagnostics": {
    "enabled": true,
    "command_rc_captured": true,
    "stdout_and_stderr_captured": true,
    "failed_stage_captured": true,
    "automatic_classification_present": true,
    "separate_diagnostic_step_required": false
  },
  "safety": {
    "production_modified": false,
    "vm101_modified": false,
    "refresh_ran": false,
    "rebalance_apply_ran": false,
    "counter_changed": false,
    "watcher_invoked": false,
    "direct_failopen_changed": false
  },
  "plan": {
    "current_milestone": "M07",
    "milestone_changed": false
  },
  "source": {
    "step050m07a": "https://helena-background-beam-harry.trycloudflare.com/r/e94a0859747d7b96f29c7fdafc2d0351ba603bb0a7e9e5a4/20260711-181714_step050m07a_readonly_review_full_hmn_refresh_contract/"
  },
  "artifacts": {
    "step_script": "step.sh",
    "vm101_script": "vm101.sh",
    "tool_hash_script": "vm101-tool-hash-check.sh",
    "exact_source_contract": "exact-source-contract.json",
    "exact_source_excerpts": "exact-source-excerpts.txt",
    "assessment": "assessment.json",
    "vm101_output": "vm101.txt",
    "vm101_stderr": "vm101.stderr"
  },
  "publish": {
    "trycf_report": "https://helena-background-beam-harry.trycloudflare.com/r/e94a0859747d7b96f29c7fdafc2d0351ba603bb0a7e9e5a4/20260711-182203_step050m07a2_exact_refresh_contract_and_runtime_readiness/",
    "report_txt": "https://helena-background-beam-harry.trycloudflare.com/r/e94a0859747d7b96f29c7fdafc2d0351ba603bb0a7e9e5a4/20260711-182203_step050m07a2_exact_refresh_contract_and_runtime_readiness/report.txt",
    "facts_json": "https://helena-background-beam-harry.trycloudflare.com/r/e94a0859747d7b96f29c7fdafc2d0351ba603bb0a7e9e5a4/20260711-182203_step050m07a2_exact_refresh_contract_and_runtime_readiness/facts.json",
    "architecture_plan": "https://helena-background-beam-harry.trycloudflare.com/r/e94a0859747d7b96f29c7fdafc2d0351ba603bb0a7e9e5a4/20260711-181158_local_architecture_plan_vm101_autonomous_hmn_recovery/",
    "xs_map": "https://helena-background-beam-harry.trycloudflare.com/r/e94a0859747d7b96f29c7fdafc2d0351ba603bb0a7e9e5a4/20260711-120734_xs_map_audit_repair_publish/",
    "global_project_plan": "https://helena-background-beam-harry.trycloudflare.com/r/e94a0859747d7b96f29c7fdafc2d0351ba603bb0a7e9e5a4/20260711-123348_global_project_plan_wg_paid/"
  }
}
