mix cairnloop.doctor (cairnloop v0.5.1)

Copy Markdown View Source

Diagnoses your host application's Cairnloop wiring and prints calm, reason-forward findings.

It inspects your router and :cairnloop config to catch the "compiles but isn't wired" problems that are easy to miss: a dashboard or /health route that was never mounted, a /metrics endpoint that will 501 because the optional Prometheus dependency is absent, or an audit log that will render empty because no auditor is configured.

Usage

# Infer your router (<App>Web.Router):
mix cairnloop.doctor

# Name the router explicitly (umbrellas / non-standard names):
mix cairnloop.doctor MyAppWeb.Router

# Treat warnings as failures (CI):
mix cairnloop.doctor --strict

Exit codes

  • 0 — no blocking issues (warnings allowed unless --strict).
  • 1 — at least one blocking issue (or any warning under --strict).