{
  "contract_id": "yeffai_target_install_bootstrap_contract",
  "version": "v1.0",
  "status": "PASS",
  "created_at": "2026-06-15T11:15:11+00:00",
  "updated_at": "2026-06-19T16:53:28Z",
  "target": {
    "host_or_ip": "157.173.100.205",
    "hostname": "YeffAI",
    "ssh_user": "root",
    "ssh_key_path": "/root/.ssh/yeffai_devon_target_ed25519",
    "whoami": "root",
    "os_id": "ubuntu",
    "os_version_id": "22.04"
  },
  "source_of_truth": {
    "waresites_panel_root": "/home/yeff/public_html/devon",
    "forensic_baseline_contract": "/home/yeff/public_html/devon/canon/execution/state/yeffai_target_server_forensic_baseline.json",
    "forensic_baseline_raw": "/home/yeff/public_html/devon/_backup/yeffai_export_target_server_forensic_evidence_v1_20260615_070005/yeffai_target_forensic_baseline_20260615_070005.txt",
    "target_precheck_raw": "/home/yeff/public_html/devon/_backup/yeffai_create_target_install_bootstrap_contract_v1_20260615_081505/yeffai_target_bootstrap_precheck_20260615_081505.txt",
    "topology_policy": "/home/yeff/public_html/devon/canon/execution/state/yeffai_execution_topology_policy.json"
  },
  "install_policy": {
    "mutation_allowed_by_contract": true,
    "install_root": "/opt/yeffai",
    "project_user": "yeffai",
    "project_group": "yeffai",
    "preserve_waresites_source": true,
    "do_not_mutate_waresites_panel": true,
    "target_can_be_clean_installed": true,
    "require_backup_before_every_target_mutation": true,
    "require_ledger_event_after_every_target_mutation": true,
    "orchestrator": "YEFFAI",
    "target_direct_execution_allowed": true
  },
  "precheck": {
    "apt_get": "YES",
    "systemctl": "YES",
    "curl": "YES",
    "git": "YES",
    "docker": "NO",
    "nginx": "NO",
    "apache": "NO",
    "php": "NO",
    "node": "NO",
    "opt_yeffai_exists": "NO",
    "legacy_devon_root_exists": "NO"
  },
  "blockers": [],
  "execution_scope": {
    "purpose": "Prepare YEFF AI clean target server for controlled install from Waresites canonical source.",
    "non_goals": [
      "do_not_install_runtime_in_this_contract",
      "do_not_copy_application_payload_in_this_contract",
      "do_not_change_panel_ui_in_this_contract"
    ]
  },
  "next_required_action": "SCHEDULE_BOOTSTRAP_CLI_WORKER",
  "endpoint": {
    "status": "PASS",
    "path": "/home/yeff/public_html/devon/canon/execution/ui/bootstrap.php",
    "contract_id": "yeffai_target_install_bootstrap_endpoint",
    "version": "queue-v1",
    "mode": "web_queue_only",
    "ssh_execution_policy": "READ_ONLY_SCAN",
    "jobs_file": "/home/yeff/public_html/devon/canon/execution/state/yeffai_bootstrap_jobs.json",
    "worker_file": "/home/yeff/public_html/devon/canon/execution/bin/bootstrap_worker.php",
    "allowed_actions": [
      "health",
      "target_probe",
      "target_scan",
      "jobs",
      "category_remote_verify"
    ],
    "updated_at": "2026-06-19T05:27:36+00:00",
    "action_contracts": {
      "category_remote_verify": {
        "contract_id": "yeffai_category_remote_verification_contract",
        "contract_file": "/home/yeff/public_html/devon/canon/execution/state/yeffai_category_remote_verification_contract.json",
        "state_file": "/home/yeff/public_html/devon/canon/execution/state/yeffai_category_remote_verification_state.json",
        "status": "MISSING",
        "implemented": "NO",
        "mutation_policy": "READ_ONLY_REMOTE_SCAN_NO_MUTATION",
        "next_required_action": "IMPLEMENT_BOOTSTRAP_WORKER_CATEGORY_REMOTE_VERIFY_ACTION"
      }
    }
  },
  "cli_worker": {
    "status": "PASS",
    "path": "/home/yeff/public_html/devon/canon/execution/bin/bootstrap_worker.php",
    "contract_id": "yeffai_bootstrap_cli_worker",
    "version": "v1.0",
    "execution_scope": "waresites_cli_only",
    "allowed_actions": [
      "target_probe",
      "target_scan",
      "category_remote_verify"
    ],
    "updated_at": "2026-06-19T05:27:36+00:00",
    "action_contracts": {
      "category_remote_verify": {
        "contract_id": "yeffai_category_remote_verification_contract",
        "contract_file": "/home/yeff/public_html/devon/canon/execution/state/yeffai_category_remote_verification_contract.json",
        "state_file": "/home/yeff/public_html/devon/canon/execution/state/yeffai_category_remote_verification_state.json",
        "status": "MISSING",
        "implemented": "NO",
        "mutation_policy": "READ_ONLY_REMOTE_SCAN_NO_MUTATION",
        "next_required_action": "IMPLEMENT_BOOTSTRAP_WORKER_CATEGORY_REMOTE_VERIFY_ACTION"
      }
    }
  },
  "panel": {
    "status": "PASS",
    "marker": "YEFFAI_BOOTSTRAP_QUEUE_PANEL_V1",
    "mode": "web_queue_only",
    "endpoint": "/canon/execution/ui/bootstrap.php",
    "worker_command": "php /home/yeff/public_html/devon/canon/execution/bin/bootstrap_worker.php",
    "allowed_actions": [
      "health",
      "jobs",
      "target_probe",
      "target_scan"
    ],
    "updated_at": "2026-06-15T12:58:01+00:00"
  },
  "panel_runtime_truth": {
    "status": "PASS",
    "marker": "YEFFAI_PANEL_TRUTHFUL_RUNTIME_STATUS_V1",
    "endpoint": "/canon/execution/ui/runtime_status.php",
    "completion_display_allowed": "NO",
    "rule": "Do not display complete state while execution_server_integration_plan.next_required_action remains pending.",
    "updated_at": "2026-06-15T13:08:03+00:00"
  },
  "target_scan": {
    "status": "PASS",
    "contract_id": "yeffai_target_operational_scan_contract",
    "version": "v1.0",
    "execution_scope": "waresites_cli_worker_to_yeffai_target",
    "target_state_file": "/home/yeff/public_html/devon/canon/execution/state/yeffai_target_operational_scan.json",
    "worker_action": "target_scan",
    "source_worker": "/home/yeff/public_html/devon/canon/execution/bin/bootstrap_worker.php",
    "ssh_execution_policy": "CLI_WORKER_ONLY",
    "remote_mutation_policy": "READ_ONLY_SCAN",
    "target_host_or_ip": "157.173.100.205",
    "target_ssh_user": "root",
    "required_evidence": [
      "TARGET_WHOAMI",
      "TARGET_HOSTNAME",
      "TARGET_DATE_UTC",
      "TARGET_OS_PRETTY",
      "TARGET_KERNEL",
      "TARGET_ROOT_DISK",
      "TARGET_SSH_STATUS"
    ],
    "updated_at": "2026-06-19T05:27:36+00:00"
  },
  "category_remote_verification_contract": {
    "contract_id": "yeffai_category_remote_verification_contract",
    "contract_file": "/home/yeff/public_html/devon/canon/execution/state/yeffai_category_remote_verification_contract.json",
    "state_file": "/home/yeff/public_html/devon/canon/execution/state/yeffai_category_remote_verification_state.json",
    "endpoint_action": "category_remote_verify",
    "cli_worker_action": "category_remote_verify",
    "status": "MISSING",
    "worker_implemented": "NO",
    "ui_change_allowed": "NO",
    "jobs_shape": "jobs_array",
    "queue_field_expected": "ABSENT",
    "history_field_expected": "ABSENT",
    "next_required_action": "IMPLEMENT_BOOTSTRAP_WORKER_CATEGORY_REMOTE_VERIFY_ACTION"
  }
}
