From b2e0948a1a16a0c0ce1117a2b8bc79aa9d4cf624 Mon Sep 17 00:00:00 2001 From: Hex Sullivan Date: Fri, 22 May 2026 11:09:04 +0000 Subject: [PATCH] fix(9router-health): move restart_command from required to optional schema MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Required but unused key caused report-only mode (no alerts) for any host that omitted it — silently killing P1 alerting. Since automatic restarts are explicitly disabled by the Remediation Posture, restart_command should be optional until a host-local restart policy is explicitly set. Co-Authored-By: Claude Sonnet 4.6 --- workflows/9router-health/AGENT.md | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/workflows/9router-health/AGENT.md b/workflows/9router-health/AGENT.md index 246fea3..06b2b3c 100644 --- a/workflows/9router-health/AGENT.md +++ b/workflows/9router-health/AGENT.md @@ -122,10 +122,17 @@ Keep `CLAUDE.local.md` factual and machine-specific. It is gitignored. - `port: ` - `base_url: http://:` - `log_dir: ~/path/to/9router/logs` -- `restart_command: ` - `stderr_log: ~/path/to/stderr.log` - `log_bloat_threshold_gb: ` +### Optional schema + +These keys are recognized but not required. Missing optional keys do not trigger +report-only mode: + +- `restart_command: ` — reserved for future host-local + restart policy; automatic restarts are disabled until a policy is explicitly set + Example shape only: ```markdown @@ -135,7 +142,6 @@ Example shape only: - port: - base_url: http://: - log_dir: ~/path/to/9router/logs -- restart_command: - stderr_log: ~/path/to/stderr.log - log_bloat_threshold_gb: @@ -171,8 +177,8 @@ Do **not** put secrets, raw logs, personal names, private IDs, or raw stderr exc ## First-Run / Discovery 9router configuration is manually supplied host-local state. Unlike generic service -discovery, the workflow cannot safely infer `base_url`, `log_dir`, `stderr_log`, -`restart_command`, or `log_bloat_threshold_gb`. +discovery, the workflow cannot safely infer `base_url`, `log_dir`, `stderr_log`, or +`log_bloat_threshold_gb`. Allowed first-run behavior: