Skip to content

feat: opt-in post-install continuous health report (#17) - #23

Merged
solomonneas merged 1 commit into
mainfrom
cursor/opt-in-health-report-7e47
Aug 9, 2026
Merged

feat: opt-in post-install continuous health report (#17)#23
solomonneas merged 1 commit into
mainfrom
cursor/opt-in-health-report-7e47

Conversation

@solomonneas

Copy link
Copy Markdown
Collaborator

Summary

Implements issue #17: an opt-in, read-only post-install health report that rechecks the deployed stack using existing verify.sh / LXC / state plumbing.

Usage

sudo bash install.sh --health-report
sudo bash install.sh --health-report --components wazuh,misp
sudo bash install.sh --health-report --health-report-out /root/health.json

Off by default. Continuous monitoring is operator-scheduled (cron/systemd timer); the installer does not install a timer.

Behavior

  • Probes each component: state status, LXC exists/running, one-shot verify.sh, integration.status
  • Checks artifact freshness for result JSON / MCP config / state dir
  • Emits machine-readable JSON to stdout and <state-dir>/health-report.json
  • Exit 0 only when overall healthy; 1 otherwise
  • Non-destructive: no deploy, integrate, destroy, or secret rotation

False-healthy guards

  • Running LXC + failed verify.shunhealthy (not healthy)
  • Missing or malformed required result artifact → overall unhealthy

Scope vs concurrent work

Verification

./scripts/verify

All gates passed: 119 unit tests, shellcheck, manifest validation (exit 0).

Open in Web Open in Cursor 

@solomonneas solomonneas self-assigned this Aug 9, 2026
Add --health-report for a read-only, machine-readable stack health
summary that reuses verify.sh, LXC status, integration state, and
artifact freshness. Off by default; does not deploy or integrate.

Co-authored-by: Solomon Neas <solomonneas@users.noreply.github.com>
@solomonneas
solomonneas force-pushed the cursor/opt-in-health-report-7e47 branch from 1e89a87 to 5841f85 Compare August 9, 2026 08:49
@solomonneas
solomonneas marked this pull request as ready for review August 9, 2026 08:54
@solomonneas
solomonneas merged commit 3d65423 into main Aug 9, 2026
5 checks passed
@solomonneas
solomonneas deleted the cursor/opt-in-health-report-7e47 branch August 9, 2026 08:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants