From b155102afebfd90889a1e36829734a42fe302d7d Mon Sep 17 00:00:00 2001 From: Cal Corum Date: Thu, 19 Feb 2026 22:17:01 -0600 Subject: [PATCH] store: Fix: remediate.sh wrapper on CT 302 for Claude escalation from n8n --- ...t-302-for-claude-escalation-from-88d56c.md | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 graph/fixes/fix-remediatesh-wrapper-on-ct-302-for-claude-escalation-from-88d56c.md diff --git a/graph/fixes/fix-remediatesh-wrapper-on-ct-302-for-claude-escalation-from-88d56c.md b/graph/fixes/fix-remediatesh-wrapper-on-ct-302-for-claude-escalation-from-88d56c.md new file mode 100644 index 00000000000..7296f5d56e0 --- /dev/null +++ b/graph/fixes/fix-remediatesh-wrapper-on-ct-302-for-claude-escalation-from-88d56c.md @@ -0,0 +1,32 @@ +--- +id: 88d56c13-352b-4f0f-b051-00de05458037 +type: fix +title: "Fix: remediate.sh wrapper on CT 302 for Claude escalation from n8n" +tags: [claude-runner, n8n, monitoring, homelab, claude-code, automation] +importance: 0.7 +confidence: 0.8 +created: "2026-02-20T04:17:01.714148+00:00" +updated: "2026-02-20T04:17:01.714148+00:00" +--- + +# remediate.sh on CT 302 (claude-runner) + +## Location +`/root/.claude/skills/server-diagnostics/remediate.sh` on CT 302 (10.10.0.148) + +## Purpose +Bash wrapper that receives escalation JSON data from n8n and invokes Claude CLI in headless mode to diagnose and remediate server issues autonomously. + +## Invocation +Called by the n8n Server Health Monitor workflow when `health_check.py` exits with code 2 (escalation needed). + +## Claude CLI Command Used +```bash +claude --print --dangerously-skip-permissions +``` + +## Flow +1. n8n SSH node detects exit code 2 from health_check.py +2. n8n passes escalation JSON to remediate.sh via SSH +3. remediate.sh invokes Claude CLI with the escalation context +4. Claude diagnoses and remediates the issue headlessly