From 1119371d2e7963e7e54b116a7044efc4a1744efa 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 45 minutes to answer each request. Install guidance for Claude and Codex on `slop-cannon` to report expired requests and pause work that depends on approval. --- AGENTS.md | 6 ++++-- docs/sites/home/slop-cannon.md | 2 ++ docs/slop-broker.md | 11 +++++++++++ nixos/boxes/home/palace/slop-broker.nix | 1 + nixos/boxes/home/palace/vms/slop-cannon.nix | 8 ++++++++ 5 files changed, 26 insertions(+), 2 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index 675f7f7..ee272d3 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -191,8 +191,10 @@ 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). +If a request expires and the task still depends on it, tell the user what is blocked and pause +for their direction. Continue any independent work you can do under the existing approvals. - `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/sites/home/slop-cannon.md b/docs/sites/home/slop-cannon.md index bbe904d..59c479b 100644 --- a/docs/sites/home/slop-cannon.md +++ b/docs/sites/home/slop-cannon.md @@ -180,6 +180,8 @@ Agents ask [`slop-broker`](../../slop-broker.md) on `palace` for anything needin the `slop` command (`my.agents.slop.enable`). It connects over vsock (CID 3; see [`palace`](palace.md#slop-broker)). The agent guide, `slop guide`, is installed as a Claude rule (`~/.claude/rules/slop.md`) and as Codex's `AGENTS.md`. +The `my.agents.rules.slop-approvals` rule adds the local guidance on waiting for approval +and pausing after expiry to both providers' user-level instructions, including in Paseo sessions. ## SSH and first login diff --git a/docs/slop-broker.md b/docs/slop-broker.md index 69da46b..24d9d40 100644 --- a/docs/slop-broker.md +++ b/docs/slop-broker.md @@ -86,6 +86,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 45 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..fafbb8f 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 = "45m"; approvers = [ config.my.user.config.name ]; # For coding agents, wherever they run diff --git a/nixos/boxes/home/palace/vms/slop-cannon.nix b/nixos/boxes/home/palace/vms/slop-cannon.nix index 12bb01e..e6fe10d 100644 --- a/nixos/boxes/home/palace/vms/slop-cannon.nix +++ b/nixos/boxes/home/palace/vms/slop-cannon.nix @@ -226,6 +226,14 @@ in enable = true; slop.enable = true; rules.gitea = giteaRule; + rules.slop-approvals = '' + # Slop approval requests + + Run `slop` in a background session when it may need approval so it can stay + connected for the broker's configured approval window. If a request expires and + the task still depends on it, tell the user what is blocked and pause for their + direction. Continue any independent work you can do under the existing approvals. + ''; }; home.packages = [ slopClone slopPair tea ];