{
  "status": "PASS",
  "cause": "STEP001_EXECUTED_FROM_CONTRACT_ALLOWED_REMOTE_COMMANDS_AFTER_STALE_PATCH_GAP_CLEANUP",
  "executor_run_id": "step001_20260707_195223",
  "target": "YEFFAI",
  "target_host": "root@157.173.100.205",
  "auth_identity_file": "/root/.ssh/yeffai_devon_target_ed25519",
  "remote_yeffai_mutation": "YES",
  "installation_command_executed": "YES",
  "installation_started": "YES",
  "step_001_executed": "YES",
  "stale_patch_gaps_removed": [
    {
      "gap_id": "gap_54af3401cf815ac6822569ae",
      "kind": "UNKNOWN_ACTION",
      "source": "plan.next_required_action",
      "observed": "RETRY_STEP001_EXECUTION_AFTER_CONTRACT_FORMALIZATION",
      "reason": "Observed action is not registered in execution_observable_contract_registry. Execution must not proceed until it has expected evidence, validation rule, failure rule and runtime/UI binding rule.",
      "status": "CLOSED",
      "created_at": "2026-07-07T18:10:02Z",
      "required_before_execution": [
        "action_id",
        "execution_class",
        "remote_mutation_allowed",
        "installation_command_allowed",
        "expected_evidence",
        "expected_remote_delta",
        "validation_rule",
        "failure_rule",
        "rollback_rule",
        "canon_outputs",
        "runtime_fields",
        "ui_visibility_rule"
      ],
      "blocking_policy": "RESOLVED_BY_STEP001_EXECUTION_EVIDENCE",
      "remote_yeffai_mutation": "NO",
      "installation_command_executed": "YES",
      "installation_started": "NO",
      "resolution_status": "PASS",
      "resolved_at": "2026-07-07T21:45:17.557818+00:00",
      "resolution_cause": "STEP001_ALREADY_EXECUTED_AND_CANONICAL_CLOSURE_CONFIRMED",
      "step_001_executed": "YES",
      "next_required_action": "VERIFY_YEFFAI_INSTALL_STEP_001_SERVER_BASELINE_CONFIG"
    },
    {
      "gap_id": "gap_47cebc4f04f1b1222779e66d",
      "kind": "UNKNOWN_ACTION",
      "source": "runtime.next_required_action",
      "observed": "RETRY_STEP001_EXECUTION_AFTER_CONTRACT_FORMALIZATION",
      "reason": "Observed action is not registered in execution_observable_contract_registry. Execution must not proceed until it has expected evidence, validation rule, failure rule and runtime/UI binding rule.",
      "status": "CLOSED",
      "created_at": "2026-07-07T18:10:02Z",
      "required_before_execution": [
        "action_id",
        "execution_class",
        "remote_mutation_allowed",
        "installation_command_allowed",
        "expected_evidence",
        "expected_remote_delta",
        "validation_rule",
        "failure_rule",
        "rollback_rule",
        "canon_outputs",
        "runtime_fields",
        "ui_visibility_rule"
      ],
      "blocking_policy": "RESOLVED_BY_STEP001_EXECUTION_EVIDENCE",
      "remote_yeffai_mutation": "NO",
      "installation_command_executed": "YES",
      "installation_started": "NO",
      "resolution_status": "PASS",
      "resolved_at": "2026-07-07T21:45:17.557818+00:00",
      "resolution_cause": "STEP001_ALREADY_EXECUTED_AND_CANONICAL_CLOSURE_CONFIRMED",
      "step_001_executed": "YES",
      "next_required_action": "VERIFY_YEFFAI_INSTALL_STEP_001_SERVER_BASELINE_CONFIG"
    }
  ],
  "command_source": "/home/yeff/public_html/devon/canon/execution/state/yeffai_install_step_001_server_baseline_config_contract.json:allowed_after_approval.remote_commands",
  "commands": [
    {
      "index": 0,
      "command": "mkdir -p /opt/yeffai/runtime /opt/yeffai/state /opt/yeffai/logs /opt/yeffai/backup /opt/yeffai/contracts /opt/yeffai/evidence",
      "code": 0,
      "stdout": "",
      "stderr": ""
    },
    {
      "index": 1,
      "command": "chmod 750 /opt/yeffai",
      "code": 0,
      "stdout": "",
      "stderr": ""
    },
    {
      "index": 2,
      "command": "test -d /opt/yeffai",
      "code": 0,
      "stdout": "",
      "stderr": ""
    },
    {
      "index": 3,
      "command": "test -d /opt/yeffai/runtime",
      "code": 0,
      "stdout": "",
      "stderr": ""
    },
    {
      "index": 4,
      "command": "test -d /opt/yeffai/state",
      "code": 0,
      "stdout": "",
      "stderr": ""
    },
    {
      "index": 5,
      "command": "test -d /opt/yeffai/logs",
      "code": 0,
      "stdout": "",
      "stderr": ""
    },
    {
      "index": 6,
      "command": "test -d /opt/yeffai/backup",
      "code": 0,
      "stdout": "",
      "stderr": ""
    },
    {
      "index": 7,
      "command": "test -d /opt/yeffai/contracts",
      "code": 0,
      "stdout": "",
      "stderr": ""
    },
    {
      "index": 8,
      "command": "test -d /opt/yeffai/evidence",
      "code": 0,
      "stdout": "",
      "stderr": ""
    }
  ],
  "expected_dirs": [
    "/opt/yeffai",
    "/opt/yeffai/runtime",
    "/opt/yeffai/state",
    "/opt/yeffai/logs",
    "/opt/yeffai/backup",
    "/opt/yeffai/contracts",
    "/opt/yeffai/evidence"
  ],
  "remote_precheck_state": {
    "/opt/yeffai": {
      "exists": "YES",
      "mode": "755",
      "user": "root",
      "group": "root"
    },
    "/opt/yeffai/runtime": {
      "exists": "YES",
      "mode": "755",
      "user": "root",
      "group": "root"
    },
    "/opt/yeffai/state": {
      "exists": "YES",
      "mode": "755",
      "user": "root",
      "group": "root"
    },
    "/opt/yeffai/logs": {
      "exists": "YES",
      "mode": "755",
      "user": "root",
      "group": "root"
    },
    "/opt/yeffai/backup": {
      "exists": "YES",
      "mode": "755",
      "user": "root",
      "group": "root"
    },
    "/opt/yeffai/contracts": {
      "exists": "YES",
      "mode": "755",
      "user": "root",
      "group": "root"
    },
    "/opt/yeffai/evidence": {
      "exists": "YES",
      "mode": "755",
      "user": "root",
      "group": "root"
    }
  },
  "remote_postcheck_stdout": "POST_DIR:/opt/yeffai:750:root:root\nPOST_DIR:/opt/yeffai/runtime:755:root:root\nPOST_DIR:/opt/yeffai/state:755:root:root\nPOST_DIR:/opt/yeffai/logs:755:root:root\nPOST_DIR:/opt/yeffai/backup:755:root:root\nPOST_DIR:/opt/yeffai/contracts:755:root:root\nPOST_DIR:/opt/yeffai/evidence:755:root:root",
  "created_at": "2026-07-07T19:52:23.562859+00:00",
  "next_required_action": "VERIFY_YEFFAI_INSTALL_STEP_001_SERVER_BASELINE_CONFIG",
  "runtime_next_required_action": "VERIFY_YEFFAI_INSTALL_STEP_001_SERVER_BASELINE_CONFIG",
  "plan_next_required_action": "VERIFY_YEFFAI_INSTALL_STEP_001_SERVER_BASELINE_CONFIG",
  "ledger_required_next_action": "VERIFY_YEFFAI_INSTALL_STEP_001_SERVER_BASELINE_CONFIG",
  "step001_closure_status": "PASS",
  "step001_closed": "YES",
  "updated_at": "2026-07-07T21:45:17.557818+00:00"
}
