nixos/palace: Extend slop approval timeout

Give approvers 30 minutes to answer each request so brief absences
are less likely to interrupt agent work.
This commit is contained in:
jackos1998 committed 2026-11-26 14:07:52 +00:00
1 parent cca27d60b0
commit e62a3917b7
3 files changed
+14 -2

No files matched your search

+2 -2
View File
@@ -191,8 +191,8 @@ These APs are not managed by the flake; only their DNS records are. Read and upd
## Working from `slop-cannon`
Agents on `slop-cannon` have no deploy or SSH keys, so `deploy` and `ssh-machine` don't work there.
Use `slop` instead; `slop guide` explains it. Requests that need approval can wait up to five
minutes for a human. See [`docs/slop-broker.md`](docs/slop-broker.md).
Use `slop` instead; `slop guide` explains it. Run requests that need approval in the background
or give the tool enough time for the [approval window](docs/slop-broker.md#approval-timeout).
- `slop status`, `slop logs` and `slop failed` look at a box without waiting for approval.
- `slop ssh <node> -- <cmd>` runs anything else. Nodes are the deploy-rs nodes on `master`;
+11
View File
@@ -77,6 +77,17 @@ Deploy approvals ("on the branch", the diff since `master`) and secret approvals
`master`, so only Dev may push to it or merge into it: branch protection on `dev/nixfiles` in Gitea
refuses everyone else, including the bot user that agents on `slop-cannon` push as.
## Approval timeout
[`services.slop-broker.timeout` on `palace`](../nixos/boxes/home/palace/slop-broker.nix) gives
each approval step up to 30 minutes. For example, a deploy can wait for builder approval before
the build and for deploy approval afterward, with a separate window for each step.
The five-minute window in `slop guide` and `slop --help` is the broker's upstream default.
Keep `slop` running while the request is pending. Use a background session for commands that
may need approval. If the client disconnects, the broker cancels the pending request.
`slop requests` shows how much time each pending request has left.
## Approvals web app
`middleman` proxies `approve.slop.nul.ie` to port 8095 on `palace`. Approvers sign in through
+1
View File
@@ -78,6 +78,7 @@
services.slop-broker = {
enable = true;
timeout = "30m";
approvers = [ config.my.user.config.name ];
# For coding agents, wherever they run