add matrix publish/consume transport for orchestrator rail

This commit is contained in:
Jason Woltje
2026-02-17 13:35:25 -06:00
parent 4c7c314aac
commit d7d5415bce
11 changed files with 266 additions and 2 deletions

View File

@@ -44,7 +44,26 @@ Continuous loop:
~/.mosaic/bin/mosaic-orchestrator-run --poll-sec 10
```
Publish new orchestrator events to Matrix:
```bash
~/.mosaic/bin/mosaic-orchestrator-matrix-publish
```
Consume Matrix task messages into `tasks.json`:
```bash
~/.mosaic/bin/mosaic-orchestrator-matrix-consume
```
## Matrix Note
This rail writes canonical events to `.mosaic/orchestrator/events.ndjson`.
Matrix bridge services can consume and relay these events to Matrix rooms.
The Matrix transport bridge publishes those events into the configured control room
and can consume task commands from that room.
Task injection message format (room text):
```text
!mosaic-task {"id":"TASK-123","title":"Fix bug","command":"echo run","quality_gates":["pnpm lint"]}
```