Add a time-boxed hold on autonomous work
Working on the live stack meant fighting the daemon: it triaged alerts a deploy caused, and its own commits landed mid-session. Stopping the service is the only lever today, and it is easy to leave stopped. `hold 45m <why>` in Matrix, or `maintainer.py --hold 45m --reason …` from a shell, pauses everything the daemon starts by itself — health cycles, alert triage, weekly upgrades — for a bounded time. Operator messages still run, and alerts still batch, so one triage run covers the whole hold. It says in the room when the hold starts and when it runs out, `status` shows it, and `resume` ends it early. The hold lives in hold.json beside the state file: `--hold` from a shell has to reach a daemon that rewrites its own state whenever it likes. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
a725abbfbc
commit
4782849ce5
3 files changed
+207
-4
No files matched your search
@@ -30,6 +30,8 @@ A message that is exactly one of these words is handled at once, even mid-run:
|
||||
|---|---|
|
||||
| `status` | What it is doing, the queue, health, host, next upgrade |
|
||||
| `cancel` / `stop` | Stop the agent run in progress |
|
||||
| `hold 45m <why>` | Stand down for a while: `hold` alone is 30 minutes, 8 hours is the most. Your messages still run and alerts still collect; health checks, triage and upgrades wait, and it says so when the hold starts and when it runs out |
|
||||
| `resume` | End a hold now |
|
||||
| `new` | Forget this room's conversation |
|
||||
| `upgrade` | Run the weekly upgrade now |
|
||||
| `help` | The list |
|
||||
@@ -145,6 +147,18 @@ register scripts find valid tokens and change nothing.
|
||||
## Operating
|
||||
|
||||
- **Logs:** `journalctl -u semprini-maintainer -f`, or `status` in Matrix.
|
||||
- **Working on the stack yourself:** hold it, rather than stopping the service — a hold
|
||||
expires on its own, so nothing stays paused because someone forgot. From Matrix,
|
||||
`hold 45m upgrading postgres`; from a shell on the host, or over ssh from a session:
|
||||
|
||||
```bash
|
||||
~/semprini-maintainer/maintainer.py --hold 45m --reason "upgrading postgres"
|
||||
~/semprini-maintainer/maintainer.py --resume
|
||||
```
|
||||
|
||||
The hold lives in `hold.json` beside the state file, so it reaches a running daemon and
|
||||
survives a restart. semprini-core's `infra/sync-to-host.sh` sets 15 minutes on every
|
||||
deploy, so the daemon does not chase the churn a deploy makes.
|
||||
- **Stop everything it does:** `sudo systemctl stop semprini-maintainer`. For "watch but
|
||||
don't touch", set `"autonomy": "notify"` and restart the service.
|
||||
- **Update the daemon:** push to `main` here. It fast-forwards within the hour, runs
|
||||
|
||||
Reference in new issue
Block a user