{
  "status": "healthy",
  "database": "connected",
  "pgvector": "active",
  "instance_upgrade_eligibility": {
    "eligible": true,
    "database_version": "15.19",
    "conditions": {
      "version_check": "PASS",
      "storage_type": "MANUAL_CHECK_REQUIRED (Must be SSD)",
      "pending_operations": "MANUAL_CHECK_REQUIRED (Must have no pending ops)"
    }
  },
  "ai_backend": {
    "integrated": true,
    "initializing": false,
    "initialization_stage": "Initializing Deep Learning Models",
    "dino": {
      "status": "ready",
      "onnx_present": true,
      "size_bytes": 171937691,
      "path": "/app/models/dino_vitb16.onnx"
    },
    "pose_estimation_dlc": true,
    "pose_engine": {
      "enabled": true,
      "ready": true,
      "models_dir": "/app/models/sa_quadruped",
      "last_init_error": null,
      "init_retry_at": null,
      "disabled_until": null,
      "strikes": 0,
      "active_sessions": 2
    },
    "dlc_pool": {
      "size": 6,
      "slots_alive": 6,
      "idle_now": 6,
      "served": 0,
      "last_wait_ms": 0.0,
      "avg_wait_ms": 0.0,
      "max_wait_ms": 0.0
    },
    "behavior_classification": {
      "enabled": false,
      "by_design": true,
      "provenance_status": "random_init",
      "reason": "No canine-trained behavior model is registered in models/MODEL_PROVENANCE.json: the shipped behavior_transformer.onnx is declared random_init and the CalMS21 baseline is species:mouse (canine_claim_safe: false). The provenance gate refuses to label with either \u2014 fail-closed by design, not a fault. Absence of a behavior label is honest; a random projection of the input is not."
    },
    "behavior_error": "provenance_untrusted: status=random_init",
    "audio_analysis": true,
    "audio_error": null,
    "facial_expression_analysis": {
      "dog_analyzer": true,
      "cat_analyzer": true,
      "species_supported": [
        "dog",
        "cat"
      ],
      "available": true
    },
    "joint_count": 20,
    "backbone": "resnet_50",
    "initialization_error": null,
    "model_prep_results": {
      "dlc": true,
      "tst": true
    },
    "model_check": {
      "superanimal_dog_cfg": true,
      "behavior_transformer_onnx": true,
      "local_tarball_present": true,
      "models_dir_exists": true,
      "directory_listing": [
        "yamnet",
        "behavior_transformer.onnx",
        "superanimal_dog",
        "behavior_transformer_calms21_baseline.onnx",
        "behavior_transformer_calms21_baseline_training_report.json",
        "face_landmarks",
        "dino_vitb16.onnx",
        "MODEL_PROVENANCE.json",
        "sa_quadruped",
        "superanimal_dog.tar.gz"
      ],
      "found_config_dir": "/app/models/superanimal_dog",
      "superanimal_dir_contents": [
        "pose_cfg.yaml",
        "snapshot-75000.pbtxt",
        "snapshot-75000.meta",
        "snapshot-75000.index",
        "snapshot-75000.data-00000-of-00001",
        "snapshot-75000.pb"
      ],
      "extracted_folder_contents": []
    }
  },
  "migrations": {
    "ledger_present": true,
    "applied_count": 47,
    "files_on_disk": 47,
    "pending_versions": [],
    "latest_applied": "047"
  },
  "service": "como_backend",
  "region": "us-central1",
  "version": "1.1",
  "timestamp": "2026-11-11T03:09:22.991741",
  "message": "Proper Analysis Engine Status",
  "ai_models_loading": false,
  "ai_loading_stage": "complete",
  "endpoints": [
    "POST /api/chat - General pet assistant chat",
    "POST /api/chat/history - Get chat history from memory",
    "POST /api/extract_actions - Extract actionable items from AI responses",
    "POST /api/voice_command - Voice commands for pet assistance",
    "POST /api/analyze_video - Pet behavior video analysis",
    "POST /api/pet_tips - Pet care tips and information",
    "POST /api/training_advice - Specific pet training guidance",
    "POST /api/generate_pet_id - Generate pet ID before questionnaire (PREVENTS DUPLICATES)",
    "POST /api/create_pet_profile - Create new pet profile",
    "POST /api/get_user_pets - Get all pets for a user",
    "POST /api/delete_pet - Delete a pet and related data",
    "POST /api/get_questionnaire - Get questionnaire for pet",
    "POST /api/find_similar_sessions - Find similar behavioral patterns using vector similarity",
    "POST /api/process_frame - Real-time pose estimation for live video visualization",
    "POST /api/recording/start - Start server-side video recording",
    "POST /api/diagnostic/dlc - Run a test DLC inference in the cloud",
    "POST /api/recording/stop - Stop recording and trigger Proper Analysis",
    "POST /api/save_questionnaire_response - Save questionnaire response",
    "POST /api/complete_questionnaire - Complete questionnaire session",
    "POST /api/generate_pet_social_profile - Generate social media profile",
    "POST /api/get_social_profiles - Get existing social profiles",
    "POST /api/users/profile - User profile management (Firebase)",
    "POST /api/media/upload - Upload media files to cloud storage",
    "POST /api/media/list - List user media files",
    "GET /api/media/{file_id} - Access specific media file",
    "POST /api/content/create - Create user content",
    "POST /api/content/list - List user content",
    "GET /api/content/{content_id} - Access specific content",
    "POST /api/schedule/create - Create a new schedule",
    "POST /api/schedule/list - List schedules for a pet",
    "POST /api/schedule/update - Update a schedule",
    "POST /api/schedule/delete - Delete a schedule",
    "POST /api/schedule/event/create - Create a schedule event",
    "POST /api/schedule/event/list - List events for a schedule",
    "POST /api/schedule/event/update - Update an event",
    "POST /api/schedule/event/delete - Delete an event",
    "POST /api/schedule/event/complete - Mark event as complete",
    "POST /api/schedule/reminder/create - Create a reminder",
    "POST /api/schedule/reminder/list - List reminders",
    "POST /api/schedule/today - Get today's schedule",
    "POST /api/schedule/week - Get this week's schedule"
  ]
}