feat(doctor): report optional password enrollment
Your AI's guard dog to stop it from going rogue.
Brought to you by:
doberman
Originally created by: slegarraga
Closes [#439]
Password doctor check beside 2FA.password.is_enrolled() presence check; it never reads or exposes the secret.Password appears immediately after 2FA..venv/bin/pytest tests/unit -k doctor — 23 passed, 1 skipped..venv/bin/pytest tests/unit/test_cli_doctor.py tests/unit/test_cli_doctor_json.py — 21 passed..venv/bin/ruff check and .venv/bin/ruff format --check pass on changed files.
Ticket changed by: fu351
Ticket changed by: fu351
Ticket changed by: fu351
Originally posted by: fu351
Merged, thanks @slegarraga! Mirroring
_check_2faline for line, a warning rather than a failure, is the right posture for an optional factor, and the ordering test that pins Password right after 2FA goes red the moment someone reorders the list.