Repository navigation
feat(doctor): overhaul reach doctor diagnostics, views, and CLI - #83
Conversation
🤖 Antigravity AI Code ReviewModel: Gemini 3.8 Flash | Commit: Pull Request Review:
|
🤖 Antigravity AI Code ReviewModel: Gemini 3.8 Flash | Commit: Pull Request Review:
|
Summary
Overhaul
reach doctorto provide comprehensive, resilient environment and workspace health diagnostics:Environment,Runtimes,Credentials,Skills,Configuration).CheckResult,CheckStatus,DoctorReport) with multi-format rendering (tablewith Rich theme tokens and markup escaping,json,jsonl,csv).Environment: Python version check and optionalSemantic Scoring (model2vec).Credentials: ValidateGEMINI_API_KEYand fallbackGOOGLE_API_KEYviaresolve_env_secret(supporting direct env vars and*_FILEsecret pointers), ADC credentials with tilde expansion, Vertex AI toggle flags, and isolated Agent Registry project/ADC/cache inspection.Skills: RootSKILL.mddetection, custom[study].skillssupport, standard directory discovery, global skill discovery (-g), per-skill symlink deduplication, and relative path label formatting.Configuration: Conciseloc: msgPydanticValidationErrorreporting.[PATH],-p/--path,-c/--config,-g/--global,-v/--verbose,-q/--quiet, and--format(table|json|jsonl|csv).docs/cli/doctor.mdwith category details, key scenarios tabs, exit codes, and options table; all parity tests intests/test_docs.pypass cleanly.Test Plan
uv run pytest tests/cli/test_doctor.py --cov=reach.cli.doctor --cov=reach.views.doctor --cov-branch: 89 passed, 100.00% line & branch coverage.uv run pytest: 3,558 passed across the repository.uv run ruff check .&uv run ruff format --check .: 0 errors.uvx ty check: All checks passed.npx prettier --check "docs/cli/doctor.md"&uv run mkdocs build --strict: Documentation builds cleanly without warnings.