Skip to content

Add --health flag for self-diagnostics and monitoring #65

@rz1989s

Description

@rz1989s

Summary

Add a --health flag to statusline.sh for automated health checks and self-diagnostics.

Background

From production readiness audit (2025-12-13): No health check endpoint exists for automated monitoring or verification.

Requirements

  • Add --health flag to statusline.sh
  • Check all required dependencies (jq, curl, bash version)
  • Verify all modules load successfully
  • Validate configuration file exists and is parseable
  • Check cache directory permissions
  • Return exit code 0 for healthy, non-zero for issues
  • Output JSON format for machine parsing

Example Output

$ ./statusline.sh --health
{
  "status": "healthy",
  "version": "2.11.5",
  "modules_loaded": 11,
  "modules_failed": 0,
  "dependencies": {
    "jq": "1.7",
    "curl": "8.4.0",
    "bash": "5.2.21"
  },
  "config": "valid",
  "cache": "writable"
}

Use Cases

  • Automated monitoring systems
  • Installation verification
  • Troubleshooting diagnostics
  • CI/CD health checks

Priority

🟡 Medium Priority

References

  • Production Readiness Report: docs/production-readiness-report.md

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions