`castle` gets a requester and an approver key for `palace`'s broker, set up with `programs.slop`, to try the SSH transport. `palace` lets the keys in as the requester `castle`, sharing `slop-cannon`'s `agent` policy, and the approver `castle`. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
5.3 KiB
slop-broker
slop-broker carries out privileged operations (SSH
commands, deploys, builds, and later secrets, DNS and previews) for the coding agents on
slop-cannon and other boxes, under a policy and usually after Dev
approves each one. Agents use the slop CLI.
The broker, its NixOS and home-manager modules, its design and the agents' guide live in its own
repository, which this flake takes as the slop-broker input. This page covers how these boxes use
it; for how it works, read the repository's
design.
Boxes
| Box | Role |
|---|---|
palace |
Runs the broker, its builder and the approvals web app's listener; holds the deploy key |
slop-cannon |
The agents' VM; reaches the broker over vsock |
castle |
Agents there are a requester over SSH; Dev also approves from it over SSH |
object |
The binary cache that slop build pushes to |
middleman |
Publishes the approvals web app at approve.slop.nul.ie, Pocket ID at id.nul.ie and Paseo's web app at slop.nul.ie |
palace's configuration is palace/slop-broker.nix:
the requesters, the agent policy they share, the secrets, and the web app settings. Its SSH
targets are the deploy-rs nodes on master, which the builder reads there, so a new box is a
target once it's merged.
In this flake
- Input:
slop-brokerinflake.nix. Its overlay providespkgs.slop-broker, and the common modules importservices.slop-broker,services.slop-broker-builder,services.slop-broker-cacheandprograms.slop. Update it withnix flake update slop-broker. - Persistence:
tmproot.nixkeeps/var/lib/slop-brokerand the builder's home when those services are enabled. - Firewall: the web app's port is open only to
middleman, inpalace's configuration. - Agents:
my.agents.slop(in the sharedagentshome-manager module) installsslopand adds the guide (share/slop-broker/slop-tools.md) as a Claude rule (~/.claude/rules/slop.md) and as Codex'sAGENTS.md.slop-cannonenables it, allowsBash(slop:*)in Claude and keeps thedenyrules for rawdeployandssh-machine. AGENTS.md: "Working fromslop-cannon" points agents atslopinstead ofdeployandssh-machine. Extend it as operations land.- Devshell:
slopandslop-approve, built from the locked input.slopuses.keys/slop-request.keyover SSH when that file exists; an approver key never goes in.keys/, because agents can read the checkout.
Other requesters and approvers
castle uses programs.slop:
its agents are the requester castle (same policy as slop-cannon), and Dev's approver key is
sshApprovers.castle. Both log in to palace as slop.
Binary cache
slop build pushes into Harmonia's store on object as harmonia, whose broker key is limited to
the store protocol and GC roots (services.slop-broker-cache in object's configuration). CI
collects garbage in that store on every run, which the roots survive until they expire (see the
design).
Approvals web app
middleman proxies approve.slop.nul.ie to port 8095 on palace. Approvers sign in through
Pocket ID at id.nul.ie (client slop-approve, restricted to the group slop-approvers; its
secret is palace/slop-broker-oidc-secret). Deploys to the routers (river, stream and
estuary) need a fresh passkey. See the
design.
slop.nul.ie
slop.nul.ie replaces paseo.nul.ie for the Paseo web app on middleman (paseoWebUi in
vhosts.nix, app.baseUrl in slop-cannon.nix), and *.slop.nul.ie is reserved for previews.
The relay stays on paseo-relay.nul.ie for now, because existing pairings use that hostname.
Previews on *.slop.nul.ie will be same-site with every other nul.ie service, so a preview page
can set cookies on .nul.ie and browsers send SameSite=Lax cookies (including the SSO session)
with its requests to other nul.ie services. A separate domain would avoid this; nul.ie is kept
for simplicity.
Rollout
Each step updates this page, the box pages and AGENTS.md as it lands.
- Done:
slop.nul.ie; the broker core, box queries, SSH transport, deploys and builds onpalace;castleover SSH; Pocket ID atid.nul.ie. - Approvals web app: remove the temporary
http://localhost:8095/auth/callbackfrom theslop-approveclient, deploypalaceandmiddleman. - Secrets: the broker's age identity joins
.keys/dev.pubin the recipients thatsecrets.nixgenerates (one full rekey), so the dev key never goes topalace. - DNS, with a Cloudflare token of the broker's own for the public zones.
- Previews on
*.slop.nul.ie, throughmiddleman. - TCP forwards and a cache for VM builds, if needed.