store: Fix: remediate.sh wrapper on CT 302 for Claude escalation from n8n

This commit is contained in:
Cal Corum 2026-02-19 22:17:01 -06:00
parent da17afdeba
commit b155102afe

View File

@ -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