jackos1998andClaude Opus 5.5 6933750dc5 ssh: Find deploy targets on the main branch
SSH targets are the deploy-rs nodes on the main branch, so adding a box
takes a commit there rather than a new broker config, and a target
can't drift from its node. The builder evaluates the branch's `deploy`
output (hostname, SSH user and options, `sudo`), cached per commit, and
the broker looks it up again when stale or when a request names a node
it doesn't know. Only the protected branch's Nix is evaluated, as for
secrets. SSH therefore needs `deploy`.

The VM test gets a real builder and a repository with the nodes, and
the demo's targets move into its repository's flake.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 23:38:08 +00:00
2026-11-23 00:39:36 +00:00
2026-11-23 00:39:37 +00:00
2026-11-24 00:56:17 +00:00

slop-broker

An approval broker that runs privileged operations (SSH commands, deploys, builds and age secrets, and later DNS and previews) for coding agents, under a policy and usually after a human approves each one. Agents use the slop CLI; approvers use slop-approve or a web app (sign-in with OpenID Connect, passkeys, Web Push).

Trying it

devenv up    # the broker, its web app, Pocket ID and a box VM for the SSH targets
demo         # in another terminal: the agents' VM, signed in as an agent that can send requests

See docs/demo.md.

Using it

The flake provides:

Output What
packages.<system>.default slop, slop-broker and slop-approve
overlays.default pkgs.slop-broker
nixosModules.slop-broker The broker (services.slop-broker)
nixosModules.slop-broker-builder The builder for deploys and builds (services.slop-broker-builder)
nixosModules.slop-broker-cache The binary cache side of builds (services.slop-broker-cache)
homeModules.slop The clients on other boxes, over SSH (programs.slop)

nixosModules.default imports all three NixOS modules. The modules default their package to this flake's build. Deployment-specific concerns (persisting state on an ephemeral root, the firewall in front of the web app, policies) are left to the configuration that imports them; nixfiles is the reference deployment.

Developing

The development environment is devenv: direnv with .envrc, which takes the devenv CLI from the flake's nixpkgs so it needn't be installed, or devenv shell. cargo test and cargo clippy --all-targets work there, devenv test runs both, and vm-test runs the NixOS VM test (needs KVM). See AGENTS.md for conventions.

License

MIT; see LICENSE.

S
Description
No description provided
Readme MIT
4.8 MiB
0 Stars 1 Watchers 0 Forks
Languages
Rust 73.6%
Nix 12.4%
JavaScript 10.9%
HTML 1.5%
CSS 1.3%
Other 0.3%