From e62a3917b74af29f80489c80a2e63ce77dd90a5f Mon Sep 17 00:00:00 2001 From: Jack O'Sullivan Date: Thu, 26 Nov 2026 14:07:31 +0000 Subject: [PATCH] nixos/palace: Extend slop approval timeout Give approvers 30 minutes to answer each request so brief absences are less likely to interrupt agent work. --- AGENTS.md | 4 ++-- docs/slop-broker.md | 11 +++++++++++ nixos/boxes/home/palace/slop-broker.nix | 1 + 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index 675f7f7..df4c615 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -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 -- ` runs anything else. Nodes are the deploy-rs nodes on `master`; diff --git a/docs/slop-broker.md b/docs/slop-broker.md index beef050..0519d12 100644 --- a/docs/slop-broker.md +++ b/docs/slop-broker.md @@ -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 diff --git a/nixos/boxes/home/palace/slop-broker.nix b/nixos/boxes/home/palace/slop-broker.nix index dad8d77..f9f2451 100644 --- a/nixos/boxes/home/palace/slop-broker.nix +++ b/nixos/boxes/home/palace/slop-broker.nix @@ -78,6 +78,7 @@ services.slop-broker = { enable = true; + timeout = "30m"; approvers = [ config.my.user.config.name ]; # For coding agents, wherever they run