{
  "overall_status": "critical",
  "generated_at": "2026-05-13T00:45:38+00:00",
  "checks": [
    {
      "name": "database",
      "status": "ok",
      "message": "All 26 tables present \u00b7 576.0 KB on disk",
      "details": {
        "db_path": "/root/.agrarianbot/farm.db",
        "table_count": 26,
        "missing_tables": [],
        "size_bytes": 589824,
        "size_human": "576.0 KB",
        "write_ok": true
      },
      "auto_fixable": false,
      "fix_description": "",
      "manual_steps": [],
      "fix_applied": false,
      "fix_result": "",
      "checked_at": "2026-05-13T00:45:36+00:00"
    },
    {
      "name": "anthropic",
      "status": "ok",
      "message": "Claude claude-sonnet-4-6 responding \u00b7 1003ms",
      "details": {
        "model": "claude-sonnet-4-6",
        "auth_method": "AnthropicVertex (Google ADC)",
        "project_id": "aiinkwell-sandbox-innovation",
        "region": "us-east5",
        "latency_ms": 1003,
        "response_tokens": 8,
        "stop_reason": "max_tokens"
      },
      "auto_fixable": false,
      "fix_description": "",
      "manual_steps": [],
      "fix_applied": false,
      "fix_result": "",
      "checked_at": "2026-05-13T00:45:37+00:00"
    },
    {
      "name": "weather",
      "status": "ok",
      "message": "Weather data fresh \u00b7 0.1h old \u00b7 7 forecast periods",
      "details": {
        "lat": 36.1627,
        "lon": -86.7816,
        "cache_age_hours": 0.1,
        "fetched_at": "2026-05-13T00:41:54+00:00",
        "forecast_periods": 7
      },
      "auto_fixable": false,
      "fix_description": "",
      "manual_steps": [],
      "fix_applied": false,
      "fix_result": "",
      "checked_at": "2026-05-13T00:45:37+00:00"
    },
    {
      "name": "shopify",
      "status": "critical",
      "message": "Shopify access token invalid or expired",
      "details": {
        "store_url_set": true,
        "access_token_set": true,
        "webhook_secret_set": true,
        "store_domain": "s0eka2-qy.myshopify.com",
        "error": "HTTP Error 401: Unauthorized"
      },
      "auto_fixable": true,
      "fix_description": "Clear the invalid token from the database",
      "manual_steps": [
        "Go to /integrations \u2192 Shopify",
        "Generate a new Private App token",
        "Re-enter and save"
      ],
      "fix_applied": false,
      "fix_result": "",
      "checked_at": "2026-05-13T00:45:38+00:00"
    },
    {
      "name": "quickbooks",
      "status": "ok",
      "message": "QuickBooks connected \u00b7 Realm 9341457072626209",
      "details": {
        "client_id_set": true,
        "client_secret_set": true,
        "access_token_set": true,
        "refresh_token_set": true,
        "realm_id": "9341457072626209"
      },
      "auto_fixable": false,
      "fix_description": "",
      "manual_steps": [],
      "fix_applied": false,
      "fix_result": "",
      "checked_at": "2026-05-13T00:45:38+00:00"
    },
    {
      "name": "paynow",
      "status": "warn",
      "message": "PayNow Direct / SNAP EBT not configured",
      "details": {
        "configured": false,
        "merchant_id_set": false,
        "api_key_set": false
      },
      "auto_fixable": false,
      "fix_description": "",
      "manual_steps": [
        "Go to /integrations \u2192 PayNow Direct",
        "Sign up at paynowdirect.com if needed",
        "Enter your Merchant ID and API key",
        "SNAP microgreens are automatically eligible"
      ],
      "fix_applied": false,
      "fix_result": "",
      "checked_at": "2026-05-13T00:45:38+00:00"
    },
    {
      "name": "filesystem",
      "status": "ok",
      "message": "Data dir writable \u00b7 40.86 GB free (15.3% used)",
      "details": {
        "data_dir": "/root/.agrarianbot",
        "dir_exists": true,
        "dir_writable": true,
        "disk_free_gb": 40.86,
        "disk_total_gb": 48.28,
        "disk_used_pct": 15.3
      },
      "auto_fixable": false,
      "fix_description": "",
      "manual_steps": [],
      "fix_applied": false,
      "fix_result": "",
      "checked_at": "2026-05-13T00:45:38+00:00"
    },
    {
      "name": "covenant",
      "status": "ok",
      "message": "All 10 articles known \u00b7 10 enforceable",
      "details": {
        "articles": {
          "I": "enforceable",
          "II": "enforceable",
          "III": "scaffolded",
          "IV": "scaffolded",
          "V": "scaffolded",
          "VI": "scaffolded",
          "VII": "scaffolded",
          "VIII": "scaffolded",
          "IX": "scaffolded",
          "X": "scaffolded"
        },
        "data_dir": "/opt/iam-platform/verticals/farmbot/somatic/agrarianbot/data",
        "ontology.yaml": "present",
        "lifecycle.yaml": "present",
        "senses.yaml": "present",
        "trinity_bindings.yaml": "present",
        "covenant.md": "present",
        "voice.md": "present",
        "soul.md": "present"
      },
      "auto_fixable": false,
      "fix_description": "",
      "manual_steps": [],
      "fix_applied": false,
      "fix_result": "",
      "checked_at": "2026-05-13T00:45:38+00:00"
    }
  ],
  "auto_fixes_applied": [],
  "manual_fixes_needed": [
    "paynow: Go to /integrations \u2192 PayNow Direct"
  ]
}