Module doctor

Module doctor 

Source
Expand description

Health reporting for installed packages and install roots.

The doctor workflow provides a single public entry point, health_report, that gathers database and filesystem diagnostics into a crate::models::domains::reporting::HealthReport. The implementation stays split across the internal helper modules so the report assembly code does not need to know the details of package scanning, scan timing breakdowns, or diagnostic formatting.

The pipeline is intentionally narrow:

  • report assembles the final report structure and summary counts.
  • scan is split into package, msi, journal, and orphan helpers so recovery policy logic can evolve independently.

CLI code owns any interactive presentation around the report, including the spinner and terminal formatting. The app layer only returns structured data.

Modulesยง

report ๐Ÿ”’
Summary assembly for the doctor report.
scan ๐Ÿ”’
Shared coordination for doctor scan sources.

Functionsยง

health_report
Build a full health report for the current application context.