inbox-remediation
Auto-remediate steadfaste-fleet issues reported by peer agents via the Agent Bus. Scans pending remediation markers every 10 minutes, reads the original message, applies the fix, and marks the request as done.
- License 许可
- MIT
- 最近更新
- 2026-11-14
- Stars
- ★ 4
- Forks
- 1
01 前言 Front Matter
- name
- inbox-remediation
- author
- Steadfaste Fleet
- license
- MIT
- version
- 1.1.0
- metadata
- { "hermes": { "tags": [ "cron", "remediation", "bus", "multi-agent", "auto-fix" ], "related_skills": [ "auto-remediation", "orch-weekly-auto-fix", "fleet-bus", "public-contribution" ] } }
- description
- Auto-remediate steadfaste-fleet issues reported by peer agents via the Agent Bus. Scans pending remediation markers every 10 minutes, reads the original message, applies the fix, and marks the request as done.
02 资源文件 1
- 参考文档references/bus-api-address-patterns.md4.3 KB
03 SKILL.md 正文
Moses Inbox Remediation (Bus-Based)
When to Use
Load this skill when:
- Setting up the orch-process-agent-messages cron
- Other agents need to report steadfaste-fleet issues and have them auto-fixed
- You want a multi-agent auto-remediation pipeline
Architecture
[Peer Agent] sends message via Agent Bus (inbox_send MCP tool)
↓
[bus-audit-watchdog] runs every 1m (no_agent)
↓ Detects keywords: error, failed, broken, crash, help, etc.
↓ Writes remediation marker to ~/.hermes/state/remediate/
↓
[orch-inbox-remediate.sh] companion script (no_agent)
↓ Reads markers
↓ Outputs structured JSON: [{sender, subject, body, marker_file}]
↓
[agent-remediate-apply] no_agent cron every 10m
↓ Reads companion script output
↓ Applies fix using terminal/web tools
↓ Moves marker to remediate/done/
↓
[Reports to user] — compact summary of what was fixed
Setup
1. Deploy the companion script
cp steadfaste-fleet/scripts/orch-inbox-remediate.sh ~/.hermes/scripts/
chmod +x ~/.hermes/scripts/orch-inbox-remediate.sh
2. Create the orch-process-agent-messages cron
hermes cron create \
--name "orch-process-agent-messages" \
--schedule "every 10m" \
--prompt "$(cat << 'PROMPT'
You are Moses, the orchestration mind of Hermes. This is your agent message processor.
## Step 1: Check for pending remediation markers
Run the companion script:
```bash
~/.hermes/scripts/orch-inbox-remediate.sh
If output is [], respond with [SILENT] — nothing needs remediation.
Step 2: Process each pending item
For each item in the JSON array, you have:
- sender, subject, body (full message), marker_file (path)
Read the message body carefully to understand what needs fixing.
Step 3: Fix it
Use terminal and web tools. Check git, Docker, permissions, missing files. Run orch-weekly-auto-fix.py as a safety net:
python3 ~/.hermes/scripts/orch-weekly-auto-fix.py --verbose
Step 4: Mark remediation as done
mkdir -p ~/.hermes/state/remediate/done
mv <marker_file_path> ~/.hermes/state/remediate/done/
cd ${FLEET_REPO:-$HOME/steadfaste-fleet}-private && git add -A && git commit -m "remediation: ..." && git push
Step 5: Report compact summary
PROMPT
)"
--enabled-toolsets terminal,file,web
### 3. Remediation is bus-driven
The `bus-audit-watchdog` (every 1m, no_agent) handles detection — scanning bus messages for error/failure keywords and writing remediation markers. The `agent-remediate-apply` cron (every 10m) reads markers and applies fixes.
| Agent | Path | Schedule |
|-------|------|----------|
| Detection | `bus-audit-watchdog.py` (no_agent) | Every 1m |
| Remediation | `agent-remediate-apply.py` (no_agent) | Every 10m |
## Detection Keywords
The bus audit watchdog flags messages containing these keywords in the subject or body:
- error
- failed
- crash
- down
- help
- broken
- stuck
- not working
- issue
- problem
- script failure
## SLA
| Step | Interval | Worst Case |
|------|----------|------------|
| Message detection | every 1m | ~1 min |
| Remediation processing | every 10m | ~10 min |
| Total from send to fix | — | ~11 min |
## Pitfalls
- **Marker files without corresponding inbox messages.** If the private repo's inbox is cleaned before the processor runs, the marker will point to a non-existent file. The script handles this gracefully (empty body).
- **Don't re-process old markers.** The companion script only reads `remediate/` root — files in `remediate/done/` are ignored.
- **Git push may fail due to remote changes.** The processor should attempt the push but not fail if it can't — the remediation is local state.
- **The cron needs terminal + file + web toolsets.** Without `terminal`, it can't run git/Docker commands. Without `file`, it can't read the marker files.
- **Credentials in message bodies.** Never put secrets in inbox messages — they're plaintext in git history. The remediation processor reads the body to understand the issue, but secrets should never be there in the first place.
04 同仓库更多 Skills
macbook-linux-maintenance
Legacy MacBook Linux fixes: GPU wedge, reboot hang, thermal.
governance-regression-triage
Triage a host's governance issues: what changed.
enforcement-immutability
Use when enforcement files lose their immutable flag.
steadfaste-fleet-repo-deploy
Use when committing to the steadfaste-fleet repo.
steadfaste-fleet-maintenance
Maintain an installed Steadfaste Fleet instance — update both the upstream Hermes Agent and the fleet repo layer, merge diverged histories, sync skills safely, and troubleshoot common issues. Covers the dual-update workflow (hermes update + fleet-update.sh), encrypted brain data backup, mycortex import, and recovery techniques.
fleet-preflight
DEPRECATED alias — merged into survey-before-action (2026-08-20). Load survey-before-action instead; its "Repo-Specific Pre-Flight" section covers git search, Hermes boundary, and deployment verification.