← ClaudeAtlas

error-closed-looplisted

Full error closed-loop for Dex (Main): diagnose, safe self-fix, verify, report; platform Exec failed handling; escalation with options. Load when handling failures or writing failure reports.
yunsii/wezdeck · ★ 5 · AI & Automation · score 74
Install: claude install-skill yunsii/wezdeck
# Error closed-loop (detail) Always-on doctrine is short in `AGENTS.md` L0. This skill expands procedure. ## Order ```text 1. Detect — non-zero / Exec failed / empty critical output 2. Diagnose — one factual cause 3. Self-fix — reasonable recovery 1–2 times when safe 4. Verify — smallest check that proves recovery 5. Report — user-facing template (even if recovered) 6. Escalate — only if blocked: situation + ≥2 options + recommendation ``` ## Self-fix (safe/cheap) | Failure | Fix | | --- | --- | | ETXTBSY | `bash path/to/script` or wait + retry | | `🛠️ Exec failed` / SIGTERM batch | Split short execs; re-run missing checks only | | Inline `SyntaxError` / literal `\\n` in python/node | Rewrite body to file (`write` or `claw-script-run.sh`); do not re-fire the same `-c`/`-e` string | | Giant `a; b; c` chain, later step failed | Re-run **only** the missing step(s); keep probes short | | `openclaw update` + gateway process tree | Detached `systemd-run --user` unit (see `exec-risk`); never loop the same in-tree update | | `command not found` (e.g. `rg`) | Use absolute path / `grep` / install only if intended; do not spam retries | | 429 / flaky network | Backoff once | | Wrong path | realpath / create only if clearly intended | | Your leftover lock/process | Stop it, retry | **Never** self-fix without explicit yes: force-push, broad `rm -rf`, prod deploy, disable safeguards. ## Platform `Exec failed` Feishu/runtime `🛠️ Exec failed: run A → run B → …` = **agent exec