--- name: incident-escalation description: "Use when an agent cannot solve a problem. Escalate it." version: 1.0.0 author: HamaratLabs license: MIT --- # Incident Escalation and Repair-Specialist Handoff Use this workflow for unresolved technical, operational, authentication, MCP, gateway, synchronization, build, or data-integrity problems. ## Procedure 1. Try two reasonable, non-destructive hypotheses and preserve their exact outputs. Do not endlessly retry the same failing command. 2. Classify severity: `low`, `medium`, `high`, or `critical`. Treat cross-agent failures, possible data loss, auth failures, broken sync, and production/build blockers as at least `high`. 3. Prepare a sanitized handoff containing the exact error, affected profile/project, reproduction steps, attempts, expected behavior, actual behavior, and scope boundaries. Remove secrets, tokens, OTPs, `.env` values, and private keys. 4. Consult your repair-specialist agent (``, set during setup) with the handoff, for example: ```bash hermes -p chat -q "" --oneshot ``` This command exits 0 even when delivery fails — read the printed text, not the exit code. A line like `Hermes couldn't start the model connection: invalid_params. Your message was not sent.` means nothing reached the repair specialist. If that failure appears, before assuming the target profile is broken, reproduce the exact same command against one or two unrelated profiles (and against `` itself). A failure that reproduces everywhere means the `hermes -p chat -q/-Q --oneshot` delegation channel itself is down, not the target agent — the repair specialist is then unreachable by this same path. In that case stop retrying this channel and report the failure (with the cross-profile reproduction) directly to the user instead of looping, since the normal handoff is unavailable. As a first cheap, read-only diagnostic, check `hermes auth list` for the affected provider. If a stuck cooldown is suspected, suggest `hermes auth reset ` to the user; do not run it yourself without the user's explicit approval, since it changes authentication state. 5. Give the repair specialist permission only for the requested scope. Keep irreversible external changes approval-gated. 6. Verify the repair specialist's proposed solution independently with a reproduction test, file read-back, or provider read-back. A plausible explanation is not a resolved incident. 7. When a high/critical incident is fixed, send the repair specialist the root cause, remedy, verification output, prevention rule, and affected paths so it can save an incident record. 8. Keep unresolved items in the repair specialist's `open/` area with the next experiment; never record an unverified workaround as a durable solution. ## Solution center Location (configured during setup): ```text /solution-center/ ``` - `incidents/`: verified high/critical resolutions - `patterns/`: reusable solutions across projects - `open/`: unresolved or verification-pending issues - `templates/`: intake and incident formats ## Pitfalls - Do not send only “it fails”; the repair specialist needs the complete error and reproduction boundary because root-cause analysis depends on distinguishing environment, provider, and code failures. - Do not paste credentials into the handoff; auth incidents can be diagnosed from provider, command, status, and redacted output. - Do not let the repair specialist and the primary coder edit the same files simultaneously; parallel edits destroy causal evidence and complicate verification. - Do not close the incident on a successful command alone; rerun the original failing path and verify the exact target state. - Do not trust exit code 0 as proof a `hermes -p chat` message was sent; some failures (model connection errors) print to stdout and still exit 0. See `references/intake-and-severity.md` for the required handoff fields and severity table.