feat: add Matrix coordination channel, replace openclaw (Closes #8)

Add matrix_send() to lib/env.sh and matrix_listener.sh daemon for
real-time notifications, threaded escalations, and human-in-the-loop
replies. All agents now notify via Matrix instead of openclaw.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
johba 2026-03-14 16:25:33 +01:00
parent 90ef03a304
commit f215fbe3cf
11 changed files with 266 additions and 23 deletions

View file

@ -40,12 +40,14 @@ This gives you:
- `$PROJECT_NAME` — short project name (for worktree prefixes, container names)
- `$PRIMARY_BRANCH` — main branch (master or main)
- `$FACTORY_ROOT` — path to the dark-factory repo
- `matrix_send <prefix> <message>` — send notifications to the Matrix coordination room
## Escalation
If you can't fix it, escalate to Clawy (the main agent):
If you can't fix it, escalate via Matrix:
```bash
openclaw system event --text "🏭 ESCALATE: <what's wrong and why you can't fix it>" --mode now
source ${FACTORY_ROOT}/lib/env.sh
matrix_send "supervisor" "🏭 ESCALATE: <what's wrong and why you can't fix it>"
```
Do NOT escalate if you can fix it. Do NOT ask permission. Fix first, report after.