nixos/palace: Extend slop approval timeout #4
No files matched your search
@@ -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 <node> -- <cmd>` runs anything else. Nodes are the deploy-rs nodes on `master`;
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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 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
|
||||
|
||||
@@ -78,6 +78,7 @@
|
||||
|
||||
services.slop-broker = {
|
||||
enable = true;
|
||||
timeout = "45m";
|
||||
approvers = [ config.my.user.config.name ];
|
||||
|
||||
# For coding agents, wherever they run
|
||||
|
||||
@@ -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 ];
|
||||
|
||||
Reference in new issue
Block a user