Skip to content
Agentmart
Submit a tool

auto-remediation-fixes

Essential auto-remediation fixes for staging server guardian — timeout patterns, provider drift fixes, and operational hygiene for cron job errors and agent…

Skill by lukemcqueen

IndexedMIT★ 4
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/lukemcqueen-auto-remediation-fixes

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Essential auto-remediation fixes for staging server guardian — timeout patterns, provider drift fixes, and operational hygiene for cron job errors and agent inbox remediation.

Use cases: backend, agent-building

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/auto-remediation-fixes

What's inside

Skill name
auto-remediation-fixes
Description
Essential auto-remediation fixes for staging server guardian — timeout patterns, provider drift fixes, and operational hygiene for cron job errors and agent inbox remediation.
License
MIT
Instructions
84 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

# Auto-Remediation Fixes — Orchestrator Patterns

## General Principles

### Conservative Editing of Monitoring Lists

When modifying a cron quality watchdog's `MONITORED_CRONS` list (or any monitoring inventory):

1. **Only remove entries that don't exist.** An existing cron, even if it's a `no_agent` script rather than an LLM-driven cron, still produces output worth monitoring. The watchdog checks apply to all output, not just LLM-generated text.
2. **Add new entries rather than shuffling.** If the list is missing crons that should be monitored, add them. Rearranging is cosmetic and risks accidentally removing a valid entry.
3. **Verify each entry exists.** Check `cronjob(action='list')` or `read_file('~/.hermes/cron/jobs.json')` before deciding an entry is stale.

## Timeout Patterns

### Cron Timeout Fires

When a cron times out ("timed out after Ns"):

1. Check the cron's actual runtime — `cronjob action='list'` shows `last_duration`.
2. If the script legitimately needs more time, raise the timeout — do not "optimize" a script that is correctly slow.
3. If the script hangs (waiting on network, lock, or stdin), fix the hang — raising the timeout just delays the failure.

### Provider Timeout Drift

When an API provider (OpenRouter, DeepSeek, Ollama) starts timing out:

1. Verify the provider's own status page (health-external-verification).
2. Check `OLLAMA_KEEP_ALIVE` — a 0 value unloads the model and the cold-load exceeds the `_embed()` timeout (see loop-governance lesson).
3. Add retry-with-backoff at the call site rather than raising timeouts globally.

## Provider Drift Fixes

### Model/Config Drift After Update

When an update cycle silently changes provider config:

1. **Diff the deployed config vs repo source** — `config-drift-diagnostics` compares 3 locations.
2. **Fix the repo source first**, then deploy — never patch the deployed copy directly (cortex-preflight rule).
3. **Verify the running service actually reloaded** — file-on-disk ≠ change-live (Principle 15).

### Cron Prompts Referencing Missing Skills

When a cron prompt references a skill that doesn't exist or was renamed:

1. Find the real skill name — `skills_list()`.
2. Update the cron's skill attachment — `cronjob action='update' skills=[...]`.
3. Update the installer source in `install-crons.sh` so the fix survives redeploys.

## Operational Hygiene

### Remediation Must Be Idempotent

Every fix applied by the guardian must be safe to re-run on an already-fixed system:

```bash
# ✅ Idempotent: check-then-act
if ! grep -q "setting" config; then
  echo "setting" >> config
fi

# ❌ Non-idempotent: appends every time
echo "setting" >> config
```

### Escalate After Repeated Failure

A remediation that fires 3+ times for the same root cause is a failed fix, not a healthy loop:

1. First occurrence: remediate, log outcome.
2. Second occurrence: remediate + check the fixer's own logic (wrong pattern?).
3. Third occurrence: **escalate** — stop auto-fixing, report to the orchestrator with the failure history.

### Unattended Destructive Actions Default to No-Op

In unattended/cron mode, destructive operations (prunes, deletions, resets) default to **inaction** when ambiguous. Disk pressure can be remediated; deleted data cannot.

## Related
- `auto-remediation-ecosystem` — full-pipeline deployment + monitoring
- `auto-remediation-setup` — setup and verification
- `cron-quality-gate` — the watchdog that monitors cron output
- `sensor-false-positive-remediation` — handling false sensor positives
- `fix-without-asking` — when to auto-fix vs escalate

From lukemcqueen/hermes-cortex, MIT.

More from lukemcqueen/hermes-cortex

Signals

Stars
4
Forks
1
Open issues
1
Last commit (this folder)
Aug 1, 2026 (2 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from lukemcqueen

Cite this page

auto-remediation-fixes skill. Agent Mart. https://agentmart.dev/skills/lukemcqueen-auto-remediation-fixes (last updated 2026-10-24)