{
  "ok": false,
  "generated_at": "2026-06-26T21:34:31.893352+00:00",
  "app_dir": "/app",
  "env_file": "/app/.env",
  "service_name": "market-intel",
  "deploy_mode": "docker",
  "summary": {
    "open_items": 6,
    "production_complete": false,
    "deploy_mode": "docker",
    "source_followup_sources": 8,
    "source_followup_counts": {
      "fetch_error": 8
    },
    "source_candidate_only_sources": 0,
    "source_silent_gap_sources": 0
  },
  "open_items": [
    {
      "id": "production_audit",
      "detail": "failed=['requirements_complete', 'readiness_clear', 'deploy_mode_selected', 'deployment_clear', 'env_clear', 'dashboard_content_clear', 'telegram_content_clear', 'source_candidates_resolved', 'telegram_test_sent', 'health_clear']"
    },
    {
      "id": "readiness",
      "detail": "errors=0 warnings=4"
    },
    {
      "id": "deployment_check",
      "detail": "errors=0 warnings=36"
    },
    {
      "id": "health",
      "detail": "errors=0 warnings=2"
    },
    {
      "id": "source_freshness",
      "detail": "errors=0 warnings=1"
    },
    {
      "id": "env_file",
      "detail": "missing /app/.env"
    }
  ],
  "audits": {
    "production_audit": {
      "path": "/app/reports/production_audit.json",
      "exists": true,
      "summary": {
        "complete": false,
        "local_complete": false,
        "remote_evidence_complete": false,
        "completion_evidence": {
          "complete": false,
          "completion_source": "incomplete",
          "local_complete": false,
          "remote_evidence_complete": false,
          "required_reports": 71,
          "present_required_reports": 65,
          "missing_required_report_count": 6,
          "failed_check_ids": [
            "remote_required_reports_present",
            "remote_release_upload_bundle_verified",
            "remote_telegram_notify_sent",
            "remote_telegram_notify_fresh",
            "remote_deployed_manifest_verified"
          ],
          "remote_recurring_daily_operation_ok": true,
          "remote_ops_success_days": 5,
          "remote_ops_consecutive_success_days": 5,
          "remote_ops_success_days_required": 2,
          "remote_ops_latest_age_hours": 10.01,
          "remote_ops_latest_age_hours_max": 30.0,
          "remote_telegram_notify_sent": false,
          "remote_telegram_notify_fresh": false,
          "remote_telegram_notify_message_length": 0,
          "public_endpoints": 35,
          "remote_deployed_manifest_ok": false,
          "remote_mutable_report_count": 51,
          "remote_mutable_reports_present": 51,
          "remote_evidence_manifest_ok": true,
          "remote_evidence_archive_ok": true,
          "remote_release_upload_bundle_verified": false,
          "remote_source_freshness_ok": true,
          "remote_source_coverage_ok": true,
          "remote_market_source_coverage_ok": true
        },
        "gates": 15,
        "passed": 5,
        "failed": 10,
        "local_failed": 10,
        "failed_gate_ids": [
          "requirements_complete",
          "readiness_clear",
          "deploy_mode_selected",
          "deployment_clear",
          "env_clear",
          "dashboard_content_clear",
          "telegram_content_clear",
          "source_candidates_resolved",
          "telegram_test_sent",
          "health_clear"
        ],
        "local_failed_gate_ids": [
          "requirements_complete",
          "readiness_clear",
          "deploy_mode_selected",
          "deployment_clear",
          "env_clear",
          "dashboard_content_clear",
          "telegram_content_clear",
          "source_candidates_resolved",
          "telegram_test_sent",
          "health_clear"
        ]
      },
      "status": null,
      "ok": false,
      "warnings": null
    },
    "requirements_audit": {
      "path": "/app/reports/requirements_audit.json",
      "exists": true,
      "summary": {
        "total": 12,
        "met": 9,
        "partial": 3,
        "missing": 0,
        "complete": false
      },
      "status": null,
      "ok": true,
      "warnings": null
    },
    "readiness": {
      "path": "/app/reports/readiness.json",
      "exists": true,
      "summary": {
        "errors": 0,
        "warnings": 4,
        "sources": 148,
        "documents": 13924,
        "analyses": 10502,
        "pending_fetch": 131
      },
      "status": null,
      "ok": true,
      "warnings": null
    },
    "deployment_check": {
      "path": "/app/reports/deployment_check.json",
      "exists": true,
      "summary": {
        "errors": 0,
        "warnings": 36,
        "app_dir": "/app",
        "service_name": "market-intel",
        "deploy_mode": "auto",
        "platform": "linux"
      },
      "status": null,
      "ok": true,
      "warnings": null
    },
    "public_dashboard_check": {
      "path": "/app/reports/public_dashboard_check.json",
      "exists": true,
      "summary": {
        "errors": 0,
        "warnings": 0,
        "configured_url": "https://35-221-72-238.sslip.io/dashboard.html",
        "base_url": "https://35-221-72-238.sslip.io/",
        "endpoint_count": 36
      },
      "status": null,
      "ok": true,
      "warnings": null
    },
    "ops_monitor": {
      "path": "/app/reports/ops_monitor.json",
      "exists": true,
      "summary": {
        "errors": 0,
        "warnings": 0,
        "window_days": 14,
        "run_count": 10,
        "ok_runs": 10,
        "error_runs": 0,
        "success_days": 10,
        "consecutive_success_days": 10,
        "latest_success_date": "2026-06-27",
        "missing_days": 4,
        "latest_run_id": 61,
        "latest_status": "ok",
        "latest_age_hours": 0.02,
        "zero_output_ok_runs": 0
      },
      "status": null,
      "ok": true,
      "warnings": null
    },
    "health": {
      "path": "/app/reports/health.json",
      "exists": true,
      "summary": {
        "ok": false,
        "errors": 0,
        "warnings": 2,
        "warning_ids": [
          "source_errors_or_unchecked",
          "audit_reports_need_attention"
        ],
        "audit_warnings": 10,
        "local_warning_ids": [
          "source_errors_or_unchecked",
          "audit_reports_need_attention"
        ],
        "local_audit_warnings": 10,
        "remote_evidence_complete": false,
        "sources": 148,
        "source_errors": 3,
        "stale_sources": 3,
        "pending_fetch": 131,
        "last_run_status": "ok",
        "source_followup_sources": 8,
        "source_followup_counts": {
          "fetch_error": 8
        },
        "source_candidate_only_sources": 0,
        "source_silent_gap_sources": 0
      },
      "status": null,
      "ok": false,
      "warnings": [
        "source_errors_or_unchecked",
        "audit_reports_need_attention"
      ]
    },
    "source_freshness": {
      "path": "/app/reports/source_freshness.json",
      "exists": true,
      "summary": {
        "errors": 0,
        "warnings": 1,
        "active_sources": 148,
        "checked_recent": 148,
        "unchecked": 0,
        "stale_checked": 0,
        "source_error_rows": 3,
        "stale_or_quiet_sources": 0,
        "candidate_only_sources": 0,
        "covered_candidate_only_sources": 4,
        "silent_gap_sources": 0,
        "followup_sources": 8,
        "followup_counts": {
          "fetch_error": 8
        },
        "high_fetch_error_sources": 0,
        "documents_24h": 393,
        "documents_7d": 1843,
        "documents_30d": 13924,
        "inactive_state_rows": 11,
        "max_checked_age_hours": 30.0,
        "stale_document_days": 45
      },
      "status": null,
      "ok": true,
      "warnings": null
    },
    "ops_handoff": {
      "path": "/app/reports/ops_handoff.json",
      "exists": true,
      "summary": {
        "open_items": 7,
        "warning_items": 80,
        "partial_requirements": 3,
        "missing_requirements": 0,
        "readiness_errors": 0,
        "readiness_warnings": 4,
        "deployment_errors": 0,
        "deployment_warnings": 36,
        "env_errors": 3,
        "env_warnings": 40,
        "public_dashboard_errors": 0,
        "public_dashboard_warnings": 0,
        "telegram_content_errors": 1,
        "telegram_content_warnings": 0,
        "app_dir": "/app",
        "env_file": "/app/.env",
        "service_name": "market-intel",
        "deploy_mode": "systemd",
        "public_dashboard_url": "https://35-221-72-238.sslip.io/dashboard.html",
        "public_dashboard_url_configured": true,
        "public_dashboard_url_quality": {
          "url": "https://35-221-72-238.sslip.io/dashboard.html",
          "ok": true,
          "format_ok": true,
          "placeholder": false,
          "host": "35-221-72-238.sslip.io"
        }
      },
      "status": null,
      "ok": false,
      "warnings": null
    },
    "telegram_notify": {
      "path": "/app/reports/telegram_notify.json",
      "exists": true,
      "summary": null,
      "status": "ok",
      "ok": true,
      "warnings": null
    },
    "telegram_test": {
      "path": "/app/reports/telegram_test.json",
      "exists": true,
      "summary": null,
      "status": "ok",
      "ok": null,
      "warnings": null
    }
  },
  "probes": {
    "disk": {
      "command": [
        "df",
        "-h",
        "/app"
      ],
      "available": true,
      "returncode": 0,
      "stdout": "Filesystem      Size  Used Avail Use% Mounted on\noverlay         338G  110G  229G  33% /\n",
      "stderr": ""
    },
    "python_version": {
      "command": [
        "python3",
        "--version"
      ],
      "available": true,
      "returncode": 0,
      "stdout": "Python 3.11.15\n",
      "stderr": ""
    },
    "docker_compose_ps": {
      "command": [
        "docker",
        "compose",
        "ps"
      ],
      "available": false,
      "returncode": null,
      "stdout": "",
      "stderr": "docker not found"
    },
    "docker_worker_logs": {
      "command": [
        "docker",
        "compose",
        "logs",
        "--tail",
        "80",
        "worker"
      ],
      "available": false,
      "returncode": null,
      "stdout": "",
      "stderr": "docker not found"
    },
    "docker_dashboard_logs": {
      "command": [
        "docker",
        "compose",
        "logs",
        "--tail",
        "80",
        "dashboard"
      ],
      "available": false,
      "returncode": null,
      "stdout": "",
      "stderr": "docker not found"
    }
  }
}
