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.
This commit was merged in pull request #4.
This commit is contained in:
1 parent
bc7c2e36b9
commit
1119371d2e
5 files changed
+26
-2
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`
|
## Working from `slop-cannon`
|
||||||
|
|
||||||
Agents on `slop-cannon` have no deploy or SSH keys, so `deploy` and `ssh-machine` don't work there.
|
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
|
Use `slop` instead; `slop guide` explains it. Run requests that need approval in the background
|
||||||
minutes for a human. See [`docs/slop-broker.md`](docs/slop-broker.md).
|
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 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`;
|
- `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
|
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
|
[`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`.
|
(`~/.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
|
## SSH and first login
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
`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.
|
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
|
## Approvals web app
|
||||||
|
|
||||||
`middleman` proxies `approve.slop.nul.ie` to port 8095 on `palace`. Approvers sign in through
|
`middleman` proxies `approve.slop.nul.ie` to port 8095 on `palace`. Approvers sign in through
|
||||||
|
|||||||
@@ -78,6 +78,7 @@
|
|||||||
|
|
||||||
services.slop-broker = {
|
services.slop-broker = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
timeout = "45m";
|
||||||
approvers = [ config.my.user.config.name ];
|
approvers = [ config.my.user.config.name ];
|
||||||
|
|
||||||
# For coding agents, wherever they run
|
# For coding agents, wherever they run
|
||||||
|
|||||||
@@ -226,6 +226,14 @@ in
|
|||||||
enable = true;
|
enable = true;
|
||||||
slop.enable = true;
|
slop.enable = true;
|
||||||
rules.gitea = giteaRule;
|
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 ];
|
home.packages = [ slopClone slopPair tea ];
|
||||||
|
|||||||
Reference in new issue
Block a user