Purpose
Create the reusable diagnostic model needed by rustinel doctor and later by rustinel setup health checks.
Scope
- Add a common diagnostic result model.
- Add human-readable doctor output.
- Add
doctor --json for automation.
- Implement exit codes:
0 healthy
1 warnings
2 failures
- Detect portable versus managed mode.
- Check configuration discovery and parsing.
- Report resolved paths.
- Check log and alert directory writability where applicable.
- Aggregate pass, warn, and fail results consistently.
- Keep the command strictly read-only.
Acceptance Criteria
Dependencies
Depends on the layout and configuration foundation for full path reporting, but the result model can start independently.
Priority
P0
Purpose
Create the reusable diagnostic model needed by
rustinel doctorand later byrustinel setuphealth checks.Scope
doctor --jsonfor automation.0healthy1warnings2failuresAcceptance Criteria
rustinel doctorruns without starting the full agent.doctor --jsonreturns structured results suitable for automation.Dependencies
Depends on the layout and configuration foundation for full path reporting, but the result model can start independently.
Priority
P0