{
  "contract_id": "yeffai_controlled_reboot_action_contract",
  "version": "v1",
  "created_at": "2026-06-30T15:23:33Z",
  "status": "PASS",
  "source_gate": "/home/yeff/public_html/devon/canon/execution/state/yeffai_reboot_required_approval_gate_contract.json",
  "source_risk_contract": "/home/yeff/public_html/devon/canon/execution/state/yeffai_precheck_blocking_risk_contract.json",
  "source_precheck_latest": "/home/yeff/public_html/devon/canon/execution/state/yeffai_controlled_installation_precheck_latest.json",
  "target_server": "YEFFAI",
  "target_host_or_ip": "157.173.100.205",
  "target_ssh_alias": "YEFFAI",
  "execution_class": "REMOTE_MUTATION_REBOOT_CONTRACT",
  "remote_mutation_allowed": "NO",
  "reboot_executed": "NO",
  "installation_command_allowed": "NO",
  "installation_started": "NO",
  "reason": "YEFF AI target reports reboot-required before mutating installation. This contract defines the future controlled reboot action but does not execute it.",
  "authorized_future_action": "YEFFAI_CONTROLLED_REBOOT_EXECUTE",
  "authorized_future_command_template": "ssh YEFFAI 'systemctl reboot'",
  "command_execution_status": "SKIPPED_REBOOT_REQUIRED_ALREADY_CLEAR",
  "expected_remote_delta_when_executed": [
    "SSH may become temporarily unavailable",
    "target uptime should reset",
    "host should return as YeffAI",
    "whoami should remain root over SSH",
    "post-reboot read-only verification must run",
    "reboot_required should be rechecked and may clear or remain"
  ],
  "required_before_execution": [
    "explicit operator approval for reboot execution",
    "backup of Waresites canon/state before execution",
    "post-reboot verification contract present",
    "timeout and reconnect policy defined",
    "no installation command mixed with reboot command"
  ],
  "post_reboot_required_verification": [
    "ssh YEFFAI returns",
    "REMOTE_HOSTNAME=YeffAI",
    "REMOTE_WHOAMI=root",
    "uptime_seconds changed",
    "reboot_required re-evaluated",
    "remote mutation limited to reboot only",
    "installation_started remains NO",
    "installation_command_executed remains NO"
  ],
  "rollback_rule": "Reboot cannot be rolled back. Recovery is limited to post-reboot SSH/readiness verification and manual infrastructure recovery if the host does not return.",
  "failure_rule": "If SSH does not return within the contracted window, installation remains blocked and incident recovery must be contracted before proceeding.",
  "ui_operator_label": "Controlled reboot ready for explicit execution approval",
  "identity_reconciliation": "/home/yeff/public_html/devon/canon/execution/state/yeffai_target_identity_reconciliation_latest.json",
  "post_reboot_review_contract": "/home/yeff/public_html/devon/canon/execution/state/yeffai_post_reboot_readiness_review_contract.json",
  "updated_at": "2026-06-30T15:47:04Z"
}
