{
  "contract_id": "yeffai_controlled_installation_precheck_latest",
  "version": "v1",
  "status": "PASS",
  "action": "YEFFAI_CONTROLLED_INSTALLATION_PRECHECK",
  "job_id": "job_20260630_120155_yeffai_controlled_installation_precheck_fixed_ufw",
  "event_id": "yeffai_controlled_installation_precheck_fixed_ufw_20260630_120155_21560",
  "target": "157.173.100.205",
  "target_ssh_alias": "YEFFAI",
  "created_at": "2026-06-30T15:02:00Z",
  "finished_at": "2026-06-30T15:02:00Z",
  "raw_evidence_path": "/home/yeff/public_html/devon/_backup/fix_ufw_status_and_rerun_yeffai_precheck_20260630_120155/yeffai_controlled_installation_precheck_remote_raw_fixed_ufw_20260630_120155.txt",
  "child_contract_path": "/home/yeff/public_html/devon/canon/execution/state/yeffai_controlled_installation_precheck_step_contract.json",
  "remote_identity": {
    "hostname": "YeffAI",
    "whoami": "root",
    "os_pretty": "Ubuntu 22.04.5 LTS",
    "kernel": "5.15.0-173-generic",
    "arch": "x86_64"
  },
  "resource_evidence": {
    "uptime_seconds": "1439870",
    "loadavg": "0.04 0.03 0.01 1/162 2277076",
    "reboot_required": "YES",
    "apt_lock_status": "FREE",
    "root_disk_present": "YES",
    "memory_present": "YES"
  },
  "installation_baseline": {
    "opt_exists": "YES",
    "opt_yeffai_exists": "NO",
    "docker_bin": "NO",
    "docker_version": "MISSING",
    "docker_compose_plugin": "NO",
    "nginx_bin": "NO",
    "nginx_version": "MISSING",
    "ufw_bin": "YES",
    "ufw_status_raw": "Status: inactive",
    "ufw_status": "Status: inactive",
    "ufw_status_normalized": "NO"
  },
  "checks": {
    "REMOTE_HOSTNAME": {
      "expected": "YeffAI",
      "observed": "YeffAI",
      "status": "PASS"
    },
    "REMOTE_WHOAMI": {
      "expected": "root",
      "observed": "root",
      "status": "PASS"
    },
    "REMOTE_MUTATION_EXECUTED": {
      "expected": "NO",
      "observed": "NO",
      "status": "PASS"
    },
    "INSTALLATION_COMMAND_EXECUTED": {
      "expected": "NO",
      "observed": "NO",
      "status": "PASS"
    },
    "INSTALLATION_STARTED": {
      "expected": "NO",
      "observed": "NO",
      "status": "PASS"
    },
    "PRECHECK_STATUS": {
      "expected": "PASS",
      "observed": "PASS",
      "status": "PASS"
    },
    "REMOTE_OS_PRETTY": {
      "expected": "PRESENT",
      "observed": "Ubuntu 22.04.5 LTS",
      "status": "PASS"
    },
    "REMOTE_KERNEL": {
      "expected": "PRESENT",
      "observed": "5.15.0-173-generic",
      "status": "PASS"
    },
    "REMOTE_ARCH": {
      "expected": "PRESENT",
      "observed": "x86_64",
      "status": "PASS"
    },
    "REMOTE_LOADAVG": {
      "expected": "PRESENT",
      "observed": "0.04 0.03 0.01 1/162 2277076",
      "status": "PASS"
    },
    "REBOOT_REQUIRED": {
      "expected": "PRESENT",
      "observed": "YES",
      "status": "PASS"
    },
    "APT_LOCK_STATUS": {
      "expected": "PRESENT",
      "observed": "FREE",
      "status": "PASS"
    },
    "OPT_EXISTS": {
      "expected": "PRESENT",
      "observed": "YES",
      "status": "PASS"
    },
    "OPT_YEFFAI_EXISTS": {
      "expected": "PRESENT",
      "observed": "NO",
      "status": "PASS"
    },
    "DOCKER_BIN": {
      "expected": "PRESENT",
      "observed": "NO",
      "status": "PASS"
    },
    "NGINX_BIN": {
      "expected": "PRESENT",
      "observed": "NO",
      "status": "PASS"
    },
    "UFW_BIN": {
      "expected": "PRESENT",
      "observed": "YES",
      "status": "PASS"
    },
    "UFW_STATUS": {
      "expected": "PRESENT",
      "observed": "Status: inactive",
      "status": "PASS"
    },
    "UFW_STATUS_NORMALIZED": {
      "expected": "PRESENT",
      "observed": "NO",
      "status": "PASS"
    },
    "REMOTE_MEMORY_MEMINFO_BLOCK": {
      "expected": "PRESENT",
      "observed": "YES",
      "status": "PASS"
    },
    "REMOTE_ROOT_DISK_BLOCK": {
      "expected": "PRESENT",
      "observed": "YES",
      "status": "PASS"
    },
    "LISTEN_PORTS_BLOCK": {
      "expected": "PRESENT",
      "observed": "YES",
      "status": "PASS"
    },
    "BASE_DIRS_BLOCK": {
      "expected": "PRESENT",
      "observed": "YES",
      "status": "PASS"
    }
  },
  "next_required_action": "YEFFAI_CONTROLLED_INSTALLATION_PRECHECK_REVIEW",
  "next_required_action_source": "yeffai_controlled_installation_precheck.fixed_ufw_completed",
  "remote_yeffai_mutation": "NO",
  "installation_command_executed": "NO",
  "installation_started": "NO"
}
