add matrix orchestrator rail and repo scaffolding
This commit is contained in:
@@ -29,3 +29,19 @@ Verify enforcement:
|
||||
```bash
|
||||
~/.mosaic/bin/mosaic-quality-verify --target .
|
||||
```
|
||||
|
||||
## Optional Matrix Orchestrator Rail
|
||||
|
||||
Repo-local orchestrator state lives in `.mosaic/orchestrator/`.
|
||||
|
||||
Run one cycle:
|
||||
|
||||
```bash
|
||||
~/.mosaic/bin/mosaic-orchestrator-run --once
|
||||
```
|
||||
|
||||
Run continuously:
|
||||
|
||||
```bash
|
||||
~/.mosaic/bin/mosaic-orchestrator-run --poll-sec 10
|
||||
```
|
||||
|
||||
19
templates/repo/.mosaic/orchestrator/config.json
Normal file
19
templates/repo/.mosaic/orchestrator/config.json
Normal file
@@ -0,0 +1,19 @@
|
||||
{
|
||||
"enabled": false,
|
||||
"transport": "matrix",
|
||||
"matrix": {
|
||||
"control_room_id": "",
|
||||
"workspace_id": "",
|
||||
"homeserver_url": ""
|
||||
},
|
||||
"worker": {
|
||||
"runtime": "codex",
|
||||
"command_template": "",
|
||||
"timeout_seconds": 7200
|
||||
},
|
||||
"quality_gates": [
|
||||
"pnpm lint",
|
||||
"pnpm typecheck",
|
||||
"pnpm test"
|
||||
]
|
||||
}
|
||||
1
templates/repo/.mosaic/orchestrator/logs/.gitkeep
Normal file
1
templates/repo/.mosaic/orchestrator/logs/.gitkeep
Normal file
@@ -0,0 +1 @@
|
||||
|
||||
1
templates/repo/.mosaic/orchestrator/results/.gitkeep
Normal file
1
templates/repo/.mosaic/orchestrator/results/.gitkeep
Normal file
@@ -0,0 +1 @@
|
||||
|
||||
4
templates/repo/.mosaic/orchestrator/state.json
Normal file
4
templates/repo/.mosaic/orchestrator/state.json
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"running_task_id": null,
|
||||
"updated_at": null
|
||||
}
|
||||
16
templates/repo/.mosaic/orchestrator/tasks.json
Normal file
16
templates/repo/.mosaic/orchestrator/tasks.json
Normal file
@@ -0,0 +1,16 @@
|
||||
{
|
||||
"tasks": [
|
||||
{
|
||||
"id": "EXAMPLE-001",
|
||||
"title": "Example orchestrator task",
|
||||
"description": "Replace this with a real task and command",
|
||||
"status": "pending",
|
||||
"runtime": "codex",
|
||||
"command": "",
|
||||
"quality_gates": [],
|
||||
"metadata": {
|
||||
"source": "bootstrap-template"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user