Appearance
account-health
FreshSource: BIBLE.md (Phase 6 Account Store: Real health checks)
Real browser-based health checks: launches a browser, runs 4 weighted checks, updates healthScore in the store. Batch health check supported.
What it checks
| Check | Weight |
|---|---|
| Google login state | 40 pts |
| CAPTCHA / block detection | 30 pts |
| Search capability | 20 pts |
| Proxy connectivity | 10 pts |
Total: 100. Stored as healthScore per account.
How it runs
- Launch browser with account's married proxy + fingerprint + cookies
- Navigate to Google
- Check if signed in (look for avatar element)
- Check for CAPTCHA or block page
- Run a test search
- Sum weighted scores
- Update
healthScorein store
Routes
bash
# Single health check
curl -X POST http://localhost:4700/health/check \
-H "Content-Type: application/json" \
-d '{ "accountId": "abc123" }'
# Batch
curl -X POST http://localhost:4700/health/batch \
-H "Content-Type: application/json" \
-d '{ "filter": { "minHealth": 0, "maxHealth": 50 }, "limit": 20 }'Related
- account-store
- Account Lifecycle
- self-healing: auto-fix when health drops