{
  "contract_id": "yeffai_reboot_required_approval_gate_contract",
  "version": "v1",
  "created_at": "2026-06-30T15:21:04Z",
  "status": "PASS",
  "action_id": "YEFFAI_REBOOT_REQUIRED_APPROVAL_GATE",
  "execution_class": "HUMAN_APPROVAL_GATE",
  "target_server": "YEFFAI",
  "target_host_or_ip": "157.173.100.205",
  "target_ssh_alias": "YEFFAI",
  "remote_mutation_allowed": "NO",
  "reboot_executed": "NO",
  "installation_command_allowed": "NO",
  "installation_started": "NO",
  "reason": "YEFF AI reports /var/run/reboot-required. Any mutating installation must be blocked until a reboot decision is contracted.",
  "observed_evidence": {
    "reboot_required": "YES",
    "os_pretty": "Ubuntu 22.04.5 LTS",
    "hostname": "YeffAI",
    "whoami": "root"
  },
  "operator_options": [
    {
      "option_id": "CONTRACT_CONTROLLED_REBOOT",
      "meaning": "Create a separate controlled reboot action contract. This still will not reboot until explicitly executed."
    },
    {
      "option_id": "BLOCK_INSTALL_AND_REVIEW_MANUALLY",
      "meaning": "Keep installation blocked until operator decides reboot policy."
    }
  ],
  "validation_rule": {
    "pass": "PASS when the approval gate is visible in canon/runtime and no remote mutation or reboot was executed.",
    "fail": "FAIL if reboot or installation is executed without a separate controlled action contract.",
    "missing": "MISSING if the operator decision is absent."
  },
  "rollback_rule": "No remote rollback because this gate is local only. Restore Waresites canon/state backup if local state is corrupted.",
  "next_allowed_action_after_approval": "YEFFAI_CONTROLLED_REBOOT_CONTRACT",
  "ui_operator_label": "Reboot required before installation"
}
